
:root {
  /* =========================================================================
     ROVN INVESTOR ROOM · WARM EDITORIAL RE-SKIN (2026-06-05)
     Matches the new rovn.to design system: paper canvas, warm ink,
     teal as verification. Legacy token names (--terra-*, --neu-*, --surface-*,
     --text-*, --accent, --display/--font/--mono) are ALIASED onto this palette
     so every existing component rule re-tints with zero per-rule edits.
     Dark theme remaps only the BASE tokens below; aliases cascade via var().
     ========================================================================= */

  /* ---- Warm-neutral near-white (cream-clean, NO blue cast); teal is the only accent ---- */
  --paper-0: #FFFFFF;        /* raised cards, white                  */
  --paper:   #FBFAF7;        /* canvas, near-white, faint warmth (NOT tan) */
  --paper-2: #F4F2EC;        /* sunk panels, warm-neutral light     */
  --paper-3: #E9E6DE;        /* deeper sunk / rails                 */
  --ink:   #1B1814;          /* primary text, warm-neutral near-black (no blue) */
  --ink-2: #3A352D;          /* secondary                           */
  --ink-3: #5E574C;          /* muted                               */
  --ink-4: #8E877A;          /* faint captions                      */
  --line:        rgba(28, 24, 18, 0.12);
  --line-soft:   rgba(28, 24, 18, 0.07);
  --line-strong: rgba(28, 24, 18, 0.20);

  /* ---- "Panels" are LIGHT warm now — NO dark surfaces anywhere ---- */
  --night:    #F1EBDF;       /* warm light panel (a touch deeper than canvas) */
  --night-1:  #F8F4EC;
  --night-2:  #EAE2D3;
  --night-line:      rgba(28, 24, 18, 0.12);
  --night-line-soft: rgba(28, 24, 18, 0.06);
  --on-night:   #1B1814;     /* dark ink text on the light panels */
  --on-night-2: #5E574C;
  --on-night-3: #8E877A;

  /* ---- Teal: verification & interaction only ---- */
  --teal:        #0E8A8A;
  --teal-deep:   #0A6A6A;
  --teal-ink:    #0B5C5C;
  --teal-bright: #0B5C5C;
  --teal-wash:   rgba(14, 138, 138, 0.10);
  --teal-line:   rgba(14, 138, 138, 0.30);

  /* ---- Truth-ladder tier semantics (warm: tan-gray / amber / teal / ink — NO blue) ---- */
  --tier-attested:  #AEA389;
  --tier-processed: #C58A3C;
  --tier-verified:  #0E8A8A;
  --tier-approved:  #1B1814;

  /* ---- Type scale + tracking ---- */
  --t-mega: clamp(3.0rem, 1.6rem + 6.0vw, 5.4rem);
  --t-h1:   clamp(2.2rem, 1.5rem + 3.0vw, 3.6rem);
  --t-h2:   clamp(1.7rem, 1.3rem + 1.9vw, 2.6rem);
  --t-h3:   clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem);
  --t-lead: clamp(1.12rem, 1.02rem + 0.5vw, 1.34rem);

  /* ---- Radii / easing / elevation / layout ---- */
  --r-1: 4px;  --r-2: 8px;  --r-3: 14px;  --r-4: 22px;  --r-pill: 999px;
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo:  cubic-bezier(0.16, 1, 0.30, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --shadow-1: 0 1px 2px rgba(27,23,18,0.05), 0 1px 0 rgba(27,23,18,0.03);
  --shadow-2: 0 2px 4px rgba(27,23,18,0.06), 0 8px 24px -14px rgba(27,23,18,0.20);
  --shadow-lift: 0 28px 60px -26px rgba(27,23,18,0.34);
  --shadow-night: 0 30px 80px -30px rgba(0,0,0,0.7);

  /* ---- Fonts (Newsreader / Hanken Grotesk / IBM Plex Mono) ---- */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: var(--serif);
  --font:    var(--sans);
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ====================== LEGACY ALIASES → new palette ====================== */
  --terra-50:  #EDF4F2;
  --terra-100: #D7ECE7;
  --terra-600: var(--teal);
  --terra-700: var(--teal-ink);
  --terra-900: #083E3E;
  --terra-950: var(--night);
  --em-600: var(--teal-deep);
  --em-300: var(--teal-bright);
  --em-100: var(--teal-wash);
  --neu-50:  var(--paper);
  --neu-100: var(--paper-2);
  --neu-200: var(--paper-3);
  --neu-400: var(--ink-4);
  --neu-700: var(--ink-3);
  --neu-900: var(--ink-2);
  --neu-950: var(--ink);
  --warn-600: #C2410C;

  --surface-canvas: var(--paper);
  --surface-card:   var(--paper-0);
  --surface-muted:  var(--paper-2);
  --surface-border: var(--line);
  --text-primary:   var(--ink);
  --text-muted:     var(--ink-3);
  --text-onAccent:  var(--paper-0);
  --accent:         var(--teal);
  --accent-hover:   var(--teal-deep);
  --shadow-card:    var(--shadow-2);
  --shadow-pop:     var(--shadow-lift);
}

/* Smooth, non-jarring theme transitions. */
html { transition: background-color 200ms ease, color 200ms ease; }
body, .topbar, .sidebar, .main, .footer,
.section-card, .download-card, .ai-page-cta, .summarize-bar,
.diligence-banner, .footer-cta, .live-strip, .audit-strip,
.compliance-posture, .section-intro-strap, .cite-pop, .sources-modal__panel {
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

/* ============================================================
   DARK MODE ,  [data-theme="dark"] overrides.
   Audit chrome (mono receipts) gets terminal aesthetic.
   Brand teal preserved; surfaces invert.
   ============================================================ */
html[data-theme="dark"] {
  /* Warm "night" palette. Remap only BASE tokens; every legacy alias
     (--surface-*, --neu-*, --text-*, --accent...) cascades via var(). */
  --paper-0: #201C16;
  --paper:   var(--night);
  --paper-2: var(--night-2);
  --paper-3: #2E2920;
  --ink:   var(--on-night);
  --ink-2: var(--on-night-2);
  --ink-3: var(--on-night-3);
  --ink-4: #8E8675;
  --line:        var(--night-line);
  --line-soft:   var(--night-line-soft);
  --line-strong: rgba(244, 238, 225, 0.24);
  --teal-ink:    var(--teal-bright);
  --teal-wash:   rgba(40, 198, 198, 0.10);
  --teal-line:   rgba(40, 198, 198, 0.30);
  --accent:        var(--teal-bright);
  --accent-hover:  #4FD9C6;
  --text-onAccent: var(--night);
  --shadow-2:    0 2px 4px rgba(0,0,0,0.40), 0 8px 24px -14px rgba(0,0,0,0.7);
  --shadow-lift: var(--shadow-night);
}
html[data-theme="dark"] body { background: var(--surface-canvas); color: var(--text-primary); }
html[data-theme="dark"] a { color: var(--accent); }
html[data-theme="dark"] a:hover { color: var(--accent-hover); }
html[data-theme="dark"] .section-card,
html[data-theme="dark"] .download-card {
  background: var(--surface-card); border-color: var(--surface-border);
  box-shadow: var(--shadow-card);
}
html[data-theme="dark"] .ai-page-cta {
  background: rgba(20, 181, 181, 0.06);
  border-color: rgba(20, 181, 181, 0.20);
  border-left-color: var(--accent);
}
html[data-theme="dark"] .ai-page-cta__text,
html[data-theme="dark"] .ai-page-cta__text strong { color: var(--accent-hover); }
html[data-theme="dark"] .content blockquote {
  background: rgba(20, 181, 181, 0.08);
  border-left-color: var(--accent);
  color: var(--text-primary);
}
html[data-theme="dark"] .content code {
  background: rgba(125, 232, 202, 0.10);
  color: var(--accent-hover);
}
html[data-theme="dark"] .content pre { background: #050709; color: #E2E8E2; }
html[data-theme="dark"] .content th {
  background: var(--surface-muted); color: var(--accent-hover);
}
html[data-theme="dark"] .diligence-banner {
  background: rgba(180, 83, 9, 0.10);
  border-color: #5C3D1A;
  color: #F5C98A;
}
html[data-theme="dark"] .diligence-banner strong,
html[data-theme="dark"] .diligence-banner__label,
html[data-theme="dark"] .diligence-banner__body,
html[data-theme="dark"] .diligence-banner__link { color: #F5C98A; }
html[data-theme="dark"] .diligence-banner__sep { color: #8C6A3A; }
html[data-theme="dark"] .diligence-banner__dot {
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
html[data-theme="dark"] .section-intro-strap {
  background: rgba(20, 181, 181, 0.08);
  border-left-color: var(--accent);
  color: var(--accent-hover);
}
html[data-theme="dark"] .section-intro-strap__label,
html[data-theme="dark"] .section-intro-strap__claim { color: var(--accent-hover); }
html[data-theme="dark"] .summarize-bar {
  background: linear-gradient(90deg, rgba(20, 181, 181, 0.10) 0%, transparent 100%);
  border-color: rgba(20, 181, 181, 0.22);
}
html[data-theme="dark"] .summarize-bar__mode {
  background: var(--surface-card);
  border-color: var(--surface-border);
  color: var(--text-primary);
}
html[data-theme="dark"] .ml-banner {
  background: linear-gradient(90deg, rgba(20, 181, 181, 0.08) 0%, rgba(20, 181, 181, 0.04) 100%);
  border-left-color: var(--accent);
  color: var(--accent-hover);
}
html[data-theme="dark"] .ml-banner__name { color: var(--accent-hover); }
/* Audit chrome ,  terminal aesthetic in dark mode. */
html[data-theme="dark"] .audit-strip {
  background: #050709; color: #C0CCC0; border-top-color: #1F2A30;
}
html[data-theme="dark"] .audit-strip__k { color: #7DE8CA; }
html[data-theme="dark"] .audit-strip__v { color: #E2E8E2; }
/* Topbar always dark ,  brand presence. */
html[data-theme="dark"] .topbar {
  background: #050709;
  border-bottom-color: var(--surface-border);
}

* { box-sizing: border-box; }
html { font-size: 15.5px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--neu-950);
  background: var(--neu-50);
  line-height: 1.6;
  font-feature-settings: "tnum" on, "lnum" on;
}

a { color: var(--terra-600); text-decoration: none; }
a:hover { color: var(--terra-700); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--terra-600); outline-offset: 2px; border-radius: 2px; }

/* ---- Top nav ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: var(--terra-950);
  color: var(--neu-50);
  border-bottom: 1px solid var(--terra-900);
}
.topbar .brand {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--neu-50);
}
.topbar .brand .accent { color: var(--em-300); }
.topbar .center {
  font-family: var(--mono);
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--em-300);
}
.topbar .right { font-family: var(--mono); font-size: 0.78rem; color: var(--neu-200); }
.topbar a { color: var(--neu-50); }

/* ---- Layout ---- */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 56px);
}
.sidebar {
  background: var(--neu-100);
  border-right: 1px solid var(--neu-200);
  padding: 22px 16px 80px;
  font-size: 0.93rem;
  overflow-y: auto;
  position: sticky; top: 56px;
  max-height: calc(100vh - 56px);
}
.sidebar .nav-section { margin-bottom: 8px; }
.sidebar .nav-section > a {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--neu-900);
  padding: 8px 10px;
  border-radius: 6px;
}
.sidebar .nav-section > a.active { background: var(--terra-100); color: var(--terra-700); }
.sidebar .nav-section > a:hover { background: var(--neu-200); text-decoration: none; }
.sidebar .nav-sub { list-style: none; margin: 4px 0 4px 6px; padding: 0; }
.sidebar .nav-sub.collapsed { display: none; }
.sidebar .nav-sub li { margin: 0; }
.sidebar .nav-sub a {
  display: block;
  padding: 5px 10px 5px 16px;
  font-size: 0.86rem;
  color: var(--neu-700);
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
}
.sidebar .nav-sub a:hover { background: var(--neu-200); text-decoration: none; color: var(--neu-950); }
.sidebar .nav-sub a.current {
  background: var(--terra-100);
  color: var(--terra-700);
  border-left-color: var(--terra-600);
  font-weight: 500;
}
.sidebar .num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--neu-400);
  min-width: 38px;
}

.main {
  padding: 38px 56px 100px;
  max-width: 920px;
  width: 100%;
}
.page-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terra-700);
  margin-bottom: 8px;
}
.page-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--neu-950);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.01em;
}
.page-sub {
  color: var(--neu-700);
  font-size: 1.02rem;
  margin: 0 0 28px;
}
/* Phase-9: collapsed to single-line ribbon, ~34px tall.
   Subtle amber-tinted neutral surface with a small amber indicator dot.
   Mono small text. Keeps H1 as the clear hierarchical anchor. */
