/* ==========================================================================
   HospiceReferrals.com — "The Institution"
   Tokens, base, components, sections. One file, no framework.
   The honeypot rule (.hp-field) lives inline in _Layout so it applies before this file loads.
   ========================================================================== */

:root {
  /* Palette */
  --white: #ffffff;
  --surface-1: #f5f7fa;
  --surface-2: #ebeff4;
  --line: #d5dce5;
  --line-strong: #b6c0cd;
  --ink: #15202e;
  --ink-2: #44546a;
  --ink-3: #5f6e80;
  --navy: #0b1f3a;
  --navy-2: #163158;
  --navy-tint: #e4eaf3;
  --blue: #1f5fa8;
  --teal: #0f6e77;
  --teal-tint: #e3f1f2;
  --accent: #8a1c2b;
  --accent-2: #6e1522;
  --error: #b3261e;
  --error-tint: #fbedec;
  --on-navy: #f5f7fa;
  --on-navy-2: #c9d3e0;
  --on-navy-rule: rgba(255, 255, 255, 0.18);

  /* Type (the "Fallback" faces are the metric-matched local fonts declared below, used only until the web fonts arrive) */
  --font-sans: "Public Sans", "Public Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-md: 1.1875rem;   /* 19 */
  --fs-lg: 1.375rem;    /* 22 */
  --fs-xl: 1.625rem;    /* 26 phone, 28 desktop */
  --fs-2xl: 1.875rem;   /* 30 phone, 34 desktop */
  --fs-3xl: 2rem;       /* 32 phone, 38 desktop */
  --fs-4xl: 2.5rem;     /* 40 phone, 54 desktop */
  --lh-body: 1.6;
  --measure: 66ch;

  /* Spacing (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --gutter: 1.25rem;
  --container: 75rem;
  --section-y: var(--s-8);
  --radius: 2px;
  --topbar-h: 4rem;
}
@media (min-width: 48em) { :root { --gutter: 2rem; --section-y: 5rem; --fs-xl: 1.75rem; --fs-2xl: 2.125rem; --fs-3xl: 2.25rem; --fs-4xl: 3rem; } }
@media (min-width: 64em) { :root { --gutter: 3rem; --section-y: var(--s-9); --fs-3xl: 2.375rem; --fs-4xl: 3.375rem; } }

/* ---------- Web-font fallbacks ----------
   The Google Fonts stylesheet uses display=swap, so the first paint is in a local font. These faces scale Arial and
   Georgia to the web fonts' advance widths and vertical metrics (measured in Chrome at 100px: Public Sans ascent 0.95,
   descent 0.23; Source Serif 4 ascent 1.04, descent 0.34), so the swap reflows next to nothing. Overrides are divided
   by size-adjust because they are relative to the adjusted size. Source Serif 4 has an optical-size axis, so one ratio
   cannot fit every size; it is tuned to the 38-54px headings, where wrapping would otherwise shift the page. */
@font-face { font-family: "Public Sans Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 500; size-adjust: 103.8%; ascent-override: 91.5%; descent-override: 22.2%; line-gap-override: 0%; }
@font-face { font-family: "Public Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; size-adjust: 97.8%; ascent-override: 97.1%; descent-override: 23.5%; line-gap-override: 0%; }
@font-face { font-family: "Source Serif 4 Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 108.3%; descent-override: 35.4%; line-gap-override: 0%; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--fs-base)/var(--lh-body) var(--font-sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-4xl); line-height: 1.08; }
h2 { font-size: var(--fs-3xl); line-height: 1.12; }
h3 { font-size: var(--fs-lg); line-height: 1.25; }
h4 { font-size: var(--fs-md); line-height: 1.3; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
strong { font-weight: 600; color: var(--navy); }
sup.fn { font-size: 0.68em; line-height: 0; vertical-align: super; margin-left: 0.08em; font-feature-settings: "tnum"; }
sup.fn a { text-decoration: none; color: var(--blue); font-weight: 600; padding: 0 0.1em; }
sup.fn a:hover { text-decoration: underline; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; color: var(--navy); }
.icon--lg { width: 1.5rem; height: 1.5rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.section--navy :focus-visible { outline-color: var(--white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -4rem; z-index: 100; padding: var(--s-3) var(--s-4); background: var(--navy); color: var(--white); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--s-4); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section--tint { background: var(--surface-1); }
.section--navy { background: var(--navy); color: var(--on-navy); border-top: 0; }
.split { display: grid; gap: var(--s-6); }
.split__body > * + * { margin-top: var(--s-7); }
@media (min-width: 64em) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-8); align-items: start; }
  .section-head--sticky { position: sticky; top: calc(var(--topbar-h) + var(--s-6)); }
}

/* ---------- Type helpers ---------- */
.eyebrow, .section-label, .meaning-label, .lead__strip, .ledger__title, .changes__title, .fit__title, .subhead, .facts__row dt, .report__stamp, .sources__title, .families__title, .steps__title, .prep__title {
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.3;
}
.eyebrow { display: flex; align-items: center; gap: var(--s-3); color: var(--blue); margin-bottom: var(--s-5); }
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: var(--blue); }
.section-label { display: flex; align-items: center; gap: var(--s-3); color: var(--blue); margin-bottom: var(--s-4); }
.section-num { font-family: var(--font-serif); font-size: var(--fs-base); font-weight: 500; letter-spacing: 0; color: var(--navy); font-feature-settings: "tnum"; }
.section-num::after { content: ""; display: inline-block; width: 1.5rem; height: 1px; background: var(--line-strong); vertical-align: middle; margin-left: var(--s-3); }
.section-label--center { justify-content: center; }
.section-head h2 { max-width: 24ch; }
.section-head--inline { margin-bottom: var(--s-5); }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.25em; }
.prose__note { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-style: italic; color: var(--ink-2); font-size: var(--fs-base); }
.lede { max-width: var(--measure); font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); }
.subhead { color: var(--ink-3); margin-top: var(--s-8); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.meaning-label { display: block; color: var(--teal); font-size: var(--fs-xs); margin-bottom: var(--s-1); }
.stat__value, .evidence__stat, .report__rows dd, .report__meta dd, .faq__num, .protocol__num { font-feature-settings: "tnum", "kern"; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: 0 var(--s-5); border: 1px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font-sans); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn--primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--white); }
.btn--sm { min-height: 2.5rem; padding: 0 var(--s-4); font-size: var(--fs-sm); }
.btn--lg { min-height: 3.375rem; padding: 0 var(--s-6); font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--topbar-h); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: var(--s-3); color: var(--navy); text-decoration: none; }
.brand__mark { width: 1.625rem; height: 1.625rem; }
.brand__name { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand__tld { font-weight: 400; color: var(--ink-3); }
/* Only the tagline absorbs a squeeze; the phone link and the CTA keep their single line. */
.topbar__tagline { display: none; min-width: 0; color: var(--ink-3); font-size: var(--fs-sm); letter-spacing: 0.01em; }
@media (min-width: 64em) { .topbar__tagline { display: block; margin-right: auto; padding-left: var(--s-5); border-left: 1px solid var(--line); line-height: 1.2; } }
/* With a phone number in the bar there is no room for the tagline until 72em (an iPad in landscape is 64em exactly). */
@media (min-width: 64em) and (max-width: 71.99em) { .topbar__inner--phone .topbar__tagline { display: none; } }
.topbar__cta { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 29.99em) { .topbar__cta { display: none; } }
.topbar__phone { display: none; flex: 0 0 auto; align-items: center; gap: var(--s-2); margin-left: auto; color: var(--navy); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.topbar__phone .icon { width: 1.125rem; height: 1.125rem; color: var(--teal); }
.topbar__phone:hover { color: var(--blue); text-decoration: underline; }
@media (min-width: 48em) { .topbar__phone { display: inline-flex; } }
@media (min-width: 64em) { .topbar__phone { margin-left: 0; } }
@media (min-width: 64em) and (max-width: 71.99em) { .topbar__inner--phone .topbar__phone { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-7) var(--s-8); }
.hero__grid { display: grid; gap: var(--s-7); }
.hero__copy { max-width: 42rem; }
.hero h1 { max-width: 21ch; margin-bottom: var(--s-5); }
.hero-em { font-style: italic; font-weight: 400; }
.hero__sub { font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.benefits { margin-top: var(--s-6); display: grid; gap: var(--s-3); max-width: 50ch; }
.benefits li { display: flex; gap: var(--s-3); align-items: flex-start; line-height: 1.5; }
.benefits .icon { color: var(--teal); margin-top: 0.2rem; }
.hero__cta { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.hero__reassure { font-size: var(--fs-sm); color: var(--ink-3); max-width: 48ch; line-height: 1.5; }
@media (min-width: 64em) {
  .hero { padding-block: var(--s-7) var(--s-8); }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
  .hero h1 { font-size: clamp(2.75rem, 3.5vw, 3.25rem); }
}

/* ---------- Lead form ---------- */
.lead { background: var(--surface-2); border: 1px solid var(--line-strong); border-top: 3px solid var(--navy); box-shadow: 0 1px 2px rgba(11, 31, 58, 0.06), 0 18px 40px -24px rgba(11, 31, 58, 0.35); padding: var(--s-5); max-width: 40rem; scroll-margin-top: calc(var(--topbar-h) + var(--s-4)); }
@media (min-width: 30em) { .lead { padding: var(--s-6); } }
.lead__strip { display: flex; align-items: center; gap: var(--s-2); color: var(--teal); font-size: var(--fs-xs); padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.lead__strip .icon { width: 1rem; height: 1rem; color: var(--teal); }
.lead__title { font-size: var(--fs-lg); }
.lead__intro { margin-top: var(--s-2); font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
#lead-form { margin-top: var(--s-5); }
.form-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 30em) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
/* In the two-column hero the form column is too narrow for paired fields until 72em (the census select would clip its text). */
@media (min-width: 64em) and (max-width: 71.99em) { .form-grid { grid-template-columns: 1fr; } .field--full { grid-column: auto; } }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); line-height: 1.3; }
.field__hint { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem; margin: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink);
  font: 400 1rem/1.4 var(--font-sans);
}
.field textarea { min-height: 4.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230b1f3a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem;
}
#lead-submit { margin-top: var(--s-5); }
.lead__consent { margin-top: var(--s-4); font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-3); }
/* Validation states: the server re-renders the form with #form-status filled and the tag helpers' error classes. */
.form-status { display: none; margin-bottom: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--error); border-left-width: 4px; background: var(--error-tint); color: var(--ink); font-size: var(--fs-sm); line-height: 1.5; }
.form-status.is-error { display: block; }
.form-status p { font-weight: 500; }
.field input.input-validation-error, .field select.input-validation-error, .field textarea.input-validation-error { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-validation-error { font-size: var(--fs-xs); line-height: 1.4; color: var(--error); }
.field-validation-error:empty, .field-validation-valid:empty { display: none; }

/* ---------- Trustbar ---------- */
.trustbar { background: var(--surface-1); border-top: 1px solid var(--line); }
.trustbar__list { display: grid; grid-template-columns: 1fr 1fr; }
.trustbar__list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-3) var(--s-4) 0; font-size: var(--fs-sm); font-weight: 500; color: var(--navy); line-height: 1.35; }
.trustbar__list li:nth-child(odd) { border-right: 1px solid var(--line); padding-right: var(--s-4); }
.trustbar__list li:nth-child(even) { padding-left: var(--s-4); }
.trustbar__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
.trustbar .icon { color: var(--teal); }
@media (min-width: 48em) {
  .trustbar__list { grid-template-columns: repeat(4, 1fr); }
  .trustbar__list li { padding: var(--s-5) var(--s-5) var(--s-5) 0; border-top: 0 !important; }
  .trustbar__list li:not(:first-child) { padding-left: var(--s-5); }
  .trustbar__list li:not(:last-child) { border-right: 1px solid var(--line); }
}

