/* =====================================================================
   Self-hosted webfonts. Source files live in /public/fonts/. See DESIGN.md
   section 3 for the type-stack contract. Production deploys must not
   depend on Google Fonts at runtime.
   ===================================================================== */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("https://storage.googleapis.com/ronanrx-public-assets/fonts/Newsreader-Latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("https://storage.googleapis.com/ronanrx-public-assets/fonts/Newsreader-Italic-Latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("https://storage.googleapis.com/ronanrx-public-assets/fonts/Geist-Variable.woff2") format("woff2-variations"),
    url("https://storage.googleapis.com/ronanrx-public-assets/fonts/Geist-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("https://storage.googleapis.com/ronanrx-public-assets/fonts/GeistMono-Variable.woff2") format("woff2-variations"),
    url("https://storage.googleapis.com/ronanrx-public-assets/fonts/GeistMono-Variable.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ==== BASE PALETTE (9 distinct values, plus reserved paper) ==== */
  /* neutrals */
  --color-bg: #f5f1e7; /* :root */
  --color-bg-alt: #efe9da; /* :root */
  --color-line: #e5e0d1; /* :root */
  --color-ink: #0c2f10; /* :root */
  --color-ink-muted: #4a5550; /* :root */
  /* brand + accents */
  --color-brand: #0f3e17; /* :root */
  --color-mint-tint: #ebf3e9; /* :root */
  --color-sage: #a4c9aa; /* :root */
  /* state */
  --color-danger: #cd4e4e; /* :root */
  /* reserved (print + on-dark wordmark) */
  --color-paper: #ffffff; /* :root */

  /* ==== SEMANTIC ALIASES (no new hex) ==== */
  --color-surface: var(--color-bg);
  --color-brand-deep: var(--color-ink);
  --color-brand-hover: var(--color-ink);
  --color-success: var(--color-brand);
  --color-warn: var(--color-sage);
  --color-mint-mid: var(--color-sage);
  --color-ink-soft: var(--color-ink-muted);
  --color-accent-copper: var(--color-brand); /* deprecated; no new uses */
  --color-brand-tint: var(--color-mint-tint);
  --color-danger-tint: #fbf6f4; /* :root, one-off, not promoted */

  /* ==== LEGACY ALIASES (kept until callsites are renamed) ==== *
   * These let existing class CSS keep resolving while we land the token
   * swap. New code should reach for the base palette directly. */
  --color-text: var(--color-ink);
  --color-muted: var(--color-ink-muted);
  --color-accent: var(--color-ink-muted);
  --color-link: var(--color-ink);
  --color-rule: var(--color-line);
  --color-clinical: var(--color-brand);
  --color-clinical-deep: var(--color-ink);
  --color-copper: var(--color-brand);
  --sage: var(--color-sage);

  /* ==== TYPE STACKS ==== */
  --font-display:
    "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-sans:
    "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-mono:
    "Geist Mono", ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  /* legacy var: kept so existing rules continue to resolve to the body serif */
  --font: var(--font-body);

  /* ==== SPACING (4px scale) ==== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;

  /* ==== CONTAINERS ==== */
  --maxw: 1152px;
  --maxw-wide: 1280px;
  --max-width: var(--maxw); /* legacy alias */
  --max-prose: 72ch;

  /* ==== MOTION ==== */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
}

/* Respect user motion preference. Flattens all animation/transitions. */
@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;
  }
}

/* Custom focus ring for keyboard users; matches brand sage. */
:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Shared entrance keyframe used by hero stagger, status messages,
   and receipt rows. Subtle 6px lift + opacity. */
@keyframes rrx-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html {
  font-size: 100%;
}
[hidden] {
  display: none !important;
}
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* enables full-bleed bands to break out of main's max-width without
     causing a horizontal scrollbar; `clip` (vs `hidden`) preserves
     position: sticky on descendants */
  overflow-x: clip;
}

a {
  color: var(--color-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 120ms ease;
}
a:hover {
  color: var(--color-brand);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* ===== Type scale (DESIGN.md Section 3) =====
   Heading tags map to display tiers; tier utility classes (.t-display-xl,
   .t-title, .t-eyebrow, etc.) cover cases where the use-site does not match
   the heading tag (eg. card titles, callout headings, stat numbers). */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
h1 {
  /* Display XL */
  font-weight: 300;
  font-size: clamp(3.25rem, 6vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  max-width: 920px;
}
h2 {
  /* Display M */
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 3rem;
}
h3 {
  /* Title */
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin-top: 2rem;
}
h4 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p,
ul,
ol {
  margin-bottom: 1rem;
}
ul,
ol {
  padding-left: 1.5rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

main h2:first-child,
main section > h2:first-child {
  margin-top: 0;
}
main p,
main li {
  font-size: 1rem;
  line-height: 1.65;
  max-width: var(--max-prose);
}

/* ===== Intake wizard primitives (DESIGN.md Section 11) ===== */
.wizard-shell {
  min-height: calc(100vh - 80px);
  padding: 64px 24px 160px;
  background: var(--color-bg);
}
.wizard {
  max-width: 560px;
  margin: 0 auto;
}
.wizard__progress {
  height: 3px;
  background: var(--color-line);
  margin-bottom: 32px;
}
.wizard__progress-bar {
  display: block;
  width: 12.5%;
  height: 3px;
  background: var(--color-brand);
}
.wizard__eyebrow {
  margin: 0 0 12px;
}
.wizard__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.wizard__body {
  display: grid;
  gap: 20px;
}
.wizard-context {
  display: grid;
  gap: 4px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--color-brand);
  border-radius: 0 4px 4px 0;
  background: transparent;
}
.wizard-context[hidden] {
  display: none;
}
.wizard-context span {
  color: var(--color-ink-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wizard-context strong {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
}
.wizard-copy {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink-muted);
}
.wizard-options {
  display: grid;
  gap: 12px;
}
.wizard-option,
.wizard-checkbox,
.wizard-radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  cursor: pointer;
}
.wizard-option {
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-bg);
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}
.wizard-option:has(input:checked) {
  border: 2px solid var(--color-brand);
  background: var(--color-mint-tint);
  padding: 19px;
}
.wizard-option input,
.wizard-checkbox input,
.wizard-radio input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--color-brand);
  flex: 0 0 20px;
}
.wizard-option input[type="checkbox"],
.wizard-checkbox input {
  border-radius: 4px;
}
.wizard-option strong,
.wizard-option span span {
  display: block;
}
.wizard-option strong,
.wizard-option__label {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.005em;
}
.wizard-option span span {
  color: var(--color-ink-muted);
  margin-top: 4px;
}
.wizard-radiogroup {
  display: grid;
  gap: 12px;
}
.wizard-radiogroup__label {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-ink);
}
.wizard-field,
.wizard-fieldset {
  display: grid;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
}
.wizard-field input,
.wizard-field textarea,
.wizard-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-ink);
  font: inherit;
  padding: 12px 16px;
}
.wizard-field textarea {
  min-height: 128px;
  resize: vertical;
}
.wizard-field input[aria-invalid="true"],
.wizard-field textarea[aria-invalid="true"],
.wizard-field select[aria-invalid="true"],
.wizard-checkbox input[aria-invalid="true"],
.wizard-radio input[aria-invalid="true"],
.wizard-option input[aria-invalid="true"] {
  outline: 2px solid var(--color-danger);
  outline-offset: 2px;
}
.wizard-fieldset {
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 20px;
}
.wizard-fieldset legend {
  padding: 0 8px;
  color: var(--color-ink);
}
.wizard-radio {
  font-family: var(--font-body);
  font-weight: 400;
}
.wizard-checkbox {
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-bg-alt);
  font-family: var(--font-body);
  font-weight: 400;
}
.wizard-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wizard-pill-row .pill {
  white-space: normal;
}
.wizard-turnstile {
  min-height: 72px;
}
.wizard__status {
  min-height: 24px;
  margin-top: 16px;
  color: var(--color-danger);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
}
.wizard-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
}
.wizard-action-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.wizard-action-bar__copy {
  margin: 0;
  color: var(--color-ink-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.3;
}
.wizard-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.wizard-receipt {
  margin-top: 16px;
  color: var(--color-ink-muted);
}
.wizard-done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.wizard--done + .wizard-action-bar,
.wizard--done .wizard__status {
  display: none;
}

/* ===== Analytics consent band (DESIGN.md Section 10.7) ===== */
.consent-band {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  animation: rrx-consent-in 160ms var(--ease-out-quart);
}

.consent-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.consent-band__copy {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.65;
}

.consent-band__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

@keyframes rrx-consent-in {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 700px) {
  .wizard-shell {
    padding: 40px 20px 176px;
  }
  .wizard-context {
    display: none;
  }
  .wizard-action-bar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .wizard-action-bar__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: none;
  }
  .wizard-actions,
  .wizard-actions .button {
    width: 100%;
  }
  .wizard-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-band {
    padding-left: 20px;
    padding-right: 20px;
  }

  .consent-band__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .consent-band__actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
  }

  .consent-band__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-band {
    animation: none;
  }
}

/* ===== Type tier utilities (use when the tag and tier don't agree) ===== */
.t-display-xl {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.25rem, 6vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.t-display-l {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.t-display-m {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.t-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.t-lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  line-height: 1.55;
}
.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
}
.t-ui {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0.005em;
}
.t-eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.t-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.t-stat {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.t-stat--mixed {
  /* Mixed values like "48 hr" or "2 wk" use a softer track so the unit
     does not jam into the numeral. */
  letter-spacing: -0.015em;
}

em,
.t-italic-brand {
  font-style: italic;
}
.t-italic-brand {
  color: var(--color-brand);
}

/* ===== Status pill primitive (DESIGN.md Section 4) =====
   One primitive, four variants. Reserved for regulatory state. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
  white-space: nowrap;
}
.pill--available {
  background: var(--color-mint-tint);
  border-color: var(--color-sage);
  color: var(--color-brand);
}
.pill--review {
  background: transparent;
  border-color: var(--color-sage);
  color: var(--color-brand);
}
.pill--rx-only {
  background: transparent;
  border-color: var(--color-danger);
  color: var(--color-ink);
}
.pill--cat2 {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

/* ===== Context callout (DESIGN.md Section 4, Cat 2 substance pages) =====
   Patient-facing reassurance primitive. Sits below the regulatory pill on
   substance brief pages, translates pill state into plain English. */
.ctx-callout {
  position: relative;
  background: var(--color-mint-tint);
  border-radius: 0 4px 4px 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-ink);
  max-width: 60ch;
}
/* Sage left rule rendered as a pseudo-element so the callout keeps a crisp,
   token-based affordance without adding another layout wrapper. */
.ctx-callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-sage);
}
.ctx-callout > p {
  margin: 0;
}
.ctx-callout > p + p {
  margin-top: 8px;
}

/* ===== Section archetypes (DESIGN.md Section 6) ===== */
.archetype-section {
  padding: 96px 24px;
}
/* Anchor targets briefly pulse mint when navigated to. */
:target {
  animation: rrx-target-pulse 2.1s var(--ease-out-quart);
}
@keyframes rrx-target-pulse {
  0% {
    background: transparent;
  }
  10% {
    background: var(--color-mint-tint);
  }
  85% {
    background: var(--color-mint-tint);
  }
  100% {
    background: transparent;
  }
}
.archetype-section--alt {
  background: var(--color-bg-alt);
  /* full-bleed band so the bg-alt surface extends to viewport edges; inner stays at --maxw */
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
/* Full-bleed dark-band variant of archetype-section. Use at most once per
 * page (DESIGN.md §4 Dividers, §6.6 Dark trust band). Shares surface +
 * full-bleed treatment with .archetype-trust-band; use this when you want
 * a dark CTA band without the 3–5 trust-items grid. */
.archetype-section--ink {
  background: var(--color-ink);
  color: var(--color-paper);
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.archetype-section--ink h2,
.archetype-section--ink p,
.archetype-section--ink .archetype-section__header > * {
  color: var(--color-paper);
}
.archetype-section--ink .t-eyebrow,
.archetype-section--ink .section-eyebrow {
  color: var(--color-bg-alt);
}
.archetype-section--ink .text-link {
  color: var(--color-paper);
}
.archetype-section--ink .text-link:hover {
  color: var(--color-sage);
}
.archetype-section--ink a:not(.button):not(.text-link) {
  color: var(--color-paper);
}
/* Primary button on ink: brand-green (#0F3E17) is nearly identical to
 * --color-ink (#0C2F10), so the default fill would vanish. Invert to
 * cream surface + ink text for visible affordance on the dark band. */
.archetype-section--ink .button--primary {
  background: var(--color-bg);
  border-color: var(--color-bg);
  color: var(--color-ink);
}
.archetype-section--ink .button--primary:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  color: var(--color-ink);
}
.archetype-section--ink .button:not(.button--primary):not(.button--ghost) {
  background: transparent;
  border-color: var(--color-bg);
  color: var(--color-bg);
}
.archetype-section--ink
  .button:not(.button--primary):not(.button--ghost):hover {
  background: var(--color-bg);
  color: var(--color-ink);
}
/* Same idea for the editorial template's trailing compliance callout: when
 * it's the last visible thing on the page, drop the cream tint so the page
 * doesn't end on a colored box. The accent rule stays. */
main > section:last-child .callout--compliance:last-child {
  background: transparent;
}
.archetype-section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.archetype-section__header {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 48px;
}
.archetype-section__header > * {
  margin: 0;
}
.card-title-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  text-decoration: none;
}
.card-title-link::after {
  content: "";
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.archetype-three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.archetype-three-up__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 28px 24px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-ink);
  text-decoration: none;
  transition:
    border-color var(--dur-fast) var(--ease-out-quart),
    transform var(--dur-base) var(--ease-out-quart);
}
.archetype-three-up__card--recommended {
  border-top: 4px solid var(--color-brand);
}
.archetype-three-up__tab {
  position: absolute;
  left: 24px;
  top: -20px;
}
.archetype-three-up__eyebrow,
.archetype-six-cell__footer,
.archetype-split-stat__label,
.archetype-pull-quote__eyebrow,
.archetype-pull-quote__attribution,
.archetype-trust-band__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.archetype-three-up__title,
.archetype-six-cell__title,
.archetype-three-step__title,
.archetype-trust-band__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.archetype-three-up__copy,
.archetype-six-cell__copy,
.archetype-three-step__copy,
.archetype-trust-band__copy,
.archetype-split-stat__subcopy {
  margin: 0;
  color: var(--color-ink-muted);
}
.archetype-three-up__bullets {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 1rem;
}
.archetype-three-up__card:hover,
.archetype-three-up__card:focus-visible {
  border-color: var(--color-brand);
  transform: translateY(-1px);
}
.archetype-three-up__card:hover .card-title-link,
.archetype-three-up__card:focus-visible .card-title-link,
.archetype-six-cell__cell:hover .card-title-link,
.archetype-six-cell__cell:focus-visible .card-title-link {
  color: var(--color-brand);
}
.archetype-three-up__card:hover .card-title-link::after,
.archetype-three-up__card:focus-visible .card-title-link::after,
.archetype-six-cell__cell:hover .card-title-link::after,
.archetype-six-cell__cell:focus-visible .card-title-link::after {
  opacity: 1;
  transform: translateX(0);
}
.archetype-six-cell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.archetype-six-cell__cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink);
  text-decoration: none;
  transition: border-top-color var(--dur-fast) var(--ease-out-quart);
}
.archetype-six-cell__cell:hover,
.archetype-six-cell__cell:focus-visible {
  border-top-color: var(--color-brand);
}
.archetype-six-cell__cell--lead {
  grid-row: span 2;
}
.archetype-six-cell__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  margin-bottom: 4px;
  border-radius: 4px;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.archetype-six-cell__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.archetype-six-cell__cell--lead .archetype-six-cell__title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.archetype-six-cell__cell--lead .archetype-six-cell__copy {
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  line-height: 1.55;
  color: var(--color-ink);
}
.archetype-six-cell__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}
.archetype-three-step {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.archetype-three-step__card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-bg);
  overflow: hidden;
}
.archetype-three-step__visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  color: var(--color-ink);
}
.archetype-three-step__visual svg {
  width: 64%;
  height: 64%;
  stroke: currentColor;
}
.archetype-three-step__visual--diagram svg {
  width: 82%;
  height: 82%;
}
.archetype-three-step__visual--scene svg {
  width: 78%;
  height: 90%;
}
.archetype-three-step__visual--illustration {
  display: block;
  place-items: initial;
  padding: 0;
}
.archetype-three-step__visual--illustration picture,
.archetype-three-step__visual--illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== Programs archetype (3-up program cards w/ med chips) ===== */
.archetype-programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}
.archetype-programs__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 4px;
}
.archetype-programs__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.archetype-programs__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
.archetype-programs__summary {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
}
.archetype-programs__chips-label {
  margin: 8px 0 -4px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.archetype-programs__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.archetype-programs__chips a,
.archetype-programs__chips .archetype-programs__chip--inert {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--color-ink);
  text-decoration: none;
  transition:
    border-color 120ms ease,
    color 120ms ease,
    background-color 120ms ease;
}
.archetype-programs__chips a:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-mint-tint);
}
.archetype-programs__chips a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
.archetype-programs__chip--inert {
  color: var(--color-ink-muted);
}
.archetype-programs__cta {
  margin: auto 0 0;
  padding-top: 8px;
}
.archetype-programs__cta a {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-brand);
  text-decoration: none;
}
.archetype-programs__cta a:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.archetype-programs__note {
  margin: 32px 0 0;
  max-width: 80ch;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
}
@media (max-width: 900px) {
  .archetype-programs {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.archetype-three-step__visual--video {
  position: relative;
  display: block;
  place-items: initial;
  padding: 0;
}
.archetype-three-step__visual--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .archetype-three-step__visual--video video {
    display: none;
  }
  .archetype-three-step__visual--video {
    background-size: cover;
    background-position: center;
  }
}
.archetype-three-step__body {
  display: grid;
  gap: 12px;
  padding: 28px 24px;
}
.archetype-three-step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--color-ink-muted);
}
.archetype-three-step__copy {
  max-width: 28ch;
}
.archetype-three-step--image-text {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.archetype-three-step--image-text .archetype-three-step__visual {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}
.archetype-three-step--image-text .archetype-three-step__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--color-line);
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.archetype-split-stat {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.archetype-split-stat__copy {
  grid-column: span 6;
  display: grid;
  gap: 24px;
}
.archetype-split-stat__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.archetype-split-stat__lead {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  line-height: 1.55;
}
.archetype-split-stat__cards {
  grid-column: span 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.archetype-split-stat__card,
.archetype-split-stat__quote {
  padding-top: 16px;
  border-top: 2px solid var(--color-brand);
}
.archetype-split-stat__num {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}
.archetype-split-stat__quote {
  grid-column: span 2;
}
.archetype-split-stat__quote blockquote {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.55;
}
.archetype-pull-quote {
  background: var(--color-bg-alt);
  padding: 96px 24px;
  /* full-bleed band per DESIGN.md Section 6.5; inner stays at --maxw */
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.archetype-pull-quote__inner {
  display: grid;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.archetype-pull-quote__quote {
  max-width: 24ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.archetype-pull-quote--with-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.archetype-pull-quote__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.archetype-pull-quote__bg picture,
.archetype-pull-quote__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.archetype-pull-quote__bg img {
  opacity: 0.3;
}
.archetype-pull-quote__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--color-bg-alt) 82%, transparent),
    color-mix(in srgb, var(--color-bg-alt) 55%, transparent) 50%,
    color-mix(in srgb, var(--color-bg-alt) 82%, transparent)
  );
}
.archetype-pull-quote--with-bg .archetype-pull-quote__inner {
  position: relative;
  z-index: 1;
}
.archetype-pull-quote__body {
  display: grid;
  gap: 24px;
}
.archetype-trust-band {
  padding: 96px 24px;
  background: var(--color-ink);
  color: var(--color-paper);
  /* full-bleed band per DESIGN.md Section 6.6; inner uses --maxw-wide per Section 5 */
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.archetype-trust-band__inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
}
.archetype-trust-band__eyebrow {
  color: var(--color-bg-alt);
}
.archetype-trust-band__headline {
  max-width: 800px;
  margin: 16px 0 48px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.archetype-trust-band__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: trust;
}
.archetype-trust-band__item {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-sage);
}
.archetype-trust-band__item::before {
  counter-increment: trust;
  content: counter(trust, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-bg-alt);
}
.archetype-trust-band__title,
.archetype-trust-band__copy {
  color: var(--color-paper);
}

