/* ============================================================
   PreArrive — Forest brand on white.
   Marketing-only stylesheet (the app/sign surfaces use styles.css).
   Single accent (forest), espresso ink, vellum surfaces, bone cut-outs.
   Single direction ships, so tokens live straight in :root.
   ============================================================ */

:root {
  /* --- Forest brand tokens --- */
  --c-bg:        #ffffff;       /* page background */
  --c-ink:       #2A2520;       /* espresso — headlines, body */
  --c-muted:     #76695A;       /* secondary text, captions, eyebrows */
  --c-line:      #E5E3DC;       /* hairline borders */
  --c-soft:      #FAF6EF;       /* vellum — tinted strips, secondary surface */
  --c-paper:     #FAF6EF;       /* vellum — cards/paper, quote blocks */
  --c-accent:    #2F5D4A;       /* forest — the single accent */
  --c-accent-2:  #2F5D4A;       /* no second accent — brass dropped, route to forest */
  --c-bone:      #FDFCF3;       /* cut-out color, lockup/text on dark surfaces */
  --c-stamp:     #2F5D4A;
  --c-good:      #2F5D4A;       /* success → forest */
  --c-good-soft: #e6eee9;
  --c-warn:      #76695A;
  --c-warn-soft: #FAF6EF;
  --c-danger:    #C4474A;       /* muted red */

  --f-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-sans:    'Space Grotesk', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* --- /why/ page (Direction C) — design-token aliases --- */
  --f-serif:       var(--f-display);
  --c-accent-soft: #e6eee9;
  --c-danger-soft: #f3dedf;
  --pad:           28px;

  --display-tracking: -0.018em;
  --display-leading:  1.06;
  --display-style:    italic;

  --radius:      10px;
  --radius-sm:   8px;
  --radius-pill: 999px;
  --shadow:      0 1px 2px rgba(42,37,32,.04), 0 8px 22px rgba(42,37,32,.07);
  --shadow-card: 0 1px 1px rgba(42,37,32,.03), 0 2px 10px rgba(42,37,32,.05);
  --rule-color:  #E5E3DC;
  --rule-style:  1px solid var(--c-line);
}

/* ---------- shared base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}

/* ---------- layout ---------- */
.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- top nav ---------- */
.topnav {
  border-bottom: var(--rule-style);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
}
.topnav .topnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 28px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  color: var(--c-ink);
}
/* --- PreArrive logo — the outlined-SVG wordmark lockup --- */
.brand-logo {
  display: block;
  width: auto;
  height: 30px;
}
.topnav .brand-logo { height: 30px; }
.foot .brand-logo { height: 34px; }
.topnav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
}
.topnav nav a {
  color: var(--c-ink);
  text-decoration: none;
  cursor: pointer;
  opacity: .85;
}
.topnav nav a:hover { opacity: 1; }
.topnav nav a.active { opacity: 1; font-weight: 600; }
.topnav nav a.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: var(--c-bone);
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  opacity: 1;
}
.topnav nav a.cta .arr { width: 14px; height: 14px; flex: 0 0 14px; }
.topnav nav a.cta:hover { filter: brightness(1.07); }

/* ---------- nav dropdowns (desktop) ----------
   Grouped primary nav: a .nav-item wraps a <button.nav-trigger> + a
   floating .nav-menu, revealed on hover, focus-within, or .open (JS click
   for touch/keyboard). Mobile turns these into tap accordions (≤560 block). */
.topnav nav .nav-item { position: relative; display: inline-flex; align-items: center; }
.topnav nav .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 14.5px;
  line-height: 1;
  color: var(--c-ink);
  opacity: .85;
  cursor: pointer;
}
.topnav nav .nav-trigger:hover { opacity: 1; }
.topnav nav .nav-item.active > .nav-trigger { opacity: 1; font-weight: 600; }
.topnav nav .nav-caret { display: inline-flex; transition: transform .18s ease; }
.topnav nav .nav-caret svg { width: 14px; height: 14px; }
.topnav nav .nav-item:hover .nav-caret,
.topnav nav .nav-item:focus-within .nav-caret,
.topnav nav .nav-item.open .nav-caret { transform: rotate(180deg); }

/* hover bridge so the 10px gap to the menu doesn't drop the hover */
.topnav nav .nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
}
.topnav nav .nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 232px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 40px rgba(0,0,0,.12);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
/* right-align the last group's menu so it never spills off-screen */
.topnav nav .nav-item:last-of-type .nav-menu { left: auto; right: 0; }
.topnav nav .nav-item:hover .nav-menu,
.topnav nav .nav-item:focus-within .nav-menu,
.topnav nav .nav-item.open .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.topnav nav .nav-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--c-ink);
  opacity: .9;
  white-space: nowrap;
}
.topnav nav .nav-menu a:hover { background: var(--c-soft); opacity: 1; }
.topnav nav .nav-menu a.active { background: var(--c-soft); opacity: 1; font-weight: 600; }
/* small breath between primary nav and the Sign in / CTA cluster */
.topnav nav .nav-utility { margin-left: 6px; }

/* hamburger — rendered by build/templates/page.ts, hidden until ≤560px */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* Body-scroll lock while the drawer is open. */
html.nav-locked, html.nav-locked body { overflow: hidden; }

/* Inner SVG icons inside the hamburger and dropdown triggers must NOT
   become the touch target — otherwise mobile taps land on the <svg>
   or its child <path>, the click event still bubbles to the button
   but some mobile browsers (Safari especially) drop the click when
   the target is an inline SVG with no `cursor: pointer`. Forcing
   pointer-events:none guarantees the button itself receives the tap.
   Specific to the topnav so other inline SVGs (e.g. hero art) keep
   their normal hit behavior. */
.topnav .nav-toggle * ,
.topnav .nav-trigger * { pointer-events: none; }

/* When the mobile drawer is open, the page-level fixed bars on
   /how-it-works/ (.stage-overview-bar) sit ON TOP of the drawer's
   top edge at the same y-band, capturing taps meant for the close
   (X) button and the dropdown triggers. Hide them while the drawer
   is open — they re-appear the instant it closes. */
html.nav-locked .stage-overview-bar { display: none; }

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 64px;
  position: relative;
}
.hero.no-rule { border-top: none; }
.hero-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero.solo .hero-top { grid-template-columns: 1fr; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 9%, transparent);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--c-accent);
}

h1.t-display {
  font-family: var(--f-sans);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 500;
  line-height: var(--display-leading);
  letter-spacing: var(--display-tracking);
  margin: 0 0 24px;
  color: var(--c-ink);
  text-wrap: pretty;
}
h1.t-display em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-accent);
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--c-muted);
  max-width: 540px;
  margin: 0 0 28px;
}
.ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--f-sans);
  border: 1px solid transparent;
  transition: filter .15s ease, transform .12s ease;
}
.btn.primary {
  background: var(--c-accent);
  color: var(--c-bone);
}
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-line);
}
.btn.ghost:hover { background: var(--c-soft); }
/* on-dark surfaces (final CTA): primary flips to bone bg / forest text */
.final-cta .btn.primary {
  background: var(--c-bone);
  color: var(--c-accent);
}
.btn.link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--c-accent-2);
  font-weight: 600;
  font-size: inherit;
}
.btn.link:hover { text-decoration: underline; }

/* "Continue with Google" / "Sign in with Google" — matches Google's
   brand-guideline shape: white surface, neutral border, the full-color
   G-logo on the left, label centered. Used on both the marketing
   /login/ page and the in-app /app/ Login component. */
.btn.google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: var(--radius);
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 11px 18px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .08);
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn.google:hover  { background: #f7f8f8; box-shadow: 0 1px 3px rgba(60, 64, 67, .15); }
.btn.google:active { background: #f1f3f4; }
.btn.google:focus-visible { outline: 2px solid #4285F4; outline-offset: 2px; }
.btn.google img,
.btn.google svg { width: 18px; height: 18px; display: block; flex: 0 0 18px; }
.btn.google[disabled] { opacity: .6; cursor: not-allowed; }

/* Cookie-consent banner — see public/assets/cookie-consent.js. */
#cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--c-ink, #2A2520);
  color: var(--c-bone, #FDFCF3);
  padding: 14px 18px;
  z-index: 1000;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, .18);
}
#cc-banner .cc-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 14px; line-height: 1.45;
}
#cc-banner .cc-text { margin: 0; flex: 1 1 320px; }
#cc-banner .cc-text a { color: var(--c-bone, #FDFCF3); text-decoration: underline; }
#cc-banner .cc-actions { display: flex; gap: 8px; flex: 0 0 auto; }
#cc-banner .cc-btn {
  font: inherit;
  padding: 8px 14px; border-radius: 8px; border: 0; cursor: pointer;
  font-weight: 600;
}
#cc-banner .cc-decline {
  background: transparent;
  color: var(--c-bone, #FDFCF3);
  border: 1px solid rgba(253, 252, 243, .35);
}
#cc-banner .cc-decline:hover { border-color: rgba(253, 252, 243, .7); }
#cc-banner .cc-accept {
  background: var(--c-accent, #2F5D4A);
  color: var(--c-bone, #FDFCF3);
}
#cc-banner .cc-accept:hover { filter: brightness(1.1); }
@media (max-width: 520px) {
  #cc-banner .cc-actions { width: 100%; }
  #cc-banner .cc-btn { flex: 1; }
}
.btn .arr {
  width: 14px;
  display: inline-flex;
  transition: transform .15s ease;
}
.btn:hover .arr { transform: translateX(2px); }

.proof {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proof li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--c-ink);
}
.proof li::before {
  content: "\2713";
  color: var(--c-accent-2);
  font-weight: 700;
  margin-top: 1px;
}

