/* =========================================================================
   BridgeCARE v2 — main.css
   Wave 2: Visual shell. Typography, color, spacing, radii, shadow, gradients.
   No motion (Wave 4), no content fill (Wave 3), no instrumentation (Wave 5).
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Tokens — every value here is an explicit decision from 00-design-system.md
   ------------------------------------------------------------------------- */
:root {
  /* Brand — indigo primary */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;

  /* Pathway — teal secondary */
  --path-50:  #f0fdfa;
  --path-500: #14b8a6;
  --path-600: #0d9488;

  /* Neutrals — THATCH 1:1 */
  --ink-900: #11181c;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --ink-300: #d1d5db;
  --ink-200: #e5e7eb;
  --ink-100: #f3f4f6;
  --white:   #ffffff;

  /* Backgrounds */
  --bg-page:   #ffffff;
  --bg-soft:   #f5f7fb;
  --bg-dark:   #0b1220;
  --bg-darker: #030712;

  /* Semantic */
  --success: #16a34a;
  --warning: #ea580c;
  --danger:  #dc2626;

  /* Gradients — the only four allowed */
  --grad-soft:    linear-gradient(to bottom, #f5f7fb, #ffffff);
  --grad-pathway: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);
  --grad-halo:    radial-gradient(circle at 30% 20%, rgba(79,70,229,0.14), transparent 60%);
  --grad-dark:    linear-gradient(180deg, #0b1220 0%, #030712 100%);

  /* Radii */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 9999px;

  /* Elevation */
  --shadow-sm:   0 1px 2px rgba(17,24,28,0.04), 0 1px 3px rgba(17,24,28,0.06);
  --shadow-md:   0 4px 6px rgba(17,24,28,0.04), 0 10px 15px rgba(17,24,28,0.08);
  --shadow-lg:   0 10px 15px rgba(17,24,28,0.06), 0 30px 60px rgba(17,24,28,0.12);
  --shadow-glow: 0 0 0 6px rgba(79,70,229,0.12);

  /* Motion — Wave 4 will activate; values defined now for consistency */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-reveal:   cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container-max: 1232px;
  --container-pad: 24px;
  --section-pad-y: 128px;
}

@media (max-width: 1024px) {
  :root { --container-max: 960px; }
}
@media (max-width: 768px) {
  :root { --container-pad: 20px; --section-pad-y: 80px; }
}

/* -------------------------------------------------------------------------
   2. Reset + base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { padding: 0; margin: 0; list-style: none; }
blockquote { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-500); }
:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Screen-reader only */
.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;
}

/* -------------------------------------------------------------------------
   3. Typography scale
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink-900); }
p { margin: 0; }

.h-display {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.h-section {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.h-card {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.h-card-lg {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-700);
  max-width: 60ch;
}
.body-lg { font-size: 18px; line-height: 28px; }
.caption { font-size: 14px; line-height: 20px; color: var(--ink-500); }
.micro {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

/* -------------------------------------------------------------------------
   4. Layout — container + section rhythm
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  position: relative;
}
.section--tight { padding-top: 80px; padding-bottom: 80px; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: var(--grad-dark);
  color: var(--white);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lede { color: rgba(255,255,255,0.75); }

/* Optional decorative halo for the hero + angel sections */
.halo {
  position: absolute;
  inset: 0;
  background: var(--grad-halo);
  pointer-events: none;
  z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid { gap: 32px; } }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------------
   5. Components
   ------------------------------------------------------------------------- */

/* Eyebrow pill above section H2s */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
  background: var(--brand-50);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section--dark .eyebrow {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.15s var(--ease-standard),
              color 0.15s var(--ease-standard),
              transform 0.2s var(--ease-standard),
              box-shadow 0.2s var(--ease-standard);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-600);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--brand-500);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--ink-300);
}
.btn--secondary:hover {
  border-color: var(--ink-900);
  color: var(--ink-900);
}
.section--dark .btn--secondary {
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.section--dark .btn--secondary:hover {
  border-color: var(--white);
}
.btn--ghost {
  padding: 8px 12px;
  color: var(--ink-700);
  font-size: 14px;
}
.btn--ghost:hover { color: var(--ink-900); }
.btn--gradient {
  background: var(--grad-pathway);
  color: var(--white);
}
.btn--gradient:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.05);
}
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; justify-content: center; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-standard), box-shadow 0.2s var(--ease-standard);
}
.card--elevated {
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-200);
}
.card--feature { padding: 32px; }
.card--hero-viz {
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.card--dark {
  background: var(--bg-dark);
  border-color: rgba(255,255,255,0.08);
  color: var(--white);
}
.card--accent {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--brand-50);
}
.card__kicker {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-600);
  margin-bottom: 12px;
}
.card p { color: var(--ink-700); }
.card h3 { margin-bottom: 8px; }

/* Pathway category icon-tile */
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}
.tile--path {
  background: var(--path-50);
  color: var(--path-600);
}

/* Inputs */
.input, .select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color 0.15s var(--ease-standard), box-shadow 0.15s var(--ease-standard);
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: var(--shadow-glow);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}
.label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.label small { color: var(--ink-500); font-weight: 400; margin-left: 4px; }
.field { margin-bottom: 16px; }
.radio-group {
  border: none;
  padding: 0;
  margin: 0 0 16px;
}
.radio-group legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 8px;
  padding: 0;
}
.radio-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-standard), background 0.15s var(--ease-standard);
  background: var(--white);
}
.radio-option:has(input:checked) {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-700);
}
.radio-option input { margin: 0; accent-color: var(--brand-600); }

/* -------------------------------------------------------------------------
   6. Nav
   ------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink-200);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-900);
  text-decoration: none;
}
.site-nav__brand:hover { color: var(--ink-900); }
/* Arch mark — inline SVG, 28px in nav / footer. No background/radius — the SVG carries its own composition. */
.site-nav__mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: none;
}
/* Wordmark (Variant C — Span lowercase). ink "bridge" + teal "care", Inter Tight 500, tight tracking. */
.site-nav__wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.site-nav__wordmark .wm-bridge { color: var(--ink-900); }
.site-nav__wordmark .wm-care { color: var(--path-600); }
/* Dark-surface variant — ink "bridge" flips white, teal "care" brightens for ink-bg contrast. */
.site-nav__wordmark--dark .wm-bridge { color: #ffffff; }
.site-nav__wordmark--dark .wm-care { color: #2dd4bf; }
.site-nav__links {
  display: none;
  gap: 32px;
  align-items: center;
}
.site-nav__links a {
  color: var(--ink-700);
  font-size: 15px;
  font-weight: 500;
}
.site-nav__links a:hover { color: var(--ink-900); }
@media (min-width: 768px) {
  .site-nav__links { display: inline-flex; }
}

/* -------------------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------------------- */
.hero {
  padding-top: 96px;
  padding-bottom: 128px;
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-halo);
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}
.hero h1 { margin-bottom: 24px; }
/* FER-001 1A (v2.4.1): <em> emphasis on "never find it" — italic brand-600.
   Font-weight inherits from .h-display so it stays in display weight. */
.hero h1 em {
  color: var(--brand-600);
  font-style: italic;
  font-weight: inherit;
}
.hero__lede { margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

/* hero__meta — retired v2.4.1. Content moved to hero__aside. Rule kept for
   rollback safety but element removed from HTML. */
.hero__meta {
  display: none; /* retired — see hero__aside below */
}

/* v3.0.0: .hero__aside — RETIRED. The 4-check "promise band" (8 categories /
   Missouri-ready / Agent-owned / No retyping) was struck through by Jon in
   the hero ship-review. Replaced by .hero__chips below. Rule kept as
   display:none for rollback safety; markup removed from index.html. */
.hero__aside { display: none; }

/* v3.0.0 HYBRID: .hero__chips — condensed trust cluster under the hero form.
   Absorbs the §2 proof-bar chip row (which was on an island) + replaces the
   retired .hero__form-hint microcopy + the retired .hero__aside 4-checks.
   Primary chip uses .chip--moat (solid grad-pathway) as the trust anchor;
   supporting chips use the default .chip pill. v3.0.1 REV: dropped the
   "12 years in the field" chip (redundant with Angel §7 narrative); tuned
   for 3-chip single-line fit at desktop width; Missouri-pilot chip gets a
   small state-silhouette icon. */
.hero__chips {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__chips li {
  display: inline-flex;
}
/* Light-touch scale bump on the .chip--moat anchor so the primary chip
   reads as the lead trust signal without shouting. */
.hero__chips .chip--moat {
  padding: 7px 14px;
  font-size: 13px;
}
/* Missouri-pilot chip variant — icon + label, hairline-filled MO shape. */
.hero__chips .chip--mo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__chips .chip--mo .chip__mo-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: var(--brand-600);
  display: block;
}

/* v3.0.2 HYBRID: .hero__stat — absorbed from the retired §2 proof-bar. Carries
   the 1.2M Missouri-scope number directly under the hero chips to kill the
   large vertical dead zone between the hero and §3. Compact stat + caption
   inline layout; wraps under 520px. */
.hero__stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--ink-200);
  max-width: 60ch;
}
.hero__stat-num {
  font-family: var(--font-display, var(--font-body));
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--grad-pathway);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-700, #4338ca);
  flex: 0 0 auto;
}
.hero__stat-label {
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.5;
  flex: 1 1 280px;
  min-width: 0;
}
.hero__stat-label strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* §2 proof-bar retired: content migrated into .hero__stat. Rule kept with
   display:none for rollback safety; section[hidden] attr also carries it. */