/* ===== Operational states (DESIGN.md Section 10) ===== */
.form-field {
  display: grid;
  gap: 8px;
}
.form-field label,
.form-field__label,
.form-grid label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.form-grid label + input,
.form-grid label + select,
.form-grid label + textarea {
  margin-top: 8px;
}
.form-field__control,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}
.form-grid textarea,
.form-field__control--textarea {
  min-height: 120px;
  resize: vertical;
}
.form-field__control:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-width: 2px;
  border-color: var(--color-brand);
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
.form-field__control:not(:placeholder-shown):not(:focus):not(:disabled),
.form-grid input:not(:placeholder-shown):not(:focus):not(:disabled),
.form-grid textarea:not(:placeholder-shown):not(:focus):not(:disabled) {
  border-color: var(--color-ink-muted);
}
.form-field__control:disabled,
.form-grid input:disabled,
.form-grid select:disabled,
.form-grid textarea:disabled {
  background: var(--color-bg-alt);
  color: var(--color-ink-muted);
  cursor: not-allowed;
}
.form-field[data-state="error"] .form-field__control,
.form-field__control[aria-invalid="true"],
.form-grid input[aria-invalid="true"],
.form-grid select[aria-invalid="true"],
.form-grid textarea[aria-invalid="true"] {
  border-width: 2px;
  border-color: var(--color-danger);
}
.form-field[data-state="success"] .form-field__control,
.form-field__control[aria-invalid="false"][data-touched="true"] {
  border-width: 2px;
  border-color: var(--color-brand);
}
.form-field__helper,
.form-error-inline {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--color-ink-muted);
}
.form-field[data-state="error"] .form-field__helper,
.form-error-inline,
.form-status--error {
  color: var(--color-danger);
}
.form-field[data-state="success"] .form-field__helper,
.form-status--success {
  color: var(--color-brand);
}
.skeleton {
  display: block;
  width: 100%;
  border-radius: 4px;
  background: var(--color-bg-alt);
}
.skeleton--title {
  height: 24px;
}
.skeleton--body {
  height: 16px;
}
.skeleton--eyebrow {
  height: 12px;
}
.skeleton--shimmer {
  background: linear-gradient(
    90deg,
    var(--color-bg-alt) 0,
    var(--color-bg) 50%,
    var(--color-bg-alt) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s linear infinite;
}
@keyframes skeleton-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.empty-state {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 48ch;
  padding: 32px 0;
}
.empty-state__illustration {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 4px;
  background: var(--color-bg-alt);
  color: var(--color-ink);
}
.empty-state__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.empty-state__copy {
  margin: 0;
  color: var(--color-ink-muted);
}
.success-confirmation,
.regulatory-friction {
  padding: 96px 24px;
}
.success-confirmation__inner,
.regulatory-friction__inner {
  display: grid;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.success-confirmation__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.regulatory-friction__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.success-confirmation__receipt {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--color-ink-muted);
}
/* Receipt rows rise in sequence after the page paints. */
html.js-ready main.is-ready .success-confirmation__receipt > div {
  animation: rrx-rise var(--dur-base) var(--ease-out-expo) both;
}
html.js-ready main.is-ready .success-confirmation__receipt > div:nth-child(1) {
  animation-delay: 200ms;
}
html.js-ready main.is-ready .success-confirmation__receipt > div:nth-child(2) {
  animation-delay: 280ms;
}
@media (prefers-reduced-motion: reduce) {
  html.js-ready main.is-ready .success-confirmation__receipt > div {
    animation: none;
  }
}
.copy-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: transparent;
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  vertical-align: -3px;
  transition:
    border-color var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart),
    background var(--dur-fast) var(--ease-out-quart);
}
.copy-id:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.copy-id[data-copied="true"] {
  border-color: var(--color-sage);
  color: var(--color-brand);
  background: var(--color-mint-tint);
}
.copy-id__feedback {
  margin-left: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-brand);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out-quart);
}
.copy-id__feedback[data-visible="true"] {
  opacity: 1;
}

@media (max-width: 900px) {
  .archetype-three-up,
  .archetype-six-cell,
  .archetype-three-step {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .archetype-six-cell__cell--lead {
    grid-row: auto;
  }
  .archetype-split-stat {
    grid-template-columns: 1fr;
  }
  .archetype-split-stat__copy,
  .archetype-split-stat__cards {
    grid-column: auto;
  }
  .archetype-trust-band__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .archetype-section,
  .archetype-pull-quote,
  .archetype-trust-band,
  .success-confirmation,
  .regulatory-friction {
    padding: 64px 20px;
  }
  .archetype-three-up,
  .archetype-six-cell,
  .archetype-three-step,
  .archetype-three-step--image-text,
  .archetype-split-stat__cards,
  .archetype-trust-band__items {
    grid-template-columns: 1fr;
  }
  .archetype-split-stat__quote {
    grid-column: auto;
  }
}

.page-header-figure {
  margin: 1.25rem 0 2rem;
}

.page-header-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
}

/* ===== Header / nav ===== */

/* Skip-link slides down from above the viewport on focus. Centered so it
   never overlaps the wordmark. */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 1000;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out-quart);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 0.5rem);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: 0;
  background: var(--color-surface);
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-base) var(--ease-out-quart),
    backdrop-filter var(--dur-base) var(--ease-out-quart),
    border-color var(--dur-base) var(--ease-out-quart);
}
header.is-scrolled {
  background: rgba(245, 241, 231, 0.82);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  border-bottom-color: var(--color-line);
}
header nav.site-nav,
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  text-decoration: none;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}
.brand-logo {
  display: block;
  width: clamp(8.6rem, 14vw, 11.5rem);
  height: auto;
  flex: 0 0 auto;
}
.brand--wordmark {
  gap: 0;
}
.brand-copy {
  display: grid;
  gap: 0.25rem;
  line-height: 1;
}
.brand-name {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.brand-subtitle {
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-primary {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  flex: 1 1 auto;
  justify-content: center;
}
.nav-primary a {
  color: var(--color-link);
  text-decoration: none;
  padding: 0.5rem 0;
  display: inline-block;
  border-bottom: 1px solid transparent;
  transition:
    border-color 120ms ease,
    color 120ms ease;
}
.nav-primary a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

.nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-text);
  color: var(--color-surface);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-text);
  transition: background 120ms ease;
  white-space: nowrap;
}
.nav-signin:hover {
  background: var(--color-ink);
  color: var(--color-surface);
}
.nav-signin-icon {
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle-bars span {
  height: 2px;
  background: var(--color-text);
  display: block;
}

/* ===== Layout primitives ===== */

main,
.l-band > .l-content,
footer {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

main {
  padding-top: 0;
  padding-bottom: 0;
}

/* Initial-paint fade-up. Guarded on html.js-ready so the page is not
   blank for users with JS disabled. */
html.js-ready main {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}
html.js-ready main.is-ready {
  opacity: 1;
  transform: none;
}

.l-band {
  padding: 3.25rem 0;
  background: var(--color-bg);
}
/* Hairline only between adjacent sections — alternating backgrounds carry the
   primary rhythm; a thin rule between same-background bands keeps them readable. */
.l-band + .l-band:not(.l-band--surface):not(.l-band--alt) {
  border-top: 1px solid var(--color-line);
}
.l-band--surface {
  background: var(--color-surface);
}
.l-band--alt {
  background: var(--color-bg-alt);
}
.l-band--first {
  padding-top: 4rem;
}
.l-band > .l-content {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1100px) {
  .l-band {
    padding: 3.75rem 0;
  }
}

.l-prose {
  max-width: var(--max-prose);
}
/* Body-copy links draw their underline on hover. Scoped to .l-prose so
   nav, buttons, and brand anchors are untouched. */
.l-prose a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  text-decoration: none;
  transition:
    background-size var(--dur-base) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart);
}
.l-prose a:hover,
.l-prose a:focus-visible {
  background-size: 100% 1px;
}
.l-stack > * + * {
  margin-top: 1.25rem;
}

/* ===== Eyebrow + hero ===== */

.eyebrow {
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 4rem;
  min-height: 0;
}
.hero-copy {
  color: var(--color-muted);
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  max-width: 680px;
  margin-top: 1.5rem;
  font-family: var(--font);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero.hero--with-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(4rem, 9vw, 7rem) 1.5rem;
  min-height: clamp(440px, 60vh, 620px);
  display: flex;
  align-items: center;
}
.hero.hero--with-bg .hero__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}
/* Hero contents rise in sequence once the page has fully attached.
   No motion-one needed; pure CSS staggered animation-delay. */
html.js-ready main.is-ready .hero__copy > * {
  animation: rrx-rise var(--dur-base) var(--ease-out-expo) both;
}
html.js-ready main.is-ready .hero__copy > :nth-child(1) {
  animation-delay: 80ms;
}
html.js-ready main.is-ready .hero__copy > :nth-child(2) {
  animation-delay: 160ms;
}
html.js-ready main.is-ready .hero__copy > :nth-child(3) {
  animation-delay: 240ms;
}
html.js-ready main.is-ready .hero__copy > :nth-child(4) {
  animation-delay: 320ms;
}
@media (prefers-reduced-motion: reduce) {
  html.js-ready main.is-ready .hero__copy > * {
    animation: none;
  }
}
.hero.hero--with-bg .hero-copy {
  color: var(--color-ink);
}
.hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__media img {
  opacity: 0.45;
  animation: hero-media-fade-in 700ms ease-out both;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-bg) 80%, transparent) 0%,
    color-mix(in srgb, var(--color-bg) 55%, transparent) 55%,
    color-mix(in srgb, var(--color-bg) 80%, transparent) 100%
  );
}
@keyframes hero-media-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    animation: none;
  }
}
@media (max-width: 900px) {
  .hero.hero--with-bg {
    padding: clamp(3rem, 8vw, 5rem) 1.25rem;
    min-height: 420px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-text);
  border-radius: 4px;
  background: var(--color-text);
  color: var(--color-surface);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.005em;
  transition:
    background var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart),
    transform 80ms var(--ease-out-quart);
}
.button:hover {
  background: var(--color-ink);
  color: var(--color-surface);
}
.button:active {
  transform: translateY(1px);
}
.button--primary {
  background: var(--color-clinical);
  border-color: var(--color-clinical);
  color: var(--color-surface);
}
.button--primary:hover {
  background: var(--color-clinical-deep);
  border-color: var(--color-clinical-deep);
  color: var(--color-surface);
}
.button--ghost {
  background: transparent;
  color: var(--color-text);
}
.button--secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.button--ghost:hover {
  background: var(--color-bg);
  color: var(--color-text);
}
.button--secondary:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

.text-link {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover {
  color: var(--color-text);
}

/* ===== Team Linq Demo ===== */
.team-demo {
  min-height: 100vh;
}
.team-demo__shell {
  display: grid;
  gap: 48px;
}
.team-demo__hero {
  display: grid;
  gap: 24px;
  max-width: 840px;
}
.team-demo__status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.team-demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}
.team-demo__panel {
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-bg);
  padding: 28px 24px;
}
.team-demo__panel h2,
.team-demo__panel h3,
.team-demo__panel p {
  margin-top: 0;
}
.team-demo__message {
  margin: 24px 0;
  padding: 16px;
  border-left: 2px solid var(--color-brand);
  background: var(--color-mint-tint);
  font-size: 1.25rem;
  line-height: 1.55;
}
.team-demo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.team-demo__meta {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  color: var(--color-ink-muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
}
.team-demo__code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--color-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
}
.team-demo__checklist {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}
.team-demo__checklist li {
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}
.team-demo__checklist li:first-child {
  padding-top: 0;
  border-top: 0;
}
.team-demo__checklist strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
@media (max-width: 880px) {
  .team-demo__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Trust band — full-bleed dark stripe =====
 * Visual punctuation between hero (cream) and page body (cream). Different
 * category of element from the global nav (light/horizontal-text). Dark
 * green ground + white icon-above-label marks reads as a "credentials
 * stripe," not a second nav.
 *
 * Full-bleed escape: <main> has max-width + margins + padding. Using
 * position:relative + left:50% + margin-left: -50vw + width:100vw lets the
 * band span the full viewport regardless of parent constraints. */
.trust-band {
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 1rem 1.5rem;
  border: none;
  box-sizing: border-box;
}
.trust-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  list-style: none;
  padding: 0;
}
.trust-band-inner > li {
  display: flex;
  justify-content: center;
  /* Thin dividers between marks — same green, lighter for the rule */
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.trust-band-inner > li:last-child {
  border-right: 0;
}

.trust-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  transition:
    color 150ms ease,
    transform 150ms ease;
}
.trust-mark__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.85);
}
.trust-mark__icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.35;
}
.trust-mark__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.005em;
  text-transform: none;
}
.trust-mark:hover {
  color: var(--color-paper);
  transform: translateY(-1px);
}
.trust-mark:hover .trust-mark__icon {
  color: var(--color-paper);
}
.trust-mark:focus-visible {
  outline: 2px solid var(--color-paper);
  outline-offset: 4px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  /* Mobile: keep 3 marks (hide last 2). The dark stripe stays at full
   * viewport width — that's the whole point. */
  .trust-band {
    padding: 0.75rem 0.5rem;
  }
  .trust-band-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .trust-band-inner > li:nth-child(n + 4) {
    display: none;
  }
  .trust-mark {
    padding: 0.25rem 0.5rem;
    gap: 0.5rem;
  }
  .trust-mark__icon {
    width: 24px;
    height: 24px;
  }
  .trust-mark__icon .icon {
    width: 24px;
    height: 24px;
  }
  .trust-mark__label {
    font-size: 0.75rem;
    line-height: 1.25;
  }
}

/* ===== Peptides callout (prominent, marketing band) ===== */

.peptides-callout {
  width: 100%;
  background: linear-gradient(
    180deg,
    var(--color-bg-alt) 0%,
    var(--color-bg-alt) 100%
  );
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 4.5rem 1.5rem;
}
.peptides-callout-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.peptides-callout-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-clinical);
  margin: 0 0 1rem;
}
.peptides-callout h2 {
  font-family: var(--font);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.peptides-callout p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 0 1rem;
}
.peptides-callout-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-clinical);
}
.peptides-callout-meta dt {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.peptides-callout-meta dd {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}
.peptides-callout-meta dd:last-child {
  margin-bottom: 0;
}
.peptides-callout-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .peptides-callout {
    padding: 3rem 1.25rem;
  }
  .peptides-callout-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== Pilot programs (med list cards) ===== */

.pilot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-line);
  background: var(--color-line);
  margin-top: 2.5rem;
}
.pilot-grid > article {
  background: var(--color-surface);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pilot-grid h3 {
  margin: 0;
  font-family: var(--font);
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 500;
}
.pilot-grid .pilot-kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.25rem;
}
.pilot-grid .pilot-summary {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}
.pilot-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}
.pilot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
}
.pilot-grid ul li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--color-line);
  line-height: 1.4;
}
.pilot-grid ul li:last-child {
  border-bottom: none;
}
.pilot-grid ul li small {
  color: var(--color-muted);
  font-size: 0.75rem;
  display: block;
  margin-top: 0;
}
.pilot-grid .pilot-link {
  margin-top: auto;
  padding-top: 1rem;
}
@media (max-width: 768px) {
  /* !important so it beats per-instance inline grid-template-columns
     overrides on /peptides/ and /medications/ hubs (lines 131/162 of those
     pages). Without this, those sections stay 2- or 3-column on phones
     and headings overflow the viewport. */
  .pilot-grid {
    grid-template-columns: 1fr !important;
  }
}

/* legacy trust-strip styling kept as alias */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 1rem 0;
  margin: 2rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.trust-strip span:not(:last-child)::after {
  content: "·";
  margin-left: 1.25rem;
  color: var(--color-accent);
}

/* ===== Panel grid (existing pattern) ===== */

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-line);
  background: var(--color-line);
  margin-top: 2.5rem;
}

.panel-grid article,
.contact-card {
  background: var(--color-surface);
  padding: 1.75rem 1.5rem;
}

.panel-kicker {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.06em;
}

.panel-grid h2,
.panel-grid h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.panel-grid p,
.contact-card p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* ===== Process timeline (six-step) ===== */

.process-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
}
.process-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-line);
  align-items: baseline;
}
.process-list .step-num {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}
.process-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.3;
}
.process-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* ===== Role-clarity cards (4-card: doctor / pharmacist / patient / RonanRx) ===== */

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  margin-top: 2.5rem;
}
.role-grid > article {
  background: var(--color-surface);
  padding: 1.5rem;
}
.role-grid h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.role-grid p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

/* ===== Comparison grid ===== */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 1rem;
  font-family: var(--font);
}
.comparison-table th,
.comparison-table td {
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
  text-align: left;
}
.comparison-table thead th {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-text);
}
.comparison-table tbody tr:last-child td {
  border-bottom: 1px solid var(--color-text);
}
.comparison-table th[scope="row"] {
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
  padding-right: 1.5rem;
}
.comparison-table .col-ronanrx {
  background: var(--color-bg-alt);
}

/* ===== FAQ accordion (native details/summary, no JS) ===== */

.faq {
  margin-top: 2rem;
  border-top: 1px solid var(--color-line);
}
.faq details {
  border-bottom: 1px solid var(--color-line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: 300;
  line-height: 1;
  transition: transform var(--dur-base) var(--ease-out-quart);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > *:not(summary) {
  margin-bottom: 1.25rem;
  color: var(--color-muted);
  max-width: var(--max-prose);
}

/* ===== Compliance callout ===== */

.callout--compliance {
  border-left: 2px solid var(--color-clinical);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  background: var(--color-bg-alt);
  font-size: 1rem;
  color: var(--color-muted);
  font-family: var(--font);
}
.callout--compliance strong {
  color: var(--color-text);
  font-weight: 500;
}

/* The patient-specific Rx notice carries red as the visual signal of a legal/
   compliance-critical statement. Border + icon both use --color-danger. */
.callout--compliance.callout--rx {
  border-left-color: var(--color-danger);
  background: var(--color-danger-tint);
}
.callout--compliance .callout-title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}
.callout--compliance .callout-title.section-title--inline > .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

/* ===== Resource card grid ===== */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.resource-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 1.5rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.resource-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}
.resource-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}
.resource-card h3 a:hover {
  color: var(--color-link);
  text-decoration: underline;
}
.resource-card p {
  color: var(--color-muted);
  font-size: 1rem;
  margin: 0;
  line-height: 1.55;
}
.resource-card-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.25rem;
}

/* ===== Two-path block (doctor / patient routing) ===== */

.two-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  margin: 3rem 0 0;
}
.two-path > article {
  background: var(--color-surface);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.two-path h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}
.two-path p {
  color: var(--color-muted);
  margin: 0;
  font-size: 1rem;
}
.two-path .text-link {
  margin-top: 0.5rem;
}

/* ===== Form ===== */

.form-grid {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin-top: 32px;
}
.form-grid .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .form-row > div {
  min-width: 0;
}
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
}
.form-status[role="status"] {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 4px;
}
.form-status--error {
  background: var(--color-bg);
  border: 2px solid var(--color-danger);
}
.form-status--success {
  background: var(--color-bg);
  border: 2px solid var(--color-brand);
}
/* Status messages rise in when added (class is set by submit handler). */
.form-status--error,
.form-status--success {
  animation: rrx-rise var(--dur-base) var(--ease-out-expo) both;
}
.form-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-clinical);
  color: var(--color-surface);
  border: 1px solid var(--color-clinical);
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 16px;
  transition:
    background var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart),
    transform 80ms var(--ease-out-quart);
}
.form-submit:hover {
  background: var(--color-clinical-deep);
  border-color: var(--color-clinical-deep);
}
.form-submit:active {
  transform: translateY(1px);
}
.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* Busy state: label dims, inline spinner rotates to the right of the text.
   Label must be wrapped in <span class="form-submit__label"> in the markup. */
.form-submit[data-busy="true"] .form-submit__label {
  opacity: 0.55;
}
.form-submit[data-busy="true"]::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rrx-spin 720ms linear infinite;
}
@keyframes rrx-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Cold-chain process strip ===== */

.coldchain-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  margin-top: 2.5rem;
}
.coldchain-strip > article {
  background: var(--color-surface);
  padding: 1.5rem;
}
.coldchain-strip h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.coldchain-strip p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* ===== Status timeline (legacy) ===== */

/* ===== Footer ===== */

footer {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  background: var(--color-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(6, 1fr);
  gap: 2rem;
}
.footer-brand-col {
  grid-column: 1 / span 1;
}
.footer-tagline {
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 28ch;
}
.brand--footer {
  gap: 0.5rem;
}
.brand--footer .brand-mark {
  width: 1.75rem;
  height: 1.75rem;
}
.brand--footer .brand-logo {
  width: 9.25rem;
}
.brand--footer .brand-name {
  font-size: 1rem;
}
.brand--footer .brand-subtitle {
  font-size: 0.75rem;
  white-space: nowrap;
}
/* Footer brand stays inert visually — no hover decoration. */
.footer-col a.brand,
.footer-col a.brand:hover {
  text-decoration: none;
  color: var(--color-text);
}
.footer-col a.brand:hover .brand-name {
  color: var(--color-text);
}
.footer-col a.brand:hover .brand-subtitle {
  color: var(--color-accent);
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}
/* Collapsible footer columns use <details>/<summary> so mobile users get
 * native accordion toggling. Desktop overrides the details closed-state
 * hide so columns render identically to the static <div> markup that
 * preceded this. */
.footer-col--collapsible > summary::-webkit-details-marker {
  display: none;
}
.footer-col--collapsible > summary::marker {
  display: none;
}
@media (min-width: 769px) {
  .footer-col--collapsible:not([open]) > summary ~ * {
    display: block !important;
  }
  .footer-col--collapsible > summary {
    list-style: none;
    cursor: default;
    pointer-events: none;
  }
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col li {
  font-size: 0.75rem;
}
.footer-col a {
  color: var(--color-muted);
  text-decoration: none;
  line-height: 1.4;
}
.footer-col a:hover {
  color: var(--color-text);
  text-decoration: none;
}
.footer-rule {
  display: none;
}
.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text);
}
.footer-copy {
  margin: 0;
}
.footer-copy a {
  color: var(--color-text);
}

/* ===== Page-section helpers ===== */

.lead {
  color: var(--color-muted);
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  max-width: 60ch;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow > .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--color-ink-soft);
  opacity: 0.75;
  stroke-width: 1.4;
}

/* ===== Mobile (≤768px) ===== */