/* ---------- hero artifact (paper graphic) ---------- */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
}
.paper {
  position: absolute;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  font-family: var(--f-sans);
}
.paper.unsigned {
  top: 10%;
  left: 0;
  width: 64%;
  height: 78%;
  transform: rotate(-3.5deg);
  z-index: 1;
  background: var(--c-soft);
}
.paper.signed {
  top: 22%;
  /* Was right: 0 — review §6.5: the front (signed) card was overlapping
     the back (unsigned) card's subtitle and truncating it mid-word
     ("House rules · fee sch…"). Shifting the signed card 18px right
     uncovers the back card's center line so its subtitle reads fully.
     The overlap is still the dominant visual; it's just enough to fix
     the half-word. */
  right: -18px;
  width: 64%;
  height: 78%;
  transform: rotate(3deg);
  z-index: 2;
}
.paper .ph-head {
  text-align: center;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.paper .ph-rule {
  width: 60%;
  margin: 0 auto 8px;
  border-top: 1px solid var(--rule-color);
}
.paper .ph-mark {
  font-family: var(--f-sans);
  text-transform: uppercase;
  font-style: normal;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 10px;
  color: var(--c-ink);
}
.paper .ph-sub { font-size: 10px; color: var(--c-muted); margin-top: 4px; }
.paper ul.acks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.paper ul.acks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 5px 8px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: #fff;
}
.paper ul.acks li .box {
  width: 12px; height: 12px;
  border: 1px solid var(--c-muted);
  border-radius: 3px;
  flex: 0 0 auto;
}
.paper ul.acks li:nth-child(odd) { background: var(--c-soft); }
.paper ul.acks li .label { flex: 1; color: var(--c-ink); }
.paper ul.acks li .price { font-variant-numeric: tabular-nums; color: var(--c-muted); font-size: 10.5px; }

.paper.signed ul.acks li { background: var(--c-good-soft); border-color: rgba(0,0,0,0.06); }
.paper.signed ul.acks li .box {
  background: var(--c-good);
  border-color: var(--c-good);
  position: relative;
}
.paper.signed ul.acks li .box::after {
  content: "";
  position: absolute;
  left: 3px; top: 1.5px;
  width: 4px; height: 7px;
  border: solid var(--c-bone);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.paper .sig-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid var(--c-line);
  padding-top: 8px;
}
.paper .sig-row svg { flex: 1; height: 22px; }
.paper .sig-row .sig-name { font-family: var(--f-display); font-style: italic; font-size: 11px; color: var(--c-muted); }
.paper-stamp {
  position: absolute;
  top: -14px; right: -14px;
  background: var(--c-stamp);
  color: var(--c-bone);
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 7px 13px;
  border-radius: 999px;
  transform: rotate(8deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 3;
  text-transform: uppercase;
}
.paper .hash {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--c-muted);
  margin-top: 6px;
}

/* ---------- section scaffolds ---------- */
section.s {
  padding: 72px 0;
  border-top: var(--rule-style);
}
section.s.no-rule { border-top: none; }
section.s.tinted { background: var(--c-soft); border-top: none; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin: 0 0 14px;
}
.section-label .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-muted);
}
h2.t-section {
  font-family: var(--f-sans);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: var(--display-tracking);
  margin: 0 0 18px;
  max-width: 760px;
  text-wrap: balance;
}
h2.t-section em { font-family: var(--f-serif); font-style: italic; color: var(--c-accent); font-weight: 400; }
.sub {
  color: var(--c-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 0 36px;
}

/* ---------- how it works ---------- */
ol.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: stepc;
}
ol.steps > li {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow-card);
}
ol.steps > li .step-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.05em;
}
ol.steps > li strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
}
ol.steps > li p {
  margin: 0;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.5;
}
.step-tile {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--c-accent);
  color: var(--c-bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-tile svg { width: 18px; height: 18px; }

/* ---------- image moments ---------- */
.image-moment {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: var(--c-soft);
  height: 360px;
}
.image-moment.tall { height: 480px; }
.image-moment img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.82) contrast(.98);
}
.image-moment .caption {
  position: absolute;
  left: 24px; bottom: 22px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--c-bone);
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  max-width: 60%;
  line-height: 1.3;
}
.image-moment .credit {
  position: absolute;
  right: 16px; bottom: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* small detail grid of three photos */
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.detail-grid > div {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-line);
  aspect-ratio: 4 / 5;
  background: var(--c-soft);
}
.detail-grid > div:first-child { aspect-ratio: auto; }
.detail-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.84);
}
.detail-grid .pcap {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: 0.01em;
}

/* ---------- contrast (what it is / isn't) ---------- */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  /* Review §6.4: top-align rather than forcing equal heights. The "isn't"
     column was looking hollow at the bottom when its bullets were
     shorter; letting the cards size to their own content removes the
     trapped whitespace without rewriting either bullet list. */
  align-items: start;
}
.contrast .col {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.contrast .col.is { border-left: 3px solid var(--c-accent-2); }
.contrast .col.isnt { border-left: 3px solid var(--c-line); }
.contrast .col h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contrast .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.contrast .col ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--c-ink);
  line-height: 1.5;
}
.contrast .col.is ul li::before {
  content: "\2713";
  color: var(--c-accent-2);
  font-weight: 700;
  flex: 0 0 auto;
}
.contrast .col.isnt ul li::before {
  content: "\2014";
  color: var(--c-muted);
  flex: 0 0 auto;
}

/* ---------- audience ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.who {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.who .who-tile {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c-soft);
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.who .who-tile svg { width: 20px; height: 20px; }
.who .tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--c-muted);
  margin-bottom: 6px;
}
.who h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
}
.who p {
  font-size: 14.5px;
  color: var(--c-muted);
  margin: 0 0 14px;
  line-height: 1.55;
}
.who .recommend {
  font-size: 13px;
  color: var(--c-ink);
  margin: 0;
  font-weight: 500;
}

/* ---------- artifact / certificate detail ---------- */
.cert-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.cert-wrap.top { align-items: flex-start; }
.cert-doc {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 14px 36px rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
}
.cert-doc::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  pointer-events: none;
  opacity: .65;
}
.cert-doc h4 {
  font-family: var(--f-sans);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  margin: 0 0 4px;
}
.cert-doc .meta { font-size: 13px; color: var(--c-muted); margin: 0 0 18px; line-height: 1.5; }
.cert-doc .cert-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--c-line);
}
.cert-doc .cert-row .l { color: var(--c-muted); }
.cert-doc .cert-row span:last-child { color: var(--c-ink); }
.cert-doc .sig {
  margin: 20px 0 6px;
  padding-top: 10px;
  border-top: 1px solid var(--c-line);
}
.cert-doc .sig svg path { stroke: var(--c-ink); }
.cert-doc .sig .name { font-family: var(--f-display); font-style: italic; font-size: 13px; color: var(--c-muted); margin-top: 2px; }
.cert-doc .hash {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 12px;
  word-break: break-all;
}
.cert-doc .corner-stamp {
  position: absolute;
  top: 28px; right: 28px;
  width: 78px; height: 78px;
  border: 1.5px solid var(--c-accent-2);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--c-accent-2);
  font-family: var(--f-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  transform: rotate(-8deg);
  text-align: center;
  line-height: 1.2;
}
.cert-doc .corner-stamp span:first-child { font-size: 10px; }
.cert-doc .corner-stamp .date { font-family: var(--f-mono); font-weight: 500; font-size: 8px; margin-top: 2px; letter-spacing: 0.06em; }

/* ---------- pricing ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.tier {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
}
.tier.featured {
  border-color: var(--c-accent);
  box-shadow: var(--shadow), 0 0 0 1px var(--c-accent);
  background: var(--c-paper);
}
.tier .feat-pill {
  position: absolute;
  top: -12px; left: 22px;
  background: var(--c-accent);
  color: var(--c-bone);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.tier h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: var(--f-sans);
}
.tier .price {
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 4px 0 4px;
}
.tier .price span { font-size: 14px; color: var(--c-muted); font-family: var(--f-sans); font-weight: 500; }
.tier .annual { font-size: 12.5px; color: var(--c-muted); margin: 0 0 4px; }
.tier .cap { font-family: var(--f-mono); font-size: 11px; color: var(--c-muted); margin: 0 0 14px; }
.tier .head {
  font-size: 13.5px;
  color: var(--c-ink);
  margin: 4px 0 18px;
  line-height: 1.45;
  min-height: 60px;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tier ul li {
  font-size: 13px;
  color: var(--c-ink);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.tier ul li::before {
  content: "+";
  color: var(--c-accent-2);
  font-weight: 700;
}
.tier .btn { width: 100%; justify-content: center; }

/* monthly/annual toggle */
.pricing-toggle {
  display: inline-flex;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  padding: 4px;
  background: var(--c-paper);
}
.pricing-toggle button {
  border: none;
  background: transparent;
  font-family: var(--f-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-muted);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.pricing-toggle button.active {
  background: var(--c-accent);
  color: var(--c-bone);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--c-line);
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--c-line);
  padding: 18px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  font-family: var(--f-sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  transition: transform .2s ease;
}
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq p {
  font-size: 14.5px;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 700px;
}
.faq em { color: var(--c-ink); font-style: italic; }
.faq a { color: var(--c-accent-2); }

/* ---------- final CTA ---------- */
.final-cta {
  background: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  color: var(--c-bone);
}
.final-cta h2 {
  font-family: var(--f-sans);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--c-bone);
}
.final-cta h2 em { font-family: var(--f-serif); font-style: italic; color: var(--c-bone); font-weight: 400; }
.final-cta .sub { margin: 0 auto 24px; color: rgba(253,252,243,0.75); }
.final-cta .ctas { justify-content: center; margin: 0; }
.final-cta .btn.ghost { color: var(--c-bone); border-color: rgba(253,252,243,0.3); }
.final-cta .btn.ghost:hover { background: rgba(253,252,243,0.08); }

/* ---------- ROI featured stat (CONTENT-REFACTOR-SPEC §7.3) ---------- */
/* Sits between hero and How it Works on /, between tiers and callout on /pricing/.
   Large numeral + restrained body. The wide tinted band signals "anchor number"
   without screaming. */
