/* ==========================================================================
   accident.live — quiz funnel
   Implemented from the Claude Design canvas "Accident.live Funnel.dc.html",
   artboard 1a (working prototype).

   Palette follows the design note: DOT navy is the dominant field, white and
   cool grey are ground, federal red is reserved for urgency and the primary
   action only. Archivo throughout.
   ========================================================================== */

:root {
  --navy:        #0B2265;
  --navy-deep:   #06174A;
  --red:         #C8102E;
  --red-dark:    #8E1024;
  --red-tint:    #FDECEE;
  --page:        #DCE1EA;
  --surface:     #F2F4F8;
  --white:       #ffffff;
  --ink:         #3A4250;
  --ink-2:       #454E5C;
  --muted:       #5A6472;
  --muted-2:     #78818F;
  --muted-3:     #98A0AC;
  --gold:        #FFC72C;
  --green:       #2FBF71;
  --green-soft:  #86E3B0;

  --on-navy:     #F2F4F8;
  --on-navy-70:  rgba(242, 244, 248, .76);
  --on-navy-55:  rgba(242, 244, 248, .55);
  --hair-navy:   rgba(11, 34, 101, .13);
  --hair-light:  rgba(242, 244, 248, .12);

  --measure:     560px;   /* inner content cap — the design is mobile-only,
                             so on wide screens we cap the measure rather than
                             invent a desktop layout. */
  --radius:      12px;
  --font:        Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:        ui-monospace, Menlo, Consolas, monospace;
  --shadow-card: 0 12px 32px rgba(6, 23, 74, .16);
  --shadow-red:  0 6px 16px rgba(200, 16, 46, .3);
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }

[hidden] { display: none !important; }

/* Focus is never removed — the canvas mockup has no focus states, but a real
   funnel has to be keyboard operable. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  font: 600 14px var(--font);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- animation ------------------------------------------------------------ */

@keyframes alPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }
@keyframes alRise  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes alSheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes alFade  { from { opacity: 0; } to { opacity: 1; } }

/* The wordmark dot doubles as the full stop in "accident.", so it must never
   blink out — alPulse drops to .35 opacity and the punctuation disappears.
   This pings a ring instead and keeps the core solid. */
@keyframes alWordmarkPing {
  0%   { box-shadow: 0 0 0 0   rgba(47, 191, 113, .55); opacity: 1; }
  70%  { box-shadow: 0 0 0 6px rgba(47, 191, 113, 0);   opacity: .8; }
  100% { box-shadow: 0 0 0 0   rgba(47, 191, 113, 0);   opacity: 1; }
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  animation: alPulse 1.9s infinite;
}
.dot--sm { width: 6px; height: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- layout --------------------------------------------------------------- */

/* Full-bleed colour bands, capped inner measure. */
.band { width: 100%; }
.band > .inner,
.inner {
  max-width: var(--measure);
  margin-inline: auto;
  width: 100%;
}

.band--navy    { background: var(--navy);      color: var(--on-navy); }
.band--surface { background: var(--surface); }
.band--white   { background: var(--white); }
.band--red     { background: var(--red);       color: #fff; }
.band--deep    { background: var(--navy-deep); }

.rule-top { border-top: 1px solid rgba(11, 34, 101, .08); }

/* Anchored sections must clear the sticky header. */
.sec, .quiz-card { scroll-margin-top: 96px; }

/* --- Spanish offer strip -------------------------------------------------- */

.es-strip { background: var(--gold); color: var(--navy); }
.es-strip .inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}
.es-strip__icon { flex: none; }
.es-strip__body { flex: 1; min-width: 0; }
.es-strip__title { font: 600 12.5px/1.3 var(--font); }
.es-strip__sub   { font: 400 11px/1.35 var(--font); opacity: .78; }
.es-strip__go {
  flex: none;
  border: 0;
  background: var(--navy);
  color: var(--on-navy);
  font: 600 11.5px var(--font);
  padding: 8px 11px;
  border-radius: 7px;
  cursor: pointer;
  min-height: 34px;
}
.es-strip__close {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 6px;
  cursor: pointer;
  display: flex;
  opacity: .6;
}
.es-strip__close:hover { opacity: 1; }

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px 10px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 700 18px var(--font);
  letter-spacing: -.4px;
  color: var(--on-navy);
}
.wordmark:hover { color: var(--on-navy); }
.wordmark__mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex: none;
}
.wordmark__text { display: flex; align-items: baseline; gap: 2px; }