@media (max-width: 768px) {
  header nav.site-nav,
  header nav {
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    /* Desktop sets min-height: 4rem (64px) to keep the bar consistent across
     * widths. On mobile the natural floor is the 44px tap target, so the
     * desktop floor was leaving ~20px of dead vertical space. Let content
     * size the bar. */
    min-height: 0;
  }
  .nav-toggle {
    display: inline-flex;
    /* push hamburger + sign-in to the right edge as a cluster, brand stays left */
    margin-left: auto;
  }
  /* Sign-in collapses to icon-only on mobile so brand + signin + hamburger
   * all fit in a single row. The full-width "Sign in" pill was getting
   * bumped to its own row, breaking visual rhythm with the hamburger. */
  .nav-signin {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 4px;
    flex: 0 0 auto;
  }
  .nav-signin > span {
    display: none;
  }
  .nav-signin-icon {
    width: 16px;
    height: 16px;
  }
  .nav-primary {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    text-align: left;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--color-line);
    margin-top: 0.5rem;
    order: 99;
  }
  .nav-primary[data-collapsed="false"] {
    display: flex;
  }
  .nav-primary li {
    width: 100%;
  }
  .nav-primary a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 1rem;
  }

  /* Header is sticky, not fixed, so mobile pages do not need extra top
   * offset. The 48px pad was stacking with first-section hero spacing and
   * making the top-of-page nav read oversized before scroll. */
  main {
    padding-top: 0;
  }
  h1 {
    font-size: clamp(2.1rem, 7vw, 3.4rem);
  }
  h2 {
    font-size: 1.5rem;
  }
  .hero {
    padding-bottom: 2.5rem;
  }
  .hero.hero--with-bg {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 3rem;
    min-height: 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .hero-actions > .button {
    width: 100%;
  }

  .panel-grid,
  .role-grid,
  .coldchain-strip,
  .resource-grid,
  .two-path {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    /* Collapse to a single column of accordion rows on mobile. The brand
     * column stays full width on top; each link section becomes a
     * <details> row stacked below. */
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-brand-col {
    margin-bottom: 1rem;
  }
  .footer-col ul {
    gap: 0.5rem;
  }
  .footer-col--collapsible {
    border-top: 1px solid var(--color-line);
  }
  .footer-col--collapsible:last-of-type {
    border-bottom: 1px solid var(--color-line);
  }
  .footer-col--collapsible > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    margin: 0;
    min-height: 44px;
    /* override .footer-heading's bottom margin which would push the closed
     * accordion down */
  }
  .footer-col--collapsible > summary::after {
    content: "+";
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: var(--color-ink-muted);
  }
  .footer-col--collapsible[open] > summary::after {
    content: "−";
  }
  .footer-col--collapsible > ul {
    padding-bottom: 0.875rem;
  }
  .footer-meta {
    flex-direction: column;
    margin-top: 1.5rem;
  }
  .form-grid .form-row {
    grid-template-columns: 1fr;
  }
  .comparison-table {
    font-size: 0.75rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
  .archetype-three-up__card:hover,
  .archetype-three-up__card:focus-visible,
  .trust-mark:hover {
    transform: none;
  }
  .skeleton--shimmer {
    animation: none;
  }
}

@media print {
  header nav,
  footer,
  .l-band--cta {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  a {
    color: black;
    text-decoration: underline;
  }
}

/* =============================================================
   Design cleanup patterns (added 2026-05-04)
   Fixes the "blob of text" problem with visual rhythm patterns.
   ============================================================= */

/* ----- Pattern: stat row (number-led summary) ----- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.stat-row > div {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--color-line);
}
.stat-row > div:last-child {
  border-right: none;
}
.stat-row .stat-num {
  display: block;
  font-family: var(--font);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.stat-row .stat-num small {
  font-size: 0.55em;
  color: var(--color-muted);
  margin-left: 0.2em;
  font-weight: 400;
}
.stat-row .stat-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.25rem;
}
.stat-row .stat-sub {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 768px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
  .stat-row > div {
    border-right: none;
    border-bottom: 1px solid var(--color-line);
  }
  .stat-row > div:last-child {
    border-bottom: none;
  }
}

/* ----- Pattern: med chip rows (compact, scannable) ----- */
.med-chips {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.med-chips li {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text);
  line-height: 1.3;
  white-space: nowrap;
  transition:
    border-color 120ms ease,
    color 120ms ease;
  cursor: default;
  position: relative;
}
.med-chips li[title]:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}
.med-chips li small {
  display: none;
}
.med-chips li[data-note]::after {
  content: "·";
  margin-left: 0.5rem;
  color: var(--color-accent);
  font-weight: 600;
}
.med-chips--accent-clinical li {
  border-color: rgba(15, 62, 23, 0.3);
}
.med-chips--accent-copper li {
  border-color: rgba(15, 62, 23, 0.3);
}
.med-chips--accent-graphite li {
  border-color: rgba(12, 47, 16, 0.18);
}

/* Override .pilot-grid ul → render as chips when class added */
.pilot-grid .med-chips {
  margin-top: 1rem;
}
.pilot-grid .med-chips li {
  border-bottom: 1px solid var(--color-line); /* override the default li ul border */
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

/* On narrow screens, let long chip labels wrap their internal text instead of
   pushing the page wider than the viewport. Container already wraps chips
   between rows via flex-wrap; this lets each chip wrap text inside the pill. */
@media (max-width: 480px) {
  .med-chips li {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ----- Pattern: split band (prose left + side panel right) ----- */
.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.split-band-prose {
  max-width: 56ch;
}
.split-band-prose > h2:first-child {
  margin-top: 0;
}
.split-band-prose > p:last-child {
  margin-bottom: 0;
}
.split-band-side {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-clinical);
  padding: 1.75rem 1.75rem;
  align-self: start;
}
.split-band-side dl {
  margin: 0;
}
.split-band-side dt {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.25rem;
}
.split-band-side dd {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
  font-family: var(--font);
}
.split-band-side dd:last-child {
  margin-bottom: 0;
}
.split-band-side h3 {
  font-family: var(--font);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  font-weight: 500;
}
@media (max-width: 900px) {
  .split-band {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-band-side {
    border-left: none;
    border-top: 3px solid var(--color-clinical);
  }
}

/* ----- Pattern: pull-quote (typographic emphasis) ----- */
.pull-quote {
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.005em;
  margin: 2.5rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--color-clinical);
  max-width: 50ch;
}
.pull-quote--centered {
  border-left: none;
  padding: 0;
  text-align: center;
  margin: 3rem auto;
  max-width: 38ch;
}

/* ----- Pattern: section accents (category-coded left border) ----- */
.section-accent {
  border-left: 3px solid var(--color-line);
  padding-left: 1.25rem;
  margin: 0;
}
.section-accent--clinical {
  border-left-color: var(--color-clinical);
}
.section-accent--copper {
  border-left-color: var(--color-copper);
}
.section-accent--graphite {
  border-left-color: var(--color-text);
}

/* ----- Pattern: section glyph (small SVG accent) ----- */
.section-glyph {
  width: 32px;
  height: 32px;
  color: var(--color-clinical);
  margin-bottom: 1rem;
  display: block;
}
.section-glyph svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ----- Pattern: process timeline as SVG-styled diagram ----- */
.process-svg {
  margin: 2.5rem 0 0;
  display: grid;
  gap: 0;
  position: relative;
}
.process-svg ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.process-svg ol::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 8.33%;
  right: 8.33%;
  height: 1px;
  background: var(--color-line);
  z-index: 0;
}
.process-svg li {
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.process-svg .step-dot {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: 500;
}
.process-svg .step-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.process-svg .step-desc {
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 900px) {
  .process-svg ol {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-svg ol::before {
    display: none;
  }
  .process-svg li {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-line);
  }
  .process-svg li:last-child {
    border-bottom: none;
  }
  .process-svg .step-dot {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
  }
  .process-svg li > div {
    flex: 1;
  }
}

/* ----- Pattern: 3-card CTA grid (substance detail pages) ----- */
.three-cta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  margin-top: 2rem;
}
.three-cta > article {
  background: var(--color-surface);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.three-cta h3 {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 500;
}
.three-cta .three-cta-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.25rem;
}
.three-cta p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.5;
}
.three-cta .three-cta-action {
  margin-top: auto;
  padding-top: 1rem;
}
@media (max-width: 768px) {
  .three-cta {
    grid-template-columns: 1fr;
  }
}

/* ----- Substance detail page polish ----- */
.substance-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.substance-meta-grid > div {
  padding: 0;
}
.substance-meta-grid dt {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.25rem;
}
.substance-meta-grid dd {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
  font-family: var(--font);
}

/* ----- Mechanism at-a-glance horizontal strip (Pass 2 redesign) ----- *
 * Replaces the old 2x2 dl in the right sidebar with a 1-row stat strip
 * spanning above mechanism prose. Each item gets a thin top accent rule. */
.glance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.glance-strip__item {
  padding: 1rem 1.25rem;
  border-left: 1px solid var(--color-line);
  border-top: 3px solid var(--color-clinical);
  margin-top: -1px;
}
.glance-strip__item:first-child {
  border-left: 0;
}
.glance-strip dt {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.glance-strip dd {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
}
@media (max-width: 720px) {
  /* Mobile: stack as 1-column rows. Long values like "Norepinephrine-dopamine
   * reuptake inhibitor + opioid antagonist" need width to wrap to 2-3 lines
   * instead of 6 lines in a 107px square. Reads as a vertical at-a-glance
   * list rather than cramped tile grid. */
  .glance-strip {
    grid-template-columns: 1fr;
  }
  .glance-strip__item {
    border-left: 0;
    border-top: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-line);
  }
  .glance-strip__item:first-child {
    border-top: 2px solid var(--color-clinical);
  }
  .glance-strip__item:last-child {
    border-bottom: 0;
  }
  .glance-strip dt {
    margin-bottom: 0.25rem;
  }
}

/* ----- Static evidence-tier landing pages (Pass 2 deferred work) ----- */
.tier-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.tier-page__card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-clinical);
  padding: 1.25rem 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}
.tier-page__card:hover,
.tier-page__card:focus-visible {
  border-left-color: var(--color-accent);
  transform: translateY(-1px);
  outline: none;
}
.tier-page__card h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
}
.tier-page__card-cat {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}
.tier-page__card-sub {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-text);
  margin: 0;
}

/* ----- Formulations table per-row form icon (Pass 2 redesign) ----- */
.formulation-form-cell {
  /* Keep icon + first word together but allow long names like
   * "Oral capsule (separated components, twice-daily)" to wrap on mobile.
   * nowrap was forcing horizontal page scroll on narrow viewports. */
  white-space: normal;
}
.formulation-form-name {
  display: inline;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.formulation-form-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  vertical-align: -4px;
  color: var(--color-clinical);
}
.formulation-form-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.formulation-form-icon:empty {
  display: none;
}

/* ----- Vertical research timeline (Pass 2 redesign) ----- *
 * Year dot column on left, event prose on right; vertical rule connects items. */
.timeline {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  /* Rule passes through center of dot column: 4.5rem + 0.75 gap + 0.75 (half of 1.5rem dot col) = 6rem */
  left: 6rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  margin-left: -1px;
  background: var(--color-line);
}
.timeline__item {
  display: grid;
  grid-template-columns: 4.5rem 1.5rem 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  position: relative;
}
.timeline__year {
  grid-column: 1;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ink-soft);
  text-align: right;
  white-space: nowrap;
  line-height: 1.55;
  padding-top: 1px;
}
.timeline__dot {
  grid-column: 2;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-clinical);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-clinical);
  justify-self: center;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}
.timeline__event {
  grid-column: 3;
}
.timeline__event {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
}
.timeline__event a.cite {
  font-size: 0.78em;
}
@media (max-width: 720px) {
  .timeline::before {
    left: 0.5rem;
    top: 1.6rem;
  }
  .timeline__item {
    grid-template-columns: 1.25rem 1fr;
    grid-template-rows: auto auto;
    row-gap: 0.25rem;
    column-gap: 0.75rem;
  }
  .timeline__dot {
    grid-row: 1;
    grid-column: 1;
    margin-top: 0.5rem;
  }
  .timeline__year {
    grid-row: 1;
    grid-column: 2;
    text-align: left;
  }
  .timeline__event {
    grid-row: 2;
    grid-column: 2;
  }
}

/* ----- Compounded-use section chemistry card (Pass 2 redesign) ----- */
.compounded-use-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2.5rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}
.compounded-use-prose {
  max-width: 65ch;
}
.compounded-use-prose > h2:first-of-type {
  margin-top: 0;
}
.chemistry-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-clinical);
  padding: 1.5rem 1.5rem 1.25rem;
  position: sticky;
  top: 96px;
}
.chemistry-card__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 0 0 1rem;
}
.chemistry-card__molecule {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto 1rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  padding: 0.5rem;
}
.chemistry-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.chemistry-card dl > div {
  margin: 0;
}
.chemistry-card dt {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.25rem;
}
.chemistry-card dd {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .compounded-use-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .chemistry-card {
    position: static;
  }
  /* Drop the white inner frame and let the molecule fill the card width.
     The stored image is wide-aspect (1024x432); inside a square 160px
     frame it floats with ~80px of dead white. Letting it size naturally
     turns the card from 'half-empty' to 'real artifact'. */
  .chemistry-card__molecule {
    background: transparent;
    border: 0;
    padding: 0;
    max-width: 100%;
    margin: 0 auto 1rem;
  }
}
/* Tighten subscript metrics inside the chemistry card so the formula
   renders compactly even when font-mono is wide. */
.chemistry-card sub,
.chemistry-card sup {
  font-size: 0.68em;
  font-family: var(--font, Georgia, serif);
}
.chemistry-card sub {
  vertical-align: -0.25em;
}
.chemistry-card sup {
  vertical-align: 0.5em;
}

/* ----- Related substance chips become real links ----- */
.med-chips a {
  text-decoration: none;
  color: inherit;
  display: block;
  margin: -0.5rem -0.75rem;
  padding: 0.5rem 0.75rem;
}
.med-chips li:has(a):hover {
  border-color: var(--color-text);
}

/* ----- Substance hero with right-justified molecule diagram -----
   Desktop: 2-column grid; left column stacks eyebrow / h1 / copy / CTAs,
   right column holds the figure spanning the full height of the text block.
   Mobile: single column with the figure reordered to sit between the
   eyebrow and the H1 (per design call — the molecule belongs visually next
   to the section context, not after the CTA). */
.hero--substance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow figure"
    "title   figure"
    "copy    figure"
    "actions figure";
  column-gap: 3rem;
  align-items: start;
}
.hero--substance > .eyebrow {
  grid-area: eyebrow;
}
.hero--substance > h1 {
  grid-area: title;
}
.hero--substance > .hero-copy {
  grid-area: copy;
}
.hero--substance > .hero-actions {
  grid-area: actions;
}
.hero--substance > .hero-molecule {
  grid-area: figure;
  align-self: center;
  justify-self: end;
}

.hero-molecule {
  margin: 0;
  display: flex;
  align-items: flex-end;
}
/* Desktop molecule img is 30% larger per the no-text hero design pass.
 * 380px → 494px, 320px max-height → 416px. */
.hero-molecule img {
  display: block;
  height: auto;
  width: 496px;
  max-height: 416px;
  object-fit: contain;
}
.hero-molecule--chain img {
  width: 780px;
  max-height: 364px;
}
.hero-molecule figcaption {
  /* figcaption removed from template in the no-text hero pass; rule kept
   * as a guard in case any legacy markup still emits one. */
  display: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: right;
  padding-right: 0.25rem;
}
@media (max-width: 1100px) {
  /* Scaled +30% for the no-text hero pass. 320px → 416px, 480px → 624px. */
  .hero-molecule img {
    width: 416px;
  }
  .hero-molecule--chain img {
    width: 624px;
  }
}
@media (max-width: 900px) {
  /* Mobile reading order: eyebrow → molecule → H1 → subtitle → CTA actions.
     The molecule sits between the breadcrumb context and the H1 — visually
     anchors the substance before the user reads the name, and saves the
     primary CTA from being below the fold. Caption above molecule still
     labels what the structure is. */
  .hero--substance {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "figure"
      "title"
      "copy"
      "actions";
    row-gap: 1rem;
  }
  .hero--substance > .hero-molecule {
    justify-self: center;
    align-items: center;
    margin: 0.25rem 0 0.5rem;
  }
  .hero-molecule img {
    width: 100%;
    max-width: 240px;
  }
  .hero-molecule--chain img {
    max-width: 320px;
  }
  .hero-molecule figcaption {
    text-align: center;
    padding-right: 0;
  }
}

/* The old "re-skin the live trust band" rule was deleted with the
 * trust-mark redesign — it was forcing the old uppercase-text styling
 * on the new icon-above-label markup. */

/* ======================================================================
   Substance browse chart (/peptides/ and /medications/ hubs)
   Spreadsheet pattern with native checkbox chips, real button sort headers,
   editorial museum-catalog visual treatment, mobile card-row.
   ====================================================================== */

.substance-chart {
  max-width: var(--max-width);
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}
.substance-chart > .section-eyebrow {
  margin-bottom: 1.25rem;
}

/* Hide JS-only chrome until JS attaches (no-JS path: table only) */
[data-jsonly] {
  display: none;
}
.js-ready [data-jsonly] {
  display: revert;
}

/* Search box ---------------------------------------------------------- */
.substance-chart-search {
  display: block;
  margin-bottom: 1rem;
}
.js-ready .substance-chart-search {
  display: block;
}
.substance-chart-search-input {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  color: var(--color-text);
  transition: border-color 120ms ease;
}
.substance-chart-search-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Filter chip groups -------------------------------------------------- */
.substance-chart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-line);
}
.js-ready .substance-chart-filters {
  display: flex;
}
.filter-chip-group {
  border: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}
.filter-chip-group legend {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  padding: 0;
}
.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.filter-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.filter-chip span {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text);
  line-height: 1.3;
  white-space: nowrap;
  transition:
    border-color 120ms ease,
    color 120ms ease,
    background 120ms ease;
  min-height: 32px;
}
.filter-chip input[type="checkbox"]:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.filter-chip input[type="checkbox"]:checked + span {
  border-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 500;
}
.filter-chip:hover span {
  border-color: var(--color-text);
}

/* Counter row + reset + mobile sort ---------------------------------- */
.substance-chart-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.js-ready .substance-chart-controls {
  display: flex;
}
.substance-chart-counter {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
}
.substance-chart-counter span[data-chart-counter] {
  font-weight: 600;
  color: var(--color-text);
}
.substance-chart-reset {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--color-muted);
  padding: 0 0 1px;
  cursor: pointer;
  letter-spacing: 0;
}
.substance-chart-reset:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}
.substance-chart-mobile-sort {
  display: none; /* desktop hides; mobile media query shows */
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-left: auto;
}
.substance-chart-mobile-sort select {
  margin-left: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  color: var(--color-text);
}

/* Spreadsheet table -------------------------------------------------- */
.substance-chart-table-wrap {
  margin-top: 0.5rem;
}
.substance-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font);
}
.substance-table thead th {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: bottom;
}
.substance-table th .th-sort {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.substance-table th .th-sort:hover {
  color: var(--color-text);
}
.substance-table th .th-sort:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.substance-table th[aria-sort="ascending"] .th-sort,
.substance-table th[aria-sort="descending"] .th-sort {
  color: var(--color-accent);
}
.substance-table th .sort-caret {
  font-size: 0.7em;
  opacity: 0;
}
.substance-table th[aria-sort="ascending"] .sort-caret,
.substance-table th[aria-sort="descending"] .sort-caret {
  opacity: 1;
}
.substance-table th[aria-sort="descending"] .sort-caret::before {
  content: "▲";
  position: absolute;
  background: inherit;
}
.substance-table tbody tr {
  border-bottom: 1px solid var(--color-line);
  transition: background 120ms ease;
}
.substance-table tbody tr:hover {
  background: rgba(12, 47, 16, 0.04);
}
.substance-table tbody td {
  padding: 0.75rem 0.75rem;
  font-size: 1rem;
  vertical-align: middle;
  color: var(--color-text);
}
.substance-table .col-name {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
}
.substance-table .col-name a {
  color: var(--color-text);
  text-decoration: none;
}
.substance-table .col-name a:hover {
  color: var(--color-accent);
}
.substance-table .col-class,
.substance-table .col-used-for {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.4;
}
.substance-table .col-forms {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  white-space: nowrap;
}
.substance-table .col-status {
  white-space: nowrap;
}
.substance-table .col-molecule {
  width: 56px;
  text-align: right;
}
.substance-table .col-molecule img {
  display: inline-block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Empty state --------------------------------------------------------- */
.substance-chart-empty {
  margin: 32px 0;
  padding: 32px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  width: 100%;
  max-width: none;
  justify-items: center;
  text-align: center;
}
.substance-chart-empty .substance-chart-reset-link {
  justify-self: center;
}

/* Disclaimer at bottom of chart -------------------------------------- */
.hub-disclaimer {
  margin: 1.5rem 0 0;
  padding: 1rem 0;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.55;
}

/* Hub restoration: non-grid category bands using the locked section rhythm. */
.hub-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}
.hub-pill-row:last-child {
  margin-bottom: 0;
}
.hub-collection {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.hub-collection__intro {
  grid-column: span 5;
  display: grid;
  gap: 24px;
}
.hub-collection__intro > * {
  margin: 0;
}
.hub-collection__groups {
  grid-column: span 7;
  display: grid;
  gap: 24px;
}
.hub-collection__groups--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hub-collection__groups--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hub-list-card {
  display: grid;
  gap: 16px;
}
.hub-list-card__eyebrow,
.hub-state-card__label {
  margin: 0;
}
.hub-list-card__title,
.hub-state-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.hub-list-card__copy,
.hub-state-card__copy,
.hub-note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink-muted);
}
.hub-note-block {
  margin-top: 32px;
}
.hub-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hub-link-list li {
  padding: 12px 0;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
}
.hub-link-list li:last-child {
  padding-bottom: 0;
}
.hub-link-list a {
  color: inherit;
  text-decoration: none;
}
.hub-link-list a:hover,
.hub-link-list a:focus-visible {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hub-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.hub-metric-card {
  margin: 0;
}
.hub-metric-card > * {
  margin: 0;
}
.hub-metric-card .stat-num {
  margin-top: 8px;
}
.hub-metric-card .stat-sub {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink-muted);
}
.hub-state-card {
  display: grid;
  gap: 16px;
}
.hub-collection > .hub-state-card {
  grid-column: span 7;
}
.hub-state-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}
.hub-state-card div {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}
.hub-state-card dt,
.hub-state-card dd {
  margin: 0;
}
.hub-state-card dd {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink-muted);
}
@media (max-width: 1100px) {
  .hub-collection {
    grid-template-columns: 1fr;
  }
  .hub-collection__intro,
  .hub-collection__groups,
  .hub-collection > .hub-state-card {
    grid-column: auto;
  }
}
@media (max-width: 900px) {
  .hub-collection__groups--2,
  .hub-collection__groups--3,
  .hub-metric-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile (<= 768px): card-row pattern -------------------------------- */
@media (max-width: 768px) {
  /* Stack filter groups vertically; each fieldset takes full width.
     Within each, chips scroll horizontally inside the chip-row (NOT the page).
     This prevents the page-wide horizontal overflow that flex-wrap caused. */
  .substance-chart-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .filter-chip-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .filter-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .filter-chip {
    flex: 0 0 auto;
  }
  .filter-chip span {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
  }

  /* Hide desktop sort headers on mobile, show the mobile sort select */
  .substance-table .th-sort .sort-caret {
    display: none;
  }
  .substance-chart-mobile-sort {
    display: inline-flex;
    align-items: center;
  }

  /* Reshape rows as cards */
  .substance-table thead {
    display: none;
  }
  .substance-table,
  .substance-table tbody,
  .substance-table tr,
  .substance-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .substance-table tbody tr {
    position: relative;
    padding: 1rem 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-line);
  }
  .substance-table .col-name {
    font-size: 1rem;
    padding: 0 4rem 0.5rem 0; /* leave room for molecule top-right */
  }
  .substance-table .col-class {
    padding: 0 0 0.25rem;
  }
  .substance-table .col-used-for {
    padding: 0 0 0.5rem;
    font-style: italic;
  }
  .substance-table .col-forms {
    padding: 0 0 0.5rem;
  }
  .substance-table .col-status {
    padding: 0 0 0;
  }
  .substance-table .col-molecule {
    position: absolute;
    top: 1rem;
    right: 0.5rem;
    width: 48px;
    text-align: right;
    padding: 0;
  }
  .substance-table .col-molecule img {
    width: 48px;
    height: 48px;
  }
  .substance-table tbody tr:hover {
    background: transparent;
  }
}