.roi-stat {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 0;
}
.roi-numeral {
  font-family: var(--f-serif, "Source Serif 4", Georgia, serif);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
.roi-numeral em {
  font-style: italic;
  color: var(--c-accent-2, var(--c-accent));
  font-weight: 600;
}
.roi-sub {
  max-width: 60ch;
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-ink);
}
.roi-sub strong { font-weight: 600; }
.roi-fine {
  max-width: 56ch;
  margin: 12px auto 0;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Features comparison matrix (CONTENT-RESTRUCTURE-SPEC §4.3) ---------- */
.m-wrap {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
}
.m-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.m-table th,
.m-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}
.m-table thead th {
  background: var(--c-soft);
  font-weight: 600;
  font-size: 13px;
}
.m-table .m-row-head {
  width: 32%;
  min-width: 14rem;
}
.m-table .m-tier {
  font-family: var(--f-serif, "Source Serif 4", Georgia, serif);
  font-size: 17px;
  font-weight: 600;
}
.m-table .m-price {
  font-family: var(--f-mono, monospace);
  font-size: 12px;
  margin-top: 2px;
  color: var(--c-muted);
}
.m-table .m-group th {
  background: var(--c-soft);
  font-family: var(--f-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent, var(--c-accent-2));
  border-top: 2px solid var(--c-accent, var(--c-accent-2));
  border-bottom: 1px solid var(--c-line);
}
.m-table .m-row {
  font-weight: 500;
  color: var(--c-ink);
}
.m-table .m-cell {
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 11rem;
  color: var(--c-ink);
}
.m-table tbody tr:last-child th,
.m-table tbody tr:last-child td { border-bottom: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Mobile: stack a bit tighter, allow horizontal scroll via .m-wrap. */
@media (max-width: 720px) {
  .m-table { font-size: 13px; }
  .m-table th, .m-table td { padding: 9px 10px; }
  .m-table .m-cell { width: auto; min-width: 7rem; }
}

/* ---------- callout (interior pages) ---------- */
.callout {
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent-2);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.callout .l {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 8px;
}
.callout p { margin: 0; color: var(--c-ink); font-size: 15px; line-height: 1.6; }
.callout em { font-style: italic; }
.callout code {
  font-family: var(--f-mono);
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 1px 5px;
}
.callout a { color: var(--c-accent-2); }

/* ---------- generic cards used on interior pages ---------- */
.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}

/* trust grid + cards */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.trust-card .trust-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c-soft);
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.trust-card .trust-icon svg { width: 20px; height: 20px; }
.trust-card h3 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}
.trust-card p {
  font-size: 14px;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.55;
}

/* hash display */
.hash-display {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-ink);
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  line-height: 1.7;
  word-break: break-all;
}
.hash-display .l {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 8px;
}

/* interior detail list (how it works stage card) */
.detail-card {
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.detail-card h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin: 0 0 12px;
}
.detail-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--c-ink);
  line-height: 1.7;
  font-size: 14px;
}
.stage-tile {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--c-accent);
  color: var(--c-bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stage-tile svg { width: 22px; height: 22px; }

/* generic text helpers */
.muted { color: var(--c-muted); }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.body-copy {
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.7;
}
.body-copy strong { color: var(--c-ink); }
section.s ol.numbered {
  padding-left: 1.2rem;
  color: var(--c-ink);
  line-height: 1.8;
}
section.s ol.numbered strong { color: var(--c-ink); }

/* forms */
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--f-sans);
  font-size: 14.5px;
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--c-accent-2);
  outline-offset: 1px;
}
.form-row .hint { display: block; font-size: 12.5px; color: var(--c-muted); margin-top: 6px; }

/* info table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.info-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
}
.info-table td:first-child {
  color: var(--c-muted);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  width: 38%;
}

/* ---------- footer ---------- */
.foot {
  padding: 56px 0 32px;
  border-top: var(--rule-style);
  margin-top: 64px;
  color: var(--c-muted);
}
/* Brand block sits on its own row above the link columns, so adding or
   removing a column never reflows the brand (the old 5-col fixed grid broke
   the moment a 6th column was added). */
.foot-brand {
  margin-bottom: 36px;
  max-width: 340px;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 24px;
  margin-bottom: 32px;
}
.foot-grid h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.foot-grid a {
  display: block;
  font-size: 14px;
  color: var(--c-ink);
  text-decoration: none;
  margin-bottom: 8px;
  opacity: .8;
  cursor: pointer;
}
.foot-grid a:hover { opacity: 1; }
.foot-brand .blurb {
  font-size: 14px;
  color: var(--c-muted);
  max-width: 280px;
  line-height: 1.55;
  margin: 12px 0 0;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 24px;
  border-top: var(--rule-style);
  font-size: 13px;
  color: var(--c-muted);
}
.foot-bottom .tag {
  font-family: var(--f-sans);
  font-size: 14px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { margin: 0 auto; }
  ol.steps { grid-template-columns: repeat(2, 1fr); }
  .contrast { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .cert-wrap { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .topnav nav { gap: 18px; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 44px; }
  section.s { padding: 52px 0; }
  ol.steps { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .foot-brand { margin-bottom: 28px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .final-cta { padding: 40px 24px; }

  /* Mobile menu — show the hamburger and drop the nav into a drawer
     that slides down under the header. JS in /js/nav.js toggles .open. */
  .topnav .topnav-inner { padding: 14px 20px; }
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  .topnav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 12px;
    background: var(--c-bg);
    border-bottom: var(--rule-style);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .topnav nav.open { display: flex; }
  .topnav nav > a,
  .topnav nav .nav-trigger {
    padding: 14px 24px;
    font-size: 16px;
    opacity: 1;
    border-bottom: 1px solid var(--c-line, #EDE9DD);
  }
  .topnav nav > a:last-of-type { border-bottom: 0; }

  /* Dropdowns become tap accordions inside the drawer. */
  .topnav nav .nav-item { display: block; width: 100%; }
  .topnav nav .nav-item::after { display: none; } /* drop the desktop hover bridge */
  .topnav nav .nav-trigger {
    width: 100%;
    justify-content: space-between;
    color: var(--c-ink);
  }
  .topnav nav .nav-caret svg { width: 18px; height: 18px; }
  .topnav nav .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--c-soft);
  }
  .topnav nav .nav-item.open .nav-menu { display: flex; }
  .topnav nav .nav-menu a {
    padding: 13px 24px 13px 40px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid var(--c-line, #EDE9DD);
  }
  .topnav nav .nav-utility { margin-left: 0; }

  .topnav nav a.cta {
    margin: 12px 20px 4px;
    justify-content: center;
    padding: 14px 18px;
    border-bottom: 0;
  }
}

/* ============================================================
   /why/ page — Direction C. Every rule scoped under .why-page so
   the design's generic class names (.btn, .lede, .section-label,
   .final-cta, .sources …) never collide with the marketing site.
   Hardcoded navy/sage from the design CSS are mapped to Verdant:
   navy rgba(26,61,95,…)  → pine  rgba(31,58,42,…)
   sage rgba(164,182,154,…) → brass rgba(168,130,58,…)
   ink  rgba(14,26,43,…)  → forest rgba(24,36,28,…)
   danger rgba(180,35,24,…) → rgba(155,62,44,…)
   ============================================================ */
.why-page, .why-page * { box-sizing: border-box; }

.why-page {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  margin: 0 auto;
  padding: 0;
}

/* ---- Section scaffolding ---- */
.why-page .wp-section { padding: 4.5rem var(--pad); max-width: 1100px; margin: 0 auto; }
.why-page .wp-section.tight { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.why-page .wp-section.hero  { padding-top: 5rem; padding-bottom: 3rem; }

.why-page .section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-accent-2);
  margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.why-page .section-label .num {
  font-family: var(--f-mono); color: var(--c-muted);
  font-weight: 500; letter-spacing: .02em;
}
.why-page .section-label .num::after { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--c-accent-2); margin: 0 .4rem 4px; vertical-align: middle; }

.why-page .t-display {
  font-size: clamp(2.2rem, 3.4vw + 1rem, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 1.25rem;
  max-width: 22ch;
  text-wrap: pretty;
}
.why-page .t-display em, .why-page .t-section em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.005em; font-size: 1.08em; line-height: 1;
  color: var(--c-accent);
}
.why-page .t-section {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 1rem;
  max-width: 26ch;
  text-wrap: pretty;
}
.why-page .lede {
  font-size: 1.2rem;
  color: var(--c-muted);
  line-height: 1.5;
  max-width: 58ch;
  margin: 0 0 1.5rem;
}
.why-page .sub { color: var(--c-muted); line-height: 1.55; max-width: 60ch; }

/* ---- Buttons ---- */
.why-page .btn {
  display: inline-flex; align-items: center; padding: .85rem 1.35rem;
  border-radius: var(--radius); text-decoration: none; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem; gap: .5rem;
  line-height: 1; font-family: inherit;
}
.why-page .btn.primary { background: var(--c-accent); color: white; }
.why-page .btn.ghost { background: transparent; color: var(--c-accent); border-color: var(--c-line); }
.why-page .btn:hover { filter: brightness(1.05); }

/* ---- HERO: without / with split ---- */
.why-page .hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: var(--shadow);
  background: white;
}
.why-page .hero-split .pane {
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  min-height: 380px;
  position: relative;
}
.why-page .hero-split .pane.without {
  background:
    linear-gradient(180deg, rgba(155,62,44,0.04) 0%, rgba(155,62,44,0.0) 100%),
    white;
  border-right: 1px solid var(--c-line);
}
.why-page .hero-split .pane.with {
  background:
    linear-gradient(180deg, rgba(168,130,58,0.10) 0%, rgba(168,130,58,0.0) 100%),
    white;
}
.why-page .hero-split .pane-label {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 .25rem;
}
.why-page .hero-split .pane.without .pane-label { color: var(--c-danger); }
.why-page .hero-split .pane.with .pane-label { color: var(--c-good); }
.why-page .hero-split .pane-label .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.why-page .hero-split .pane h3 {
  font-size: 1.15rem;
  margin: 0 0 .4rem;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.why-page .hero-split .pane p {
  color: var(--c-muted);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0;
}
.why-page .hero-split .pane .artifact {
  margin-top: auto;
  border-top: 1px dashed var(--c-line);
  padding-top: 1rem;
}

/* fake chat screenshot for "without" hero pane */
.why-page .chat-mock {
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: .75rem;
  font-size: .8rem;
  line-height: 1.4;
}
.why-page .chat-mock .ch-row {
  display: flex; gap: .5rem; margin-bottom: .5rem;
}
.why-page .chat-mock .ch-row.host { justify-content: flex-end; }
.why-page .chat-mock .ch-bub {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: .4rem .6rem;
  max-width: 80%;
  color: var(--c-ink);
}
.why-page .chat-mock .ch-row.host .ch-bub {
  background: var(--c-accent-soft);
  border-color: rgba(31,58,42,0.2);
}
.why-page .chat-mock .ch-meta {
  font-family: var(--f-mono); font-size: .65rem;
  color: var(--c-muted); margin-top: .15rem;
}
.why-page .chat-mock .ch-status {
  margin-top: .4rem; padding-top: .4rem;
  border-top: 1px dashed var(--c-line);
  font-family: var(--f-mono); font-size: .7rem;
  color: var(--c-danger); text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600;
}

/* artifact stub for "with" pane */
.why-page .cert-stub {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  padding: .75rem;
  font-size: .78rem;
  position: relative;
}
.why-page .cert-stub .seal {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em;
  color: var(--c-good); border: 1.5px solid var(--c-good);
  padding: 2px 6px; border-radius: 4px; transform: rotate(8deg);
  font-weight: 700;
}
.why-page .cert-stub .title { font-weight: 700; margin: 0 0 .25rem; font-size: .82rem; }
.why-page .cert-stub .meta { font-family: var(--f-mono); font-size: .65rem; color: var(--c-muted); line-height: 1.5; }
.why-page .cert-stub .meta-row { display: flex; justify-content: space-between; padding: 2px 0; }
.why-page .cert-stub .meta-row .v { color: var(--c-ink); }

/* ---- Autopsy panel ---- */
.why-page .autopsy {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.why-page .autopsy .annotations { padding-top: 0.5rem; }
.why-page .autopsy .annot {
  position: relative;
  padding: .65rem 0 .65rem 1.5rem;
  border-bottom: 1px dashed var(--c-line);
}
.why-page .autopsy .annot:last-child { border-bottom: 0; }
.why-page .autopsy .annot::before {
  content: ''; position: absolute; left: 0; top: 0.85rem;
  width: 12px; height: 1.5px; background: var(--c-danger);
}
.why-page .autopsy .annot .lbl {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-danger); font-weight: 600;
  margin: 0 0 .15rem;
}
.why-page .autopsy .annot .txt { color: var(--c-ink); font-size: .95rem; line-height: 1.5; margin: 0; }

.why-page .rc-frame {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.why-page .rc-frame .rc-head {
  background: var(--c-soft);
  padding: .65rem 1rem;
  font-size: .8rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-mono); letter-spacing: .02em;
}
.why-page .rc-frame .rc-head .case { color: var(--c-muted); font-size: .7rem; }
.why-page .rc-frame .rc-head .status {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; color: var(--c-danger);
}
.why-page .rc-frame .rc-body { padding: 1rem; background: white; }
.why-page .rc-frame .rc-msg {
  background: var(--c-soft);
  border-radius: 8px;
  padding: .65rem .85rem;
  font-size: .85rem;
  color: var(--c-ink);
  margin-bottom: .6rem;
  max-width: 85%;
}
.why-page .rc-frame .rc-msg.airbnb { background: var(--c-soft); }
.why-page .rc-frame .rc-msg.host {
  background: var(--c-accent-soft);
  margin-left: auto;
  border: 1px solid rgba(31,58,42,0.12);
}
.why-page .rc-frame .rc-msg .who {
  font-family: var(--f-mono); font-size: .62rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--c-muted); margin: 0 0 .25rem;
  font-weight: 700;
}
.why-page .rc-frame .rc-msg .when {
  font-family: var(--f-mono); font-size: .62rem;
  color: var(--c-muted); margin-top: .25rem; opacity: .8;
}
.why-page .rc-frame .rc-attach {
  margin-top: .35rem; padding: .35rem .55rem;
  border: 1px dashed var(--c-muted); border-radius: 6px;
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--f-mono); font-size: .68rem; color: var(--c-muted);
}
.why-page .rc-frame .rc-final {
  margin-top: .75rem;
  padding: .75rem;
  background: rgba(155,62,44,0.05);
  border: 1px solid rgba(155,62,44,0.2);
  border-radius: 6px;
  font-size: .8rem;
}
.why-page .rc-frame .rc-final strong { color: var(--c-danger); font-weight: 700; }
.why-page .rc-frame .rc-final-meta { font-family: var(--f-mono); color: var(--c-muted); font-size: .68rem; margin-top: .3rem; }

/* ---- Commitment device diagram ---- */
.why-page .commit-diagram {
  margin-top: 2rem;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.why-page .commit-diagram .commit-axis {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--c-muted);
  margin-bottom: 1.25rem;
  padding: 0 0 .35rem;
  border-bottom: 1px solid var(--c-line);
}
.why-page .commit-row {
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  align-items: center;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px dashed var(--c-line);
}
.why-page .commit-row:last-child { border-bottom: 0; }
.why-page .commit-row .lbl { font-size: .95rem; color: var(--c-ink); }
.why-page .commit-row .lbl .sub { color: var(--c-muted); font-size: .78rem; display: block; margin-top: .1rem; }
.why-page .commit-row .bar {
  height: 10px; background: var(--c-soft); border-radius: 999px; position: relative;
  overflow: hidden;
}
.why-page .commit-row .bar .fill {
  height: 100%;
  background: var(--c-accent-2);
  border-radius: 999px;
}
.why-page .commit-row .bar.low .fill { width: 8%; background: var(--c-muted); opacity: .4; }
.why-page .commit-row .bar.med-low .fill { width: 18%; background: var(--c-muted); opacity: .55; }
.why-page .commit-row .bar.med .fill { width: 38%; background: var(--c-accent-2); opacity: .8; }
.why-page .commit-row .bar.high .fill { width: 92%; background: var(--c-accent); }
.why-page .commit-row .strength {
  font-family: var(--f-mono); font-size: .8rem;
  color: var(--c-muted); text-align: right;
}
.why-page .commit-row.featured .strength { color: var(--c-accent); font-weight: 700; }

/* ---- 90s interactive demo ---- */
.live-demo .demo-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  margin-top: 2rem;
  /* Audit panel sits next to (and shorter than) the phone frame —
     centering vertically keeps the two anchored to a common visual
     midline instead of the audit panel hanging off the top. The
     mobile breakpoint at ≤900px collapses to single-column, where
     this rule no-ops. */
  align-items: center;
}