/* The full stop in "accident." is the live indicator: a green dot on the
   baseline, pulsing on the same cadence as the other live signals. Under
   prefers-reduced-motion the global rule freezes it solid, which still
   reads correctly as punctuation. */
.wordmark__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  align-self: baseline;
  animation: alWordmarkPing 2.2s ease-out infinite;
}

.wordmark--sm { font-size: 17px; }
.wordmark--sm .wordmark__mark { width: 22px; height: 22px; }
.wordmark--sm .wordmark__dot  { width: 6.5px; height: 6.5px; }

.header-actions { display: flex; align-items: center; gap: 7px; }

.btn-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(242, 244, 248, .28);
  background: transparent;
  color: var(--on-navy);
  font: 600 11.5px var(--font);
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 34px;
}
.btn-lang:hover { border-color: var(--on-navy); }

.btn-call-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font: 600 12.5px var(--font);
  padding: 9px 13px;
  border-radius: 999px;
  min-height: 36px;
}
.btn-call-pill:hover { color: #fff; background: #b30d28; }

.ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, .22);
  border-top: 1px solid rgba(242, 244, 248, .08);
}
.ticker__text {
  font: 500 11.5px/1.3 var(--font);
  color: rgba(242, 244, 248, .9);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- hero ----------------------------------------------------------------- */

/* 12px rather than the hero's full 30px: the card rides 18px up into the
   navy, so the gap the design shows between the sub-head and the card is
   30 − 18. */
.hero .inner { padding: 24px 16px 12px; }

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(47, 191, 113, .14);
  border: 1px solid rgba(47, 191, 113, .3);
  color: var(--green-soft);
  font: 600 11px var(--font);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  font: 700 33px/1.12 var(--font);
  margin-bottom: 12px;
  letter-spacing: -.6px;
  text-wrap: pretty;
}
.hero p {
  font: 400 14.5px/1.5 var(--font);
  color: var(--on-navy-70);
  text-wrap: pretty;
}

/* --- quiz card ------------------------------------------------------------ */

/* The card overlaps the bottom of the navy hero by 18px, then sits on the
   cool-grey ground. Painted as a hard-stop gradient rather than a negative
   margin so the band's own background cannot collapse over the hero. */
.quiz-wrap {
  background: linear-gradient(to bottom, var(--navy) 18px, var(--surface) 18px);
}
.quiz-wrap .inner { padding: 0 12px; }

.quiz-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  color: var(--ink);
}

.progress {
  height: 4px;
  background: rgba(11, 34, 101, .1);
}
.progress__fill {
  height: 100%;
  background: var(--red);
  min-width: 3px;
  width: 9%;
  transition: width .35s ease;
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 0;
}
.quiz-meta__step {
  font: 600 11px var(--font);
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: uppercase;
}
.quiz-meta__timer {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 600 11.5px var(--font);
  color: var(--red);
}

.quiz-body { padding: 10px 16px 18px; }

.quiz-body h2 {
  font: 700 21px/1.25 var(--font);
  color: var(--navy);
  margin-bottom: 15px;
  text-wrap: pretty;
}

/* step 1 — icon cards (treatment 1a) */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-height: 92px;
  padding: 13px;
  background: var(--surface);
  border: 1.5px solid var(--hair-navy);
  border-radius: 13px;
  cursor: pointer;
  text-align: left;
  color: var(--navy);
  font: 600 13.5px/1.25 var(--font);
}
.type-card svg { color: var(--red); flex: none; }
.type-card:hover { border-color: var(--red); background: var(--white); }
.type-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  min-height: 60px;
}

/* choice rows */
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 12px 15px;
  background: var(--surface);
  border: 1.5px solid var(--hair-navy);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  color: var(--navy);
  font: 600 14.5px/1.3 var(--font);
  width: 100%;
}
.choice:hover { border-color: var(--red); background: var(--white); }
.choice svg { flex: none; opacity: .4; }