/* Utility: visually-hidden — content visible to screen readers only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Substance monograph (full brief) ===== */
.evidence-tier-row {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--color-ink-soft);
}
.evidence-tier-row .last-reviewed {
  color: var(--color-ink-muted);
  margin-left: 0.5rem;
  font-size: 0.85em;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  margin: 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid currentColor;
  border-radius: 4px;
  vertical-align: 0.05em;
  line-height: 1.5;
  text-decoration: none;
  position: relative;
}
.tier-badge::after {
  content: "›";
  display: inline-block;
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1;
  margin-top: -2px;
  opacity: 0.65;
  transition:
    transform 150ms ease,
    opacity 150ms ease;
}
a.tier-badge:hover {
  background: rgba(15, 62, 23, 0.06);
  text-decoration: none;
}
a.tier-badge:hover::after {
  transform: translateX(2px);
  opacity: 1;
}
a.tier-badge:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
/* Touch target: invisible 44x44 hit area extending past visual bounds.
   Lets us keep the visual badge small while satisfying tap-area minimums. */
a.tier-badge::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 44px);
  min-height: 44px;
  transform: translate(-50%, -50%);
}
@media (max-width: 720px) {
  .tier-badge {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}
.tier-badge--fda_approved {
  color: var(--color-ink);
}
.tier-badge--well_studied {
  color: var(--color-brand);
}
.tier-badge--emerging {
  color: var(--color-brand);
}
.tier-badge--preclinical {
  color: var(--color-ink-muted);
}

/* Quick Facts: grid alignment so all dt/dd cells align consistently
   regardless of label length. Was a flex layout where each row's dt grew
   to fit, making rows look misaligned. */
.quick-facts {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: minmax(min-content, max-content) 1fr;
  column-gap: 1.25rem;
}
.quick-facts > div {
  display: contents;
}
.quick-facts dt,
.quick-facts dd {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-line);
  margin: 0;
}
.quick-facts dt {
  font-weight: 600;
  color: var(--color-ink-muted);
  white-space: nowrap;
}
.quick-facts dd {
  color: var(--color-text);
}
.quick-facts > div:last-child > dt,
.quick-facts > div:last-child > dd {
  border-bottom: 0;
}

@media (max-width: 640px) {
  /* Stack label above value with full width to wrap into. */
  .quick-facts {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .quick-facts > div {
    display: contents;
  }
  .quick-facts dt {
    padding: 0.75rem 0 0;
    border-bottom: 0;
    white-space: normal;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-ink-soft);
  }
  .quick-facts dd {
    padding: 0 0 0.75rem;
  }
  /* Soft 3-item rhythm: separator above every third item (items 4, 7, 10...).
   * Targets the wrapping <div> (display:contents doesn't change DOM hierarchy,
   * only render hierarchy, so nth-child still operates on the wrapping divs).
   * Stays subtle if facts reorder; reads as a scannable pause rather than
   * a hard schema break. */
  .quick-facts > div:nth-child(3n + 1):not(:first-child) > dt {
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-line);
  }
}

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1rem;
  line-height: 1.5;
}
.evidence-table th,
.evidence-table td {
  border: 1px solid var(--color-line);
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}
.evidence-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.evidence-table tbody tr:nth-child(even) {
  background: rgba(246, 242, 234, 0.55);
}

@media (max-width: 640px) {
  /* Stacked-card layout for small viewports.
     Each <td> needs a data-label="…" attribute (set in the template) so the
     label/value pair reads naturally. Header row is hidden. */
  .evidence-table,
  .evidence-table thead,
  .evidence-table tbody,
  .evidence-table tr,
  .evidence-table td {
    display: block;
    width: 100%;
  }
  .evidence-table thead {
    display: none;
  }
  .evidence-table tr {
    border: 1px solid var(--color-line);
    border-radius: 1px;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-paper);
  }
  .evidence-table tbody tr:nth-child(even) {
    background: var(--color-bg-alt);
  }
  .evidence-table td {
    border: 0;
    padding: 0.25rem 0;
  }
  .evidence-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-ink-soft);
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  .evidence-table td:empty,
  .evidence-table td:not([data-label])::before {
    display: none;
  }
}

.clinical-contexts {
  display: grid;
  gap: 2rem;
}
.clinical-context {
  padding: 1.5rem 1.75rem;
  background: var(--color-paper);
  border-left: 3px solid var(--color-line);
}
.clinical-context h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.clinical-context .framing {
  color: var(--color-ink-muted);
  margin: 0 0 0.5rem;
}
.clinical-context .branded {
  font-size: 0.75rem;
  color: var(--color-ink-muted);
  margin-top: 0.5rem;
}

.search-basis {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-brand);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 1rem;
}
.search-basis p {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.search-basis p:last-child {
  margin: 0;
}
.search-basis-meta {
  color: var(--color-ink-muted);
  font-size: 0.85em;
}

.faq-list details {
  border-bottom: 1px solid var(--color-line);
  padding: 0.75rem 0;
}
.faq-list details:last-child {
  border-bottom: 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.25rem 0;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::before {
  content: "+";
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--color-brand);
  font-weight: 400;
}
.faq-list details[open] summary::before {
  content: "−";
}
.faq-list details p {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}

.pdf-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
}
@media (min-width: 720px) {
  .pdf-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .pdf-cta > div {
    max-width: 70%;
  }
}
.pdf-cta h2 {
  margin-top: 0.25rem;
}
.pdf-cta .button {
  white-space: nowrap;
}

.references-list {
  font-size: 0.75rem;
  line-height: 1.42;
  padding-left: 1.25rem;
  font-feature-settings: "tnum" 1;
}
.references-list li {
  margin-bottom: 0.5rem;
  scroll-margin-top: 96px;
  break-inside: avoid;
}
/* :target highlight is handled site-wide by the rrx-target-pulse keyframe
   on :target. Avoid a resting background here so the pulse fades cleanly
   to transparent instead of snapping back to a static color. */
.references-list .ref-key {
  color: var(--color-ink-muted);
  font-style: italic;
  margin-right: 0.25rem;
  display: none;
}
.references-list .claim-excerpt {
  color: var(--color-ink-muted);
  font-style: italic;
}
/* Long URLs (FDA accessdata, etc.) need to break inside refs to avoid
 * forcing horizontal page scroll on mobile. */
.references-list a {
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media (min-width: 1024px) {
  .references-list {
    column-count: 2;
    column-gap: 1.75rem;
  }
}

/* References collapse: first 5 always visible, items 6+ inside a
 * single <ol> with all 22 refs, and refs 6+ are hidden by default via
 * .references-list__hidden. A button below toggles a wrapper attribute
 * that flips the visibility. This keeps the 2-column flow continuous
 * (column-count: 2 on desktop) instead of having two separate ol blocks
 * with the button cut between them.
 *
 * The container `.references-wrap` carries data-refs-expanded; the button
 * sits below the ol. When data-refs-expanded="true" the hidden lis show
 * AND the ol re-balances its columns to include them. */
.references-wrap {
  display: block;
}
.references-list__hidden {
  display: none;
}
.references-wrap[data-refs-expanded="true"] .references-list__hidden {
  display: list-item;
  animation: rrx-rise var(--dur-base) var(--ease-out-quart) both;
}

.refs-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  margin: 1.5rem auto 0;
  border: 1.5px solid var(--color-clinical);
  border-radius: 999px;
  background: var(--color-clinical);
  color: var(--color-paper);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  user-select: none;
  min-height: 40px;
  box-shadow: 0 2px 0 rgba(15, 62, 23, 0.18);
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}
/* Center the button below the ol on all viewports. The ol can be a
 * 2-column block on desktop; the button is a separate block element. */
.refs-more-toggle {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}
.refs-more__chev {
  display: inline-block;
  font-size: 0.85em;
  line-height: 1;
  transition: transform 200ms ease;
  margin-left: 0.5rem;
}
.refs-more-toggle:hover {
  background: var(--color-ink);
  box-shadow: 0 3px 0 rgba(15, 62, 23, 0.22);
  transform: translateY(-1px);
}
.refs-more-toggle:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 rgba(15, 62, 23, 0.18);
}
.refs-more-toggle:focus-visible {
  outline: 3px solid rgba(15, 62, 23, 0.35);
  outline-offset: 2px;
}
.references-wrap[data-refs-expanded="true"] .refs-more-toggle {
  background: transparent;
  color: var(--color-ink-soft);
  border-color: var(--color-line);
  box-shadow: none;
  font-weight: 500;
}
.references-wrap[data-refs-expanded="true"] .refs-more-toggle .refs-more__chev {
  transform: rotate(180deg);
}
/* Label swap: closed vs open */
.refs-more__label--open {
  display: none;
}
.references-wrap[data-refs-expanded="true"]
  .refs-more-toggle
  .refs-more__label--closed {
  display: none;
}
.references-wrap[data-refs-expanded="true"]
  .refs-more-toggle
  .refs-more__label--open {
  display: inline;
}
@media (max-width: 720px) {
  .refs-more-toggle {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    min-height: 44px;
  }
}

.cite {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 1;
  margin-left: 0.1em;
  font-feature-settings: "tnum" 1;
  /* Long cite strips (14+ refs) need to break across lines on mobile. */
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cite a {
  color: var(--color-brand);
  text-decoration: none;
  padding: 0 0.15em;
  border-radius: 1px;
}
.cite a + a::before {
  content: "·";
  color: var(--color-ink-muted);
  margin: 0 0.1em;
  font-weight: 400;
}
.cite a:hover {
  text-decoration: underline;
}
.cite a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}

/* Anchor scroll-margin so citation clicks land cleanly under the sticky nav. */
[id]:target {
  scroll-margin-top: 96px;
}
.section-title {
  scroll-margin-top: 96px;
}

.callout-title {
  margin-top: 0;
}

/* ===== Section H2 with icon (substance pages + future shared use) ===== */
/* Default H2: standalone heading, no icon. The icon lives in the eyebrow above. */
.section-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* Inline-icon variant: the rare H2 that keeps the icon adjacent (compliance callout). */
.section-title--inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.section-title--inline > .icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--color-clinical);
  stroke-width: 1.4;
}
.section-title--inline > span {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 600px) {
  .section-title--inline > .icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}
.callout-title.section-title--inline > .icon {
  color: var(--color-danger);
}

/* ===== Mobile-only sticky jump bar (Mobile pass) =====
 * Horizontal scrollable chip strip. Hidden on desktop where the right
 * rail's ToC handles wayfinding. Sticks to top once user scrolls past
 * the hero. JS in substance-toc.js highlights active chip + auto-scrolls
 * the strip to keep it visible. */
.mobile-jump {
  display: none;
}
@media (max-width: 1023px) {
  .mobile-jump {
    display: block;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    margin: 0;
    padding: 0.5rem 0;
  }
  .mobile-jump ul {
    list-style: none;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .mobile-jump ul::-webkit-scrollbar {
    display: none;
  }
  .mobile-jump li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .mobile-jump a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-ink-soft);
    text-decoration: none;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: var(--color-surface);
    white-space: nowrap;
    transition:
      background 150ms ease,
      color 150ms ease,
      border-color 150ms ease;
  }
  .mobile-jump a:hover {
    color: var(--color-text);
  }
  .mobile-jump a:focus-visible {
    outline: 2px solid var(--color-clinical);
    outline-offset: 2px;
  }
  .mobile-jump a.is-active {
    color: var(--color-paper);
    background: var(--color-clinical);
    border-color: var(--color-clinical);
  }
  /* Anchor scroll-margin: account for ~50px sticky bar + global nav offset */
  .rx-monograph-main h2[id],
  .rx-monograph-main [id]:target {
    scroll-margin-top: 64px;
  }
}

/* ===== Substance page layout: LEFT rail + main (Wikipedia/Notion pattern) =====
 * Rail lives on the left at >=1024px. Collapsible via header button; state
 * persists in localStorage. On mobile the rail's children flow inline above
 * the main body. */
.rx-monograph-layout {
  display: block; /* mobile: stacked */
}

@media (min-width: 1024px) {
  .rx-monograph-layout {
    display: grid;
    grid-template-columns: minmax(180px, 200px) minmax(0, 1fr);
    column-gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    transition: grid-template-columns 200ms ease;
  }
  /* Collapsed state: rail shrinks to a thin reopen-button column. */
  .rx-monograph-layout:has(.rx-rail[data-collapsed="true"]) {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 1.25rem;
  }
  /* Inside the grid, .l-band sections drop their side padding/background — the
     grid is the layout frame, not the bands. */
  .rx-monograph-main .l-band {
    background: transparent;
    padding: 2.25rem 0;
  }
  .rx-monograph-main .l-band--surface,
  .rx-monograph-main .l-band--alt {
    background: transparent;
  }
  .rx-monograph-main .l-band > .l-content {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .rx-monograph-main .l-band + .l-band {
    border-top: 1px solid var(--color-rule);
  }
}

/* ===== Left rail ===== */
.rx-rail {
  display: contents; /* mobile: children stack into the layout above */
}
.rx-rail__reopen {
  display: none;
}

@media (min-width: 1024px) {
  .rx-rail {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 2rem;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 2.25rem 0 4rem;
    font-size: 0.75rem;
    border-right: 1px solid var(--color-line);
    padding-right: 1.25rem;
  }
  /* Header row: compound monogram + collapse toggle */
  .rx-rail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .rx-rail__monogram {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-ink-soft);
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
    /* Allow compound names like "Naltrexone-Bupropion" (200px rail) to wrap
     * onto a second line at the hyphen instead of being clipped. */
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
  .rx-rail__collapse {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    cursor: pointer;
    color: var(--color-ink-soft);
    transition:
      background 150ms ease,
      color 150ms ease,
      border-color 150ms ease;
  }
  .rx-rail__collapse:hover {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-clinical);
  }
  .rx-rail__collapse:focus-visible {
    outline: 2px solid var(--color-clinical);
    outline-offset: 2px;
  }
  .rx-rail__collapse .icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.75;
  }

  /* Collapsed state: hide body + header, show reopen button only */
  .rx-rail[data-collapsed="true"] {
    border-right: none;
    padding-right: 0;
    overflow: visible;
  }
  .rx-rail[data-collapsed="true"] .rx-rail__header,
  .rx-rail[data-collapsed="true"] .rx-rail__body {
    display: none;
  }
  .rx-rail[data-collapsed="true"] .rx-rail__reopen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 40px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    cursor: pointer;
    color: var(--color-ink-soft);
    transition:
      background 150ms ease,
      color 150ms ease,
      border-color 150ms ease;
  }
  .rx-rail[data-collapsed="true"] .rx-rail__reopen:hover {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-clinical);
  }
  .rx-rail[data-collapsed="true"] .rx-rail__reopen:focus-visible {
    outline: 2px solid var(--color-clinical);
    outline-offset: 2px;
  }
  .rx-rail[data-collapsed="true"] .rx-rail__reopen .icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.75;
  }

  .rx-rail__body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
}

/* Mobile: render children inline above the main body. Hide the desktop-only
 * collapse controls + the monogram (the H1 already gives that context). */
@media (max-width: 1023px) {
  .rx-rail {
    display: block;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
  }
  .rx-rail__header,
  .rx-rail__reopen {
    display: none;
  }
}

/* PDF card — compact single-line layout. Lives at bottom of rail. */
.rx-rail__pdf {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0.75rem;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: border-color 150ms ease;
}
.rx-rail__pdf:hover {
  border-color: var(--color-clinical);
}
.rx-rail__pdf-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--color-clinical);
  color: var(--color-paper);
}
.rx-rail__pdf-icon .icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
  color: var(--color-paper);
}
.rx-rail__pdf-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.25;
  min-width: 0;
  flex: 1 1 auto;
}
.rx-rail__pdf-eyebrow {
  display: none; /* Drop the "CLINICIAN RESOURCE" eyebrow — was wrapping
                    to 2 lines in the narrow rail. Card context + the
                    monogram header above already convey "this monograph." */
}
.rx-rail__pdf strong {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rx-rail__pdf-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-family: var(--font-sans);
}

/* At-a-glance facts block — tight typographic list, no surrounding rules. */
.rx-rail__stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0 0.75rem;
}
.rx-rail__stat-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 0 0 0.25rem;
}
.rx-rail__stat {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-ink-soft);
}
.rx-rail__stat strong {
  font-weight: 600;
  color: var(--color-text);
  /* Date should never wrap mid-hyphen ("2026-05-/08" was visible in the
   * audit screenshot). The label before it can wrap fine. */
  white-space: nowrap;
}
.rx-rail__stat--link {
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease;
}
.rx-rail__stat--link:hover {
  color: var(--color-clinical);
}
.rx-rail__stat--link:hover strong {
  color: var(--color-clinical);
}

/* Tier badges in the rail: compact, shoulder-to-shoulder. Override the
 * default tier-badge size so two fit on one row at 200px rail width. */
.rx-rail__stat-tiers {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.rx-rail__stat-tiers .tier-badge {
  margin: 0;
  padding: 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  gap: 0;
  text-decoration: none;
  cursor: pointer;
}
.rx-rail__stat-tiers .tier-badge::after {
  content: none;
} /* drop chevron in rail */
.rx-rail__stat-tiers .tier-badge::before {
  display: none;
} /* drop 44px hit-area in rail */
.rx-rail__stat-tiers .tier-badge:hover {
  background: rgba(15, 62, 23, 0.05);
}

.rx-rail__toc {
  padding: 0.5rem 0;
}
.rx-rail__toc-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 0 0 0.5rem;
}
.rx-rail__toc > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rx-rail__toc li {
  padding: 0;
  margin: 0;
}

/* Group parents: button row that toggles its children */
.rx-rail__toc-group {
  margin: 0;
}
.rx-rail__toc-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0 0.25rem 0;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  margin-left: -2px;
  padding-left: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1.35;
}
.rx-rail__toc-group-toggle:hover {
  color: var(--color-clinical);
}
.rx-rail__toc-group-toggle:focus-visible {
  outline: 2px solid var(--color-clinical);
  outline-offset: 2px;
}
.rx-rail__toc-group-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transition: transform var(--dur-fast) var(--ease-out-quart);
  color: var(--color-muted);
}
.rx-rail__toc-group-chev .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.rx-rail__toc-group[aria-expanded="true"]
  > .rx-rail__toc-group-toggle
  .rx-rail__toc-group-chev,
.rx-rail__toc-group-toggle[aria-expanded="true"] .rx-rail__toc-group-chev {
  transform: rotate(90deg);
}

/* Active group (current section is inside it): subtle visual emphasis */
.rx-rail__toc-group.is-active > .rx-rail__toc-group-toggle {
  color: var(--color-clinical);
  border-left-color: var(--color-clinical);
}

/* Children list: hidden by default; shown when group is expanded */
.rx-rail__toc-children {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--color-rule);
  display: none;
}
.rx-rail__toc-group[aria-expanded="true"] > .rx-rail__toc-children,
.rx-rail__toc-group-toggle[aria-expanded="true"] + .rx-rail__toc-children {
  display: block;
}

