/* ============================================================
   RAGböx — Phase 2 shared brand system
   Locked tokens from Phase 1. Do not edit without re-spec.
   ============================================================ */

:root {
  /* Color */
  --rb-blue:        #0006F6;
  --rb-blue-deep:   #0004B8;
  --rb-blue-glow:   #3D44FF;
  --rb-ink:         #0A0A12;
  --rb-ink-soft:    #15151E;
  --rb-paper:       #F5F2EC;
  --rb-paper-bright:#FFFFFF;
  --rb-mute-700:    #3A3A45;
  --rb-mute-400:    #9C9CA8;
  --rb-mute-200:    #E5E2DC;
  --rb-mute-150:    #EDEAE3;
  --rb-signal:      #00A050;
  --rb-signal-glow: #00C660;

  /* Type */
  --font-display: 'DM Serif Display', 'GT Sectra Display', Georgia, serif;
  --font-ui:      'Inter', 'Söhne', -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Söhne Mono', ui-monospace, Menlo, monospace;

  /* Motion */
  --motion-fast:   180ms;
  --motion-base:   400ms;
  --motion-slow:   600ms;
  --motion-cinema: 1200ms;
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-max: 1280px;
  --reading-max: 65ch;
  --gutter:      96px;
  --gutter-sm:   24px;
}

/* ============================================================
   Persistent brain canvas — body-level, behind everything
   ============================================================ */
.rb-brain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity var(--motion-cinema, 1200ms) ease;
}
body { position: relative; }
body > section,
body > article,
body > footer,
body > .status-pulse,
body > .phase2-bar { position: relative; z-index: 2; }