.diligence-banner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  background: #FFFCF4;
  border: 1px solid #E8C58A;
  color: #6B3F0A;
  padding: 7px 14px;
  border-radius: 6px;
  margin: 14px 0 22px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  min-height: 32px;
  overflow: hidden;
}
.diligence-banner__dot {
  flex: 0 0 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #D97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}
.diligence-banner__label {
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #6B3F0A;
  white-space: nowrap;
}
.diligence-banner__sep { color: #C49463; flex: 0 0 auto; }
.diligence-banner__body {
  color: #6B3F0A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.diligence-banner__link {
  color: #6B3F0A;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
}
.diligence-banner__link:hover { text-decoration: underline; }
.diligence-banner strong { color: #6B3F0A; }
/* Mobile fallback: compress label + drop intermediate copy. */
@media (max-width: 640px) {
  .diligence-banner {
    padding: 6px 10px;
    font-size: 0.70rem;
    gap: 8px;
  }
  .diligence-banner__body { display: none; }
}

.content h1, .content h2, .content h3, .content h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--neu-950);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.content { font-size: 1.02rem; line-height: 1.62; }
.content h1 { font-size: clamp(1.5rem, 1.32rem + 0.9vw, 1.85rem); margin: 1.6rem 0 0.8rem; }
.content h2 {
  font-size: clamp(1.18rem, 1.06rem + 0.6vw, 1.35rem);
  margin: 2rem 0 0.7rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--neu-200);
}
.content h3 { font-size: clamp(1.0rem, 0.96rem + 0.25vw, 1.1rem); margin: 1.4rem 0 0.5rem; }
.content h4 { font-size: 0.95rem; margin: 1.1rem 0 0.4rem; color: var(--neu-700); }

.content p { margin: 0.82em 0; max-width: 74ch; }
.content ul, .content ol { padding-left: 1.45em; margin: 0.7em 0; max-width: 74ch; }
.content li { margin: 0.32em 0; }
.content blockquote {
  margin: 1em 0;
  padding: 0.6em 1em;
  border-left: 3px solid var(--terra-600);
  background: var(--terra-100);
  color: var(--neu-900);
  font-style: normal;
}
.content code {
  font-family: var(--mono);
  background: var(--neu-100);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.86em;
  color: var(--terra-900);
}
.content pre {
  background: var(--neu-950);
  color: #E2E8E2;
  padding: 14px 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.45;
}
.content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1em 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.content table > tbody, .content table > thead { display: table; width: 100%; min-width: 100%; }
@media (max-width: 760px) {
  .content table {
    font-size: 0.78rem;
    box-shadow: inset -10px 0 8px -8px rgba(11, 15, 18, 0.18);
  }
  .content th, .content td { padding: 6px 8px; white-space: normal; }
}
.content th, .content td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--neu-200);
  vertical-align: top;
}
.content th {
  background: var(--neu-100);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--neu-700);
}
.content hr {
  border: 0;
  border-top: 1px solid var(--neu-200);
  margin: 2rem 0;
}

.footer {
  border-top: 1px solid var(--neu-200);
  margin-top: 70px;
  padding: 22px 56px 60px;
  font-size: 0.82rem;
  color: var(--neu-700);
  background: var(--neu-100);
}
.footer .confid {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-700);
  margin-bottom: 8px;
}

/* download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 1.4rem 0 2rem;
}
.download-card {
  background: #fff;
  border: 1px solid var(--neu-200);
  border-radius: 8px;
  padding: 16px 18px;
  transition: border-color 120ms, transform 120ms;
}
.download-card:hover { border-color: var(--terra-600); transform: translateY(-1px); }
.download-card .kind {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-700);
  background: var(--terra-100);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.download-card a {
  display: inline-block;
  margin-top: 4px;
  font-weight: 500;
}

/* Homepage thesis blocks ,  problem / why-now / traction.
   Three distinct panels below the guided path, above the cal card.
   Design: ink-on-canvas, teal left-border accent, mono eyebrow. */
.home-thesis-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 32px 56px 0;
}
.thesis-block {
  padding: 28px 32px 28px 28px;
  border-left: 3px solid var(--em-600);
  background: transparent;
  border-bottom: 1px solid rgba(91,107,115,0.12);
}
.thesis-block:last-child { border-bottom: none; }
.thesis-block--problem { border-left-color: #5B6B73; }
.thesis-block--whynow { border-left-color: #0E8A8A; }
.thesis-block--traction { border-left-color: #047857; }
.thesis-block__eyebrow {
  font-family: var(--mono);
  font-size: 0.70rem;
  letter-spacing: 0.12em;
  color: var(--em-400);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.thesis-block--problem .thesis-block__eyebrow { color: #5B6B73; }
.thesis-block--whynow .thesis-block__eyebrow { color: #0E8A8A; }
.thesis-block--traction .thesis-block__eyebrow { color: #047857; }
.thesis-block__body p {
  margin: 0 0 0.8em;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--neu-800);
  max-width: 76ch;
}
.thesis-block__body p:last-child { margin-bottom: 0; }
.thesis-block__body ul {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.thesis-block__body li {
  font-size: 0.96rem;
  line-height: 1.60;
  color: var(--neu-800);
  max-width: 76ch;
}
.thesis-block__body li strong { color: var(--neu-900); font-weight: 600; }
.thesis-block__body a { color: var(--em-600); }
html[data-theme="dark"] .thesis-block__body p,
html[data-theme="dark"] .thesis-block__body li { color: var(--neu-200); }
html[data-theme="dark"] .thesis-block__body li strong { color: var(--neu-50); }
html[data-theme="dark"] .thesis-block { border-bottom-color: rgba(125,232,202,0.08); }
@media (max-width: 700px) {
  .home-thesis-blocks { margin: 22px 22px 0; }
  .thesis-block { padding: 20px 16px 20px 16px; border-left-width: 2px; }
}

/* Homepage cal embed card ,  theme-aware, iframe inherits cal.com auto theme.
   Phase-9: lazy-mount pattern. Initial card is ~220px tall (vs 580px iframe).
   Iframe is appended on click and stays mounted for the rest of the session. */
.home-cal-card {
  padding: 22px 32px;
  background: var(--surface-muted);
  border-radius: 14px;
  margin: 24px 56px 0;
}
.home-cal-card.is-mounted { padding-bottom: 26px; }
.home-cal-card__eyebrow {
  font-family: var(--mono); font-size: 0.74rem;
  color: var(--text-muted); letter-spacing: 0.10em;
  text-transform: uppercase; margin-bottom: 8px;
}
.home-cal-card__title {
  font-family: var(--display); font-size: 1.25rem;
  color: var(--text-primary); margin-bottom: 10px;
}
.home-cal-card__pitch {
  color: var(--text-muted);
  /* Phase-10 Item 2: clamp + balance keeps pitch on a tighter visual line at >=1440
     without truncating copy. Preserves narrow-viewport readability. */
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  line-height: 1.55;
  margin-bottom: 14px;
  max-width: 64ch;
  text-wrap: balance;
}
.home-cal-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0E8A8A;
  color: #FFFFFF;
  border: 1px solid #0E8A8A;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 138, 138, 0.25);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms ease,
              background 160ms ease;
}
.home-cal-card__cta:hover {
  background: var(--em-300);
  color: #06292B;
  border-color: var(--em-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 138, 138, 0.35);
}
.home-cal-card__cta:focus-visible {
  outline: 3px solid #7DE8CA;
  outline-offset: 3px;
}
.home-cal-card__cta-arrow { font-family: var(--mono); font-size: 1.0rem; }
.home-cal-card__note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.home-cal-card.is-mounted .home-cal-card__pitch,
.home-cal-card.is-mounted .home-cal-card__cta,
.home-cal-card.is-mounted .home-cal-card__note {
  display: none;
}
.home-cal-card__iframe {
  width: 100%; height: 580px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: var(--surface-card);
  color-scheme: light dark;
  margin-top: 12px;
}
html[data-theme="dark"] .home-cal-card__cta {
  background: #14B5B5;
  border-color: #14B5B5;
  color: #051416;
  box-shadow: 0 4px 14px rgba(20, 181, 181, 0.35);
}
html[data-theme="dark"] .home-cal-card__cta:hover {
  background: #7DE8CA;
  color: #051416;
  box-shadow: 0 8px 22px rgba(125, 232, 202, 0.45);
}
@media (max-width: 640px) {
  .home-cal-card { margin: 22px 22px 0; padding: 18px 18px; }
  .home-cal-card__cta { width: 100%; justify-content: center; }
}

/* index hero ,  hero stays dark-on-dark in BOTH themes (it's a teal slab by design).
   Explicit hex prevents dark-theme token-flip from inverting hero text. */
.hero {
  padding: 56px 56px 30px;
  background: linear-gradient(135deg, #041F1F 0%, #0A5454 70%, #0E8A8A 100%);
  color: #FAFAF7;
  border-bottom: 1px solid #062E2E;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.8rem;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
  color: #FAFAF7;
}
.hero .lead { font-size: 1.1rem; max-width: 720px; opacity: 0.92; color: #F2F0EA; }
.hero .stats {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin-top: 28px;
  font-family: var(--mono); font-size: 0.82rem;
  color: #7DE8CA;
}
.hero .stats span { letter-spacing: 0.06em; text-transform: uppercase; }
.hero a { color: #7DE8CA; }
.hero a:hover { color: #FAFAF7; }
/* Hero is dark-on-dark in BOTH themes ,  re-pin nested elements so the
   dark-theme --neu-* token flip does not invert text inside the hero. */
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero .lead,
html[data-theme="dark"] .hero .ai-hero-chat,
html[data-theme="dark"] .hero .ai-hero-chat__title,
html[data-theme="dark"] .hero .investor-path__head,
html[data-theme="dark"] .hero .investor-path a,
html[data-theme="dark"] .hero .investor-path__ask { color: #FAFAF7; }
html[data-theme="dark"] .hero .lead { color: #F2F0EA; }
html[data-theme="dark"] .hero .ai-hero-chat__sub { color: #E8E5DD; }
html[data-theme="dark"] .hero .ai-hero-chat__input {
  background: #041F1F; color: #FAFAF7; border-color: #0A5454;
}
html[data-theme="dark"] .hero .ai-hero-chat__input::placeholder { color: #A8A99E; }
html[data-theme="dark"] .hero .investor-path__head strong { color: #FAFAF7; }

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 40px 56px 20px;
}
.section-card {
  background: #fff;
  border: 1px solid var(--neu-200);
  border-radius: 10px;
  padding: 20px 22px;
  transition: all 150ms;
  /* P10B Item 1: uniform card heights so the grid aligns at 1024 */
  min-height: 168px;
  display: flex;
  flex-direction: column;
}
.section-card:hover { border-color: var(--terra-600); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(14, 138, 138, 0.08); }
.section-card .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-600);
  display: block;
  margin-bottom: 4px;
}
.section-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  margin: 0 0 6px;
  color: var(--neu-950);
}
/* P10B Item 1: body clamped to 2 lines max ,  prevents 4-line wraps on dense sections at 1024 */
.section-card p, .section-card__body {
  color: var(--neu-700);
  font-size: 0.93rem;
  margin: 0 0 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.section-card .count {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--neu-400);
  margin-top: auto; /* push count to bottom so card heights align */
}
.section-card a { display: block; color: inherit; }
.section-card a:hover { text-decoration: none; }
@media (max-width: 760px) {
  .section-card { min-height: 144px; }
}

.recommend {
  padding: 30px 56px 60px;
}
.recommend h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 16px;
}
.recommend ol { padding-left: 1.2em; }
.recommend ol li { margin: 0.55em 0; font-size: 0.97rem; }
.recommend .time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--neu-400);
  margin-left: 0.5em;
}

.kbd-help {
  position: fixed;
  bottom: 16px; right: 16px;
  background: var(--neu-950);
  color: var(--neu-50);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  z-index: 100;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 280px;
}
.kbd-help.visible { display: block; }
.kbd-help kbd {
  font-family: var(--mono);
  background: var(--terra-700);
  color: var(--em-300);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.78rem;
}

iframe.deck-frame {
  width: 100%;
  height: min(78vh, 760px);
  min-height: 560px;
  border: 1px solid var(--neu-200);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 84, 84, 0.14);
}

/* mobile */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: relative; top: auto; max-height: none;
    border-right: none; border-bottom: 1px solid var(--neu-200);
  }
  .main { padding: 26px 22px 80px; }
  .hero, .section-grid, .recommend, .footer { padding-left: 22px; padding-right: 22px; }
  .hero h1 { font-size: 2.1rem; }
}

/* ============================================================
   GUIDED FUNDRAISE EXPERIENCE ,  Phase-7 Agent C, 2026-05-27.
   Ribbon ("Read the 10-minute version") + 5-stop guided path +
   collapsible all-sections fold + ten-min single-page route.
   ============================================================ */

/* Ribbon ,  operator-quiet teal strap, sits above the hero. */
.ten-min-ribbon {
  display: flex; align-items: center; gap: 14px;
  margin: 0 56px;
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(14, 138, 138, 0.12) 0%, rgba(14, 138, 138, 0.04) 100%);
  border: 1px solid rgba(14, 138, 138, 0.22);
  border-left: 3px solid var(--terra-600);
  border-radius: 8px;
  text-decoration: none;
  color: var(--neu-950);
  font-family: var(--font);
  transition: background 150ms, border-color 150ms, transform 150ms;
}
.ten-min-ribbon:hover {
  background: linear-gradient(90deg, rgba(14, 138, 138, 0.18) 0%, rgba(14, 138, 138, 0.06) 100%);
  border-color: var(--terra-600);
  text-decoration: none;
  transform: translateY(-1px);
}
.ten-min-ribbon__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--terra-700);
}
.ten-min-ribbon__claim {
  font-family: var(--display); font-weight: 500; font-size: 1.02rem;
  color: var(--neu-950);
  flex: 1;
}
.ten-min-ribbon__arrow {
  font-family: var(--mono); font-size: 1.1rem; color: var(--terra-600);
}
html[data-theme="dark"] .ten-min-ribbon {
  background: linear-gradient(90deg, rgba(20, 181, 181, 0.10) 0%, rgba(20, 181, 181, 0.03) 100%);
  border-color: rgba(20, 181, 181, 0.30);
  border-left-color: var(--accent);
  color: var(--text-primary);
}
html[data-theme="dark"] .ten-min-ribbon__eyebrow,
html[data-theme="dark"] .ten-min-ribbon__arrow { color: var(--accent-hover); }
html[data-theme="dark"] .ten-min-ribbon__claim { color: var(--text-primary); }

/* Guided path ,  5 horizontal stops on desktop, stacked on mobile. */
.guided-path {
  padding: 32px 56px 8px;
}
.guided-path__head {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 14px;
}
.guided-path__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-600);
}
.guided-path__claim {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.16rem;
  color: var(--neu-950);
}
.guided-path__stops {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.guided-path__stop { margin: 0; }
.guided-path__card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "num title"
    "num desc"
    "arrow arrow";
  gap: 6px 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--neu-200);
  border-radius: 10px;
  text-decoration: none;
  color: var(--neu-950);
  min-height: 132px;
  transition: border-color 150ms, transform 150ms, box-shadow 150ms;
}
.guided-path__card:hover {
  border-color: var(--terra-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 138, 138, 0.14);
  text-decoration: none;
}
.guided-path__num {
  grid-area: num;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--terra-600);
  align-self: start;
  padding-top: 2px;
  letter-spacing: 0.04em;
}
.guided-path__title {
  grid-area: title;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--neu-950);
}
.guided-path__desc {
  grid-area: desc;
  font-size: 0.86rem;
  color: var(--neu-700);
  line-height: 1.4;
}
.guided-path__arrow {
  grid-area: arrow;
  font-family: var(--mono);
  font-size: 1.0rem;
  color: var(--terra-600);
  justify-self: end;
  align-self: end;
  opacity: 0.7;
  transition: opacity 150ms, transform 150ms;
}
.guided-path__card:hover .guided-path__arrow {
  opacity: 1;
  transform: translateX(3px);
}
html[data-theme="dark"] .guided-path__card {
  background: var(--surface-card);
  border-color: var(--surface-border);
  color: var(--text-primary);
}
html[data-theme="dark"] .guided-path__card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(20, 181, 181, 0.18);
}
html[data-theme="dark"] .guided-path__title { color: var(--text-primary); }
html[data-theme="dark"] .guided-path__desc { color: var(--text-muted); }
html[data-theme="dark"] .guided-path__num,
html[data-theme="dark"] .guided-path__arrow,
html[data-theme="dark"] .guided-path__eyebrow { color: var(--accent-hover); }
html[data-theme="dark"] .guided-path__claim { color: var(--text-primary); }