/* Post-sign download panel — hidden via [hidden] until live-demo.js
   flips it after the visitor draws the signature. Reuses the inset
   panel tint so it reads as "another beat of the same moment",
   not a separate section. */
.live-demo .demo-post-sign {
  margin-top: 1.5rem;
  padding: 18px 22px;
  background: var(--c-accent-soft, #E8F0EA);
  border: 1px solid var(--c-accent, #2F5D4A);
  border-radius: var(--radius, 12px);
  animation: paDemoPostSignIn .25s ease-out;
}
.live-demo .demo-post-sign[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .live-demo .demo-post-sign { animation: none; }
}
@keyframes paDemoPostSignIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.live-demo .demo-post-sign-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.live-demo .demo-post-sign-text { flex: 1 1 22rem; }
.live-demo .demo-post-sign-text strong { color: var(--c-ink, #2A2520); }
.live-demo .demo-post-sign-text p { margin: .2rem 0 0; }
.live-demo .demo-post-sign .btn svg {
  margin-left: .35rem;
  vertical-align: -2px;
}
.live-demo .phone-frame {
  width: 320px;
  border-radius: 36px;
  border: 12px solid #1c1c20;
  background: #1c1c20;
  padding: 0;
  box-shadow: 0 12px 30px rgba(42,37,32,.15), 0 4px 10px rgba(42,37,32,.08);
  overflow: hidden;
  position: relative;
}
.live-demo .phone-frame .notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #1c1c20; border-radius: 0 0 12px 12px;
  z-index: 3;
}
.live-demo .phone-screen {
  background: white;
  height: 580px;
  overflow-y: auto;
  font-family: var(--f-sans);
  font-size: .85rem;
  color: var(--c-ink);
  padding: 2.25rem 1rem 1rem;
  position: relative;
  border-radius: 24px;
  scrollbar-width: thin;
}
.live-demo .phone-screen::-webkit-scrollbar { width: 4px; }
.live-demo .phone-screen::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 2px; }
.live-demo .phone-screen .hello {
  font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .25rem;
}
.live-demo .phone-screen .greeting {
  color: var(--c-muted); font-size: .82rem; line-height: 1.4; margin: 0 0 1rem;
}
.live-demo .phone-screen .property-card {
  background: var(--c-soft); border-radius: 8px; padding: .55rem .75rem;
  font-size: .72rem; color: var(--c-muted); margin-bottom: 1rem;
  display: flex; justify-content: space-between;
}
.live-demo .phone-screen .property-card .pname { color: var(--c-ink); font-weight: 600; }
.live-demo .phone-screen h4 {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-muted); font-weight: 600; margin: 1rem 0 .5rem;
}
.live-demo .ack-item {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .65rem .65rem .65rem .55rem;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  margin-bottom: .5rem;
  background: white;
  cursor: pointer;
  transition: background .14s, border-color .14s;
}
.live-demo .ack-item:hover { border-color: var(--c-accent-2); }
.live-demo .ack-item.checked {
  background: var(--c-good-soft);
  border-color: var(--c-good);
}
.live-demo .ack-item .ack-circle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--c-line);
  flex: 0 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: white;
  margin-top: 1px;
}
.live-demo .ack-item.checked .ack-circle {
  background: var(--c-good); border-color: var(--c-good);
}
.live-demo .ack-item .ack-body {
  font-size: .82rem; line-height: 1.4; color: var(--c-ink); flex: 1;
}
.live-demo .ack-item .ack-body .fee {
  font-family: var(--f-mono); font-weight: 600; color: var(--c-accent);
}
.live-demo .ack-item .ack-sub {
  display: block; color: var(--c-muted); font-size: .72rem; margin-top: .15rem;
}
.live-demo .phone-screen .demo-hint {
  color: var(--c-accent-2);
  font-size: .7rem;
  font-style: italic;
  margin: .5rem 0 1rem;
  text-align: center;
}

/* Audit trail panel */
.live-demo .audit-panel {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  font-family: var(--f-mono);
  font-size: .78rem;
}
.live-demo .audit-panel .audit-head {
  font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--c-muted); margin: 0 0 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.live-demo .audit-panel .audit-head .recording {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--c-good); font-size: .65rem;
}
.live-demo .audit-panel .audit-head .recording .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-good);
  animation: why-pulse 1.2s ease-in-out infinite;
}
@keyframes why-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.live-demo .audit-row {
  display: grid;
  grid-template-columns: 16px 86px 1fr;
  gap: .65rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--c-line);
  align-items: baseline;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s, transform .35s;
}
.live-demo .audit-row.shown { opacity: 1; transform: none; }
.live-demo .audit-row .tick { color: var(--c-good); }
/* Empty tick = "waiting…" placeholder dot. Was --c-line (#E5E3DC) which
   gives 1.18:1 contrast on white — fails WCAG AA. --c-muted (#76695A)
   is ~5.9:1, passes AA for normal text. Same fix for the .audit-waiting
   span. Both stay visually subordinate because they're small + sit next
   to the timestamp column, not because they're nearly invisible. */