/* Soft nav transitions */
body.rb-nav-out { opacity: 0; transition: opacity 180ms ease-out; }
body.rb-nav-in  { animation: navIn 600ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes navIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Pages that want a dark background behind the canvas */
body[data-brain-bg="ink"] { background: var(--rb-ink, #0A0A12); color: var(--rb-paper, #F5F2EC); }
body[data-brain-bg="paper"] { background: #FFFFFF; color: var(--rb-ink, #0A0A12); }

/* Theme toggle button — sits in the nav, swaps icon based on body data */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(0, 102, 255, 0.25);
  color: inherit;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin: 0 4px;
  transition: background var(--motion-fast) ease-out, border-color var(--motion-fast) ease-out, transform var(--motion-fast) ease-out;
  position: relative;
}
.theme-toggle svg { width: 16px; height: 16px; transition: opacity var(--motion-fast) ease-out, transform var(--motion-fast) ease-out; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
body[data-brain-bg="paper"] .theme-toggle .icon-sun  { opacity: 0; transform: translate(-50%, -50%) rotate(180deg) scale(0.6); }
body[data-brain-bg="paper"] .theme-toggle .icon-moon { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
body[data-brain-bg="ink"]   .theme-toggle .icon-sun  { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
body[data-brain-bg="ink"]   .theme-toggle .icon-moon { opacity: 0; transform: translate(-50%, -50%) rotate(-180deg) scale(0.6); }

body[data-brain-bg="paper"] .theme-toggle { color: var(--rb-ink); }
body[data-brain-bg="paper"] .theme-toggle:hover { background: rgba(0, 102, 255, 0.08); border-color: rgba(0, 102, 255, 0.45); transform: translateY(-1px); }
body[data-brain-bg="ink"]   .theme-toggle { color: var(--rb-paper); border-color: rgba(255, 255, 255, 0.22); }
body[data-brain-bg="ink"]   .theme-toggle:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-1px); }

/* ============================================================
   Paper-variant hero overrides
   ============================================================ */
body[data-brain-bg="paper"] .hero-3d { background: #FFFFFF; }
body[data-brain-bg="paper"] .site-header { background: rgba(255, 255, 255, 0.92); }
body[data-brain-bg="paper"] .hero-thesis { color: var(--rb-ink); }
body[data-brain-bg="paper"] .hero-eyebrow { color: var(--rb-blue); }
body[data-brain-bg="paper"] .hero-eyebrow .dot-pair .dot { background: var(--rb-blue); box-shadow: 0 0 6px var(--rb-blue); }
body[data-brain-bg="paper"] .hero-hint { color: var(--rb-mute-700); }

/* === Premium frosted glass treatment for paper variant === */
/* Heavy backdrop blur + saturate, inner top highlight, gradient depth,
   subtle floating shadow, tier-colored left rule on the active panel.   */
body[data-brain-bg="paper"] .headline-card,
body[data-brain-bg="paper"] .active-panel,
body[data-brain-bg="paper"] .verdict-stage,
body[data-brain-bg="paper"] .verdict-stage-wide,
body[data-brain-bg="paper"] .stat-card,
body[data-brain-bg="paper"] .config-statbar {
  /* CLEAR GLASS — minimal opacity, blue refraction tint, light-catching edges */
  background:
    linear-gradient(
      135deg,
      rgba(0, 102, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.10) 22%,
      rgba(255, 255, 255, 0.04) 60%,
      rgba(0, 102, 255, 0.06) 100%
    );
  backdrop-filter: blur(22px) saturate(190%) contrast(106%);
  -webkit-backdrop-filter: blur(22px) saturate(190%) contrast(106%);
  border: 1px solid rgba(0, 102, 255, 0.30);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow:
    /* Outer drop shadow — defines the floating glass footprint */
    0 28px 64px -14px rgba(0, 102, 255, 0.32),
    0 12px 28px -8px rgba(0, 102, 255, 0.16),
    0 2px 4px rgba(15, 18, 38, 0.06),
    /* Inner light reflections — top edge bright, bottom edge subtle blue */
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 102, 255, 0.22),
    inset 1px 0 0 rgba(255, 255, 255, 0.65),
    inset -1px 0 0 rgba(255, 255, 255, 0.50),
    /* Inner glow — soft halo around the perimeter */
    inset 0 0 24px rgba(255, 255, 255, 0.20);
  color: var(--rb-ink);
  transition: box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1),
              transform   280ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover: glass lifts and the refraction intensifies slightly */
body[data-brain-bg="paper"] .headline-card:hover,
body[data-brain-bg="paper"] .active-panel:hover,
body[data-brain-bg="paper"] .verdict-stage:hover,
body[data-brain-bg="paper"] .verdict-stage-wide:hover,
body[data-brain-bg="paper"] .stat-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 36px 76px -14px rgba(0, 102, 255, 0.38),
    0 14px 32px -8px rgba(0, 102, 255, 0.20),
    0 2px 4px rgba(15, 18, 38, 0.06),
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 102, 255, 0.26),
    inset 1px 0 0 rgba(255, 255, 255, 0.65),
    inset -1px 0 0 rgba(255, 255, 255, 0.50),
    inset 0 0 28px rgba(255, 255, 255, 0.24);
}

body[data-brain-bg="paper"] .active-panel {
  border-left: 3px solid var(--rb-signal);
}
body[data-brain-bg="paper"] .active-panel.tier-base       { border-left: 3px solid #00C660; }
body[data-brain-bg="paper"] .active-panel.tier-premium    { border-left: 3px solid #FF9A1F; }
body[data-brain-bg="paper"] .active-panel.tier-enterprise { border-left: 3px solid #A66BFF; }
body[data-brain-bg="paper"] .active-panel-row { color: var(--rb-mute-700); }
body[data-brain-bg="paper"] .active-name { color: var(--rb-ink); }
body[data-brain-bg="paper"] .active-panel.tier-base .active-name       { color: #00984D; }
body[data-brain-bg="paper"] .active-panel.tier-premium .active-name    { color: #D67A0E; }
body[data-brain-bg="paper"] .active-panel.tier-enterprise .active-name { color: #7B47D6; }
body[data-brain-bg="paper"] .active-meta { color: var(--rb-mute-400); }
body[data-brain-bg="paper"] .verdict-meta { color: #00984D; }
body[data-brain-bg="paper"] .verdict-meta::before { background: #00984D; box-shadow: 0 0 6px #00984D; }
body[data-brain-bg="paper"] .verdict-query { color: var(--rb-blue); border-bottom-color: rgba(0, 6, 246, 0.15); }
body[data-brain-bg="paper"] .verdict-body { color: var(--rb-ink); }
body[data-brain-bg="paper"] .verdict-body .caret { color: #00984D; }
body[data-brain-bg="paper"] .verdict-citations {
  color: var(--rb-mute-700);
  border-top-color: rgba(0, 6, 246, 0.15);
}
body[data-brain-bg="paper"] .verdict-citations .cdot { background: #00984D; box-shadow: 0 0 4px rgba(0, 152, 77, 0.5); }

/* Stat bar — light card */
body[data-brain-bg="paper"] .config-statbar strong,
body[data-brain-bg="paper"] .stat-card strong { color: var(--rb-ink); }
body[data-brain-bg="paper"] .config-statbar span,
body[data-brain-bg="paper"] .stat-card span { color: var(--rb-mute-400); }
body[data-brain-bg="paper"] .hero-thesis { color: var(--rb-ink); }

/* Persona labels — dark text on light backgrounds */
body[data-brain-bg="paper"] .brain-label .bl-code {
  background: rgba(255, 255, 255, 0.85);
  color: var(--rb-mute-700);
  border: 1px solid rgba(0, 6, 246, 0.2);
}
body[data-brain-bg="paper"] .brain-label .bl-full {
  background: rgba(255, 255, 255, 0.97);
  color: var(--rb-ink);
  border: 1px solid rgba(0, 6, 246, 0.4);
  box-shadow: 0 8px 24px rgba(0, 6, 246, 0.15);
}
body[data-brain-bg="paper"] .brain-label .bl-full em { color: var(--rb-mute-400); }
body[data-brain-bg="paper"] .brain-label.tier-base .bl-code     { border-color: rgba(0, 152, 77, 0.45); color: #00984D; }
body[data-brain-bg="paper"] .brain-label.tier-premium .bl-code  { border-color: rgba(214, 122, 14, 0.5); color: #D67A0E; }
body[data-brain-bg="paper"] .brain-label.tier-enterprise .bl-code { border-color: rgba(123, 71, 214, 0.5); color: #7B47D6; }

/* Header on paper bg — clear glass with blue refraction (matches verdict panel) */
body[data-brain-bg="paper"] .site-header {
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 22%,
    rgba(255, 255, 255, 0.04) 60%,
    rgba(0, 102, 255, 0.06) 100%
  );
  backdrop-filter: blur(22px) saturate(190%) contrast(106%);
  -webkit-backdrop-filter: blur(22px) saturate(190%) contrast(106%);
  border-bottom: 1px solid rgba(0, 102, 255, 0.22);
  box-shadow:
    0 6px 18px -6px rgba(0, 102, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
body[data-brain-bg="paper"] .site-header .brand { color: var(--rb-blue); }
body[data-brain-bg="paper"] .site-header .nav-links a { color: var(--rb-mute-700); }
body[data-brain-bg="paper"] .site-header .nav-links a:hover { color: var(--rb-ink); }

/* Header on ink bg — clear glass tinted darker */
body[data-brain-bg="ink"] .site-header {
  background: linear-gradient(
    135deg,
    rgba(0, 191, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.04) 22%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(0, 191, 255, 0.06) 100%
  );
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 6px 18px -6px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-brain-bg="ink"] .site-header .brand { color: var(--rb-blue-glow); }
body[data-brain-bg="ink"] .site-header .nav-links a { color: rgba(245, 242, 236, 0.7); }
body[data-brain-bg="ink"] .site-header .nav-links a:hover { color: var(--rb-paper); }

/* Replay button on paper */
body[data-brain-bg="paper"] .btn-replay {
  border-color: rgba(0, 6, 246, 0.2);
  color: var(--rb-mute-700);
}
body[data-brain-bg="paper"] .btn-replay:hover {
  border-color: var(--rb-ink);
  color: var(--rb-ink);
}
body[data-brain-bg="paper"] .btn-ghost {
  border-color: rgba(0, 6, 246, 0.2);
  color: var(--rb-ink);
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--rb-paper);
  color: var(--rb-ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--rb-blue); text-decoration: none; transition: color var(--motion-fast) ease-out; }
a:hover { color: var(--rb-blue-deep); }

/* ============================================================
   Typography
   ============================================================ */
.display, h1, h2.display, h3.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--rb-ink);
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 24px; }
h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 16px; }
h4 { font-family: var(--font-ui); font-weight: 600; font-size: 17px; line-height: 1.3; margin: 0 0 8px; letter-spacing: 0; }

p { margin: 0 0 18px; max-width: var(--reading-max); }
.lede { font-size: 22px; line-height: 1.45; color: var(--rb-mute-700); margin-bottom: 32px; max-width: 60ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rb-blue);
  display: inline-block;
}
.eyebrow.signal { color: var(--rb-signal); }

.system {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--rb-mute-400);
}

blockquote {
  margin: 48px 0;
  padding: 0 0 0 32px;
  border-left: 3px solid var(--rb-blue);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
  color: var(--rb-ink);
  font-style: italic;
  max-width: 60ch;
}
blockquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rb-mute-400);
  text-transform: uppercase;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter-sm); }
@media (min-width: 900px)  { .container { padding: 0 48px; } }
@media (min-width: 1200px) { .container { padding: 0 var(--gutter); } }

.section       { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-loose { padding: 144px 0; }

.surface-paper       { background: var(--rb-paper); color: var(--rb-ink); }
.surface-paper-bright{ background: var(--rb-paper-bright); color: var(--rb-ink); }
.surface-ink         { background: var(--rb-ink); color: var(--rb-paper); }
.surface-ink h1, .surface-ink h2, .surface-ink h3, .surface-ink h4 { color: var(--rb-paper); }
.surface-ink p { color: rgba(245,242,236,0.75); }
.surface-ink .system { color: rgba(245,242,236,0.5); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px)  { .grid-2 { grid-template-columns: 1fr 1fr; gap: 48px; } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   Header + nav
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 22%,
    rgba(255, 255, 255, 0.04) 60%,
    rgba(0, 102, 255, 0.06) 100%
  );
  backdrop-filter: blur(22px) saturate(190%) contrast(106%);
  -webkit-backdrop-filter: blur(22px) saturate(190%) contrast(106%);
  border-bottom: 1px solid rgba(0, 102, 255, 0.18);
  box-shadow:
    0 6px 18px -6px rgba(0, 102, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
/* Push body content below the fixed header */
body { padding-top: 72px; }
.site-header.on-dark {
  background: rgba(10,10,18,0.7);
  border-bottom-color: rgba(255,255,255,0.08);
}
.site-header.on-dark .nav-links a { color: rgba(245,242,236,0.7); }
.site-header.on-dark .nav-links a:hover { color: var(--rb-paper); }
.site-header.on-dark .brand { color: var(--rb-paper); }

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  height: 32px;
}
.brand-logo { height: 28px; width: auto; display: block; }
body[data-brain-bg="paper"] .brand-logo-light { display: block; }
body[data-brain-bg="paper"] .brand-logo-dark  { display: none; }
body[data-brain-bg="ink"]   .brand-logo-light { display: none; }
body[data-brain-bg="ink"]   .brand-logo-dark  { display: block; }
.nav-links { display: none; }
@media (min-width: 760px) {
  .nav-links { display: flex; gap: 36px; align-items: center; }
}
.nav-links a {
  font-size: 15px;
  color: var(--rb-mute-700);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--rb-ink); }
.nav-links a.active { color: var(--rb-ink); }
.btn-cta,
.nav-links .btn-cta,
.site-header.on-dark .nav-links .btn-cta {
  background: var(--rb-blue);
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: background var(--motion-fast) ease-out, transform var(--motion-fast) ease-out;
}
.btn-cta:hover,
.nav-links .btn-cta:hover,
.site-header.on-dark .nav-links .btn-cta:hover { background: var(--rb-blue-deep); color: white; transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--rb-mute-200);
  background: transparent;
  color: var(--rb-ink);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--rb-ink); color: var(--rb-ink); }
.surface-ink .btn-ghost { border-color: rgba(255,255,255,0.2); color: var(--rb-paper); }
.surface-ink .btn-ghost:hover { border-color: var(--rb-paper); color: var(--rb-paper); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--rb-ink);
  color: rgba(245,242,236,0.6);
  padding: 80px 0 40px;
  font-size: 14px;
}
.site-footer h4 {
  color: var(--rb-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (min-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: rgba(245,242,236,0.7); text-decoration: none; }
.site-footer ul a:hover { color: var(--rb-paper); }
.site-footer .footer-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(245,242,236,0.4);
}
.site-footer .footer-brand { font-family: var(--font-display); font-size: 32px; color: var(--rb-paper); margin-bottom: 16px; letter-spacing: -0.02em; }
.site-footer .footer-tag { max-width: 32ch; line-height: 1.5; color: rgba(245,242,236,0.6); }

/* ============================================================
   Status pulse — global FOMO heartbeat
   ============================================================ */
.status-pulse {
  position: fixed; bottom: 24px; right: 28px;
  z-index: 60;
  background: rgba(10,10,18,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,160,80,0.3);
  color: var(--rb-paper);
  padding: 10px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 10px;
  cursor: default;
  transition: border-color var(--motion-fast) ease-out;
}
.status-pulse:hover { border-color: var(--rb-signal); }
.status-pulse .dots { display: inline-flex; gap: 5px; }
.status-pulse .dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rb-signal);
  display: inline-block;
  animation: pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(0,160,80,0.6);
}
.status-pulse .dots span:nth-child(2) { animation-delay: 0.3s; }
.status-pulse .label { color: rgba(245,242,236,0.55); }
.status-pulse .count { color: var(--rb-paper); font-weight: 500; }

/* The umlaut motif — animated dot pair */
.dot-pair { display: inline-flex; gap: 6px; align-items: center; vertical-align: middle; }
.dot-pair .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rb-blue);
  animation: pulse 1.2s ease-in-out infinite;
}
.dot-pair .dot:nth-child(2) { animation-delay: 0.3s; }
.dot-pair.signal .dot { background: var(--rb-signal); box-shadow: 0 0 8px rgba(0,160,80,0.5); }
.dot-pair.large .dot { width: 14px; height: 14px; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.7; }
}