/* Phase-9: tablet ,  2 columns, mid-tier padding for cards. */
@media (max-width: 1100px) {
  .guided-path__stops { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .guided-path__card { padding: 16px 18px; min-height: 116px; }
}
/* Phase-9: mobile ,  1 column, tighter padding. */
@media (max-width: 640px) {
  .guided-path { padding: 22px 22px 6px; }
  .guided-path__stops { grid-template-columns: 1fr; gap: 10px; }
  .guided-path__card { padding: 14px 16px; min-height: 96px; }
  .ten-min-ribbon { margin: 0 22px; flex-wrap: wrap; gap: 6px; }
}

/* All-sections collapsible fold ,  moves the 11-card grid below the fold. */
.all-sections-fold {
  margin: 22px 56px 8px;
  border: 1px solid var(--neu-200);
  border-radius: 10px;
  background: var(--neu-50);
  overflow: hidden;
}
.all-sections-fold[open] {
  background: #fff;
  box-shadow: 0 8px 28px rgba(11, 15, 18, 0.06);
}
.all-sections-fold__summary {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  transition: background 150ms;
}
.all-sections-fold__summary::-webkit-details-marker { display: none; }
.all-sections-fold__summary:hover { background: var(--neu-100); }
.all-sections-fold__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--neu-700);
}
.all-sections-fold__claim {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.06rem;
  color: var(--neu-950);
  flex: 1;
}
.all-sections-fold__arrow {
  font-family: var(--mono);
  color: var(--terra-600);
  transition: transform 200ms;
}
.all-sections-fold[open] .all-sections-fold__arrow { transform: rotate(180deg); }
.all-sections-fold .section-grid { padding: 6px 22px 26px; }
html[data-theme="dark"] .all-sections-fold {
  background: var(--surface-muted);
  border-color: var(--surface-border);
}
html[data-theme="dark"] .all-sections-fold[open] { background: var(--surface-card); }
html[data-theme="dark"] .all-sections-fold__summary:hover { background: rgba(20, 181, 181, 0.06); }
html[data-theme="dark"] .all-sections-fold__eyebrow { color: var(--text-muted); }
html[data-theme="dark"] .all-sections-fold__claim { color: var(--text-primary); }
html[data-theme="dark"] .all-sections-fold__arrow { color: var(--accent-hover); }

@media (max-width: 640px) {
  .all-sections-fold { margin: 18px 22px 8px; }
}

/* ============================================================
   INVESTOR IN 10 MINUTES ,  single-page route /00-investor-in-10-minutes/.
   Light, airy, generous whitespace. Inherits brand tokens.
   ============================================================ */
.ten-min {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 0 40px;
  font-family: var(--font);
  color: var(--neu-950);
  line-height: 1.65;
}
.ten-min__head {
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--neu-200);
  margin-bottom: 32px;
}
.ten-min__eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-600);
  margin-bottom: 12px;
}
.ten-min__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  color: var(--neu-950);
}
.ten-min__lead {
  font-size: 1.06rem;
  color: var(--neu-700);
  margin: 0 0 18px;
  max-width: 64ch;
}
.ten-min__back {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--terra-600);
}
.ten-min__readmeter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
}
.ten-min__rm-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--terra-700);
  background: rgba(14, 138, 138, 0.08);
  border: 1px solid rgba(14, 138, 138, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
}
.ten-min__sec {
  padding: 28px 0 12px;
  border-top: 1px solid var(--neu-100);
}
.ten-min__sec:first-of-type { border-top: none; }
.ten-min__sec-meta {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 10px;
}
.ten-min__num {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--terra-600);
}
.ten-min__time {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--neu-400);
}
.ten-min__h {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.84rem;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  color: var(--neu-950);
}
.ten-min__h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.14rem;
  margin: 22px 0 8px;
  color: var(--neu-950);
}
.ten-min__doctrine {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.5;
  margin: 4px 0 16px;
  color: var(--neu-950);
  padding: 14px 18px;
  background: rgba(14, 138, 138, 0.05);
  border-left: 3px solid var(--terra-600);
  border-radius: 0 8px 8px 0;
}
.ten-min__oneliner {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.32rem;
  margin: 16px 0 8px;
  color: var(--neu-950);
}
.ten-min__category {
  color: var(--neu-700);
  font-size: 1.0rem;
}
.ten-min__sub {
  color: var(--neu-700);
  font-size: 0.94rem;
  margin-top: 14px;
}
.ten-min__list { padding-left: 1.2em; margin: 8px 0 6px; }
.ten-min__list li { margin: 6px 0; font-size: 1.0rem; }
.ten-min__list--links li a {
  font-family: var(--mono);
  font-size: 0.94rem;
  color: var(--terra-600);
}
.ten-min__expansion {
  list-style: none;
  padding: 0;
  margin: 8px 0 6px;
  display: flex; flex-wrap: wrap; gap: 8px 4px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.06rem;
}
.ten-min__expansion li {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--neu-950);
}
.ten-min__arrow {
  font-family: var(--mono);
  color: var(--terra-600);
  font-weight: 400;
  margin-left: 2px;
}
.ten-min__mono {
  font-family: var(--mono);
  font-size: 0.96em;
  color: var(--terra-700);
}
.ten-min__receipts {
  font-family: var(--mono);
  font-size: 0.86rem;
  background: #0B0F12;
  color: #C8E6E1;
  padding: 18px 22px;
  border-radius: 8px;
  border: 1px solid var(--neu-200);
  margin: 10px 0 6px;
  overflow-x: auto;
  line-height: 1.7;
}
.ten-min__receipts code { background: transparent; color: inherit; padding: 0; }
.ten-min__chain {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 12px 0 6px;
}
.ten-min__chip {
  font-family: var(--mono);
  font-size: 0.86rem;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--neu-200);
  border-radius: 999px;
  color: var(--neu-950);
}
.ten-min__chip--ok {
  background: rgba(125, 232, 202, 0.18);
  border-color: rgba(14, 138, 138, 0.35);
  color: var(--terra-700);
  font-weight: 500;
}
.ten-min__ask-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 12px 0 20px;
}
.ten-min__ask-cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--neu-200);
  border-radius: 10px;
}
.ten-min__ask-k {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--terra-600);
}
.ten-min__ask-v {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.36rem;
  color: var(--neu-950);
}
.ten-min__ask-sub {
  font-size: 0.88rem;
  color: var(--neu-700);
}
.ten-min__nextgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.ten-min__next-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--neu-200);
  border-radius: 10px;
  text-decoration: none;
  color: var(--neu-950);
  transition: border-color 150ms, transform 150ms, box-shadow 150ms;
}
.ten-min__next-card:hover {
  border-color: var(--terra-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 138, 138, 0.12);
  text-decoration: none;
}
.ten-min__next-card--full { grid-column: 1 / -1; }
.ten-min__next-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  color: var(--terra-600);
}
.ten-min__next-card strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--neu-950);
}
.ten-min__next-card span:not(.ten-min__next-num) {
  font-size: 0.88rem;
  color: var(--neu-700);
}

/* Dark-mode overrides ,  ten-min stays mostly light by design (reviewer note),
   but if a viewer flips dark mode we still want it legible. */
html[data-theme="dark"] .ten-min { color: var(--text-primary); }
html[data-theme="dark"] .ten-min__title,
html[data-theme="dark"] .ten-min__h,
html[data-theme="dark"] .ten-min__h3,
html[data-theme="dark"] .ten-min__oneliner,
html[data-theme="dark"] .ten-min__ask-v,
html[data-theme="dark"] .ten-min__next-card strong { color: var(--text-primary); }
html[data-theme="dark"] .ten-min__lead,
html[data-theme="dark"] .ten-min__category,
html[data-theme="dark"] .ten-min__sub,
html[data-theme="dark"] .ten-min__ask-sub,
html[data-theme="dark"] .ten-min__next-card span:not(.ten-min__next-num) { color: var(--text-muted); }
html[data-theme="dark"] .ten-min__eyebrow,
html[data-theme="dark"] .ten-min__num,
html[data-theme="dark"] .ten-min__arrow,
html[data-theme="dark"] .ten-min__ask-k,
html[data-theme="dark"] .ten-min__next-num,
html[data-theme="dark"] .ten-min__back { color: var(--accent-hover); }
html[data-theme="dark"] .ten-min__doctrine {
  background: rgba(20, 181, 181, 0.08);
  border-left-color: var(--accent);
  color: var(--text-primary);
}
html[data-theme="dark"] .ten-min__chip {
  background: var(--surface-card);
  border-color: var(--surface-border);
  color: var(--text-primary);
}
html[data-theme="dark"] .ten-min__chip--ok {
  background: rgba(20, 181, 181, 0.18);
  border-color: rgba(20, 181, 181, 0.42);
  color: var(--accent-hover);
}
html[data-theme="dark"] .ten-min__ask-cell,
html[data-theme="dark"] .ten-min__next-card {
  background: var(--surface-card);
  border-color: var(--surface-border);
}
html[data-theme="dark"] .ten-min__rm-pill {
  background: rgba(20, 181, 181, 0.10);
  border-color: rgba(20, 181, 181, 0.28);
  color: var(--accent-hover);
}
html[data-theme="dark"] .ten-min__expansion li { color: var(--text-primary); }
html[data-theme="dark"] .ten-min__mono { color: var(--accent-hover); }
html[data-theme="dark"] .ten-min__sec { border-top-color: var(--surface-border); }
html[data-theme="dark"] .ten-min__head { border-bottom-color: var(--surface-border); }

@media (max-width: 800px) {
  .ten-min { padding: 4px 0 30px; }
  .ten-min__ask-grid { grid-template-columns: 1fr; }
  .ten-min__nextgrid { grid-template-columns: 1fr; }
  .ten-min__next-card--full { grid-column: auto; }
}

/* ============================================================
   AI AGENT ,  global presence (status chip + floating pill + overlay chat)
   ============================================================ */
.ai-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--neu-50); text-transform: uppercase;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(125, 232, 202, 0.08);
  border: 1px solid rgba(125, 232, 202, 0.30);
  text-decoration: none;
}
.ai-chip:hover { background: rgba(125, 232, 202, 0.16); text-decoration: none; }
.ai-chip__dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--em-300);
  box-shadow: 0 0 0 0 rgba(125, 232, 202, 0.7);
  animation: aiPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.ai-chip[data-state="offline"] .ai-chip__dot { background: #c97676; animation: none; box-shadow: none; }
.ai-chip[data-state="offline"] { background: rgba(201, 118, 118, 0.10); border-color: rgba(201, 118, 118, 0.30); }
.ai-chip[data-state="checking"] .ai-chip__dot { background: #d4af37; }

@keyframes aiPulse {
  0%   { box-shadow: 0 0 0 0 rgba(125, 232, 202, 0.65); }
  70%  { box-shadow: 0 0 0 8px rgba(125, 232, 202, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 232, 202, 0); }
}

/* Floating pill ,  bottom right, present on every page */
.ai-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 100;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--terra-950); color: var(--neu-50);
  border: 1px solid var(--terra-700);
  border-radius: 999px;
  font-family: var(--display); font-size: 0.98rem; font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(6, 46, 46, 0.32), 0 2px 6px rgba(0,0,0,0.10);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.ai-fab:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(6, 46, 46, 0.40), 0 2px 6px rgba(0,0,0,0.12); }