.live-demo .audit-row .tick.empty { color: var(--c-muted); }
.live-demo .audit-row .what .audit-waiting { color: var(--c-muted); }
.live-demo .audit-row .when { color: var(--c-muted); font-size: .68rem; }
.live-demo .audit-row .what { color: var(--c-ink); font-size: .78rem; word-break: break-all; }
.live-demo .audit-row .what .ip { color: var(--c-muted); }
.live-demo .audit-row .what .hash { color: var(--c-accent); font-size: .68rem; }
.live-demo .audit-row:last-child { border-bottom: 0; }
.live-demo .audit-foot {
  margin-top: 1rem; padding-top: .75rem;
  border-top: 1px solid var(--c-line);
  font-family: var(--f-mono); font-size: .7rem; color: var(--c-muted);
}
.live-demo .audit-foot .sealed { color: var(--c-good); }

/* signature canvas */
.live-demo .sig-pad {
  margin-top: 1rem;
  height: 90px;
  border: 2px dashed var(--c-line);
  border-radius: 8px;
  background: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); font-style: italic; color: var(--c-muted);
  font-size: .85rem;
  position: relative;
}
.live-demo .sig-pad.signed {
  border-style: solid;
  border-color: var(--c-accent-2);
  background: rgba(168,130,58,0.04);
}
.live-demo .sig-pad .sig-svg {
  width: 90%; height: 60px;
  opacity: 0;
  transition: opacity .8s;
}
.live-demo .sig-pad.signed .sig-svg { opacity: 1; }
.live-demo .sig-pad.signed .sig-svg path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: why-draw 1.2s ease forwards;
}
@keyframes why-draw {
  to { stroke-dashoffset: 0; }
}
.live-demo .sig-pad .sig-prompt { display: block; }
.live-demo .sig-pad.signed .sig-prompt { display: none; }
.live-demo .sig-pad .clear {
  position: absolute; top: 6px; right: 8px;
  font-size: .65rem; font-family: var(--f-mono);
  color: var(--c-muted); cursor: pointer;
  text-decoration: underline;
}
.live-demo .sig-pad:not(.signed) .clear { display: none; }

/* ---- Evidence chain ---- */
.why-page .evidence-chain {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  align-items: stretch;
}
.why-page .evidence-step {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: .85rem .75rem;
  position: relative;
  text-align: center;
}
.why-page .evidence-step::after {
  content: '→'; position: absolute;
  right: -1rem; top: 50%; transform: translateY(-50%);
  color: var(--c-accent-2); font-size: 1rem;
  z-index: 2;
}
.why-page .evidence-step:last-child::after { display: none; }
.why-page .evidence-step .ev-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(168,130,58,0.18); color: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: .5rem;
}
.why-page .evidence-step .ev-icon svg { width: 16px; height: 16px; }
.why-page .evidence-step .ev-name {
  font-size: .8rem; font-weight: 600; margin: 0; letter-spacing: -.01em;
}
.why-page .evidence-step .ev-meta {
  font-family: var(--f-mono); font-size: .65rem;
  color: var(--c-muted); margin-top: .2rem;
}

/* ---- Cert mockup (annotated) ---- */
.why-page .cert-annotated {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}
.why-page .cert-full {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(42,37,32,.12), 0 2px 6px rgba(42,37,32,.06);
  padding: 1.5rem;
  transform: rotate(-0.8deg);
  position: relative;
  font-size: .82rem;
}
.why-page .cert-full::after {
  content: 'SIGNED'; position: absolute; top: 14px; right: 14px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: var(--c-accent-2); border: 1.5px solid var(--c-accent-2);
  padding: 3px 8px; border-radius: 4px; transform: rotate(8deg); opacity: .9;
}
.why-page .cert-full h4 { margin: 0 0 .25rem; font-size: 1rem; letter-spacing: -.01em; }
.why-page .cert-full .cert-meta {
  color: var(--c-muted); font-family: var(--f-mono);
  font-size: .7rem; line-height: 1.7; margin: 0 0 1rem;
}
.why-page .cert-full .cert-row {
  border-top: 1px solid var(--c-line); padding: .4rem 0;
  display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem;
}
.why-page .cert-full .cert-row .l { color: var(--c-muted); }
.why-page .cert-full .cert-row .r { color: var(--c-ink); }
.why-page .cert-full .cert-row .r.ok { color: var(--c-good); }
.why-page .cert-full .sig {
  margin-top: .9rem; padding-top: .6rem; border-top: 1px solid var(--c-line);
  display: flex; align-items: center; gap: 1rem;
}
.why-page .cert-full .sig svg { width: 110px; height: 36px; }
.why-page .cert-full .sig .meta { font-family: var(--f-mono); font-size: .65rem; color: var(--c-muted); }
.why-page .cert-full .hash {
  margin-top: .5rem; font-family: var(--f-mono); font-size: .62rem;
  color: var(--c-muted); word-break: break-all;
}
.why-page .cert-annots .ann-row {
  display: flex; align-items: flex-start; gap: .85rem; padding: .85rem 0;
  border-bottom: 1px dashed var(--c-line);
}
.why-page .cert-annots .ann-row:last-child { border-bottom: 0; }
.why-page .cert-annots .ann-row .marker {
  flex: 0 0 24px; height: 24px; border-radius: 50%;
  background: var(--c-accent); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: .7rem; font-weight: 700;
  margin-top: 2px;
}
.why-page .cert-annots .ann-row .lbl { font-weight: 600; font-size: .92rem; margin: 0 0 .15rem; }
.why-page .cert-annots .ann-row .txt { color: var(--c-muted); font-size: .85rem; line-height: 1.5; margin: 0; }

/* ---- Three-incidents tab UI ---- */
.why-page .incident-tabs {
  display: flex;
  gap: .25rem;
  background: var(--c-soft);
  border-radius: var(--radius);
  padding: .35rem;
  margin: 2rem 0 1.5rem;
  width: fit-content;
}
.why-page .incident-tab {
  font-family: inherit;
  background: transparent;
  border: 0;
  padding: .65rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--c-muted);
  font-weight: 600;
  letter-spacing: -.005em;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .14s, color .14s;
}
.why-page .incident-tab:hover { color: var(--c-ink); }
.why-page .incident-tab.active {
  background: white;
  color: var(--c-ink);
  box-shadow: 0 1px 2px rgba(42,37,32,.06);
}
.why-page .incident-tab .it-fee {
  font-family: var(--f-mono); font-size: .72rem;
  color: var(--c-accent); padding: .1rem .35rem;
  background: var(--c-accent-soft); border-radius: 4px;
  font-weight: 600;
}
.why-page .incident-tab.active .it-fee { background: rgba(31,58,42,.12); }

/* ---- Split timeline ---- */
.why-page .split-timeline {
  margin-top: 1.5rem;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.why-page .split-timeline[hidden] { display: none; }
.why-page .split-timeline .st-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1.25rem;
}
.why-page .st-track {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}
.why-page .st-track .track-label {
  font-weight: 700;
  font-size: .9rem;
  align-self: center;
  letter-spacing: -.01em;
}
.why-page .st-track.without .track-label { color: var(--c-danger); }
.why-page .st-track.with .track-label { color: var(--c-good); }
.why-page .st-track .track-label .small {
  font-weight: 500; color: var(--c-muted); font-size: .7rem;
  font-family: var(--f-mono); letter-spacing: .05em; display: block; margin-top: .15rem;
}

.why-page .timeline-rail {
  position: relative;
  padding: 1rem 0 .25rem;
  display: flex;
  gap: 0;
  justify-content: space-between;
}
.why-page .timeline-rail::before {
  content: ''; position: absolute;
  left: 6px; right: 6px; top: 22px; height: 2px;
  z-index: 0;
}
.why-page .st-track.without .timeline-rail::before { background: var(--c-danger); opacity: .35; }
.why-page .st-track.with .timeline-rail::before { background: var(--c-good); opacity: .35; }

.why-page .tl-step {
  position: relative;
  z-index: 1;
  width: calc((100% - 0px) / 5);
  flex: 0 0 auto;
  text-align: left;
  padding-right: .5rem;
}
.why-page .tl-step .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-line);
  margin-bottom: .65rem;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--c-line);
}
.why-page .st-track.without .tl-step .dot {
  background: var(--c-danger);
  box-shadow: 0 0 0 1px var(--c-danger);
}
.why-page .st-track.with .tl-step .dot {
  background: var(--c-good);
  box-shadow: 0 0 0 1px var(--c-good);
}
.why-page .st-track.without .tl-step:last-child .dot,
.why-page .st-track.with .tl-step:last-child .dot {
  width: 16px; height: 16px; margin-left: -2px;
}
.why-page .tl-step .when {
  font-family: var(--f-mono); font-size: .65rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-muted); margin-bottom: .2rem;
}
.why-page .tl-step .what {
  font-size: .82rem; line-height: 1.35; color: var(--c-ink);
  margin: 0; font-weight: 500;
}
.why-page .tl-step .sub-what {
  font-size: .7rem; color: var(--c-muted); margin-top: .15rem;
  line-height: 1.35; display: block;
  font-family: var(--f-mono);
}
.why-page .tl-step.outcome .what { font-weight: 700; }
.why-page .st-track.without .tl-step.outcome .what { color: var(--c-danger); }
.why-page .st-track.with .tl-step.outcome .what { color: var(--c-good); }

.why-page .split-divider {
  height: 1px; background: var(--c-line); margin: 1.5rem 0 1rem;
  position: relative;
}
.why-page .split-divider::after {
  content: 'VS'; position: absolute;
  top: 50%; left: 120px; transform: translate(-50%, -50%);
  background: white;
  font-family: var(--f-mono); font-size: .65rem;
  font-weight: 700; letter-spacing: .12em;
  color: var(--c-muted);
  padding: 4px 8px;
  border: 1px solid var(--c-line); border-radius: 4px;
}

/* ---- "Why it works" research cards ---- */
.why-page .research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.why-page .research-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
  position: relative;
}
.why-page .research-card .topic {
  font-family: var(--f-mono); font-size: .65rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-accent-2); font-weight: 700;
}
.why-page .research-card h3 {
  font-size: 1.05rem; margin: 0; letter-spacing: -.01em;
  text-wrap: pretty;
}
.why-page .research-card p {
  color: var(--c-muted); font-size: .9rem; line-height: 1.55;
  margin: 0;
}
.why-page .research-card .source {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: .7rem;
  color: var(--c-muted);
  padding-top: .75rem;
  border-top: 1px dashed var(--c-line);
}
.why-page .research-card .source a { color: var(--c-accent); text-decoration: underline; }