/* ============================================================
   Hero — home page
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: transparent;
  color: var(--rb-paper);
  overflow: hidden;
  display: flex; align-items: center;
}
/* Hero no longer owns the canvas — it lives at body level. */
.hero canvas#ragbrain { display: none; }

/* ============================================================
   3D Brain hero v3 — brain as full-section backdrop
   ============================================================ */
.hero-3d {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
  background: var(--rb-ink);
}
.hero-3d .container {
  max-width: 1520px;
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 32px;
  pointer-events: none;
}
.hero-3d .container > * { pointer-events: auto; }
.hero-top { margin-bottom: 32px; max-width: none; }

/* Hero grid layout — headline TL, panels R, stats BL aligned to verdict bottom, hint under verdict */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 540px) 1fr minmax(360px, 480px);
  grid-template-rows: auto 1fr auto auto;
  grid-template-areas:
    "eyebrow  .         ."
    "headline .         panels"
    "stats    .         panels"
    "cta      .         hint";
  gap: 24px 48px;
  min-height: calc(100vh - 72px);
  align-items: start;
}
.hero-grid .hero-eyebrow   { grid-area: eyebrow; }
.hero-grid .headline-card  {
  grid-area: headline;
  align-self: start;
  justify-self: start;
  width: max-content;       /* card hugs natural text width */
  max-width: min(540px, 100%);
}
.hero-grid .right-stack    {
  grid-area: panels; align-self: stretch;
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 56px;
  max-height: calc(100vh - 220px);
  min-height: 0;
}
.hero-grid .right-stack .verdict-stage,
.hero-grid .right-stack .verdict-stage-wide { min-height: 0; flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.hero-grid .right-stack .verdict-body { overflow-y: auto; min-height: 0; flex: 1; }
.hero-grid .right-stack .verdict-body::-webkit-scrollbar { width: 4px; }
.hero-grid .right-stack .verdict-body::-webkit-scrollbar-thumb { background: rgba(0,102,255,0.3); border-radius: 2px; }
.hero-grid .stat-card      { grid-area: stats; align-self: end; }   /* bottom-aligned with verdict bottom */
.hero-grid .hero-cta       { grid-area: cta; align-self: start; }
.hero-grid .hero-hint      { grid-area: hint; align-self: start; justify-self: start; max-width: 100%; padding-top: 4px; }

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto auto;
    grid-template-areas:
      "eyebrow"
      "headline"
      "strip"
      "panels"
      "hint"
      "stats"
      "cta";
  }
  .hero-grid .right-stack { padding-top: 0; max-height: none; }
  .hero-grid .persona-strip { grid-area: strip; }
}

/* ============================================================
   Mobile-specific styles
   ============================================================ */

/* Dot trigger button — hidden by default (desktop), visible on mobile */
/* Dot menu trigger — two umlaut dots, bright BLUE in both themes,
   always glowing (idle pulse), strong glow when menu is open */
.dot-trigger {
  display: none;
  background: transparent;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  position: relative;
  width: 60px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.dot-trigger .dt-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: #0066FF;
  display: block;
  margin: 0;
  transition: box-shadow 320ms ease-out, transform 320ms ease-out, background 200ms ease-out;
  animation: dotTriggerPulse 1.6s ease-in-out infinite;
}
.dot-trigger .dt-dot:nth-child(2) { animation-delay: 0.5s; }
.dot-trigger .dt-line { display: none; }