.ai-fab__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--em-300);
  box-shadow: 0 0 0 0 rgba(125, 232, 202, 0.7);
  animation: aiPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.ai-fab__label { letter-spacing: 0.01em; }
.ai-fab__hint { font-family: var(--mono); font-size: 0.72rem; color: var(--neu-400); margin-left: 4px; }
@media (max-width: 640px) { .ai-fab__hint { display: none; } }

/* Overlay chat panel */
.ai-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: rgba(15, 20, 16, 0.45);
  backdrop-filter: blur(2px);
}
.ai-overlay.is-open { display: flex; justify-content: center; align-items: flex-end; }
@media (min-width: 768px) {
  .ai-overlay.is-open { justify-content: flex-end; align-items: stretch; padding: 22px; }
}
.ai-panel {
  background: var(--neu-50);
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -16px 60px rgba(6, 46, 46, 0.28);
  max-height: 80vh;
  overflow: hidden;
}
@media (min-width: 768px) { .ai-panel { border-radius: 16px; max-height: 88vh; } }
.ai-panel__head {
  padding: 16px 18px;
  background: var(--terra-950); color: var(--neu-50);
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--terra-900);
}
.ai-panel__title { font-family: var(--display); font-size: 1.05rem; font-weight: 500; }
/* P10B Item 3: sprite icon-chat in overlay head ,  colors via currentColor, em-300 accent */
.ai-panel__icon {
  width: 1.35rem; height: 1.35rem;
  color: var(--em-300);
  flex: 0 0 auto;
}
.ai-panel__sub { font-family: var(--mono); font-size: 0.72rem; color: var(--em-300); letter-spacing: 0.06em; margin-top: 2px; }
.ai-panel__close {
  margin-left: auto; background: transparent; color: var(--neu-200);
  border: none; cursor: pointer; padding: 6px 10px; font-size: 1.2rem; border-radius: 8px;
}
.ai-panel__close:hover { background: rgba(255,255,255,0.08); color: var(--neu-50); }
.ai-panel__body {
  flex: 1; overflow-y: auto; padding: 16px 18px;
  background: linear-gradient(180deg, var(--neu-50) 0%, var(--neu-100) 100%);
}
.ai-msg { margin-bottom: 14px; }
.ai-msg__role { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.10em; color: var(--neu-700); text-transform: uppercase; margin-bottom: 4px; }
.ai-msg__body {
  font-family: var(--font); font-size: 0.94rem; line-height: 1.55;
  color: var(--neu-950);
  background: white; padding: 10px 13px; border-radius: 10px;
  border: 1px solid var(--neu-200);
  white-space: pre-wrap;
}
.ai-msg--user .ai-msg__body { background: var(--terra-50); border-color: var(--terra-100); }
.ai-msg__sources { font-family: var(--mono); font-size: 0.72rem; color: var(--neu-700); margin-top: 6px; }

/* AI response source-pills ,  render at TOP of response card. Prominent. */
.ask-result__source-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--neu-200);
}
.ask-result__source-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--neu-700);
  text-transform: uppercase;
}
.ask-result__source-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.2;
  background: var(--accent);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 120ms ease;
  border: 1px solid var(--accent);
}
.ask-result__source-pill:hover,
.ask-result__source-pill:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
  outline: none;
}
html[data-theme="dark"] .ask-result__source-pill {
  background: var(--accent);
  color: #06231f;
  border-color: var(--accent);
}
html[data-theme="dark"] .ask-result__source-pill:hover,
html[data-theme="dark"] .ask-result__source-pill:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #06231f;
}

.ai-panel__compose {
  display: flex; gap: 8px; padding: 12px 14px; background: white;
  border-top: 1px solid var(--neu-200);
}
.ai-panel__input {
  flex: 1; font-family: var(--font); font-size: 0.95rem;
  padding: 10px 12px; border: 1px solid var(--neu-200); border-radius: 10px;
  outline: none;
}
.ai-panel__input:focus { border-color: var(--terra-600); box-shadow: 0 0 0 3px rgba(14,138,138,0.12); }
.ai-panel__send {
  background: var(--terra-600); color: white; border: none;
  padding: 10px 16px; border-radius: 10px; font-family: var(--font); font-weight: 600;
  cursor: pointer;
}
.ai-panel__send:hover { background: var(--terra-700); }
.ai-panel__send:disabled { opacity: 0.55; cursor: progress; }
.ai-panel__suggestions {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px 4px;
  background: var(--neu-100);
  border-top: 1px solid var(--neu-200);
}
.ai-suggest {
  font-family: var(--mono); font-size: 0.72rem; color: var(--terra-700);
  background: white; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--neu-200); cursor: pointer;
}
.ai-suggest:hover { background: var(--terra-50); }

/* Homepage embedded chat card */
.ai-hero-chat {
  margin-top: 22px;
  background: linear-gradient(135deg, var(--terra-950) 0%, var(--terra-900) 100%);
  border-radius: 14px; padding: 22px 26px; color: var(--neu-50);
}
.ai-hero-chat__eyebrow { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--em-300); text-transform: uppercase; }
.ai-hero-chat__title { font-family: var(--display); font-size: 1.32rem; margin: 8px 0 6px; font-weight: 500; }
.ai-hero-chat__sub { font-size: 0.94rem; color: var(--neu-200); margin-bottom: 14px; max-width: 64ch; }
.ai-hero-chat__row { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-hero-chat__input {
  flex: 1; min-width: 240px; font-family: var(--font); font-size: 0.95rem;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--terra-700);
  background: var(--terra-950); color: var(--neu-50);
}
.ai-hero-chat__input::placeholder { color: var(--neu-400); }
.ai-hero-chat__input:focus { outline: none; border-color: var(--em-300); }
.ai-hero-chat__btn {
  background: var(--em-300); color: var(--terra-950); border: none;
  padding: 10px 18px; border-radius: 10px; font-family: var(--font); font-weight: 600;
  cursor: pointer;
}
.ai-hero-chat__btn:hover { background: white; }
.ai-hero-chat__suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ai-hero-chat__sug {
  font-family: var(--mono); font-size: 0.72rem; color: var(--em-300);
  background: rgba(125, 232, 202, 0.08);
  border: 1px solid rgba(125, 232, 202, 0.30);
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.ai-hero-chat__sug:hover { background: rgba(125, 232, 202, 0.18); }

/* Investor in 10 minutes ,  first-read path on homepage */
.investor-path {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(112px, 1fr));
  gap: 8px;
  align-items: stretch;
}
.investor-path__head,
.investor-path a,
.investor-path__ask {
  border: 1px solid rgba(125, 232, 202, 0.26);
  background: rgba(4, 31, 31, 0.46);
  color: var(--neu-50);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}
.investor-path__head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.investor-path__head span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--em-300);
}
.investor-path__head strong {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.18;
}
.investor-path a,
.investor-path__ask {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.investor-path__ask { cursor: pointer; }
.investor-path a span,
.investor-path__ask span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--em-300);
}
.investor-path a:hover,
.investor-path__ask:hover {
  background: rgba(125, 232, 202, 0.12);
  color: white;
  text-decoration: none;
}

/* ============================================================
   Magic-link personalization banner (?v=name)
   ============================================================ */
.ml-banner {
  display: none;
  background: linear-gradient(90deg, var(--em-100) 0%, var(--terra-50) 100%);
  border-left: 3px solid var(--em-600);
  padding: 10px 18px;
  font-family: var(--font); font-size: 0.92rem; color: var(--terra-900);
}
.ml-banner.is-active { display: block; }
.ml-banner__name { font-weight: 600; color: var(--terra-700); }
.ml-banner__meta { font-family: var(--mono); font-size: 0.74rem; color: var(--neu-700); letter-spacing: 0.06em; margin-left: 6px; }

/* ============================================================
   Activity ticker (homepage) ,  live signals from /health + KV
   ============================================================ */
.act-ticker {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin-top: 18px;
  background: rgba(10, 84, 84, 0.04);
  border: 1px solid var(--terra-100);
  border-radius: 12px; padding: 14px 16px;
}
.act-cell { display: flex; flex-direction: column; gap: 4px; }
.act-cell__k { font-family: var(--mono); font-size: 0.70rem; color: var(--neu-700); text-transform: uppercase; letter-spacing: 0.10em; }
.act-cell__v { font-family: var(--display); font-size: 1.05rem; color: var(--terra-900); font-weight: 500; }
.act-cell__v .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--em-600); margin-right: 4px; vertical-align: middle; }
.act-cell__v.is-offline .dot { background: #c97676; }

/* ============================================================
   Footer CTA bar ,  bottom of every page
   ============================================================ */
.footer-cta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--terra-950); color: var(--neu-50);
  padding: 14px 22px;
}
.footer-cta__label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.10em; color: var(--em-300); text-transform: uppercase; }
.footer-cta__link {
  font-family: var(--font); font-size: 0.92rem; color: var(--neu-50);
  padding: 6px 12px; border: 1px solid var(--terra-700); border-radius: 8px;
  text-decoration: none;
}
.footer-cta__link:hover { background: var(--terra-900); text-decoration: none; }
/* Phase-9: sharpen primary CTA contrast. Solid teal-700 background, white text,
   slight extra vertical padding for weight, subtle lift shadow.
   Goal: primary CTA reads as THE single action vs 4 ghost links. */
.footer-cta__link--primary {
  background: #0E8A8A;
  border-color: #0E8A8A;
  color: #FFFFFF;
  font-weight: 600;
  padding: 9px 16px;
  box-shadow: 0 4px 14px rgba(14, 138, 138, 0.25);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms ease,
              background 160ms ease;
}
.footer-cta__link--primary:hover {
  background: var(--em-300);
  color: #06292B;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 138, 138, 0.35);
}
.footer-cta__link--primary:focus-visible {
  outline: 3px solid #7DE8CA;
  outline-offset: 2px;
}
html[data-theme="dark"] .footer-cta__link--primary {
  background: #14B5B5;
  border-color: #14B5B5;
  color: #051416;
  box-shadow: 0 4px 14px rgba(20, 181, 181, 0.35);
}
html[data-theme="dark"] .footer-cta__link--primary:hover {
  background: #7DE8CA;
  color: #051416;
  box-shadow: 0 8px 22px rgba(125, 232, 202, 0.45);
}

/* Phase-10 Item 1: narrow-desktop horizontal scroll for footer-cta.
   Between 720px (mobile breakpoint) and 1100px (typical narrow desktop) the 5
   links wrap weirdly. Convert to a horizontal scroll-snap rail with a fading
   right edge so investors can see there is more content. */
@media (min-width: 720px) and (max-width: 1100px) {
  .footer-cta {
    position: relative;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--neu-400) transparent;
    -webkit-overflow-scrolling: touch;
    /* Fade-edge gradient on the right to hint more content. */
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 36px), transparent 100%);
  }
  .footer-cta::-webkit-scrollbar { height: 6px; }
  .footer-cta::-webkit-scrollbar-track { background: transparent; }
  .footer-cta::-webkit-scrollbar-thumb { background: var(--neu-400); border-radius: 999px; }
  .footer-cta__label,
  .footer-cta__link {
    white-space: nowrap;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* ============================================================
   Audit footer ,  Phase-8 consolidation.
   Wraps compliance-posture + live-strip + audit-strip + live-deploy-ticker
   into ONE dark slab with internal spacing instead of 4 stacked colored slabs.
   ============================================================ */
.audit-footer {
  background: #050709;
  color: var(--neu-200);
  border-top: 1px solid var(--terra-900);
}
.audit-footer .compliance-posture,
.audit-footer .live-strip,
.audit-footer .audit-strip,
.audit-footer .live-deploy-ticker {
  background: transparent;
  border-top: 1px solid rgba(125, 232, 202, 0.08);
  padding-top: 8px; padding-bottom: 8px;
}
.audit-footer .compliance-posture { border-top: none; padding-top: 12px; }
.audit-footer .live-deploy-ticker { padding-bottom: 12px; }

/* ============================================================
   Live URL strip ,  every canonical live route on every page
   ============================================================ */
.live-strip {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--terra-900); color: var(--neu-50);
  padding: 10px 22px;
  border-top: 1px solid var(--terra-700);
  font-family: var(--mono); font-size: 0.78rem;
}
.live-strip__label {
  color: var(--em-300); letter-spacing: 0.10em; text-transform: uppercase;
  font-size: 0.70rem;
}
.live-strip__link {
  color: var(--neu-50); padding: 3px 9px; border: 1px solid var(--terra-700);
  border-radius: 999px; text-decoration: none;
}
.live-strip__link:hover { background: var(--terra-700); text-decoration: none; }

/* ============================================================
   Audit chrome strip ,  deploy receipts on every page
   ============================================================ */
.audit-strip {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  background: var(--neu-950); color: var(--neu-200);
  padding: 8px 22px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em;
  border-top: 1px solid var(--neu-900);
}
.audit-strip__k {
  color: var(--em-300); text-transform: uppercase; letter-spacing: 0.10em;
  font-size: 0.66rem;
}
.audit-strip__v { color: var(--neu-100); }

/* ============================================================
   Compliance posture strip ,  procurement-safe claims on every page
   ============================================================ */
.compliance-posture {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline;
  background: var(--terra-950); color: var(--neu-100);
  padding: 8px 22px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em;
  border-top: 1px solid var(--terra-900);
}
.compliance-posture__label {
  color: var(--em-300); text-transform: uppercase; letter-spacing: 0.10em;
  font-size: 0.66rem;
}
.compliance-posture__claim { color: var(--neu-50); }
.compliance-posture__sep { color: var(--em-300); opacity: 0.7; }
@media (max-width: 760px) {
  .compliance-posture { padding: 8px 14px; font-size: 0.70rem; }
  .compliance-posture__sep { display: none; }
}