.why-page .commit-head {
  margin-top: 3rem; font-size: 1.25rem; letter-spacing: -.01em;
}
.why-page .chain-head {
  margin-top: 2.5rem; font-size: 1rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-muted); font-weight: 600;
}

/* footnote superscript */
.why-page sup.fn {
  font-family: var(--f-mono);
  font-size: .65em;
  color: var(--c-accent);
  font-weight: 600;
  vertical-align: super;
  margin-left: .15em;
}
.why-page sup.fn a { color: inherit; text-decoration: none; }
.why-page sup.fn a:hover { text-decoration: underline; }

/* ---- Final CTA ---- */
.why-page .final-cta {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--c-line);
  background: var(--c-soft);
  border-radius: var(--radius);
  margin-top: 2rem;
  color: var(--c-ink);
}
.why-page .final-cta h2 { margin-top: 0; color: var(--c-ink); }
.why-page .final-cta p { color: var(--c-muted); max-width: 580px; margin-left: auto; margin-right: auto; }
.why-page .final-cta .ctas { display: flex; gap: .75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ---- Sources footer ---- */
.why-page .sources {
  padding: 3rem var(--pad) 4rem;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--c-line);
}
.why-page .sources h3 {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-muted);
  margin: 0 0 1.25rem;
}
.why-page .sources ol {
  padding: 0;
  list-style: none;
  margin: 0;
  counter-reset: src;
}
.why-page .sources ol li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px dashed var(--c-line);
  counter-increment: src;
}
.why-page .sources ol li::before {
  content: counter(src);
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 700;
  color: var(--c-accent);
}
.why-page .sources ol li:last-child { border-bottom: 0; }
.why-page .sources .src-body { font-size: .85rem; line-height: 1.55; color: var(--c-ink); }
.why-page .sources .src-body .pub { color: var(--c-muted); }
.why-page .sources .src-body a { color: var(--c-accent); text-decoration: underline; }
.why-page .sources .src-body .quote {
  display: block; font-style: italic; color: var(--c-muted);
  margin-top: .35rem; padding-left: .75rem;
  border-left: 2px solid var(--c-line);
  font-size: .82rem;
}
.why-page .sources .src-note {
  font-size: .78rem; color: var(--c-muted); margin-top: 1.5rem; line-height: 1.6;
}

/* ---- Editorial photo block ---- */
.why-page .photo-block {
  position: relative; aspect-ratio: 21 / 9;
  border-radius: var(--radius); overflow: hidden;
  margin-top: 1.25rem;
  background:
    linear-gradient(180deg, rgba(42,37,32,0) 50%, rgba(42,37,32,.55) 100%),
    linear-gradient(160deg, #4a7d66 0%, #2F5D4A 38%, #1d3a2e 100%);
}
.why-page .photo-block .ph-content {
  position: absolute; left: 1.75rem; right: 1.75rem; bottom: 1.4rem;
  color: white;
}
.why-page .photo-block .ph-caption {
  font-size: 1.05rem; line-height: 1.45;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  max-width: 520px; margin: 0;
}
.why-page .photo-block .ph-caption em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: 1.1em;
}
.why-page .photo-block .ph-credit {
  position: absolute; right: 1rem; bottom: .95rem;
  color: rgba(255,255,255,.65);
  font-size: .68rem; font-family: var(--f-mono);
}
.why-page .photo-block.living {
  background:
    radial-gradient(ellipse at 70% 25%, rgba(120,200,165,0.4) 0%, rgba(120,200,165,0) 38%),
    linear-gradient(180deg, #6f9d87 0%, #4a7d66 35%, #2f5d4a 65%, #1d3a2e 100%);
}
.why-page .photo-block.living::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 60%, rgba(40,30,20,0.85) 60.5%, rgba(20,15,8,0.95) 100%);
}
.why-page .photo-block.living::after {
  content: '';
  position: absolute;
  left: 12%; bottom: 40%; width: 18%; height: 28%;
  background: rgba(20,15,8,0.7);
  border-radius: 4px;
  box-shadow:
    35% 8% 0 -2% rgba(20,15,8,0.6),
    -5% -10% 0 -4% rgba(20,15,8,0.4);
}

/* ---- outcome chip ---- */
.why-page .outcome-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
}
.why-page .outcome-chip.good { background: var(--c-good-soft); color: var(--c-good); }
.why-page .outcome-chip.bad { background: rgba(155,62,44,.1); color: var(--c-danger); }
.why-page .outcome-chip.warn { background: var(--c-warn-soft); color: var(--c-warn); }

.why-page .incident-headline {
  font-size: 1rem; color: var(--c-ink); margin: .5rem 0 0; font-weight: 500;
}
.why-page .outcome-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .why-page .hero-split { grid-template-columns: 1fr; }
  .why-page .autopsy,
  .why-page .cert-annotated { grid-template-columns: 1fr; gap: 1.25rem; }
  .why-page .research-grid { grid-template-columns: 1fr; }
  .why-page .evidence-chain { grid-template-columns: repeat(2, 1fr); }
  .live-demo .demo-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  /* The incident tabs row was forcing horizontal overflow on phones —
     allow wrapping when there's no room for all three side-by-side. */
  .why-page .incident-tabs { flex-wrap: wrap; }
  /* Split-timeline 5-col grid stacks to 1-col on mobile to kill overflow. */
  .why-page .split-timeline,
  .why-page .st-track { grid-template-columns: 1fr; }
  .why-page .split-divider { display: none; }
  .why-page .timeline-rail { grid-template-columns: 1fr; }
}

/* ---------- hero dollar-math anchor (C1) ---------- */
.pay-math {
  margin: -16px 0 32px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-muted);
  border-left: 2px solid var(--c-accent-2);
  padding-left: 12px;
  max-width: 52ch;
}

/* ---------- "Additional Rules" listing block (C4) ---------- */
.rules-mock {
  margin-top: 28px;
  max-width: 620px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 14px 36px rgba(0,0,0,0.10);
  overflow: hidden;
}
.rules-mock .rm-chrome {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--c-soft);
  border-bottom: 1px solid var(--c-line);
}
.rules-mock .rm-label {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.rules-mock .rm-hint {
  font-size: 11.5px;
  color: var(--c-accent-2);
  font-weight: 600;
}
.rules-mock .rm-field {
  margin: 16px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: var(--c-bg);
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--c-ink);
}
.rules-mock .rm-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 16px 16px;
}
.rules-mock .rm-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border-radius: 999px;
  padding: 6px 12px;
}
.rules-mock .rm-tag svg { width: 14px; height: 14px; }
.rules-mock .rm-plus {
  font-family: var(--f-sans);
  font-weight: 700;
  color: var(--c-muted);
}

/* ============================================================
   Blog — article body, post meta, index list. Scoped under the
   classes the build/templates/blog.ts renderer emits.
   ============================================================ */
.post-meta {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--c-muted);
  margin: 14px 0 0;
}

/* Rendered-Markdown article body — readable measure. */
.article {
  max-width: 68ch;
  color: var(--c-ink);
  font-size: 17px;
  line-height: 1.72;
}
.article > *:first-child { margin-top: 0; }
.article p { margin: 0 0 1.1em; }
.article h2 {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.25;
  margin: 2em 0 0.6em;
}
.article h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 1.6em 0 0.5em;
}
.article ul,
.article ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article li { margin: 0 0 0.5em; }
.article strong { color: var(--c-ink); font-weight: 600; }
.article em { font-style: italic; }
.article a { color: var(--c-accent-2); }
.article a:hover { text-decoration: underline; }
.article blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--c-accent-2);
  color: var(--c-muted);
  font-style: italic;
}
.article code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  background: var(--c-soft);
  border-radius: 3px;
  padding: 1px 5px;
}
.article hr { border: none; border-top: var(--rule-style); margin: 2em 0; }

/* End-of-post CTA + back link. */
.post-cta {
  max-width: 68ch;
  margin: 48px 0 0;
  padding: 28px 32px;
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.post-cta p {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--c-ink);
  line-height: 1.55;
}
.post-cta .ctas { margin: 0; }
.post-back { margin: 32px 0 0; }
.post-back a { color: var(--c-accent-2); font-size: 14px; }
.post-back a:hover { text-decoration: underline; }

/* Blog index list. */
.post-list { display: flex; flex-direction: column; gap: 4px; }
.post-row {
  display: block;
  padding: 28px 0;
  border-top: var(--rule-style);
  text-decoration: none;
  color: inherit;
}
.post-row:last-child { border-bottom: var(--rule-style); }
.post-row-meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-muted);
  margin: 0 0 8px;
}
.post-row h2 {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 8px;
  line-height: 1.3;
}
.post-row:hover h2 { color: var(--c-accent); }
.post-row-desc {
  margin: 0 0 12px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 70ch;
}
.post-row-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-accent-2);
}
.post-row-more svg { width: 14px; height: 14px; }
.post-row:hover .post-row-more svg { transform: translateX(2px); }

/* ============================================================
   SEO intent pages — internal-link block, checklist rows, and
   the copy-paste <pre> field on the house-rules template.
   ============================================================ */
.link-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.link-block a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-paper);
  text-decoration: none;
}
.link-block a:hover { border-color: var(--c-accent-2); }
.link-block a strong {
  display: block;
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.link-block a span {
  display: block;
  font-size: 13.5px;
  color: var(--c-muted);
  line-height: 1.5;
}

/* AirCover checklist — numbered rows mapping ask -> cert field. */
.checklist { display: flex; flex-direction: column; gap: 4px; }
.check-row {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: var(--rule-style);
}
.check-row:last-child { border-bottom: var(--rule-style); }
.check-num {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-accent-2);
  flex: 0 0 auto;
  padding-top: 2px;
}
.check-body { flex: 1; }
.check-ask {
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 6px;
  line-height: 1.4;
}
.check-detail {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 64ch;
}
.check-map {
  margin: 0;
  font-size: 14px;
  color: var(--c-ink);
  line-height: 1.6;
  max-width: 64ch;
  padding: 10px 14px;
  background: var(--c-accent-soft);
  border-radius: 4px;
}
.check-map-l {
  display: block;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 3px;
}

/* Copy-paste template field — <pre> inside the .rules-mock card. */
pre.rm-field {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 16px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: var(--c-bg);
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--c-ink);
}
.rules-mock .rm-tag[download],
.rules-mock a.rm-tag { text-decoration: none; }
.rules-mock a.rm-tag:hover { filter: brightness(0.96); }