/* form fields */
.field-stack { display: flex; flex-direction: column; gap: 11px; }
.field { display: block; }
.field__label {
  display: block;
  font: 600 11.5px var(--font);
  color: var(--muted);
  margin-bottom: 6px;
}
.input, .select {
  width: 100%;
  min-height: 52px;
  padding: 0 13px;
  border: 1.5px solid rgba(11, 34, 101, .18);
  border-radius: var(--radius);
  background: var(--white);
  font: 500 15.5px var(--font);
  color: var(--navy);
}
.select { -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B2265' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input::placeholder { color: var(--muted-3); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red); }

.field-error {
  font: 500 11.5px/1.4 var(--font);
  color: var(--red-dark);
  margin-top: 5px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  background: var(--surface);
  border-radius: 11px;
  cursor: pointer;
}
.consent input {
  width: 19px; height: 19px;
  margin: 1px 0 0;
  accent-color: var(--navy);
  flex: none;
}
.consent span { font: 400 10.5px/1.45 var(--font); color: var(--muted); }
.consent--invalid { outline: 1.5px solid var(--red); }

/* buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font: 700 16px var(--font);
}
.btn--red   { background: var(--red);  color: #fff; box-shadow: var(--shadow-red); }
.btn--red:hover  { background: #b30d28; color: #fff; }
.btn--navy  { background: var(--navy); color: var(--on-navy); }
.btn--navy:hover { background: #0d2a7a; color: var(--on-navy); }
.btn--ghost {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid rgba(11, 34, 101, .2);
  min-height: 50px;
  font-weight: 600;
  font-size: 14px;
}
.btn--ghost:hover { border-color: var(--navy); }
.btn--ghost-light {
  background: transparent;
  color: var(--on-navy);
  border: 1.5px solid rgba(242, 244, 248, .28);
  min-height: 52px;
  font: 600 14px var(--font);
}
.btn--ghost-light:hover { border-color: var(--on-navy); color: var(--on-navy); }
.btn--submit {
  flex-direction: column;
  gap: 2px;
  min-height: 60px;
  padding: 10px;
}
.btn--submit .btn__main { font: 700 16.5px var(--font); }
.btn--submit .btn__sub  { font: 500 11px var(--font); opacity: .82; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

.btn-back {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 12.5px var(--font);
  cursor: pointer;
  padding: 8px 0;
  min-height: 40px;
}
.btn-back:hover { color: var(--navy); }

/* urgency modules */
.case-meter {
  margin-top: 14px;
  padding: 12px 13px;
  background: rgba(11, 34, 101, .05);
  border: 1px dashed rgba(11, 34, 101, .2);
  border-radius: 11px;
}
.case-meter__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.case-meter__label {
  font: 600 10.5px var(--font);
  color: var(--muted);
  letter-spacing: .4px;
  text-transform: uppercase;
}
.case-meter__value { font: 700 15px var(--font); color: var(--navy); }
.case-meter__note  { font: 400 10px/1.4 var(--font); color: var(--muted-2); margin-top: 4px; }

.sol-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 9px;
  padding: 12px 13px;
  background: var(--red-tint);
  border-left: 3px solid var(--red);
  border-radius: 0 11px 11px 0;
}
.sol-note svg { color: var(--red); flex: none; margin-top: 1px; }
.sol-note__text { font: 600 12.5px/1.42 var(--font); color: var(--red-dark); }