/* ============================================================
   Section intro strap ,  small mono line above section card grid
   Used on 01-pitch index for the five-stage expansion statement.
   ============================================================ */
.section-intro-strap {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline;
  background: #F0F8F6;
  border-left: 3px solid #0E8A8A;
  padding: 10px 16px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--terra-700);
}
.section-intro-strap__label {
  color: var(--terra-700);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 0.66rem;
  font-weight: 600;
}
.section-intro-strap__claim {
  color: var(--terra-700);
}
@media (max-width: 760px) {
  .section-intro-strap { padding: 10px 14px; font-size: 0.74rem; }
}

/* ============================================================
   "Summarize this page" floating action ,  top of every page
   ============================================================ */
.summarize-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 8px 12px 8px 14px;
  background: transparent;
  border: none;
  border-left: 2px solid var(--terra-600);
  border-radius: 0;
}
.summarize-bar__label { font-family: var(--mono); font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.10em; text-transform: uppercase; }
.summarize-bar__btn {
  font-family: var(--font); font-size: 0.82rem; padding: 5px 11px; border-radius: 6px;
  background: var(--terra-700); border: 1px solid var(--terra-700); color: white; cursor: pointer;
  font-weight: 600;
}
.summarize-bar__btn:hover { background: var(--terra-900); }
.summarize-bar__modes { display: flex; flex-wrap: wrap; gap: 5px; }
.summarize-bar__mode {
  font-family: var(--font); font-size: 0.75rem; padding: 4px 9px; border-radius: 999px;
  background: transparent; border: 1px solid var(--surface-border); color: var(--text-muted); cursor: pointer;
}
.summarize-bar__mode:hover, .summarize-bar__mode.is-active {
  border-color: var(--terra-200); color: var(--terra-800); background: var(--terra-50);
}
.summarize-bar__out {
  flex: 1 1 100%; margin-top: 8px; padding: 0;
  background: white; border: 1px solid var(--neu-200); border-radius: 8px;
  font-family: var(--font); font-size: 0.92rem; line-height: 1.55; color: var(--neu-950);
  display: none; overflow: hidden;
}
.summarize-bar__out.is-visible { display: block; }
.investor-brief { padding: 14px; }
.investor-brief__eyebrow {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--terra-700); margin-bottom: 8px;
}
.investor-brief__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.investor-brief__section {
  border: 1px solid var(--neu-200); border-radius: 8px; padding: 10px 12px;
  background: #fffdf8;
}
.investor-brief__section h3 {
  margin: 0 0 6px; font-family: var(--mono); font-size: 0.72rem;
  color: var(--terra-700); letter-spacing: 0.08em; text-transform: uppercase;
}
.investor-brief__section p { margin: 0; color: var(--neu-900); }
.investor-brief__section ul { margin: 0; padding-left: 18px; }
.investor-brief__section li { margin: 3px 0; }
.investor-brief__section--wide { grid-column: 1 / -1; background: rgba(125, 232, 202, 0.08); border-color: var(--terra-100); }
.investor-brief__section--risk { background: #fff8f1; border-color: #f2d6b8; }
.investor-brief__section--script { background: #f8fbfb; border-color: var(--terra-100); }
.investor-brief__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.investor-brief__sources span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--terra-100);
  border-radius: 999px;
  background: var(--terra-50);
  color: var(--terra-700);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.investor-brief__src {
  display: block; margin-top: 10px; font-family: var(--mono); font-size: 0.70rem;
  color: var(--neu-700); letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .investor-brief__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Mobile sidebar ,  collapse to drawer on small screens
   ============================================================ */
.mobile-menu-toggle {
  display: none;
  background: transparent; border: 1px solid var(--terra-700); color: var(--neu-50);
  padding: 6px 12px; border-radius: 6px; font-family: var(--font); font-size: 0.85rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .mobile-menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .topbar .center { display: none; }
  .topbar { padding: 10px 14px; gap: 8px; }
  .topbar .brand { font-size: 1.05rem; white-space: nowrap; }
  /* Hide "Sections 01-11" link on mobile ,  sidebar already has the nav. */
  .topbar .right a[href="/#sections"] { display: none; }
  .topbar .right { gap: 6px; font-size: 0.74rem; }
  .sources-badge { padding: 4px 8px; font-size: 0.68rem; }
  .dark-mode-toggle { width: 30px; height: 30px; margin-left: 4px; }
  .sidebar {
    position: fixed; top: 56px; left: 0; bottom: 0; width: 86%; max-width: 360px;
    transform: translateX(-100%); transition: transform 200ms ease;
    z-index: 90; overflow-y: auto;
    box-shadow: 6px 0 30px rgba(0,0,0,0.18);
  }
  .sidebar.is-open { transform: translateX(0); }
  .main { max-width: 100%; padding: 24px 18px; }
  .ai-fab { bottom: 16px; right: 16px; padding: 10px 14px; font-size: 0.92rem; }
}
/* Extra-narrow phones ,  collapse brand to just wordmark. */
@media (max-width: 420px) {
  .topbar .brand .brand__suffix { display: none; }
  .mobile-menu-toggle { padding: 4px 8px; font-size: 0.78rem; }
}

/* ============================================================
   Print-friendly CSS ,  clean output when printed
   ============================================================ */
@media print {
  .topbar, .sidebar, .ai-fab, .ai-overlay, .ai-chip, .ai-page-cta, .footer-cta,
  .live-strip, .audit-strip, .compliance-posture, .live-deploy-ticker,
  .summarize-bar, .mobile-menu-toggle, .ml-banner, .act-ticker { display: none !important; }
  .layout { display: block !important; }
  .main { max-width: 100% !important; padding: 0 !important; }
  body { font-size: 11pt; color: #000; background: white; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .page-title { font-size: 22pt; margin-top: 0; }
  .diligence-banner { border: 1px solid #999; padding: 8px; font-size: 9pt; }
  table { page-break-inside: avoid; }
}

/* Per-page "Ask Rōvn about this section" CTA */
.ai-page-cta {
  margin: 28px 0 16px;
  padding: 16px 20px;
  background: var(--terra-50);
  border: 1px solid var(--terra-100);
  border-left: 3px solid var(--terra-600);
  border-radius: 10px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.ai-page-cta__text { font-family: var(--font); font-size: 0.92rem; color: var(--terra-900); flex: 1; min-width: 220px; }
.ai-page-cta__text strong { color: var(--terra-700); }
.ai-page-cta__btn {
  background: var(--terra-600); color: white;
  padding: 8px 14px; border-radius: 8px;
  font-family: var(--font); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; cursor: pointer; border: none;
}
.ai-page-cta__btn:hover { background: var(--terra-700); color: white; text-decoration: none; }
/* Privacy disclaimer next to every AI CTA ,  procurement-readable inline note */
.ai-page-cta__privacy {
  flex-basis: 100%;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--terra-100);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--neu-700);
  opacity: 0.85;
}
.ai-page-cta__privacy--hero {
  flex-basis: auto;
  margin: 14px 0 0;
  padding: 8px 0 0;
  border-top: 1px dashed rgba(125, 232, 202, 0.22);
  color: var(--neu-300, #c8d3cf);
  font-size: 11px;
  opacity: 0.78;
}
/* Offline / fallback state for the page CTA */
.ai-page-cta[data-state="offline"] {
  border-left-color: #c97676;
  background: rgba(201, 118, 118, 0.06);
  border-color: rgba(201, 118, 118, 0.30);
}
.ai-page-cta[data-state="offline"] .ai-page-cta__btn {
  background: var(--neu-700); cursor: pointer;
}
.ai-page-cta[data-state="offline"] .ai-page-cta__btn:hover { background: var(--neu-950); }
.ai-fallback {
  flex-basis: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  background: white;
  border: 1px solid rgba(201, 118, 118, 0.30);
  border-left: 3px solid #c97676;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--neu-950);
  line-height: 1.55;
}
.ai-fallback__head {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.10em;
  text-transform: uppercase; color: #a35a5a;
  margin-bottom: 6px;
}
.ai-fallback__body p { margin: 0 0 6px; }
.ai-fallback__status {
  margin-top: 8px;
  font-family: var(--mono); font-size: 0.70rem;
  color: var(--neu-700);
}
@media (max-width: 520px) {
  .ai-page-cta__privacy { font-size: 10px; }
}

/* ============================================================
   AUDIT REPLAY ,  live audit-chain visualizer on 01-pitch hero
   Doctrine made visible: 5 source-of-truth queries → composite hash → VERIFIED stamp.
   ============================================================ */
.audit-replay {
  margin: 0 0 26px;
  background: var(--neu-950);
  color: var(--neu-100);
  border: 1px solid #0E8A8A;
  border-radius: 14px;
  padding: 18px 22px 20px;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 740px;
  box-shadow: 0 10px 40px rgba(14, 138, 138, 0.18), 0 1px 0 rgba(125, 232, 202, 0.10) inset;
  position: relative;
  overflow: hidden;
}
.audit-replay::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 0% 0%, rgba(14, 138, 138, 0.18), transparent 60%);
  pointer-events: none;
}
.audit-replay__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(125, 232, 202, 0.18);
  position: relative;
}
.audit-replay__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--em-300);
}
.audit-replay__live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7DE8CA;
  box-shadow: 0 0 0 0 rgba(125, 232, 202, 0.7);
  animation: rovnAuditPulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes rovnAuditPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125, 232, 202, 0.6); }
  50%      { box-shadow: 0 0 0 7px rgba(125, 232, 202, 0); }
}
.audit-replay__title-name { color: var(--neu-50); font-weight: 500; }
.audit-replay__pause {
  background: transparent;
  border: 1px solid rgba(125, 232, 202, 0.35);
  color: var(--em-300);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.10em; text-transform: uppercase;
  /* P10B Item 4: icon-only ~32×32 button */
  width: 32px; height: 32px;
  padding: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.audit-replay__pause:hover { background: rgba(125, 232, 202, 0.10); color: #fff; }
.audit-replay__pause:focus-visible { outline: 2px solid var(--em-300); outline-offset: 2px; }
.audit-replay__pause-icon {
  width: 14px; height: 14px;
  /* play triangle / pause bars are filled via the symbol's currentColor */
  fill: currentColor; stroke: none;
}
.audit-replay__body { position: relative; }
.audit-replay__row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(125, 232, 202, 0.08);
  opacity: 0;
  transition: opacity 280ms ease;
}
.audit-replay__row.is-active { opacity: 1; }
.audit-replay__row.is-done { opacity: 1; }
.audit-replay__row:last-of-type { border-bottom: none; }
.audit-replay__t {
  color: var(--neu-400);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.audit-replay__line {
  color: var(--neu-50);
  font-size: 0.82rem;
  word-break: break-all;
  min-height: 1.2em;
}
.audit-replay__line .ok {
  color: var(--em-300);
}
.audit-replay__line .resp {
  color: var(--neu-200);
  font-weight: 500;
}
.audit-replay__line .cursor {
  display: inline-block; width: 0.55em; height: 1em;
  background: var(--em-300);
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: rovnAuditCursor 1s steps(2) infinite;
}
.audit-replay__row.is-done .cursor { display: none; }
@keyframes rovnAuditCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.audit-replay__hash {
  color: var(--em-300);
  font-size: 0.70rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 200ms ease;
}
.audit-replay__row.is-done .audit-replay__hash { opacity: 0.9; }
.audit-replay__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-right: 6px;
  border-radius: 50%;
  background: var(--em-600);
  color: white;
  font-size: 9px;
  font-weight: 700;
  vertical-align: middle;
}

.audit-replay__composite {
  margin-top: 14px; padding: 12px 14px;
  border: 1px dashed rgba(125, 232, 202, 0.30);
  border-radius: 10px;
  background: rgba(14, 138, 138, 0.10);
  opacity: 0;
  transition: opacity 320ms ease;
}
.audit-replay__composite.is-visible { opacity: 1; }
.audit-replay__composite-label {
  color: var(--em-300);
  font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 6px;
}
.audit-replay__composite-hash {
  color: var(--neu-50);
  font-size: 0.86rem;
  word-break: break-all;
}

.audit-replay__stamp {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--em-300);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(125, 232, 202, 0.16) 0%, rgba(4, 120, 87, 0.10) 100%);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.audit-replay__stamp.is-visible { opacity: 1; transform: translateY(0); }
.audit-replay__stamp-badge {
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #052e23; background: var(--em-300); padding: 4px 10px; border-radius: 4px;
  font-weight: 700;
}
.audit-replay__stamp-meta { color: var(--neu-50); font-size: 0.78rem; }

.audit-replay__caption {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed rgba(125, 232, 202, 0.18);
  font-family: var(--font);
  font-size: 0.86rem; line-height: 1.5;
  color: var(--neu-200);
  font-style: italic;
  opacity: 0;
  transition: opacity 320ms ease;
}
.audit-replay__caption.is-visible { opacity: 1; }
.audit-replay__caption strong {
  color: var(--em-300); font-style: normal; font-weight: 600;
}