/* Leaf links (inside groups + flat trailing items) */
.rx-rail__toc a {
  display: block;
  padding: 0.25rem 0 0.25rem 0.75rem;
  margin-left: -1px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--color-ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.rx-rail__toc a:hover {
  color: var(--color-text);
}
.rx-rail__toc a.is-active,
.rx-rail__toc a[aria-current="location"] {
  color: var(--color-clinical);
  border-left-color: var(--color-clinical);
  font-weight: 500;
}
.rx-rail__toc a:focus-visible {
  outline: 2px solid var(--color-clinical);
  outline-offset: 2px;
}

/* Flat trailing items (access, related) — visually separated from groups */
.rx-rail__toc-flat {
  margin-top: 0.5rem;
}
.rx-rail__toc-flat:first-of-type {
  border-top: 1px solid var(--color-line);
  padding-top: 0.25rem;
}
.rx-rail__toc-flat a {
  padding-left: 0.5rem;
  margin-left: -2px;
  font-weight: 500;
  color: var(--color-text);
}

/* On mobile, the rail's PDF + stats render as compact strips at the top of
   the page (above plain summary). Hide the full ToC on mobile — it duplicates
   structure already provided by skip-links and aria-labelledby. */
@media (max-width: 1023px) {
  .rx-rail__toc {
    display: none;
  }
  .rx-rail__pdf {
    margin-bottom: 0.75rem;
  }
}

/* Anchor scroll targets land below the global nav. */
.rx-monograph-main h2[id],
.rx-monograph-main [id]:target {
  scroll-margin-top: 96px;
}

/* ===== Rx callout (Pass 2 redesign) =====
 * Single-container callout: red left rule, warm beige fill, body + inline CTAs.
 * No l-band wrapper background — the band is transparent so the callout
 * stands alone visually.
 */
.rx-callout-band {
  background: transparent !important;
}
.rx-callout {
  border-left: 3px solid var(--color-danger);
  background: var(--color-danger-tint);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}
.rx-callout > .callout-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.rx-callout > p {
  font-size: 1rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
}
.rx-callout__lede {
  font-size: 1rem !important;
  color: var(--color-text) !important;
  margin-bottom: 0.75rem !important;
}
.rx-callout__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}
.rx-callout__specs li {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
  padding-left: 1.3em;
  position: relative;
}
.rx-callout__specs li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-clinical);
  font-weight: 600;
}
.rx-callout__specs strong {
  font-weight: 600;
  color: var(--color-text);
}

/* "How this differs from a research-use-only website" — sits right after the
   prescription callout. Plain prose band, no callout box. Sage-tinted link to
   the compounding-pharmacy explainer page. */
.vs-rul-band .l-prose p {
  margin: 0 0 0.8em;
}
.vs-rul-band .l-prose p:last-child {
  margin-bottom: 0;
}
.vs-rul-band a {
  color: var(--color-clinical);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.rx-callout__actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-rule);
}
.rx-callout__action {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  flex: 1 1 220px;
  padding: 0.5rem 0;
}
.rx-callout__action:hover strong {
  color: var(--color-clinical);
}
.rx-callout__action-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 0.25rem;
}
.rx-callout__action strong {
  font-family: var(--font, Georgia, serif);
  font-weight: 500;
  font-size: 1rem;
}
.rx-callout__action--doctor strong {
  color: var(--color-clinical);
}
.rx-callout__action--patient strong {
  color: var(--color-text);
}
.rx-callout__action:focus-visible {
  outline: 2px solid var(--color-clinical);
  outline-offset: 2px;
}

/* ===== Persona cards (Access section, Pass 2) ===== */
.persona-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 720px) {
  .persona-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.persona-card {
  background: var(--color-paper);
  padding: 1.75rem 1.5rem 1.5rem;
  border-top: 4px solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.persona-card--doctor {
  border-top-color: var(--color-clinical);
}
.persona-card--patient-with {
  border-top-color: var(--color-brand);
}
.persona-card--patient-without {
  border-top-color: var(--color-ink-soft);
}

.persona-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.persona-card__icon .icon {
  width: 56px;
  height: 56px;
  stroke-width: 1.4;
}
.persona-card--doctor .persona-card__icon .icon {
  color: var(--color-clinical);
}
.persona-card--patient-with .persona-card__icon .icon {
  color: var(--color-brand);
}
.persona-card--patient-without .persona-card__icon .icon {
  color: var(--color-ink-soft);
}

.persona-card__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin: 0;
}
.persona-card__title {
  font-family: var(--font, Georgia, serif);
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.2;
  color: var(--color-text);
}
.persona-card__body {
  color: var(--color-muted);
  font-size: 1rem;
  margin: 0.25rem 0 1rem;
  flex: 1 1 auto;
}
.persona-card__action {
  margin: auto 0 0;
}
.persona-card__action .button {
  font-size: 1rem;
}
.button--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-rule);
}
.button--ghost:hover {
  border-color: var(--color-clinical);
  color: var(--color-clinical);
}

/* =====================================================================
   MOBILE READABILITY PASS (≤720px)
   Targeted fixes to typography + density problems found in audit:
     - Body prose was constrained to 294px (56ch) inside 342px container
     - H1/H2 line-height was 1.08 (too tight)
     - Eyebrow color failed WCAG AA (4.04:1 on near-white bg)
     - Persona card paragraphs rendered at 11.2px (too small)
     - Section vertical padding was 52px each side on mobile
   Plus: <details class="mobile-collapse"> pattern to optionally hide
   deep reference sections (mechanism detail, PK/PD, comparative,
   storage, operations) behind a tap on mobile only. Desktop unaffected.
   ===================================================================== */

/* Always-on (any viewport): give H1 and H2 more breathing room. The
 * project's base h1,h2,h3 rule sets line-height: 1.08 which makes lines
 * almost touch on multi-line headings. 1.15 gives clear separation
 * without looking loose. */
h1 {
  line-height: 1.12;
}
h2,
.section-title {
  line-height: 1.18;
}

@media (max-width: 720px) {
  /* Drop the reading-width cap on mobile — there's already a hard
   * container limit at .l-content (342px) and the 56ch cap was
   * eating ~50px of usable width for no reason. */
  .l-prose {
    max-width: none;
  }
  main p,
  main li {
    max-width: none;
  }

  /* Tighten section side padding (was 1.5rem each side, eating 48px of
   * the 342px container so prose was forced to ~32 char/line). */
  .l-band > .l-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Tighten section vertical padding so the page is shorter without
   * the sections feeling crammed. 52px top+bottom was generous; 32px
   * keeps clear separation. */
  .l-band {
    padding: 2rem 0;
  }
  .l-band--first {
    padding-top: 2.5rem;
  }

  /* Eyebrow contrast bump. --color-accent (var(--color-ink-muted)) on near-white
   * background = 4.04:1 — under the 4.5:1 AA threshold for small text.
   * Use a darker variant on mobile for readability. */
  .section-eyebrow {
    color: var(--color-ink-muted);
  }

  /* Persona card paragraphs were rendering at 11.2px because the
   * default cascade was inheriting a smaller size. Force readable. */
  .persona-card p {
    font-size: 1rem;
    line-height: 1.55;
  }
  .persona-card .eyebrow {
    font-size: 0.75rem;
    color: var(--color-ink-muted);
  }
}

/* The mobile-collapse <details> pattern was removed in the consumer
 * rewrite pass — the desktop browser default hid all non-summary children
 * of a closed <details>, which combined with display:none on the summary
 * meant 5 sections rendered as eyebrow + H2 with no body. Sections now
 * render content directly on both viewports. */

/* ===== Template directory ===== */

.page-templates main {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.template-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.template-directory-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 860px) {
  .template-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.template-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-top: 4px solid var(--color-accent);
  border-radius: 4px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.template-card--current {
  border-top-color: var(--color-clinical);
}
.template-card--untracked {
  border-top-color: var(--color-copper);
}
.template-card--stale,
.template-card--mismatch {
  border-top-color: var(--color-danger);
}

.template-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.template-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.template-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.template-card__facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--font-sans);
}

.template-card__facts > div {
  display: grid;
  gap: 0.25rem;
}

.template-card__facts dt {
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.template-card__facts dd {
  margin: 0;
  color: var(--color-text);
  font-size: 1rem;
  min-width: 0;
}

.template-card code,
.page-templates code {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  color: var(--color-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84em;
  padding: 0 0.25rem;
  overflow-wrap: anywhere;
}

.template-card__actions {
  margin-top: auto;
}

.template-pages {
  border-top: 1px solid var(--color-line);
  padding-top: 0.75rem;
  font-family: var(--font-sans);
}

.template-pages summary {
  cursor: pointer;
  color: var(--color-link);
  font-size: 1rem;
  font-weight: 600;
}

.template-pages ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.template-pages li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: none;
  font-size: 0.75rem;
  line-height: 1.4;
}

.template-pages a {
  overflow-wrap: anywhere;
}

.template-page-status {
  align-self: flex-start;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-accent);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 0.5rem;
}

.template-page-status--current {
  border-color: rgba(15, 62, 23, 0.35);
  color: var(--color-clinical);
}

.template-page-status--stale,
.template-page-status--mismatch {
  border-color: rgba(205, 78, 78, 0.35);
  color: var(--color-danger);
}

.template-page-status--untracked {
  border-color: rgba(15, 62, 23, 0.35);
  color: var(--color-copper);
}

.template-page-overflow {
  color: var(--color-accent);
  font-style: italic;
}

/* mobile-collapse pattern removed — see comment above near top of block. */

/* =====================================================================
   EXPLAINER CARDS — consumer summary, evidence chips, clinician callout.
   Replaces the flat "Plain English summary" block. Lives only inside the
   plain-summary section.
   ===================================================================== */

.explainer-card {
  margin: 1.25rem 0 0;
  padding: 1.5rem 1.5rem;
  border-radius: 4px;
}
.l-band--summary .l-prose,
.l-band--pmc .l-prose {
  max-width: none;
}
.explainer-card p {
  margin: 0 0 0.75rem;
}
.l-band--summary .explainer-card p,
.l-band--summary .clinician-annotation p {
  max-width: none;
}
.explainer-card p:last-child {
  margin-bottom: 0;
}

/* Consumer box — warm beige, clean. Reads as the "default explanation". */
.explainer-card--consumer {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-clinical);
}
.explainer-card--consumer p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
}

/* Clinician annotation — quiet, footnote-like continuation of the consumer
 * card. No background box, no border, no left rule. Just a hairline above
 * + small-caps label + muted body. Tells the reader "the technical version
 * follows" without competing with the consumer card for visual weight. */
.clinician-annotation {
  margin: 1.75rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--color-line);
  width: 100%;
  max-width: none;
}
.clinician-annotation__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-ink-soft);
  margin: 0 0 0.5rem;
}
.clinician-annotation p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin: 0 0 0.75rem;
}
.clinician-annotation p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .explainer-card {
    padding: 1rem 1rem;
  }
  .explainer-card--consumer p {
    font-size: 1rem;
  }
  .clinician-annotation {
    margin-top: 1.25rem;
    padding-top: 1rem;
  }
  .clinician-annotation p {
    font-size: 0.75rem;
  }
}

/* ============================================================
   Phase A.2 — Personalized Medicine Case + plain_finding /
   plain_opener + Pharmacy History Thread
   ============================================================ */

/* Personalized medicine case band: sage l-band--alt. Sells the "studies are
   averages but you're not" thesis right after the hero. */
.l-band--pmc {
  border-top: 0.5pt solid var(--sage);
  border-bottom: 0.5pt solid var(--sage);
}
.pmc-body > p:first-child {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 0.9em;
  letter-spacing: 0;
}
.pmc-body > p {
  font-family: Georgia, "Source Serif 4", serif;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.9em;
  max-width: none;
}

/* One-line gray-market warning inside the PMC band */
.gray-market-warning {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 0.5pt dashed rgba(15, 62, 23, 0.45);
  font-family: Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--color-ink-muted);
  max-width: 42rem;
}
.gray-market-warning a {
  color: var(--color-brand);
  text-decoration: underline;
}

/* clinical_context plain_opener — green-callout sentence prefacing the
   technical framing/summary. Same family as .search-basis but sage. */
.clinical-context__opener {
  margin: 0.4em 0 0.7em;
  padding: 0.55em 0.85em;
  background: var(--color-mint-tint);
  border-left: 2.5pt solid var(--color-brand);
  font-family: Georgia, "Source Serif 4", serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-brand);
}

/* Major Studies plain_finding (bold patient line) + technical (italic gray
   second line). Stacked in same table cell. Type spec per design review. */
.study-finding-plain {
  display: block;
  font-family: Georgia, "Source Serif 4", serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-ink);
}
.study-finding-technical {
  display: block;
  font-family: Georgia, serif;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
  font-style: italic;
  margin-top: 0.35em;
}
.study-title-link {
  color: var(--color-brand);
  text-decoration: none;
  border-bottom: 0.5pt dotted rgba(15, 62, 23, 0.35);
}
.study-title-link:hover {
  border-bottom-color: var(--color-brand);
  color: var(--color-brand);
}

/* Pharmacy history margin note — left-margin pull-quote on desktop,
   inline above the section's first paragraph on mobile. Italic sage. */
.pharmacy-history-margin-note {
  font-family: Georgia, "Source Serif 4", serif;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--color-brand);
  line-height: 1.55;
  margin: 0.4em 0 1em;
  padding-left: 0.75rem;
  border-left: 1.5pt solid rgba(15, 62, 23, 0.35);
}
.pharmacy-history-margin-note .pharmacy-history-mark,
.pharmacy-history-margin-note svg.pharmacy-history-mark {
  display: inline-block;
  vertical-align: -0.22em;
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  margin-right: 0.4em;
  color: var(--color-brand);
  opacity: 0.7;
  stroke-width: 1.4;
  flex: none;
}
.pharmacy-history-margin-note p {
  margin: 0 0 0.5em;
  display: inline;
}
.pharmacy-history-margin-note p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1024px) {
  .pharmacy-history-margin-note {
    float: left;
    width: 12rem;
    margin: 0.2em 1.5rem 0.5rem -3.5rem;
    padding-left: 0.75rem;
    border-left: 1.5pt solid rgba(15, 62, 23, 0.35);
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .pmc-body > p:first-child {
    font-size: 1rem;
  }
  .clinical-context__opener {
    font-size: 1rem;
    padding: 0.5em 0.7em;
  }
  .pharmacy-history-margin-note {
    font-size: 0.75rem;
  }
}

/* ===== Investor presentation =====
   A fixed 16:9 deck, NOT a responsive web page. The slide canvas is a fixed
   1920x1080 stage; JS scales it uniformly to fit the viewport and centers it,
   with a near-black letterbox filling whatever space is left over. Every size
   below is in px against that 1920x1080 canvas. Do not add responsive
   breakpoints here. This is a presentation surface, designed for one view. */
.investor-page {
  --stage-w: 1920px;
  --stage-h: 1080px;
  --ink-deep: #07210a;
  --ink-mid: #0c2f10;
  --paper: #f5f1e7;
  --paper-soft: rgba(245, 241, 231, 0.74);
  --paper-faint: rgba(245, 241, 231, 0.5);
  --sage: #a4c9aa;
  --mint: #ebf3e9;
  --hair: rgba(245, 241, 231, 0.16);
  --hair-soft: rgba(245, 241, 231, 0.09);
  --surface: rgba(245, 241, 231, 0.04);
  margin: 0;
  min-height: 100vh;
  background: #050705;
  color: var(--paper);
  overflow: hidden;
}
.investor-viewport {
  position: fixed;
  inset: 0;
  display: grid;
  /* Pin the single grid track to the viewport (not the oversized 1920px stage)
     so place-items:center centers the stage against the window. Without this the
     auto track grows to the stage width, anchoring it top-left, and the scale()
     transform then pushes the deck off-center on any sub-1920px display. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  background: #050705;
}
.investor-stage {
  position: relative;
  width: var(--stage-w);
  height: var(--stage-h);
  flex: 0 0 auto;
  transform-origin: center center;
  transform: scale(var(--investor-scale, 1));
  background:
    radial-gradient(
      120% 90% at 78% 16%,
      rgba(164, 201, 170, 0.1),
      transparent 55%
    ),
    linear-gradient(152deg, var(--ink-mid) 0%, var(--ink-deep) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Persistent chrome inside the stage (scales with it) */
.investor-bar {
  position: absolute;
  top: 64px;
  left: 112px;
  right: 112px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  padding: 0;
  background: none;
  border: 0;
}
.investor-bar__brand {
  display: block;
  line-height: 0;
}
.investor-bar__brand img {
  width: 208px;
  height: auto;
}
.investor-bar__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.investor-foot {
  position: absolute;
  bottom: 56px;
  left: 112px;
  right: 112px;
  z-index: 5;
  margin: 0;
  max-width: none;
  padding: 0;
  background: none;
  border: 0;
}
.investor-foot p {
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.investor-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 4px;
  background: var(--hair-soft);
}
.investor-progress::before {
  content: "";
  display: block;
  width: var(--investor-progress, 10%);
  height: 100%;
  background: var(--sage);
  transition: width var(--dur-base) var(--ease-out-quart);
}

/* Deck + slides */
.investor-deck {
  position: absolute;
  top: 184px;
  bottom: 160px;
  left: 112px;
  right: 112px;
  max-width: none;
  padding: 0;
}
.investor-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  column-gap: 128px;
  align-items: center;
}
.investor-slide[hidden] {
  display: none;
}
.investor-slide.is-active {
  animation: investor-rise var(--dur-base) var(--ease-out-expo) both;
}
@keyframes investor-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Presentation build fragments: revealed one at a time by next/prev. Hidden
   fragments keep their layout space (visibility, not display) so the rest of
   the slide does not reflow as each piece appears. */
[data-fragment] {
  visibility: hidden;
  opacity: 0;
}
[data-fragment].is-revealed {
  visibility: visible;
  opacity: 1;
  transition: opacity 180ms var(--ease-out-quart, ease-out);
}
@media (prefers-reduced-motion: reduce) {
  [data-fragment].is-revealed {
    transition: none;
  }
}

/* Slide 06 stack: competitor logo rows slide in from the right ("out of the
   stack") as they fade, each row staggered top to bottom. */
.investor-frag8__logos[data-fragment] {
  transform: translateX(40px);
}
.investor-frag8__logos[data-fragment].is-revealed {
  transform: translateX(0);
  transition:
    opacity 320ms var(--ease-out-quart, ease-out),
    transform 320ms var(--ease-out-quart, ease-out);
}
.investor-frag8__logos[data-fragment]:nth-of-type(2).is-revealed { transition-delay: 60ms; }
.investor-frag8__logos[data-fragment]:nth-of-type(3).is-revealed { transition-delay: 120ms; }
.investor-frag8__logos[data-fragment]:nth-of-type(4).is-revealed { transition-delay: 180ms; }
.investor-frag8__logos[data-fragment]:nth-of-type(5).is-revealed { transition-delay: 240ms; }
.investor-frag8__logos[data-fragment]:nth-of-type(6).is-revealed { transition-delay: 300ms; }
.investor-frag8__logos[data-fragment]:nth-of-type(7).is-revealed { transition-delay: 360ms; }
.investor-frag8__logos[data-fragment]:nth-of-type(8).is-revealed { transition-delay: 420ms; }
@media (prefers-reduced-motion: reduce) {
  .investor-frag8__logos[data-fragment] {
    transform: none;
  }
  .investor-frag8__logos[data-fragment].is-revealed {
    transition: none;
    transition-delay: 0ms;
  }
}

/* Shared type */
.investor-eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-eyebrow--bright {
  color: var(--mint);
}
.investor-slide__text {
  display: grid;
  gap: 32px;
  align-content: center;
  max-width: 760px;
}
.investor-slide__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 88px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--paper);
}
.investor-slide__body {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.55;
  color: var(--paper-soft);
}
.investor-slide__viz {
  align-self: center;
}

/* Cover */
.investor-slide--cover {
  display: block;
  inset: -184px -112px -160px -112px;
}
.investor-cover__media {
  position: absolute;
  inset: 0;
}
.investor-cover__media picture,
.investor-cover__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.investor-cover__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--ink-deep) 0%,
      rgba(7, 33, 10, 0.92) 34%,
      rgba(7, 33, 10, 0.4) 64%,
      rgba(7, 33, 10, 0.55) 100%
    ),
    linear-gradient(0deg, rgba(7, 33, 10, 0.7), transparent 40%);
}
.investor-cover__content {
  position: absolute;
  left: 112px;
  right: 112px;
  bottom: 168px;
  display: grid;
  gap: 36px;
  max-width: 1180px;
}
.investor-cover__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 152px;
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--paper);
}
.investor-cover__lead {
  margin: 0;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.45;
  color: var(--paper);
}
.investor-cover__note {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.5;
  color: var(--paper-soft);
}

/* Bare "moment" slides hide the standard chrome */
.investor-stage.is-bare .investor-bar,
.investor-stage.is-bare .investor-foot,
.investor-stage.is-bare .investor-progress {
  visibility: hidden;
}

/* Snark interlude: near-black blackout, centered mark + question */
.investor-slide--snark {
  inset: -184px -112px -160px -112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050705;
}
/* Peptide explainer bullets (icon + line, build one at a time) */
.investor-peplist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.investor-peplist li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 24px;
  align-items: start;
}
.investor-peplist__icon {
  width: 44px;
  height: 44px;
  color: var(--sage);
}
.investor-peplist__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.investor-peplist p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.4;
  color: var(--paper-soft);
}
.investor-peplist li.investor-peplist__gap {
  margin-top: 88px;
}