/* ---------- Diagram ---------- */
.diagram { border: 1px solid var(--line); background: var(--white); padding: var(--s-5); max-width: 52rem; }
.diagram__svg { width: 100%; height: auto; font-family: var(--font-sans); }
.diagram__svg--narrow { display: none; max-width: 24rem; margin-inline: auto; }
@media (max-width: 44.99em) { .diagram__svg--wide { display: none; } .diagram__svg--narrow { display: block; } }
.diagram__caption { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.diagram__fig { font-weight: 600; color: var(--navy); }
.diagram .node { fill: var(--white); stroke-width: 1.25; }
.diagram .node--a { stroke: var(--ink-3); }
.diagram .node--b { stroke: var(--teal); }
.diagram .node--end { fill: var(--navy); stroke: var(--navy); }
.diagram .t { fill: var(--ink); font-size: 13.5px; }
.diagram .t--sm { font-size: 12.5px; }
.diagram .t--xs { font-size: 11px; }
.diagram .t--lane { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.diagram .t--lane.t--xs { font-size: 10px; }
.diagram .t--note { font-size: 12.5px; font-style: italic; }
.diagram .t--note.t--xs { font-size: 11px; }
.diagram .t--a { fill: var(--ink-3); }
.diagram .t--b { fill: var(--teal); }
.diagram .t--end { fill: var(--white); }
.diagram .t--end-title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; }
.diagram .ic--a { color: var(--ink-3); }
.diagram .ic--b { color: var(--teal); }
.diagram .edge { fill: none; stroke-width: 1.5; }
.diagram .edge--a { stroke: var(--ink-3); stroke-dasharray: 4 4; }
.diagram .edge--b { stroke: var(--teal); }
.diagram .mk--a { fill: var(--ink-3); }
.diagram .mk--b { fill: var(--teal); }
.diagram .bracket { fill: none; stroke: var(--teal); stroke-width: 1; }

/* ---------- Evidence cards ---------- */
/* One, two, then three columns at the widths auto-fit(16rem) would pick; in the two-column band the odd last card spans the row instead of sitting alone at half width. */
.evidence { margin-top: var(--s-8); display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 36em) { .evidence { grid-template-columns: 1fr 1fr; } .evidence__card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 54em) { .evidence { grid-template-columns: repeat(3, 1fr); } .evidence__card:last-child:nth-child(odd) { grid-column: auto; } }
.evidence__card { border: 1px solid var(--line); background: var(--white); padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; }
.evidence__stat { font-family: var(--font-serif); font-size: var(--fs-2xl); line-height: 1.1; font-weight: 500; color: var(--navy); letter-spacing: -0.01em; }
.evidence__desc { margin-top: var(--s-3); margin-bottom: var(--s-5); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
.evidence__meaning { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.55; }

/* Small figures between each statistic and its caption (grafted from the ledger prototype, set in navy/teal). */
.evidence__fig { margin-top: var(--s-4); color: var(--teal); }
.fig-ruler { width: 100%; max-width: 20rem; height: auto; font-family: var(--font-sans); font-size: 10px; font-weight: 500; font-feature-settings: "tnum"; }
.fig-ruler__axis { stroke: var(--line-strong); stroke-width: 1; }
.fig-ruler__stem { stroke: var(--teal); stroke-width: 1; }
.fig-ruler__mark { fill: var(--teal); }
.fig-ruler__stem--key { stroke: var(--navy); }
.fig-ruler__mark--key { fill: var(--navy); }
.fig-ruler text { fill: var(--ink-3); }
.fig-ruler .fig-ruler__key { fill: var(--navy); font-weight: 600; }
.fig-quarters { display: flex; gap: 6px; }
.fig-quarters span { width: 1.375rem; height: 1.375rem; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--white); }
.fig-quarters .is-on { background: var(--navy); }
.fig-bars { display: grid; gap: var(--s-2); max-width: 22rem; font-size: var(--fs-xs); color: var(--ink-3); }
.fig-bars__row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 3rem; align-items: center; gap: var(--s-2); }
.fig-bars__label { white-space: nowrap; }
.fig-bars__track { display: block; position: relative; height: 10px; background: var(--navy-tint); overflow: hidden; }
.fig-bars__track::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); background: var(--navy); }
.fig-bars__row:nth-child(2) .fig-bars__track::after { background: var(--teal); }
.fig-bars__num { text-align: right; color: var(--ink); font-weight: 600; font-feature-settings: "tnum"; }