/* ---------- city pages — tuned house-rules list ---------- */
.city-rules {
  display: flex;
  flex-direction: column;
  margin: 16px;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  background: var(--c-bg);
  overflow: hidden;
}
.city-rule {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
}
.city-rule:last-child { border-bottom: none; }
.city-rule .cr-label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-accent-2);
  padding-top: 1px;
}
.city-rule .cr-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--c-ink);
}
.callout.city-disclaimer { border-left: 3px solid var(--c-accent-2); }
@media (max-width: 640px) {
  .city-rule { grid-template-columns: 1fr; gap: 4px; }
}

/* ── prose-list — styled bullet list used on /partners/insurance/ ── */
.prose-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prose-list li {
  position: relative;
  padding-left: 18px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.65;
}
.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent-2);
}
.prose-list li strong { color: var(--c-ink); }

/* ============================================================
   Help center (kb-index + kb-article)
   ============================================================ */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.kb-card {
  display: block;
  padding: 1.1rem 1.25rem;
  background: var(--c-page, #fff);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.kb-card:hover {
  border-color: var(--c-accent, #2F5D4A);
  transform: translateY(-1px);
}
.kb-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: var(--c-ink);
}
.kb-card p { margin: 0; font-size: .92rem; line-height: 1.45; }

.kb-prose p { margin: 0 0 .9rem; line-height: 1.65; }
.kb-prose ul, .kb-prose ol { margin: 0 0 1rem 1.25rem; line-height: 1.65; }
.kb-prose li { margin: .25rem 0; }
.kb-prose code {
  background: var(--c-vellum, #FAF6EF);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .9em;
}

.kb-related {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--c-vellum, #FAF6EF);
  border: 1px solid var(--c-line);
  border-radius: 10px;
}
.kb-related h5 {
  margin: 0 0 .5rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.kb-related ul { margin: 0; padding-left: 1.1rem; }
.kb-related li { margin: .25rem 0; }

/* ─────────────────────────────────────────────────────────────────────
   QA fixes (CONTENT-RESTRUCTURE-SPEC §1A.4–§1A.5)
   ───────────────────────────────────────────────────────────────────── */

/* Headings must never inherit the body 1.55 line-height. Classed display
   headings (h1.t-display, h2.t-section) are more specific and keep their
   own tighter values; this only catches unclassed headings (e.g. the
   final-CTA h2, the serif "What it is/isn't" h3s) that otherwise blow out
   when they wrap on mobile. */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }

/* Brand link color — bare/prose links default to forest, never the UA
   blue (and visited links never go purple). Context rules that set their
   own color (.topnav nav a, .foot-grid a, .faq a, .article a, .btn, etc.)
   are more specific and continue to win. */
a { color: var(--c-accent); }
a:visited { color: var(--c-accent); }

/* ─────────────────────────────────────────────────────────────────────
   /features/ — visual refresh (Spec 1-5)
   ───────────────────────────────────────────────────────────────────── */

/* Spec 1 — alternating cert-wrap order. Markup stays text-then-visual
   in source order for accessibility + mobile (text first when stacked);
   .reverse flips the visual to the left on desktop only. */
@media (min-width: 720px) {
  .cert-wrap.reverse > :first-child { order: 2; }
  .cert-wrap.reverse > :last-child  { order: 1; }
}

/* Spec 2 — section eyebrow icon. Sits before the section-label number,
   forest-accent, ~20px square. Keeps the eyebrow line baseline-aligned. */
.section-label .eyebrow-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-right: 8px;
  color: var(--c-accent, var(--c-accent-2));
  vertical-align: -4px;
}
.section-label .eyebrow-icon svg { width: 16px; height: 16px; }

/* Spec 3 — sticky matrix header so column tier labels follow the scroll.
   Topnav is sticky at ~85px, so the matrix header sits below it. */
.m-table thead th {
  position: sticky;
  top: 80px;                /* clears the sticky topnav */
  background: var(--c-soft);
  z-index: 5;
}
/* Group rows also stick just below the column-header band so a deep
   reader can see both "which capability group" and "which tier" at
   the same time. */
.m-table .m-group th {
  position: sticky;
  top: 130px;               /* below the column headers */
  z-index: 4;
}
/* Mobile: the table horizontally scrolls (m-wrap is overflow-x:auto).
   Sticky-left on the capability column keeps the row label visible
   while the visitor swipes across the tier columns. */
@media (max-width: 720px) {
  .m-table .m-row-head,
  .m-table .m-row {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 3;
    /* re-paint the right edge as a thin divider so the sticky column
       doesn't visually merge into the scrolled cells beside it. */
    box-shadow: 1px 0 0 var(--c-line);
  }
  .m-table .m-group th {
    /* The group rows already span all columns and can't be sticky-left;
       drop the sticky-top on mobile so they don't visually conflict
       with the column header band. */
    position: static;
  }
}

/* Spec 4 — slim anchor nav under the hero. Sits as a thin pill row,
   forest-on-bone, with a soft hover. */
.features-anchor-nav {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin: 24px auto 0; max-width: 780px;
  font-family: var(--f-mono, monospace);
  font-size: 12px; letter-spacing: 0.04em;
}
.features-anchor-nav a {
  display: inline-flex; align-items: center; padding: 6px 12px;
  border: 1px solid var(--c-line); border-radius: 999px;
  color: var(--c-muted); background: #fff;
  text-decoration: none;
}
.features-anchor-nav a:hover { border-color: var(--c-accent); color: var(--c-ink); }
.features-anchor-nav a:visited { color: var(--c-muted); }

/* ─── Section visuals (Spec 1) ───────────────────────────────────── */

/* Shared scaffold for the four section visuals — paper-card aesthetic
   that mirrors the homepage hero-art without duplicating its markup.
   Each visual fills its cert-wrap column at a fixed aspect ratio so the
   alternating left/right layout reads as paced rather than ragged. */
.feature-vis {
  position: relative;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  font-family: var(--f-sans);
  min-height: 320px;
}

/* 01 — Packet builder mock. Static reflection of the unsigned card on
   the homepage hero, scoped to features so it can evolve independently. */
.feature-vis.fv-packet .fv-head {
  border-bottom: 1px solid var(--c-line); padding-bottom: 10px;
  margin-bottom: 12px; text-align: center;
}
.feature-vis.fv-packet .fv-prop-name {
  font-weight: 600; font-size: 14px; color: var(--c-ink);
}
.feature-vis.fv-packet .fv-prop-sub {
  font-size: 11px; color: var(--c-muted); margin-top: 2px;
  letter-spacing: 0.04em;
}
.feature-vis.fv-packet ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.feature-vis.fv-packet li {
  display: flex; gap: 10px; align-items: center;
  background: var(--c-soft); border: 1px solid var(--c-line);
  border-radius: 8px; padding: 8px 12px; font-size: 12.5px;
}
.feature-vis.fv-packet li .fv-box {
  width: 14px; height: 14px; border: 1.5px solid var(--c-line);
  border-radius: 3px; flex: 0 0 14px;
}
.feature-vis.fv-packet li .fv-label { flex: 1; color: var(--c-ink); }
.feature-vis.fv-packet li .fv-price {
  font-family: var(--f-mono, monospace); font-size: 12px;
  color: var(--c-accent); font-weight: 600;
}
.feature-vis.fv-packet .fv-edit-hint {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--f-mono, monospace); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-muted);
}

/* 02 — Intake mock. Three-source pill row + a paste-parser preview row. */
.feature-vis.fv-intake .fv-section-h {
  font-family: var(--f-mono, monospace); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-muted); margin: 0 0 10px;
}
.feature-vis.fv-intake .fv-sources {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px;
}
.feature-vis.fv-intake .fv-source {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--c-line);
  border-radius: 999px; font-size: 12px; background: var(--c-soft);
  color: var(--c-ink);
}
.feature-vis.fv-intake .fv-source .fv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
}
.feature-vis.fv-intake .fv-source.fv-source-inactive { opacity: 0.55; }
.feature-vis.fv-intake .fv-source.fv-source-inactive .fv-dot {
  background: var(--c-muted);
}
.feature-vis.fv-intake .fv-paste-box {
  border: 1px dashed var(--c-line); border-radius: 8px;
  padding: 10px 12px; background: var(--c-soft);
  font-family: var(--f-mono, monospace); font-size: 11.5px;
  color: var(--c-muted); line-height: 1.5;
  white-space: pre-line;
}
.feature-vis.fv-intake .fv-arrow {
  text-align: center; color: var(--c-muted);
  margin: 8px 0; font-size: 18px; line-height: 1;
}
.feature-vis.fv-intake .fv-row {
  display: flex; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: 8px; padding: 10px 12px; font-size: 13px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.feature-vis.fv-intake .fv-row strong { color: var(--c-ink); }
.feature-vis.fv-intake .fv-row .fv-meta {
  margin-left: auto; font-family: var(--f-mono, monospace);
  font-size: 11px; color: var(--c-muted);
}

/* 03 — Static phone-frame mock. Inherits the .live-demo .phone-frame
   look but is non-interactive and shows a finished/signed state. */
.feature-vis.fv-phone {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  display: flex; justify-content: center; align-items: flex-start;
}
.feature-vis.fv-phone .fv-phone-frame {
  width: 280px; max-width: 100%;
  border-radius: 32px; border: 11px solid #1c1c20;
  background: #1c1c20; box-shadow: 0 12px 30px rgba(42,37,32,.15);
  overflow: hidden; position: relative;
}
.feature-vis.fv-phone .fv-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 20px; background: #1c1c20;
  border-radius: 0 0 12px 12px; z-index: 1;
}
.feature-vis.fv-phone .fv-screen {
  background: #fff; padding: 28px 18px 18px;
  font-size: 12px; line-height: 1.45;
}
.feature-vis.fv-phone .fv-greeting { color: var(--c-muted); font-size: 11px; }
.feature-vis.fv-phone .fv-prop {
  background: var(--c-soft); border-radius: 8px; padding: 8px 10px;
  margin: 8px 0 12px; font-size: 11px;
}
.feature-vis.fv-phone .fv-prop strong { display: block; color: var(--c-ink); }
.feature-vis.fv-phone .fv-section-h2 {
  font-size: 11px; color: var(--c-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin: 6px 0 6px;
}
.feature-vis.fv-phone .fv-ack {
  display: flex; gap: 8px; align-items: flex-start;
  background: rgba(47,93,74,0.06); border: 1px solid rgba(47,93,74,0.18);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
  font-size: 11px; color: var(--c-ink);
}
.feature-vis.fv-phone .fv-tick {
  flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-accent); color: #fff; font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-vis.fv-phone .fv-sig {
  background: var(--c-soft); border: 1px solid var(--c-line);
  border-radius: 8px; padding: 8px 10px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 6px;
}
.feature-vis.fv-phone .fv-sig svg {
  width: 80%; height: 28px; color: var(--c-ink);
}