@media (max-width: 640px) {
  .audit-replay { padding: 14px 14px 16px; font-size: 0.78rem; }
  .audit-replay__row { grid-template-columns: 50px 1fr; }
  .audit-replay__hash { grid-column: 2 / 3; padding-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .audit-replay__live-dot { animation: none; }
  .audit-replay__line .cursor { animation: none; opacity: 1; }
  /* Static snapshot ,  show everything resolved immediately */
  .audit-replay__row { opacity: 1; }
  .audit-replay__row .audit-replay__hash { opacity: 0.9; }
  .audit-replay__composite { opacity: 1; }
  .audit-replay__stamp { opacity: 1; transform: none; }
  .audit-replay__caption { opacity: 1; }
}

/* ============================================================
   LIVE DEPLOY TICKER ,  sitewide footer signal of "the room is alive"
   Sits just under the audit-strip; updates every 60s; pings /health.
   ============================================================ */
.live-deploy-ticker {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  background: #050B0D;
  color: var(--neu-200);
  padding: 7px 22px;
  border-top: 1px solid var(--neu-900);
  font-family: var(--mono); font-size: 0.70rem; letter-spacing: 0.04em;
}
.live-deploy-ticker__pulse {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--em-300);
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600;
}
.live-deploy-ticker__pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7DE8CA;
  box-shadow: 0 0 0 0 rgba(125, 232, 202, 0.65);
  animation: rovnLivePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes rovnLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125, 232, 202, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(125, 232, 202, 0); }
}
.live-deploy-ticker__sep { color: var(--em-300); opacity: 0.45; }
.live-deploy-ticker__k {
  color: var(--em-300); text-transform: uppercase; letter-spacing: 0.10em;
  font-size: 0.62rem;
}
.live-deploy-ticker__v { color: var(--neu-100); }
.live-deploy-ticker__health {
  display: inline-flex; align-items: center; gap: 6px;
}
.live-deploy-ticker__health-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neu-400);
  transition: background 220ms ease;
}
.live-deploy-ticker__health.is-up .live-deploy-ticker__health-dot { background: #7DE8CA; }
.live-deploy-ticker__health.is-down .live-deploy-ticker__health-dot { background: #c97676; }

/* P10B Item 2: skeleton/loading pulse dot ,  appears on .is-loading values
   while JS hydrates real "Nm ago"/health-probe results. Removed by JS once
   the live value lands. Keeps the ticker from flashing empty on slow nets. */
.live-deploy-ticker__v.is-loading::after,
.live-deploy-ticker__health.is-loading .live-deploy-ticker__health-label::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: currentColor;
  opacity: 0.4;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: 1px;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.18); }
}

@media (max-width: 760px) {
  .live-deploy-ticker { padding: 7px 14px; font-size: 0.66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .live-deploy-ticker__pulse-dot { animation: none; }
  .live-deploy-ticker__v.is-loading::after,
  .live-deploy-ticker__health.is-loading .live-deploy-ticker__health-label::after { animation: none; }
}
@media print {
  .live-deploy-ticker { display: none !important; }
}

/* ============================================================
   DARK MODE TOGGLE ,  sun/moon icon button in topbar.
   Sits between AI chip and Sections link.
   ============================================================ */
.dark-mode-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid rgba(125, 232, 202, 0.30);
  border-radius: 999px;
  color: #FAFAF7;
  cursor: pointer;
  margin-left: 8px;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease;
}
.dark-mode-toggle:hover {
  background: rgba(125, 232, 202, 0.12);
  border-color: rgba(125, 232, 202, 0.55);
  transform: translateY(-1px);
}
.dark-mode-toggle:focus-visible {
  outline: 2px solid #7DE8CA;
  outline-offset: 2px;
}
.dark-mode-toggle svg { width: 16px; height: 16px; display: block; }
.dark-mode-toggle .dmt-sun { display: none; }
.dark-mode-toggle .dmt-moon { display: block; }
html[data-theme="dark"] .dark-mode-toggle .dmt-sun { display: block; }
html[data-theme="dark"] .dark-mode-toggle .dmt-moon { display: none; }

/* ============================================================
   SOURCES BADGE + MODAL ,  every page gets a top-right "Sources" badge.
   Click opens a modal listing the section's primary sources with timestamps.
   ============================================================ */
.sources-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(125, 232, 202, 0.08);
  border: 1px solid rgba(125, 232, 202, 0.30);
  color: #FAFAF7;
  font-family: var(--mono);
  font-size: 0.70rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 8px;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.sources-badge:hover {
  background: rgba(125, 232, 202, 0.18);
  border-color: rgba(125, 232, 202, 0.55);
  transform: translateY(-1px);
}
.sources-badge:focus-visible {
  outline: 2px solid #7DE8CA; outline-offset: 2px;
}
.sources-badge__icon { width: 12px; height: 12px; display: block; opacity: 0.85; }
.sources-badge__count {
  background: rgba(125, 232, 202, 0.18);
  color: #7DE8CA;
  padding: 0 6px; border-radius: 999px;
  font-size: 0.66rem;
}

/* Modal overlay */
.sources-modal {
  position: fixed; inset: 0; z-index: 250;
  display: none;
  background: rgba(11, 15, 18, 0.55);
  backdrop-filter: blur(3px);
  align-items: flex-start; justify-content: center;
  padding: 60px 22px 22px;
  overflow-y: auto;
}
.sources-modal.is-open { display: flex; }
.sources-modal__panel {
  background: var(--surface-card);
  color: var(--text-primary);
  width: 100%; max-width: 640px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: srcModalIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes srcModalIn {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.sources-modal__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--surface-border);
}
.sources-modal__eyebrow {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.sources-modal__title {
  font-family: var(--display); font-size: 1.15rem; font-weight: 600;
  margin: 2px 0 0; color: var(--text-primary);
}
.sources-modal__close {
  margin-left: auto;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted);
  font-size: 1.4rem; line-height: 1;
  padding: 4px 10px; border-radius: 6px;
}
.sources-modal__close:hover { background: var(--surface-muted); color: var(--text-primary); }
.sources-modal__body { padding: 8px 20px 20px; }
.sources-modal__intro {
  font-family: var(--font); font-size: 0.90rem; color: var(--text-muted);
  margin: 8px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--surface-border);
}
.sources-modal__list { list-style: none; padding: 0; margin: 0; }
.sources-modal__item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-border);
  font-family: var(--mono); font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.5;
}
.sources-modal__item:last-child { border-bottom: none; }
.sources-modal__item-bullet {
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
}
.sources-modal__foot {
  background: var(--surface-muted);
  padding: 12px 20px;
  font-family: var(--mono); font-size: 0.70rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--surface-border);
}
.sources-modal__foot strong { color: var(--accent); }

/* ============================================================
   CITATION POPOVER ,  hover/tap reveal on cited claims.
   ============================================================ */
.cite {
  position: relative;
  border-bottom: 1px dotted var(--accent);
  cursor: help;
}
.cite-pop {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 220px; max-width: 320px;
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--mono); font-size: 0.74rem;
  line-height: 1.4;
  box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 60;
  white-space: normal;
}
.cite-pop__label {
  display: block;
  font-size: 0.62rem; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.cite-pop__src { color: var(--text-primary); }
.cite:hover .cite-pop,
.cite:focus-within .cite-pop,
.cite.is-active .cite-pop {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 760px) {
  .cite-pop {
    position: fixed;
    left: 12px; right: 12px;
    bottom: auto; top: auto;
    transform: none;
    margin-top: 6px;
    max-width: none;
  }
  .cite.is-active .cite-pop { transform: none; }
}

/* ============================================================
   STICKY AI BUBBLE ,  second floating bubble (lower-right).
   Distinct from .ai-fab; pulses every 6s for first 3 cycles.
   ============================================================ */
.sticky-ai-bubble {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 110;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #FAFAF7;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(14, 138, 138, 0.42),
              0 2px 6px rgba(11, 15, 18, 0.18);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 160ms ease,
              background 160ms ease;
}
.sticky-ai-bubble:hover {
  transform: translateY(-2px) scale(1.04);
  background: var(--accent-hover);
  box-shadow: 0 14px 38px rgba(14, 138, 138, 0.52),
              0 3px 8px rgba(11, 15, 18, 0.20);
}
.sticky-ai-bubble:focus-visible {
  outline: 3px solid #7DE8CA;
  outline-offset: 3px;
}
.sticky-ai-bubble svg { width: 24px; height: 24px; display: block; }
.sticky-ai-bubble__label {
  position: absolute;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.10em;
  text-transform: uppercase;
  background: #050709; color: #7DE8CA;
  padding: 4px 9px; border-radius: 999px;
  right: calc(100% + 10px);
  top: 50%; transform: translateY(-50%) translateX(6px);
  opacity: 0; pointer-events: none;
  white-space: nowrap;
  transition: opacity 160ms ease, transform 160ms ease;
}
.sticky-ai-bubble:hover .sticky-ai-bubble__label,
.sticky-ai-bubble:focus-visible .sticky-ai-bubble__label {
  opacity: 1; transform: translateY(-50%) translateX(0);
}
/* Pulse ring ,  runs 3 cycles, then quiets. Uses animation-iteration-count: 3. */
.sticky-ai-bubble::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(14, 138, 138, 0.55);
  animation: stickyAiPulse 6s ease-out 0.8s 3;
  pointer-events: none;
}
@keyframes stickyAiPulse {
  0%   { box-shadow: 0 0 0 0   rgba(14, 138, 138, 0.55); }
  18%  { box-shadow: 0 0 0 18px rgba(14, 138, 138, 0); }
  100% { box-shadow: 0 0 0 0   rgba(14, 138, 138, 0); }
}
/* Hidden on ask-rovn page (already there), when modal open, on print.
   Phase-9: also kill the .ai-fab on 11.1 (page already has a full chat UI). */
body.is-ask-rovn-page .sticky-ai-bubble,
body.is-ask-rovn-page .ai-fab,
body.is-modal-open .sticky-ai-bubble {
  display: none !important;
}
html[data-theme="dark"] .sticky-ai-bubble {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55),
              0 2px 6px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .sticky-ai-bubble::before {
  box-shadow: 0 0 0 0 rgba(20, 181, 181, 0.55);
  animation-name: stickyAiPulseDark;
}
@keyframes stickyAiPulseDark {
  0%   { box-shadow: 0 0 0 0   rgba(20, 181, 181, 0.55); }
  18%  { box-shadow: 0 0 0 18px rgba(20, 181, 181, 0); }
  100% { box-shadow: 0 0 0 0   rgba(20, 181, 181, 0); }
}
@media (max-width: 640px) {
  .sticky-ai-bubble {
    width: 48px; height: 48px;
    bottom: 16px; right: 16px;
  }
  .sticky-ai-bubble svg { width: 20px; height: 20px; }
  .sticky-ai-bubble__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-ai-bubble::before { animation: none; }
}
@media print {
  .sticky-ai-bubble, .sources-badge, .dark-mode-toggle, .sources-modal { display: none !important; }
}
/* Suppress redundant .ai-fab when sticky bubble is present (same role, same destination). */
.sticky-ai-bubble ~ .ai-fab,
body:has(.sticky-ai-bubble) .ai-fab { display: none !important; }

/* ============================================================
   PHASE-7 MOBILE OVERFLOW FIX (2026-05-27)
   Targets: 04.1 Product Overview, 10.3 Competitive Landscape, sitewide net.
   Reviewer: "Mobile overflow on Product Overview and Competitive Landscape."
   ============================================================ */

/* --- 1. Competitive 2x2 SVG (10.3) -------------------------- */
.competitive-2x2 {
  max-width: 100%;
  margin: 1.4rem 0;
  overflow: hidden;
}
.competitive-2x2__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* --- 2. Table scroll wrapper (sitewide; tables wrapped at build time) -- */
.table-scroll {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  scrollbar-width: thin;
}
.table-scroll table { margin: 0; }
.table-scroll::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 18px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--neu-50, #fafaf7));
  opacity: 0;
  transition: opacity 180ms ease;
}
.table-scroll.has-overflow::after { opacity: 1; }

