/* ===========================================================================
   High Definition Care — marketing site
   ---------------------------------------------------------------------------
   One stylesheet, three module skins. Every colour lives in the token block
   below; no rule further down may contain a hex literal. Module identity is
   carried by three custom properties (--accent, --accent-deep, --accent-tint),
   so a new module is a four-line addition to the THEMES section and nothing
   else.

   Palette and geometry were measured out of the approved PDF flyers rather
   than eyeballed. See website/README.md.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. FONTS  (self-hosted; the site makes no third-party requests)
   --------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('./inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------------------------------------------------------------------------
   2. TOKENS
   --------------------------------------------------------------------------- */
:root {
  /* Surface and line ----------------------------------------------------- */
  --hdc-navy: #1f3a5f;
  --hdc-navy-deep: #172c48;
  --hdc-blue: #2a6fb8;
  --hdc-blue-ink: #215891;      /* link hover; 7.3:1 on white */
  --hdc-line: #e4e8ee;
  --hdc-line-strong: #b9c2cf;   /* control borders, 3:1 boundary */
  --hdc-surface: #f4f7fb;
  --hdc-white: #fff;

  /* Text ----------------------------------------------------------------- */
  --hdc-heading: #1f3a5f;       /* 11.5:1 on white */
  --hdc-text: #2a3a4e;          /* 11.6:1 */
  --hdc-text-2: #3d4d5c;        /*  8.7:1 */
  --hdc-muted: #66717f;         /*  5.0:1 on white, 4.6:1 on --hdc-surface.
                                    Deliberately darker than the flyer's
                                    #6A7685, which drops to 4.3:1 on the card
                                    background and fails AA there. */
  --hdc-on-dark: #fff;
  --hdc-on-dark-2: #c9d6e5;     /*  7.8:1 on navy */

  /* Accent — themeable. Defaults to the platform green. ------------------ */
  --accent: #7fb539;            /* FILLS, RULES, BARS, DOTS. Never text. */
  --accent-deep: #3f6910;       /* accent as text, on white or on tint */
  --accent-tint: #eef6e0;
  --accent-on-dark: #a8d46b;    /* accent as text on navy */

  /* Type ----------------------------------------------------------------- */
  --ff-display: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ff-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --fs-fine: 0.6875rem;
  --fs-label: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-h4: 1.125rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.125rem);
  --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --fs-stat: clamp(2.25rem, 1.8rem + 2vw, 2.75rem);

  --lh-tight: 1.1;
  --lh-head: 1.22;
  --lh-body: 1.6;

  --ls-h1: -0.022em;            /* Helvetica Neue sets tighter than Inter */
  --ls-h2: -0.018em;
  --ls-label: 0.085em;

  /* Space ---------------------------------------------------------------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --section-y: clamp(56px, 7vw, 112px);
  --section-y-tight: clamp(40px, 5vw, 72px);

  /* Radii — print-crisp. Do not raise. ----------------------------------- */
  --r-1: 3px;
  --r-pill: 999px;

  /* Border weights — the flyer's structural language --------------------- */
  --bw-rule: 3px;               /* step-card top rule */
  --bw-edge: 6px;               /* stat-card left bar, module-card top bar */
  --bw-page: 5px;               /* accent page edge */

  --shadow-2: 0 8px 24px -12px rgb(31 58 95 / 18%);

  /* Layout --------------------------------------------------------------- */
  --container: 1120px;          /* the flyer's 543/612pt content column */
  --container-narrow: 760px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 68px;

  --dur: 160ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------------------------------------------------------------------------
   3. THEMES
   Applied with data-theme on <body> for a whole page, or on any element for a
   single card. Custom properties inherit, so the home page can show a teal
   card next to an amber one with no extra CSS.
   --------------------------------------------------------------------------- */
[data-theme='platform'] {
  --accent: #7fb539; --accent-deep: #3f6910;
  --accent-tint: #eef6e0; --accent-on-dark: #a8d46b;
}
[data-theme='quality'] {
  --accent: #2fa7ab; --accent-deep: #126063;
  --accent-tint: #dff3f4; --accent-on-dark: #5fc9cd;
}
[data-theme='policy'] {
  --accent: #c47d1b; --accent-deep: #7a4e08;
  --accent-tint: #fbefd8; --accent-on-dark: #e2a44a;
}
[data-theme='neutral'] {
  --accent: #2a6fb8; --accent-deep: #1f3a5f;
  --accent-tint: #eaf1f9; --accent-on-dark: #8fb9e4;
}