.proof-bar--retired { display: none; }

/* v3.0.2 HYBRID: §4 step cards — gradient circle medallion above each card
   retired. Icon now sits inline beside the <h3> subhead in a complementary
   brand tint. Retires .step-card__icon (hidden via display:none for rollback;
   markup removed from index.html). Introduces .step__h3 + .step__h3-icon. */
.step-card__icon { display: none; }
.steps--wired::before { display: none; }
.step__h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.step__h3 span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.step__h3-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--brand-600);
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.step__h3-icon circle[fill="currentColor"] { fill: currentColor; stroke: none; }

/* Hero pathway viz — rewritten 2026-04-19 post-OMEGA D for improved-V2
   anchor port. Drops the Wave-3 flex-centering + 5/4 aspect-ratio + 72px
   bottom reservation (all artifacts of the old single-SVG-plus-figcaption
   structure). New structure is block-flow: .hero-viz__head row sits at
   top, .hero-viz__svg flows beneath it at natural 4/3. The new SVG
   carries its own internal #heroHalo radial, so the ::after grad-halo
   overlay is neutralized to prevent a double-halo collision. */
.hero-viz {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  color: var(--ink-500);
  overflow: hidden;
  margin: 0;
}
.hero-viz::after {
  /* Neutralized: was a grad-halo overlay for the old SVG; the improved
     hero-viz has its own internal halo gradient. Rule retained (rather
     than deleted) for rollback safety. */
  display: none;
}

/* v3.0.0 PATTERN-NEW: .hero-viz--sankey variant — the Hero now hosts the
   P01 patient-card summary instead of the 8-chip radial SVG flower. The
   card component supplies its own border/shadow/padding, so the outer
   .hero-viz wrapper goes transparent to avoid double-framing. The nested
   .patient-card--hero modifier fills the slot width and tightens spacing
   for the narrower hero column. */
.hero-viz--sankey {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
}
.patient-card--hero {
  --pc-w: 100%;
  max-width: 420px;
  padding: 20px 20px 18px;
  gap: 12px;
}
.patient-card--hero .patient-card__head { margin-top: -36px; margin-bottom: -4px; }
.patient-card--hero .patient-card__photo { width: 64px; height: 64px; }
.patient-card--hero .patient-card__badge { top: 12px; font-size: 9.5px; }
.patient-card--hero .patient-card__total { padding: 12px 14px; }
.patient-card--hero .patient-card__total .v { font-size: 26px; }
.patient-card--hero .patient-card__row { padding: 7px 10px; }
.patient-card--hero .patient-card__rows { gap: 6px; }
@media (max-width: 640px) {
  .patient-card--hero { padding: 18px 16px 16px; }
  .patient-card--hero .patient-card__name { font-size: 20px; }
}
.hero-viz__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}
.hero-viz__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-700);
}
.hero-viz__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero-viz__badge--accent {
  background: #ccfbf1;
  color: var(--path-600);
}
.hero-viz__arrow {
  font-weight: 600;
  color: var(--ink-500);
}

/* -------------------------------------------------------------------------
   8. Proof bar — v3.0.0 CONDENSED
   Jon ship-review: the old two-column eyebrow + statement + 4-chip layout
   was "on an island visually" — its trust content migrated into the hero
   as .hero__chips. §2 is now a slim single-stat band carrying the 1.2M
   Missouri-scope number and nothing else.
   ------------------------------------------------------------------------- */
.proof-bar {
  padding: 28px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}
.proof-bar--slim { padding: 24px 0; }

/* RETIRED (v3.0.0): .proof-bar__eyebrow, .proof-bar__row, .proof-bar__statement,
   .proof-bar__chips — all migrated into .hero__chips. Rules kept as
   display:none for rollback safety; markup removed from index.html. */
.proof-bar__eyebrow,
.proof-bar__row,
.proof-bar__statement,
.proof-bar__chips { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
}
.chip--brand { color: var(--brand-700); border-color: var(--brand-500); background: var(--brand-50); }

/* P0-C (2026-04-19): .chip--moat — gradient-pathway bookend-breadth chip.
   Echoes the P0-A UNLOCKED badge DNA (grad-pathway fill, white text,
   teal-leaning depth). Signals: "we cover QMB at the top of the federal
   stack down to Evalee's Grace, Angel's own nonprofit — that's the moat." */
.chip--moat {
  color: #ffffff;
  border-color: transparent;
  background: var(--grad-pathway);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 10px -2px rgba(13,148,136,0.30), 0 1px 2px rgba(17,24,28,0.08);
}

/* -------------------------------------------------------------------------
   9. Pathway grid (§3) — P05 "magnetic" flat 4×2 grid
   v3.0.0 PATTERN-NEW: ported from patterns-round-04-thatch-discipline.html.
   Replaces legacy .pathway-grid/.pathway-card + .pathway-rail horizontal-
   scroll drawers. Hairline borders, per-cell category tint (4-7% alpha),
   faded per-cell background icon, dollar-range footer divided by hairline.
   Tokens translated to v3 vars via fallback syntax.
   ------------------------------------------------------------------------- */