/* The plan (phases gag) */
/* Dark statement slide: same blackout as the snark, logo at top, one line */
.investor-slide--statement {
  inset: -184px -112px -160px -112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #050705;
  padding: 128px 112px 160px;
}
/* Inverted answer: same layout (logo stays put) on the normal deck color */
.investor-slide--statement-light {
  background: transparent;
}
/* BPC molecule on the 'what are peptides?' slide */
/* BPC molecule shown on the side of the 'what are peptides?' slide */
.investor-slide--pepq {
  align-items: start;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}
.investor-slide--pepq .investor-slide__viz {
  align-self: start;
}
.investor-pepmol {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin-top: 6px;
}

/* Combined problem + solution split slide */
.investor-slide--split {
  display: block;
}
/* Shared 3-column / 3-row grid: problem in column 1, solution in column 3,
   the hairline in column 2. Both halves share the head / body / figure rows,
   so titles, paragraphs, and maps line up to the pixel on both sides. */
.investor-split {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 64px;
  row-gap: 16px;
  align-content: center;
}
.investor-split__rule {
  grid-column: 2;
  grid-row: 1 / -1;
  width: 1px;
  background: var(--hair);
}
.investor-split__head {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 14px;
  align-content: start;
}
.investor-split__body {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.34;
  color: var(--paper-soft);
}
.investor-split__body p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.investor-split__fig {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  align-self: start;
}
.investor-split--r {
  grid-column: 3;
}
.investor-split__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--paper);
}
.investor-split__title strong {
  font-weight: 600;
}
.investor-split__accent {
  color: var(--paper);
}
.investor-split__fig img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 404px;
}
.investor-split__fig figcaption {
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.35;
  color: var(--paper-faint);
}

/* Back-and-forth focus dimming: the side not currently being discussed fades
   subtly. The map beats clear both classes (everything bright). */
.investor-split__head,
.investor-split__body,
.investor-split__fig {
  transition: opacity var(--dur-base) var(--ease-out-expo);
}
.investor-slide--split.is-focus-problem .investor-split__head.investor-split--r,
.investor-slide--split.is-focus-problem .investor-split__body.investor-split--r,
.investor-slide--split.is-focus-problem .investor-split__fig.investor-split--r,
.investor-slide--split.is-focus-solution .investor-split__head:not(.investor-split--r),
.investor-slide--split.is-focus-solution .investor-split__body:not(.investor-split--r),
.investor-slide--split.is-focus-solution .investor-split__fig:not(.investor-split--r) {
  opacity: 0.6;
}

/* Text-only problem/solution slide: no maps, bigger type, full-width finale
   anchored at the bottom. */
.investor-slide--split-text .investor-split {
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
  row-gap: 28px;
}
.investor-slide--split-text .investor-split__rule {
  grid-row: 1 / 3;
}
.investor-slide--split-text .investor-split__title {
  font-size: 80px;
}
.investor-slide--split-text .investor-split__body {
  font-size: 42px;
}
.investor-slide--split-text .investor-split__finale {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: center;
  margin: 0;
  max-width: 24ch;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 76px;
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--paper);
}
.investor-slide--split-text .investor-split__finale {
  transition: opacity var(--dur-base) var(--ease-out-expo);
}

/* Full-bleed map slides (US of pills / US of fingerprints): large centered
   image, caption revealed on the next beat. */
.investor-slide--mapbig {
  display: flex;
  align-items: center;
  justify-content: center;
}
.investor-mapbig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.investor-mapbig img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 600px;
}
.investor-mapbig figcaption {
  font-family: var(--font-sans);
  font-size: 28px;
  line-height: 1.4;
  color: var(--paper-soft);
  text-align: center;
}
.investor-mapbig figcaption strong {
  color: var(--paper);
  font-weight: 600;
}
.investor-statement {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
}
.investor-statement__logo {
  width: 200px;
  height: auto;
  opacity: 0.85;
}
.investor-statement__txt {
  margin: auto 0;
  max-width: 24ch;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 72px;
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--paper);
}

/* Question interludes (centered single column) */
.investor-slide--ask {
  display: flex;
  align-items: center;
}
.investor-ask {
  display: grid;
  gap: 28px;
  max-width: 1100px;
}

/* 02 — Problem panels */
.investor-slide__viz {
  display: grid;
  gap: 28px;
}
.investor-panel {
  padding: 40px 44px;
  border-top: 2px solid var(--hair);
  background: var(--surface);
}
.investor-panel--accent {
  border-top-color: var(--sage);
}
.investor-panel__label {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-panel__big {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.investor-panel__sub {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--paper-soft);
}
.investor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-chips li {
  padding: 12px 22px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 22px;
  color: var(--paper);
}

/* 03 — Why now (timeline) */
.investor-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 28px;
  row-gap: 6px;
  padding: 34px 0 34px 40px;
  border-left: 2px solid var(--hair);
}
.investor-steps li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 44px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--sage);
}
.investor-steps li:first-child {
  padding-top: 8px;
}
.investor-steps li:first-child::before {
  top: 18px;
}
.investor-steps li:last-child {
  padding-bottom: 8px;
}
.investor-steps__n {
  grid-row: 1 / 3;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--paper-faint);
  padding-top: 10px;
}
.investor-steps__t {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  color: var(--paper);
}
.investor-steps__d {
  font-family: var(--font-sans);
  font-size: 21px;
  color: var(--paper-soft);
}

/* 04 — Solution (stack) */
.investor-stack {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-stack li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 32px;
  border-left: 4px solid var(--sage);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--paper);
}
.investor-stack li span {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--paper-faint);
}

/* 05 / 06 / 10 — flow + loop + milestones */
.investor-flow,
.investor-loop,
.investor-milestones {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-flow li,
.investor-loop li,
.investor-milestones li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 32px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--paper);
}
.investor-flow__n {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--sage);
}
.investor-loop__return {
  border-color: var(--sage);
  color: var(--mint);
}
.investor-loop__return::after {
  content: "\21BA  repeats";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

/* 07 — Traction metrics */
.investor-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 56px;
}
.investor-metric {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 2px solid var(--sage);
}
.investor-metric strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 86px;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.investor-metric strong sup {
  font-size: 0.42em;
  vertical-align: super;
}
.investor-metric span {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

/* 08 — Business model revenue */
.investor-revenue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-revenue li {
  display: flex;
  align-items: center;
  min-height: 116px;
  padding: 24px 32px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--paper);
}
.investor-revenue__lead {
  grid-column: 1 / -1;
  border-color: var(--sage);
  background: rgba(164, 201, 170, 0.12);
  color: var(--mint);
  font-size: 34px;
}

/* 09 — Competition table */
.investor-compare {
  border-top: 1px solid var(--hair);
}
.investor-compare__row {
  display: grid;
  grid-template-columns: 0.85fr 0.95fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--paper-soft);
}
.investor-compare__row--head {
  padding: 18px 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.investor-compare__row--head span {
  color: var(--paper-faint);
}
.investor-compare__row--ronan {
  margin: 0 -24px;
  padding: 30px 32px;
  border-bottom: none;
  background: rgba(164, 201, 170, 0.12);
  color: var(--mint);
}
.investor-compare__row--ronan span:first-child {
  font-weight: 500;
}

/* 10 — Team + ask */
.investor-team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 8px;
}
.investor-team > div {
  display: grid;
  gap: 12px;
  padding-top: 24px;
  border-top: 2px solid var(--sage);
}
.investor-team h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
  color: var(--paper);
}
.investor-team p {
  margin: 0;
  max-width: none;
  font-family: var(--font-sans);
  font-size: 21px;
  line-height: 1.5;
  color: var(--paper-soft);
}
.investor-ask__label {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-ask__lead {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 48px;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--paper);
}

/* Operator controls — live on the letterbox, outside the recorded stage */
.investor-controls {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  display: flex;
  gap: 10px;
  opacity: 0.32;
  transition: opacity var(--dur-base) var(--ease-out-quart);
}
.investor-controls:hover,
.investor-controls:focus-within {
  opacity: 1;
}
.investor-control {
  min-width: 96px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid rgba(245, 241, 231, 0.4);
  border-radius: 4px;
  background: rgba(5, 7, 5, 0.7);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    background var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart);
}
.investor-control--primary {
  background: var(--color-brand);
  border-color: var(--color-brand);
}
.investor-control:hover {
  border-color: var(--sage);
}
.investor-control:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  .investor-slide.is-active {
    animation: none;
  }
  .investor-progress::before,
  .investor-controls {
    transition: none;
  }
}

/* ===== Investor presentation — v2 components ===== */

.investor-slide__body--accent {
  color: var(--sage);
}
.investor-slide__note {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
  color: var(--paper-faint);
}

/* 04 — Solution: the stack as moat layers (icons, no numbers) */
.investor-layers {
  display: grid;
  gap: 4px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-layers li {
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: 26px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--hair-soft);
}
.investor-layers li:last-child {
  border-bottom: 0;
}
.investor-layer__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--sage);
  background: var(--surface);
}
.investor-layer__icon svg {
  width: 30px;
  height: 30px;
}
.investor-layer__body {
  display: grid;
  gap: 5px;
}
.investor-layer__t {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--paper);
}
.investor-layer__d {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.4;
  color: var(--paper-soft);
  max-width: 640px;
}
/* 503A clean room reads as the hard, defensible layer */
.investor-layers li:nth-child(5) .investor-layer__icon {
  border-color: var(--sage);
  background: rgba(164, 201, 170, 0.14);
  box-shadow: 0 0 0 5px rgba(164, 201, 170, 0.08);
}
.investor-layers li:nth-child(5) .investor-layer__t {
  color: var(--mint);
}

/* 07 / 08 — Market bars */
.investor-bars {
  display: grid;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-bars__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.investor-bars__lbl {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-bars__val {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.investor-bars__val--big {
  font-size: 76px;
  color: var(--mint);
}
.investor-bars__track {
  display: block;
  height: 22px;
  border-radius: 999px;
  background: var(--hair-soft);
  overflow: hidden;
}
.investor-bars__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(245, 241, 231, 0.32);
}
.investor-bars__fill--accent {
  background: var(--sage);
}

/* 11 — Competition positioning plot */
.investor-plot {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 680px;
  margin-inline: auto;
}
.investor-plot__area {
  position: absolute;
  left: 8px;
  right: 0;
  top: 8px;
  bottom: 44px;
  border-left: 2px solid var(--hair);
  border-bottom: 2px solid var(--hair);
  background:
    linear-gradient(var(--hair-soft) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, var(--hair-soft) 1px, transparent 1px) 0 0 / 25% 100%;
}
.investor-plot__axis-y,
.investor-plot__axis-x {
  position: absolute;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.investor-plot__axis-y {
  top: 0;
  left: -2px;
  transform: translateX(-4px);
}
.investor-plot__axis-y::before {
  content: "\2191  ";
  color: var(--sage);
}
.investor-plot__axis-x {
  right: 0;
  bottom: 8px;
}
.investor-plot__axis-x::after {
  content: "  \2192";
  color: var(--sage);
}
.investor-dot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translate(-50%, 50%);
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.2;
  color: var(--paper-soft);
  white-space: nowrap;
}
.investor-dot i {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--paper-faint);
}
.investor-dot--us {
  flex-direction: row-reverse;
  font-size: 24px;
  font-weight: 500;
  color: var(--mint);
}
.investor-dot--us i {
  width: 22px;
  height: 22px;
  background: var(--sage);
  box-shadow: 0 0 0 7px rgba(164, 201, 170, 0.16);
}

/* 12 — Team */
.investor-slide--team .investor-slide__text {
  align-content: center;
}
.investor-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}
.investor-person {
  display: grid;
  gap: 14px;
  align-content: start;
}
.investor-person__photo {
  width: 116px;
  height: 116px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 44px;
  color: var(--sage);
}
.investor-person h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.05;
  color: var(--paper);
}
.investor-person__role {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-person__creds {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}
.investor-person__creds li {
  position: relative;
  padding-left: 24px;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.35;
  color: var(--paper-soft);
}
.investor-person__creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--sage);
}

/* 13 — The round */
.investor-round {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.investor-round__card {
  display: grid;
  gap: 12px;
  padding: 30px 34px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--surface);
}
.investor-round__card strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.investor-round__card span {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-round__of {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0;
  color: var(--paper-faint);
}
.investor-round__card--wide {
  grid-column: 1 / -1;
}
.investor-round__card--wide strong {
  color: var(--mint);
}

/* ===== Investor presentation — v3 (stack expansions, market, team, round) ===== */

/* Solution master + per-layer expansions: stack rail on the left */
.investor-slide--stack {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  column-gap: 96px;
}
.investor-stack-rail {
  align-self: center;
}
.investor-stack-rail__title {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--paper);
}
.investor-rail {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.investor-rail li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  color: var(--paper-soft);
}
.investor-stack-rail--compact .investor-rail {
  margin: 0;
}
.investor-stack-rail--compact .investor-rail li {
  padding: 13px 22px;
  font-size: 22px;
}
.investor-rail li.is-current {
  border-color: var(--sage);
  background: rgba(164, 201, 170, 0.14);
  color: var(--mint);
}
.investor-rail li.is-current::after {
  content: "\2192";
  margin-left: auto;
  font-family: var(--font-sans);
  color: var(--sage);
}
.investor-stack-note {
  align-self: center;
  display: grid;
  gap: 28px;
  max-width: 680px;
}
.investor-stack-note__lead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 44px;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--paper);
}
.investor-stack-note__body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.5;
  color: var(--sage);
}
.investor-detail {
  align-self: center;
  display: grid;
  gap: 28px;
  max-width: 720px;
}
.investor-detail__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--paper);
}
.investor-detail__body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.5;
  color: var(--paper-soft);
}
/* 12 Cold-chain: FedEx wordmark tucked into the nook beside the title's
   second line ("at Amazon speed"). */
.investor-detail__carrier {
  display: inline-block;
  margin-left: 28px;
  white-space: nowrap;
  vertical-align: baseline;
}
.investor-detail__carrier img {
  display: inline-block;
  height: 44px;
  width: auto;
  vertical-align: -4px;
}
.investor-detail__body--accent {
  color: var(--sage);
}
.investor-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.investor-logos li {
  padding: 12px 24px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--paper);
}

/* 12 — Wedge unlock stat */
.investor-unlock {
  display: grid;
  gap: 8px;
  padding-top: 24px;
  border-top: 2px solid var(--sage);
}
.investor-unlock__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 112px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.investor-unlock__lbl {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

/* 13 — Market donut */
.investor-donut {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
  border-radius: 999px;
  background: conic-gradient(
    rgba(245, 241, 231, 0.4) 0 4.8%,
    var(--sage) 4.8% 100%
  );
}
.investor-donut::after {
  content: "";
  position: absolute;
  inset: 62px;
  border-radius: 999px;
  background: var(--ink-mid);
}
.investor-legend {
  display: grid;
  gap: 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-width: 460px;
  margin-inline: auto;
}
.investor-legend li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 22px;
  color: var(--paper-soft);
}
.investor-legend li strong {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--paper);
}
.investor-legend__key {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(245, 241, 231, 0.4);
}
.investor-legend__key--big {
  background: var(--sage);
}

/* 16 — Business model ARPU */
.investor-arpu {
  display: grid;
  gap: 10px;
  padding-top: 24px;
  border-top: 2px solid var(--sage);
}
.investor-arpu__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 100px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.investor-arpu__lbl {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-streams {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.investor-streams li {
  padding: 14px 22px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 20px;
  color: var(--paper);
}

/* 18 — Team (title top, people across the bottom) */
.investor-slide--team {
  grid-template-columns: 1fr;
  align-content: center;
  gap: 64px;
}
.investor-team-head__title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 76px;
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--paper);
}
.investor-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 88px;
}
.investor-person {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.investor-person__photo {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 46px;
  color: var(--sage);
}
.investor-person__body {
  display: grid;
  gap: 10px;
}
.investor-person h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  color: var(--paper);
}
.investor-person__role {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-person__creds {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}
.investor-person__creds li {
  position: relative;
  padding-left: 24px;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.35;
  color: var(--paper-soft);
}
.investor-person__creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--sage);
}

/* 19 — The round (FOMO) */
.investor-yc {
  display: inline-flex;
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 10px;
  background: var(--paper);
}
.investor-yc img {
  width: 100%;
  height: 100%;
  display: block;
}
.investor-slide__fine {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--paper-faint);
}
.investor-raise {
  display: grid;
  gap: 18px;
  padding: 34px 38px;
  border: 1px solid var(--sage);
  border-radius: 6px;
  background: rgba(164, 201, 170, 0.1);
}
.investor-raise__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.investor-raise__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--mint);
}
.investor-raise__of {
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--paper-soft);
}
.investor-raise__track {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: var(--hair-soft);
  overflow: hidden;
}
.investor-raise__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--sage);
}
.investor-raise__deadline {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-raise__qualify {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.5;
  color: var(--paper-soft);
}
.investor-raise__cta {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--paper);
}

/* ===== Investor presentation — v4 (uncovering stack, infographics, logos) ===== */

/* Solution master + expansions share one fixed rail position (no movement) */
.investor-slide--stack {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: 100px;
  align-items: center;
}
.investor-rail {
  align-self: center;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-rail li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--paper-soft);
}
.investor-rail li.is-current {
  border-color: var(--sage);
  background: rgba(164, 201, 170, 0.16);
  color: var(--mint);
}
.investor-rail li.is-current::after {
  content: "\2192";
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--sage);
}
.investor-stack-side {
  align-self: center;
  display: grid;
  gap: 26px;
  max-width: 660px;
}
.investor-stack-side__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 62px;
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--paper);
}
.investor-stack-side__body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.45;
  color: var(--paper-soft);
}
.investor-stack-side__body--accent {
  color: var(--sage);
}

/* Brand logos rendered on light chips so any color reads on the dark deck */
.investor-logos--brand {
  gap: 16px;
}
.investor-logos--brand li {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
}
.investor-logos--brand img {
  height: 26px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  display: block;
}

/* 06 — AI clinical workflow funnel */
.investor-funnel {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.investor-funnel__node {
  display: grid;
  gap: 6px;
  padding: 22px 28px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--paper);
}
.investor-funnel__node span {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--paper-soft);
}
.investor-funnel__node--accent {
  border-color: var(--sage);
  background: rgba(164, 201, 170, 0.12);
}
.investor-funnel__arrow {
  justify-self: center;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid var(--sage);
}

/* 12 — Wedge bullets + cycle graphic */
.investor-bullets {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-bullets li {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.35;
  color: var(--paper-soft);
}
.investor-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sage);
}
.investor-cycle {
  position: relative;
  padding-left: 72px;
}
.investor-cycle ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-cycle li {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--paper);
}
.investor-cycle li:last-child {
  border-color: var(--sage);
  color: var(--mint);
}
.investor-cycle__loop {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 56px;
  height: calc(100% - 12px);
}

/* 14 — Market expansion before/after columns */
.investor-columns {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 100px;
  padding-bottom: 8px;
}
.investor-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.investor-col__val {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.investor-col__val--big {
  font-size: 68px;
  color: var(--mint);
}
.investor-col__bar {
  width: 150px;
  height: calc(var(--h, 10) * 3.7px);
  border-radius: 8px 8px 0 0;
  background: rgba(245, 241, 231, 0.28);
}
.investor-col__bar--accent {
  background: var(--sage);
}
.investor-col__tag {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

/* 17 — Competition: logo chips on the plot */
.investor-dot__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-mid);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.investor-dot__chip img {
  height: 24px;
  width: auto;
  max-width: 108px;
  object-fit: contain;
  display: block;
}
.investor-dot--us .investor-dot__chip {
  height: 52px;
  font-size: 18px;
  font-weight: 700;
  background: var(--sage);
  color: var(--ink-deep);
  box-shadow: 0 0 0 8px rgba(164, 201, 170, 0.16);
}
.investor-slide__body--strong {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--mint);
}

/* 18 — Team photos 40% larger */
.investor-person__photo {
  width: 168px;
  height: 168px;
  font-size: 62px;
  overflow: hidden;
  padding: 0;
}
.investor-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

/* 19 — Round MFN line */
.investor-raise__sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--paper-soft);
}

/* 02 — Problem: generated "one drug for millions" cutout in the old-model panel */
.investor-panel--old {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.investor-panel--old .investor-panel__label {
  justify-self: start;
  margin: 0;
}
.investor-panel__img {
  width: 100%;
  max-width: 360px;
  height: 240px;
  object-fit: contain;
  display: block;
}
.investor-panel__cap {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  color: var(--paper-soft);
  text-align: center;
}
.investor-panel__cap strong {
  font-weight: 400;
  color: var(--paper);
}

/* ===== Investor presentation — v5 (title pinning, redesigns, market, categories) ===== */

/* Cover: title is now the full positioning line, two balanced lines */
.investor-cover__content {
  max-width: 1480px;
  gap: 32px;
}
.investor-cover__title {
  max-width: none;
  width: 100%;
  font-size: 100px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Closing / contact slide: oversized wordmark above the cover title on the
   same hero image, with a contact card on the right. */
.investor-close {
  position: absolute;
  inset: 0;
  padding: 140px 120px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  column-gap: 72px;
  align-items: center;
}
.investor-close__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}
.investor-close__logo {
  width: 720px;
  max-width: 100%;
  height: auto;
  display: block;
}
.investor-slide--close .investor-cover__title {
  margin: 0;
  font-size: 76px;
  line-height: 1.04;
}
.investor-close__contact {
  justify-self: end;
  align-self: center;
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 48px 52px;
  border: 1px solid var(--hair);
  border-radius: 24px;
  background: rgba(7, 33, 10, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}
.investor-close__photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--sage);
  margin-bottom: 22px;
}
.investor-close__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.investor-close__eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-close__name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
  color: var(--paper);
}
.investor-close__detail {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1.5;
  color: var(--paper-soft);
}
.investor-close__detail a {
  color: var(--paper-soft);
  text-decoration: none;
}

