/* CAPAS design system — shared across home, methodology, pilot, audit, product, gate app.
   Single source of truth. Magenta #e8185d on near-black #050507, Inter + Space Mono. */

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

/* ─── BASE ──────────────────────────────────────────────── */
body {
  background: #050507;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── PERSISTENT 3D LOGO BACKGROUND (fixed, survives scroll) ─── */
.bg-logo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.86;
}
.bg-logo iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  transform: scale(3.35);
  transform-origin: center center;
}
.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 40%, transparent 0%, rgba(5,5,7,0.30) 46%, rgba(5,5,7,0.78) 100%),
    linear-gradient(180deg, rgba(5,5,7,0.55), rgba(5,5,7,0.20) 30%, rgba(5,5,7,0.55));
}

/* ─── PAGE WRAPPER ──────────────────────────────────────── */
.page { position: relative; z-index: 1; }

/* ─── NAV ────────────────────────────────────────────────── */

/* ─── HERO ───────────────────────────────────────────────── */
.hero-wrap {
  max-width: 1400px;
  margin: 0 auto;
}
.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 96px 48px 64px;
}
.hero-left { display: flex; flex-direction: column; gap: 22px; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #e8185d;
  text-transform: uppercase;
}
.hero-headline {
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-headline em {
  color: #e8185d;
  font-style: normal;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.62);
  max-width: 480px;
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  background: rgba(5,5,7,0.4);
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #e8185d, #c4125a);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(232,24,93,0.35);
}
.btn-ghost {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(5,5,7,0.4);
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.32); }

/* ─── CLAIM PANEL (hero right) ───────────────────────────── */
.claim-panel {
  background: rgba(10,10,14,0.66);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.panel-header {
  background: rgba(255,255,255,0.04);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.panel-dot { width: 10px; height: 10px; border-radius: 50%; }
.panel-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-left: 8px;
}
.panel-body { padding: 28px; }
.claim-row { margin-bottom: 20px; }
.claim-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.claim-text {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  font-family: 'Space Mono', monospace;
}
.claim-text.drift { color: rgba(255,150,90,0.85); }

.claim-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 20px 0;
  position: relative;
}
.claim-divider::after {
  content: '↓';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: #0a0a0e;
  color: rgba(255,255,255,0.2);
  padding: 0 10px;
  font-size: 12px;
}
.decision-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(232,24,93,0.12);
  border: 1px solid rgba(232,24,93,0.35);
  border-radius: 6px;
  padding: 10px 18px;
  margin-bottom: 16px;
}
.decision-badge span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #e8185d;
}
.decision-reason {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
}
.decision-reason strong { color: rgba(255,255,255,0.82); }

/* ─── SECTION DIVIDER ────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  margin: 0 48px;
}

/* ─── SECTION BASE ───────────────────────────────────────── */
.section {
  padding: 60px 48px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title em {
  color: #e8185d;
  font-style: normal;
}
.section-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 34px;
}

/* ─── CARDS 3-COL ────────────────────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
.card {
  background: rgba(5,5,7,0.86);
  padding: 32px;
  transition: background 0.2s;
}
.card:hover { background: rgba(20,20,24,0.86); }
.card.featured {
  background: rgba(232,24,93,0.08);
  border-left: 2px solid rgba(232,24,93,0.35);
}
.card-icon { font-size: 24px; margin-bottom: 20px; }
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card.featured .card-title { color: #e8185d; }
.card-body {
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  line-height: 1.65;
}

/* ─── CASCADE ────────────────────────────────────────────── */
.cascade {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-top: 32px;
}
.cascade-step { text-align: center; padding: 32px 16px; }
.cascade-step.gate {
  background: rgba(232,24,93,0.06);
  border: 1px solid rgba(232,24,93,0.22);
  border-radius: 12px;
}
.cascade-step.blocked { opacity: 0.55; }
.cascade-icon { font-size: 30px; margin-bottom: 14px; }
.cascade-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cascade-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.cascade-step.gate .cascade-name { color: #e8185d; }
.cascade-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.48);
  line-height: 1.55;
}
.cascade-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.22);
  font-size: 20px;
  padding: 0 8px;
}
.cascade-arrow.blocked { color: rgba(232,24,93,0.28); }