.mag {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink-200, #e5e7eb);
  border-left: 1px solid var(--ink-200, #e5e7eb);
  background: var(--white, #ffffff);
}
@media (max-width: 980px) { .mag { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mag { grid-template-columns: 1fr; } }

.mag__cell {
  --mag-tint: rgba(126, 34, 206, 0.04);
  --mag-ink: #0e0c2e;
  border-right: 1px solid var(--ink-200, #e5e7eb);
  border-bottom: 1px solid var(--ink-200, #e5e7eb);
  padding: 32px 28px;
  background: var(--white, #ffffff);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: background 220ms ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Per-cell gradient wash — v3.0.0 UX-TUNED (Jon contrast audit 2026-04-19).
   Stack two layers in a single background:
     1) Top-left white wash — guarantees a crisp paper bed under the h4 +
        body copy so text reads cleanly against the hatch + tint below.
     2) Bottom-right tint fade — keeps the per-category color showing
        through the faded corner icon + dollar-range footer.
   Net effect: top-left reads pure paper, bottom-right reads tinted. */
.mag__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 110% 110%, var(--mag-tint) 0%, transparent 58%);
  pointer-events: none;
  z-index: 0;
}
/* Hatch overlay — 5px diagonal lines. Alpha + overlay opacity both dialed
   back post-contrast audit so the texture reads as surface character
   rather than noise over text. */
.mag__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(14, 12, 46, 0.025) 0 1px, transparent 1px 7px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.mag__cell > * { position: relative; z-index: 1; }
.mag__cell:hover { background: var(--bg-soft, #f9fafb); }

.mag__cell h4 {
  font-family: var(--font-display, 'Fraunces', 'Georgia', serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-900, #0f172a);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.mag__cell p {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-700, #374151);
  margin: 0;
}

/* Faded background icon — top-right corner, large, soft. currentcolor drives tint. */
.mag__bg {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 148px;
  height: 148px;
  color: var(--mag-ink);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.mag__bg svg { width: 100%; height: 100%; }
.mag__cell:hover .mag__bg { opacity: 0.1; transition: opacity 220ms ease; }

/* Per-category tints — kept in the 4–7% alpha zone so cells remain paper-neutral. */
.mag__cell--mp  { --mag-tint: rgba(126, 34, 206, 0.05); }   /* accent purple */
.mag__cell--mc  { --mag-tint: rgba(22, 163, 148, 0.05); }   /* teal */
.mag__cell--md  { --mag-tint: rgba(37, 99, 235, 0.045); }   /* blue */
.mag__cell--lis { --mag-tint: rgba(16, 185, 129, 0.05); }   /* emerald */
.mag__cell--msp { --mag-tint: rgba(234, 88, 12, 0.05); }    /* orange */
.mag__cell--rx  { --mag-tint: rgba(217, 70, 239, 0.05); }   /* fuchsia */
.mag__cell--wv  { --mag-tint: rgba(202, 138, 4, 0.05); }    /* amber */
.mag__cell--gr  { --mag-tint: rgba(20, 184, 166, 0.05); }   /* cyan-teal */

.mag__dollar {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-200, #e5e7eb);
}
.mag__dollar .v {
  font-family: var(--font-display, 'Fraunces', 'Georgia', serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink-900, #0f172a);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.mag__dollar .v small {
  font-family: var(--font-mono, 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace);
  font-size: 11px;
  color: var(--ink-500, #6b7280);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-left: 4px;
  text-transform: uppercase;
}
.mag__dollar .unit {
  font-family: var(--font-mono, 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace);
  font-size: 11px;
  color: var(--ink-500, #6b7280);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: right;
}

/* -------------------------------------------------------------------------
   10. How-it-works (§4) — 3 steps
   ------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step {
  position: relative;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--grad-pathway);
  color: var(--white);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}
.step h3 { font-size: 22px; line-height: 28px; margin-bottom: 8px; }
.step p { color: var(--ink-700); }

/* -------------------------------------------------------------------------
   11. Matrix demo (§5) — RETIRED AS OF v3.0.0-patternIntegration.
   The dark-bg .matrix agent-output mockup (§5) was cut when the P09
   coverage-bar compare pattern (§6/§12) absorbed the "prove coverage"
   job. All .matrix markup removed from index.html. Selectors neutralized
   here via display:none so any inline-style or third-party copy of the
   HTML doesn't render an orphan block; kept for rollback safety rather
   than deleted outright.
   ------------------------------------------------------------------------- */
.matrix,
.matrix__profile,
.matrix__results,
.matrix__row,
.matrix__tag,
.matrix__tag--brand,
.matrix__why,
.matrix__score { display: none; }

/* -------------------------------------------------------------------------
   12. Compare (§6) — PATTERN-NEW v3.0.0: P09 coverage-bar port (LOCKED).
   v3.0.1 REV: hover tooltips removed; pathway codes now resolved in the
   legend (code + full name stacked). Each row carries a brand logo or
   wordmark so competitors are visually named, not just typographically
   labeled. Typography tightened — score normalized, row alignment explicit.
   ------------------------------------------------------------------------- */
.cmp {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.cmp__head {
  padding: 22px 32px;
  border-bottom: 1px solid var(--ink-200);
  background: var(--bg-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: baseline;
  justify-content: space-between;
}
.cmp__head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cmp__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--ink-500);
  text-transform: uppercase;
}
.cmp__row {
  display: grid;
  grid-template-columns: minmax(240px, 2.2fr) minmax(0, 5fr) 80px;
  column-gap: 24px;
  align-items: center;
  padding: 22px 32px;
  border-bottom: 1px solid var(--ink-200);
}
.cmp__row:last-child { border-bottom: none; }
/* Dark-mode BridgeCARE row — mirrors sticky nav treatment (#0b1220 ink + teal-light accent). */
.cmp__row--us {
  background: #0b1220;
  border-top: 1px solid #1e293b;
  color: #ffffff;
}
.cmp__row--us .cmp__name .n { color: #ffffff; }
.cmp__row--us .cmp__name .sub { color: #94a3b8; }
.cmp__row--us .cmp__cell { background: #1e293b; }
.cmp__row--us .cmp__score-num { color: #ffffff; }
.cmp__row--us .cmp__score-total { color: #94a3b8; }
.cmp__row--us .cmp__wordmark .wm-bridge { color: #ffffff; }
.cmp__row--us .cmp__wordmark .wm-care { color: #2dd4bf; }

/* Name cell: logo + text stack, vertically centered */
.cmp__name {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.cmp__logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cmp__logo svg { width: 100%; height: 100%; display: block; }
.cmp__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cmp__logo--bc svg { width: 44px; height: 44px; }
.cmp__name-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cmp__name .n {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cmp__name .sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-500);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.3;
}
.cmp__wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.cmp__wordmark .wm-bridge { color: #4f46e5; }
.cmp__wordmark .wm-care { color: #0d9488; }

/* Coverage bars */
.cmp__bar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  height: 32px;
  align-self: center;
}
.cmp__cell {
  background: var(--ink-200);
  border-radius: 4px;
  transition: background 180ms var(--ease-standard);
}
.cmp__cell.is-on { background: var(--ink-900); }
.cmp__row--us .cmp__cell.is-on {
  background: linear-gradient(135deg, #6366f1 0%, #14b8a6 100%);
}

/* Score — normalized weight so 2 and /8 sit at the same visual gravity */
.cmp__score {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  white-space: nowrap;
  text-align: right;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1px;
}
.cmp__score-num {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}
.cmp__score-total {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-500);
  line-height: 1;
}
/* .cmp__row--us .cmp__score-num overridden in dark-mode block above */

/* Header row — column heads + legend (code + full-name stacked) */
.cmp__row--header {
  padding: 14px 32px 16px;
  border-bottom: 1px solid var(--ink-200);
  background: var(--bg-soft);
  align-items: end;
}
.cmp__col-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 500;
}
.cmp__col-head--score { text-align: right; }
.cmp__legend {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.cmp__legend span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 0 2px;
}
.cmp__legend span b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink-700);
  line-height: 1;
}
.cmp__legend span em {
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--ink-500);
  text-align: center;
  line-height: 1.2;
  text-transform: none;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Responsive — below 960px, hide the legend full-names (keep codes).
   Below 768px collapse rows to stacked per-row bars entirely. */
@media (max-width: 960px) {
  .cmp__legend span em { display: none; }
  .cmp__row { grid-template-columns: minmax(200px, 2fr) minmax(0, 4fr) 70px; }
}
@media (max-width: 768px) {
  .cmp__head { padding: 18px 20px; }
  .cmp__row { grid-template-columns: 1fr; padding: 18px 20px; gap: 12px; row-gap: 12px; }
  .cmp__row--header { display: none; }
  .cmp__score { justify-self: end; text-align: right; }
  .cmp__logo { flex: 0 0 36px; width: 36px; height: 36px; }
}

/* -------------------------------------------------------------------------
   13. Angel story (§7)
   ------------------------------------------------------------------------- */
.angel {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .angel { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}
.angel blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  padding-left: 20px;
  border-left: 3px solid var(--brand-600);
  margin-bottom: 24px;
}
.angel blockquote footer {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 12px;
}
.angel__portrait {
  background: var(--bg-soft);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: var(--ink-500);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.angel__portrait figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}
.angel__portrait { padding: 0; }
.angel__portrait-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.angel__portrait-pending {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.85);
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

/* -------------------------------------------------------------------------
   14. Pricing (§8)
   ------------------------------------------------------------------------- */
.pricing {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pricing { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
}
.tier {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.tier--highlight {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--brand-50);
  transform: translateY(-4px);
}
.tier__name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.tier--highlight .tier__name { color: var(--brand-600); }
.tier__price {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 4px;
}
.tier__price small {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-500);
  margin-left: 4px;
}
.tier__tagline { color: var(--ink-700); margin-bottom: 24px; }
.tier__features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.tier__features li {
  display: flex;
  gap: 10px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.5;
}
.tier__features li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--path-500);
}
.tier__cta { margin-top: auto; }
.tier__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--grad-pathway);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}

/* -------------------------------------------------------------------------
   15. FAQ (§9)
   ------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color 0.15s var(--ease-standard), box-shadow 0.15s var(--ease-standard);
}
.faq details[open] {
  border-color: var(--ink-300);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 18px;
  font-weight: 500;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-standard);
}
.faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.faq details p {
  margin-top: 12px;
  color: var(--ink-700);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   16. Final CTA (§10)
   ------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(13,148,136,0.22), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(79,70,229,0.24), transparent 55%);
  pointer-events: none;
}
.cta > .container { position: relative; z-index: 1; }
.cta__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .cta__grid { grid-template-columns: 1fr 520px; gap: 64px; }
}
.cta__form {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.cta__form .label { color: rgba(255,255,255,0.85); }
/* Wave 7 (UX FIX): the `background:` shorthand below was resetting
   background-repeat to its initial value (repeat), which caused the
   SVG chevron on the Role select to tile horizontally across the
   control ("Choose one⌵ ⌵ ⌵ ⌵ ⌵ ⌵ ⌵ ⌵"). Switched to background-color
   longhand so the inherited no-repeat / position / size from the base
   .select rule survive. */
.cta__form .input, .cta__form .select {
  background-color: rgba(11,18,32,0.55);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
}
.cta__form .input::placeholder { color: rgba(255,255,255,0.45); }
/* Focus rules consolidated in §21 (Wave 6 M-01 promotion at line ~1298). */
.cta__form .select {
  /* Wave 7: dark-theme chevron SVG + explicit no-repeat/position/size so
     the CTA's darker background + a-la-carte background-image override
     can never re-introduce the tiling bug. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23c7d2fe'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.cta__form .radio-group legend { color: rgba(255,255,255,0.85); }
.cta__form .radio-option {
  background: rgba(11,18,32,0.5);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.18);
}
.cta__form .radio-option:has(input:checked) {
  background: rgba(79,70,229,0.22);
  border-color: var(--brand-500);
  color: var(--white);
}
.cta__fineprint {
  margin-top: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

/* -------------------------------------------------------------------------
   17. Footer (§11)
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 48px;
}
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: var(--white); }
.site-footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.site-footer__brand .site-nav__mark { width: 32px; height: 32px; }
.site-footer__brand .site-nav__wordmark { font-size: 20px; }
.site-footer__tagline { max-width: 40ch; font-size: 14px; line-height: 1.6; }
.site-footer h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 12px;
}
.site-footer ul { display: grid; gap: 8px; font-size: 14px; }
.site-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Attribution credit — its own centered line below the primary bottom row. Subtle, brand-teal on hover. */
.site-footer__credit {
  flex-basis: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  padding-top: 18px;
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
  letter-spacing: 0.02em;
}
.site-footer__credit a {
  color: rgba(255,255,255,0.68);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.22);
  text-underline-offset: 2px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.site-footer__credit a:hover {
  color: #2dd4bf;
  text-decoration-color: #2dd4bf;
}

/* -------------------------------------------------------------------------
   18. Wave-note pill (Wave 1/2 audit aid, removed at Wave 6)
   ------------------------------------------------------------------------- */
.wave-note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--warning);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  margin-right: 4px;
}

/* -------------------------------------------------------------------------
   19. Reduced motion — Wave 2 defines; Wave 4 ties scroll reveals + pulse
       to the same gate so the page is fully legible without motion.
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Redundant with JS fallback, but guarantees reveal state if JS is off. */
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-viz__match {
    animation: none !important;
  }
}

/* When JS has flagged reduced-motion, also suppress the pulse and reveal. */
html.reduced-motion [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}
html.reduced-motion .hero-viz__match {
  animation: none !important;
}

/* -------------------------------------------------------------------------
   20. Wave 4 — scroll-reveal choreography
       Elements carry [data-reveal] from HTML; main.js flips .is-revealed
       when they cross ~12% into the viewport. Optional data-reveal-delay
       (ms) staggers siblings (pathway cards, tiers, step cards).
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.56s var(--ease-standard),
    transform 0.56s var(--ease-standard);
  will-change: opacity, transform;
}
[data-reveal="fade"] {
  transform: none;
}
[data-reveal="rise-lg"] {
  transform: translateY(28px);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------
   21. Wave 4 — hover + focus microinteractions
   ------------------------------------------------------------------------- */

/* Pathway cards: subtle lift + the tile warms to brand/path accent */
.pathway-card {
  transition:
    transform 0.22s var(--ease-standard),
    box-shadow 0.22s var(--ease-standard),
    border-color 0.22s var(--ease-standard);
}
@media (hover: hover) {
  .pathway-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-200);
  }
  .pathway-card:hover .tile {
    background: var(--brand-100);
    color: var(--brand-700);
    transform: scale(1.04);
  }
  .pathway-card:hover .tile--path {
    background: #ccfbf1;
    color: var(--path-600);
  }
}
.pathway-card .tile {
  transition:
    background-color 0.2s var(--ease-standard),
    color 0.2s var(--ease-standard),
    transform 0.2s var(--ease-standard);
}

/* Step cards (§4): mild lift on hover for interactivity */
.step {
  transition:
    transform 0.22s var(--ease-standard),
    box-shadow 0.22s var(--ease-standard);
}
@media (hover: hover) {
  .step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

/* Tier cards (§8): default tiers lift; highlighted tier gains a soft glow */
.tier {
  transition:
    transform 0.24s var(--ease-standard),
    box-shadow 0.24s var(--ease-standard),
    border-color 0.24s var(--ease-standard);
}
@media (hover: hover) {
  .tier:hover:not(.tier--highlight) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-200);
  }
  .tier--highlight:hover {
    box-shadow:
      var(--shadow-lg),
      0 0 0 5px var(--brand-50),
      0 18px 40px -18px rgba(79, 70, 229, 0.45);
    transform: translateY(-6px);
  }
}

/* CTA form inputs: smoother focus transition + brand-600 ring */
.cta__form .input,
.cta__form .select {
  transition:
    border-color 0.2s var(--ease-standard),
    box-shadow 0.2s var(--ease-standard),
    background-color 0.2s var(--ease-standard);
}
.cta__form .input:focus,
.cta__form .select:focus {
  /* Wave 6 (M-01): promoted from brand-400 to brand-500 for AAA (4.5:1+) focus rings */
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
  outline: none;
}

/* Primary CTA buttons: a gentle lift on hover */
@media (hover: hover) {
  .btn--primary:hover,
  .btn--gradient:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
}

/* FAQ summary: chevron-style affordance on hover */
.faq details summary {
  transition: color 0.15s var(--ease-standard);
}
@media (hover: hover) {
  .faq details summary:hover {
    color: var(--brand-700);
  }
}

/* Compare table rows: faint row-highlight on hover for scanability */
@media (hover: hover) {
  .compare tbody tr:not(.compare__killshot):hover td,
  .compare tbody tr:not(.compare__killshot):hover th {
    background: var(--brand-50);
    transition: background-color 0.18s var(--ease-standard);
  }
}

/* -------------------------------------------------------------------------
   22. Wave 4 — hero-viz matched-node pulse (MSP, LIS, GR)
       main.js tags the three teal-stroked circles with .hero-viz__match.
       We use a gentle 3s "breathe" on stroke-opacity to draw the eye
       without creating a distracting blink.
   ------------------------------------------------------------------------- */
@keyframes heroVizBreathe {
  0%, 100% {
    stroke-opacity: 1;
    stroke-width: 1.8;
  }
  50% {
    stroke-opacity: 0.55;
    stroke-width: 2.6;
  }
}
.hero-viz__match {
  animation: heroVizBreathe 3.2s var(--ease-standard) infinite;
  transform-origin: center;
}
.hero-viz__match:nth-of-type(2) { animation-delay: 0.6s; }
.hero-viz__match:nth-of-type(3) { animation-delay: 1.2s; }

/* -------------------------------------------------------------------------
   23. Wave 5 — Submit states + honeypot + status slots
   ------------------------------------------------------------------------- */

/* Honeypot — visually hidden but still form-submittable. Bots see it, humans don't. */
.cta__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Submit spinner: shown when button has .is-submitting */
.cta__btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--white);
  animation: ctaSpin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}
.is-submitting .cta__btn-label { opacity: 0.7; }
.is-submitting .cta__btn-spinner { display: inline-block; }

@keyframes ctaSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cta__btn-spinner { animation: none; }
}

/* Disabled submit button (post-success / during submit) */
.cta__form .btn:disabled,
.cta__form .btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: wait;
}

/* Status box — success / error */
.cta__status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 14px;
  line-height: 1.55;
}
.cta__status[hidden] { display: none; }
.cta__status strong { color: var(--white); font-weight: 600; display: block; margin-bottom: 4px; }
.cta__status em { color: rgba(255, 255, 255, 0.85); font-style: normal; font-weight: 500; }
.cta__status a { color: var(--white); text-decoration: underline; }

.cta__status-success {
  border-left: 3px solid var(--path-500);
  padding-left: 12px;
}
.cta__status-error {
  border-left: 3px solid #f97316;
  padding-left: 12px;
}

/* -------------------------------------------------------------------------
   24. Wave 6 — QA polish
       a) Skip-to-content link (keyboard + screen-reader affordance)
       b) M-03: mobile reveal-translate tuning (reduce vertical travel on
          narrow viewports where a 16/28px rise can feel choppy)
       c) M-01: focus-ring contrast promotion is already inline in §13 CTA
          rules (brand-400 → brand-500 for 4.5:1+ AAA contrast).
   ------------------------------------------------------------------------- */

/* Skip-to-content link — visually hidden until keyboard focus.
   Using negative-top + transition rather than display:none so screen readers
   still reach it in the tab order. */
.skip-to-content {
  position: absolute;
  top: -48px;
  left: 16px;
  padding: 10px 16px;
  background: var(--brand-600);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  z-index: 1000;
  transition: top 0.15s var(--ease-standard);
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
  top: 16px;
  outline: 3px solid var(--brand-200);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .skip-to-content { transition: none; }
}

/* M-03: narrow-viewport reveal tuning. On phones the 28px "rise-lg" can
   feel choppy because the total viewport travel is small; dial back so the
   effect is still present but understated. */
@media (max-width: 640px) {
  [data-reveal] {
    transform: translateY(10px);
  }
  [data-reveal="rise-lg"] {
    transform: translateY(18px);
  }
  [data-reveal].is-revealed {
    transform: translateY(0);
  }
}

/* ===========================================================================
   §25 — Wave 7: Senior-UX pass
   ---------------------------------------------------------------------------
   Adds:
     • .hero__form* — inline email capture surfaced in the hero (primary CTA
       promoted above the fold, no scroll required)
     • .cta__checklist — high-contrast benefit bullets with checkmark glyphs
       (fixes the dim "0.8 opacity" bullets over dark gradient)
     • .icon-tile / .path-card__icon — iconography slots for pathway cards
     • .step-card__icon — circular icon badge for the 3-step "How it works"
     • .portrait — image container with overlay for the Angel testimonial
   Replaces:
     • Text-tile pathway letters → SVG icons (iconography on markup side)
     • Geometric portrait placeholder → Unsplash photo
   =========================================================================== */

/* 25.1 Hero inline form ---------------------------------------------------- */

.hero__form {
  display: block;
  margin: 0 0 28px 0;
  max-width: 560px;
}

.hero__form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.hero__form-input {
  flex: 1 1 240px;
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-md);
  transition: border-color 0.15s var(--ease-standard),
              box-shadow 0.15s var(--ease-standard);
  -webkit-appearance: none;
  appearance: none;
}
.hero__form-input::placeholder { color: var(--ink-500); opacity: 1; }
.hero__form-input:hover { border-color: var(--ink-300); }
.hero__form-input:focus,
.hero__form-input:focus-visible {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18);
}