/* ---------- Numbered ledgers (what changes, deliverables, next steps) ---------- */
.changes__title, .ledger__title, .steps__title, .prep__title { color: var(--ink-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line-strong); }
.changes__item, .ledger__item, .steps__item { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-3); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.changes__item { max-width: 44rem; }
.changes__num, .ledger__num, .steps__num { font-family: var(--font-serif); font-size: var(--fs-xl); line-height: 1.1; color: var(--blue); }
.changes__heading, .steps__heading { margin-bottom: var(--s-2); }
.changes__item p, .ledger__item p, .steps__item p { color: var(--ink-2); max-width: var(--measure); }

/* ---------- Intervention: protocol grid ---------- */
.protocol { margin-top: var(--s-8); display: grid; gap: var(--s-4); }
@media (min-width: 48em) { .protocol { grid-template-columns: 1fr 1fr; } }
.protocol__card { border: 1px solid var(--line); background: var(--white); padding: var(--s-6); }
.protocol__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.protocol__num { font-family: var(--font-serif); font-size: var(--fs-xl); line-height: 1; color: var(--blue); }
.protocol__title { font-size: var(--fs-lg); }
.protocol__desc { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-base); }
.protocol__list { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.protocol__list li { position: relative; padding-left: var(--s-5); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
.protocol__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; border: 1px solid var(--teal); }

/* ---------- Offer: ledger + facts ---------- */
.offer { margin-top: var(--s-8); display: grid; gap: var(--s-6); }
@media (min-width: 64em) { .offer { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; } }
.facts { border: 1px solid var(--line-strong); background: var(--white); padding: var(--s-6); }
.facts__row { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.facts__row:first-child { padding-top: 0; }
.facts__row dt { color: var(--teal); font-size: var(--fs-xs); margin-bottom: var(--s-2); }
.facts__row dd { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--ink); }
.facts .btn { margin-top: var(--s-5); }

/* ---------- Evidence: stats + report ---------- */
.stats { margin-top: var(--s-5); display: grid; gap: var(--s-5) var(--s-6); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.stat { padding-top: var(--s-4); border-top: 2px solid var(--navy); }
.stat__value { font-family: var(--font-serif); font-size: var(--fs-3xl); line-height: 1; font-weight: 500; color: var(--navy); letter-spacing: -0.01em; }
.stat__desc { margin-top: var(--s-3); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
.stat__meaning { margin-top: var(--s-4); font-size: var(--fs-sm); line-height: 1.55; }
.report { margin-top: var(--s-8); max-width: 54rem; }
.report__sheet { border: 1px solid var(--line-strong); background: var(--white); padding: var(--s-6) var(--s-5); }
.report__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4); border-bottom: 2px solid var(--navy); }
.report__title { font-size: var(--fs-xl); }
.report__sub { margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--ink-3); }
.report__stamp { flex: 0 0 auto; padding: 0.3rem 0.6rem; border: 1.5px solid var(--accent); color: var(--accent); font-size: var(--fs-xs); }
.report__meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.report__meta dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.report__meta dd { margin: var(--s-1) 0 0; color: var(--ink-3); }
.report__rows { padding-top: var(--s-3); }
.report__row { display: flex; align-items: baseline; gap: var(--s-3); padding: 0.55rem 0; border-bottom: 1px solid var(--surface-2); font-size: var(--fs-sm); }
.report__row dt { flex: 1; display: flex; align-items: baseline; color: var(--ink); }
.report__row dt::after { content: ""; flex: 1; border-bottom: 1px dotted var(--line-strong); margin: 0 var(--s-2); transform: translateY(-0.3em); min-width: 0.75rem; }
.report__row dd { margin: 0; min-width: 3.5rem; text-align: right; color: var(--ink-3); }
.report__row--group { padding-top: var(--s-4); border-bottom: 0; }
.report__row--group dt { font-weight: 600; color: var(--navy); }
.report__row--group dt::after { display: none; }
.report__row--sub dt { padding-left: var(--s-5); color: var(--ink-2); }
.report__row--key { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); margin-top: var(--s-3); background: var(--surface-1); padding-inline: var(--s-3); }
.report__row--key dt { font-weight: 600; color: var(--navy); }
.report__caption { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
@media (min-width: 48em) { .report__sheet { padding: var(--s-7) var(--s-8); } .report__row { font-size: 0.9375rem; } }

/* ---------- Evidence: testimonials and case study (rendered only when configured) ---------- */
.testimonials { margin-top: var(--s-5); display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); max-width: 54rem; /* same sheet width as the report and the case study, so a single quote keeps a readable measure */ }
.testimonial { border: 1px solid var(--line); border-left: 3px solid var(--teal); background: var(--white); padding: var(--s-5); }
.testimonial__quote { margin: 0; font-family: var(--font-serif); font-size: var(--fs-md); line-height: 1.45; color: var(--navy); }
.testimonial__quote p::before { content: "\201C"; }
.testimonial__quote p::after { content: "\201D"; }
.testimonial__by { margin-top: var(--s-4); display: grid; gap: 0.125rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
.testimonial__name { font-weight: 600; color: var(--navy); }
.proof__disclosure { margin-top: var(--s-4); font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-3); }
.casestudy { margin-top: var(--s-5); max-width: 54rem; }
.casestudy__sheet { border: 1px solid var(--line-strong); border-top: 3px solid var(--navy); background: var(--white); padding: var(--s-6) var(--s-5); }
.casestudy__title { font-size: var(--fs-xl); }
.casestudy__body { margin-top: var(--s-3); max-width: var(--measure); color: var(--ink-2); }
.casestudy__metrics { margin-top: var(--s-5); display: grid; gap: var(--s-4) var(--s-5); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.casestudy__metric { padding-top: var(--s-3); border-top: 2px solid var(--navy); }
.casestudy__metric dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.casestudy__metric dd { margin: var(--s-1) 0 0; font-family: var(--font-serif); font-size: var(--fs-2xl); line-height: 1.1; color: var(--navy); font-feature-settings: "tnum"; }
.casestudy__attribution { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); font-style: italic; color: var(--ink-2); }
@media (min-width: 48em) { .casestudy__sheet { padding: var(--s-7) var(--s-8); } }