/* 04 — Cert preview reuses .cert-preview-img markup pattern from
   home.ts / how-it-works.ts — no extra rule needed beyond what's
   already in the stylesheet. */

/* Mobile: shrink the visual scaffold so it doesn't tower over the
   stacked text column. */
@media (max-width: 720px) {
  .feature-vis { min-height: 0; padding: 18px 18px; }
  .feature-vis.fv-phone .fv-phone-frame { width: 260px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Site-wide: anchor offset
   ───────────────────────────────────────────────────────────────────── */

/* Sticky topnav sits at ~75px tall, so anchor jumps need scroll-margin
   to clear it; otherwise the H2 ends up under the nav band. Scoped to
   <section id="…"> so it doesn't affect mid-paragraph anchor jumps. */
section[id] { scroll-margin-top: 90px; }

/* ─────────────────────────────────────────────────────────────────────
   /how-it-works/ — refinement (Spec 1-5)
   ───────────────────────────────────────────────────────────────────── */

/* Spec 3 — 4-up overview strip under the hero. Compact icon tiles with
   step numbers + one-word labels, dotted connector. Doubles as the
   in-page anchor nav (Spec 4) so the right column of the hero is no
   longer empty AND the reader has a map of the four stages at-a-glance. */
/* ── Resting strip ──────────────────────────────────────────────
   The hero-anchored 4-up card grid. Lives in normal flow under the
   hero and never moves; the stuck bar below is a separate element
   that fades in to cover the same role once the reader scrolls past. */
.stage-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 6px auto 56px;
  max-width: 760px;
  padding: 0 28px;
  box-sizing: border-box;
}
.stage-overview a {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 18px 10px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  transition:
    border-color 180ms cubic-bezier(.2,.7,.2,1),
    background-color 180ms cubic-bezier(.2,.7,.2,1),
    transform 180ms cubic-bezier(.2,.7,.2,1),
    box-shadow 180ms cubic-bezier(.2,.7,.2,1);
}
.stage-overview a:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -10px rgba(47,93,74,.30);
}
.stage-overview a:visited { color: inherit; }
.stage-overview .so-tile {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--c-accent);
  color: var(--c-bone);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1);
}
.stage-overview .so-tile svg { width: 18px; height: 18px; }
.stage-overview .so-num {
  font-family: var(--f-mono, monospace);
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--c-muted);
  transition: color 180ms cubic-bezier(.2,.7,.2,1);
}
.stage-overview .so-label {
  font-size: 13px; font-weight: 500;
  color: var(--c-ink);
  transition: color 180ms cubic-bezier(.2,.7,.2,1);
}
.stage-overview a.active {
  border-color: var(--c-accent);
  background: rgba(47, 93, 74, 0.06);
  box-shadow: 0 6px 18px -10px rgba(47,93,74,.25);
}
.stage-overview a.active .so-num { color: var(--c-accent); }
.stage-overview a.active .so-label { color: var(--c-accent); }

/* ── Stuck bar ──────────────────────────────────────────────────
   Position: fixed under the topnav. Hidden by default (off-screen
   above + transparent); the scroll-spy script adds `.is-on` to fade
   it in. Because it's fixed, the resting strip below it never moves
   in flow when this appears — no content jump. */
.stage-overview-bar {
  position: fixed;
  top: 75px; left: 0; right: 0;
  z-index: 40;
  background: rgba(250, 246, 239, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 8px 16px -12px rgba(42, 37, 32, 0.18);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 220ms cubic-bezier(.2,.7,.2,1),
    transform 220ms cubic-bezier(.2,.7,.2,1);
}
.stage-overview-bar.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.stage-overview-bar .page-inner { padding-top: 0; padding-bottom: 0; }
.stage-overview-bar .sob-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stage-overview-bar a {
  display: flex; flex-direction: row; align-items: center;
  justify-content: center; gap: 10px;
  padding: 10px 12px;
  min-height: 52px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--c-line);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  text-align: left;
  font-size: 12.5px;
  transition:
    background-color 160ms cubic-bezier(.2,.7,.2,1),
    color 160ms cubic-bezier(.2,.7,.2,1);
}
.stage-overview-bar a:visited { color: inherit; }
.stage-overview-bar a:last-child { border-right: 0; }
.stage-overview-bar a:hover { background: rgba(47,93,74,0.04); }
.stage-overview-bar .so-tile {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--c-accent);
  color: var(--c-bone);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 26px;
}
.stage-overview-bar .so-tile svg { width: 14px; height: 14px; }
.stage-overview-bar .so-num { display: none; }
.stage-overview-bar .so-label {
  font-size: 12.5px; font-weight: 500; color: var(--c-ink);
  white-space: nowrap;
}
.stage-overview-bar a.active {
  background: rgba(47,93,74,0.08);
  box-shadow: inset 0 -2px 0 0 var(--c-accent);
}
.stage-overview-bar a.active .so-label { color: var(--c-accent); }

/* The hero-resident sentinel — invisible, zero height, just a probe
   for IntersectionObserver. Sits just under the hero so when it
   leaves the viewport the stuck bar fades in. */
.hiw-sticky-sentinel {
  height: 1px; width: 100%;
  margin-top: -1px;
  pointer-events: none;
}

@media (max-width: 720px) {
  .stage-overview {
    margin: 6px auto 40px;
    padding: 0 20px;
    gap: 10px;
  }
  .stage-overview a { padding: 14px 8px; gap: 8px; }
  .stage-overview .so-tile { width: 34px; height: 34px; }
}
@media (max-width: 560px) {
  .stage-overview {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }
  /* Stuck bar on small screens — horizontal scroll so chips stay
     finger-tappable without wrapping under the mobile topnav drawer. */
  .stage-overview-bar .sob-inner {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .stage-overview-bar .sob-inner::-webkit-scrollbar { display: none; }
  .stage-overview-bar a {
    flex: 0 0 auto;
    min-width: 132px;
    justify-content: flex-start;
  }
}

/* Respect reduced-motion — kill the fade/slide so the bar simply
   blinks on/off when stuck. */
@media (prefers-reduced-motion: reduce) {
  .stage-overview-bar { transition: none; transform: none; }
  .stage-overview a, .stage-overview-bar a { transition: none; }
}

/* SPEC rev.2 §4.4 — anchor offset must clear BOTH sticky bars (topnav
   ~75px + stuck selector ~48px + breathing room 16px = 139px). The
   site-wide `section[id] { scroll-margin-top: 90px }` covers the
   topnav; this scoped rule extends it for the /how-it-works/ stage
   sections + the demo interlude + the listing block. */
.hiw-stage[id],
#see-it,
#listing-block { scroll-margin-top: 139px; }

/* Spec 2 — Stage 02 visual: branded-email mock. Same .rules-mock
   aesthetic the listing-block card uses (chrome + body), tuned to
   show the from-line + subject + single signing button the guest
   receives. Lives in marketing.css so the listing-block CSS at
   :1100+ stays untouched. */
.email-mock {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--f-sans);
}
.email-mock .em-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--c-soft);
  border-bottom: 1px solid var(--c-line);
  font-family: var(--f-mono, monospace);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--c-muted);
}
.email-mock .em-chrome .em-dots {
  display: inline-flex; gap: 4px;
}
.email-mock .em-chrome .em-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-line);
}
.email-mock .em-meta {
  padding: 14px 18px 4px;
  font-size: 12.5px;
  color: var(--c-muted);
}
.email-mock .em-meta .em-row { display: flex; gap: 6px; line-height: 1.55; }
.email-mock .em-meta .em-row strong { color: var(--c-ink); font-weight: 500; }
.email-mock .em-subject {
  padding: 6px 18px 14px;
  font-family: var(--f-serif, "Source Serif 4", Georgia, serif);
  font-size: 17px; line-height: 1.3;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.email-mock .em-body {
  padding: 18px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--c-ink);
}
.email-mock .em-body p { margin: 0 0 .9rem; }
.email-mock .em-body p:last-of-type { margin-bottom: 0; }
.email-mock .em-cta {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 10px 18px;
  background: var(--c-accent);
  color: var(--c-bone);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.email-mock .em-footnote {
  padding: 10px 18px;
  background: var(--c-soft);
  border-top: 1px solid var(--c-line);
  font-size: 11px;
  color: var(--c-muted);
  font-family: var(--f-mono, monospace);
  letter-spacing: 0.04em;
}

/* Spec 2 — Stage 01 visual: paper packet card. Lighter rebuild of the
   homepage hero-art unsigned card so it sits cleanly in a .cert-wrap
   column without being as tall as the hero version. */
.packet-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  position: relative;
  font-family: var(--f-sans);
}
.packet-card .pc-edit-hint {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--f-mono, monospace); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-muted);
}
.packet-card .pc-head {
  text-align: center;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 10px; margin-bottom: 12px;
}
.packet-card .pc-name { font-weight: 600; font-size: 14px; color: var(--c-ink); }
.packet-card .pc-sub {
  font-size: 11px; color: var(--c-muted); margin-top: 2px;
  letter-spacing: 0.04em;
}
.packet-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.packet-card li {
  display: flex; gap: 10px; align-items: center;
  background: var(--c-soft); border: 1px solid var(--c-line);
  border-radius: 8px; padding: 8px 12px; font-size: 12.5px;
}
.packet-card li .pc-box {
  width: 14px; height: 14px; border: 1.5px solid var(--c-line);
  border-radius: 3px; flex: 0 0 14px;
}
.packet-card li .pc-label { flex: 1; color: var(--c-ink); }
.packet-card li .pc-price {
  font-family: var(--f-mono, monospace); font-size: 12px;
  color: var(--c-accent); font-weight: 600;
}

/* Spec 5 — listing-block companion framing. A small "PAIRS WITH 04"
   label that visually links the listing block to the certificate
   above, so the "four stages" promise in the hero stays honest. */
.companion-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono, monospace); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-accent);
  padding: 4px 10px; border: 1px solid var(--c-accent);
  border-radius: 999px;
  margin-bottom: 14px;
}