/* ---------------------------------------------------------------------------
   4. BASE
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--hdc-white);
  color: var(--hdc-text);
  font: var(--fs-body) / var(--lh-body) var(--ff-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--hdc-heading);
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: var(--lh-head);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0; }
p + p { margin-top: var(--sp-4); }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--hdc-blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--hdc-blue-ink); }

img, svg { max-width: 100%; height: auto; }
strong, b { font-weight: 700; color: var(--hdc-heading); }

:focus-visible {
  outline: 3px solid var(--hdc-blue);
  outline-offset: 2px;
  border-radius: var(--r-1);
}
.cta-band :focus-visible { outline-color: var(--hdc-white); }

::selection { background: var(--accent-tint); color: var(--hdc-heading); }

/* ---------------------------------------------------------------------------
   5. LAYOUT PRIMITIVES
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--surface { background: var(--hdc-surface); }
.section + .section { border-top: 1px solid var(--hdc-line); }
.section--surface + .section, .section + .section--surface { border-top: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--hdc-navy);
  color: var(--hdc-on-dark);
  font-weight: 500;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ---------------------------------------------------------------------------
   6. PAGE CHROME
   --------------------------------------------------------------------------- */

/* The flyers carry a navy rule across the top and a full-height accent bar
   down the left edge. Both are reproduced here: the accent bar is fixed to the
   viewport on wide screens, and folds up into a horizontal rule where there is
   no width to spare. */