/* In dark mode, use the brighter cyan-blue so dots pop on ink bg */
body[data-brain-bg="ink"] .dot-trigger .dt-dot { background: #00BFFF; }

/* Idle: subtle but always-visible glow */
@keyframes dotTriggerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px currentColor, 0 0 12px rgba(0, 102, 255, 0.5);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 10px currentColor, 0 0 20px rgba(0, 102, 255, 0.7);
  }
}
.dot-trigger { color: #0066FF; }
body[data-brain-bg="ink"] .dot-trigger { color: #00BFFF; }
body[data-brain-bg="ink"] .dot-trigger .dt-dot {
  animation-name: dotTriggerPulseDark;
}
@keyframes dotTriggerPulseDark {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px #00BFFF, 0 0 16px rgba(0, 191, 255, 0.55);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 14px #00BFFF, 0 0 26px rgba(0, 191, 255, 0.75);
  }
}

/* Open: stronger glow, larger scale */
.dot-trigger.open .dt-dot {
  animation: dotTriggerGlow 1.4s ease-in-out infinite;
}
.dot-trigger.open .dt-dot:nth-child(2) { animation-delay: 0.5s; }
@keyframes dotTriggerGlow {
  0%, 100% {
    transform: scale(1.1);
    box-shadow:
      0 0 12px currentColor,
      0 0 22px currentColor,
      0 0 36px rgba(0, 102, 255, 0.6);
  }
  50% {
    transform: scale(1.30);
    box-shadow:
      0 0 18px currentColor,
      0 0 34px currentColor,
      0 0 54px rgba(0, 102, 255, 0.85);
  }
}
body[data-brain-bg="ink"] .dot-trigger.open .dt-dot {
  animation-name: dotTriggerGlowDark;
}
@keyframes dotTriggerGlowDark {
  0%, 100% {
    transform: scale(1.1);
    box-shadow:
      0 0 14px #00BFFF,
      0 0 26px #00BFFF,
      0 0 40px rgba(0, 191, 255, 0.65);
  }
  50% {
    transform: scale(1.30);
    box-shadow:
      0 0 20px #00BFFF,
      0 0 40px #00BFFF,
      0 0 60px rgba(0, 191, 255, 0.9);
  }
}

/* Mobile drawer — slides down from the header (SOLID, readable) */
.mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 14px 24px 22px;
  gap: 4px;
  border-bottom: 1px solid rgba(0, 102, 255, 0.18);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.18);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 220ms ease-out;
}
body[data-brain-bg="paper"] .mobile-drawer {
  background: #FFFFFF;
}
body[data-brain-bg="ink"] .mobile-drawer {
  background: #0A0A12;
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* All drawer items get a uniform max-width and center within the drawer */
.mobile-drawer > * {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.mobile-drawer .md-link,
.mobile-drawer .md-cta {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  padding: 16px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 102, 255, 0.10);
  display: block;
}
.mobile-drawer .md-link:last-of-type { border-bottom: none; }
.mobile-drawer .md-cta {
  margin-top: 16px;
  border-radius: 8px;
  padding: 16px;
  font-weight: 600;
}
.mobile-drawer .md-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(0, 102, 255, 0.22);
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  margin-top: 14px;
  position: relative;
}
.mobile-drawer .md-theme-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
.mobile-drawer .md-theme-toggle .md-theme-label { padding-left: 0; }
/* Theme toggle icons inside drawer — hide one based on current mode */
body[data-brain-bg="paper"] .md-theme-toggle .icon-sun  { display: none; }
body[data-brain-bg="paper"] .md-theme-toggle .icon-moon { display: inline-block; }
body[data-brain-bg="ink"]   .md-theme-toggle .icon-sun  { display: inline-block; }
body[data-brain-bg="ink"]   .md-theme-toggle .icon-moon { display: none; }

body[data-brain-bg="paper"] .mobile-drawer { color: var(--rb-ink); }
body[data-brain-bg="paper"] .mobile-drawer .md-link { color: var(--rb-ink); }
body[data-brain-bg="ink"]   .mobile-drawer { color: var(--rb-paper); }
body[data-brain-bg="ink"]   .mobile-drawer .md-link { color: var(--rb-paper); }

/* Persona chip strip — mobile only */
.persona-strip {
  display: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 12px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.persona-strip::-webkit-scrollbar { display: none; }
.persona-strip { scrollbar-width: none; }
.persona-strip .ps-group {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid rgba(0, 102, 255, 0.15);
  flex-direction: column;
}
.persona-strip .ps-group:last-child { border-right: none; }
.persona-strip .ps-group-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rb-mute-400);
  padding: 0 4px 8px;
  font-weight: 600;
  white-space: nowrap;
}
.persona-strip .ps-chips {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
/* Edge fade — shows there's more to scroll */
.persona-strip {
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
}
.persona-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(0, 102, 255, 0.06) 100%
  );
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(0, 102, 255, 0.22);
  border-radius: 100px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 180ms ease-out, border-color 180ms ease-out;
  color: inherit;
  height: 32px;
  min-width: 56px;
}
.persona-chip:active { transform: scale(0.96); }
.persona-chip.tier-base       { border-color: rgba(0, 198, 96, 0.5); color: #00984D; }
.persona-chip.tier-premium    { border-color: rgba(255, 154, 31, 0.55); color: #D67A0E; }
.persona-chip.tier-enterprise { border-color: rgba(166, 107, 255, 0.55); color: #7B47D6; }
.persona-chip.active {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.18) 0%, rgba(0, 102, 255, 0.10) 100%);
  border-color: var(--rb-blue);
  color: var(--rb-blue);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.22);
}
body[data-brain-bg="ink"] .persona-chip { color: var(--rb-paper); }
body[data-brain-bg="ink"] .persona-chip.tier-base       { color: #00FF80; }
body[data-brain-bg="ink"] .persona-chip.tier-premium    { color: #FFCC55; }
body[data-brain-bg="ink"] .persona-chip.tier-enterprise { color: #CAA5FF; }

/* ============================================================
   Mobile breakpoint (<= 760px)
   ============================================================ */
@media (max-width: 760px) {
  body { padding-top: 60px; }
  .container { padding: 0 20px; }

  .site-header .container { height: 60px; }
  .nav-links { display: none; }
  .dot-trigger { display: inline-flex; }
  .mobile-drawer { display: flex; }
  .brand-logo { height: 24px; }

  /* Hero grid — full vertical stack. Hint moves UP, just before chip strip,
     so users know the chips are tappable. Stats + CTA are centered. */
  .hero-grid {
    gap: 18px 0;
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto auto auto;
    grid-template-areas:
      "eyebrow"
      "headline"
      "brain"
      "hint"
      "strip"
      "panels"
      "stats"
      "cta";
  }
  .hero-grid .headline-card  { width: 100%; max-width: 100%; }
  .hero-grid .brain-dominant { grid-area: brain; }
  .hero-grid .persona-strip  { grid-area: strip; }
  .hero-grid .right-stack    { grid-area: panels; padding-top: 0; max-height: none; gap: 12px; }
  .hero-grid .stat-card      { grid-area: stats; max-width: 100%; justify-self: center; width: 100%; max-width: 320px; }
  .hero-grid .stat-card > div { justify-content: center; }
  .hero-grid .hero-cta       { grid-area: cta; flex-wrap: wrap; justify-content: center; justify-self: center; gap: 10px; }
  .hero-grid .hero-cta > * { flex: 1 1 auto; min-width: 140px; text-align: center; justify-content: center; }
  .hero-grid .hero-hint      { grid-area: hint; justify-self: center; text-align: center; padding: 0 24px; }

  /* CRITICAL: kill the desktop right-side floating on the panels */
  .hero-grid .active-panel,
  .hero-grid .verdict-stage,
  .hero-grid .verdict-stage-wide {
    max-width: 100% !important;
    margin-left: 0 !important;
    width: 100%;
  }

  .hero-3d { padding-bottom: 80px; }
  .hero-3d .container { padding-top: 24px; padding-bottom: 32px; }

  /* Brain — relative-positioned, full-width, contained height */
  .brain-dominant {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 60vh !important;
    min-height: 360px;
    max-height: 480px;
    margin: 8px 0;
  }
  .brain-3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
  }
  /* Hide persona labels on mobile — chip strip replaces them */
  .brain3d-labels { display: none !important; }

  .persona-strip { display: block; }

  /* Smaller text on mobile */
  .hero-thesis { font-size: clamp(24px, 6vw, 32px); }
  .hero-eyebrow { font-size: 11px; flex-wrap: wrap; }
  .stat-card strong { font-size: 28px; }
  .stat-card span { font-size: 10px; }
  .verdict-stage, .verdict-stage-wide { padding: 18px 20px; }
  .verdict-body { font-size: 13.5px; }
  .verdict-query { font-size: 14px; }
  .active-name { font-size: clamp(22px, 5.5vw, 30px); }
  .headline-card { padding: 20px 22px; }
  .config-statbar.visible { display: grid; }

  /* Footer */
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.14em; font-weight: 500;
  color: var(--rb-signal);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.hero-eyebrow .dot-pair .dot { background: var(--rb-signal); box-shadow: 0 0 6px var(--rb-signal); }

.hero-thesis {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--rb-paper);
  margin: 0;
  max-width: none;
}

/* Headline glass card */
.headline-card {
  padding: 26px 30px;
  border-radius: 12px;
}

/* 2x2 stat card — replaces the wide bar */
.stat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  padding: 22px 26px;
  max-width: 380px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity var(--motion-slow) ease-out;
}
.stat-card.visible { opacity: 1; }
.stat-card > div { display: flex; align-items: baseline; gap: 10px; }
.stat-card strong {
  font-family: var(--font-display);
  font-size: 34px; line-height: 1;
  letter-spacing: -0.025em; font-weight: 400;
  color: var(--rb-paper);
}
.stat-card span {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.1em; font-weight: 500;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.65);
}