/* ---------- Guarantee (navy band + seal) ---------- */
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .section-label { color: var(--on-navy-2); }
.section--navy .section-num { color: var(--white); }
.section--navy .section-num::after { background: var(--on-navy-rule); }
.split--guarantee { align-items: center; }
.seal-wrap { display: flex; justify-content: flex-start; }
.seal { width: 13rem; height: 13rem; color: var(--white); }
@media (min-width: 64em) { .seal-wrap { justify-content: center; } .seal { width: 15rem; height: 15rem; } }
.seal__ring { fill: none; stroke: currentColor; stroke-width: 1; }
.seal__ring--outer { stroke-width: 1.5; }
.seal__ticks { fill: none; stroke: currentColor; stroke-width: 6; stroke-dasharray: 1 4.23; opacity: 0.6; }
.seal__text { fill: currentColor; font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.seal__dot { fill: currentColor; opacity: 0.8; }
.seal__small { fill: var(--on-navy-2); font-family: var(--font-sans); font-size: 8px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.seal__num { fill: currentColor; font-family: var(--font-serif); font-size: 54px; font-weight: 500; letter-spacing: -0.02em; }
.seal__rule { stroke: currentColor; stroke-width: 1; opacity: 0.7; }
.guarantee__text { max-width: var(--measure); font-size: var(--fs-md); line-height: 1.6; color: var(--on-navy-2); }

/* ---------- Indications ---------- */
.fit { display: grid; gap: var(--s-4); }
.fit > * { margin-top: 0; }
@media (min-width: 48em) { .fit { grid-template-columns: 1fr 1fr; } }
.fit__panel { border: 1px solid var(--line); background: var(--white); padding: var(--s-6) var(--s-5); border-top: 3px solid var(--teal); }
.fit__panel--not { border-top-color: var(--ink-3); }
.fit__title { color: var(--teal); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.fit__panel--not .fit__title { color: var(--ink-3); }
.fit__list { margin-top: var(--s-4); display: grid; gap: var(--s-4); }
.fit__list li { display: flex; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
.fit__list .icon { margin-top: 0.1rem; width: 1.125rem; height: 1.125rem; }
.fit__list--for .icon { color: var(--teal); }
.fit__list--not .icon { color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: grid; grid-template-columns: 2.25rem 1fr 1.5rem; gap: var(--s-3); align-items: start; padding: var(--s-5) 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover .faq__q { color: var(--blue); }
.faq__num { font-size: var(--fs-sm); color: var(--ink-3); padding-top: 0.3rem; }
.faq__q { font-family: var(--font-serif); font-size: var(--fs-md); font-weight: 500; line-height: 1.35; color: var(--navy); }
.faq__icon { position: relative; width: 1.5rem; height: 1.5rem; border: 1px solid var(--line-strong); margin-top: 0.1rem; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--navy); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.faq__icon::before { width: 0.75rem; height: 1px; }
.faq__icon::after { width: 1px; height: 0.75rem; }
.faq__item[open] .faq__icon::after { display: none; }
.faq__item[open] .faq__icon { background: var(--navy); border-color: var(--navy); }
.faq__item[open] .faq__icon::before { background: var(--white); }
.faq__body { padding: 0 0 var(--s-6) calc(2.25rem + var(--s-3)); }
.faq__body p { max-width: var(--measure); color: var(--ink-2); font-size: var(--fs-base); }
@media (max-width: 29.99em) { .faq__body { padding-left: 0; } }

/* ---------- Final CTA ---------- */
.final { background: var(--white); }
.final__inner { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 46rem; }
.final h2 { max-width: 24ch; font-size: clamp(var(--fs-2xl), 3.2vw, 2.75rem); }
.final__text { margin-top: var(--s-5); font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); }
.final .btn { margin-top: var(--s-6); }
.final__reassure { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- Sources ---------- */
.sources { padding-block: var(--s-7); background: var(--surface-1); border-top: 1px solid var(--line); }
.sources__title { color: var(--ink-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line-strong); }
.sources__list { margin-top: var(--s-4); counter-reset: src; max-width: 80ch; }
@media (min-width: 64em) { .sources__list { max-width: none; column-count: 2; column-gap: var(--s-8); } }
.sources__list li { counter-increment: src; position: relative; padding-left: 2.25rem; margin-bottom: var(--s-3); break-inside: avoid; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); scroll-margin-top: calc(var(--topbar-h) + var(--s-4)); }
.sources__list li::before { content: counter(src) "."; position: absolute; left: 0; top: 0; width: 1.75rem; font-weight: 600; color: var(--navy); font-feature-settings: "tnum"; }
.sources__list li:target { background: var(--navy-tint); outline: 1px solid var(--line-strong); outline-offset: 0.375rem; }
.sources__list a { overflow-wrap: anywhere; }

/* ---------- Families note ---------- */
.families { padding-block: var(--s-6); background: var(--surface-1); }
.families__note { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); border: 1px solid var(--line-strong); background: var(--white); max-width: 60rem; }
.families__note .icon { color: var(--blue); margin-top: 0.1rem; }
.families__title { color: var(--blue); margin-bottom: var(--s-2); font-family: var(--font-sans); }
.families__note p { font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--on-navy-2); padding-block: var(--s-8); }
.footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 64em) { .footer__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }
.brand--footer { color: var(--white); }
.brand--footer .brand__tld { color: var(--on-navy-2); }
.footer__descriptor, .footer__disclaimer { font-size: var(--fs-sm); line-height: 1.6; max-width: 60ch; }
.footer__descriptor { margin-top: var(--s-5); }
.footer__nav { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); font-size: var(--fs-sm); }
.footer a { color: var(--white); }
.footer a:hover { color: var(--on-navy-2); }
.footer :focus-visible { outline-color: var(--white); }
.footer__legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--on-navy-rule); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-size: var(--fs-xs); line-height: 1.5; color: var(--on-navy-2); }
.footer__legal a { color: var(--on-navy-2); }
.footer__legal a:hover { color: var(--white); }