.hero__form-submit {
  flex: 0 0 auto;
  height: 56px;
  white-space: nowrap;
}

/* Hero submit uses the same spinner pattern as the footer form. */
.hero__form-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--white);
  animation: ctaSpin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}
.hero__form-submit.is-submitting .hero__form-btn-label { opacity: 0.7; }
.hero__form-submit.is-submitting .hero__form-btn-spinner { display: inline-block; }
.hero__form-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* v3.0.0: .hero__form-hint — RETIRED. The "No credit card · 48-hour
   response · Pick your tier" microcopy was struck through by Jon in the
   hero ship-review as busy credit-card nonsense. Rule kept as display:none
   for rollback safety; markup removed. Trust signals consolidated into
   .hero__chips (defined near §7 above). */
.hero__form-hint { display: none; }

/* Inline status block sits below the hint, compact variant of .cta__status. */
.hero__form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.18);
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.5;
}
.hero__form-status .cta__status-success strong,
.hero__form-status .cta__status-error strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-900);
  font-weight: 700;
}

@media (max-width: 520px) {
  .hero__form-input { flex: 1 1 100%; }
  .hero__form-submit { flex: 1 1 100%; }
}

/* 25.2 CTA benefit checklist (fixes M-13 bullet contrast) ------------------ */

.cta__checklist {
  list-style: none;
  padding: 0;
  margin: 32px 0 0 0;
  display: grid;
  gap: 14px;
}
.cta__checklist li {
  position: relative;
  padding-left: 36px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}