/* Solution stack: pin the eyebrow + title to the same spot on every slide.
   The rail stays vertically centered; the side stretches full-height with its
   content top-aligned, so the title never moves as you advance. */
.investor-stack-side {
  align-self: stretch;
  align-content: start;
  padding-top: 6px;
}
.investor-detail__body--accent {
  color: var(--sage);
}

/* Rail items ~20% taller */
.investor-rail li {
  padding: 27px 28px;
}

/* 11 - Wedge cycle: loop arrow exits the right of step 3 and returns to step 1 */
.investor-cycle {
  position: relative;
  padding-left: 0;
  padding-right: 84px;
  margin-bottom: 8px;
}
.investor-cycle__loop {
  position: absolute;
  left: auto;
  right: 0;
  top: 0;
  width: 76px;
  height: 100%;
}

/* 12 - Market: peptides vs AI comparison columns with stacked GLP-1 segment */
.investor-compare-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 64px;
  padding-bottom: 4px;
}
.investor-cbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
}
.investor-cbar__val {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.investor-cbar__col {
  width: 132px;
  height: calc(var(--h, 10) * 4.1px);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  background: rgba(245, 241, 231, 0.32);
}
.investor-cbar__col--ai {
  background: rgba(245, 241, 231, 0.34);
}
.investor-cbar__col--ref {
  background: var(--hair);
}
.investor-cbar__seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink-deep);
}
.investor-cbar__seg--glp1 {
  height: 47%;
  background: var(--mint);
}
.investor-cbar__seg--pep {
  flex: 1;
  background: var(--sage);
}
.investor-cbar__seg em {
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.investor-cbar__seg i {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 22px;
}
.investor-cbar__tag {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  text-align: center;
}
.investor-cite {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  max-width: none;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--paper-faint);
}

/* 16 - Competition as categories, RonanRX alone on top */
.investor-cats {
  display: grid;
  gap: 16px;
  align-content: center;
}
.investor-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--surface);
}
.investor-cat__label {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--paper);
}
.investor-cat__logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.investor-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-mid);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.investor-chip img {
  height: 22px;
  width: auto;
  max-width: 104px;
  object-fit: contain;
  display: block;
}
.investor-cat--us {
  border-color: var(--sage);
  background: rgba(164, 201, 170, 0.14);
  padding: 28px;
}
.investor-cat--us .investor-cat__label {
  font-weight: 500;
  color: var(--mint);
}
.investor-cat__brand img {
  height: 34px;
  width: auto;
  display: block;
}

/* 17 - Team: two clean centered profiles, photos equal size */
.investor-slide--team {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 52px;
}
.investor-team-head {
  display: grid;
  gap: 18px;
}
.investor-people {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 110px;
  max-width: 1180px;
  width: 100%;
}
.investor-person {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
}
.investor-person__photo {
  width: 176px;
  height: 176px;
  margin-bottom: 6px;
}
.investor-person h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.05;
  color: var(--paper);
}
.investor-person__role {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-person__creds {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.investor-person__creds li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-sans);
  font-size: 21px;
  line-height: 1.35;
  color: var(--paper-soft);
}
.investor-person__creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sage);
}

/* ===== Investor presentation — v6 (thesis bell curve, peptides analogy) ===== */
.investor-bell {
  margin: 0;
  display: grid;
  gap: 28px;
  justify-items: center;
}
.investor-bell svg {
  width: 100%;
  max-width: 700px;
  height: auto;
}
.investor-bell figcaption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.3;
  color: var(--paper-soft);
  text-align: center;
}

.investor-analogy {
  display: grid;
  gap: 18px;
}
.investor-analogy__line {
  margin: 0;
  padding: 30px 34px;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.investor-analogy__line strong {
  font-weight: 400;
  color: var(--paper);
}
.investor-analogy__line--accent {
  border-color: var(--sage);
  background: rgba(164, 201, 170, 0.12);
}
.investor-analogy__line--accent strong {
  color: var(--mint);
}

/* ===== Investor presentation — v7 (glass, smooth nav, market chart, peptide graphics) ===== */

/* Smooth slide changes: fade only, no vertical translate (boxes/titles no
   longer jump up on every advance). */
.investor-slide.is-active {
  animation: investor-fade 200ms var(--ease-out-quart) both;
}
@keyframes investor-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Pin eyebrow + title to the same spot on every standard slide */
.investor-slide__text {
  align-content: start;
}

/* Liquid-glass treatment on every box */
.investor-panel,
.investor-rail li,
.investor-funnel__node,
.investor-cycle li,
.investor-cat,
.investor-analogy__line,
.investor-streams li,
.investor-arpu,
.investor-raise,
.investor-msize,
.investor-metric,
.investor-person {
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 10px 34px rgba(0, 0, 0, 0.2);
}
.investor-metric {
  padding: 22px 24px;
  border-radius: 12px;
}
/* Re-assert tinted glass for the accented / active boxes */
.investor-rail li.is-current,
.investor-funnel__node--accent,
.investor-panel--accent,
.investor-analogy__line--accent,
.investor-cat--us {
  background: rgba(164, 201, 170, 0.16);
  border-color: rgba(164, 201, 170, 0.55);
}

/* 02 - US capsule map */
.investor-usmap {
  margin: 0;
  display: grid;
  gap: 22px;
  justify-items: center;
}
.investor-usmap img {
  width: 100%;
  max-width: 780px;
  max-height: 540px;
  object-fit: contain;
  display: block;
}
.investor-usmap figcaption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  color: var(--paper-soft);
  text-align: center;
}
.investor-usmap figcaption strong {
  font-weight: 400;
  color: var(--paper);
}

/* 05 - peptide universe dot field */
.investor-dotfield {
  margin: 0;
  display: grid;
  gap: 22px;
}
.investor-dotfield__box {
  position: relative;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: radial-gradient(
    circle,
    rgba(164, 201, 170, 0.3) 3.5px,
    transparent 4.5px
  );
  background-size: 32px 32px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.investor-dotfield__glp {
  position: absolute;
  top: 44px;
  left: 48px;
}
.investor-dotfield__tag {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}
.investor-dotfield__cluster {
  display: grid;
  grid-template-columns: repeat(2, 18px);
  gap: 12px;
}
.investor-dotfield__cluster i {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(235, 243, 233, 0.18);
}
.investor-dotfield figcaption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--paper-soft);
  text-align: center;
}

/* 06 - market size grouped bars */
.investor-msize {
  padding: 32px 36px 28px;
  border-radius: 16px;
  display: grid;
  gap: 26px;
}
.investor-msize__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.investor-msize__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-msize__legend {
  display: flex;
  gap: 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--paper-soft);
}
.investor-msize__legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.investor-msize__key {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.investor-msize__key--25 {
  background: rgba(245, 241, 231, 0.34);
}
.investor-msize__key--35 {
  background: var(--sage);
}
.investor-msize__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.investor-msize__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.investor-msize__bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 300px;
}
.investor-msize__bar {
  position: relative;
  width: 34px;
  min-height: 6px;
  height: calc(var(--h) * 3px);
  border-radius: 6px 6px 0 0;
}
.investor-msize__bar b {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--paper-soft);
}
.investor-msize__bar--25 {
  background: rgba(245, 241, 231, 0.34);
}
.investor-msize__bar--35 {
  background: var(--sage);
}
.investor-msize__cat {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-faint);
  text-align: center;
}

/* 16 - wedge: cleaner arrowhead handled in SVG; crowd visual */
.investor-unlock {
  display: flex;
  align-items: center;
  gap: 44px;
}
.investor-unlock__stat {
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
}
.investor-crowd {
  position: relative;
  flex: 1;
  height: 190px;
  min-width: 0;
}
.investor-crowd__field {
  position: absolute;
  inset: 0;
  background: rgba(164, 201, 170, 0.4);
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 28"><circle cx="12" cy="7" r="5"/><path d="M2 28c0-6 4.5-10 10-10s10 4 10 10z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 28"><circle cx="12" cy="7" r="5"/><path d="M2 28c0-6 4.5-10 10-10s10 4 10 10z"/></svg>');
  -webkit-mask-size: 26px 30px;
  mask-size: 26px 30px;
  -webkit-mask-repeat: round;
  mask-repeat: round;
}
.investor-crowd__one {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 30px;
  background: var(--mint);
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 28"><circle cx="12" cy="7" r="5"/><path d="M2 28c0-6 4.5-10 10-10s10 4 10 10z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 28"><circle cx="12" cy="7" r="5"/><path d="M2 28c0-6 4.5-10 10-10s10 4 10 10z"/></svg>');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* 20 - team glass cards */
.investor-person {
  flex-direction: column;
  align-items: flex-start;
  justify-items: start;
  gap: 18px;
  padding: 44px 44px 48px;
  border-radius: 18px;
}
.investor-person__body {
  display: grid;
  gap: 12px;
}

/* ===== Investor presentation — v8 (stacked market, margins, plot groups, denser crowd) ===== */

/* 06 - personalized-medicine stacked bars */
.investor-msize__key--glp { background: var(--mint); }
.investor-msize__key--pep { background: var(--sage); }
.investor-msize__key--comp { background: rgba(245, 241, 231, 0.34); }
.investor-msize__stacks {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 96px;
  height: 380px;
}
.investor-msize__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.investor-msize__total {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.investor-msize__col {
  width: 128px;
  height: calc(var(--h) * 2.8px);
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}
.investor-msize__seg {
  display: block;
  width: 100%;
}
.investor-msize__seg--glp { background: var(--mint); }
.investor-msize__seg--pep { background: var(--sage); }
.investor-msize__seg--comp { background: rgba(245, 241, 231, 0.34); }
.investor-msize__yr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

/* 18 - margin comparison bars */
.investor-margin {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.investor-margin__row {
  display: grid;
  grid-template-columns: 184px 1fr;
  align-items: center;
  gap: 22px;
}
.investor-margin__name {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--paper-soft);
}
.investor-margin__bar {
  position: relative;
  height: 42px;
  width: calc(var(--w) * 1%);
  min-width: 70px;
  border-radius: 6px;
  background: rgba(245, 241, 231, 0.2);
}
.investor-margin__bar b {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--paper);
}
.investor-margin__bar--us {
  background: var(--sage);
}
.investor-margin__bar--us b {
  color: var(--ink-deep);
}
.investor-margin__cap {
  grid-column: 2;
  margin: 4px 0 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--paper-faint);
}

/* 19 - competition plot, category groups */
.investor-dot {
  position: absolute;
  transform: translate(-50%, 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.investor-grp {
  display: flex;
  gap: 6px;
}
.investor-grp i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--sage);
}
.investor-dot__name {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--paper-soft);
}
.investor-dot--us .investor-grp i {
  width: 22px;
  height: 22px;
  background: var(--mint);
  box-shadow: 0 0 0 7px rgba(164, 201, 170, 0.16);
}
.investor-dot--us .investor-dot__name {
  font-weight: 600;
  font-size: 20px;
  color: var(--mint);
}

/* 16 - denser crowd, cleaner person silhouette */
.investor-crowd__field {
  background: rgba(164, 201, 170, 0.42);
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="8" r="5"/><path d="M2.5 22c0-5.3 4.2-9.5 9.5-9.5s9.5 4.2 9.5 9.5z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="8" r="5"/><path d="M2.5 22c0-5.3 4.2-9.5 9.5-9.5s9.5 4.2 9.5 9.5z"/></svg>');
  -webkit-mask-size: 13px 15px;
  mask-size: 13px 15px;
  -webkit-mask-repeat: round;
  mask-repeat: round;
}
.investor-crowd__one {
  width: 13px;
  height: 15px;
  background: var(--mint);
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="8" r="5"/><path d="M2.5 22c0-5.3 4.2-9.5 9.5-9.5s9.5 4.2 9.5 9.5z"/></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="8" r="5"/><path d="M2.5 22c0-5.3 4.2-9.5 9.5-9.5s9.5 4.2 9.5 9.5z"/></svg>');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ===== Investor presentation — v9 (stripe chip, biz stats, plot logos, round badge) ===== */

/* 16 - Stripe playbook + bigger unlock stat */
.investor-playbook {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.3;
  color: var(--sage);
}
.investor-playbook__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: #635bff;
}
.investor-playbook__logo img {
  height: 24px;
  width: auto;
  display: block;
}
.investor-unlock {
  gap: 56px;
}
.investor-unlock__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 132px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.investor-unlock__lbl {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-crowd {
  height: 230px;
}

/* 17 - metric numbers fit their glass boxes */
.investor-metric {
  padding: 24px 26px;
  border-radius: 12px;
}
.investor-metric strong {
  font-size: 60px;
  line-height: 1;
}

/* 18 - two clean business stats */
.investor-bizstats {
  display: grid;
  gap: 24px;
}
.investor-bizstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 38px 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 10px 34px rgba(0, 0, 0, 0.2);
}
.investor-bizstat__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 92px;
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.investor-bizstat__unit {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-bizstat__lbl {
  margin-top: 4px;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.4;
  color: var(--paper-soft);
}

/* 19 - logo pins on the competition plot */
.investor-pin {
  display: flex;
  align-items: center;
  gap: 8px;
}
.investor-pin .investor-chip {
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
}
.investor-pin .investor-chip img {
  height: 18px;
  max-width: 78px;
}
.investor-pin--us {
  width: 132px;
  height: 132px;
  padding: 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(164, 201, 170, 0.16);
  border: 1px solid rgba(164, 201, 170, 0.55);
  box-shadow: 0 0 0 8px rgba(164, 201, 170, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.investor-pin--us img {
  width: 100%;
  height: auto;
  max-width: 92px;
  display: block;
}

/* 21 - round badge + bigger CTA */
.investor-round__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 4px;
}
.investor-round__badge {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  padding: 8px 16px;
  border: 1px solid rgba(164, 201, 170, 0.5);
  border-radius: 999px;
  background: rgba(164, 201, 170, 0.12);
}
.investor-raise__cta {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--mint);
}

/* ===== Investor presentation — v10 (alignment + dashboard + polish) ===== */

/* 16 - playbook two balanced lines */
.investor-playbook {
  align-items: flex-start;
}
.investor-playbook__logo { margin-top: 2px; }
.investor-playbook__txt {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.4;
  color: var(--sage);
}

/* 16 - unlock: 2,500 + label span the same height as the crowd graphic,
   tops and bottoms aligned */
.investor-unlock {
  display: flex;
  align-items: stretch;
  gap: 56px;
}
.investor-unlock__stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 auto;
}
.investor-unlock__num {
  font-size: 152px;
  line-height: 0.8;
}
.investor-unlock__lbl {
  max-width: 380px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sage);
}
.investor-crowd {
  flex: 1;
  height: auto;
  min-height: 244px;
}

/* 17 - journey list with sketchy->legit icons */
.investor-journey {
  display: grid;
  gap: 26px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.investor-journey li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  align-items: start;
}
.investor-journey__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper-faint);
}
.investor-journey__icon svg { width: 26px; height: 26px; }
.investor-journey__icon--ok {
  border-color: rgba(164, 201, 170, 0.55);
  background: rgba(164, 201, 170, 0.14);
  color: var(--mint);
}
.investor-journey li > span:last-child {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.5;
  color: var(--paper-soft);
}

/* 17 - metrics as one dashboard panel with hairline dividers */
.investor-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}
.investor-metric {
  background: rgba(10, 32, 12, 0.55);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 30px 28px;
  display: grid;
  gap: 8px;
}

/* 18 - huge business numbers */
.investor-bizstat {
  padding: 40px 44px;
}
.investor-bizstat__big {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.investor-bizstat__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 126px;
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.investor-bizstat__num--unit {
  color: var(--paper);
}
.investor-bizstat__unit {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 46px;
  letter-spacing: -0.01em;
  color: var(--sage);
}
.investor-bizstat__lbl {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.4;
  color: var(--paper-soft);
}

/* 19 - RonanRX as a bigger bare logo (no box); vertical Personalized axis */
.investor-pin--us {
  width: auto;
  height: auto;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.investor-pin--us img {
  width: 208px;
  max-width: 208px;
}
.investor-plot__area { left: 46px; }
.investor-plot__axis-y {
  top: 50%;
  left: 23px;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
}
.investor-plot__axis-y::before { content: none; }
.investor-plot__axis-y::after {
  content: "  \2192";
  color: var(--sage);
}

/* 20 - team fills more of the slide */
.investor-slide--team { gap: 64px; }
.investor-people {
  max-width: 1320px;
  gap: 88px;
}
.investor-person {
  padding: 52px 52px 56px;
  gap: 22px;
}
.investor-person__photo {
  width: 200px;
  height: 200px;
}
.investor-person h3 {
  font-size: 46px;
}
.investor-person__creds {
  gap: 16px;
}
.investor-person__creds li {
  font-size: 23px;
}

/* Team: one-line title, compact glass cards revealed whole, bold summary line
   under each card. */
.investor-slide--team { gap: 48px; }
.investor-team-head__title { font-size: 56px; }
.investor-people { align-items: stretch; }
.investor-personcol {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
}
.investor-personcol .investor-person {
  height: 100%;
  margin: 0;
}
.investor-person {
  padding: 32px 40px 36px;
  gap: 16px;
  border-radius: 24px;
}
.investor-person__photo {
  width: 140px;
  height: 140px;
}
.investor-person h3 {
  font-size: 38px;
}
.investor-person__creds {
  gap: 12px;
}
.investor-person__creds li {
  font-size: 20px;
}
.investor-person__tag {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.4;
  color: var(--paper);
}

/* 21 - friends-and-family badge to the top right */
.investor-round__badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
}

/* ===== Investor presentation — v11 (layer detail images) ===== */
.investor-detail__img {
  width: 100%;
  max-width: 620px;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
}

/* ===== Investor presentation — v12 (bigger map, frameless detail images) ===== */
.investor-usmap img {
  max-width: 880px;
  max-height: 640px;
}
/* Detail illustrations blend into the background, no frame */
.investor-detail__img {
  max-width: 680px;
  max-height: 320px;
  margin-top: 4px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ===== Investor presentation — v13 ===== */

/* 02 - bigger, tighter map, caption closer */
.investor-usmap { gap: 14px; }
.investor-usmap img {
  width: 100%;
  max-width: none;
  max-height: 620px;
}

/* 11 / 12 - feather the illustration edges so they blend into the background */
.investor-detail__img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 14%, #000 93%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 14%, #000 93%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* 16 - cleaner wedge: no loop line, 2,500 with a one-line label under it */
.investor-cycle { padding-right: 0; }
.investor-cycle__loop { display: none; }
.investor-playbook { align-items: center; }
.investor-playbook__txt { line-height: 1.3; }
.investor-unlock {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 20px;
}
.investor-unlock__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  flex: 0 0 auto;
}
.investor-unlock__num {
  font-size: 150px;
  line-height: 0.82;
}
.investor-unlock__lbl {
  white-space: nowrap;
  max-width: none;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sage);
}
.investor-crowd {
  flex: 1;
  height: auto;
  min-height: 200px;
  align-self: center;
}

/* 17 - nudge the dashboard down */
.investor-metrics { margin-top: 20px; }

/* 18 - ARR ladder */
.investor-ladder {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.investor-ladder li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.investor-ladder__p {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--paper-soft);
}
.investor-ladder__a {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--paper);
}
.investor-ladder__top {
  border-color: rgba(164, 201, 170, 0.55);
  background: rgba(164, 201, 170, 0.14);
}
.investor-ladder__top .investor-ladder__a { color: var(--mint); }
.investor-bizstat { padding: 30px 40px; }
.investor-bizstat__num { font-size: 104px; }

/* 19 - Personalized at the top, Full stack at the far right */
.investor-plot__axis-y {
  top: -6px;
  left: 46px;
  transform: none;
  writing-mode: horizontal-tb;
}
.investor-plot__axis-y::before {
  content: "\2191  ";
  color: var(--sage);
}
.investor-plot__axis-y::after { content: none; }

/* 20 - centered team */
.investor-slide--team { justify-items: center; }
.investor-team-head { text-align: center; justify-items: center; }
.investor-people { justify-content: center; margin-inline: auto; }

/* 21 - friends-and-family badge sits beside the CTA */
.investor-round__badge { position: static; }
.investor-raise__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===== Investor presentation — v14 ===== */

/* 16 - remove the stray line above 2,500 and the odd step-3 box highlight */
.investor-unlock { border-top: 0; }
.investor-cycle li:last-child {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--paper);
}

/* 18 - business model: matchy stats up top, dated milestones along the bottom */
.investor-slide--biz {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.investor-biz__top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  column-gap: 100px;
  align-items: center;
}
.investor-biz__intro { display: grid; gap: 24px; }
.investor-biz__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.investor-biz__stat { display: grid; gap: 2px; align-content: start; }
.investor-biz__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.investor-biz__unit {
  margin-top: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-biz__sub {
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.35;
  color: var(--paper-soft);
}
.investor-biz__timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.investor-biz__timeline li {
  display: grid;
  gap: 10px;
  padding: 26px 30px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 10px 34px rgba(0, 0, 0, 0.2);
}
.investor-biz__date {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-biz__pts {
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--paper-soft);
}
.investor-biz__arr {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.investor-biz__top-step {
  border-color: rgba(164, 201, 170, 0.55);
  background: rgba(164, 201, 170, 0.14);
}
.investor-biz__top-step .investor-biz__arr { color: var(--mint); }

/* 19 - vertical Personalized outside the box (upper), wider plot */
.investor-slide--competition {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}
.investor-slide--competition .investor-plot {
  max-width: 920px;
  height: 720px;
}
.investor-plot__axis-y {
  top: 24%;
  left: 12px;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  writing-mode: horizontal-tb;
}
.investor-plot__axis-y::before { content: none; }
.investor-plot__axis-y::after {
  content: "  \2192";
  color: var(--sage);
}

/* 21 - larger YC logo with the round paragraph indented beside it */
.investor-yc-callout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 6px;
}
.investor-yc-callout__logo { flex: 0 0 auto; line-height: 0; }
.investor-yc-callout__logo img { width: 80px; height: 80px; }
.investor-yc-callout__body { display: grid; gap: 14px; }

/* Appendix divider */
.investor-slide--appendix {
  display: grid;
  grid-template-columns: 1fr;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 18px;
}

/* ===== Investor presentation — v15 ===== */

/* 03 - fingerprint */
.investor-fingerprint {
  margin: 0;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.investor-fingerprint img {
  width: auto;
  max-width: 480px;
  max-height: 560px;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at center, #000 52%, transparent 100%);
}
.investor-fingerprint figcaption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--paper-soft);
  text-align: center;
}