/* ---------- Sticky CTA (phones; landing page only, the body class is set by the layout when the bar renders) ---------- */
.sticky-cta { display: none; }
@media (max-width: 47.99em) {
  body.has-sticky-cta { padding-bottom: 4.75rem; }
  .sticky-cta { display: flex; gap: var(--s-3); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line-strong); }
  .sticky-cta .btn--block { flex: 1 1 auto; width: auto; }
  .sticky-cta__call { flex: 0 0 auto; padding: 0 var(--s-4); }
  .sticky-cta__call .icon { color: var(--white); width: 1.125rem; height: 1.125rem; }
  .sticky-cta.is-hidden { display: none; }
}
@media (max-width: 29.99em) {
  /* Narrow phones: the call button keeps its icon and accessible name only, so the main CTA stays on one line. */
  .sticky-cta .btn { font-size: 0.9375rem; padding-inline: var(--s-4); }
  .sticky-cta__call { min-width: 3rem; }
  .sticky-cta__call span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .sticky-cta__call .icon { width: 1.375rem; height: 1.375rem; }
}

/* ---------- Thank-you page ---------- */
.thanks { padding-block: var(--s-8) var(--s-9); }
.thanks__eyebrow { margin-bottom: var(--s-5); }
.thanks h1 { max-width: 18ch; }
.thanks__intro { margin-top: var(--s-5); max-width: var(--measure); font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); }
.thanks__grid { margin-top: var(--s-8); display: grid; gap: var(--s-6); }
@media (min-width: 64em) { .thanks__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; } }
.prep { border: 1px solid var(--line-strong); background: var(--surface-1); padding: var(--s-6) var(--s-5); }
.prep__list { margin-top: var(--s-4); display: grid; gap: var(--s-4); }
.prep__list li { display: flex; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.55; color: var(--ink-2); }
.prep__box { flex: 0 0 auto; width: 1.125rem; height: 1.125rem; margin-top: 0.15rem; border: 1px solid var(--navy); background: var(--white); }
.thanks__meta { margin-top: var(--s-5); display: grid; gap: var(--s-2); max-width: var(--measure); }
.thanks__meta-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); font-size: var(--fs-sm); line-height: 1.5; }
.thanks__meta-row dt { font-weight: 600; color: var(--navy); }
.thanks__meta-row dd { margin: 0; color: var(--ink-2); }
.thanks__schedule { margin-top: var(--s-6); max-width: 44rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line-strong); border-left: 3px solid var(--teal); background: var(--white); }
.thanks__schedule p { max-width: 40ch; color: var(--ink-2); line-height: 1.5; }

