/* =========================================================================
   ADA Mitigation — stylesheet
   Built to WCAG 2.2 Level AA:
   - all text/background pairs verified >= 4.5:1 (>=3:1 for large text & UI)
   - visible, high-contrast focus indicator (2.4.7, 2.4.11, 2.4.13)
   - interactive targets >= 24x24 CSS px, primary controls >= 44px (2.5.8)
   - reflow to 320px without horizontal scrolling (1.4.10)
   - tolerates user text-spacing overrides (1.4.12)
   - respects prefers-reduced-motion (2.3.3)
   ========================================================================= */

/* ---------- Design tokens: light (default) ---------- */
:root {
  color-scheme: light dark;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* surfaces */
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --bg-sunken: #e9eff6;
  --bg-invert: #0a1a2b;
  --bg-invert-alt: #102942;

  /* text */
  --ink: #0a1a2b;          /* 17.4:1 on --bg */
  --ink-muted: #465b72;    /*  7.3:1 on --bg */
  --ink-invert: #f2f6fb;   /* 16.3:1 on --bg-invert */
  --ink-invert-muted: #b9cadd;

  /* brand */
  --brand: #14539e;         /* 7.61:1 on --bg  */
  --brand-hover: #0e3d76;   /* 10.78:1 on --bg */
  --brand-soft: #e5eefa;
  --brand-on-dark: #8dbcff; /* 9.01:1 on --bg-invert */

  /* accent — primary calls to action */
  --accent: #b03e07;        /* white text on it: 5.94:1 */
  --accent-hover: #8c3105;  /* white text on it: 8.21:1 */
  --accent-ink: #ffffff;
  --accent-soft: #fbecE3;
  --accent-on-dark: #ffab70;/* 9.46:1 on --bg-invert */

  /* signal */
  --warn: #8a3d0b;         /* 6.6:1 on --bg */
  --warn-soft: #fdf1e5;
  --ok: #17603f;           /* 5.9:1 on --bg */
  --ok-soft: #e6f3ec;
  --danger: #a01523;       /* 7.0:1 on --bg */
  --danger-soft: #fdeced;

  /* lines & effects */
  --line: #cfdae6;
  --line-strong: #64788e;   /* 4.55:1 on --bg — 1.4.11 */
  --line-invert: #24405e;
  --focus: #0a1a2b;
  --focus-invert: #ffd166;
  --shadow-sm: 0 1px 2px rgba(10, 26, 43, .06), 0 2px 8px rgba(10, 26, 43, .05);
  --shadow-md: 0 2px 4px rgba(10, 26, 43, .06), 0 12px 28px rgba(10, 26, 43, .09);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;

  --container: 76rem;
  --measure: 68ch;

  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.3rem + 1vw, 1.95rem);
  --step-4: clamp(1.85rem, 1.5rem + 1.7vw, 2.6rem);
  --step-5: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
}

/* ---------- Design tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a121c;
    --bg-alt: #101c2a;
    --bg-sunken: #16253a;
    --bg-invert: #050b13;
    --bg-invert-alt: #0e1c2c;

    --ink: #e9f0f8;
    --ink-muted: #a9bcd1;      /* 9.6:1 on --bg */
    --ink-invert: #eef4fb;
    --ink-invert-muted: #b6c7da;

    --brand: #8dbcff;          /* 9.65:1 on --bg */
    --brand-hover: #b5d3ff;
    --brand-soft: #14243a;
    --brand-on-dark: #8dbcff;

    --accent: #ffab70;         /* dark text on it: 10.29:1 */
    --accent-hover: #ffc79c;
    --accent-ink: #06101d;
    --accent-soft: #2a1a10;
    --accent-on-dark: #ffab70;

    --warn: #f0b072;           /* 9.6:1 on --bg */
    --warn-soft: #2a1d10;
    --ok: #79d3a5;
    --ok-soft: #0f2419;
    --danger: #ff9aa2;
    --danger-soft: #2b1114;

    --line: #24344a;
    --line-strong: #7089a8;    /* 5.23:1 on --bg — 1.4.11 */
    --line-invert: #1d3352;
    --focus: #ffd166;
    --focus-invert: #ffd166;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 12px 28px rgba(0, 0, 0, .45);
  }
}