.cta__checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.2);
  border: 1.5px solid rgba(13, 148, 136, 0.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.5 12L13 4.5' stroke='%235eead4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* 25.3 Pathway card icons -------------------------------------------------- */

.path-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(13, 148, 136, 0.12));
  border: 1px solid var(--ink-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.path-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Teal-variant for "match highlighted" pathways (MSP, LIS, GR) */
.path-card--match .path-card__icon {
  color: var(--accent-600);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(13, 148, 136, 0.04));
  border-color: rgba(13, 148, 136, 0.3);
}

/* 25.4 Step card icons (How it works) -------------------------------------- */

.step-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--path-600) 100%);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.32), 0 2px 4px rgba(13, 148, 136, 0.18);
  margin-bottom: 20px;
  position: relative;
}
.step-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Small numbered badge top-right of the icon (FER-001 1D: restored + upgraded) */
.step-card__icon::after {
  content: attr(data-step);
  position: absolute;
  top: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--path-500);
  box-shadow: 0 0 0 3px var(--white), 0 2px 6px rgba(0, 0, 0, 0.10);
}

/* 25.5 Portrait image (Angel testimonial, Unsplash) ------------------------ */

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-100);
  box-shadow: var(--shadow-lg);
}
.portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait__caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 32, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* -------------------------------------------------------------------------
   §26. Wave 7.5 — Footer form restoration (reverts W7-03 simplification)
   Jon's directive 2026-04-18: survey data (role, tier intent, pain point)
   is valuable for early-access segmentation and roadmap prioritization.
   The hero form stays email-only for friction-free top-of-funnel capture;
   the footer form becomes the high-intent qualified-reservation surface.
   Field names wired to the Brevo /api/subscribe function: firstName, email,
   role, plan_intent, pain_point. H-01 pricing ($49/$149 vs $89 canonical)
   remains open — tier-card pricing matches the visible pricing section.
   ------------------------------------------------------------------------- */
.cta__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 520px) {
  .cta__row { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.cta__row .field { margin-bottom: 0; }

/* Tier commitment fieldset — renders as 3 stacked (mobile) / 3-column (desktop)
   cards. Each card is a <label> wrapping a visually-hidden radio so the
   entire card surface is clickable and the native radio keyboard behavior
   (arrow keys to move selection) is preserved. */
.cta__tiers {
  border: none;
  padding: 0;
  margin: 0 0 16px;
}
.cta__tiers .label {
  display: block;
  margin-bottom: 10px;
}
.cta__tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .cta__tier-grid { grid-template-columns: repeat(3, 1fr); }
}
.cta__tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  background: rgba(11,18,32,0.5);
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  transition: border-color 0.15s var(--ease-standard),
              background 0.15s var(--ease-standard),
              box-shadow 0.15s var(--ease-standard);
  text-align: center;
}
.cta__tier-card:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(11,18,32,0.68);
}
/* Visually hide the native radio; label-click still toggles it. */
.cta__tier-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  margin: 0;
}
.cta__tier-card:has(input:checked) {
  border-color: var(--brand-500);
  background: rgba(79,70,229,0.22);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.25);
}
/* Keyboard focus ring — meets AAA non-text 4.5:1 contrast on dark bg. */
.cta__tier-card:focus-within {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.5);
}
.cta__tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}
.cta__tier-price {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.cta__tier-card:has(input:checked) .cta__tier-price {
  color: rgba(255,255,255,0.88);
}

/* Textarea inherits .input but needs min-height + resize + line-height. */
.cta__form textarea.input {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
  padding-top: 12px;
  padding-bottom: 12px;
  font-family: var(--font-body);
}

/* Inline label hint — e.g. "(optional — helps us prioritize)". */
.cta__form .label small {
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  margin-left: 4px;
  font-size: 13px;
}

/* Reduced-motion gate — drop the subtle hover/check transitions. */
@media (prefers-reduced-motion: reduce) {
  .cta__tier-card { transition: none; }
}

/* ===========================================================================
   §27. Wave 7.6 — Polish pass (Senior UX + Brand Designer directive)
   ---------------------------------------------------------------------------
   Jon's call to lift v2 to Thatch-level quality:
     • Pathway cards: modernize layout (icon + code chip) with category-color
       top accent + deeper hover lift.
     • Three-steps cards: gain a connecting thread (desktop only) so the trio
       reads as a sequence, not three disconnected blocks.
     • Soft sections: dot-grid backdrop texture for visual layering (replaces
       the flat grey).
     • Angel portrait: upgrade the caption + badge treatment to match the
       Unsplash photo swap.
     • Pricing highlight tier: inverted dark treatment so it punches more in
       the pricing row.
     • Missing --accent-600 token: alias --path-600 so .path-card--match works.
   =========================================================================== */

/* 27.0 Missing accent token alias ------------------------------------------ */
:root {
  --accent-600: #0d9488;   /* alias of --path-600 for .path-card--match */
  --accent-100: #ccfbf1;
}

/* 27.1 Pathway card polish — icon + code-chip head, category top accent --- */
.path-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.path-card__icon { margin-bottom: 0; }
.path-card__code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink-100);
  border: 1px solid var(--ink-200);
  text-transform: uppercase;
}
.path-card--match .path-card__code {
  color: var(--accent-600);
  background: var(--accent-100);
  border-color: rgba(13, 148, 136, 0.3);
}

/* Top-edge category accent — 2px gradient bar. Animates from 0 → full width
   on hover to give the card depth beyond the existing translateY. */
.pathway-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.pathway-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-600));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s var(--ease-reveal);
  z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.path-card--match::before {
  background: linear-gradient(90deg, var(--accent-600), var(--brand-500));
}
@media (hover: hover) {
  .pathway-card:hover::before { transform: scaleX(1); }
  .pathway-card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 20px 40px -20px rgba(79, 70, 229, 0.22),
      0 10px 20px -12px rgba(11, 18, 32, 0.14);
    border-color: var(--brand-200);
  }
  .pathway-card:hover .path-card__icon {
    transform: scale(1.06) rotate(-1.5deg);
    transition: transform 0.28s var(--ease-reveal);
  }
  .path-card--match:hover {
    border-color: rgba(13, 148, 136, 0.4);
  }
}

/* 27.2 Three-steps connecting thread (desktop only) ----------------------- */
.steps--wired { position: relative; }
@media (min-width: 768px) {
  .steps--wired::before {
    content: "";
    position: absolute;
    top: 64px;                      /* aligns with icon center (padding 32 + icon 64/2) */
    left: 14%;
    right: 14%;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      rgba(99, 102, 241, 0.28) 0 6px,
      transparent 6px 12px
    );
    z-index: 0;
    pointer-events: none;
  }
}
.steps--wired .step { position: relative; z-index: 1; }
.steps--wired .step-card__icon { position: relative; z-index: 2; }

/* Step-card icon refinements — slightly larger, subtle ring. */
.step-card__icon {
  transition: transform 0.28s var(--ease-reveal),
              box-shadow 0.28s var(--ease-reveal);
}
@media (hover: hover) {
  .step:hover .step-card__icon {
    transform: scale(1.06) translateY(-2px);
    box-shadow:
      0 10px 24px rgba(79, 70, 229, 0.36),
      0 0 0 6px rgba(99, 102, 241, 0.12);
  }
}