/* ---------- Code fragments (reference ids) ---------- */
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.875em; color: var(--navy); }
.thanks__meta code, .notice__ref code { padding: 0.1rem 0.4rem; border: 1px solid var(--line); background: var(--surface-1); }

/* ---------- Legal documents (Privacy Policy, Terms of Use) ---------- */
.legal { padding-block: var(--s-8) var(--s-9); }
.legal__head { max-width: var(--measure); padding-bottom: var(--s-5); border-bottom: 2px solid var(--navy); }
.legal__head h1 { font-size: var(--fs-3xl); }
.legal__date { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ink-3); }
.legal__body { max-width: var(--measure); }
.legal__body h2 { margin-top: var(--s-7); display: flex; align-items: baseline; gap: var(--s-3); font-size: var(--fs-lg); text-wrap: pretty; }
.legal__num { flex: 0 0 2rem; color: var(--blue); font-feature-settings: "tnum"; }
.legal__body p { margin-top: var(--s-4); color: var(--ink-2); }
.legal__body h2 + p { margin-top: var(--s-3); }
.legal__body a { overflow-wrap: anywhere; }
.legal__table-wrap { margin-top: var(--s-4); overflow-x: auto; border: 1px solid var(--line); }
.legal__table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.5; }
.legal__table th, .legal__table td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal__table th { background: var(--surface-1); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.legal__table tbody tr:last-child td { border-bottom: 0; }
.legal__table code { font-size: 0.8125rem; white-space: nowrap; }
@media (max-width: 39.99em) {
  /* Each cookie becomes a small labelled record instead of a sideways-scrolling table. */
  .legal__table { min-width: 0; }
  .legal__table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .legal__table tr { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .legal__table tbody tr:last-child { border-bottom: 0; }
  .legal__table td { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: var(--s-3); padding: 0.25rem var(--s-4); border: 0; }
  .legal__table td::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); line-height: 1.6; }
}

/* ---------- Status and error pages ---------- */
.notice { padding-block: var(--s-9); min-height: 50vh; }
.notice__inner { max-width: var(--measure); }
.notice h1 { font-size: var(--fs-3xl); }
.notice__text { margin-top: var(--s-4); font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); }
.notice__ref { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ink-3); }
.notice__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.notice__link { font-weight: 600; }