/* --- 3. Long inline-code + long URLs inside tables -------- */
@media (max-width: 720px) {
  .content table { font-size: 0.82rem; min-width: 0; }
  .content th, .content td {
    padding: 6px 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .content td code, .content th code {
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .content pre { font-size: 0.74rem; padding: 10px 12px; }
}

/* --- 4. Audit-strip, live-deploy-ticker, live-strip,
        compliance-posture, footer-cta ,  flex-wrap already on,
        but long opaque tokens can blow out cells. -- */
@media (max-width: 720px) {
  .audit-strip,
  .live-strip,
  .live-deploy-ticker,
  .compliance-posture,
  .footer-cta {
    padding-left: 14px;
    padding-right: 14px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  /* Phase-9: primary CTA reads as full-width on narrow viewports for a single clear action. */
  .footer-cta__link--primary {
    width: 100%;
    text-align: center;
    order: -1;
  }
  .audit-strip__v,
  .live-deploy-ticker__v {
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .live-deploy-ticker__sep { display: none; }
}

/* --- 5. Diligence banner / blockquote / AI page CTA / summarize bar - */
@media (max-width: 720px) {
  .diligence-banner,
  .content blockquote,
  .ai-page-cta,
  .summarize-bar {
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  .ai-page-cta { flex-wrap: wrap; }
}

/* --- 6. Cite popovers ,  avoid forcing horizontal scroll on mobile - */
@media (max-width: 720px) {
  .cite-pop {
    max-width: calc(100vw - 32px);
    left: 0;
    transform: none;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
}

/* --- 7. SITEWIDE SAFETY NET --------------------------------- */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; }
  /* CRITICAL: grid items default to min-width:auto which prevents shrinking
     below child min-content. Forcing min-width:0 lets content reflow. */
  .layout, .main, .content { min-width: 0; }
  .main, .content { max-width: 100%; }
  .content > * { max-width: 100%; min-width: 0; }
  /* Summarize-bar mode pills ,  allow individual buttons to shrink/wrap. */
  .summarize-bar, .summarize-bar__modes { min-width: 0; max-width: 100%; }
  .summarize-bar__mode { font-size: 0.74rem; padding: 5px 8px; }
  img, svg, video, iframe {
    max-width: 100%;
    height: auto;
  }
  [style*="width:"] { max-width: 100% !important; }
}

/* Investor-room A+ hardening: no mobile horizontal overflow, even on rich pages. */
@media (max-width: 900px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .topbar,
  .layout,
  .main,
  .content,
  .hero,
  .section-grid,
  .recommend,
  .footer,
  .diligence-banner,
  .summarize-bar,
  .summarize-bar__out,
  .investor-brief,
  .ai-page-cta,
  .footer-cta,
  .act-ticker,
  .investor-path {
    max-width: 100%;
    min-width: 0;
  }
  .main {
    width: 100%;
    overflow-x: hidden;
  }
  .content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .content pre,
  .content code,
  .content a,
  .page-title,
  .diligence-banner,
  .summarize-bar,
  .investor-brief__section {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .summarize-bar {
    align-items: flex-start;
  }
  .summarize-bar__label {
    flex: 1 1 100%;
  }
  .summarize-bar__btn,
  .summarize-bar__mode {
    white-space: normal;
    line-height: 1.25;
  }
  .investor-path {
    grid-template-columns: 1fr;
  }
  .investor-path a,
  .investor-path__ask,
  .investor-path__head {
    width: 100%;
  }
}

/* ============================================================
   Phase-10 Item 3 ,  Inline iconographic system.
   Single .icon class for SVG sprite use. currentColor + 1.5px stroke
   so icons pick up whatever color their parent text uses.
   ============================================================ */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  max-width: 1.5em;          /* hard cap ,  never expand to fill container */
  max-height: 1.5em;
  vertical-align: -0.15em;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.icon > use { fill: inherit; stroke: inherit; }
.icon--md { width: 1.1em; height: 1.1em; }
.icon--lg { width: 1.35em; height: 1.35em; }
/* Section card title gets a doc icon ,  small, em-300 accent, inline. */
.section-card h3 .icon {
  color: var(--terra-600);
  margin-right: 6px;
  vertical-align: -0.18em;
}
/* Compliance posture chips: lock icon hugged to each claim, em-300 tint. */
.compliance-posture__claim .icon {
  color: var(--em-300);
  margin-right: 6px;
  width: 0.95em;
  height: 0.95em;
}
/* Live URL strip: external-link glyph after each link. */
.live-strip__link .icon {
  color: var(--em-300);
  margin-left: 4px;
  width: 0.85em;
  height: 0.85em;
  opacity: 0.85;
}
.live-strip__link:hover .icon { opacity: 1; }

/* ============================================================
   Phase-10 Item 4 ,  Audit footer mobile summary mode (<640px).
   Default state at narrow widths shows only compliance-posture +
   an "Expand audit details" toggle. Other rows collapse.
   Desktop (>=640px): unchanged ,  toggle hidden, all rows visible.
   ============================================================ */
.audit-footer__toggle {
  display: none !important;
}
@media (max-width: 640px) {
  .audit-footer__toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: var(--terra-950);
    color: var(--em-300);
    border: none;
    border-top: 1px solid rgba(125, 232, 202, 0.12);
    padding: 12px 22px;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
  }
  .audit-footer__toggle-chev {
    margin-left: auto;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
    width: 1em;
    height: 1em;
  }
  .audit-footer__toggle[aria-expanded="true"] .audit-footer__toggle-chev {
    transform: rotate(180deg);
  }
  /* Default collapsed: hide the receipt rows. compliance-posture stays. */
  .audit-footer__collapsible {
    display: none;
  }
  .audit-footer.is-expanded .audit-footer__collapsible {
    display: block;
  }
}

/* =========================================================================
   WARM EDITORIAL OVERRIDE LAYER  ·  2026-06-05
   Appended last → wins by source order. Colors already retinted by the
   :root aliases; this layer fixes structure, typography, and the few
   dark-on-dark spots so the room matches the new rovn.to design system.
   ========================================================================= */

/* ---- paper grain + base rendering ---- */
body {
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 1;
}
body::before { display: none; }  /* paper grain removed — clean flat surface */
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 3px; }

/* ---- serif (Newsreader) headings ---- */
.page-title, .hero h1, .content h1, .content h2, .content h3,
.section-card h3, .recommend h2, .guided-path__title, .ai-hero-chat__title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em;
  text-wrap: balance; color: var(--ink);
}
.page-title { font-size: var(--t-h1); line-height: 1.04; }
.content h2 { font-size: var(--t-h2); line-height: 1.06; margin-top: 1.7em; }
.content h3 { font-size: var(--t-h3); line-height: 1.12; margin-top: 1.4em; }
.content h4 { font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.page-meta { font-family: var(--mono); color: var(--ink-4); letter-spacing: 0.08em; }

/* ---- topbar → warm site-header ---- */
.topbar {
  background: color-mix(in oklab, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line); padding: 12px 24px;
}
html[data-theme="dark"] .topbar {
  background: color-mix(in oklab, var(--night) 84%, transparent); border-bottom-color: var(--night-line);
}
.brand a { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; text-decoration: none; }
.brand .accent { color: var(--teal); font-style: normal; }
.brand__suffix { color: var(--ink-3); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; }
.topbar .right a { color: var(--ink-2); }
.topbar .right a:hover { color: var(--teal-ink); }
.ai-chip { border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper-0); }
.ai-chip__label { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-2); }
.ai-chip__dot { background: var(--teal); }
.sources-badge, .dark-mode-toggle { color: var(--ink-2); border-color: var(--line); background: var(--paper-0); }
.sources-badge:hover, .dark-mode-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.mobile-menu-toggle { color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-2); }

/* ---- sidebar ---- */
.sidebar { background: var(--paper); border-right: 1px solid var(--line); }
html[data-theme="dark"] .sidebar { background: var(--night); border-right-color: var(--night-line); }
.nav-section > a { font-family: var(--font); font-weight: 600; font-size: 0.92rem; color: var(--ink-2); letter-spacing: -0.005em; }
.nav-section > a:hover { color: var(--teal-ink); }
.nav-section > a.active { color: var(--ink); }
.nav-sub li a { font-family: var(--font); color: var(--ink-3); }
.nav-sub li a:hover { color: var(--teal-ink); }
.nav-sub li a.current { color: var(--teal-ink); font-weight: 600; }
.nav-sub .num { font-family: var(--mono); color: var(--ink-4); }
.nav-cluster {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-4); padding: 17px 4px 6px; margin-top: 4px; border-top: 1px solid var(--line-soft);
}
.nav-cluster:first-of-type { border-top: 0; margin-top: 0; }
html[data-theme="dark"] .nav-cluster { color: var(--on-night-3); border-top-color: var(--night-line-soft); }

/* ---- pill buttons ---- */
.footer-cta__link, .ai-hero-chat__btn, .summarize-bar__btn, .ai-page-cta__btn,
.home-cal-card__cta, .investor-path__ask {
  border-radius: var(--r-pill); font-family: var(--font); font-weight: 600;
  transition: transform .3s var(--ease-quint), background .25s, color .25s, border-color .25s, box-shadow .35s var(--ease-quint);
}
.ai-hero-chat__btn, .home-cal-card__cta {
  background: var(--ink); color: var(--paper-0); border: 1px solid var(--ink);
}
.ai-hero-chat__btn:hover, .home-cal-card__cta:hover { background: #2a241b; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.summarize-bar__btn, .ai-page-cta__btn { background: var(--teal); color: #fff; border: 1px solid var(--teal); }
.summarize-bar__btn:hover, .ai-page-cta__btn:hover { background: var(--teal-deep); }

/* ---- hairline cards w/ lift ---- */
.section-card, .recommend, .home-cal-card, .thesis-block, .guided-path__card,
.summarize-bar {
  background: var(--paper-0); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow-1);
}
.section-card, .guided-path__card { transition: transform .35s var(--ease-quint), border-color .25s, box-shadow .35s var(--ease-quint); }
.section-card:hover, .guided-path__card:hover { transform: translateY(-3px); border-color: var(--teal-line); box-shadow: var(--shadow-2); }
.section-card h3 .icon, .section-card .num { color: var(--teal-ink); }
.section-card .count { font-family: var(--mono); color: var(--ink-4); }
.section-card .num, .recommend .time { font-family: var(--mono); }

/* ---- hero (paper canvas; AI chat = night panel) ---- */
.hero { background: transparent; color: var(--ink); }
.hero h1 { font-size: var(--t-mega); line-height: 1.0; letter-spacing: -0.022em; color: var(--ink); }
.hero h1 em, .hero h1 .accent { font-style: italic; color: var(--teal-ink); font-weight: 400; }
.hero .lead { font-family: var(--font); font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); }
.hero .stats span, .hero__foot span { font-family: var(--mono); color: var(--ink-3); }
.hero-net-tag, .hero__eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-ink); display: inline-flex; align-items: center; gap: 0.6em;
}
.hero-net-tag .pulse, .hero__eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); position: relative; }
.hero-net-tag .pulse::after, .hero__eyebrow .pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--teal);
  opacity: 0; animation: pulsering 2.6s var(--ease-expo) infinite;
}
@keyframes pulsering { 0% { opacity: 0.7; transform: scale(0.6); } 70%,100% { opacity: 0; transform: scale(1.6); } }
.hero__truth { font-size: 1.06rem; color: var(--ink-2); line-height: 1.5; }
.hero__truth strong { color: var(--ink); }
.hero__round {
  display: inline-flex; gap: 0.5em; align-items: center; font-family: var(--mono);
  font-size: 0.74rem; letter-spacing: 0.04em; border: 1px solid var(--teal-line);
  background: var(--teal-wash); color: var(--teal-ink); padding: 0.5em 0.9em; border-radius: var(--r-pill);
}
.hero__eyebrow { margin-bottom: 20px; }
.hero h1 { margin-bottom: 0.34em; }
.hero .lead { max-width: 60ch; }
.hero__truth { max-width: 62ch; margin-top: 16px; }
.hero__how { color: var(--ink-3); font-size: 0.97rem; line-height: 1.5; max-width: 68ch; margin-top: 14px; }
.hero__meta { margin-top: 22px; }
.ai-hero-chat {
  background: var(--night); border: 1px solid var(--night-line); border-radius: var(--r-4);
  box-shadow: var(--shadow-night); color: var(--on-night);
}
.ai-hero-chat__title { color: var(--on-night); }
.ai-hero-chat__eyebrow { color: var(--teal-bright); font-family: var(--mono); }
.ai-hero-chat__sub { color: var(--on-night-2); }
.ai-hero-chat__sub kbd { background: rgba(40,198,198,0.14) !important; border-color: var(--teal-line) !important; color: var(--teal-bright); }
.ai-hero-chat__input { background: rgba(244,238,225,0.04); border: 1px solid var(--night-line); color: var(--on-night); }
.ai-hero-chat__input::placeholder { color: var(--on-night-3); }
.ai-hero-chat__sug { background: rgba(40,198,198,0.06); border: 1px solid var(--teal-line); color: var(--on-night-2); border-radius: var(--r-pill); }
.ai-hero-chat__sug:hover { background: rgba(40,198,198,0.12); color: var(--on-night); }
.ai-page-cta__privacy--hero { color: var(--on-night-3) !important; }

/* ---- ticker / paths ---- */
.act-ticker { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper-0); }
.act-cell__k { font-family: var(--mono); color: var(--ink-4); }
.act-cell__v { color: var(--ink-2); }
.guided-path__eyebrow, .investor-path__head span:first-child { font-family: var(--mono); color: var(--teal-ink); letter-spacing: 0.14em; text-transform: uppercase; }
.guided-path__claim, .investor-path__head strong { font-family: var(--serif); color: var(--ink); font-weight: 400; }
.guided-path__num, .investor-path a span { font-family: var(--mono); color: var(--teal-ink); }
.guided-path__desc { color: var(--ink-3); }

/* ---- thesis blocks ---- */
.thesis-block__eyebrow { font-family: var(--mono); color: var(--teal-ink); letter-spacing: 0.12em; }
.thesis-block--problem .thesis-block__eyebrow { color: var(--tier-attested); }
.thesis-block__body { color: var(--ink-2); }
.thesis-block__body strong { color: var(--ink); }

/* ---- diligence banner → warm tan ---- */
.diligence-banner {
  background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--tier-attested);
  color: var(--ink-2); border-radius: var(--r-2);
}
.diligence-banner__label { color: var(--ink); font-family: var(--mono); }
.diligence-banner__link { color: var(--teal-ink); }
.diligence-banner__dot { background: var(--tier-attested); box-shadow: 0 0 0 3px rgba(168,137,91,0.18); }

/* ---- summarize bar (AI diligence console) ---- */
.summarize-bar__label { font-family: var(--mono); color: var(--teal-ink); letter-spacing: 0.1em; }
.summarize-bar__mode { background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); border-radius: var(--r-pill); }
.summarize-bar__mode:hover, .summarize-bar__mode.is-active { border-color: var(--teal-line); color: var(--teal-ink); }

/* ---- per-page AI CTA ---- */
.ai-page-cta { background: var(--teal-wash); border: 1px solid var(--teal-line); border-left: 3px solid var(--teal); border-radius: var(--r-3); }
.ai-page-cta__text strong { color: var(--teal-ink); }
.ai-page-cta__privacy { font-family: var(--mono); color: var(--ink-4); }