.page-rule {
  height: 4px;
  background: var(--hdc-navy);
}
.page-edge {
  height: var(--bw-page);
  background: var(--accent);
}
@media (min-width: 1024px) {
  body { padding-left: 10px; }
  .page-edge {
    position: fixed;
    inset: 0 auto 0 0;
    width: 10px;
    height: auto;
    z-index: 150;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hdc-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}
.site-header__logo { display: flex; align-items: center; flex: none; }
.site-header__logo img { width: 190px; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: var(--sp-5); }
.site-nav a {
  display: block;
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
  color: var(--hdc-text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--hdc-heading); }
.site-nav a[aria-current='page'] {
  color: var(--hdc-heading);
  border-bottom-color: var(--accent);
}
/* The nav's CTA is a button, not a nav link; restate the parts the link rule
   above would otherwise win on specificity. */
.site-nav a.btn {
  display: inline-flex;
  padding: 0 var(--sp-4);
  border-bottom: 1px solid transparent;
  font-size: var(--fs-sm);
}
.site-nav a.btn--primary, .site-nav a.btn--primary:hover { color: var(--hdc-on-dark); }

.nav-toggle { display: none; }

.tauspan-lockup {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: none;
  color: var(--hdc-muted);
  font-size: var(--fs-fine);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: none;
}
.tauspan-lockup img { width: 66px; }

@media (max-width: 900px) {
  .site-header__inner { gap: var(--sp-3); }
  .site-header__logo img { width: 158px; }
  .tauspan-lockup { display: none; }
  .nav-toggle {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-left: auto;
    padding: var(--sp-2) var(--sp-3);
    border: 1px solid var(--hdc-line-strong);
    border-radius: var(--r-1);
    background: none;
    color: var(--hdc-heading);
    font: 500 var(--fs-sm) var(--ff-body);
    cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    background: var(--hdc-white);
    border-bottom: 1px solid var(--hdc-line);
    box-shadow: var(--shadow-2);
  }
  .site-nav[data-open='true'] { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a {
    padding-block: var(--sp-4);
    border-bottom: 1px solid var(--hdc-line);
    font-size: var(--fs-body);
  }
  .site-nav a[aria-current='page'] { border-bottom-color: var(--accent); }
}

/* Footer -------------------------------------------------------------------- */
.site-footer {
  background: var(--hdc-surface);
  border-top: 1px solid var(--hdc-line);
  padding-block: var(--section-y-tight);
}
.site-footer__cols {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer h2 {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--hdc-muted);
}
.site-footer li + li { margin-top: var(--sp-2); }
.site-footer a { font-size: var(--fs-sm); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__mark img { width: 200px; margin-bottom: var(--sp-4); }
.site-footer__bar {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--hdc-line);
  color: var(--hdc-muted);
  font-size: var(--fs-fine);
  line-height: 1.65;
}
.site-footer__bar p + p { margin-top: var(--sp-2); }
@media (max-width: 760px) {
  .site-footer__cols { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ---------------------------------------------------------------------------
   7. COMPONENTS
   --------------------------------------------------------------------------- */

/* Eyebrow pill — always a <p>, never a heading. ---------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent-deep);
  font: 700 var(--fs-label) / 1 var(--ff-display);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Two-tone headline -------------------------------------------------------- */
.headline__b { color: var(--accent-deep); }

/* Section head ------------------------------------------------------------- */
.section-head { max-width: var(--container-narrow); margin-bottom: var(--sp-7); }
.section-head .eyebrow { margin-bottom: var(--sp-4); }
.section-head .lead {
  margin-top: var(--sp-4);
  color: var(--hdc-text-2);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

/* Hero --------------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 6vw, 88px) var(--section-y); }
.hero .eyebrow { margin-bottom: var(--sp-5); }
.hero h1 { max-width: 16ch; }
.hero__lead {
  max-width: 60ch;
  margin-top: var(--sp-5);
  color: var(--hdc-text-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--r-1);
  font: 500 1rem var(--ff-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--primary { background: var(--hdc-navy); color: var(--hdc-on-dark); }
.btn--primary:hover { background: var(--hdc-navy-deep); color: var(--hdc-on-dark); }
.btn--accent { background: var(--accent-deep); color: var(--hdc-on-dark); }
.btn--accent:hover { background: var(--hdc-navy); color: var(--hdc-on-dark); }
.btn--ghost { border-color: var(--hdc-line-strong); color: var(--hdc-heading); }
.btn--ghost:hover { border-color: var(--hdc-navy); color: var(--hdc-heading); }
.btn--on-dark { background: var(--hdc-white); color: var(--hdc-navy); }
.btn--on-dark:hover { background: var(--hdc-on-dark-2); color: var(--hdc-navy-deep); }

/* Stat cards — big word-figure, thick accent left bar ---------------------- */
.stat-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(3, 1fr); }
.stat-card {
  padding: var(--sp-5);
  border: 1px solid var(--hdc-line);
  border-left: var(--bw-edge) solid var(--accent);
  background: var(--hdc-white);
}
/* Longhand, not the `font` shorthand: a clamp() inside the shorthand's
   size/line-height slot does not survive the parser reliably. */
.stat-card__fig {
  font-family: var(--ff-display);
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-h2);
  color: var(--hdc-heading);
}
.stat-card h3 { margin-top: var(--sp-1); font-size: var(--fs-h4); color: var(--accent-deep); }
.stat-card p:not([class]) { margin-top: var(--sp-3); color: var(--hdc-text-2); font-size: var(--fs-sm); }

/* Step strip — ordered, because the order is the meaning ------------------- */
.step-strip { display: grid; gap: var(--sp-4); grid-template-columns: repeat(4, 1fr); }
.step-card {
  padding: var(--sp-5);
  border: 1px solid var(--hdc-line);
  border-top: var(--bw-rule) solid var(--accent);
  background: var(--hdc-surface);
}
.step-card__num {
  margin-bottom: var(--sp-3);
  color: var(--accent-deep);
  font: 700 var(--fs-label) / 1 var(--ff-display);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.step-card h3 { font-size: var(--fs-h4); }
.step-card p:not([class]) { margin-top: var(--sp-2); color: var(--hdc-text-2); font-size: var(--fs-sm); }

/* Benefit list ------------------------------------------------------------- */
.benefit-list { display: grid; gap: var(--sp-5); }
.benefit-list > li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--sp-3);
  align-items: start;
}
.benefit-list svg { width: 22px; height: 22px; margin-top: 2px; fill: var(--accent-deep); }
.benefit-list p { color: var(--hdc-text-2); }
.benefit-list--2col { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-6); }

/* Module cards ------------------------------------------------------------- */
.module-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, 1fr); }
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border: 1px solid var(--hdc-line);
  border-top: var(--bw-edge) solid var(--accent);
  background: var(--hdc-white);
}
.module-card__no {
  color: var(--hdc-muted);
  font: 700 var(--fs-label) / 1 var(--ff-display);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.module-card h3 { margin-top: var(--sp-3); font-size: 1.75rem; }
.module-card h3 a { color: inherit; text-decoration: none; }
/* Stretched link: the whole card is clickable, but the accessible name stays
   the module title rather than every word in the card. */
.module-card h3 a::after { content: ''; position: absolute; inset: 0; }
.module-card__lead { margin-top: var(--sp-3); color: var(--hdc-text-2); }
.module-card ul { margin-top: var(--sp-5); display: grid; gap: var(--sp-3); }
.module-card ul li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: var(--sp-3);
  align-items: baseline;
  color: var(--hdc-text-2);
  font-size: var(--fs-sm);
}
.module-card ul li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.module-card__cue {
  margin-top: var(--sp-6);
  color: var(--accent-deep);
  font-weight: 500;
  font-size: var(--fs-sm);
}
.module-card:has(a:focus-visible) { outline: 3px solid var(--hdc-blue); outline-offset: 2px; }