/* matched (done) state */
.matched { animation: alRise .4s ease both; }
.matched__banner {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  background: var(--navy);
  border-radius: 13px;
  margin-bottom: 13px;
}
.matched__check {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex: none;
  animation: alPulse 1.6s infinite;
}
.matched__title { font: 700 15px var(--font); color: var(--on-navy); }
.matched__sub   { font: 400 12px/1.35 var(--font); color: rgba(242, 244, 248, .72); }
.matched__call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 60px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font: 700 17px var(--font);
  box-shadow: var(--shadow-red);
  margin-bottom: 9px;
}
.matched__call:hover { color: #fff; background: #b30d28; }
.matched__note {
  font: 400 11px/1.5 var(--font);
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

/* --- stats + rating ------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(11, 34, 101, .12);
  margin-top: 22px;
}
.stat { background: var(--surface); padding: 15px 14px; }
.stat__v { font: 700 20px/1 var(--font); color: var(--navy); margin-bottom: 4px; }
.stat__l { font: 400 11px/1.35 var(--font); color: var(--muted); }

.rating {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 11px 14px;
  background: var(--surface);
  border-top: 1px solid rgba(11, 34, 101, .08);
}
.stars { display: flex; gap: 2px; color: var(--gold); }
.rating__text { font: 600 11.5px var(--font); color: var(--navy); }

.tag-placeholder {
  font: 400 10px var(--font);
  color: var(--muted-3);
}

/* --- content sections ----------------------------------------------------- */

.sec .inner { padding: 30px 16px; }
.sec--tight .inner { padding: 28px 16px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 600 10.5px var(--font);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 10px;
}

.sec h1 {
  font: 700 29px/1.16 var(--font);
  margin-bottom: 13px;
  letter-spacing: -.5px;
  text-wrap: pretty;
  color: var(--navy);
}
.sec h2 {
  font: 700 25px/1.2 var(--font);
  margin-bottom: 16px;
  letter-spacing: -.3px;
  text-wrap: pretty;
  color: var(--navy);
}
.band--navy h1, .band--red h1,
.band--navy h2, .band--red h2 { color: inherit; }

.sec__lede {
  font: 400 14px/1.55 var(--font);
  margin-bottom: 16px;
  text-wrap: pretty;
  color: var(--muted);
}
.band--navy .sec__lede { color: rgba(242, 244, 248, .75); }

.media {
  margin: 0 0 16px;
  border-radius: 13px;
  overflow: hidden;
  height: 150px;
  background: rgba(11, 34, 101, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font: 500 11.5px/1.4 var(--font);
  color: rgba(242, 244, 248, .55);
}
.band--surface .media { color: var(--muted-2); }

/* When the slot holds a real photo it is edge to edge; the crop is steered
   per image because a 150px letterbox out of a 3:2 frame will otherwise cut
   the subject. */
.media picture { display: contents; }
.media:has(img) { padding: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--face  img { object-position: 32% 34%; }
.media--steps img { object-position: 50% 62%; }

@media (min-width: 640px) {
  .media { height: 210px; }
}

.stack-14 { display: flex; flex-direction: column; gap: 14px; }
.stack-13 { display: flex; flex-direction: column; gap: 13px; }
.stack-11 { display: flex; flex-direction: column; gap: 11px; }

/* how it works */
.step-row { display: flex; gap: 13px; align-items: flex-start; }
.step-row__n {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 14px var(--font);
}
.step-row__t { font: 600 15.5px/1.3 var(--font); color: var(--navy); margin-bottom: 4px; }
.step-row__b { font: 400 13.5px/1.55 var(--font); color: var(--muted); text-wrap: pretty; }

/* fee */
.sec--fee h2 { font-size: 23px; line-height: 1.22; margin-bottom: 9px; }
.sec--fee p  { font: 400 14px/1.58 var(--font); color: var(--muted); text-wrap: pretty; }

/* sol */
.sec--sol h2 { margin-bottom: 9px; }

/* checklist */
.checklist { display: flex; flex-direction: column; }
.checklist li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(242, 244, 248, .1);
  font: 400 13.5px/1.5 var(--font);
  color: rgba(242, 244, 248, .88);
  text-wrap: pretty;
}
.checklist svg { color: var(--green); flex: none; margin-top: 2px; }
ul.checklist { list-style: none; margin: 0; padding: 0; }

/* testimonials */
.voices-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.voices-head h2 { margin-bottom: 0; }
.quote {
  background: var(--white);
  border: 1px solid rgba(11, 34, 101, .1);
  border-radius: 13px;
  padding: 16px;
}
.quote .stars { margin-bottom: 9px; }
.quote__q { font: 600 15px/1.45 var(--font); color: var(--navy); margin-bottom: 9px; text-wrap: pretty; }
.quote__a { font: 500 11.5px var(--font); color: var(--muted-2); }

/* why */
.why-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(11, 34, 101, .08);
}
.why-row__bullet {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 7px;
}
.why-row__t { font: 600 15px/1.3 var(--font); color: var(--navy); margin-bottom: 3px; text-wrap: pretty; }
.why-row__b { font: 400 13px/1.5 var(--font); color: var(--muted); text-wrap: pretty; }

/* final cta */
.sec--final .inner { padding: 34px 16px; text-align: center; }
.sec--final h2 { font-size: 27px; line-height: 1.18; letter-spacing: -.4px; margin-bottom: 10px; }
.sec--final p  { font: 400 14px/1.5 var(--font); margin-bottom: 18px; color: rgba(255, 255, 255, .86); }
.sec--final .btn { min-height: 58px; font-size: 16.5px; }

/* --- footer --------------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: rgba(242, 244, 248, .62); }
.site-footer .inner { padding: 26px 16px 30px; }
.site-footer .wordmark { margin-bottom: 16px; }

.footer-links { display: flex; flex-direction: column; margin-bottom: 20px; }
.footer-links a {
  color: rgba(242, 244, 248, .78);
  font: 500 13px var(--font);
  padding: 10px 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(242, 244, 248, .08);
}
.footer-links a:last-child { border-bottom: 0; }
.footer-links a:hover { color: #fff; }

.footer-disclaimer {
  font: 400 10.5px/1.6 var(--font);
  margin-bottom: 12px;
}
.footer-disclaimer a { color: var(--gold); font-weight: 600; text-decoration: underline; }
.footer-disclaimer a:hover { color: #fff; }

.footer-copy { font: 400 10.5px/1.6 var(--font); color: rgba(242, 244, 248, .42); }

/* --- sticky call bar ------------------------------------------------------ */

.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--navy);
  border-top: 1px solid var(--hair-light);
  box-shadow: 0 -8px 24px rgba(6, 23, 74, .2);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-bar .inner {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px 14px;
}
.sticky-bar__call {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font: 700 15px var(--font);
}
.sticky-bar__call:hover { color: #fff; background: #b30d28; }
.sticky-bar__form {
  flex: none;
  padding: 0 15px;
  min-height: 50px;
  border: 1.5px solid rgba(242, 244, 248, .3);
  border-radius: 11px;
  background: transparent;
  color: var(--on-navy);
  font: 600 13.5px var(--font);
  cursor: pointer;
}
.sticky-bar__form:hover { border-color: var(--on-navy); }

/* the sticky bar must not cover the end of the page */
.page-tail { height: 84px; }

/* --- overlays ------------------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  animation: alFade .2s ease both;
}
.overlay--exit {
  background: rgba(6, 23, 74, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.overlay--sheet {
  background: rgba(6, 23, 74, .55);
  display: flex;
  align-items: flex-end;
}

.modal {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px 20px;
  width: 100%;
  max-width: 330px;
  animation: alRise .28s ease both;
}
.modal__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 16, 46, .12);
  color: var(--red);
  font: 600 11px var(--font);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 13px;
}
.modal__pill .dot { background: var(--red); animation-duration: 1.4s; }
.modal h3 { font: 700 22px/1.2 var(--font); color: var(--navy); margin-bottom: 9px; text-wrap: pretty; }
.modal p  { font: 400 13.5px/1.5 var(--font); color: var(--muted); margin-bottom: 17px; text-wrap: pretty; }
.modal__call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font: 700 15.5px var(--font);
  margin-bottom: 9px;
}
.modal__call:hover { color: #fff; background: #b30d28; }
.modal .btn--ghost { margin-bottom: 6px; }
.modal__dismiss {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted-3);
  font: 500 12px var(--font);
  cursor: pointer;
}

.sheet {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 22px 20px 34px;
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  animation: alSheet .3s cubic-bezier(.2, .9, .2, 1) both;
}
.sheet__grab {
  width: 38px; height: 4px;
  border-radius: 99px;
  background: rgba(11, 34, 101, .18);
  margin: 0 auto 16px;
}
.sheet h3 { font: 700 21px/1.2 var(--font); color: var(--navy); margin-bottom: 7px; text-wrap: pretty; }
.sheet p  { font: 400 13.5px/1.5 var(--font); color: var(--muted); margin-bottom: 15px; }
.sheet__progress {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  background: var(--white);
  border: 1px solid rgba(11, 34, 101, .1);
  border-radius: var(--radius);
  margin-bottom: 15px;
}
.sheet__progress > svg { color: var(--red); flex: none; }
.sheet__progress-body { min-width: 0; flex: 1; }
.sheet__step { font: 600 13.5px var(--font); color: var(--navy); }
.sheet__track {
  height: 4px;
  background: rgba(11, 34, 101, .1);
  border-radius: 99px;
  margin-top: 6px;
}
.sheet__fill { height: 100%; background: var(--red); border-radius: 99px; min-width: 3px; }
.sheet .btn { margin-bottom: 8px; }
.sheet__restart {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font: 500 13px var(--font);
  cursor: pointer;
}

/* --- disqualification page + claims docket -------------------------------- */

.kicker--muted { color: rgba(242, 244, 248, .6); }
.kicker--muted svg { flex: none; }

.notice, .warn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 12px;
}
.notice {
  background: rgba(47, 191, 113, .12);
  border: 1px solid rgba(47, 191, 113, .3);
}
.notice svg { color: var(--green-soft); flex: none; margin-top: 1px; }
.notice__t { font: 600 13px/1.3 var(--font); color: var(--green-soft); margin-bottom: 3px; }
.notice__b { font: 400 12.5px/1.5 var(--font); color: rgba(242, 244, 248, .72); }

.warn {
  background: var(--red-tint);
  border-left: 3px solid var(--red);
  border-radius: 0 11px 11px 0;
  margin-bottom: 18px;
  font: 600 12.5px/1.45 var(--font);
  color: var(--red-dark);
}
.warn svg { flex: none; margin-top: 1px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
.chip {
  border: 1.5px solid var(--hair-navy);
  background: var(--white);
  color: var(--muted);
  font: 600 12px var(--font);
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip--on {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
}

.docket { display: flex; flex-direction: column; gap: 11px; }

.claim-card {
  background: var(--white);
  border: 1px solid rgba(11, 34, 101, .12);
  border-radius: 13px;
  padding: 15px;
}
.claim-card--shut { opacity: .62; }

.claim-card__head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 10px;
}
.claim-card__icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.claim-card__id { flex: 1; min-width: 0; }
.claim-card__name { font: 700 15.5px/1.25 var(--font); color: var(--navy); }
.claim-card__cat {
  font: 600 10.5px var(--font);
  color: var(--muted-2);
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-top: 3px;
}

.badge {
  flex: none;
  font: 600 10.5px var(--font);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge--active { background: rgba(47, 191, 113, .16); color: #1B7C48; }
.badge--review { background: rgba(255, 199, 44, .22); color: #7A5B00; }
.badge--closed { background: rgba(11, 34, 101, .09); color: var(--muted); }

.claim-card__blurb {
  font: 400 13px/1.55 var(--font);
  color: var(--muted);
  text-wrap: pretty;
}
.claim-card__meta {
  font: 500 11px/1.45 var(--font);
  color: var(--muted-2);
  margin-top: 8px;
  font-family: var(--mono);
}
.claim-card__cta { margin-top: 12px; }

.docket-empty {
  font: 400 13.5px/1.55 var(--font);
  color: var(--muted);
  padding: 18px 0;
}

/* --- legal pages ---------------------------------------------------------- */

.legal-header { background: var(--navy); }
.legal-header .inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.legal-back {
  border: 0;
  background: rgba(242, 244, 248, .12);
  color: var(--on-navy);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.legal-back svg { transform: rotate(180deg); }
.legal-back:hover { background: rgba(242, 244, 248, .22); color: var(--on-navy); }
.legal-title { font: 700 16px/1.2 var(--font); color: var(--on-navy); }
.legal-updated { font: 400 11px var(--font); color: var(--on-navy-55); }

.legal-body { background: var(--surface); }
.legal-body .inner { padding: 20px 16px 40px; }

.legal-draft {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 11px 12px;
  background: var(--red-tint);
  border-radius: 10px;
  margin-bottom: 20px;
  font: 600 11px/1.45 var(--font);
  color: var(--red-dark);
}

.legal-section { margin-bottom: 20px; }
.legal-section h2 {
  font: 700 15.5px/1.3 var(--font);
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0;
}
.legal-section p { font: 400 13px/1.62 var(--font); color: var(--ink-2); text-wrap: pretty; }

.firm-table {
  background: var(--white);
  border: 1px solid rgba(11, 34, 101, .12);
  border-radius: var(--radius);
  overflow: hidden;
}
.firm-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(11, 34, 101, .07);
}
.firm-row:last-child { border-bottom: 0; }
.firm-row__n { font: 600 13px var(--font); color: var(--navy); }
.firm-row__b { font: 400 11px var(--font); color: var(--muted-2); }
.firm-row__s { font: 600 12px var(--font); color: var(--muted); flex: none; }

/* --- noscript ------------------------------------------------------------- */

.noscript {
  background: var(--gold);
  color: var(--navy);
  font: 600 13px/1.5 var(--font);
  padding: 14px 16px;
  text-align: center;
}
.noscript a { text-decoration: underline; }

/* --- wider viewports ------------------------------------------------------
   The canvas only specifies a mobile treatment (the design notes list
   "add a desktop version of 1a" as future work). Rather than invent a desktop
   layout, we keep the single column, cap the measure and let the colour bands
   run full bleed.
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .hero .inner   { padding: 34px 24px 16px; }
  .quiz-wrap .inner { padding: 0 24px; }
  .sec .inner    { padding: 40px 24px; }
  .sec--final .inner { padding: 46px 24px; }
  .site-footer .inner { padding: 32px 24px 36px; }
  .header-bar    { padding: 13px 24px 12px; }
  .ticker        { padding: 8px 24px; }
  .es-strip .inner { padding: 12px 24px; }
  .sticky-bar .inner { padding: 12px 24px; }
  .legal-header .inner, .legal-body .inner { padding-inline: 24px; }

  .hero h1 { font-size: 38px; }
  .quiz-body { padding: 12px 20px 22px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