/* ---- editorial prose ---- */
.content { color: var(--ink-2); font-family: var(--font); }
.content p, .content li { color: var(--ink-2); }
.content a { color: var(--teal-ink); border-bottom: 1px solid var(--teal-line); text-decoration: none; }
.content a:hover { border-color: var(--teal); text-decoration: none; }
.content strong { color: var(--ink); }
.content table { border: 1px solid var(--line); border-radius: var(--r-2); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.content th { background: var(--paper-2); color: var(--ink); font-family: var(--font); font-weight: 600; border-bottom: 1px solid var(--line); }
.content td { border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.content code { font-family: var(--mono); background: var(--teal-wash); color: var(--teal-ink); padding: 0.1em 0.4em; border-radius: var(--r-1); }
.content pre { background: var(--night); color: var(--on-night); border: 1px solid var(--night-line); border-radius: var(--r-3); }
.content pre code { background: transparent; color: var(--on-night); padding: 0; }
.content blockquote { border-left: 3px solid var(--teal); background: var(--teal-wash); color: var(--ink-2); border-radius: 0 var(--r-2) var(--r-2) 0; }

/* ---- bottom chrome → night archival ledger ---- */
.footer-cta { background: var(--night); border-top: 1px solid var(--night-line); }
.footer-cta__label { color: var(--on-night-3); font-family: var(--mono); letter-spacing: 0.1em; }
.footer-cta__link { color: var(--on-night); border: 1px solid var(--night-line); background: transparent; }
.footer-cta__link:hover { border-color: var(--on-night); }
.footer-cta__link--primary { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.footer-cta__link--primary:hover { background: #fff; }
.audit-footer { background: var(--night); color: var(--on-night-2); border-top: 1px solid var(--night-line); }
.compliance-posture__label { color: var(--on-night-3); font-family: var(--mono); }
.compliance-posture__claim { color: var(--on-night-2); }
.compliance-posture__claim .icon { color: var(--teal-bright); }
.audit-footer__toggle { color: var(--on-night-3); }
.audit-footer__toggle:hover { color: var(--on-night); }
.live-strip__label { color: var(--on-night-3); font-family: var(--mono); }
.live-strip__link { color: var(--on-night-2); }
.live-strip__link:hover { color: var(--on-night); }
.audit-strip { background: rgba(0,0,0,0.28); border-top: 1px solid var(--night-line); }
.audit-strip__k { color: var(--teal-bright); font-family: var(--mono); }
.audit-strip__v { color: var(--on-night-2); font-family: var(--mono); }
.live-deploy-ticker { color: var(--on-night-2); }
.live-deploy-ticker__k { color: var(--on-night-3); }
.footer { background: var(--night); color: var(--on-night-3); border-top: 1px solid var(--night-line); }
.footer a { color: var(--on-night-2); }
.footer a:hover { color: var(--on-night); }
.footer .confid { color: var(--on-night-2); font-family: var(--mono); }

/* ---- 10-min ribbon → quiet editorial strip ---- */
.ten-min-ribbon { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-2); color: var(--ink-2); }
.ten-min-ribbon__claim { color: var(--ink); }
.ten-min-ribbon__eyebrow { font-family: var(--mono); color: var(--teal-ink); }
.ten-min-ribbon__arrow { color: var(--teal-ink); }
/* ---- demo screen: live embedded product + walkthrough film ---- */
.demo-screen { padding: 26px 56px 30px; }
.demo-screen__eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-ink); display: inline-flex; align-items: center; gap: 0.6em;
}
.demo-screen__eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); position: relative; }
.demo-screen__eyebrow .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--teal); opacity: 0; animation: pulsering 2.6s var(--ease-expo) infinite; }
.demo-screen__title { font-family: var(--serif); font-weight: 400; font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.018em; color: var(--ink); margin: 12px 0 6px; }
.demo-screen__sub { color: var(--ink-2); max-width: 76ch; font-size: var(--t-lead); line-height: 1.5; }
.demo-screen__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin-top: 24px; align-items: stretch; }
.demo-frame { border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--paper-0); box-shadow: var(--shadow-2); display: flex; flex-direction: column; }
.demo-frame__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.demo-frame__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.demo-frame__dot:nth-child(1) { background: #E5645A; }
.demo-frame__dot:nth-child(2) { background: #E5B24A; }
.demo-frame__dot:nth-child(3) { background: #5BB867; }
.demo-frame__url { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-frame__open { margin-left: auto; font-family: var(--mono); font-size: 0.7rem; color: var(--teal-ink); white-space: nowrap; }
.demo-frame__open:hover { color: var(--teal); }
.demo-frame__stage { position: relative; flex: 1; min-height: 540px; background: var(--paper); }
.demo-frame__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.demo-video { border: 1px solid var(--night-line); border-radius: var(--r-3); overflow: hidden; background: var(--night); color: var(--on-night); display: flex; flex-direction: column; }
.demo-video__head { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-3); padding: 12px 14px; border-bottom: 1px solid var(--night-line); }
.demo-video__player { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.demo-video__cta { display: flex; flex-direction: column; gap: 9px; padding: 14px; margin-top: auto; }
.btn-demo { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; font-family: var(--font); font-weight: 600; font-size: 0.9rem; padding: 0.72em 1em; border-radius: var(--r-pill); border: 1px solid var(--night-line); color: var(--on-night); transition: background .2s, border-color .2s, transform .25s var(--ease-quint); }
.btn-demo:hover { border-color: var(--on-night); transform: translateY(-1px); }
.btn-demo--primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-demo--primary:hover { background: var(--teal-deep); }
@media (max-width: 900px) {
  .demo-screen { padding: 20px 18px 24px; }
  .demo-screen__grid { grid-template-columns: 1fr; }
  .demo-frame__stage { min-height: 420px; }
}
/* ---- A+ hero: two-column with live graph canvas + statband + reveal motion ---- */
.hero-grid { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,0.94fr); gap: clamp(28px,4vw,56px); align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 1.5rem + 2.7vw, 4.0rem); line-height: 1.0; letter-spacing: -0.022em; margin-bottom: 0.32em; }
.hero-copy .lead { max-width: 56ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 22px; }
.hero__baa { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-3); }

.graph-stage {
  position: relative;
  background: radial-gradient(120% 90% at 72% 18%, rgba(40,198,198,0.16), transparent 55%), radial-gradient(100% 80% at 20% 90%, rgba(14,138,138,0.10), transparent 60%), var(--night);
  border: 1px solid var(--night-line); border-radius: var(--r-4); box-shadow: var(--shadow-night);
  overflow: hidden; aspect-ratio: 5 / 5; min-height: 440px;
}
.graph-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-stage .grain-fade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(140% 120% at 50% 0%, transparent 60%, rgba(0,0,0,0.45)); }
.graph-frame { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 22px; }
.graph-frame .gf-top, .graph-frame .gf-bot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gf-label { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-3); }
.gf-side { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-2); display: inline-flex; align-items: center; gap: 0.5em; background: rgba(0,0,0,0.45); border: 1px solid var(--night-line); border-radius: var(--r-pill); padding: 0.35em 0.7em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gf-side .sq { width: 7px; height: 7px; border-radius: 2px; }
.graph-receipt { position: absolute; right: 18px; bottom: 60px; width: 210px; background: rgba(11,15,18,0.85); border: 1px solid var(--night-line); border-radius: var(--r-2); padding: 10px 12px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--mono); color: var(--on-night-2); font-size: 0.66rem; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-expo), transform .5s var(--ease-expo); }
.graph-receipt.show { opacity: 1; transform: none; }
.graph-receipt .gr-head { display: flex; align-items: center; justify-content: space-between; color: var(--teal-bright); margin-bottom: 6px; }
.graph-receipt .gr-row { display: flex; justify-content: space-between; gap: 8px; }
.graph-receipt .gr-row span:last-child { color: var(--on-night); }

.statband { border-block: 1px solid var(--line); background: var(--paper-0); margin-top: 10px; }
.statband__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.statband .stat { padding: clamp(24px,3vw,34px) clamp(14px,2vw,28px); border-left: 1px solid var(--line); }
.statband .stat:first-child { border-left: 0; }
.statband .num { font-family: var(--mono); font-weight: 500; font-size: clamp(1.8rem,1.2rem+1.7vw,2.7rem); letter-spacing: -0.02em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.statband .lab { margin-top: 9px; font-size: 0.9rem; color: var(--ink-3); line-height: 1.35; }
.statband__cap { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-4); padding: 12px clamp(14px,2vw,28px) 16px; border-top: 1px solid var(--line-soft); letter-spacing: 0.02em; }

/* reveal motion — only hides once JS marks the doc ready, so content never sticks invisible */
html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-expo), transform .8s var(--ease-expo); }
html.reveal-ready [data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { html.reveal-ready [data-reveal] { opacity:1 !important; transform:none !important; transition:none !important; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .graph-stage { order: 2; aspect-ratio: 16/11; min-height: 320px; }
}
@media (max-width: 720px) {
  .statband__grid { grid-template-columns: 1fr 1fr; }
  .statband .stat:nth-child(odd) { border-left: 0; }
  .statband .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* ---- origin strip (the nurse story) ---- */
.origin { padding: 14px 56px 4px; }
.origin__eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 12px; }
.origin__body { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1rem + 1.0vw, 1.85rem); line-height: 1.38; color: var(--ink); max-width: 38ch; letter-spacing: -0.012em; text-wrap: balance; }

/* ---- two doors, one network ---- */
.doors { padding: 34px 56px; }
.doors__eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); }
.doors__origin { font-family: var(--serif); font-weight: 400; font-size: clamp(1.18rem, 0.95rem + 0.9vw, 1.62rem); line-height: 1.4; color: var(--ink); max-width: 46ch; letter-spacing: -0.012em; text-wrap: balance; margin: 14px 0 22px; }
.doors__title { font-family: var(--serif); font-weight: 400; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.018em; color: var(--ink); margin: 0 0 24px; max-width: 22ch; }
.doors__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; align-items: stretch; }
.door { border: 1px solid var(--line); border-radius: var(--r-3); padding: 28px 28px 24px; background: var(--paper-0); display: flex; flex-direction: column; box-shadow: var(--shadow-1); }
.door--facility { background: var(--night); border-color: var(--night-line); color: var(--on-night); position: relative; overflow: hidden; box-shadow: var(--shadow-night); }
.door--facility::after { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(120% 100% at 100% 0%, rgba(40,198,198,0.14), transparent 60%); }
.door__tag { position: relative; z-index:1; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); display: inline-flex; align-items: center; gap: 0.5em; margin-bottom: 16px; }
.door--facility .door__tag { color: var(--on-night-3); }
.door__sq { width: 8px; height: 8px; border-radius: 2px; background: var(--tier-attested); }
.door--facility .door__sq { background: var(--teal-bright); }
.door__h { position: relative; z-index:1; font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.014em; margin-bottom: 12px; color: var(--ink); }
.door--facility .door__h { color: var(--on-night); }
.door__p { position: relative; z-index:1; color: var(--ink-2); line-height: 1.5; }
.door--facility .door__p { color: var(--on-night-2); }
.door__spine { position: relative; z-index:1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.door__spine span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-night-2); border: 1px solid var(--night-line); border-radius: var(--r-pill); padding: 0.32em 0.72em; background: rgba(40,198,198,0.06); }
.door__price { position: relative; z-index:1; margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); }
.door--worker .door__price { color: var(--teal-ink); }
.door--facility .door__price { color: var(--on-night); }
.door--facility .door__price strong { color: var(--teal-bright); }
.doors__doctrine { margin-top: 20px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-3); border-left: 2px solid var(--teal); padding-left: 14px; max-width: 84ch; line-height: 1.5; }
@media (max-width: 900px) {
  .origin { padding: 12px 18px 4px; }
  .doors { padding: 26px 18px; }
  .doors__grid { grid-template-columns: 1fr; }
}
/* ---- LIGHT UI ONLY: no dark surfaces anywhere. Hide dark toggle; recolor the graph stage + receipt for light. ---- */
.dark-mode-toggle { display: none !important; }
.graph-stage { background: radial-gradient(120% 90% at 72% 18%, rgba(14,138,138,0.10), transparent 55%), var(--paper-0) !important; box-shadow: var(--shadow-2) !important; }
.graph-receipt { background: rgba(255,253,248,0.92) !important; color: var(--ink-2) !important; }
.graph-receipt .gr-head { color: var(--teal-ink) !important; }
.graph-receipt .gr-row span:last-child { color: var(--ink) !important; }
.gf-side { background: rgba(255,253,248,0.78) !important; }
.door__spine span { background: var(--teal-wash) !important; }
.ai-hero-chat { box-shadow: var(--shadow-2) !important; }
.demo-video, .door--facility { box-shadow: var(--shadow-2) !important; }
/* End warm editorial override layer */
/* ===== Pass 2 · inner-page type-lock + mobile + density (2026-06-20) ===== */
/* locked reading line-length on prose (tables/cards stay full-width) */
.main .content p, .main .content ul, .main .content ol, .main .content blockquote { max-width: 76ch; }
/* content prose banners (strong + text) are block prose, not the structured flex notice — fixes 1-char-column squeeze on mobile (e.g. 11.3 "Honest labels") */
.diligence-banner:has(> strong) { display: block; }
@media (max-width: 900px){
  .content h1 { margin: 1.2rem 0 0.55rem; }
  .content h2 { margin: 1.5rem 0 0.5rem; }
  .content h3 { margin: 1.05rem 0 0.4rem; }
  .content p { margin: 0.85em 0; }
}
@media (max-width: 760px){
  .main { padding: 20px 16px 64px; }
  .content { font-size: 0.97rem; line-height: 1.6; }
  /* wide tables: keep columns readable + scroll (swipe) instead of crushing/word-breaking */
  .content table > thead, .content table > tbody { min-width: 540px; }
  .content th, .content td { overflow-wrap: normal; word-break: normal; hyphens: none; }
}
