:root {
  --ink: #14284B;
  --ink-soft: #2B4170;
  --asphalt: #2A3340;
  --lane: #F2C230;
  --paper: #FFFFFF;
  --fog: #F1F4F8;
  --line: #D9E0E8;
  --text: #1C2533;
  --muted: #4A5668;
  --go: #1E7B4F;
  --err: #B42318;
  --radius-lg: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.55 "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
img { max-width: 100%; display: block; }
a { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--lane); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { background: var(--ink); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 12px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 17px; }
.top-call {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.top-call .dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; }

/* Hero: photo with a navy overlay behind the headline; quiz card overlaps it */
.hero { position: relative; background: var(--fog); padding: 18px 0 40px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 250px; z-index: -1; overflow: hidden; background: var(--ink); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,40,75,.72) 0%, rgba(20,40,75,.88) 100%);
}
.hero-grid { display: grid; gap: 16px; }
.hero-copy { color: #fff; }
.hero h1 {
  margin: 0; font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(25px, 6.6vw, 48px); line-height: 1.1; max-width: 18ch;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.sub { margin: 8px 0 0; color: #E2E8F2; font-size: 16px; max-width: 46ch; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 10px 0 0; color: #fff; font-weight: 600; font-size: 14px; }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 14px; height: 4px; background: var(--lane); border-radius: 2px; }

@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; background: var(--ink); }
  .hero-bg { height: 100%; }
  .hero-bg img { object-position: 20% 45%; }
  .hero-bg::after { background: linear-gradient(90deg, rgba(20,40,75,.94) 0%, rgba(20,40,75,.80) 45%, rgba(20,40,75,.45) 100%); }
  .hero-grid { grid-template-columns: 1fr 460px; gap: 56px; align-items: start; }
  .hero-copy { padding-top: 28px; }
  .sub { font-size: 19px; margin-top: 18px; }
  .facts { gap: 10px 22px; margin-top: 28px; font-size: 16px; }
  .facts li::before { width: 18px; }
}
@media (max-width: 899px) {
  /* Keep the first question above the fold on phones */
  .sub { display: none; }
}

/* Quiz card */
.quiz {
  background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -18px rgba(20, 40, 75, 0.45), 0 0 0 1px rgba(20, 40, 75, 0.06);
  padding: 18px 16px 20px; scroll-margin-top: 12px;
}
@media (min-width: 600px) { .quiz { padding: 24px 24px 28px; } }

.quiz-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.count { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: auto; }
.back {
  border: 0; background: none; padding: 4px 0; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }

/* The signature element: progress drawn as a road with a lane line */
.road {
  position: relative; height: 14px; margin: 10px 0 18px; border-radius: 7px; overflow: hidden;
  background: var(--asphalt);
}
.road::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 14px, transparent 14px 26px);
}
.road-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: repeating-linear-gradient(90deg, var(--lane) 0 14px, #E0AE1F 14px 26px);
  transition: width .35s ease-out; z-index: 1;
}