/* Brain becomes the full hero backdrop on desktop.
   On mobile we override to position: relative + grid-area: brain. */
.brain-dominant {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  grid-column: 1 / -1; /* if it ever lands in a grid context, span full width */
}
.brain-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* let the body ink show through, no halo */
  pointer-events: auto;    /* OrbitControls capture drag */
}
.brain-3d canvas { display: block; width: 100%; height: 100%; }

/* Persona label overlay layer — HTML-projected from 3D coords */
.brain3d-labels {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 5;
}
.brain-label {
  position: absolute;
  top: 0; left: 0;
  pointer-events: auto;
  cursor: pointer;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
  user-select: none;
  transition: transform 60ms linear, opacity 180ms ease-out;
  will-change: transform, opacity;
}
.brain-label .bl-code {
  display: inline-block;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 236, 0.72);
  background: rgba(7, 7, 22, 0.78);
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid rgba(61, 68, 255, 0.28);
  text-transform: uppercase;
  line-height: 1;
  transition: all 180ms ease-out;
}
.brain-label .bl-full {
  display: none;
  position: absolute; left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%);
  font-size: 12.5px; font-weight: 500;
  line-height: 1.4;
  color: var(--rb-paper);
  background: rgba(7, 7, 22, 0.96);
  border: 1px solid rgba(61, 68, 255, 0.5);
  padding: 10px 14px;
  border-radius: 5px;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 6, 246, 0.3);
}
.brain-label .bl-full em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(245, 242, 236, 0.65);
  display: block;
  margin-top: 4px;
}
.brain-label.tier-base .bl-code     { border-color: rgba(0, 198, 96, 0.35); color: #00C660; }
.brain-label.tier-premium .bl-code  { border-color: rgba(255, 154, 31, 0.4); color: #FF9A1F; }
.brain-label.tier-enterprise .bl-code { border-color: rgba(166, 107, 255, 0.4); color: #A66BFF; }
.brain-label.hovered .bl-code,
.brain-label.active .bl-code {
  font-size: 11px;
  padding: 4px 8px;
  letter-spacing: 0.12em;
  background: rgba(7, 7, 22, 0.95);
  color: var(--rb-paper);
  transform: scale(1.05);
}
.brain-label.tier-base.hovered .bl-code,
.brain-label.tier-base.active .bl-code     { border-color: #00FF80; box-shadow: 0 0 14px rgba(0, 255, 128, 0.5); }
.brain-label.tier-premium.hovered .bl-code,
.brain-label.tier-premium.active .bl-code  { border-color: #FFCC55; box-shadow: 0 0 14px rgba(255, 204, 85, 0.5); }
.brain-label.tier-enterprise.hovered .bl-code,
.brain-label.tier-enterprise.active .bl-code { border-color: #CAA5FF; box-shadow: 0 0 14px rgba(202, 165, 255, 0.5); }
.brain-label.hovered .bl-full { display: block; }

/* Big active-persona indicator panel — overlay card with backdrop blur */
.active-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 28px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: rgba(7, 7, 22, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 4px solid var(--rb-signal);
  border: 1px solid rgba(0, 191, 255, 0.18);
  border-left: 4px solid var(--rb-signal);
  position: relative;
  max-width: 480px;
  margin-left: auto;
}
.active-panel.tier-base       { border-left-color: #00C660; }
.active-panel.tier-premium    { border-left-color: #FF9A1F; }
.active-panel.tier-enterprise { border-left-color: #A66BFF; }
.active-panel-row {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.14em; font-weight: 500;
  color: rgba(245, 242, 236, 0.7);
  text-transform: uppercase;
}
.active-panel-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rb-signal);
  box-shadow: 0 0 8px var(--rb-signal);
  margin-right: 8px;
  animation: pulse 1.2s ease-in-out infinite;
  vertical-align: middle;
}
.active-tier {
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  border: 1px solid currentColor;
}
.active-tier.tier-base       { color: #00C660; }
.active-tier.tier-premium    { color: #FF9A1F; }
.active-tier.tier-enterprise { color: #A66BFF; }
.active-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--rb-paper);
}
.active-panel.tier-base .active-name       { color: #00FF80; }
.active-panel.tier-premium .active-name    { color: #FFCC55; }
.active-panel.tier-enterprise .active-name { color: #CAA5FF; }
.active-meta {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.10em; font-weight: 500;
  color: rgba(245, 242, 236, 0.6);
  text-transform: uppercase;
}
.active-sep { margin: 0 8px; opacity: 0.4; }

.verdict-stage-wide {
  max-width: 480px;
  margin-left: auto;
  margin-bottom: 32px;
  background: rgba(7, 7, 22, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 191, 255, 0.18);
}

/* Multi-stage caption colors */
.verdict-meta.stage-ragboxing { color: rgba(245,242,236,0.6); }
.verdict-meta.stage-indexing  { color: var(--rb-blue-glow); }
.verdict-meta.stage-query     { color: var(--rb-blue-glow); }
.verdict-meta.stage-verdict   { color: var(--rb-signal); }

/* ---------- Verdict panel ---------- */
.verdict-stage {
  background: rgba(7, 7, 22, 0.6);
  border: 1px solid rgba(61, 68, 255, 0.22);
  border-radius: 8px;
  padding: 28px 32px;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.verdict-meta {
  font-size: 12.5px; letter-spacing: 0.10em; text-transform: uppercase; font-weight: 500;
  color: var(--rb-signal);
  display: flex; align-items: center; gap: 8px;
  opacity: 0;
  transition: opacity var(--motion-base) ease-out;
  min-height: 1em;
}
.verdict-meta.visible { opacity: 1; }
.verdict-meta::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rb-signal);
  box-shadow: 0 0 6px var(--rb-signal);
  animation: pulse 1.2s ease-in-out infinite;
}

.verdict-query {
  font-size: 15.5px; font-weight: 500;
  color: var(--rb-blue-glow);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  border-bottom: 1px solid rgba(61, 68, 255, 0.18);
  padding-bottom: 12px;
  min-height: 1.4em;
  line-height: 1.5;
}

.verdict-body {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.96);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  min-height: 200px;
  opacity: 0;
  transition: opacity var(--motion-fast) ease-out;
}
.verdict-body.visible { opacity: 1; }
.verdict-body .vline { white-space: pre-wrap; }
.verdict-body .caret { color: var(--rb-signal); animation: caretBlink 0.8s steps(2) infinite; }
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.verdict-citations {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(245, 242, 236, 0.78);
  letter-spacing: 0.01em;
  border-top: 1px solid rgba(61, 68, 255, 0.18);
  padding-top: 14px;
  opacity: 0;
  transition: opacity var(--motion-base) ease-out;
}
.verdict-citations.visible { opacity: 1; }
.verdict-citations .cdot {
  width: 6px; height: 6px;
  background: var(--rb-signal);
  border-radius: 50%;
  align-self: center;
  box-shadow: 0 0 4px rgba(0, 160, 80, 0.55);
}

/* ---------- Stat bar ---------- */
.config-statbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(61, 68, 255, 0.15);
  border-bottom: 1px solid rgba(61, 68, 255, 0.15);
  margin-bottom: 36px;
  opacity: 0;
  transition: opacity var(--motion-slow) ease-out;
}
@media (min-width: 760px) { .config-statbar { grid-template-columns: repeat(4, 1fr); } }
.config-statbar.visible { opacity: 1; }
.config-statbar > div { display: flex; align-items: baseline; gap: 12px; }
.config-statbar strong {
  font-family: var(--font-display);
  font-size: 36px; line-height: 1;
  color: var(--rb-paper);
  letter-spacing: -0.025em;
  font-weight: 400;
}
.config-statbar span {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(245, 242, 236, 0.42);
  text-transform: uppercase;
}

/* ---------- Hero CTA + replay + hint ---------- */
.hero-3d .hero-cta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-bottom: 28px;
  opacity: 0;
  transition: opacity var(--motion-slow) ease-out;
}
.hero-3d .hero-cta.visible { opacity: 1; }
.btn-replay {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(245, 242, 236, 0.6);
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease-out, color 180ms ease-out;
}
.btn-replay:hover { border-color: var(--rb-paper); color: var(--rb-paper); }
.hero-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em; font-weight: 500;
  color: rgba(245, 242, 236, 0.65);
  text-transform: uppercase;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-hint::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rb-signal);
  box-shadow: 0 0 8px var(--rb-signal);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
body[data-brain-bg="paper"] .hero-hint { color: var(--rb-mute-700); }

@media (max-width: 760px) {
  .verdict-stage { padding: 20px 22px; }
  .config-statbar strong { font-size: 28px; }
}

/* ============================================================
   Configurator hero (Phase 4 #1 rebuild) — brain + personas
   ============================================================ */
.hero-config { padding: 96px 0 64px; min-height: auto; }
.hero-config .container { max-width: 1280px; }

.config-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  color: rgba(0, 6, 246, 0.85);
  margin-bottom: 16px;
}
.config-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--rb-paper);
  margin: 0 0 28px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.config-headline .config-brand {
  font-style: italic;
  font-size: 0.42em;
  color: var(--rb-blue);
  font-weight: 400;
  letter-spacing: -0.01em;
  align-self: center;
}
.config-headline .config-for { color: var(--rb-paper); }
.config-headline .config-target {
  color: var(--rb-blue-glow);
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--rb-blue);
  transition: opacity var(--motion-base) ease-out;
  background: linear-gradient(180deg, #3D44FF 0%, #0006F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.config-sub {
  font-size: 17px; line-height: 1.6;
  color: rgba(245,242,236,0.62);
  max-width: 56ch;
  margin: 0 0 56px;
}

.thesis {
  display: none; /* Reserved — the configurator headline is the new hero anchor */
}

/* ---------- Brain stage (left) + verdict (right) ---------- */
.brain-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
@media (min-width: 1100px) {
  .brain-stage { grid-template-columns: 1.05fr 0.95fr; gap: 72px; }
}

.brain-wrap {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
}
#brain-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}
#brain-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

/* Persona dots */
.brain-dot {
  fill: var(--rb-blue);
  cursor: pointer;
  transition: r 200ms ease-out;
  filter: drop-shadow(0 0 4px rgba(0, 6, 246, 0.7));
}
.brain-dot.tier-base       { fill: #00C660; filter: drop-shadow(0 0 3px rgba(0,198,96,0.55)); }
.brain-dot.tier-premium    { fill: #FF9A1F; filter: drop-shadow(0 0 3px rgba(255,154,31,0.55)); }
.brain-dot.tier-enterprise { fill: #A66BFF; filter: drop-shadow(0 0 3px rgba(166,107,255,0.55)); }
.brain-dot:hover, .brain-dot.hovered {
  r: 9;
  filter: drop-shadow(0 0 10px currentColor);
}
.brain-dot.active {
  r: 11;
  fill: var(--rb-blue-glow);
  filter: drop-shadow(0 0 14px var(--rb-blue-glow));
  animation: dotActivePulse 1.1s ease-in-out infinite;
}
.brain-dot.brain-anchor {
  fill: var(--rb-blue-glow);
  filter: drop-shadow(0 0 16px var(--rb-blue-glow));
  cursor: default;
  animation: dotAnchorPulse 1.6s ease-in-out infinite;
}
@keyframes dotActivePulse {
  0%, 100% { r: 11; }
  50%      { r: 13; }
}
@keyframes dotAnchorPulse {
  0%, 100% { r: 10; opacity: 0.95; }
  50%      { r: 12; opacity: 0.7; }
}

.brain-region-labels { user-select: none; pointer-events: none; }
.brain-folds { pointer-events: none; }

/* Hover label */
.brain-hover-label {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(10, 10, 18, 0.88);
  color: var(--rb-paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid rgba(61, 68, 255, 0.4);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-out;
}
.brain-hover-label.visible { opacity: 1; }

/* ---------- Verdict panel (right column) ---------- */
.verdict-stage {
  background: rgba(7, 7, 22, 0.5);
  border: 1px solid rgba(61, 68, 255, 0.18);
  border-radius: 8px;
  padding: 28px 32px;
  font-family: var(--font-mono);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.verdict-meta {
  font-size: 12.5px; letter-spacing: 0.10em; text-transform: uppercase; font-weight: 500;
  color: var(--rb-signal);
  display: flex; align-items: center; gap: 8px;
  opacity: 0;
  transition: opacity var(--motion-base) ease-out;
  min-height: 1em;
}
.verdict-meta.visible { opacity: 1; }
.verdict-meta::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rb-signal);
  box-shadow: 0 0 6px var(--rb-signal);
  animation: pulse 1.2s ease-in-out infinite;
}

.verdict-query {
  font-size: 14px;
  color: var(--rb-blue-glow);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  border-bottom: 1px solid rgba(61, 68, 255, 0.18);
  padding-bottom: 12px;
  min-height: 1.4em;
  white-space: pre-wrap;
}

.verdict-body {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.92);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  opacity: 0;
  transition: opacity var(--motion-fast) ease-out;
}
.verdict-body.visible { opacity: 1; }
.verdict-body .vline { white-space: pre-wrap; }
.verdict-body .caret { color: var(--rb-signal); animation: caretBlink 0.8s steps(2) infinite; }
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.verdict-citations {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(245, 242, 236, 0.78);
  letter-spacing: 0.01em;
  border-top: 1px solid rgba(61, 68, 255, 0.18);
  padding-top: 14px;
  opacity: 0;
  transition: opacity var(--motion-base) ease-out;
}
.verdict-citations.visible { opacity: 1; }
.verdict-citations .cdot {
  width: 6px; height: 6px;
  background: var(--rb-signal);
  border-radius: 50%;
  align-self: center;
  box-shadow: 0 0 4px rgba(0, 160, 80, 0.55);
}

/* ---------- Stat bar ---------- */
.config-statbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(61, 68, 255, 0.15);
  border-bottom: 1px solid rgba(61, 68, 255, 0.15);
  margin-bottom: 36px;
  opacity: 0;
  transition: opacity var(--motion-slow) ease-out;
}
@media (min-width: 760px) { .config-statbar { grid-template-columns: repeat(4, 1fr); } }
.config-statbar.visible { opacity: 1; }
.config-statbar > div { display: flex; align-items: baseline; gap: 12px; }
.config-statbar strong {
  font-family: var(--font-display);
  font-size: 36px; line-height: 1;
  color: var(--rb-paper);
  letter-spacing: -0.025em;
  font-weight: 400;
}
.config-statbar span {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(245, 242, 236, 0.42);
  text-transform: uppercase;
}

/* ---------- Hero CTA + replay + hint ---------- */
.hero-config .hero-cta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-bottom: 28px;
  opacity: 0;
  transition: opacity var(--motion-slow) ease-out;
}
.hero-config .hero-cta.visible { opacity: 1; }
.btn-replay {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(245, 242, 236, 0.6);
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease-out, color 180ms ease-out;
}
.btn-replay:hover { border-color: var(--rb-paper); color: var(--rb-paper); }
.hero-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em; font-weight: 500;
  color: rgba(245, 242, 236, 0.65);
  text-transform: uppercase;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-hint::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rb-signal);
  box-shadow: 0 0 8px var(--rb-signal);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
body[data-brain-bg="paper"] .hero-hint { color: var(--rb-mute-700); }

@media (max-width: 760px) {
  .config-headline { font-size: clamp(40px, 9vw, 72px); gap: 10px; }
  .verdict-stage { padding: 20px 22px; min-height: 320px; }
  .config-statbar strong { font-size: 28px; }
}
.hero .hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 96px 0 64px;
}

/* The thesis line — types in character by character */
.hero .thesis {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.0vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--rb-paper);
  max-width: 22ch;
  margin: 0 0 28px;
  min-height: 1.1em;
}

/* The system-voice caption — narrates each stage */
.hero .hero-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--rb-signal);
  text-transform: uppercase;
  margin-bottom: 28px;
  min-height: 1.5em;
  opacity: 0;
  transition: opacity var(--motion-base) ease-out;
  display: flex; align-items: center; gap: 8px;
}
.hero .hero-caption.visible { opacity: 1; }
.hero .hero-caption::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rb-signal);
  box-shadow: 0 0 8px var(--rb-signal);
  animation: pulse 1.2s ease-in-out infinite;
}