/* Chips — non-interactive audience labels ---------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--hdc-line));
  border-radius: var(--r-pill);
  color: var(--hdc-text-2);
  font-size: var(--fs-sm);
}

/* CTA band ----------------------------------------------------------------- */
.cta-band { background: var(--hdc-navy); padding-block: var(--section-y-tight); }
.cta-band__kicker {
  margin-bottom: var(--sp-4);
  color: var(--accent-on-dark);
  font: 700 var(--fs-label) / 1 var(--ff-display);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.cta-band h2 { color: var(--hdc-on-dark); max-width: 22ch; }
.cta-band p:not([class]) { max-width: 62ch; margin-top: var(--sp-4); color: var(--hdc-on-dark-2); }
.cta-band .btn { margin-top: var(--sp-6); }

/* Status tags and the roadmap register -------------------------------------
   Status is always carried in words, never by colour alone: the roadmap tag reads
   "On the roadmap" and the Today/Designed-for table labels both its columns. */
.status-tag {
  display: inline-block;
  margin-right: var(--sp-1);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font: 700 var(--fs-label) / 1.4 var(--ff-display);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.status-tag--live, .status-tag--flag { background: var(--accent-tint); color: var(--accent-deep); }
.status-tag--roadmap { border: 1px dashed var(--hdc-line-strong); color: var(--hdc-muted); }


.tier {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--hdc-line);
}
.tier:last-child { border-bottom: 1px solid var(--hdc-line); }
.tier__label {
  color: var(--hdc-muted);
  font: 700 var(--fs-label) / 1.4 var(--ff-display);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.tier__label b { display: block; color: var(--hdc-heading); font-size: var(--fs-h4); letter-spacing: normal; text-transform: none; }
.tier p:not([class]) { color: var(--hdc-text-2); font-size: var(--fs-sm); }
.tier p + p { margin-top: var(--sp-3); }

.horizon { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-6); }
.horizon__head {
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--hdc-line);
  color: var(--hdc-muted);
  font: 700 var(--fs-label) / 1 var(--ff-display);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.horizon__row {
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--hdc-line);
  font-size: var(--fs-sm);
}
.horizon__row--now { color: var(--hdc-text); border-right: 1px solid var(--hdc-line); padding-right: var(--sp-6); }
.horizon__row--next { color: var(--hdc-muted); }
.horizon__head--next, .horizon__row--next { padding-left: var(--sp-6); }
.horizon__head--now { padding-right: var(--sp-6); border-right: 1px solid var(--hdc-line); }

/* Question/answer samples (Policy) ----------------------------------------- */
.qa-list { display: grid; gap: var(--sp-4); }
.qa {
  padding: var(--sp-5);
  border: 1px solid var(--hdc-line);
  border-left: var(--bw-edge) solid var(--accent);
  background: var(--hdc-surface);
}
.qa__q { color: var(--hdc-heading); font-size: var(--fs-lead); font-weight: 500; font-style: italic; }
.qa__cite {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: var(--fs-fine);
  font-weight: 500;
}