.step { display: none; }
.step.active { display: block; animation: stepIn .22s ease-out; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.step h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 800; color: var(--ink); }
.help { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.choices { display: grid; gap: 10px; margin-top: 14px; }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 12px 16px; text-align: left;
  font: inherit; font-weight: 600; font-size: 17px; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .12s, background-color .12s;
}
.choice::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); flex: none; }
.choice:hover { border-color: var(--ink-soft); }
.choice[aria-pressed="true"] { border-color: var(--ink); background: #EAF0FA; }

/* Inputs */
.field { margin-top: 12px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input {
  width: 100%; min-height: 54px; padding: 12px 14px; font: inherit; font-size: 17px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--text);
}
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(242,194,48,.45); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field .err { color: var(--err); font-size: 14px; margin: 6px 0 0; min-height: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zip-hint { font-size: 14px; color: var(--go); font-weight: 600; margin: 8px 0 0; min-height: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 14px 22px; border-radius: var(--radius-sm); border: 0;
  font: inherit; font-weight: 800; font-size: 18px; text-decoration: none; cursor: pointer;
}
.btn-primary { width: 100%; margin-top: 16px; background: var(--lane); color: var(--ink); }
.btn-primary:hover { background: #F5CC4F; }
.btn-primary[disabled] { opacity: .65; cursor: progress; }
.btn-ghost { margin-top: 20px; background: var(--ink); color: #fff; }
.btn-call { width: 100%; margin-top: 18px; background: var(--go); color: #fff; }

.consent { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.consent a { color: var(--muted); }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.secure::before { content: ""; width: 10px; height: 8px; border: 2px solid currentColor; border-radius: 2px; position: relative; top: 2px; box-shadow: 0 -5px 0 -2px var(--paper), 0 -6px 0 -2px currentColor; }

.form-err { color: var(--err); font-weight: 600; font-size: 15px; margin: 12px 0 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Done */
.done { text-align: left; padding: 6px 0; }
.done h2 { margin: 12px 0 8px; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }
.done p { margin: 0; color: var(--text); }
.done-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--go); position: relative; }
.done-mark::after { content: ""; position: absolute; left: 17px; top: 11px; width: 11px; height: 20px; border-right: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(45deg); }

/* Trust strip */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 0; }
.trust-row { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; }
@media (min-width: 560px) { .trust-row { grid-template-columns: 1fr 1fr; } }
.badge { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.3; }
.badge svg { width: 30px; height: 30px; flex: none; fill: var(--ink); }
.badge strong { display: block; color: var(--text); font-size: 14px; }
.badge-ts { justify-content: flex-start; min-height: 50px; }
.badge-ts:empty, .badge-ts:has(.trustedsite-trustmark:empty) { display: none; }
@media (min-width: 900px) { .trust-row { grid-template-columns: repeat(4, auto); justify-content: space-between; } }

/* Thank-you steps */
.next-label { margin: 14px 0 8px; font-weight: 700; color: var(--ink-soft); }
.next-steps { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: n; position: relative; padding-left: 44px; font-size: 15px; color: var(--muted); }
.next-steps li strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border: 2px solid var(--go); border-radius: 6px; display: grid; place-items: center; font-weight: 800; color: var(--go); }
.important { margin-top: 18px; padding: 14px 16px; border: 1.5px dashed #E5484D; border-radius: var(--radius-sm); color: #B42318; background: #FFF5F5; font-size: 15px; }
.important strong { display: block; margin-bottom: 4px; }
.important em { font-weight: 800; }

/* Sections */
.how, .faq { padding: 48px 0; }
.how { background: var(--fog); }
.faq { background: var(--fog); border-top: 1px solid var(--line); }
.how-grid, .why-grid { display: grid; gap: 24px; align-items: center; }
.how-img, .why-img { width: 100%; height: auto; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
  .why-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .how .steps-list { grid-template-columns: 1fr; gap: 18px; }
}

/* Claim values */
.values { background: var(--ink); color: #fff; padding: 52px 0; }
.values h2 { margin: 0 0 8px; font-size: clamp(24px, 4.5vw, 34px); letter-spacing: -0.02em; }
.values-intro { margin: 0 0 22px; color: #C9D3E3; max-width: 60ch; }
.value-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .value-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.value {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-left: 4px solid var(--lane);
  border-radius: var(--radius-sm);
}
.v-name { font-size: 15px; color: #C9D3E3; font-weight: 600; }
.v-range { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.stat { margin: 22px 0 0; font-size: 17px; color: #E2E8F2; max-width: 62ch; }
.stat strong { color: var(--lane); }
.btn-inline { width: auto; margin-top: 20px; padding-left: 28px; padding-right: 28px; }
.values-note { margin: 18px 0 0; font-size: 12px; line-height: 1.55; color: #9FAEC6; max-width: 90ch; }

/* Why us */
.why { padding: 48px 0; background: var(--paper); }
.why h2 { margin: 0 0 12px; font-size: clamp(24px, 4.5vw, 32px); letter-spacing: -0.02em; color: var(--ink); }
.why p { margin: 0; color: var(--muted); max-width: 56ch; }
.why-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.why-list li { position: relative; padding-left: 30px; font-weight: 600; }
.why-list li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 7px; height: 12px; border-right: 3px solid var(--go); border-bottom: 3px solid var(--go); transform: rotate(45deg); }

.how h2, .faq h2 { margin: 0 0 20px; font-size: clamp(24px, 4.5vw, 32px); letter-spacing: -0.02em; color: var(--ink); }
.steps-list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 760px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 52px; color: var(--muted); }
.steps-list li strong { display: block; color: var(--text); font-size: 18px; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--ink); color: var(--lane);
}
@media (min-width: 900px) {
  .steps-list { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 32px; }
}

details { background: var(--paper); border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid var(--line); max-width: 760px; }
summary { cursor: pointer; padding: 16px 44px 16px 16px; font-weight: 700; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 24px; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

/* Footer */
.foot { background: var(--ink); color: #C4CEDE; padding: 32px 0 96px; font-size: 13px; }
.foot a { color: #fff; }
.foot-box { border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-sm); padding: 18px; }
.disclaimer { margin: 0 0 12px; line-height: 1.55; }
.disclaimer strong { color: #fff; }
.foot-addr { display: grid; gap: 14px; margin-top: 16px; align-items: center; }
.foot-addr address { font-style: normal; line-height: 1.5; }
.foot-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1.5px solid #fff; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; justify-self: start; }
@media (min-width: 900px) {
  .foot { padding-bottom: 32px; }
  .foot-addr { grid-template-columns: auto auto 1fr; gap: 48px; }
  .foot-btn { justify-self: end; }
}

/* Sticky mobile CTA, shown once the quiz scrolls out of view */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
  min-height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--lane); color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none;
  border-radius: var(--radius-sm); box-shadow: 0 10px 24px -8px rgba(20,40,75,.5);
}
.sticky-cta[hidden] { display: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal h1 { color: var(--ink); letter-spacing: -0.02em; }
.legal .wrap { max-width: 760px; }
.legal .note { background: #FFF6D6; border: 1px solid var(--lane); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; }