:root[data-theme="dark"] {
  --bg: #0a121c;
  --bg-alt: #101c2a;
  --bg-sunken: #16253a;
  --bg-invert: #050b13;
  --bg-invert-alt: #0e1c2c;

  --ink: #e9f0f8;
  --ink-muted: #a9bcd1;
  --ink-invert: #eef4fb;
  --ink-invert-muted: #b6c7da;

  --brand: #8dbcff;
  --brand-hover: #b5d3ff;
  --brand-soft: #14243a;
  --brand-on-dark: #8dbcff;

  --accent: #ffab70;
  --accent-hover: #ffc79c;
  --accent-ink: #06101d;
  --accent-soft: #2a1a10;
  --accent-on-dark: #ffab70;

  --warn: #f0b072;
  --warn-soft: #2a1d10;
  --ok: #79d3a5;
  --ok-soft: #0f2419;
  --danger: #ff9aa2;
  --danger-soft: #2b1114;

  --line: #24344a;
  --line-strong: #7089a8;
  --line-invert: #1d3352;
  --focus: #ffd166;
  --focus-invert: #ffd166;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, .45);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6.5rem; /* 2.4.11 Focus Not Obscured: sticky header clearance */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 .6em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, li { max-width: var(--measure); }
p { margin: 0 0 1.1em; }

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a:hover { color: var(--brand-hover); }

/* Focus: visible on every surface, never removed (2.4.7 / 2.4.13) */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.band--dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--focus-invert); }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--brand); color: #fff; }

/* ---------- Utilities ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
@media (max-width: 30rem) { .container { width: calc(100% - 1.75rem); } }

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

.lede { font-size: var(--step-2); color: var(--ink-muted); line-height: 1.5; max-width: 46ch; }
.muted { color: var(--ink-muted); }
.small { font-size: .875rem; line-height: 1.6; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem;
}
.band--dark .eyebrow { color: var(--brand-on-dark); }

/* ---------- Skip link (2.4.1) ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--focus);
  border-radius: var(--radius-sm);
  padding: .85rem 1.15rem;
  font-weight: 650;
  text-decoration: none;
  transition: top .15s ease-in-out;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(2px)) { .site-header { background: var(--bg); } }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: .6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
  padding: .35rem .1rem;
  flex: 0 0 auto;
}
.brand:hover { color: var(--brand); }
.brand__mark { flex: 0 0 auto; width: 2rem; height: 2rem; }
.brand__name { white-space: nowrap; font-weight: 500; }
.brand__name b { font-weight: 700; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .5rem .85rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--bg-alt); }

@media (max-width: 26rem) {
  .brand { font-size: 1.05rem; gap: .45rem; }
  .brand__mark { width: 1.75rem; height: 1.75rem; }
  .nav-toggle { padding: .5rem .65rem; }
  /* keeps the button's accessible name while reclaiming width */
  .nav-toggle__label {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .15rem;
  margin: 0;
  padding: 0;
}
.primary-nav li { max-width: none; }
.primary-nav a {
  display: inline-block;
  padding: .6rem .7rem;
  min-height: 2.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: .96rem;
  white-space: nowrap;
}
.primary-nav a:hover { background: var(--bg-alt); color: var(--brand); }
.primary-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 0 var(--brand); /* not colour alone: also bold + aria-current */
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--bg-alt); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