/* The verdict panel — types in line by line in monospace */
.hero .hero-verdict {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245,242,236,0.92);
  max-width: 56ch;
  margin: 0 0 32px;
  padding: 24px 28px;
  background: rgba(10,10,18,0.72);
  border-left: 3px solid var(--rb-signal);
  border-radius: 0 4px 4px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: pre-wrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out);
  min-height: 0;
}
.hero .hero-verdict.visible { opacity: 1; transform: translateY(0); }
.hero .hero-verdict .vline { white-space: pre-wrap; }
.hero .hero-verdict .caret { color: var(--rb-signal); animation: caretBlink 0.8s steps(2) infinite; }
.hero .hero-verdict .vcitations {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: rgba(245,242,236,0.65);
  letter-spacing: 0.04em;
}
.hero .hero-verdict .vcitations .cdot {
  width: 6px; height: 6px;
  background: var(--rb-signal);
  border-radius: 50%;
  align-self: center;
  box-shadow: 0 0 4px rgba(0,160,80,0.6);
}
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* CTA + replay row */
.hero .hero-cta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out);
}
.hero .hero-cta.visible { opacity: 1; transform: translateY(0); }

.hero .btn-replay {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(245,242,236,0.6);
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--motion-fast) ease-out, color var(--motion-fast) ease-out;
}
.hero .btn-replay:hover { border-color: var(--rb-paper); color: var(--rb-paper); }

