/* InsureX styles, matched to the current insurex.futurelab.africa.
   Brand: Neo Sans; navy #224B5F, orange #ED6624, teal #429895 (from the logo file); pale blue sections;
   15px rounded buttons; navy and orange feature panels; one orange highlight word per headline.
   Readability changes, kept deliberately small: button text is near-black on orange (white gave 3.2 to 1);
   link text uses a darker teal (the logo teal gave 3.4 to 1). Light theme only, as on the live site.
   House style for web copy: sentence case everywhere, no capital-letter styling, no bold or italic for emphasis. */

@font-face { font-family: "Neo Sans"; font-weight: 400; src: url("fonts/Neo-Sans-Std-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Neo Sans"; font-weight: 600; src: url("fonts/Neo-Sans-Std-Medium.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Neo Sans"; font-weight: 700; src: url("fonts/Neo-Sans-Std-Bold.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Neo Sans"; font-weight: 800; src: url("fonts/Neo-Sans-Std-Black.woff") format("woff"); font-display: swap; }

:root {
  --paper: #FCFEFF;
  --white: #FBFEFF;
  --navy: #224B5F;
  --navy-deep: #17384A;
  --ink: #0B1B26;
  --slate: #475569;
  --orange: #ED6624;
  --orange-ink: #B8470F; /* darker orange for text, icons and focus rings on light grounds: 4.6:1 on the pale hero */
  --teal: #2F7A76;          /* link text on light, 5.0 to 1 */
  --tint: #F2FCFE;
  --line: #CBDBE1;
  --error: #A33A00;
  --radius: 15px;
  --radius-sm: 12px;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --f: "Neo Sans", "Segoe UI", system-ui, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--f); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { font-family: var(--f); color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-weight: 700; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.015em; }
h4 { font-weight: 700; font-size: 1.1rem; line-height: 1.25; letter-spacing: 0; }
h1 .hl, h2 .hl { color: var(--orange-ink); }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section.tint { background: var(--tint); }
.section > .wrap > * + * { margin-top: var(--s5); }
.section > .wrap > h2 + * { margin-top: var(--s5); }
.lede { font-size: 1.3rem; line-height: 1.5; max-width: 72ch; }
.muted { color: var(--slate); }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: var(--s5); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 10px 14px; border-radius: 10px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.nav-links a:hover { background: var(--tint); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); background: var(--tint); }
.nav-end { display: flex; align-items: center; gap: var(--s3); flex: none; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; padding: 0 14px; border: 2px solid var(--navy); border-radius: var(--radius-sm); display: flex; align-items: center; font: 600 0.95rem var(--f); color: var(--navy); }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; margin: 0; padding: var(--s2); list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(23, 56, 74, .16); }
.menu a { display: block; padding: 12px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu a:hover { background: var(--tint); }
@media (max-width: 980px) { .nav-links { display: none; } .menu { display: block; } }
@media (max-width: 520px) { .nav .btn { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--radius); background: var(--orange); color: var(--ink); font: 700 1rem var(--f); text-decoration: none; border: 2px solid var(--orange); cursor: pointer; transition: transform .12s ease, filter .15s ease, background .15s ease; }
.btn:hover { filter: brightness(1.06); color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); filter: none; }
.btn.sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn.navy:hover { background: var(--navy-deep); color: var(--white); filter: none; }
.textbtn { background: none; border: 0; padding: 4px 2px; font: inherit; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.textbtn:hover { color: var(--navy); }

/* ---------- hero ---------- */
.hero { position: relative; background: #E9EFF3 url("hero.webp") right center / cover no-repeat; }
.hero .wrap { display: flex; align-items: center; min-height: min(620px, calc(100dvh - 130px)); padding-top: var(--s8); padding-bottom: var(--s8); }
.hero .copy { max-width: 640px; }
.hero h1 { margin-bottom: var(--s5); }
.hero .cta { margin-top: var(--s6); display: flex; gap: var(--s4); flex-wrap: wrap; }
@media (max-width: 1180px) { .hero { background-position: 70% center; } .hero::before { content: ""; position: absolute; inset: 0; background: rgba(252, 254, 255, .84); } .hero .wrap { position: relative; } }

/* ---------- audience panels ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.card { border-radius: var(--radius); padding: clamp(28px, 3.6vw, 44px); display: flex; flex-direction: column; gap: var(--s4); }
.card.navy { background: var(--navy); color: var(--white); }
.card.navy h3, .card.navy h4 { color: var(--white); }
.card.orange { background: var(--orange); color: var(--ink); }
.card.orange h3, .card.orange h4 { color: var(--ink); }
.card .actions { margin-top: auto; padding-top: var(--s3); display: flex; gap: var(--s3); flex-wrap: wrap; }
.card.navy .btn.ghost { color: var(--white); border-color: var(--white); }
.card.navy .btn.ghost:hover { background: var(--white); color: var(--navy); }
.card.orange .btn { background: var(--navy); border-color: var(--navy); color: var(--white); }
.card.orange .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.card.orange .btn.ghost:hover { background: var(--ink); color: var(--white); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg) translateY(-50%); }
@media (max-width: 800px) { .pair { grid-template-columns: 1fr; } }

/* ---------- stage list (maturity ladder) ---------- */
.stages { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--navy); }
.stages > li { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stages h3 { font-size: 1.25rem; }
.stages p { color: var(--slate); }
@media (max-width: 680px) { .stages > li { grid-template-columns: 1fr; gap: var(--s1); } }

/* ---------- definition rows ---------- */
.defs { margin: 0; border-top: 3px solid var(--navy); }
.defs div { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 700; color: var(--navy); }
.defs dd { margin: 0; color: var(--slate); }
@media (max-width: 680px) { .defs div { grid-template-columns: 1fr; gap: var(--s1); } }

/* ---------- journeys ---------- */
.journeys { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.journey > h3 { margin-bottom: var(--s5); }
.journey ol { list-style: none; margin: 0; padding: 0; position: relative; }
.journey ol::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 28px; width: 3px; background: var(--orange); border-radius: 2px; }
.journey.navy ol::before { background: var(--navy); }
.journey li { position: relative; padding: 0 0 var(--s5) 38px; }
.journey li::before { content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--orange); }
.journey.navy li::before { border-color: var(--navy); }
.journey h4 { margin-bottom: var(--s1); }
.journey p { color: var(--slate); }
@media (max-width: 800px) { .journeys { grid-template-columns: 1fr; } }

/* ---------- two-up statement ---------- */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.two-up article > * + * { margin-top: var(--s3); }
.two-up h3 { color: var(--navy); }
@media (max-width: 800px) { .two-up { grid-template-columns: 1fr; } }

/* ---------- stacked statements ---------- */
.stack { display: grid; gap: var(--s6); max-width: 72ch; }
.stack h3 { margin-bottom: var(--s2); }
.stack p { color: var(--slate); }

/* ---------- milestones ---------- */
.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6) var(--s7); margin: 0; padding: 0; list-style: none; counter-reset: ms; }
.milestones li { border-top: 3px solid var(--navy); padding-top: var(--s3); }
.milestones h3 { font-size: 1.15rem; margin-bottom: var(--s1); }
.milestones p { color: var(--slate); }
@media (max-width: 800px) { .milestones { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .milestones { grid-template-columns: 1fr; } }

/* ---------- questions ---------- */
details.q { border-bottom: 1px solid var(--line); }
details.q:first-of-type { border-top: 3px solid var(--navy); }
details.q summary { cursor: pointer; padding: var(--s5) 0; font: 700 1.15rem var(--f); color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: var(--s4); min-height: 56px; align-items: center; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--orange-ink); flex: none; }
details.q[open] summary::after { content: "\2212"; }
details.q p { padding: 0 0 var(--s5); color: var(--slate); max-width: 72ch; }