/* Finding anatomy (Quality) ------------------------------------------------ */
.finding {
  margin: 0;
  border: 1px solid var(--hdc-line);
  background: var(--hdc-white);
}
.finding__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--hdc-line);
  background: var(--accent-tint);
}
.finding__head h3 { font-size: var(--fs-h4); }
.finding__rows { display: grid; }
.finding__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
}
.finding__row + .finding__row { border-top: 1px solid var(--hdc-line); }
.finding__key {
  color: var(--hdc-muted);
  font: 700 var(--fs-label) / 1.5 var(--ff-display);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.finding__val { color: var(--hdc-text-2); font-size: var(--fs-sm); }
.finding figcaption {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--hdc-line);
  background: var(--hdc-surface);
  color: var(--hdc-muted);
  font-size: var(--fs-fine);
}

/* Prose + FAQ -------------------------------------------------------------- */
.prose { max-width: 66ch; }
.prose p { margin-top: var(--sp-4); color: var(--hdc-text-2); }
.prose p:first-child { margin-top: 0; }

.faq { border-top: 1px solid var(--hdc-line); }
.faq details { border-bottom: 1px solid var(--hdc-line); }
.faq summary {
  padding-block: var(--sp-4);
  color: var(--hdc-heading);
  font-family: var(--ff-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent-deep); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details > p { color: var(--hdc-text-2); }
.faq details > p + p { margin-top: var(--sp-4); }
.faq details > p:last-of-type { padding-bottom: var(--sp-5); }

/* Contact ------------------------------------------------------------------ */
.contact__mail {
  display: inline-block;
  margin-block: var(--sp-2) var(--sp-6);
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  font-weight: 700;
  letter-spacing: var(--ls-h2);
}

/* Fine print --------------------------------------------------------------- */
.fine { color: var(--hdc-muted); font-size: var(--fs-fine); line-height: 1.65; }

/* Decorative constellation, lifted from the flyers. Lives once in the layout
   and is positioned against <main>, which every page opens with a hero. -----*/
main { position: relative; }
.constellation {
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  right: var(--gutter);
  width: 168px;
  pointer-events: none;
}
.constellation line { stroke: var(--hdc-line-strong); stroke-width: 1.1; }
.constellation circle { fill: var(--hdc-blue); }
.constellation .node--accent { fill: var(--accent); }
@media (max-width: 960px) { .constellation { display: none; } }

/* ---------------------------------------------------------------------------
   8. RESPONSIVE
   Explicit breakpoints rather than auto-fit: a 3-up that reflows to 2+1 leaves
   an orphan, and the step strip must never render 3-across because that breaks
   the numbered reading order.
   --------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid > :last-child { grid-column: 1 / -1; }
  .step-strip { grid-template-columns: repeat(2, 1fr); }
  .tier { grid-template-columns: 1fr; gap: var(--sp-3); }
  .finding__row { grid-template-columns: 1fr; gap: var(--sp-2); }
}
@media (max-width: 820px) {
  .module-grid { grid-template-columns: 1fr; }
  .benefit-list--2col { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid > :last-child { grid-column: auto; }
  .step-strip { grid-template-columns: 1fr; }
  .horizon { grid-template-columns: 1fr; }
  .horizon__head { display: none; }
  .horizon__row--now, .horizon__head--now { border-right: 0; padding-right: 0; }
  .horizon__row--next, .horizon__head--next { padding-left: 0; }
  .horizon__row--now { border-bottom: 0; padding-bottom: var(--sp-2); }
  .horizon__row--now::before, .horizon__row--next::before {
    display: block;
    margin-bottom: var(--sp-1);
    color: var(--hdc-muted);
    font: 700 var(--fs-label) / 1 var(--ff-display);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
  }
  .horizon__row--now::before { content: 'Today'; }
  .horizon__row--next::before { content: 'Designed for'; }
}
@media (max-width: 560px) {
  /* Give narrow screens their horizontal space back. */
  .stat-card { border-left-width: 1px; border-top: var(--bw-edge) solid var(--accent); }
  .qa { border-left-width: 1px; border-top: var(--bw-edge) solid var(--accent); }
  .hero__actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   9. MOTION AND CONTRAST PREFERENCES
   Reduced motion is the default path; movement is opt-in.
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .module-card { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
}
@media (prefers-contrast: more) {
  :root { --hdc-line: var(--hdc-line-strong); --hdc-muted: var(--hdc-text-2); }
}
@media print {
  .site-header, .nav-toggle, .constellation, .page-edge { display: none; }
  body { padding-left: 0; }
}