@media (max-width: 760px) {
  .hero .hero-verdict { font-size: 12px; padding: 16px 18px; max-width: none; }
  .hero .hero-content { padding: 72px 0 48px; }
}

/* ============================================================
   Cards (brain cards, dossier cards)
   ============================================================ */
.card {
  background: var(--rb-paper-bright);
  border: 1px solid var(--rb-mute-200);
  border-radius: 8px;
  padding: 28px 24px;
  transition: border-color var(--motion-fast) ease-out, transform var(--motion-fast) ease-out, box-shadow var(--motion-fast) ease-out;
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { border-color: var(--rb-blue); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,6,246,0.06); }
.card.dim { opacity: 0.55; }
.card.dim:hover { transform: none; border-color: var(--rb-mute-200); box-shadow: none; }

.card .card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.card .card-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rb-mute-400);
}
.card .card-tag.available { color: var(--rb-signal); }
.card .card-tag.locked    { color: var(--rb-mute-400); }
.card .card-name {
  font-family: var(--font-display); font-size: 28px; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--rb-ink); margin: 0;
}
.card .card-desc { font-size: 14px; line-height: 1.5; color: var(--rb-mute-700); margin: 0; }
.card .card-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--rb-mute-150);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--rb-mute-400); letter-spacing: 0.04em;
}
.card .card-foot strong { color: var(--rb-ink); font-weight: 500; }
.card .card-link { color: var(--rb-blue); font-size: 13px; font-weight: 500; }