/* 27.3 Section--soft dot-grid texture layer ------------------------------- */
.section--soft {
  position: relative;
  isolation: isolate;
}
.section--soft::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(17, 24, 28, 0.045) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, transparent 85%);
  pointer-events: none;
}

/* 27.4 Pricing — invert the highlighted tier so it punches ---------------- */
.tier--highlight {
  background: linear-gradient(160deg, #1e1b4b 0%, #0b1220 100%);
  color: var(--white);
  border-color: var(--brand-500);
  box-shadow:
    0 24px 60px -20px rgba(79, 70, 229, 0.55),
    0 0 0 5px var(--brand-50);
}
.tier--highlight .tier__name { color: #c7d2fe; }
.tier--highlight .tier__price { color: var(--white); }
.tier--highlight .tier__price small { color: rgba(255, 255, 255, 0.6); }
.tier--highlight .tier__tagline { color: rgba(255, 255, 255, 0.85); }
.tier--highlight .tier__features li { color: rgba(255, 255, 255, 0.92); }
.tier--highlight .tier__features li::before {
  filter: brightness(1.6) saturate(1.2);
}
.tier--highlight .tier__badge {
  background: linear-gradient(135deg, #a78bfa, #4f46e5);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* 27.5 Portrait refinements — badge (pending) + caption + layout ---------- */
.portrait {
  max-width: 440px;
  justify-self: center;
}
.angel .portrait { justify-self: end; }
@media (max-width: 900px) {
  .angel .portrait { justify-self: center; }
}
.portrait__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.08);
  z-index: 2;
}
.portrait {
  transition: transform 0.32s var(--ease-reveal),
              box-shadow 0.32s var(--ease-reveal);
}
@media (hover: hover) {
  .portrait:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
      0 28px 60px -24px rgba(11, 18, 32, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  }
}
/* Pull caption inside the frame with gradient overlay for legibility. */
.portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.62), transparent);
  pointer-events: none;
  z-index: 1;
}
.portrait__caption {
  left: 14px;
  bottom: 14px;
  z-index: 2;
}

/* 27.6 Hero viz subtle "breathing" on the halo to add life ---------------- */
@keyframes heroHaloBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.04); opacity: 0.85; }
}
.hero-viz__svg circle[fill="url(#heroHalo)"] {
  transform-origin: center;
  animation: heroHaloBreathe 6s var(--ease-standard) infinite;
}

/* 27.7 Reduced-motion gate — drop 7.6 animations ------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pathway-card,
  .pathway-card::before,
  .path-card__icon,
  .step-card__icon,
  .portrait,
  .hero-viz__svg circle[fill="url(#heroHalo)"] {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* =========================================================================
   §28. W8 / W9 PULL-FORWARD SWEEP (2026-04-19)
   -------------------------------------------------------------------------
   Jon's Saturday-evening directive: pull forward W8 polish + W9 Option A
   pathways rebuild into the live deploy before Sunday. Sections:
     28.1 Hero — grad-halo intensity + mobile reorder (headline→form→viz→meta)
     28.2 Proof bar — counter stat block
     28.3 Pathways — horizontal-scroll rail (Option A)
     28.4 Three steps — eyebrow chip + neutralize ::after badge overlay
     28.5 Compare — center capability cols + circled SVG icons + killshot
          gradient dominance + competitor strikethrough
     28.6 Pricing — tier CTA "No credit card to reserve" caption
   Every selector here is additive — it does not remove or override any
   v1.x-era token. Pairs with index.html structural edits from the same
   sweep (hero__text wrapper, pathway-rail rebuild, .cmp icon containers,
   .step__chip eyebrow, .tier__cta-caption under each CTA).
   ========================================================================= */

/* 28.1 Hero — mobile stack order only. hero__text owns headline+lede+form.
   hero__meta moved to be a peer of hero__text and hero-viz on the grid so
   on desktop it spans both columns beneath them; on mobile it naturally
   lands after the viz.
   2026-04-19 post-OMEGA D: the halo opacity bump was removed when the
   improved-V2 hero-viz ported its own internal halo gradient and the
   .hero-viz::after overlay was neutralized. This rule is intentionally
   empty; the selector is preserved for future micro-overrides. */
.hero-viz { /* no-op placeholder — see main .hero-viz block above */ }

/* Desktop (≥1024px): hero__text on left, hero-viz on right (already set
   by .hero__grid grid-template-columns). hero__meta spans both columns as
   a third row. */
@media (min-width: 1024px) {
  /* Constrain hero headline so both sentences fit on one line each in the
     ~444px text column. Global .h-display uses clamp(40px,6vw,64px) which
     renders at ~61px @ 1024px — too wide. This scoped override keeps mobile
     sizing intact (single-column, full-width) while fixing desktop wrapping. */
  .hero .h-display {
    font-size: clamp(32px, 3.8vw, 52px);
  }

  .hero__grid { grid-template-rows: auto auto; }
  .hero__text { grid-column: 1; grid-row: 1; }
  .hero .hero-viz { grid-column: 2; grid-row: 1; }
  .hero .hero__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 12px;
    border-top: 1px solid var(--ink-100, #eef2f7);
    margin-top: 8px;
  }
}

/* Mobile: natural block order is text → viz → meta. hero__text contains
   headline + form, so stack reads headline → form → viz → meta exactly
   as Jon specified. Give hero__meta breathing room. */
@media (max-width: 1023.98px) {
  .hero__meta {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ink-100, #eef2f7);
  }
}

/* 28.2 Proof bar — counter stat -------------------------------------------
   v3.0.0: .proof-bar__counter is now the ONLY content of §2 (the row +
   chips above were migrated into .hero__chips). Dropped the margin-top /
   padding-top / border-top separator since there's no longer a row
   sitting above it. Reads as a single slim proof strip on bg-soft. */
.proof-bar__counter {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 20px;
}
.proof-bar__counter-num {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand-700, #4338ca);
  background: var(--grad-pathway);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.proof-bar__counter-label {
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}
.proof-bar__counter-label strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* 28.3 Pathways — OBSOLETE AS OF v3.0.0.
   The old horizontal-scroll .pathway-rail + .pathway-panel drawers
   (§28.3 legacy "Option A") were replaced by the P05 flat 4×2 .mag
   grid defined in §9. Block intentionally left blank to preserve
   §28.n numbering for diffability against v2.4.5. */

/* 28.4 Three steps — FER-001 1D (2026-04-19): badge restored via §25.4
   .step-card__icon::after. Wave 8 chip+suppress pattern rolled back.
   .step__chip markup removed from HTML; CSS below neutralizes any residual
   chip that shipped before the cleanup (display:none fallback). */
.step__chip { display: none; }

/* 28.5 Compare — OBSOLETE AS OF v3.0.0.
   The old .compare table + .cmp icon family + .compare__killshot were
   replaced by §12 P09 coverage-bar port. Block intentionally left blank
   to preserve §28.n numbering for diffability against v2.4.5. */

/* 28.6 Pricing — per-tier "No credit card to reserve" caption -----------
   Jon: "Add 'No credit card to reserve' as caption under each tier CTA". */
.tier__cta-caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-500);
  font-style: italic;
}