/* 04 - two solid market bars */
.investor-msize__title { display: block; text-align: center; }
.investor-msize__col--solid {
  background: rgba(245, 241, 231, 0.28);
}
.investor-msize__col--accent {
  background: var(--sage);
}

/* 05 - nested rectangle: taxis inside ride-hailing */
.investor-nest {
  position: relative;
  width: 100%;
  max-width: 780px;
  height: 460px;
  margin-inline: auto;
  border: 2px solid var(--sage);
  border-radius: 14px;
  background: rgba(164, 201, 170, 0.1);
}
.investor-nest__big {
  position: absolute;
  top: 26px;
  right: 32px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--mint);
}
.investor-nest__biglbl {
  position: absolute;
  top: 104px;
  right: 32px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-nest__small {
  position: absolute;
  left: 38px;
  bottom: 38px;
  width: 156px;
  height: 124px;
  border-radius: 8px;
  background: var(--ink-deep);
  border: 1px solid rgba(245, 241, 231, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.investor-nest__smallval {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  color: var(--paper);
}
.investor-nest__smalllbl {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

/* 21 - command-prompt terminal */
.investor-terminal {
  margin-top: 10px;
  padding: 22px 26px;
  border-radius: 10px;
  background: rgba(7, 33, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 10px;
}
.investor-terminal__line {
  font-family: var(--font-mono);
  font-size: 21px;
  letter-spacing: 0.02em;
  color: var(--mint);
}

/* 22 - 400-dot grid */
.investor-dotgrid {
  margin: 0;
  display: grid;
  gap: 20px;
  justify-items: center;
}
.investor-dotgrid__tag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--mint);
}
.investor-dotgrid__grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 9px;
  width: 100%;
  max-width: 600px;
}
.investor-dotgrid__grid i {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(245, 241, 231, 0.16);
}
.investor-dotgrid__grid i.is-glp {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(235, 243, 233, 0.25);
}
.investor-dotgrid figcaption {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--paper-soft);
  text-align: center;
}

/* 16 - center the business layout, bigger ARR */
.investor-slide--biz { justify-content: center; gap: 64px; }
.investor-biz__arr { font-size: 56px; }

/* ===== Investor presentation — v16 ===== */

/* 05 - Uber/Lyft logos inside the ride-hailing rectangle */
.investor-nest__logos {
  position: absolute;
  top: 150px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.investor-nest__logos img {
  height: 24px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  display: block;
  opacity: 0.92;
}

/* 16 - business model: milestones as a readable bar chart */
.investor-biz__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 72px;
  margin: 0;
  padding: 0 12px;
  list-style: none;
}
.investor-biz__chart li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.investor-biz__carr {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 58px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 16px;
}
.investor-biz__cbar {
  width: 100%;
  max-width: 150px;
  height: calc(var(--h) * 3.4px);
  border-radius: 8px 8px 0 0;
  background: rgba(245, 241, 231, 0.28);
}
.investor-biz__cpts {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--paper);
}
.investor-biz__cdate {
  margin-top: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.investor-biz__top-step .investor-biz__cbar { background: var(--sage); }
.investor-biz__top-step .investor-biz__carr { color: var(--mint); }

/* 18 - team: horizontal cards, photo left */
.investor-person {
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  text-align: left;
  padding: 40px 44px;
}
.investor-person__photo {
  width: 144px;
  height: 144px;
  flex: 0 0 auto;
}
.investor-person__body { display: grid; gap: 12px; }

/* ===== Investor presentation — v17 ===== */

/* 05 - Uber/Lyft ~2.5x larger */
.investor-nest__logos {
  top: 150px;
  right: 36px;
  gap: 30px;
}
.investor-nest__logos img {
  height: 58px;
  max-width: 220px;
}

/* 16 - chart under the title (left ~2/3), big stats on the right */
.investor-slide--biz {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: center;
  column-gap: 84px;
}
.investor-biz__left {
  display: grid;
  gap: 52px;
  align-content: center;
}
.investor-biz__intro { display: grid; gap: 20px; }
.investor-biz__stats {
  display: grid;
  gap: 52px;
  align-content: center;
}
.investor-biz__stat { display: grid; gap: 6px; }
.investor-biz__statrow { display: flex; align-items: baseline; gap: 14px; }
.investor-biz__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 88px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.investor-biz__unit {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--sage);
}
.investor-biz__sub {
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.35;
  color: var(--paper-soft);
}
/* uniform bars, no awkward highlight */
.investor-biz__cbar { background: rgba(164, 201, 170, 0.55); }
.investor-biz__carr { color: var(--paper); }
.investor-biz__cdate { white-space: nowrap; }
.investor-biz__chart { gap: 56px; padding: 0; }

/* ===== Investor presentation — v18 (fit fixes) ===== */
.investor-slide--biz { grid-template-columns: 1.4fr 1fr; }
.investor-biz__unit { white-space: nowrap; font-size: 30px; }
.investor-biz__num { font-size: 82px; }
.investor-person { display: flex; }
.investor-biz__stats { grid-template-columns: 1fr; }

/* ===== Investor presentation — v19 ===== */

/* Go directly to each slide, no fade/blink */
.investor-slide.is-active { animation: none; }

/* Pin standard-slide eyebrow + title to the top so they line up across slides */
.investor-slide__text { align-self: start; }

/* Pin the whole stack (rail + detail) to a fixed top spot on every layer slide */
.investor-slide--stack { align-items: start; }
.investor-rail { align-self: start; }
.investor-stack-side { align-self: start; }

/* 03 - fingerprint is already transparent: no edge mask needed */
.investor-fingerprint img {
  -webkit-mask-image: none;
  mask-image: none;
  max-height: 600px;
}

/* 16 - nudge the stats right and add space between them */
.investor-biz__stats {
  padding-left: 50px;
  gap: 72px;
}

/* ===== Investor presentation — v20 ===== */
/* Slack tile is self-contained (no chip background needed) */
.investor-playbook__logo--slack {
  background: none;
  padding: 0;
  height: 50px;
  width: 50px;
}
.investor-playbook__logo--slack img {
  height: 50px;
  width: 50px;
}

/* ===== Investor presentation — v21 ===== */
/* Traction: three KPIs as a clean vertical stack with bigger numbers */
.investor-metrics--trio {
  grid-template-columns: 1fr;
  gap: 1px;
}
.investor-metrics--trio .investor-metric {
  padding: 34px 40px;
  gap: 6px;
}
.investor-metrics--trio .investor-metric strong {
  font-size: 88px;
  line-height: 0.95;
}
.investor-metrics--trio .investor-metric span {
  font-size: 16px;
}

/* Mobile investor deck reflow: keep desktop presentation scaling intact, but
   make narrow portrait viewports readable and vertically scrollable. */
/* Mobile: the deck is a fixed desktop presentation; show a gate instead */
.investor-mobile-gate { display: none; }
@media (max-width: 820px) {
  .investor-viewport,
  .investor-controls { display: none !important; }
  .investor-page { min-height: 100svh; overflow: hidden; }
  .investor-mobile-gate {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 32px;
    padding: 40px;
    background:
      radial-gradient(120% 90% at 50% 18%, rgba(164, 201, 170, 0.1), transparent 55%),
      linear-gradient(152deg, var(--ink-mid) 0%, var(--ink-deep) 100%);
  }
  .investor-mobile-gate__logo { width: 220px; max-width: 70vw; height: auto; }
  .investor-mobile-gate p {
    margin: 0;
    max-width: 26rem;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 22px;
    line-height: 1.5;
    color: var(--paper-soft);
  }
}

/* ===== Investor presentation — v22 (stack comparison) ===== */
.investor-slide--compare {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 30px;
}
.investor-compare__head { display: grid; gap: 12px; }
.investor-compare__head .investor-slide__title { font-size: 52px; }
.investor-compare__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  align-items: start;
}
.investor-frag__head,
.investor-onep__head span {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.investor-frag__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
}
.investor-frag__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair-soft);
}
.investor-frag__layer {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--paper);
}
.investor-frag__who {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.3;
  color: var(--paper-faint);
  text-align: right;
}
.investor-onep {
  border: 1px solid var(--sage);
  border-radius: 14px;
  background: rgba(164, 201, 170, 0.12);
  padding: 26px 30px 30px;
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}
.investor-onep__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.investor-onep__head img { height: 22px; width: auto; display: block; }
.investor-onep__flow {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.investor-onep__flow::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: 20px;
  width: 1.5px;
  background: rgba(164, 201, 170, 0.5);
}
.investor-onep__flow li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.1;
  color: var(--paper);
}
.investor-onep__flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--mint);
}

/* Slide 6 - the full stack: heading | fragmented players -> layers -> one */
.investor-slide--compare {
  display: grid;
  grid-template-columns: 0.6fr 2.2fr;
  align-items: stretch;
  column-gap: 40px;
  align-content: normal;
}
/* left: the heading, at deck-scale, giving the diagram the full height */
.investor-stack6__head {
  align-self: center;
  display: grid;
  gap: 20px;
}
.investor-stack6__head .investor-slide__title { font-size: 58px; line-height: 1.05; }
.investor-stack6__head .investor-slide__body { margin: 0; }
/* the diagram: fragmented rows | brace | one platform, centered in its zone */
.investor-stack6 {
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}
/* eight rows: a messy cluster of players, an arrow, then the layer it serves */
.investor-frag8 {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: max-content auto 252px;
  align-items: center;
  align-content: center;
  column-gap: 18px;
  row-gap: 18px;
}
/* right-justified so the players sit right next to their arrow */
.investor-frag8__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px 8px;
}
.investor-frag8__arrow {
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  color: var(--paper-faint);
}
.investor-frag8__cat {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--paper);
  text-align: center;
  white-space: nowrap;
  padding: 16px 22px;
  border: 1px solid var(--hair-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
/* messy, varied-width white chips, no rigid grid */
.investor-wallchip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 65px;
  padding: 8px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.investor-wallchip img {
  max-height: 38px;
  max-width: 224px;
  width: auto;
  object-fit: contain;
  display: block;
}
.investor-wallchip--text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.005em;
  line-height: 1.1;
  color: var(--ink-mid);
}
/* the brace that gathers every layer and points into RonanRX */
.investor-brace {
  position: relative;
  flex: 0 0 128px;
  align-self: stretch;
}
.investor-brace__line {
  position: absolute;
  right: 70px;
  top: 5px;
  bottom: 5px;
  width: 3px;
  background: var(--sage);
}
.investor-brace__cap {
  position: absolute;
  right: 70px;
  width: 19px;
  height: 3px;
  background: var(--sage);
}
.investor-brace__cap--top { top: 5px; }
.investor-brace__cap--bot { bottom: 5px; }
.investor-brace__arm {
  position: absolute;
  right: 18px;
  top: calc(50% - 1.5px);
  /* start inside the vertical spine (spans x:55-58 of the 128px brace) so the
     arm joins it cleanly without poking out to the left */
  left: 57px;
  height: 3px;
  background: var(--sage);
}
.investor-brace__arm::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -7px;
  border-left: 14px solid var(--sage);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
/* the destination: one platform, sized up to anchor the slide */
.investor-stack6__one {
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid var(--sage);
  border-radius: 22px;
  background: rgba(164, 201, 170, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  padding: 54px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
}
.investor-stack6__logo {
  width: 364px;
  max-width: 100%;
  height: auto;
  display: block;
}
.investor-stack6__tag {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.1;
  color: var(--paper);
  margin: 0;
}
/* The RonanRX destination slides in to the right as it appears, mirroring the
   competitor rows that slide in the other way. */
.investor-stack6__one[data-fragment] {
  transform: translateX(-44px);
}
.investor-stack6__one[data-fragment].is-revealed {
  transform: translateX(0);
  transition:
    opacity 320ms var(--ease-out-quart, ease-out),
    transform 320ms var(--ease-out-quart, ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .investor-stack6__one[data-fragment] {
    transform: none;
  }
  .investor-stack6__one[data-fragment].is-revealed {
    transition: none;
  }
}

/* ===== Investor presentation — v24 ===== */

/* Footer: quiet fine print, not the loud uppercase mono line */
.investor-foot p {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.4;
  max-width: 1040px;
  color: var(--paper-faint);
  opacity: 0.68;
}

/* 15 - attribute the KPI panel to the research-use peptide business */
.investor-metrics__src {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
/* 15 - lift the KPI box so its top sits on the title; drop the attribution
   to a footnote under the box. Row top is at the section top; the title cap
   sits ~64px below it (eyebrow + 32px gap), and the KPI box adds its own
   20px margin-top, so a 44px offset lands the box top on the title cap. */
.investor-slide__viz--traction {
  align-self: start;
  margin-top: 44px;
}
.investor-metrics__src--foot {
  margin: 16px 0 0;
}

/* 16 - widen the intro so the title + one-line subtitle match the chart */
.investor-slide--biz { grid-template-columns: 1.68fr 1fr; }
.investor-biz__intro .investor-slide__body--accent {
  max-width: none;
  font-size: 23px;
}
/* 16 - MRR + gross margin in slide-15-style boxed panel (fonts unchanged) */
.investor-biz__stats {
  padding: 0;
  gap: 1px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}
.investor-biz__stat {
  background: rgba(10, 32, 12, 0.55);
  padding: 32px 36px;
  gap: 6px;
}

/* ===== Business model slide: sentence title, ARR labels, patient counts
   inside the bars (dark text on brighter sage), gated stats panel ===== */
/* Title pinned to the top, sized to the chart width, leaving room below for a
   taller chart. */
.investor-biz__left {
  align-content: start;
  gap: 40px;
}
.investor-biz__title {
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: none;
}
.investor-biz__carr {
  margin-bottom: 4px;
}
.investor-biz__carrlbl {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--paper-faint);
  margin-bottom: 18px;
}
/* Bars build from the ground up: the sage fill scales from the bottom when its
   column is revealed; the dark patient text sits above the fill. */
.investor-biz__cbar {
  position: relative;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
}
.investor-biz__cbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px 8px 0 0;
  background: var(--sage);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 640ms var(--ease-out-expo);
}
.investor-biz__cbar.is-revealed::before {
  transform: scaleY(1);
}
@media (prefers-reduced-motion: reduce) {
  .investor-biz__cbar::before {
    transition: none;
    transform: scaleY(1);
  }
}
.investor-biz__cptnum {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: var(--ink-deep);
}
.investor-biz__cptlbl {
  position: relative;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink-deep);
}
/* Right column: "Unit economics" label above the gated stats panel. */
.investor-biz__right {
  display: grid;
  gap: 22px;
  align-content: center;
}
.investor-biz__unitlabel {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

/* 17 - competition plot logos 30% larger */
.investor-pin .investor-chip {
  height: 49px;
  padding: 0 15px;
  font-size: 17px;
}
.investor-pin .investor-chip img {
  height: 24px;
  max-width: 101px;
}
.investor-pin--us {
  width: auto;
  height: auto;
}
.investor-pin--us img { width: 228px; max-width: 228px; }
/* RonanRX: the most prominent mark, in the upper-right (personalized leader) corner */
.investor-dot--us { transform: none; right: 18px; top: 18px; }

/* 19 - the round: friends-and-family pill, committed backers, raise box */
.investor-ff-pill {
  justify-self: start;
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  padding: 7px 16px;
  border: 1px solid rgba(164, 201, 170, 0.5);
  border-radius: 999px;
  background: rgba(164, 201, 170, 0.12);
}
.investor-backers {
  display: flex;
  align-items: center;
  gap: 44px;
  margin: 12px 0 4px;
}
.investor-backers__logo { display: flex; align-items: center; }
.investor-backers__logo img { height: 72px; width: auto; display: block; }
.investor-backers__logo--openai img { height: 66px; }
.investor-raise__remain {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--paper-soft);
}

/* ===== Slide 19 — Friends & Family round (full-height card + timeline) ===== */
.investor-slide--round {
  display: block;
}
.investor-r19 {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.64fr);
  column-gap: 120px;
  align-items: center;
}

/* Left column: headline leads, calm scarcity sequence below */
.investor-r19__left {
  display: grid;
  gap: 40px;
  align-content: center;
}
.investor-r19__head {
  display: grid;
  gap: 24px;
}
.investor-r19__title {
  font-size: 80px;
  line-height: 1.04;
}

/* Left scarcity sequence — pill, two quiet stages on a hairline rail, backers */
.investor-fftl {
  display: grid;
  gap: 28px;
  justify-items: start;
}
.investor-fftl__seq {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 28px;
}
.investor-fftl__seq::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--hair);
}
.investor-fftl__node {
  display: grid;
  gap: 8px;
}
.investor-fftl__sub {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.investor-fftl__line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  color: var(--paper);
}
.investor-fftl__backers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 36px;
}
.investor-fftl__backer {
  display: flex;
  align-items: center;
  gap: 32px;
}
.investor-fftl__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
}
.investor-fftl__logo img {
  height: 64px;
  width: auto;
  display: block;
}
.investor-fftl__logo--openai img {
  height: 56px;
}
.investor-fftl__name {
  min-width: 364px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  white-space: nowrap;
  color: var(--paper);
}
.investor-fftl__inv {
  font-family: var(--font-sans);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--sage);
}

/* Right column: contained investment card */
.investor-raise--round {
  display: grid;
  gap: 28px;
  padding: 48px;
  align-content: center;
}
.investor-raise--round .investor-raise__num {
  font-size: 64px;
}
.investor-raise--round .investor-raise__of {
  font-size: 20px;
  line-height: 1.3;
}
.investor-raise__edge {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.45;
  color: var(--sage);
}
.investor-terms {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.investor-terms__cell {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 24px 0;
}
.investor-terms__cell + .investor-terms__cell {
  border-left: 1px solid var(--hair);
  padding-left: 24px;
}
.investor-terms dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--paper);
}
.investor-terms dd {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

/* 05 - Market expansion: subtle car/taxi watermark (density implies market size) */
.investor-nest { overflow: hidden; }
.investor-nest::before {
  content: ""; position: absolute; inset: 0;
  opacity: 0.09; pointer-events: none;
}
.investor-nest__small { overflow: hidden; }
.investor-nest__small > * { position: relative; z-index: 1; }
.investor-nest__small::before {
  content: ""; position: absolute; inset: 0;
  opacity: 0.16; pointer-events: none;
}

/* 05 - Market expansion: $9B reads as a recess carved out of the $190B */
.investor-nest__biglbl,
.investor-nest__smalllbl { font-weight: 700; }
.investor-nest__small {
  width: 208px;
  height: 156px;
  background: rgba(4, 16, 7, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 12px 24px rgba(0, 0, 0, 0.85),
    inset 0 4px 6px rgba(0, 0, 0, 0.95),
    inset 0 -2px 1px rgba(245, 241, 231, 0.10),
    0 1px 0 rgba(245, 241, 231, 0.07);
}
.investor-nest__smallval { font-size: 54px; line-height: 1; }
.investor-nest__small::before { opacity: 0.2; }

/* 05 - year-first market labels, bold year only */
.investor-nest__biglbl, .investor-nest__smalllbl { font-weight: 600; }
.investor-nest__biglbl strong, .investor-nest__smalllbl strong { font-weight: 800; }

/* slides 02/03: lock map caption height so the map + caption sit in the same spot */
.investor-usmap figcaption { min-height: 78px; }

/* slide 03: bold the "solution is personalized medicine" sentence */
.investor-slide__body--bold { font-weight: 700; }

/* ronanrx-core override (not upstream): the archetype-six-cell media block
   was designed for the LEAD cell only — a big 4:3 cover-cropped hero. When
   we add the same block to the 5 non-lead cells, the molecule PNGs (mixed
   aspect ratios — some portrait like bpc-157 797x1024, some landscape like
   glutathione 1024x432) get cropped weirdly by object-fit: cover.

   Fix: unified tile treatment for every six-cell media block (lead + non-
   lead) — square aspect, contained scaling so the full molecule shows
   regardless of native shape, centered horizontally within the cell.
   Lead tile is ~75% bigger than non-lead so it keeps visual prominence. */
.archetype-six-cell__media {
  aspect-ratio: 1 / 1;
  align-self: center;
  margin-bottom: 8px;
}
.archetype-six-cell__media img {
  object-fit: contain;
  padding: 8px;
}
.archetype-six-cell__media {
  max-width: 160px;
}

/* Lead cell parity: the upstream rules give the lead cell a 2-row grid span
   plus a bigger title + copy, which when combined with our uniform tile size
   pushes the 6th cell into an orphan row at the bottom and creates a
   visible style mismatch between the lead and the other 5 cells. Drop the
   row-span and the type-size bumps so all 6 cells flow as one consistent
   2-row × 3-col grid. Lead stays distinguishable via its extra pill / eyebrow
   from the HTML, no CSS hierarchy needed. */
.archetype-six-cell__cell--lead {
  grid-row: auto;
}
.archetype-six-cell__cell--lead .archetype-six-cell__title,
.archetype-six-cell__cell--lead .archetype-six-cell__copy {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}