/* ============================================================
   Pricing tiers
   ============================================================ */
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .tier-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tier {
  background: var(--rb-paper-bright);
  border: 1px solid var(--rb-mute-200);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier.featured { border: 2px solid var(--rb-blue); transform: scale(1.02); }
.tier.featured::before {
  content: 'MOST CHOSEN';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--rb-blue); color: white;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  padding: 4px 12px; border-radius: 100px;
}
.tier .tier-name { font-family: var(--font-display); font-size: 32px; margin: 0 0 8px; line-height: 1.1; }
.tier .tier-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rb-mute-400); margin-bottom: 28px;
}
.tier .tier-price {
  font-family: var(--font-display);
  font-size: 56px; line-height: 1; letter-spacing: -0.03em;
  color: var(--rb-ink); margin-bottom: 4px;
}
.tier .tier-price small { font-size: 16px; color: var(--rb-mute-400); font-family: var(--font-mono); letter-spacing: 0.04em; font-weight: 400; margin-left: 6px; }
.tier .tier-price-detail { font-size: 13px; color: var(--rb-mute-700); margin-bottom: 32px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 32px; }
.tier ul li {
  font-size: 14px; line-height: 1.5; padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--rb-mute-150);
  position: relative;
}
.tier ul li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rb-blue);
}
.tier .tier-cta { margin-top: auto; }
.tier .tier-request { font-size: 32px; font-family: var(--font-display); color: var(--rb-mute-700); margin-bottom: 16px; }

/* ============================================================
   Editorial / dossier
   ============================================================ */
.dossier-hero {
  background: var(--rb-ink);
  color: var(--rb-paper);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.dossier-hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.4;
  z-index: 0;
}
.dossier-hero .container { position: relative; z-index: 2; }
.dossier-hero h1 {
  color: var(--rb-paper);
  font-size: clamp(40px, 6vw, 80px);
  max-width: 18ch;
  margin: 24px 0 32px;
  line-height: 1.0;
}
.dossier-hero .meta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: rgba(245,242,236,0.6);
  display: flex; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 48px;
}
.dossier-hero .meta strong { color: var(--rb-paper); font-weight: 400; }

.dossier-body {
  max-width: 720px; margin: 0 auto; padding: 80px 24px;
}
.dossier-body p { font-size: 19px; line-height: 1.7; color: var(--rb-ink); margin: 0 0 24px; max-width: none; }
.dossier-body p.first::first-letter {
  font-family: var(--font-display);
  font-size: 88px; line-height: 0.85;
  float: left;
  margin: 8px 14px 0 0;
  color: var(--rb-blue);
}
.dossier-body h2 {
  font-size: 36px; margin: 64px 0 16px;
}
.dossier-body .pull {
  margin: 56px -32px;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-size: 32px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--rb-blue);
  font-style: normal;
  text-align: left;
  position: relative; padding-left: 32px;
}
.dossier-body .pull::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; background: var(--rb-blue);
}
.dossier-body .pull cite { color: var(--rb-mute-400); display: block; margin-top: 16px; font-size: 12px; letter-spacing: 0.08em; }

.dossier-stats {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  margin: 64px 0;
  padding: 48px 0;
  border-top: 1px solid var(--rb-mute-200);
  border-bottom: 1px solid var(--rb-mute-200);
}
@media (min-width: 700px) { .dossier-stats { grid-template-columns: repeat(3, 1fr); } }
.dossier-stats .stat-num {
  font-family: var(--font-display);
  font-size: 64px; line-height: 1; letter-spacing: -0.03em;
  color: var(--rb-blue);
  margin-bottom: 8px;
}
.dossier-stats .stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rb-mute-400); }

/* ============================================================
   Mode toggle (access page)
   ============================================================ */
.mode-toggle {
  display: inline-flex;
  background: var(--rb-mute-150);
  border-radius: 100px;
  padding: 4px;
  margin: 24px 0;
}
.mode-toggle button {
  background: transparent; border: none;
  padding: 10px 20px; font-size: 13px;
  font-weight: 500; color: var(--rb-mute-700);
  border-radius: 100px;
  font-family: var(--font-ui);
  letter-spacing: -0.005em;
  transition: background var(--motion-fast) ease-out, color var(--motion-fast) ease-out;
}
.mode-toggle button.active { background: var(--rb-ink); color: var(--rb-paper); }

/* ============================================================
   Without/With reveal
   ============================================================ */
.versus {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  background: var(--rb-ink);
  padding: 32px;
  border-radius: 12px;
}
@media (min-width: 800px) { .versus { grid-template-columns: 1fr 1fr; gap: 24px; } }
.versus .vs-card {
  background: var(--rb-ink-soft);
  padding: 28px 24px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}
.versus .vs-card .vs-tag {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,242,236,0.4);
  margin-bottom: 12px; display: block;
}
.versus .vs-card.bad .vs-tag { color: #FF6B6B; }
.versus .vs-card.good .vs-tag { color: var(--rb-signal); }
.versus .vs-card p { color: rgba(245,242,236,0.85); margin: 0 0 12px; max-width: none; font-size: 13px; }
.versus .vs-card p.flag { color: #FF6B6B; font-weight: 500; }
.versus .vs-card p.note { color: var(--rb-signal); font-weight: 500; }
.versus .vs-card .citations { font-size: 11px; color: rgba(245,242,236,0.4); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; margin-top: 12px; }

/* ============================================================
   Manifesto (long-form)
   ============================================================ */
.manifesto-body {
  max-width: 680px; margin: 0 auto;
  padding: 96px 24px;
  font-size: 21px;
  line-height: 1.7;
  color: var(--rb-ink);
}
.manifesto-body p { font-size: 21px; line-height: 1.7; max-width: none; margin: 0 0 28px; }
.manifesto-body h2 { font-size: 40px; margin: 80px 0 24px; }
.manifesto-body .first-line {
  font-family: var(--font-display);
  font-size: 32px; line-height: 1.25;
  margin-bottom: 48px;
  color: var(--rb-ink);
}
.manifesto-body .first-line::first-letter {
  font-size: 96px; line-height: 0.85;
  float: left; margin: 8px 14px 0 0;
  color: var(--rb-blue);
}
.divider-dots {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  margin: 80px 0;
}
.divider-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--rb-blue); }
.divider-dots .line { width: 80px; height: 1px; background: var(--rb-mute-200); border-radius: 0; }

/* ============================================================
   Phase 2 viewer overlay
   ============================================================ */
.phase2-bar {
  position: fixed; bottom: 24px; left: 24px; z-index: 100;
  background: var(--rb-blue);
  color: white;
  padding: 10px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(0,6,246,0.25);
  transition: transform var(--motion-fast) ease-out;
}
.phase2-bar:hover { color: white; transform: translateY(-2px); }
.phase2-bar::before { content: '◇'; font-size: 14px; }

/* ============================================================
   Utility
   ============================================================ */
.text-blue   { color: var(--rb-blue); }
.text-signal { color: var(--rb-signal); }
.text-mute   { color: var(--rb-mute-700); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-24 { margin-top: 24px; } .mt-48 { margin-top: 48px; } .mt-96 { margin-top: 96px; }
.mb-24 { margin-bottom: 24px; } .mb-48 { margin-bottom: 48px; }
.full-img { width: 100%; border-radius: 8px; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero canvas#ragbrain { display: none; }
}