/* 28.7 Reduced-motion gate — extend for new animations ------------------ */
@media (prefers-reduced-motion: reduce) {
  .mag__cell,
  .mag__cell:hover,
  .mag__bg {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* =========================================================================
   §29 — P0-D (2026-04-19): 3-up wireframe triad for §4 How it works.
   Replaces the tiny step-card__icon SVGs (24x24) with rich hand-drawn
   wireframe panels (280x220). Each panel is a monochrome lavender-on-cream
   illustration with named-specific data baked in — Profile intake form
   with 7 field labels; Match showing the 8-category ranked result; Advocate
   showing the client-summary handoff with named dollar amounts. THATCH-
   pattern thesis: density + specificity, zero animation.
   ========================================================================= */
.step__illo {
  display: block;
  position: relative; /* anchors ::after numbered badge */
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 20px;
  color: var(--brand-600);
  background: var(--paper-soft, #f5f7fb);
  border-radius: 14px;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(17,24,28,0.04);
}
/* FER-001 1D (v2.3.2): numbered badge top-right of each wireframe panel.
   data-step="1|2|3" on .step__illo drives content via attr(). Double ring:
   teal inner border + white outer halo via box-shadow. */
.step__illo[data-step]::after {
  content: attr(data-step);
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand-700);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--path-600);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 2px 6px rgba(17,24,28,0.12);
  z-index: 3;
}
@media (prefers-reduced-motion: no-preference) {
  .step:hover .step__illo[data-step]::after {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 0 0 5px rgba(99,102,241,0.18), 0 2px 6px rgba(17,24,28,0.12);
  }
}
.step__illo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.step__illo .illo-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step__illo .illo-stroke--thin {
  stroke-width: 1;
  opacity: 0.45;
}
.step__illo .illo-dot--match {
  fill: var(--path-600);
}
.step__illo .illo-dot--miss {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.35;
}
.step__illo .illo-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: var(--ink-700);
  text-transform: uppercase;
}
.step__illo .illo-label--eyebrow {
  font-size: 8px;
  fill: var(--brand-600);
  letter-spacing: 0.12em;
}
.step__illo .illo-label--amt {
  fill: var(--path-600);
  font-weight: 700;
  font-size: 10px;
}
.step__illo .illo-fill--muted {
  fill: var(--brand-100, #e0e7ff);
}
.step__illo .illo-fill--accent {
  fill: var(--path-600);
}
.step__illo .illo-fill--pathway {
  fill: url(#illo-grad-pathway);
}

/* Hover lift — subtle card depth, matches the rest of the site */
.step:hover .step__illo {
  box-shadow: 0 6px 14px -3px rgba(79,70,229,0.12), 0 2px 4px rgba(17,24,28,0.06);
  transition: box-shadow 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .step:hover .step__illo { box-shadow: 0 1px 2px rgba(17,24,28,0.04); transition: none; }
}

/* =========================================================================
   30. §3.5 "What a match looks like" — V6 THATCH client-roster rail
   Ported from brand-exploration/components-round-01 V6 (with P0-A upgrade:
   connector lines + ADVOCATE UNLOCKED delta badges). Illustrative client
   simulations drawn from CMS/SSA/state-program public references. Continuous
   staggered horizontal auto-scroll, paused on hover/focus. Reduced-motion
   fallback → scroll-snap. Missing-token fallbacks are inline where the
   components-kit uses --paper, --paper-soft, --ink-050, --ink-600,
   --brand-300, --sh-md, --sh-lg (not all defined in v2 root).
   ========================================================================= */
.section--clients {
  padding-top: 96px;
  padding-bottom: 96px;
  background: var(--bg-soft);
  overflow: hidden;
}
.section--clients .caption {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 28px;
  max-width: 760px;
}

.cat--v6-rail {
  position: relative;
  overflow: hidden;
  padding: 72px 0 24px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.cat--v6-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: v6-scroll 72s linear infinite;
  will-change: transform;
}
.cat--v6-rail:hover .cat--v6-track,
.cat--v6-rail:focus-within .cat--v6-track {
  animation-play-state: paused;
}
@keyframes v6-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cat--v6-track { animation: none; }
  .cat--v6-rail { overflow-x: auto; scroll-snap-type: x mandatory; }
  .cat--v6 { scroll-snap-align: start; }
}
/* Staggered vertical rhythm */
.cat--v6-track > .cat--v6:nth-child(odd)  { transform: translateY(-14px); }
.cat--v6-track > .cat--v6:nth-child(even) { transform: translateY(14px); }

.cat--v6 {
  position: relative;
  width: 280px;
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 60px 20px 22px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s, transform 0.2s;
}
.cat--v6:hover { box-shadow: var(--shadow-lg); }

.cat--v6__portrait {
  position: absolute;
  top: -42px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px -6px rgba(17,24,28,0.22), 0 2px 4px rgba(17,24,28,0.08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: #ffffff;
  background: var(--grad-pathway);
  z-index: 1;
}
.cat--v6__portrait--indigo { background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%); }
.cat--v6__portrait--teal   { background: linear-gradient(135deg, #0d9488 0%, #5eead4 100%); }
.cat--v6__portrait--amber  { background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%); }
.cat--v6__portrait--rose   { background: linear-gradient(135deg, #be123c 0%, #fb7185 100%); }
.cat--v6__portrait--slate  { background: linear-gradient(135deg, #334155 0%, #64748b 100%); }
.cat--v6__portrait--violet { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }
.cat--v6__portrait-img { width: 100%; height: 100%; object-fit: cover; }

.cat--v6__name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink-900);
  text-align: center;
  margin-bottom: 4px;
  position: relative; z-index: 1;
}
.cat--v6__meta {
  font-size: 12px; color: var(--ink-500);
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 0.005em;
  position: relative; z-index: 1;
}
.cat--v6__total {
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  padding: 12px 14px;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.cat--v6__total-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.cat--v6__total-value {
  font-family: var(--font-display);
  font-weight: 600; font-size: 26px;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.cat--v6__total-value span {
  font-size: 13px; font-weight: 500; color: var(--ink-500);
  margin-left: 2px;
}
.cat--v6__bar {
  display: flex;
  height: 6px; border-radius: 999px;
  overflow: hidden;
  background: var(--ink-100);
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.cat--v6__bar > span { display: block; height: 100%; }
.cat--v6__items {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 8px;
  position: relative; z-index: 1;
}
.cat--v6__item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #4b5563;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--ink-100);
  background: #ffffff;
  transition: border-color 0.15s;
}
.cat--v6__item--primary {
  background: #f2f4f6;
  border-color: transparent;
  color: var(--ink-900);
  font-weight: 500;
}
.cat--v6__item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.cat--v6__item-label {
  font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat--v6__item-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-700);
}
.cat--v6__item--primary .cat--v6__item-value {
  color: var(--ink-900);
  font-weight: 600;
}

/* RETIRED v3.1.0: .cat--v6__connectors — Jon flagged the portrait-to-pathway
   lines as "too distracting" in §3.5 QA. The SVG markup was removed from
   index.html in v3.1.0; the selector stays here as display:none for rollback
   safety (restore the SVG blocks + flip back to the prior rule to re-enable). */
.cat--v6__connectors { display: none; }
/* Prior rule kept as comment for rollback reference:
   .cat--v6__connectors { position: absolute; inset: 0; width: 100%; height: 100%;
     pointer-events: none; z-index: 0; color: #a5b4fc; opacity: 0.32; }
   .cat--v6__connectors path { fill: none; stroke: currentColor; stroke-width: 1;
     stroke-linecap: round; } */

/* RESTORED v3.1.0: portrait images are back — Jon's §3.5 QA at v3.0.2 retired
   the Unsplash stock as "too fake" and replaced with gradient-tinted disks,
   but re-review on the live v3 build showed the photos were missed (the
   gradient disks read as abstract and broke the client-match specificity).
   Restoring real portraits; the circular 84×84 frame with overflow:hidden
   already contains them, and the .cat--v6__portrait--<tint> background
   remains as a loading fallback.
   The v3.0.2 ::after sheen is removed — it read as a weird highlight on
   top of actual faces. */
.cat--v6__portrait { position: relative; }

/* P0-A ADVOCATE UNLOCKED delta badge — the WOW moment */
.cat--v6__unlocked {
  position: absolute;
  top: -11px; right: -8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 5px 9px;
  background: var(--grad-pathway);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow:
    0 6px 14px -3px rgba(13,148,136,0.38),
    0 2px 4px rgba(17,24,28,0.10);
  white-space: nowrap;
  transform: rotate(-2.5deg);
  z-index: 2;
}
.cat--v6__unlocked::before {
  content: "✦";
  font-size: 11px;
  line-height: 1;
  color: #ccfbf1;
}
.cat--v6:hover .cat--v6__unlocked {
  transform: rotate(-2.5deg) scale(1.04);
  box-shadow:
    0 10px 20px -4px rgba(13,148,136,0.48),
    0 3px 6px rgba(17,24,28,0.12);
}
@media (prefers-reduced-motion: reduce) {
  .cat--v6__unlocked { transform: none; }
  .cat--v6:hover .cat--v6__unlocked { transform: none; box-shadow: var(--shadow-md); }
}

/* =========================================================================
   31. Sticky-nav dark-mode inversion (scroll-triggered, .is-stuck class)
   Threshold: scrollY > 120px. JS toggles .is-stuck on <header class="site-nav">.
   Rationale: when the nav "sticks" over colored sections (hero halo,
   clients band, pathway gradients), the default white-glass bar loses
   contrast against the gradient backgrounds. Inverting to an ink surface
   with white wordmark + teal "care" re-anchors the brand on scroll.
   Reuses existing .site-nav__wordmark--dark color values via descendant
   selector — no JS class swap needed on the wordmark itself.
   ========================================================================= */
.site-nav {
  transition: background-color 240ms var(--ease-standard),
              border-color 240ms var(--ease-standard),
              box-shadow 240ms var(--ease-standard);
}
.site-nav.is-stuck {
  background: rgba(11,18,32,0.88); /* --bg-dark at 88% — slight translucency for blur */
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px -12px rgba(3,7,18,0.55);
}
.site-nav.is-stuck .site-nav__brand { color: #ffffff; }
.site-nav.is-stuck .site-nav__wordmark .wm-bridge { color: #ffffff; }
.site-nav.is-stuck .site-nav__wordmark .wm-care   { color: #2dd4bf; }
/* Arch mark dark-mode — matches the footer variant. Rails flip ink-900 → white;
   arch gradient swaps to the lighter indigo-300 → teal-400 pair staged in the
   SVG's <defs> as #bc-nav-grad-dark; top node inverts teal-600/white → teal-400/ink-900. */
.site-nav.is-stuck .site-nav__mark-rail        { fill: #ffffff; }
.site-nav.is-stuck .site-nav__mark-arch        { stroke: url(#bc-nav-grad-dark); }
.site-nav.is-stuck .site-nav__mark-node-outer  { fill: #2dd4bf; }
.site-nav.is-stuck .site-nav__mark-node-inner  { fill: #11181c; }
.site-nav.is-stuck .site-nav__links a {
  color: rgba(255,255,255,0.82);
  transition: color 200ms var(--ease-standard);
}
.site-nav.is-stuck .site-nav__links a:hover { color: #ffffff; }
/* CTA button on dark nav — reduce contrast weight so the button doesn't shout */
.site-nav.is-stuck .btn--primary {
  background: #ffffff;
  color: var(--ink-900);
  box-shadow: 0 1px 2px rgba(17,24,28,0.12);
}
.site-nav.is-stuck .btn--primary:hover {
  background: #f5f7fb;
  color: var(--ink-900);
}
@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
  .site-nav.is-stuck .site-nav__links a { transition: none; }
}

/* ============================================================================
   §32 — HERO-VIZ HEAD ROW (client specimen header + matched tag)
   Added 2026-04-19 Sunday post-OMEGA C: ports the improved-V2 anchor hero-viz
   header from brand-exploration/kit-current-v2.html. Complements the existing
   .hero-viz / .hero-viz__svg rules. Deprecates .hero-viz__caption /
   .hero-viz__badge / .hero-viz__arrow / .hero-viz__match usages in markup
   (CSS for those left in place for legacy safety but no longer rendered).
   ============================================================================ */
.hero-viz__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.hero-viz__head .hero-viz__tag {
  background: var(--path-50);
  color: var(--path-600);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
  font-family: var(--font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

/* =========================================================================
   §32. P0-E — Hero Specimen Card (α Credential Card)
   Portrait-led credential tile for the hero right-column.
   Decision: 2026-04-19. Replaces hero-viz SVG diagram.
   Rationale: Angel's face + credential = strongest 3-second trust signal
   for a pitch-day visitor; lowest port complexity; flows into §3.5 V6 rail.
   ========================================================================= */
.hero-specimen {
  width: 100%;
  max-width: 360px;
  background: var(--paper, #ffffff);
  border: 1px solid var(--ink-200, #e5e7eb);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--sh-md, 0 4px 6px rgba(17,24,28,0.04), 0 10px 15px rgba(17,24,28,0.08));
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}
.hero-specimen__portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--grad-pathway, linear-gradient(135deg, #4f46e5, #0d9488));
  overflow: hidden;
}
.hero-specimen__portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.hero-specimen__tenure-badge {
  position: absolute;
  bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(17,24,28,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 9999px;
  font-family: var(--font-mono, ui-monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-specimen__tenure-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 8px #5eead4;
}
.hero-specimen__body { padding: 22px 22px 20px; }
.hero-specimen__name {
  font-family: var(--font-display, "Inter Tight", "Inter", sans-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink-900, #11181c);
  margin: 0 0 2px;
}
.hero-specimen__credential {
  font-size: 13px;
  color: var(--ink-500, #6b7280);
  margin: 0 0 16px;
}
.hero-specimen__divider {
  height: 1px;
  background: var(--ink-200, #e5e7eb);
  margin-bottom: 16px;
}
.hero-specimen__label {
  font-family: var(--font-mono, ui-monospace);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--path-600, #0d9488);
  margin-bottom: 8px;
}
.hero-specimen__client {
  font-size: 14px;
  color: var(--ink-700, #374151);
  margin: 0 0 14px;
  line-height: 1.5;
}
.hero-specimen__client strong {
  color: var(--ink-900, #11181c);
  font-weight: 600;
}
.hero-specimen__pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 16px;
}
.hero-specimen__pill {
  font-family: var(--font-mono, ui-monospace);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--brand-50, #eef2ff);
  color: var(--brand-700, #4338ca);
  border: 1px solid var(--brand-100, #e0e7ff);
}
.hero-specimen__delta {
  background: var(--paper-soft, #f5f7fb);
  border-radius: var(--radius-md, 12px);
  padding: 14px 16px;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.hero-specimen__delta-label {
  font-family: var(--font-mono, ui-monospace);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500, #6b7280);
  line-height: 1.4;
  max-width: 140px;
}
.hero-specimen__delta-value {
  font-family: var(--font-display, "Inter Tight", "Inter", sans-serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  background: var(--grad-pathway, linear-gradient(135deg, #4f46e5, #0d9488));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.hero-specimen__delta-value sub {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500, #6b7280);
  -webkit-text-fill-color: var(--ink-500, #6b7280);
  margin-left: 2px;
  vertical-align: baseline;
}
.hero-specimen__source {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--ink-200, #e5e7eb);
  font-family: var(--font-mono, ui-monospace);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--ink-500, #6b7280);
  line-height: 1.5;
}

/* On desktop the specimen sits in the hero-viz slot; on mobile it stacks
   below the form in the natural flow. Use same responsive threshold as hero. */
@media (min-width: 1024px) {
  .hero-specimen {
    max-width: 340px;
    /* No need to set grid-column — the hero-viz slot already handles this */
  }
}

/* -------------------------------------------------------------------------
   33. Patient-card — reusable Maria-R. component (PATTERN-NEW, v3.0.0)
   Source: patterns-round-04 gallery. Consumed by §1 Hero (P01 Sankey swap)
   and available for §3.5 rail + future P08 beam. Gallery tokens translated
   to v3 tokens via var(--v3-token, fallback) pattern.
   ------------------------------------------------------------------------- */
.patient-card {
  --pc-w: 340px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: var(--pc-w);
  max-width: 100%;
  padding: 24px 22px 22px;
  background: var(--white, #ffffff);
  border: 1px solid var(--ink-300, #d1d5db);
  border-radius: 16px;
  box-shadow: 0 4px 24px -16px rgba(14, 12, 46, 0.14);
}
.patient-card--compact { --pc-w: 280px; padding: 18px 18px 16px; gap: 10px; }
.patient-card--inline { --pc-w: 100%; box-shadow: none; border: 1px solid var(--ink-200, #e5e7eb); }

.patient-card__head {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: -44px; /* float the photo above the card edge */
  margin-bottom: -8px;
}
.patient-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  border: 3px solid var(--white, #ffffff);
  outline: 1px solid var(--ink-300, #d1d5db);
  object-fit: cover;
  background: var(--bg-soft, #f5f7fb);
  display: block;
}
.patient-card--compact .patient-card__photo { width: 56px; height: 56px; margin-top: 0; }
.patient-card__badge {
  position: absolute;
  top: 16px;
  left: calc(50% + 28px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: linear-gradient(92deg, var(--brand-600, #4f46e5) 0%, var(--path-600, #0d9488) 100%);
  color: var(--white, #ffffff);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 8px -2px rgba(14, 12, 46, 0.18);
}
.patient-card__badge b { font-weight: 500; letter-spacing: 0.4px; }

.patient-card__id { text-align: center; margin-top: 8px; }
.patient-card__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-900, #11181c);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.patient-card__name small { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--ink-500, #6b7280); letter-spacing: 0.5px; margin-left: 6px; }
.patient-card__meta {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-500, #6b7280);
}
.patient-card__sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.8px;
  color: var(--ink-500, #6b7280);
  text-transform: uppercase;
  text-align: center;
  margin-top: 2px;
}

.patient-card__total {
  padding: 14px 16px;
  background: var(--bg-soft, #f5f7fb);
  border-radius: 10px;
  border: 1px solid var(--ink-200, #e5e7eb);
}
.patient-card__total .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--ink-500, #6b7280);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.patient-card__total .v {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink-900, #11181c);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.patient-card__total .v small { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--ink-500, #6b7280); letter-spacing: 0.4px; margin-left: 4px; }

.patient-card__bar {
  display: flex;
  height: 6px;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--ink-200, #e5e7eb);
}
.patient-card__bar span { display: block; height: 100%; }
.patient-card__bar .seg--mp  { background: #3a3bd1; }
.patient-card__bar .seg--lis { background: #16a394; }
.patient-card__bar .seg--rx  { background: #f0a93c; }
.patient-card__bar .seg--gr  { background: #7e22ce; }

.patient-card__rows { display: flex; flex-direction: column; gap: 8px; }
.patient-card__row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--ink-200, #e5e7eb);
  border-radius: 8px;
  background: var(--white, #ffffff);
}
.patient-card__row .dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--ink-500, #6b7280); justify-self: center; }
.patient-card__row .dot.dot--mp  { background: #3a3bd1; }
.patient-card__row .dot.dot--lis { background: #16a394; }
.patient-card__row .dot.dot--rx  { background: #f0a93c; }
.patient-card__row .dot.dot--gr  { background: #7e22ce; }
.patient-card__row .lbl {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-700, #374151);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.patient-card__row .val {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900, #11181c);
  font-variant-numeric: tabular-nums;
}
.patient-card__row--pri { background: var(--bg-soft, #f5f7fb); border-color: var(--ink-300, #d1d5db); }

.patient-card__footnote {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-500, #6b7280);
  text-align: center;
}

