:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6a7d;
  --line: #d9e1ea;
  --soft: #f5f7fa;
  --panel: #ffffff;
  --navy: #0f2742;
  --teal: #0f766e;
  --orange: #f26a2e;
  --green: #147a4d;
  --yellow: #a16207;
  --red: #b42318;
  --shadow: 0 14px 38px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  font-size: 13px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
}

main {
  overflow: hidden;
}

.hero,
.band,
.two-column,
.tool-surface,
.lead-section,
.content-section,
.cta-section,
.author-box,
.answer-band {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 42px;
  align-items: center;
  padding: 54px 0 38px;
}

.hero h1 {
  max-width: 780px;
  margin: 10px 0 16px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-actions,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.score-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -20px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.score-card-header,
.score-card dl div,
.result-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-card dl,
.result-grid {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

.risk {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.risk.low {
  color: var(--green);
  background: #e8f6ef;
}

.risk.medium {
  color: var(--yellow);
  background: #fff4d6;
}

.risk.high {
  color: var(--red);
  background: #ffe8e5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  text-decoration: none;
}

.answer-band {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
}

.band,
.tool-surface,
.lead-section,
.content-section,
.cta-section,
.author-box {
  margin-top: 58px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-header h2,
.content-section h2,
.tool-surface h2,
.lead-section h2,
.cta-section h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-header p,
.content-section p,
.lead-section p,
.tool-surface p,
.cta-section p {
  color: var(--muted);
}

.card-grid,
.competitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-card,
.competitor-card,
.info-panel,
.tool-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  text-decoration: none;
}

.guide-card span {
  font-weight: 850;
}

.guide-card small,
.competitor-card p {
  color: var(--muted);
}

.competitor-card {
  padding: 20px;
}

.competitor-card h3 {
  margin: 0 0 10px;
}

.competitor-card a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.comparison-table th {
  color: #fff;
  background: var(--navy);
}

.comparison-table a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.check-grid li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.two-column,
.lead-section,
.tool-surface,
.cta-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.info-panel,
.tool-result {
  padding: 20px;
}

.tool-surface,
.lead-section,
.cta-section {
  padding: 26px;
  border-radius: 8px;
  background: #f8fbfd;
  border: 1px solid var(--line);
}

.tool-form,
.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.check-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-field input {
  width: auto;
  min-height: auto;
}

.tool-form .button,
.lead-form .button,
.form-note {
  grid-column: 1 / -1;
}

.tool-result {
  grid-column: 1 / -1;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

.cta-section {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #163d4f);
  border: 0;
}

.cta-section p,
.cta-section .eyebrow {
  color: #f5f7fa;
}

.author-box {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding: 32px clamp(18px, 4vw, 56px);
  color: #dfe8f2;
  background: var(--navy);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.not-found {
  width: min(720px, calc(100% - 36px));
  margin: 80px auto;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .lead-section,
  .tool-surface,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-visual {
    min-height: auto;
    padding-bottom: 30px;
  }

  .card-grid,
  .competitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .top-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .top-nav.open {
    display: flex;
  }

  .hero h1 {
    font-size: 42px;
  }

  .card-grid,
  .competitor-grid,
  .check-grid,
  .tool-form,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .hero,
  .band,
  .two-column,
  .tool-surface,
  .lead-section,
  .content-section,
  .cta-section,
  .author-box,
  .answer-band {
    width: min(100% - 24px, 1160px);
  }

  .hero h1 {
    font-size: 36px;
  }

  .score-card {
    position: static;
    margin-top: 12px;
  }
}