@media (max-width: 64rem) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .75rem 0 1.25rem;
  }
  .primary-nav[hidden] { display: none; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
  }
  .primary-nav a { display: block; padding: .8rem .75rem; font-size: 1.05rem; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 0 var(--brand); }
  .primary-nav .nav-cta { margin-top: .5rem; }
  .primary-nav .btn { width: 100%; justify-content: center; }
}
@media (min-width: 64.0625rem) {
  .primary-nav[hidden] { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.875rem;
  padding: .7rem 1.25rem;
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
/* Doubled class selectors so buttons keep their own colours inside
   contextual link rules such as .primary-nav a or .band--dark a. */
.btn.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }

.btn.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.btn--secondary:hover { background: var(--bg-alt); border-color: var(--ink-muted); color: var(--ink); }

.btn.btn--onDark { background: transparent; color: var(--ink-invert); border-color: rgba(255,255,255,.55); }
.btn.btn--onDark:hover { background: rgba(255,255,255,.14); color: var(--ink-invert); }

.btn--lg { min-height: 3.25rem; padding: .9rem 1.6rem; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }

/* Arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 1.5rem;
  padding: .25rem 0;
  font-weight: 650;
  text-decoration: underline;
}
.arrow-link::after { content: "\2192"; }

/* ---------- Sections & bands ---------- */
.band { padding-block: clamp(3.25rem, 2rem + 5vw, 6rem); }
.band--alt { background: var(--bg-alt); }
.band--dark { background: var(--bg-invert); color: var(--ink-invert); }
.band--dark h1, .band--dark h2, .band--dark h3, .band--dark h4 { color: var(--ink-invert); }
.band--dark p, .band--dark li { color: var(--ink-invert-muted); }
.band--dark a { color: var(--brand-on-dark); }
.band--dark .lede { color: var(--ink-invert-muted); }
.band--tight { padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }

.section-head { max-width: 56ch; margin-bottom: 2.5rem; }
.section-head p { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding-block: clamp(3rem, 2rem + 6vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(38rem 26rem at 78% 12%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(30rem 22rem at 8% 92%, color-mix(in srgb, var(--ok) 12%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero__grid > * { min-width: 0; }
.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; }
}
.hero h1 { margin-bottom: .45em; }
.hero .lede { max-width: 40ch; }

.trust-line {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-muted);
  max-width: 46ch;
}
.trust-line strong { color: var(--ink); font-weight: 650; }

/* Hero card (scan form) */
.card-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.card-form h2 { font-size: var(--step-2); margin-bottom: .35em; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 44rem) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.band--alt .card { background: var(--bg); }
.card h3 { margin-bottom: .5em; }
.card p:last-of-type { margin-bottom: 1rem; }
.card .arrow-link { margin-top: auto; align-self: flex-start; }
.card__icon {
  width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }

.card--flat { box-shadow: none; background: transparent; }
.band--dark .card {
  background: var(--bg-invert-alt);
  border-color: var(--line-invert);
  box-shadow: none;
}
.band--dark .card__icon { background: rgba(141, 188, 255, .16); color: var(--brand-on-dark); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1.5rem 2rem; grid-template-columns: 1fr; }
.stats > * { min-width: 0; }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { border-top: 3px solid var(--accent-on-dark); padding-top: 1rem; }
.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 1.6rem + 2vw, 2.9rem);
  font-weight: 650;
  line-height: 1.05;
  color: var(--ink-invert);
  letter-spacing: -.02em;
}
.stat__label { margin: .5rem 0 0; font-size: .95rem; color: var(--ink-invert-muted); max-width: 30ch; }

/* ---------- Steps / timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps > li {
  counter-increment: step;
  max-width: none;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.1rem;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--brand);
  margin-bottom: .4rem;
}
.steps h3 { font-size: var(--step-1); margin-bottom: .4em; }
.steps p { font-size: .95rem; color: var(--ink-muted); margin-bottom: 0; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline > li {
  max-width: none;
  display: grid;
  gap: .35rem 1.5rem;
  grid-template-columns: 1fr;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline > li:first-child { border-top: 1px solid var(--line); }
@media (min-width: 44rem) {
  .timeline > li { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; }
}
.timeline__date { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline__body p { margin: .2rem 0 0; color: var(--ink-muted); font-size: .95rem; }
.timeline__body h3 { font-size: var(--step-1); margin: 0; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.checklist > li {
  position: relative;
  padding-left: 1.9rem;
  max-width: var(--measure);
}
.checklist > li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--ok-soft);
  border: 1px solid var(--ok);
}
.checklist > li::after {
  content: "";
  position: absolute;
  left: .34rem; top: .72em;
  width: .5rem; height: .28rem;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.band--dark .checklist > li::before { background: rgba(121, 211, 165, .15); }

.crosslist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.crosslist > li { position: relative; padding-left: 1.9rem; }
.crosslist > li::before {
  content: "\00d7";
  position: absolute;
  left: .12rem; top: 0;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--danger);
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
caption { text-align: left; padding: 1rem 1.1rem; font-weight: 650; color: var(--ink); }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-alt); font-weight: 700; color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Callouts ---------- */
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout h3 { font-size: var(--step-1); margin-bottom: .4em; }
.callout--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout--legal { border-left-color: var(--ink-muted); }

/* ---------- FAQ (native disclosure) ---------- */
.faq { border-top: 1px solid var(--line); max-width: 58rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.15rem .25rem;
  min-height: 3rem;
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: .7rem; height: .7rem;
  margin-top: .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 .25rem 1.4rem; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 650; font-size: .95rem; }
.field .hint { font-size: .8125rem; color: var(--ink-muted); margin: 0; max-width: none; }
.req { color: var(--danger); font-weight: 700; }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: .65rem .8rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
textarea { min-height: 8rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-muted); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--danger);
  border-width: 2px;
  background: var(--danger-soft);
}
.field__error {
  display: none;
  font-size: .85rem;
  font-weight: 650;
  color: var(--danger);
  margin: 0;
  max-width: none;
}
.field__error::before { content: "\26A0\FE0E  "; }
.field--invalid .field__error { display: block; }

.checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
}
.checkbox input[type="checkbox"] {
  width: 1.5rem; height: 1.5rem;
  margin: .15rem 0 0;
  accent-color: var(--brand);
  flex: 0 0 auto;
}
.checkbox label { font-weight: 450; font-size: .9rem; line-height: 1.55; }

.form-status { margin: 0 0 1.25rem; }
.form-status:empty { display: none; }
.alert {
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  border: 1px solid;
  font-size: .95rem;
}
.alert p { margin: 0; max-width: none; }
.alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.alert li { max-width: none; }
.alert--error { background: var(--danger-soft); border-color: var(--danger); color: var(--ink); }
.alert--success { background: var(--ok-soft); border-color: var(--ok); color: var(--ink); }
.alert strong { color: var(--ink); }

/* ---------- Logo / standards strip ---------- */
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.badges li {
  max-width: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--bg);
}
.band--dark .badges li { border-color: var(--line-invert); color: var(--ink-invert-muted); background: transparent; }

/* ---------- CTA band ---------- */
.cta-panel > * { min-width: 0; }
.cta-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) { .cta-panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.cta-panel h2 { margin-bottom: .35em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-invert);
  color: var(--ink-invert-muted);
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem) 2rem;
  border-top: 1px solid var(--line-invert);
}
.site-footer h2, .site-footer h3 { color: var(--ink-invert); }
.site-footer a { color: var(--ink-invert); text-decoration: underline; }
.site-footer a:hover { color: var(--brand-on-dark); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-grid h3 { font-family: var(--font-sans); font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer-grid li { max-width: none; }
.footer-grid ul a { display: inline-block; padding: .35rem 0; min-height: 1.5rem; }
.footer-brand p { color: var(--ink-invert-muted); font-size: .95rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-invert);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; max-width: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 1.75rem + 4vw, 4.5rem);
}
.page-hero .lede { max-width: 52ch; margin-bottom: 0; }
.breadcrumb { margin-bottom: 1.25rem; font-size: .875rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li { max-width: none; color: var(--ink-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line-strong); }
.breadcrumb a { display: inline-block; padding: .15rem 0; }

/* ---------- Prose blocks ---------- */
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: .5rem; margin: 0 0 1.4rem; }
.prose dl { margin: 0 0 1.5rem; }
.prose dt { font-weight: 700; margin-top: 1rem; }
.prose dd { margin: .2rem 0 0; color: var(--ink-muted); max-width: var(--measure); }

.layout-sidebar { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); grid-template-columns: 1fr; }
.layout-sidebar > * { min-width: 0; }
@media (min-width: 64rem) { .layout-sidebar { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }
.sidebar { position: static; }
@media (min-width: 64rem) { .sidebar { position: sticky; top: 6.5rem; } }
.sidebar .card { gap: .25rem; }

/* ---------- Address ---------- */
address { font-style: normal; line-height: 1.6; }
.footer-address { color: var(--ink-invert-muted); }

/* ---------- Spacing utilities ---------- */
.u-hidden { display: none !important; }
.u-m0 { margin: 0; }
.u-mb0 { margin-bottom: 0; }
.u-mb-xs { margin-bottom: .4rem; }
.u-mt-xs { margin-top: .75rem; }
.u-mt-sm { margin-top: 1.25rem; margin-bottom: 0; }
.u-mt-md { margin-top: 1.5rem; }
.u-mt-lg { margin-top: 2rem; }
.grid--form { gap: 1.15rem; }
.footer-note { margin-top: 1.5rem; max-width: 70ch; color: var(--ink-invert-muted); }
.footer-brand .brand, .footer-brand-link { color: var(--ink-invert); }

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

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .btn-row, .card-form { display: none !important; }
  body { color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