/* ---------- band and footer ---------- */
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); flex-wrap: wrap; }
.band h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
footer { background: var(--navy); color: var(--white); padding: var(--s8) 0 var(--s7); font-size: 1rem; }
footer a { color: #FFD9C5; }
footer a:hover { color: var(--white); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
footer h2 { font-size: 1.05rem; color: var(--white); margin-bottom: var(--s3); letter-spacing: 0; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
footer .legal { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid rgba(255, 255, 255, .28); color: #D6E3E9; font-size: 0.95rem; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }

/* ---------- registration form ---------- */
.reg { max-width: 920px; margin: 0 auto; }
.reg-head { margin-bottom: var(--s6); }
.reg-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: var(--s3); }
.seg { border: 0; padding: 0; margin: 0 0 var(--s5); }
.seg legend { font-weight: 700; color: var(--navy); margin-bottom: var(--s3); padding: 0; font-size: 1.05rem; }
.seg-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.seg-opt { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: var(--s3) var(--s5); border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .12s ease; }
.seg-opt:hover { border-color: var(--navy); }
.seg-opt:active { transform: scale(0.985); }
.seg-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.seg-opt .t { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.seg-opt .d { color: var(--slate); font-size: 0.95rem; }
.seg-opt:has(input:checked) { border-color: var(--navy); background: var(--navy); }
.seg-opt:has(input:checked) .t, .seg-opt:has(input:checked) .d { color: var(--white); }
.seg-opt:has(input:checked)::after { content: ""; position: absolute; right: 18px; top: 50%; width: 16px; height: 9px; border-left: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: translateY(-70%) rotate(-45deg); }
.seg-opt:has(input:focus-visible) { outline: 3px solid var(--orange-ink); outline-offset: 3px; }
.seg-quiet { margin-top: var(--s3); font-size: 1rem; }
.seg-quiet label { cursor: pointer; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; position: relative; }
.seg-quiet input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg-quiet label:has(input:checked) { color: var(--navy); text-decoration: none; }
.seg-quiet label:has(input:checked)::before { content: "\2713\00a0"; }
.seg-quiet label:has(input:focus-visible) { outline: 3px solid var(--orange-ink); outline-offset: 3px; border-radius: 6px; }

.panel { padding: 0; }
.stepper { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s5); margin-bottom: var(--s3); }
.stepper .step-title { font-size: clamp(1.5rem, 2.8vw, 1.9rem); }
.stepper .step-count { color: var(--slate); font-size: 1rem; }
.bar { height: 6px; background: var(--tint); border-radius: 3px; overflow: hidden; margin-bottom: var(--s6); border: 1px solid var(--line); }
.bar i { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(.25); transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.stage-body { animation: stepin .25s ease-out; }
@keyframes stepin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stage-body > * + * { margin-top: var(--s6); }
.q-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-group > legend { font: 700 1.2rem/1.3 var(--f); color: var(--navy); padding: 0; margin-bottom: var(--s2); }
.q-hint { color: var(--slate); font-size: 1rem; margin-bottom: var(--s4); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--s3); }
.choice-card { position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 60px; padding: var(--s3) var(--s4); border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .12s ease; line-height: 1.3; }
.choice-card:hover { border-color: var(--navy); }
.choice-card:active { transform: scale(0.985); }
.choice-card input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice-card .mark { flex: none; width: 24px; height: 24px; border: 2px solid var(--slate); background: var(--white); display: grid; place-items: center; }
.choice-card.radio .mark { border-radius: 50%; }
.choice-card.check .mark { border-radius: 6px; }
.choice-card:has(input:checked) { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
.choice-card:has(input:checked) .mark { background: var(--navy); border-color: var(--navy); }
.choice-card:has(input:checked) .mark::after { content: ""; width: 11px; height: 6px; border-left: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: translateY(-1px) rotate(-45deg); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--orange-ink); outline-offset: 3px; }
.choice-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.choice-card:has(input:disabled) input { cursor: not-allowed; }
.count { margin-top: var(--s3); font-size: 1rem; color: var(--slate); min-height: 1.6em; }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 700; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--slate); }
.field .help { color: var(--slate); font-size: 1rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: 400 1.0625rem var(--f); color: var(--ink); background: var(--white); border: 2px solid var(--slate); border-radius: var(--radius-sm); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--orange-ink); outline-offset: 2px; border-color: var(--navy); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
@media (max-width: 700px) { .field-grid { grid-template-columns: 1fr; } }
.err { color: var(--error); font-size: 1rem; font-weight: 600; }
.err-summary { border: 3px solid var(--error); border-radius: var(--radius-sm); padding: var(--s4) var(--s5); background: #FFF6F0; }
.err-summary h3 { color: var(--error); font-size: 1.15rem; margin-bottom: var(--s2); }
.err-summary ul { margin: 0; padding-left: 20px; }
.err-summary a { color: var(--error); font-weight: 600; }
.nudge { padding: var(--s4) var(--s5); border: 2px solid var(--navy); border-radius: var(--radius-sm); background: var(--tint); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.nudge p { flex: 1 1 320px; }
.reveal { padding: var(--s5); background: var(--tint); border-radius: var(--radius-sm); }
.actions-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-top: var(--s7); flex-wrap: wrap; }
.actions-bar .btn { min-width: 160px; }
.summary { margin: 0; border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: minmax(150px, 240px) 1fr auto; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.summary dt { color: var(--slate); }
.summary dd { margin: 0; color: var(--ink); }
@media (max-width: 680px) { .summary div { grid-template-columns: 1fr auto; } .summary dt { grid-column: 1 / -1; } }
.consent { padding: var(--s5); border: 2px solid var(--line); border-radius: var(--radius-sm); }
.savebar { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; color: var(--slate); font-size: 0.95rem; min-height: 44px; }
.done h2 { margin-bottom: var(--s3); }
.done > * + * { margin-top: var(--s5); }
.intro-state { color: var(--slate); }
noscript p { padding: var(--s5); background: var(--tint); border-radius: var(--radius-sm); }

/* ---------- fallbacks for browsers without :has(), and small additions ---------- */
[hidden] { display: none !important; }
.choice-card.is-checked { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
.choice-card.is-checked .mark { background: var(--navy); border-color: var(--navy); }
.choice-card.is-checked .mark::after { content: ""; width: 11px; height: 6px; border-left: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: translateY(-1px) rotate(-45deg); }
.seg-opt.is-checked { border-color: var(--navy); background: var(--navy); }
.seg-opt.is-checked .t, .seg-opt.is-checked .d { color: var(--white); }
.seg-opt.is-focus, .choice-card.is-focus { outline: 3px solid var(--orange-ink); outline-offset: 3px; }
.seg-quiet label.is-checked { color: var(--navy); text-decoration: none; }
.powered { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s5); color: #D6E3E9; font-size: 0.95rem; }
.powered img { height: 30px; width: auto; }
.stage-sub > h3 { color: var(--navy); }
.savebar { color: var(--slate); }
.savebar .textbtn { font-size: 0.95rem; }
.reveal { margin-top: var(--s5); }
.nudge { margin-top: var(--s4); }
.page-intro { max-width: 70ch; }
.lead-in { font-weight: 600; color: var(--navy); }
.fine { font-size: 0.95rem; color: var(--slate); }
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: var(--s7) 0 var(--s3); }
.prose h3 { margin: var(--s5) 0 var(--s2); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s4); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: var(--s2); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s5); font-size: 1rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s3) var(--s3); border-bottom: 1px solid var(--line); }
.prose th { color: var(--navy); border-bottom: 3px solid var(--navy); }
.toc { padding: var(--s5); background: var(--tint); border-radius: var(--radius-sm); margin: var(--s5) 0 var(--s6); }
.toc ol { margin: var(--s2) 0 0; padding-left: 1.3rem; columns: 2; column-gap: var(--s6); }
@media (max-width: 680px) { .toc ol { columns: 1; } .prose table { display: block; overflow-x: auto; } }