/* ─── TABS ───────────────────────────────────────────────── */
.tabs-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  background: rgba(255,255,255,0.04);
  padding: 5px;
  border-radius: 10px;
  width: fit-content;
  flex-wrap: wrap;
}
.tab-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.42);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}
.tab-btn.active { background: rgba(255,255,255,0.1); color: #fff; }
.tab-content { display: none; }
.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-col {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,5,7,0.7);
}
.compare-col.capas {
  background: rgba(232,24,93,0.06);
  border-color: rgba(232,24,93,0.16);
}
.compare-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.65);
}
.compare-col.capas .compare-title { color: #e8185d; }
.compare-item {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.compare-item:last-child { border-bottom: none; }
.compare-col.capas .compare-item { color: rgba(255,255,255,0.7); }

/* ─── AUDIT SECTION ──────────────────────────────────────── */
.audit-section {
  position: relative;
  z-index: 1;
  padding: 64px 48px;
  background: rgba(8,8,11,0.72);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.audit-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.audit-features { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.audit-feature { display: flex; align-items: flex-start; gap: 16px; }
.audit-feature-icon { font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.audit-feature-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.audit-feature-body { font-size: 13px; color: rgba(255,255,255,0.48); line-height: 1.55; }

/* ─── CODE BLOCK ─────────────────────────────────────────── */
.code-block {
  background: rgba(13,13,15,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Space Mono', monospace;
}
.code-header {
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 8px;
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-filename {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  margin-left: 8px;
  font-family: 'Space Mono', monospace;
}
.code-body {
  padding: 28px;
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
}
.ck { color: rgba(255,255,255,0.32); }        /* key */
.cs { color: #4ec9b0; }                        /* string value */
.cd { color: #e8185d; font-weight: 700; }      /* DECISION */
.cr { color: rgba(255,255,255,0.72); }         /* reason */
.cb { color: rgba(255,120,80,0.85); }          /* blocker */
.ch { color: rgba(255,255,255,0.22); }         /* hash / dim */
.code-gap { margin-top: 6px; }

/* ─── MOAT ───────────────────────────────────────────────── */
.moat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.moat-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(5,5,7,0.7);
  transition: background 0.2s, border-color 0.2s;
}
.moat-card:hover {
  background: rgba(20,20,24,0.7);
  border-color: rgba(255,255,255,0.12);
}
.moat-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #e8185d;
  margin-bottom: 16px;
}
.moat-title { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.moat-body { font-size: 14px; color: rgba(255,255,255,0.52); line-height: 1.65; }

/* ─── CTA ────────────────────────────────────────────────── */
.cta-wrap {
  text-align: center;
  padding: 68px 48px;
  max-width: 800px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.52);
  line-height: 1.65;
  margin-bottom: 32px;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTNOTES ──────────────────────────────────────────── */
.foot-notes {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 80px;
}
.foot-notes ul { list-style: none; display: grid; gap: 8px; }
.foot-notes li {
  font-size: 12px;
  color: rgba(255,255,255,0.32);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.foot-notes li::before { content: '·'; position: absolute; left: 4px; color: rgba(232,24,93,0.6); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  padding: 32px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(5,5,7,0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.28);
}
.footer-note { font-size: 12px; color: rgba(255,255,255,0.28); max-width: 620px; }

/* ─── WORKFLOW / WHERE IT LIVES ──────────────────────────── */
.flow-lane { margin-bottom: 18px; }
.flow-lane-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px;
}
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; }
.flow-node {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  background: rgba(5,5,7,0.7); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 16px 10px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.78); min-height: 58px;
}
.flow-node.gate { background: rgba(232,24,93,0.12); border-color: rgba(232,24,93,0.42); color: #e8185d; font-weight: 700; }
.flow-node.accept { background: rgba(40,200,100,0.09); border-color: rgba(40,200,100,0.32); color: #28c840; font-weight: 700; }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.25); font-size: 16px; padding: 0 8px; flex: 0 0 auto; }
.flow-personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.flow-persona { background: rgba(5,5,7,0.6); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 18px; }
.flow-persona strong { display: block; font-size: 13px; margin-bottom: 8px; color: #fff; }
.flow-persona span { font-size: 12.5px; color: rgba(255,255,255,0.52); line-height: 1.55; }
.flow-persona em { color: #e8185d; font-style: normal; font-weight: 600; }

/* ─── REWRITE IS THE PRODUCT ─────────────────────────────── */
.rewrite-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rewrite-verdict { background: rgba(5,5,7,0.66); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 20px; }
.rewrite-verdict.featured { background: rgba(232,24,93,0.08); border-color: rgba(232,24,93,0.32); }
.rewrite-verdict p { font-size: 13px; color: rgba(255,255,255,0.52); line-height: 1.6; margin-top: 12px; }
.rv-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 6px; }
.rv-badge.accept { color: #28c840; background: rgba(40,200,100,0.1); }
.rv-badge.reject { color: #ff5f57; background: rgba(255,95,87,0.1); }
.rv-badge.rewrite { color: #e8185d; background: rgba(232,24,93,0.14); }
.rv-badge.hold { color: #ffbd2e; background: rgba(255,189,46,0.1); }
.rewrite-diff { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 24px; }
.rd-pane { background: rgba(5,5,7,0.7); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 20px; }
.rd-pane.ok-pane { border-color: rgba(40,200,100,0.25); }
.rd-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 10px; }
.rd-text { font-family: 'Space Mono', monospace; font-size: 14px; line-height: 1.5; }
.rd-text.drift { color: rgba(255,150,90,0.9); }
.rd-text.ok { color: rgba(120,230,160,0.92); }
.rd-arrow { color: #e8185d; font-size: 22px; text-align: center; }
.rewrite-stat { font-size: 14px; color: rgba(255,255,255,0.58); margin-top: 24px; max-width: 760px; }
.rewrite-stat strong { color: #e8185d; }

/* ─── CLAIM FAMILIES STRIP ───────────────────────────────── */
.families-strip { max-width: 1400px; margin: 36px auto 0; }
.families-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 14px; }
.families-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.64); border: 1px solid rgba(255,255,255,0.12); background: rgba(5,5,7,0.5); border-radius: 999px; padding: 7px 14px; }
.fchip.more { color: rgba(255,255,255,0.4); border-style: dashed; }

/* ─── ENGINE CHECK CARD ──────────────────────────────────── */
.check-card { border: 1px solid rgba(232,24,93,0.3); background: rgba(232,24,93,0.05); border-radius: 12px; padding: 20px; margin: 0 0 28px; }
.check-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.check-fail { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; color: #e8185d; background: rgba(232,24,93,0.14); border: 1px solid rgba(232,24,93,0.35); border-radius: 5px; padding: 5px 10px; }
.check-name { font-family: 'Space Mono', monospace; font-size: 13px; color: rgba(255,255,255,0.7); }
.check-rows { display: grid; gap: 0; }
.check-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.check-row:last-child { border-bottom: none; }
.check-row > span:first-child { color: rgba(255,255,255,0.42); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.check-row .ok { color: #28c840; font-family: 'Space Mono', monospace; }
.check-row .no { color: #ff5f57; font-family: 'Space Mono', monospace; }
.check-row .dec { color: #e8185d; font-weight: 800; letter-spacing: 0.08em; }

/* ─── HERO CORE LINE ─────────────────────────────────────── */
.hero-core {
  font-size: 14px; color: rgba(255,255,255,0.58); line-height: 1.6; max-width: 480px;
  border-left: 2px solid rgba(232,24,93,0.55); padding-left: 14px;
}
.hero-core strong { color: #e8185d; font-weight: 700; }

/* ─── CORE: EVIDENCE CONTRACTS (primacy) ─────────────────── */
.core-stack { display: grid; gap: 0; max-width: 860px; }
.core-layer { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px 26px; background: rgba(5,5,7,0.66); }
.core-layer.tech { border-color: rgba(232,24,93,0.4); background: rgba(232,24,93,0.08); }
.core-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.core-layer.tech .core-tag { color: #e8185d; }
.core-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.core-layer.tech .core-name { color: #e8185d; }
.core-desc { font-size: 14px; color: rgba(255,255,255,0.56); line-height: 1.6; max-width: 660px; }
.core-arrow { text-align: center; color: rgba(255,255,255,0.3); font-size: 20px; padding: 10px 0; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 14px 18px; gap: 12px; flex-wrap: wrap; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding: 90px 18px 56px; gap: 40px; min-height: auto; }
  .section { padding: 64px 18px; }
  .section-divider { margin: 0 18px; }
  .cards-3 { grid-template-columns: 1fr; }
  .cascade { grid-template-columns: 1fr; gap: 8px; }
  .cascade-arrow { transform: rotate(90deg); padding: 6px 0; }
  .tab-content.active { grid-template-columns: 1fr; }
  .audit-section { padding: 64px 18px; }
  .audit-grid { grid-template-columns: 1fr; gap: 44px; }
  .moat-grid { grid-template-columns: 1fr; }
  .cta-wrap { padding: 80px 18px; }
  .foot-notes { padding: 0 18px 64px; }
  footer { padding: 24px 18px; }
  .flow { flex-wrap: wrap; }
  .flow-node { flex: 1 1 100%; }
  .flow-arrow { transform: rotate(90deg); width: 100%; padding: 4px 0; }
  .flow-personas { grid-template-columns: 1fr; }
  .rewrite-grid { grid-template-columns: 1fr; }
  .rewrite-diff { grid-template-columns: 1fr; }
  .rd-arrow { transform: rotate(90deg); }
}

/* ─── INNER-PAGE UTILITIES (methodology / pilot / audit) ──── */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: rgba(5,5,7,0.66); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px; }
.stat-num { font-size: 34px; font-weight: 800; color: #e8185d; line-height: 1; letter-spacing: -0.01em; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 10px; line-height: 1.5; }
.timeline-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.timeline-step { background: rgba(5,5,7,0.66); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 18px; }
.timeline-step strong { display: block; color: #e8185d; margin-bottom: 8px; font-size: 14px; }
.timeline-step span { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prose { color: rgba(255,255,255,0.62); line-height: 1.7; max-width: 820px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin: 7px 0; color: rgba(255,255,255,0.6); }
.card ul { padding-left: 18px; margin: 10px 0 0; }
.card li { color: rgba(255,255,255,0.55); margin: 6px 0; font-size: 13.5px; }
.disclaimer-list { list-style: none; display: grid; gap: 8px; padding: 0; }
.disclaimer-list li { font-size: 12.5px; color: rgba(255,255,255,0.4); line-height: 1.6; padding-left: 16px; position: relative; }
.disclaimer-list li::before { content: '·'; position: absolute; left: 4px; color: rgba(232,24,93,0.6); }
.page-hero { padding-top: 80px; }
.page-hero .section-title { max-width: 920px; }
@media (max-width: 900px) { .stat-grid, .timeline-grid, .two-col { grid-template-columns: 1fr; } }


/* ─── Rotating claim-drift carousel (hero panel) ─────────── */
.decision-badge.REJECT { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); }
.decision-badge.REJECT span { color: #ff5f57; }
.decision-badge.HOLD { background: rgba(255,189,46,0.12); border-color: rgba(255,189,46,0.4); }
.decision-badge.HOLD span { color: #ffbd2e; }
.decision-badge.ACCEPT { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.4); }
.decision-badge.ACCEPT span { color: #22c55e; }
#cd-source, #cd-drift, #cd-badge, #cd-reason, #cd-cat { transition: opacity .45s ease; }
.cd-out #cd-source, .cd-out #cd-drift, .cd-out #cd-badge, .cd-out #cd-reason { opacity: 0; }
.panel-cat { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(232,24,93,0.85); white-space: nowrap; }

/* ─── RGYB verdict system (logo palette) — site-wide ─── */
.decision-badge.REWRITE { background: rgba(0,200,200,0.10); border-color: rgba(0,200,200,0.45); }
.decision-badge.REWRITE span { color: #00c8c8; }
.decision-badge.REJECT { background: rgba(232,24,90,0.12); border-color: rgba(232,24,90,0.5); }
.decision-badge.REJECT span { color: #e8185a; }
.decision-badge.HOLD { background: rgba(200,150,10,0.12); border-color: rgba(200,150,10,0.45); }
.decision-badge.HOLD span { color: #d4a820; }
.rv-badge.rewrite { color: #00c8c8; background: rgba(0,200,200,0.12); }
.rv-badge.reject { color: #e8185a; background: rgba(232,24,90,0.12); }
.rv-badge.hold { color: #d4a820; background: rgba(200,150,10,0.12); }

/* ─── Generate-vs-gate table + hero tagline ─── */
.hero-tagline { font-size: 15px; font-weight: 700; color: #e8185d; letter-spacing: 0.01em; margin: -6px 0 0; }
.vs-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; }
.vs-table th, .vs-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
.vs-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.03); font-weight: 700; }
.vs-table td { color: rgba(255,255,255,0.7); }
.vs-table td.yes { color: #22c55e; font-weight: 700; }
.vs-table td.no { color: rgba(255,255,255,0.32); }
.vs-table td.partial { color: #d4a820; }
.vs-table tr:last-child td { border-bottom: none; }
.vs-table .capas-row td { background: rgba(232,24,93,0.06); color: #fff; font-weight: 600; }
.vs-table .capas-row td:first-child { color: #e8185d; }
@media (max-width: 900px) { .vs-table th, .vs-table td { padding: 10px 12px; font-size: 12.5px; } }