/* ---------- user preferences ---------- */
@media (prefers-contrast: more) {
  :root { --line: #5B7480; --slate: #2E3B49; }
  .choice-card, .seg-opt, .field input, .field select, .field textarea { border-color: var(--navy); }
}
@media (hover: none) { .nav-links a:hover, .btn.ghost:hover { background: transparent; color: inherit; } .btn.ghost:hover { color: var(--navy); } }

/* WCAG 2.2 target size: list links at least 24px high */
footer li a, main li > a { display: inline-block; min-height: 24px; line-height: 24px; }

.stages > li > h3 { grid-row: span 2; }
.stages > li > ul { grid-column: 2; margin: 0; }
@media (max-width: 680px) { .stages > li > h3 { grid-row: auto; } .stages > li > ul { grid-column: 1; } }

/* track record: a proportional funnel, so the shape carries the meaning */
.record { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--s7); align-items: center; margin-top: var(--s5); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.bars .lab { color: var(--ink); margin-bottom: var(--s2); }
.bars .fill { width: var(--w); min-width: 72px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: var(--s3) var(--s4); }
.bars .hit .fill { background: var(--orange); color: var(--ink); }
.bars .n, .reach .n { font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; }
.reach { border-top: 3px solid var(--teal); padding-top: var(--s4); }
.reach .n { color: var(--navy); margin-bottom: var(--s2); }
@media (max-width: 860px) { .record { grid-template-columns: 1fr; gap: var(--s6); } }

/* tablet widths: protect the text on the left and let the image show on the right */
@media (min-width: 861px) and (max-width: 1180px) { .hero::before { background: linear-gradient(90deg, rgba(252, 254, 255, .9) 0, rgba(252, 254, 255, .8) 55%, rgba(252, 254, 255, 0) 82%); } }

/* form spacing: inputs never stretch to fill a taller neighbour, and stacked blocks keep a gap */
.field { align-content: start; }
.field-grid { align-items: start; }
.stage-sub > * + * { margin-top: var(--s5); }
.stage-sub > .help { margin-bottom: calc(-1 * var(--s3)); }
#stage .field + .q-group, #stage .q-group + .field, #stage .field + .field, #stage .reveal + .q-group, #stage .q-group + .reveal { margin-top: var(--s5); }
#stage .q-group + .q-group, #stage .q-group + .nudge + .q-group { margin-top: var(--s7); }
#stage .q-group .other-field { margin-top: var(--s4); }
#stage .q-group .count, #stage .q-group > .textbtn { margin-top: var(--s3); }
#stage .nudge { margin-top: var(--s4); }
#stage .field-grid > .field { margin-top: 0; }
