/* =========================================================================
   BIX — design system
   Navy · graphite · warm neutrals · restrained champagne gold
   ========================================================================= */

:root {
  /* Surfaces */
  --navy-950: #070b15;
  --navy-900: #0a1020;
  --navy-850: #0d1427;
  --navy-800: #111a30;
  --navy-750: #16203a;
  --graphite: #1b2132;
  --line: rgba(226, 232, 245, 0.08);
  --line-strong: rgba(226, 232, 245, 0.14);

  /* Paper (light sections) */
  --paper: #f3f0e9;
  --paper-2: #ebe6dc;
  --ink: #121826;
  --ink-muted: #4b5365;
  --paper-line: rgba(18, 24, 38, 0.1);

  /* Text */
  --text: #e9ebf1;
  --text-muted: #a3abbd;
  --text-dim: #6f788c;

  /* Accents */
  --gold: #c9a96b;
  --gold-bright: #e4cc9a;
  --gold-deep: #7a6232;
  --gold-soft: rgba(201, 169, 107, 0.12);
  --gold-line: rgba(201, 169, 107, 0.35);
  --ref: #7484a6;
  --ref-soft: rgba(116, 132, 166, 0.16);
  --positive: #8cc7a9;

  /* Type */
  --font-sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: clamp(80px, 11vw, 148px);

  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--line);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--navy-950); }
.tabular { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow-plain::before { display: none; }

.display {
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 500;
}
.h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06; letter-spacing: -0.03em; font-weight: 500;
}
.h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.gold { color: var(--gold-bright); }
.lead { font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.55; color: var(--text-muted); max-width: 640px; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 72px); max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; background: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-gold { background: var(--gold); color: #120e06; box-shadow: 0 10px 30px -12px rgba(201,169,107,.55); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-outline { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-outline:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.btn-ghost { color: var(--text-muted); border-color: var(--line); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,0.05); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.paper .btn-outline { color: var(--ink); border-color: var(--paper-line); background: transparent; }
.paper .btn-outline:hover { border-color: var(--gold-deep); background: rgba(154,127,76,.08); }

.text-link { color: var(--gold-bright); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.paper .text-link { color: var(--gold-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.site-header.is-scrolled, .site-header.nav-open {
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand { gap: 11px; }
.brand-mark { width: 32px; height: 32px; color: #ece6d8; flex: none; overflow: visible; }
.brand-word span { color: var(--gold-bright); }
/* Logo: rings ease a few degrees on hover, echoing the hero orbit */
.brand-mark g { transform-box: view-box; transform-origin: 50% 50%; transition: transform 1.2s var(--ease); }
.brand:hover .bm-o { transform: rotate(18deg); }
.brand:hover .bm-m { transform: rotate(36deg); }
.brand:hover .bm-i { transform: rotate(60deg); }
.brand-word { font-weight: 600; letter-spacing: -0.01em; font-size: 19px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 30px; }
.nav ul a { font-size: 15px; color: var(--text-muted); transition: color .2s; position: relative; padding: 6px 0; }
.nav ul a:hover, .nav ul a[aria-current='page'] { color: var(--text); }
.nav ul a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: 28px var(--gutter) 40px; background: var(--navy-950);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; font-size: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav ul a[aria-current='page']::after { display: none; }
  .nav .btn { width: 100%; --h: 56px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(64px, 8vw, 104px); }
.section-dark { background: var(--navy-950); }
.section-alt { background: var(--navy-850); }
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.paper .lead, .paper .muted { color: var(--ink-muted); }
.paper .eyebrow { color: var(--gold-deep); }
.divider-top { border-top: 1px solid var(--line); }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal='2'] { transition-delay: .08s; }
.js [data-reveal='3'] { transition-delay: .16s; }
.js [data-reveal='4'] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 9vw, 128px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 20%, rgba(201,169,107,0.10), transparent 70%),
    radial-gradient(50% 60% at 10% 0%, rgba(70,92,150,0.18), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); } }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-copy .display em { display: block; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03);
  font-size: 13.5px; color: var(--text-muted);
}
.pill b { font-weight: 600; color: var(--navy-950); background: var(--gold); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--text-dim); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .8; }

/* Hero dashboard preview */
.dash {
  position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, #121b31 0%, #0d1428 100%);
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px;
}
.dash::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(228,204,154,.35), transparent 35%, transparent 70%, rgba(228,204,154,.15)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dash-top .dash-title { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; }
.dash-top .dash-title svg { width: 24px; height: 24px; color: #ece6d8; }
.dash-top .crumb { color: var(--text-dim); font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--gold-line); color: var(--gold-bright); background: var(--gold-soft); }
.dash-body { display: grid; gap: 14px; padding: 18px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.dash-kpi { padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); display: grid; gap: 4px; }
.dash-kpi .k-label { color: var(--text-dim); font-size: 11.5px; letter-spacing: .02em; }
.dash-kpi .k-value { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-kpi .k-sub { font-size: 11.5px; color: var(--positive); }
.dash-kpi .k-sub.neutral { color: var(--text-muted); }
.dash-chart { grid-column: 1 / -1; padding: 14px 14px 8px; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.dash-chart-head h3 { font-size: 13px; font-weight: 600; }
.dash-legend { display: flex; gap: 14px; color: var(--text-muted); font-size: 11.5px; }
.dash-legend i { display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--ref); }
.dash-legend i.g { background: var(--gold); }
.dash-svg { width: 100%; height: auto; overflow: visible; }
.dash-svg .gridline { stroke: var(--line); }
.dash-svg .axis-label { fill: var(--text-dim); font-size: 10px; font-family: var(--font-sans); }
.dash-svg .line-ref { fill: none; stroke: var(--ref); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s .3s var(--ease) forwards; }
.dash-svg .line-gold { fill: none; stroke: var(--gold); stroke-width: 2.25; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .7s var(--ease) forwards; }
.dash-svg .area-gold { fill: url(#goldArea); opacity: 0; animation: fade 1.2s 1.6s ease forwards; }
.dash-svg .pt { fill: var(--gold-bright); opacity: 0; animation: fade .6s 2.6s ease forwards; }
.dash-svg .pt-ring { fill: none; stroke: var(--gold); opacity: 0; transform-origin: center; transform-box: fill-box; animation: fade .6s 2.6s ease forwards, pulse 2.6s 3.2s ease-out infinite; }
.dash-svg .annot { fill: var(--gold-bright); font-size: 10.5px; font-weight: 600; opacity: 0; animation: fade .6s 2.8s ease forwards; font-family: var(--font-sans); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
.dash-decisions { grid-column: 1 / -1; display: grid; gap: 8px; }
.dash-decisions h3 { font-size: 13px; font-weight: 600; margin-bottom: 2px; display: flex; justify-content: space-between; }
.dash-decisions h3 span { color: var(--text-dim); font-weight: 500; }
.decision { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.015); transition: border-color .4s, background-color .4s; }
.decision.is-active { border-color: var(--gold-line); background: var(--gold-soft); }
.decision .d-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decision .d-name small { display: block; color: var(--text-dim); font-size: 11.5px; font-weight: 400; }
.decision .d-impact { color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; min-width: 96px; text-align: center; border: 1px solid var(--line-strong); color: var(--text-muted); transition: all .4s var(--ease); }
.chip[data-state='simulating'] { color: var(--gold-bright); border-color: var(--gold-line); }
.chip[data-state='recommended'] { color: var(--navy-950); background: var(--gold); border-color: var(--gold); }
.dash-foot { padding: 10px 18px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 11.5px; display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 640px) {
  .dash-body { grid-template-columns: 1fr 1fr; padding: 12px; gap: 10px; }
  .dash-kpi:nth-child(3) { display: none; }
  .decision { grid-template-columns: minmax(0,1fr) auto; }
  .decision .d-impact { display: none; }
  .dash-top .crumb { display: none; }
}

/* ---------- Problem / comparison ---------- */
.quote-big { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 400; max-width: 920px; }
.stages3 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 900px) { .stages3 { grid-template-columns: 1fr; } }
.stage-card {
  position: relative; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: rgba(255,255,255,0.02); display: grid; gap: 14px; align-content: start;
}
.stage-card .stage-num { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.stage-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.stage-card p { color: var(--text-muted); font-size: 15.5px; }
.stage-card .viz { height: 96px; margin: 6px 0 4px; }
.stage-card.is-gold { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(201,169,107,0.09), rgba(201,169,107,0.02)); }
.stage-card.is-gold .stage-num { color: var(--gold); }
.stage-card ul { display: grid; gap: 8px; font-size: 14.5px; color: var(--text-muted); }
.stage-card li { display: flex; gap: 10px; }
.stage-card li::before { content: ''; flex: 0 0 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--text-dim); }
.stage-card.is-gold li::before { background: var(--gold); }

.compare { margin-top: clamp(48px, 6vw, 72px); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.compare-row > div { padding: 18px 26px; border-top: 1px solid var(--line); font-size: 15.5px; }
.compare-row > div + div { border-left: 1px solid var(--line); background: rgba(201,169,107,0.04); }
.compare-row:first-child > div { border-top: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--text-dim); padding-block: 16px; }
.compare-row:first-child > div + div { color: var(--gold); }
.compare-row > div:first-child { color: var(--text-muted); }
@media (max-width: 640px) { .compare-row > div { padding: 14px 16px; font-size: 14.5px; } }

/* ---------- Simulator section ---------- */
.sim-section { background: radial-gradient(80% 50% at 50% 0%, rgba(201,169,107,0.07), transparent 70%), var(--navy-950); }
.sim {
  border-radius: 24px; background: linear-gradient(180deg, #10182c, #0b1222);
  box-shadow: var(--shadow-lg); position: relative; font-size: 15px;
}
.sim-topbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.sim-title { display: flex; align-items: center; gap: 12px; font-weight: 600; flex-wrap: wrap; }
.sim-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.sim-crumb { color: var(--text-dim); font-weight: 500; }
.sim-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sim-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); }
@media (max-width: 1080px) { .sim-body { grid-template-columns: 1fr; } }

.sim-inputs { padding: 24px 22px; border-right: 1px solid var(--line); display: grid; gap: 26px; align-content: start; background: rgba(255,255,255,0.012); }
@media (max-width: 1080px) {
  .sim-inputs { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 32px; }
  .sim-panel-head { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .sim-inputs { grid-template-columns: 1fr; padding: 20px 16px; } }
.sim-panel-head h3 { font-size: 16px; font-weight: 600; }
.sim-panel-head p { color: var(--text-dim); font-size: 13.5px; margin-top: 4px; }

.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field-head label, .field-legend { font-size: 14px; font-weight: 500; color: var(--text); padding: 0; }
.field-legend { margin-bottom: 10px; }
.num { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(0,0,0,0.25); color: var(--text-muted); font-size: 13px; transition: border-color .2s; }
.num:focus-within { border-color: var(--gold); }
.num input { width: 58px; border: 0; background: transparent; text-align: right; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; font-size: 14.5px; padding: 0; outline: none; -moz-appearance: textfield; appearance: textfield; }
.num input#sim1-sales, .num input[inputmode='numeric'] { width: 112px; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field-scale { display: flex; justify-content: space-between; color: var(--text-dim); font-size: 11.5px; margin-top: -4px; }
.field-note { font-size: 12.5px; color: var(--gold); margin-top: -2px; }
.field-accent .field-head label { color: var(--gold-bright); }

input[type='range'] {
  --fill: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--track-fill, var(--text-muted)) var(--fill), rgba(255,255,255,0.1) var(--fill)); }
input[type='range']::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); }
input[type='range']::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--track-fill, var(--text-muted)); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #f4efe4; border: 0; box-shadow: 0 0 0 5px rgba(255,255,255,0.08), 0 4px 10px rgba(0,0,0,.4); transition: box-shadow .2s; }
input[type='range']::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #f4efe4; border: 0; box-shadow: 0 0 0 5px rgba(255,255,255,0.08), 0 4px 10px rgba(0,0,0,.4); }
input[type='range']:hover::-webkit-slider-thumb, input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px var(--gold-soft), 0 4px 10px rgba(0,0,0,.4); }
input[type='range']:focus-visible { outline: none; }
input[type='range']:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
input[type='range']:focus-visible::-moz-range-thumb { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.field-accent input[type='range'] { --track-fill: var(--gold); }
.field-accent input[type='range']::-webkit-slider-thumb { background: var(--gold-bright); }
.field-accent input[type='range']::-moz-range-thumb { background: var(--gold-bright); }

.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0,0,0,0.25); }
.seg-item { position: relative; }
.seg-item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg-item span { display: block; text-align: center; padding: 8px 0; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--text-muted); transition: background-color .2s, color .2s; font-variant-numeric: tabular-nums; }
.seg-item abbr { text-decoration: none; font-weight: 500; opacity: .7; margin-left: 1px; }
.seg-item input:checked + span { background: var(--gold); color: var(--navy-950); }
.seg-item input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.seg-item:hover input:not(:checked) + span { color: var(--text); background: rgba(255,255,255,0.05); }

.sim-main { padding: 22px; display: grid; gap: 18px; min-width: 0; }
@media (max-width: 640px) { .sim-main { padding: 16px; } }
.sim-scenarios { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 760px) { .sim-scenarios { grid-template-columns: 1fr; } }
.scenario { padding: 18px; border-radius: 16px; border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; background: rgba(255,255,255,0.02); }
.scenario h4 { font-size: 15px; font-weight: 600; margin-top: 6px; }
.scenario-dso { display: flex; align-items: baseline; gap: 8px; font-size: 40px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.scenario-dso small { font-size: 13px; color: var(--text-dim); font-weight: 500; letter-spacing: 0; }
.scenario-meta { color: var(--text-muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.scenario-foot { font-size: 12px; color: var(--text-dim); border-top: 1px dashed var(--line-strong); padding-top: 10px; margin-top: 6px; }
.scenario-ref .scenario-dso { color: #c7cfdf; }
.scenario-hyp { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(201,169,107,0.12), rgba(201,169,107,0.03)); }
.scenario-hyp .scenario-dso { color: var(--gold-bright); }
.scenario-delta { color: var(--gold) !important; font-weight: 600; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.tag-ref { color: #b6c1d9; background: var(--ref-soft); }
.tag-hyp { color: var(--navy-950); background: var(--gold); }

.sim-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 760px) { .sim-kpis { grid-template-columns: 1fr; } }
.kpi { padding: 18px 20px; display: grid; gap: 4px; }
.kpi + .kpi { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .kpi + .kpi { border-left: 0; border-top: 1px solid var(--line); } }
.kpi-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.kpi-value { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi-note { font-size: 12px; color: var(--text-dim); }
.kpi-gold { background: linear-gradient(180deg, rgba(201,169,107,0.1), rgba(201,169,107,0.02)); }
.kpi-gold .kpi-value { color: var(--gold-bright); }

.sim-charts, .sim-bottom { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (max-width: 860px) { .sim-charts, .sim-bottom { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: rgba(255,255,255,0.015); min-width: 0; }
.panel-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* DSO chart */
.dso-chart { display: grid; gap: 4px; }
.dso-rows { display: grid; gap: 14px; }
.dso-row { display: grid; gap: 6px; }
.dso-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); }
.dso-label em { font-style: normal; color: var(--text-dim); font-size: 11.5px; }
.dso-track { height: 26px; border-radius: 7px; background: rgba(255,255,255,0.035); position: relative; }
.dso-bar { height: 100%; border-radius: 7px; background: linear-gradient(90deg, rgba(116,132,166,.55), rgba(116,132,166,.85)); width: 0; transition: width .6s var(--ease); position: relative; min-width: 56px; }
.dso-row[data-id='optimised'] .dso-bar { background: linear-gradient(90deg, rgba(201,169,107,.6), var(--gold)); }
.dso-row[data-id='optimised'] .dso-label span { color: var(--gold-bright); font-weight: 600; }
.dso-value { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: #0b1020; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dso-axis { position: relative; height: 18px; margin-top: 8px; border-top: 1px solid var(--line); }
.dso-axis span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 10.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.dso-axis span:first-child { transform: none; }
.dso-axis span:last-child { transform: translateX(-100%); }

/* Cumulative chart */
.cum-chart { position: relative; height: 200px; margin-left: 46px; }
.cum-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.cum-gridline { border-top: 1px solid var(--line); height: 0; position: relative; }
.cum-gridline span { position: absolute; right: calc(100% + 8px); top: -8px; font-size: 10.5px; color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cum-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: clamp(8px, 3%, 22px); padding: 0 6px; }
.cum-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; max-width: 72px; margin-inline: auto; }
.cum-bar { height: 0; position: relative; display: flex; flex-direction: column; transition: height .6s var(--ease); border-radius: 6px 6px 2px 2px; }
.cum-new { flex: 1; background: var(--gold); border-radius: 6px 6px 0 0; min-height: 2px; }
.cum-prior { background: rgba(201,169,107,0.38); transition: height .6s var(--ease); border-radius: 0 0 2px 2px; }
.cum-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cum-year { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.legend { margin-top: 34px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-dim); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg-prior { background: rgba(201,169,107,0.38); }
.lg-new { background: var(--gold); margin-left: 10px; }
@media (max-width: 480px) { .cum-tip { font-size: 9.5px; } .cum-year { font-size: 10px; } }

.insight { background: linear-gradient(180deg, rgba(201,169,107,0.07), transparent); border-color: var(--gold-line); }
.insight-icon { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--gold); position: relative; }
.insight-icon::after { content: ''; position: absolute; inset: 3.5px; border-radius: 50%; background: var(--gold); }
.insight-headline { font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; }
.insight-points { margin-top: 14px; display: grid; gap: 10px; }
.insight-points li { font-size: 14px; color: var(--text-muted); padding-left: 18px; position: relative; }
.insight-points li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 1px; background: var(--gold); }
.method dl { display: grid; gap: 14px; }
.method dt { font-size: 13px; font-weight: 600; }
.method dt em { font-style: normal; font-weight: 500; color: var(--gold); font-size: 11.5px; margin-left: 6px; text-transform: uppercase; letter-spacing: .08em; }
.method dd.formula { font-size: 13px; color: var(--text-muted); }
.method dd.live { font-size: 12.5px; color: var(--gold-bright); font-variant-numeric: tabular-nums; font-family: ui-monospace, 'SF Mono', Menlo, monospace; margin-top: 2px; overflow-wrap: anywhere; }
.method-note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--text-dim); }

.sim-disclaimer { display: flex; gap: 10px; align-items: flex-start; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-muted); }
.sim-disclaimer svg { flex: 0 0 16px; margin-top: 2px; color: var(--gold); }
.sim-copy-fallback { padding: 0 22px 16px; display: grid; gap: 8px; font-size: 13px; color: var(--text-muted); }
.sim-copy-fallback textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(0,0,0,0.3); padding: 12px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--text); }
.sim-status { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .25s, transform .25s var(--ease); width: max-content; max-width: calc(100% - 32px); }
.sim-status.is-shown { opacity: 1; transform: translate(-50%, 0); }
.sim-status:empty { display: none; }

.sim-cta { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px 32px; border-radius: var(--radius-lg); border: 1px solid var(--gold-line); background: linear-gradient(90deg, rgba(201,169,107,0.1), rgba(201,169,107,0.02)); }
.sim-cta h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.015em; max-width: 560px; }
.sim-cta p { color: var(--text-muted); font-size: 15px; margin-top: 6px; }
.sim-note { margin-top: 18px; font-size: 13.5px; color: var(--text-dim); max-width: 860px; }

/* ---------- How it works ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; position: relative; counter-reset: flow; }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.flow-step { padding: 28px 26px 30px; position: relative; display: grid; gap: 14px; align-content: start; }
@media (min-width: 961px) {
  .flow-step + .flow-step { border-left: 1px solid var(--paper-line); }
  .flow-step:not(:last-child)::after { content: ''; position: absolute; right: -7px; top: 74px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold-deep); z-index: 1; }
}
@media (max-width: 960px) { .flow-step { border: 1px solid var(--paper-line); border-radius: var(--radius); background: rgba(255,255,255,0.4); } }
.flow-step .num-label { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.flow-step h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.flow-step p { color: var(--ink-muted); font-size: 15.5px; }
.flow-step svg { width: 100%; max-width: 200px; height: 84px; }
.diag-ink { stroke: var(--ink); }
.diag-muted { stroke: #9aa0ac; }
.diag-gold { stroke: var(--gold-deep); }
.diag-fill-gold { fill: var(--gold-deep); }
.diag-fill-ink { fill: var(--ink); }
.diag-fill-muted { fill: #c7c3b8; }

.when { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 860px) { .when { grid-template-columns: 1fr; } }
.when-card { padding: 24px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--paper-line); display: grid; gap: 8px; }
.when-card .when-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.when-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.when-card p { color: var(--ink-muted); font-size: 15px; }

/* ---------- Loop ---------- */
.loop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .loop-grid { grid-template-columns: 1fr; } }
.loop-svg { width: 100%; max-width: 520px; margin-inline: auto; height: auto; overflow: visible; }
.loop-svg .ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.loop-svg .ring-progress { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; transform-origin: 260px 260px; animation: spin 18s linear infinite; }
.loop-svg .node circle { fill: var(--navy-800); stroke: var(--line-strong); }
.loop-svg .node text { fill: var(--text); font-size: 15px; font-family: var(--font-sans); font-weight: 500; }
.loop-svg .node .idx { fill: var(--gold); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; }
.loop-svg .core { fill: rgba(201,169,107,0.06); stroke: var(--gold-line); }
.loop-svg .core-text { fill: var(--text); font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.loop-svg .core-sub { fill: var(--text-muted); font-family: var(--font-sans); font-size: 12.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.check-list { display: grid; gap: 18px; margin-top: 32px; }
.check-list li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 14px; }
.check-list li svg { width: 28px; height: 28px; color: var(--gold); }
.check-list strong { display: block; font-weight: 600; margin-bottom: 2px; }
.check-list span { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Layer diagram ---------- */
.layers-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .layers-grid { grid-template-columns: 1fr; } }
.layers { display: grid; gap: 10px; position: relative; }
.layer { padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.layer strong { font-weight: 600; font-size: 15.5px; }
.layer span { color: var(--text-dim); font-size: 13px; text-align: right; }
.layer-top { border-color: var(--gold-line); background: linear-gradient(90deg, rgba(201,169,107,0.14), rgba(201,169,107,0.04)); padding-block: 24px; }
.layer-top strong { color: var(--gold-bright); font-size: 17px; }
.layer-flow { display: flex; justify-content: center; gap: 48px; padding: 6px 0; color: var(--text-dim); font-size: 12px; }
.layer-flow span { display: inline-flex; align-items: center; gap: 8px; }
.layer-flow svg { width: 14px; height: 22px; }
.layer-caption { margin-top: 16px; font-size: 13px; color: var(--text-dim); text-align: center; }

/* ---------- Domains ---------- */
.domains { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 960px) { .domains { grid-template-columns: 1fr; } }
.domain-primary { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--ink); color: var(--text); display: grid; gap: 18px; align-content: space-between; position: relative; overflow: hidden; }
.domain-primary::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid var(--gold-line); }
.domain-primary h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.domain-primary p { color: var(--text-muted); }
.domain-primary ul { display: grid; gap: 10px; font-size: 15px; color: #cdd2dd; }
.domain-primary li { display: flex; gap: 10px; }
.domain-primary li::before { content: '—'; color: var(--gold); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.status-active { background: var(--gold); color: var(--navy-950); }
.status-explore { border: 1px dashed rgba(18,24,38,0.3); color: var(--ink-muted); }
.domain-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .domain-list { grid-template-columns: 1fr; } }
.domain { padding: 22px; border-radius: var(--radius); border: 1px dashed rgba(18,24,38,0.22); background: rgba(255,255,255,0.35); display: grid; gap: 10px; align-content: start; }
.domain h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.domain p { font-size: 14.5px; color: var(--ink-muted); font-style: italic; font-family: var(--font-serif); font-size: 17px; line-height: 1.35; }

/* ---------- Final CTA + form ---------- */
.final { background: radial-gradient(60% 60% at 15% 0%, rgba(201,169,107,0.09), transparent 70%), var(--navy-950); }
.final-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .final-grid { grid-template-columns: 1fr; } }
.final-copy { display: grid; gap: 24px; position: sticky; top: 110px; }
@media (max-width: 960px) { .final-copy { position: static; } }
.partner-points { display: grid; gap: 14px; margin-top: 8px; }
.partner-points li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; color: var(--text-muted); font-size: 15.5px; }
.partner-points li::before { content: ''; width: 14px; height: 14px; margin-top: 5px; border-radius: 4px; border: 1.5px solid var(--gold); background: linear-gradient(var(--gold), var(--gold)) center / 6px 6px no-repeat; }

.form-card { padding: clamp(22px, 3.4vw, 36px); border-radius: var(--radius-lg); background: var(--navy-850); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 500; }
.form-field label .opt { color: var(--text-dim); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(0,0,0,0.25);
  padding: 13px 14px; font-size: 15.5px; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.form-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a3abbd' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-field select option { background: var(--navy-850); color: var(--text); }
.form-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-dim); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.form-field [aria-invalid='true'] { border-color: #e08b7d; }
.form-error { font-size: 13px; color: #f0a597; min-height: 0; }
.form-error:empty { display: none; }
.consent { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 12px; align-items: start; font-size: 14px; color: var(--text-muted); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-actions .btn { min-width: 220px; }
.form-fine { font-size: 13px; color: var(--text-dim); }
.demo-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; border: 1px dashed var(--gold-line); background: var(--gold-soft); color: var(--gold-bright); font-size: 13.5px; margin-bottom: 22px; }
.demo-banner strong { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; padding: 2px 7px; border-radius: 5px; background: var(--gold); color: var(--navy-950); flex: none; margin-top: 1px; }
.form-result { margin-top: 18px; padding: 14px 16px; border-radius: 11px; font-size: 14.5px; line-height: 1.5; }
.form-result code { font-size: 12.5px; }
.form-result small { display: block; margin-top: 6px; opacity: .8; }
.form-result-success { background: rgba(140,199,169,0.12); border: 1px solid rgba(140,199,169,0.4); color: #cfeadb; }
.form-result-error { background: rgba(224,139,125,0.1); border: 1px solid rgba(224,139,125,0.4); color: #f6c4ba; }
.form-result-demo { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-bright); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--text-muted); margin-top: 16px; max-width: 360px; }
.footer-col h3 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: 13px; }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 0%, rgba(201,169,107,0.10), transparent 70%), radial-gradient(40% 60% at 0% 0%, rgba(70,92,150,0.14), transparent 70%); }
.page-hero .container { display: grid; gap: 24px; justify-items: start; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500; max-width: 920px; }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-sticky { position: sticky; top: 110px; display: grid; gap: 18px; }
@media (max-width: 900px) { .split-sticky { position: static; } }

.feature-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.paper .feature-list { border-color: var(--paper-line); }
.feature-list > li { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.paper .feature-list > li { border-color: var(--paper-line); }
.feature-list .fl-num { font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .1em; padding-top: 4px; }
.paper .feature-list .fl-num { color: var(--gold-deep); }
.feature-list h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 6px; }
.feature-list p { color: var(--text-muted); font-size: 15.5px; }
.paper .feature-list p { color: var(--ink-muted); }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 760px) { .cards2 { grid-template-columns: 1fr; } }
.card { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(255,255,255,0.02); display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.card p, .card li { color: var(--text-muted); font-size: 15.5px; }
.card ul { display: grid; gap: 8px; margin-top: 4px; }
.card li { display: flex; gap: 10px; }
.card li::before { content: ''; flex: 0 0 5px; height: 5px; margin-top: 10px; border-radius: 50%; background: var(--gold); }
.card-gold { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(201,169,107,0.08), rgba(201,169,107,0.01)); }
.card .card-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.paper .card { background: #fff; border-color: var(--paper-line); }
.paper .card p, .paper .card li { color: var(--ink-muted); }
.paper .card .card-label { color: var(--gold-deep); }

.truth-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.truth-table th, .truth-table td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.truth-table th { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.truth-table th:last-child { color: var(--gold); }
.truth-table td:first-child { font-weight: 600; width: 26%; }
.truth-table td { color: var(--text-muted); }
.truth-table td:last-child { color: var(--text); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
.table-wrap .truth-table tr:last-child td { border-bottom: 0; }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--paper-line); }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } }
.roadmap > div { padding: 28px 28px 8px 0; display: grid; gap: 10px; align-content: start; position: relative; }
.roadmap > div::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--gold-deep); }
.roadmap > div:first-child::before { background: var(--gold-deep); }
.roadmap .rm-when { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-top: 8px; }
.roadmap h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.roadmap p { color: var(--ink-muted); font-size: 15.5px; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-muted); max-width: 720px; }

.cta-band { padding: clamp(36px, 5vw, 56px); border-radius: var(--radius-lg); border: 1px solid var(--gold-line); background: linear-gradient(120deg, rgba(201,169,107,0.12), rgba(201,169,107,0.02) 60%); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; max-width: 620px; }
.cta-band p { color: var(--text-muted); margin-top: 10px; max-width: 560px; }

.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); color: var(--text-muted); font-size: 15px; }
.notice svg { flex: 0 0 20px; color: var(--gold); margin-top: 2px; }
.notice strong { color: var(--text); }
.hero .display { font-size: clamp(42px, 5.2vw, 72px); }
@media (min-width: 1100px) { .hero .display { font-size: clamp(52px, 4.4vw, 68px); } }
@media (max-width: 760px) {
  .scenario { padding: 14px 16px; gap: 2px; }
  .scenario-dso { font-size: 32px; }
  .scenario-foot { padding-top: 8px; }
}

/* ---------- Hero orbit (Convergence motif, decorative) ---------- */
.hero-orbit {
  position: absolute; z-index: -1; pointer-events: none; color: #ece6d8;
  width: min(1180px, 120vw); aspect-ratio: 1; height: auto;
  right: -22%; top: 50%; transform: translateY(-50%);
}
@media (max-width: 1099px) { .hero-orbit { right: -45%; top: 8%; transform: none; width: 150vw; opacity: .8; } }
.hero-orbit g { transform-box: view-box; transform-origin: 50% 50%; }
.hero-orbit .ho-o { animation: orbit-turn 160s linear infinite; }
.hero-orbit .ho-m { animation: orbit-turn 110s linear infinite; }
.hero-orbit .ho-i { animation: orbit-turn 75s linear infinite; }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-orbit g { animation: none; } .brand-mark g { transition: none; } }

/* =========================================================================
   Commercial iteration: story, decisions, evidence, trust, scenario hand-off
   ========================================================================= */

/* ---------- Fact vs hypothesis journey ---------- */
.journey { display: grid; grid-template-columns: minmax(0,1fr) 72px minmax(0,1fr) 72px minmax(0,1fr); align-items: stretch; }
@media (max-width: 960px) { .journey { grid-template-columns: 1fr; gap: 0; } }
.jstep { padding: 26px; border-radius: var(--radius-lg); display: grid; gap: 10px; align-content: start; }
.jstep h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.jstep p { color: var(--text-muted); font-size: 15px; }
.jstep .jdso { color: var(--text-dim); font-size: 14px; }
.jstep .jdso span { display: inline-block; font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; color: #c7cfdf; margin-right: 6px; font-variant-numeric: tabular-nums; }
.jstep-fact { border: 1px solid var(--line-strong); background: rgba(255,255,255,0.025); }
.jstep-hyp { border: 1.5px dashed var(--gold-line); background: linear-gradient(180deg, rgba(201,169,107,0.08), rgba(201,169,107,0.01)); }
.jstep-hyp .jdso span { color: var(--gold-bright); }
.evidence { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.evidence-fact { color: #b6c1d9; background: var(--ref-soft); }
.evidence-hyp { color: var(--gold-bright); border: 1px dashed var(--gold-line); }
.jarrow { position: relative; display: grid; place-items: center; }
.jarrow::before { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; border-top: 1.5px solid var(--line-strong); }
.jarrow::after { content: ''; position: absolute; right: 8px; top: calc(50% - 4px); width: 8px; height: 8px; border-top: 1.5px solid var(--text-dim); border-right: 1.5px solid var(--text-dim); transform: rotate(45deg); }
.jarrow span { position: relative; font-size: 10.5px; color: var(--text-dim); background: var(--navy-950); padding: 2px 6px; margin-top: -28px; text-align: center; line-height: 1.2; }
.jarrow-hyp::before { border-top-style: dashed; border-color: var(--gold-line); }
.jarrow-hyp::after { border-color: var(--gold); }
.jarrow-hyp span { color: var(--gold); }
@media (max-width: 960px) {
  .jarrow { height: 44px; }
  .jarrow::before { left: 50%; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 1.5px solid var(--line-strong); }
  .jarrow-hyp::before { border-left-style: dashed; border-color: var(--gold-line); }
  .jarrow::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 6px; transform: rotate(135deg); }
  .jarrow span { margin: 0 0 0 120px; background: transparent; }
}
.journey-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.journey-legend span { display: inline-flex; align-items: center; gap: 8px; }
.journey-legend i { display: inline-block; width: 22px; height: 0; border-top: 1.5px solid var(--text-muted); }
.journey-legend i.lg-hyp { border-top: 1.5px dashed var(--gold); }

/* ---------- Decisions under investigation ---------- */
.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 960px) { .decision-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .decision-grid { grid-template-columns: 1fr; } }
.dcard { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.dtag { justify-self: start; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); border: 1px dashed rgba(154,127,76,.5); padding: 3px 8px; border-radius: 6px; }
.dcard h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.dq { font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--ink); }
.dexam { font-size: 14px; color: var(--ink-muted); border-top: 1px solid var(--paper-line); padding-top: 10px; }
.dexam b { color: var(--ink); font-weight: 600; }

/* ---------- Simulator framing ---------- */
.read-guide { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: -24px auto 28px; max-width: 980px; }
@media (max-width: 760px) { .read-guide { grid-template-columns: 1fr; gap: 8px; margin-top: -16px; } }
.read-guide li { display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 12px; font-size: 14px; color: var(--text-muted); }
.read-guide strong { display: block; color: var(--text); font-weight: 600; }
.rg-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.rg-fact { background: var(--ref); }
.rg-hyp { border: 1.5px dashed var(--gold); }
.rg-calc { background: var(--gold); }

.evidence-panel { margin-top: clamp(32px, 4vw, 48px); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px); background: rgba(255,255,255,0.02); display: grid; gap: 28px; }
.ep-head { display: grid; gap: 12px; max-width: 760px; }
.ep-head h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.ep-assumption { font-size: 17px; color: var(--text); padding-left: 14px; border-left: 2px dashed var(--gold); }
.ep-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .ep-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ep-steps { grid-template-columns: 1fr; } }
.ep-steps li { padding: 20px 20px 4px 0; display: grid; gap: 6px; align-content: start; }
.ep-steps span { font-size: 12.5px; font-weight: 600; color: var(--gold); letter-spacing: .1em; }
.ep-steps strong { font-weight: 600; font-size: 16.5px; }
.ep-steps p { font-size: 14.5px; color: var(--text-muted); }
.ep-outcome { font-size: 15px; color: var(--text-muted); }
.ep-outcome strong { color: var(--gold-bright); font-weight: 600; }

/* ---------- Consolidated "how it works" notes ---------- */
.how-notes { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 860px) { .how-notes { grid-template-columns: 1fr; } }
.how-notes > div { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 8px; align-content: start; }
.how-notes h3 { font-size: 17px; font-weight: 600; }
.how-notes p { font-size: 15px; color: var(--ink-muted); }

/* ---------- Assessment copy ---------- */
.steps-list { display: grid; gap: 16px; }
.steps-list li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 14px; color: var(--text-muted); font-size: 15.5px; }
.steps-list li > span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold-bright); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.steps-list strong { display: block; color: var(--text); font-weight: 600; }

/* ---------- Placeholders (must be replaced before launch) ---------- */
.placeholder-block { position: relative; border: 1px dashed var(--gold-line) !important; }
.ph-badge { position: absolute; top: -10px; right: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; background: var(--gold); color: var(--navy-950); }
.ph { color: var(--gold-bright); font-style: italic; }
.cp-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-750); color: var(--text-dim); font-weight: 600; flex: none; }
.contact-person { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); }
.contact-person strong { display: block; font-weight: 600; }
.contact-person > div span { font-size: 14px; color: var(--text-muted); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
.person { padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); display: grid; gap: 8px; align-content: start; }
.person h3 { font-size: 21px; font-weight: 500; margin-top: 8px; }
.person-role { font-size: 14px; }
.person p { color: var(--text-muted); font-size: 15px; }
.details { display: grid; gap: 12px; margin-top: 6px; }
.details div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 12px; font-size: 15px; }
@media (max-width: 480px) { .details div { grid-template-columns: 1fr; gap: 2px; } }
.details dt { color: var(--text-dim); }

/* ---------- Scenario attached to the form ---------- */
.scenario-attach { border: 1px solid var(--gold-line); border-radius: 14px; background: linear-gradient(180deg, rgba(201,169,107,0.09), rgba(201,169,107,0.02)); padding: 16px 18px; margin-bottom: 22px; }
.sa-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.sa-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-bright); }
.sa-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); cursor: pointer; }
.sa-toggle input { width: 16px; height: 16px; accent-color: var(--gold); margin: 0; }
.sa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
@media (max-width: 480px) { .sa-grid { grid-template-columns: 1fr; } }
.sa-grid dt { font-size: 12px; color: var(--text-dim); }
.sa-grid dd { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sa-note, .sa-empty, .form-data-note { font-size: 13px; color: var(--text-dim); margin-top: 12px; }
.sa-empty { margin: 0 0 20px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 11px; }
.sa-note a, .sa-empty a, .form-data-note a, .faq a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.form-data-note { margin-top: 14px; }
.form-result details { margin-top: 10px; }
.form-result summary { cursor: pointer; font-weight: 600; }
.form-result pre { margin: 8px 0 0; padding: 12px; border-radius: 8px; background: rgba(0,0,0,0.3); color: var(--text); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Mobile: results before inputs, shorter hero ---------- */
@media (max-width: 1080px) {
  .sim-main { display: contents; }
  .sim-body { display: flex; flex-direction: column; }
  .sim-kpis { order: 1; margin: 16px 16px 0; }
  .sim-scenarios { order: 2; margin: 12px 16px 0; }
  .sim-inputs { order: 3; margin-top: 16px; border-top: 1px solid var(--line); }
  .sim-charts { order: 4; margin: 16px 16px 0; }
  .sim-bottom { order: 5; margin: 12px 16px 16px; }
}
@media (max-width: 760px) {
  .sim-scenarios { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .scenario { padding: 12px 10px; }
  .scenario h4 { font-size: 12px; margin-top: 4px; }
  .scenario-dso { font-size: 26px; flex-direction: column; align-items: flex-start; gap: 0; }
  .scenario-dso small { font-size: 11px; }
  .scenario .tag { font-size: 8.5px; padding: 2px 5px; letter-spacing: .06em; }
  .scenario-meta, .scenario-foot { font-size: 11px; }
  .scenario-foot { display: none; }
  .kpi { padding: 14px 16px; }
}
@media (max-width: 640px) { .dash-decisions { display: none; } }
@media (max-width: 760px) { .scenario-hyp .scenario-foot { display: block; border-top: 0; padding-top: 0; margin-top: 2px; } }
@media (max-width: 640px) {
  .sim-topbar { padding: 12px 16px; gap: 10px; }
  .sim-crumb { display: none; }
  .sim-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sim-actions .btn { --h: 36px; padding: 0 8px; font-size: 12.5px; gap: 6px; }
  .dcard { padding: 20px; }
  .dq { font-size: 17.5px; }
}

/* ---------- Iteration: trust line, evidence principles ---------- */
.hero-trust { font-size: 15px; color: var(--text-muted); }
.hero-trust span { color: var(--gold-bright); }
.ep-principles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
@media (max-width: 860px) { .ep-principles { grid-template-columns: 1fr; } }
.ep-principles > div { padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); }
.ep-principles h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ep-principles p { font-size: 14px; color: var(--text-muted); }
.sim-title .badge { font-size: 10px; }
@media (max-width: 640px) { .sim-title .badge { display: none; } }

/* =========================================================================
   Founding Design Partner Program
   ========================================================================= */

/* ---------- Hero: now / next + report teaser ---------- */
.hero-now { display: grid; gap: 8px; font-size: 14px; }
.hn { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); }
.hn i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hn-now i { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.hn-next i { border: 1.5px dashed var(--text-dim); }

.teaser { position: relative; display: block; max-width: 560px; justify-self: center; width: 100%; padding: 0 0 22px 22px; color: var(--ink); }
.teaser-page { position: absolute; inset: 0 22px 22px 0; border-radius: 14px; background: #e9e4d8; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.teaser-page-3 { transform: translate(22px, 22px) rotate(1.6deg); opacity: .5; }
.teaser-page-2 { transform: translate(11px, 11px) rotate(.8deg); opacity: .8; }
.teaser-doc { position: relative; display: grid; gap: 10px; padding: 26px 26px 22px; border-radius: 14px; background: #f8f5ee; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); transition: transform .4s var(--ease); }
.teaser:hover .teaser-doc { transform: translateY(-4px); }
.teaser:focus-visible { outline: none; }
.teaser:focus-visible .teaser-doc { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.t-ribbon { justify-self: start; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a3b2c; border: 1px solid rgba(138,59,44,.35); background: rgba(138,59,44,.06); padding: 3px 8px; border-radius: 5px; }
.t-brand { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.t-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.t-title em { font-style: normal; font-weight: 400; color: var(--ink-muted); font-size: 15px; }
.t-sub { font-size: 12.5px; color: var(--ink-muted); margin-top: -4px; }
.t-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.t-kpis > span { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--paper-line); }
.t-kpis small { font-size: 10.5px; color: var(--ink-muted); }
.t-kpis b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.t-kpis b.t-none { color: #2e6b52; font-size: 15px; }
.t-h { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-top: 4px; }
.t-row { display: grid; grid-template-columns: 26px minmax(0,1fr) 110px; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--paper-line); }
.t-pilot { font-size: 12.5px; color: var(--ink); background: rgba(154,127,76,.1); border: 1px dashed rgba(154,127,76,.5); padding: 8px 12px; border-radius: 8px; }
.t-cta { font-size: 13px; font-weight: 600; color: var(--gold-deep); }
@media (max-width: 480px) { .t-row { grid-template-columns: 26px minmax(0,1fr) 72px; } .t-kpis b { font-size: 14px; } .teaser-doc { padding: 20px 18px; } }

/* ---------- Grade chips + range bars (shared) ---------- */
.g { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-style: normal; font-size: 12.5px; font-weight: 700; flex: none; }
.g-a { background: #2e6b52; color: #fff; }
.g-b { background: #7a6232; color: #fff; }
.g-c { background: transparent; color: #6b6458; border: 1.5px dashed #9a9384; }
.section-dark .g-c, .section-alt .g-c { color: var(--text-muted); border-color: var(--text-dim); }
.rr { position: relative; display: block; height: 8px; border-radius: 4px; background: rgba(18,24,38,.08); }
.rr-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, rgba(154,127,76,.35), rgba(154,127,76,.75)); }
.rr-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); border: 2px solid #f8f5ee; }

/* ---------- Program offer ---------- */
.deliverables { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 1080px) { .deliverables { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .deliverables { grid-template-columns: 1fr; } }
.dl-card { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.dl-letter { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-serif); font-style: italic; font-size: 24px; color: #fff; background: var(--ink); }
.dl-card h3 { font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.dl-card p, .dl-card li { font-size: 14.5px; color: var(--ink-muted); }
.dl-card ul { display: grid; gap: 6px; }
.dl-card li { display: flex; gap: 8px; }
.dl-card li::before { content: ''; flex: 0 0 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--gold-deep); }

.terms-strip { margin-top: 24px; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); border: 1px solid var(--paper-line); border-radius: var(--radius); background: #fff; overflow: hidden; }
@media (max-width: 960px) { .terms-strip { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 520px) { .terms-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.terms-strip > div { padding: 16px 18px; border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); margin: 0 -1px -1px 0; }
.terms-strip dt { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.terms-strip dd { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.terms-dark { background: rgba(255,255,255,0.03); border-color: var(--line-strong); width: 100%; margin-top: 12px; }
.terms-dark > div { border-color: var(--line-strong); }
.terms-dark dt { color: var(--text-dim); }
.terms-dark dd { color: var(--text); }

/* ---------- Report ---------- */
.report { position: relative; background: #f8f5ee; color: var(--ink); border-radius: 18px; box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; color-scheme: light; }
.report-ribbon { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 10px 28px; background: #efe6d6; border-bottom: 1px solid rgba(138,59,44,.2); font-size: 13px; color: #6a3a2e; }
.report-ribbon strong { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #8a3b2c; padding: 3px 8px; border-radius: 5px; }
.report-cover { padding: 32px 36px 26px; border-bottom: 1px solid var(--paper-line); background: linear-gradient(180deg, #fbf9f4, #f8f5ee); }
.rc-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.rc-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.rc-brand svg { width: 26px; height: 26px; color: var(--ink); }
.rc-conf { font-size: 11.5px; color: var(--ink-muted); letter-spacing: .06em; text-transform: uppercase; }
.rc-title { margin-top: 22px; font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.rc-title span { font-weight: 400; color: var(--ink-muted); font-size: .6em; }
.rc-sub { margin-top: 6px; color: var(--ink-muted); font-size: 15px; }
.rc-facts { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 2px solid var(--ink); }
@media (max-width: 640px) { .rc-facts { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.rc-facts div { padding: 12px 12px 0 0; }
.rc-facts dt { font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.rc-facts dd { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

.r-sec { padding: 28px 36px; border-bottom: 1px solid var(--paper-line); display: grid; gap: 16px; }
@media (max-width: 640px) { .r-sec, .report-cover { padding-left: 18px; padding-right: 18px; } .report-ribbon { padding: 10px 18px; } }
.r-h { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.r-h span { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--gold-deep); color: var(--gold-deep); display: grid; place-items: center; font-size: 12px; letter-spacing: 0; }
.r-lead { font-size: 18px; line-height: 1.45; max-width: 760px; }
.r-lead b { font-weight: 600; }
.r-text { font-size: 14.5px; color: var(--ink-muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.rtag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
.rt-fact { background: #e3e7ef; color: #3b4a68; }
.rt-hyp { border: 1px dashed #7a6232; color: #7d6538; }
.rt-scn { background: rgba(154,127,76,.16); color: #6e5830; }
.rt-val { border: 1px solid #2e6b52; color: #2e6b52; }

.r-kpis { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
@media (max-width: 1080px) { .r-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 640px) { .r-kpis { grid-template-columns: 1fr 1fr; } }
.r-kpi { background: #fff; border: 1px solid var(--paper-line); border-radius: 12px; padding: 14px 14px 12px; display: grid; gap: 4px; align-content: start; }
.r-kpi .rtag { justify-self: start; margin-bottom: 4px; }
.rk-label { font-size: 12px; color: var(--ink-muted); }
.rk-value { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.rk-value small { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.rk-grades { display: flex; gap: 5px; }
.rk-note { font-size: 11.5px; color: var(--ink-muted); }
.r-kpi-val .rk-value { color: #2e6b52; }

.r-stack { display: flex; height: 40px; border-radius: 8px; overflow: hidden; font-size: 12.5px; }
.rs-seg { display: flex; align-items: center; gap: 6px; padding: 0 12px; white-space: nowrap; overflow: hidden; }
.rs-seg b { font-size: 15px; }
.rs-terms { background: #3b4a68; color: #fff; }
.rs-late { background: #7a6232; color: #fff; }
.rs-disp { background: #8a3b2c; color: #fff; justify-content: center; padding: 0; }
.r-stack-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-muted); }
.r-stack-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.r-cols { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
@media (max-width: 760px) { .r-cols { grid-template-columns: 1fr; } }
.r-mini-h { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.r-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.r-table td { padding: 7px 0; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.r-table td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: 12px; }
.r-list { display: grid; gap: 8px; font-size: 14px; color: var(--ink); }
.r-list li { padding-left: 16px; position: relative; }
.r-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); }
.r-list-2 { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 760px) { .r-list-2 { grid-template-columns: 1fr; } }

.r-map { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
@media (max-width: 860px) { .r-map { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.rm { border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; border: 1px solid var(--paper-line); background: #fff; }
.rm p { font-weight: 600; font-size: 14px; }
.rm span { font-size: 12px; color: var(--ink-muted); }
.rm-opp { background: #2e6b52; border-color: #2e6b52; }
.rm-opp p, .rm-opp span { color: #fff; }
.rm-opp span { opacity: .85; }
.rm-test { border: 1.5px dashed #7a6232; }
.rm-none { background: #efede7; }
.rm-gap { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #f1eee6 6px, #f1eee6 12px); }
.rm-con { border-left: 4px solid #8a3b2c; }
.rm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-muted); }
.rm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--paper-line); }
.rm-legend i.rm-opp { background: #2e6b52; }
.rm-legend i.rm-test { border: 1.5px dashed #7a6232; }
.rm-legend i.rm-none { background: #efede7; }
.rm-legend i.rm-con { border-left: 4px solid #8a3b2c; }

.r-hyps { display: grid; border-top: 2px solid var(--ink); }
.rh { display: grid; grid-template-columns: minmax(0,2.4fr) 56px minmax(0,1.5fr) minmax(0,1fr) minmax(0,.9fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--paper-line); font-size: 14px; }
.rh > div:nth-child(n+4) { font-variant-numeric: tabular-nums; font-weight: 600; }
.rh small { display: block; color: var(--ink-muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.rh-head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 10px 0; }
.rh-head em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
.rh-range { display: grid; gap: 6px; }
.rh-range small { margin: 0; }
.rh-c { color: var(--ink-muted); }
@media (max-width: 860px) {
  .rh { grid-template-columns: 32px minmax(0,1fr); gap: 6px 12px; }
  .rh-head { display: none; }
  .rh > div:nth-child(1) { grid-column: 1 / -1; order: -1; }
  .rh > div:nth-child(2) { grid-row: span 3; align-self: start; }
  .rh > div:nth-child(4)::before { content: 'Working capital: '; font-weight: 400; color: var(--ink-muted); }
  .rh > div:nth-child(5)::before { content: 'Financing / yr: '; font-weight: 400; color: var(--ink-muted); }
}
.r-foot { font-size: 12.5px; color: var(--ink-muted); }

.r-pilot { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border: 1px solid var(--paper-line); border-radius: 12px; background: #fff; overflow: hidden; }
@media (max-width: 760px) { .r-pilot { grid-template-columns: 1fr 1fr; } }
.r-pilot > div { padding: 14px 16px; border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); margin: 0 -1px -1px 0; font-size: 14px; }
.rp-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2px; }
.report-foot { padding: 20px 36px 24px; display: grid; gap: 10px; font-size: 13px; color: var(--ink-muted); background: #f3efe5; }
@media (max-width: 640px) { .report-foot { padding: 18px; } }
.rf-legend { display: flex; flex-wrap: wrap; gap: 8px; }

.report-compact .r-full { display: none; }
.report-after { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ---------- Differentiation, now/next, trust ---------- */
.diff-table th:last-child, .diff-table td:last-child { background: rgba(201,169,107,0.06); color: var(--text); }
.diff-table th:last-child { color: var(--gold); }
.diff-table td:not(:first-child):not(:last-child) { color: var(--text-muted); }
.diff-table { min-width: 860px; }
.diff-table td:first-child { width: 14%; }

.now-next { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .now-next { grid-template-columns: 1fr; } }
.nn { border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; background: #fff; border: 1px solid var(--paper-line); }
.nn h3 { font-size: 19px; font-weight: 600; }
.nn p { font-size: 15px; color: var(--ink-muted); }
.nn-tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.nn-now { border: 2px solid var(--ink); }
.nn-now .nn-tag { background: var(--ink); color: #fff; }
.nn-next .nn-tag, .nn-later .nn-tag { border: 1px dashed rgba(18,24,38,.4); color: var(--ink-muted); }
.nn-next, .nn-later { background: rgba(255,255,255,.5); border-style: dashed; }
.trust-strip { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; padding: 24px; border-radius: var(--radius); background: var(--ink); color: var(--text); }
@media (max-width: 900px) { .trust-strip { grid-template-columns: 1fr; } }
.trust-strip h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.trust-strip p { font-size: 14.5px; color: var(--text-muted); }
.trust-strip .text-link { grid-column: 1 / -1; color: var(--gold-bright); }

/* ---------- Design partner page ---------- */
.dp-intro { gap: clamp(32px, 5vw, 72px); }
.check-bullets { display: grid; gap: 10px; }
.check-bullets li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; color: var(--text-muted); }
.check-bullets li::before { content: ''; width: 14px; height: 14px; margin-top: 5px; border-radius: 4px; border: 1.5px solid var(--gold); background: linear-gradient(var(--gold), var(--gold)) center / 6px 6px no-repeat; }
.deliverables-full .dl-card { padding: 26px; }
.process { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; counter-reset: p; border-top: 1px solid var(--line-strong); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process li { padding: 24px 24px 8px 0; display: grid; gap: 8px; align-content: start; position: relative; }
.process li::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--navy-850); border: 1.5px solid var(--gold); }
.process li:first-child::before { background: var(--gold); }
.pr-when { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.process h3 { font-size: 19px; font-weight: 500; }
.process p { font-size: 14.5px; color: var(--text-muted); }
.grade-table td:first-child { width: 70px; }
.data-card { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 12px; align-content: start; }
.data-card h3 { font-size: 19px; font-weight: 600; }
.data-table td:last-child { text-align: left; font-weight: 400; color: var(--ink-muted); }
.data-table td:first-child { font-weight: 600; width: 38%; padding-right: 12px; }
.time-list { display: grid; }
.time-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--paper-line); font-size: 15px; }
.time-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.legal-flag { justify-self: start; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f0b9ad; border: 1px dashed rgba(240,185,173,.6); padding: 6px 10px; border-radius: 8px; }

/* ---------- Application form ---------- */
.steps-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.form-warning { margin-top: 16px; font-size: 13.5px; color: var(--text-muted); padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(255,255,255,0.02); }
.form-field label .opt { color: var(--text-dim); font-weight: 400; }
/* Mobile: keep the homepage focused — the full report lives on the program page */
@media (max-width: 760px) {
  .teaser { display: none; }
  #story .compare { display: none; }
  .report-compact .r-sec:has(.r-map), .report-compact .r-sec:has(.r-pilot) { display: none; }
  .now-next .nn-later { display: none; }
}
@media (max-width: 760px) { .ep-principles { display: none; } }

/* =========================================================================
   BIX brand layer
   ========================================================================= */
:root {
  --text-dim: #8a93a6; /* raised from #6f788c for WCAG AA contrast on navy */
  --bix-ink: #eef0f5;
}
.brand { gap: 0; }
.brand-wordmark { height: 30px; width: auto; color: var(--bix-ink); display: block; }
.footer-brand .brand-wordmark { height: 34px; }
.hero-promise { font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2vw, 26px); color: var(--gold-bright); letter-spacing: -0.01em; }

/* Hero motif: the rising gold decision path (supporting motif, not the logo) */
.hero-path { position: absolute; z-index: -1; pointer-events: none; color: var(--bix-ink); width: min(1100px, 110vw); height: auto; aspect-ratio: 1; right: -18%; top: 50%; transform: translateY(-50%); }
@media (max-width: 1099px) { .hero-path { right: -40%; top: 6%; transform: none; width: 140vw; opacity: .7; } }
.hero-path .hp-rise { stroke-dasharray: 880; stroke-dashoffset: 880; animation: hp-draw 2.4s .5s var(--ease) forwards; }
.hero-path .hp-node { opacity: 0; animation: fade .8s 2.6s ease forwards; }
@keyframes hp-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-path .hp-rise { stroke-dashoffset: 0; animation: none; } .hero-path .hp-node { opacity: 1; animation: none; } }

/* Grade and status colours in the BIX palette (no green) */
.g-a { background: #121826; color: #fff; }
.section-dark .g-a, .section-alt .g-a { background: var(--bix-ink); color: #121826; }
.rt-val { border-color: #121826; color: #121826; }
.r-kpi-val .rk-value, .t-kpis b.t-none { color: #121826; }

/* ---------- Opportunity Report: executive document ---------- */
.report { border-radius: 6px; }
.report-cover { position: relative; overflow: hidden; background: #0d1428; color: var(--bix-ink); padding: 34px 40px 28px; border-bottom: 3px solid var(--gold); }
.report-cover::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 340px; height: 2px; background: linear-gradient(90deg, transparent, rgba(201,169,107,.7)); transform: rotate(-42deg); transform-origin: right; }
.rc-brand { gap: 12px; color: var(--bix-ink); }
.rc-brand > span { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); }
.rc-wordmark { height: 26px; width: auto; color: var(--bix-ink); display: block; }
.rc-wordmark circle:last-child { fill: var(--gold); }
.rc-conf { color: var(--text-muted); }
.rc-title { color: #fff; font-weight: 500; }
.rc-title span { color: var(--text-muted); }
.rc-sub { color: var(--text-muted); }
.rc-facts { border-top: 1px solid rgba(201,169,107,.5); }
.rc-facts dt { color: var(--text-dim); }
.rc-facts dd { color: #fff; font-weight: 500; }
@media (max-width: 640px) { .report-cover { padding: 26px 18px 22px; } }

.r-sec { padding: 32px 40px; gap: 18px; }
@media (max-width: 640px) { .r-sec { padding: 24px 18px; } }
.r-h { font-family: var(--font-serif); font-style: normal; font-weight: 400; font-size: 26px; letter-spacing: -0.01em; text-transform: none; gap: 14px; }
.r-h span { width: auto; height: auto; border: 0; border-radius: 0; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--gold-deep); padding-top: 6px; }
.r-h span::before { content: '0'; }
.r-lead { font-size: 19px; }

.r-kpis { gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--paper-line); }
.r-kpi { background: transparent; border: 0; border-radius: 0; padding: 16px 16px 14px 0; }
.r-kpi + .r-kpi { border-left: 1px solid var(--paper-line); padding-left: 16px; }
@media (max-width: 1080px) { .r-kpi + .r-kpi { border-left: 0; padding-left: 0; } .r-kpi { border-bottom: 1px solid var(--paper-line); } }
.rk-value { font-size: 24px; font-weight: 500; }

.rs-terms { background: #121826; }
.rs-late { background: #7a6232; }
.rs-disp { background: #c8b48a; color: #121826; }
.r-stack { border-radius: 3px; height: 36px; }

.rm { border-radius: 4px; }
.rm-opp { background: #121826; border-color: #121826; }
.rm-legend i.rm-opp { background: #121826; }
.rm-con { border-left-color: #7a6232; }
.rm-legend i.rm-con { border-left-color: #7a6232; }

.r-pilot { border-radius: 4px; }
.r-hyps { border-top-width: 1px; }
.report-foot { background: #efeae0; }
.report-ribbon { background: #121826; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,.08); }
.report-ribbon strong { background: var(--gold); color: #121826; }

/* Teaser in BIX style */
.teaser-doc { border-radius: 6px; }
.teaser-page { border-radius: 6px; }
.t-ribbon { color: #121826; border-color: rgba(18,24,38,.25); background: rgba(201,169,107,.25); }
.rc-brand .rc-wordmark { width: auto; height: 26px; color: var(--bix-ink); }
.r-h span { display: inline-block; }
.report .g-a { background: #121826; color: #fff; }
.report .g-c { color: #6b6458; border-color: #9a9384; }

/* =========================================================================
   Opportunity Simulator — Strategy mode
   ========================================================================= */
.sim[data-mode="simple"] [data-strategy-only], .sim[data-mode="strategy"] [data-simple-only] { display: none !important; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg-2 .seg-item span { font-size: 13px; padding: 9px 6px; }
.mode-field { margin-bottom: -6px; }

.strat-inputs { display: grid; gap: 22px; }
@media (max-width: 1080px) { .strat-inputs { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 32px; } .strat-head, .strat-actions, .why-seg { grid-column: 1 / -1; } }
@media (max-width: 640px) { .strat-inputs { grid-template-columns: 1fr; } }
.field-note-muted { font-size: 12.5px; color: var(--text-dim); margin-top: -2px; }
.strat-head { padding-top: 14px; border-top: 1px solid var(--line); }
.strat-head h4 { font-size: 15px; font-weight: 600; }
.strat-head p { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.strat-head p strong { color: var(--gold-bright); font-weight: 600; }
.lever { display: grid; gap: 8px; }
.lever-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text); cursor: pointer; line-height: 1.3; }
.lever-toggle input { width: 16px; height: 16px; accent-color: var(--gold); margin: 0; flex: none; }
.lever-n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold-bright); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.lever-help { font-size: 11.5px; color: var(--text-dim); margin-top: -4px; }
.lever input[type='range'] { --track-fill: var(--gold); }
.lever.is-off .lever-help, .lever.is-off input[type='range'] { opacity: .4; }
.strat-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sim-strategy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; }
@media (max-width: 960px) { .sim-strategy { grid-template-columns: 1fr; } }
.panel-title .badge { font-size: 9.5px; padding: 2px 7px; margin-left: 4px; }
.bridge { display: grid; gap: 10px; }
.br-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 13px; }
.br-label { color: var(--text-muted); display: flex; gap: 6px; align-items: center; line-height: 1.3; }
.br-label b { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold-bright); display: inline-grid; place-items: center; font-size: 10.5px; }
.br-total .br-label { color: var(--text); font-weight: 600; }
.br-track { position: relative; height: 18px; border-radius: 3px; background: rgba(255,255,255,0.04); }
.br-bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(201,169,107,.5), var(--gold)); transition: left .5s var(--ease), width .5s var(--ease); }
.br-total .br-bar { background: rgba(116,132,166,.75); }
.br-end .br-bar { background: rgba(228,204,154,.85); }
.br-terms { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1.5px dashed var(--text); opacity: .7; }
.br-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.br-step .br-val { color: var(--gold-bright); }
.br-step.is-zero { opacity: .45; }
.bridge-note { margin-top: 14px; font-size: 12.5px; color: var(--text-dim); }

.why-panel { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(201,169,107,0.06), transparent); }
.why-list { display: grid; gap: 14px; }
.why-item { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.why-item.is-zero { opacity: .55; }
.why-item h5 { margin: 0 0 2px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.why-item h5 b { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--navy-950); display: inline-grid; place-items: center; font-size: 11px; }
.why-item h5 span { margin-left: auto; font-size: 12.5px; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.why-item p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.why-item p strong { color: var(--text); font-weight: 600; }
.why-load { font-size: 12.5px !important; }
.why-seg { font-size: 12.5px; color: var(--text-muted); padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(255,255,255,0.02); }
.why-seg strong { color: var(--text); }

@media (max-width: 1080px) {
  .sim-strategy { order: 2; margin: 12px 16px 0; }
  .sim-scenarios { order: 3; }
  .sim-inputs { order: 4; }
  .sim-charts { order: 5; }
  .sim-bottom { order: 6; }
}
@media (max-width: 480px) { .br-row { grid-template-columns: minmax(0, 1fr) 70px 44px; } }
.br-label em { display: block; font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--text-dim); }
.br-total .br-label { flex-direction: column; align-items: flex-start; gap: 0; }

/* =========================================================================
   Stage B: conversation CTA, Decide · Verify · Predict, roles strip
   ========================================================================= */
.hero-trust .text-link { font-weight: 600; }
.cta-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.roles-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 860px) { .roles-strip { grid-template-columns: 1fr; } }
.roles-strip > div { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); }
.roles-strip p { font-size: 15px; color: var(--text-muted); margin-top: 6px; }
.rs-k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.roles-strip .rs-bix { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(201,169,107,0.10), rgba(201,169,107,0.02)); }
.rs-bix .rs-k { color: var(--gold); }
.rs-bix p { color: var(--text); }
.roles-note { font-size: 14px; color: var(--text-muted); margin: 0 0 24px; }

.dvp-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -12px 0 22px; font-size: 13px; color: var(--ink-muted); }
.dvp-legend span, .dvp-status li { display: inline-flex; align-items: flex-start; gap: 8px; }
.dvp-legend i, .dvp-status i { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; }
.st-demo { background: var(--ink); }
.st-val { background: var(--gold-deep); }
.st-vis { border: 1.5px dashed var(--ink-muted); }
.dvp { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .dvp { grid-template-columns: 1fr; } }
.dvp-card { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.dvp-word { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.dvp-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.dvp-card > p { font-size: 15px; color: var(--ink-muted); }
.dvp-status { display: grid; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--paper-line); }
.dvp-status li { font-size: 13.5px; color: var(--ink); line-height: 1.45; }

.dp-glance { margin-top: 8px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); display: grid; gap: 14px; }
.dp-glance dl { display: grid; gap: 10px; }
.dp-glance dl > div { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 12px; font-size: 14px; }
@media (max-width: 480px) { .dp-glance dl > div { grid-template-columns: 1fr; gap: 2px; } }
.dp-glance dt { color: var(--gold-bright); font-weight: 600; }
.dp-glance dd { color: var(--text-muted); }
.dp-glance .btn { justify-self: start; }
.dp-glance-short { margin-top: 4px; }
/* Long CTA labels wrap instead of widening the layout on phones */
@media (max-width: 640px) {
  .btn { white-space: normal; height: auto; min-height: var(--h); padding-top: 12px; padding-bottom: 12px; text-align: center; line-height: 1.3; }
  .hero-copy, .final-copy { min-width: 0; }
}

/* =========================================================================
   Stage C2 — Order-to-Cash: teal (functional accent), explorer, new sections
   Champagne gold remains the brand accent; teal marks interaction, data
   and verification states only.
   ========================================================================= */
:root {
  --teal: #3fb6a8;
  --teal-bright: #7fd8cc;
  --teal-deep: #136b62;
  --teal-soft: rgba(63, 182, 168, 0.12);
  --teal-line: rgba(63, 182, 168, 0.45);
  --amber: #e2b45c;
}

/* ---------- Hero: decision trail ---------- */
.trail { position: relative; max-width: 560px; justify-self: center; width: 100%; border-radius: 16px; background: linear-gradient(180deg, #121b31, #0d1428); box-shadow: var(--shadow-lg); overflow: hidden; }
.trail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.trail-head p { font-size: 13px; font-weight: 600; }
.trail-head span { font-size: 11px; color: var(--text-dim); }
.trail-list { display: grid; }
.trail-row { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line); font-size: 13px; transition: background-color .5s; }
.trail-row:last-child { border-bottom: 0; }
.trail-row .tn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 10.5px; color: var(--text-dim); }
.trail-row b { display: block; font-weight: 600; color: var(--text); font-size: 13px; }
.trail-row small { display: block; color: var(--text-dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trail-row.is-live { background: var(--teal-soft); }
.trail-row.is-live .tn { border-color: var(--teal); color: var(--teal-bright); }
.vchip { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.vchip-ok { color: var(--teal-bright); border-color: var(--teal-line); }
.vchip-review { color: var(--amber); border-color: rgba(226,180,92,.45); }
.vchip-opp { color: #120e06; background: var(--gold); }
.vchip-info { color: var(--text-muted); border-color: var(--line-strong); }
.trail-foot { padding: 10px 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text-dim); }
@media (max-width: 760px) { .trail-row:nth-child(n+6) { display: none; } }

/* ---------- Problem cards ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }
.pcard { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,0.02); display: grid; gap: 6px; align-content: start; }
.pcard .pk { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.pcard h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; }
.pcard p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- O2C Decision Explorer ---------- */
.xp { display: grid; gap: 18px; }
.xp-rail-wrap { position: relative; }
.xp-rail { position: relative; display: grid; grid-template-columns: repeat(9, minmax(0,1fr)); gap: 4px; padding: 6px 2px 4px; }
.xp-line { position: absolute; left: 5.5%; right: 5.5%; top: 26px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.xp-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); border-radius: 2px; transition: width .5s var(--ease); }
.xp-tab { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; background: none; border: 0; padding: 6px 2px; color: var(--text-muted); font-size: 12.5px; font-weight: 500; border-radius: 10px; }
.xp-tab:hover { color: var(--text); }
.xp-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-850); border: 1.5px solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--text-muted); transition: all .3s var(--ease); }
.xp-tab.is-past .xp-dot { border-color: var(--teal-line); color: var(--teal-bright); }
.xp-tab.is-active .xp-dot { background: var(--teal); border-color: var(--teal); color: #06221f; box-shadow: 0 0 0 6px var(--teal-soft); }
.xp-tab.is-active { color: var(--text); }
.xp-name { text-align: center; line-height: 1.2; }
.xp-flag { position: absolute; top: 4px; right: calc(50% - 26px); width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--navy-950); }
.xp-flag-demo { background: var(--gold); }
.xp-flag-scenario { background: var(--teal-bright); }
.xp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--text-dim); }
.xp-legend span { display: inline-flex; align-items: center; gap: 7px; }
.xp-legend i.xp-flag { position: static; display: inline-block; border: 0; }
@media (max-width: 900px) {
  .xp-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 2px; padding-bottom: 10px; scrollbar-width: thin; }
  .xp-tab { flex: 0 0 84px; scroll-snap-align: center; }
  .xp-line { left: 42px; right: auto; width: calc(84px * 8 + 16px); }
}

.xp-panel { border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)); padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.xp-panel.is-in { opacity: 1; transform: none; }
.xp-panel:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .xp-panel { transition: none; opacity: 1; transform: none; } }
.xp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px; }
.xp-step { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-bright); }
.xp-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; }
.xp-mat { font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-muted); }
.xp-mat-demo { color: #120e06; background: var(--gold); border-color: var(--gold); }
.xp-mat-scenario { color: var(--teal-bright); border-color: var(--teal-line); }
.xp-problem { font-size: 17px; color: var(--text-muted); max-width: 820px; line-height: 1.55; }
.xp-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 16px; }
@media (max-width: 900px) { .xp-grid { grid-template-columns: 1fr; } }
.xp-record { background: #f8f5ee; color: var(--ink); border-radius: 10px; padding: 20px 22px; display: grid; gap: 10px; align-content: start; box-shadow: 0 20px 40px -24px rgba(0,0,0,.7); }
.xp-rec-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.xp-record h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.xp-record ul { display: grid; gap: 6px; border-top: 1px solid var(--paper-line); padding-top: 10px; }
.xp-record li { font-size: 14px; color: var(--ink); padding-left: 14px; position: relative; }
.xp-record li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); }
.xp-q { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--ink); border-top: 1px solid var(--paper-line); padding-top: 10px; }
.xp-flow { display: grid; gap: 10px; counter-reset: none; }
.xp-flow li { position: relative; padding: 14px 16px 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.xp-flow li + li::before { content: ''; position: absolute; left: 28px; top: -11px; width: 1.5px; height: 10px; background: var(--line-strong); }
.xp-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.xp-flow p { font-size: 14.5px; color: var(--text-muted); margin-top: 4px; }
.xp-v { border-color: var(--teal-line) !important; background: var(--teal-soft) !important; }
.xp-v .xp-k { color: var(--teal-bright); }
.xp-p .xp-k { color: var(--text); }
.xp-d .xp-k { color: var(--gold-bright); }
.xp-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .xp-foot { grid-template-columns: 1fr; } }
.xp-foot h5 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.xp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.xp-chips span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--teal-line); color: var(--teal-bright); }
.xp-evidence { display: grid; gap: 5px; }
.xp-evidence li { font-size: 13.5px; color: var(--text-muted); padding-left: 16px; position: relative; }
.xp-evidence li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-size: 11px; top: 1px; }
.xp-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- Verify → Predict → Decide journey ---------- */
.journey3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; position: relative; }
@media (max-width: 900px) { .journey3 { grid-template-columns: 1fr; } }
.j3 { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; position: relative; }
.j3-step { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.j3-v .j3-step { color: var(--teal-deep); }
.j3-p .j3-step { color: var(--ink); }
.j3-d .j3-step { color: var(--gold-deep); }
.j3-v { border-top: 3px solid var(--teal-deep); }
.j3-p { border-top: 3px solid var(--ink); }
.j3-d { border-top: 3px solid var(--gold-deep); }
.j3 h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.j3 > p { font-size: 15px; color: var(--ink-muted); }
.j3 .dvp-status { margin-top: 4px; }
@media (min-width: 901px) { .j3 + .j3::before { content: '→'; position: absolute; left: -14px; top: 26px; width: 14px; text-align: center; color: var(--ink-muted); font-size: 16px; } }

/* ---------- Featured scenarios ---------- */
.scn-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
@media (max-width: 1080px) { .scn-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .scn-grid { grid-template-columns: 1fr; } }
.scn-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); transition: border-color .25s, transform .25s var(--ease); color: inherit; }
.scn-card:hover { border-color: var(--teal-line); transform: translateY(-2px); }
.scn-card .scn-letter { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; color: #06221f; background: var(--teal); }
.scn-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.scn-card p { font-size: 14px; color: var(--text-muted); }
.scn-card .scn-q { font-family: var(--font-serif); font-style: italic; font-size: 16.5px; color: var(--text); }
.scn-card .scn-go { font-size: 13.5px; font-weight: 600; color: var(--teal-bright); margin-top: 4px; }
.scn-status { justify-self: start; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-muted); }
.scn-status.is-live { color: #120e06; background: var(--gold); border-color: var(--gold); }

/* ---------- Collections teaser ---------- */
.teaser-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--gold-line); background: linear-gradient(120deg, rgba(201,169,107,0.10), rgba(201,169,107,0.02) 60%); }
@media (max-width: 900px) { .teaser-card { grid-template-columns: 1fr; } }
.teaser-card h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.teaser-card > div > p { color: var(--text-muted); margin-top: 10px; }
.teaser-nums { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
@media (max-width: 560px) { .teaser-nums { grid-template-columns: 1fr; } }
.teaser-nums > div { padding: 16px 18px; display: grid; gap: 2px; }
.teaser-nums > div + div { border-left: 1px solid var(--line-strong); }
@media (max-width: 560px) { .teaser-nums > div + div { border-left: 0; border-top: 1px solid var(--line-strong); } }
.teaser-nums dt { font-size: 12px; color: var(--text-muted); }
.teaser-nums dd { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.teaser-nums small { font-size: 11.5px; color: var(--text-dim); }
.teaser-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-dim); }

/* ---------- Scenario pages ---------- */
.scn-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.scn-pill { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-muted); }
.scn-pill.teal { color: var(--teal-bright); border-color: var(--teal-line); }
.evidence-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .evidence-pair { grid-template-columns: 1fr; } }
.doc { background: #f8f5ee; color: var(--ink); border-radius: 10px; padding: 20px 22px; display: grid; gap: 10px; align-content: start; box-shadow: 0 20px 40px -24px rgba(0,0,0,.7); }
.doc-k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.doc h3 { font-size: 17px; font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc td, .doc th { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.doc th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.doc td:last-child, .doc th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.doc .hl td { background: rgba(19,107,98,.10); font-weight: 600; }
.doc .doc-note { font-size: 12.5px; color: var(--ink-muted); }
.integrity { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--teal-line); background: var(--teal-soft); display: grid; gap: 8px; }
.integrity h3 { font-size: 15px; font-weight: 700; color: var(--teal-bright); letter-spacing: .02em; }
.integrity li { font-size: 14.5px; color: var(--text); padding-left: 18px; position: relative; }
.integrity li::before { content: '≠'; position: absolute; left: 0; color: var(--teal-bright); font-weight: 700; }
.prep-box { padding: 22px 24px; border-radius: var(--radius); border: 1px dashed var(--line-strong); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.prep-box p { color: var(--text-muted); font-size: 15px; max-width: 640px; }
.prep-box strong { color: var(--text); }
.xp-whatif { border-radius: 14px; border: 1px solid var(--gold-line); background: linear-gradient(120deg, rgba(201,169,107,0.10), rgba(201,169,107,0.02)); padding: 16px 18px; }
.xp-wi-k { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--gold-bright); margin-bottom: 8px; }
.xp-whatif ul { display: grid; gap: 6px; }
.xp-whatif a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.xp-whatif a:hover { border-color: var(--teal-line); background: var(--teal-soft); }
.xp-wi-q { font-size: 15px; color: var(--text); }
.xp-wi-r { font-size: 12px; font-weight: 600; white-space: nowrap; }
.xp-wi-try { color: var(--teal-bright); }
.xp-wi-scenario { color: var(--text-muted); }
.xp-wi-discuss { color: var(--text-dim); }

/* ---------- What-if identity ---------- */
.hero-question { font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; color: var(--gold-bright); max-width: 560px; }
.vchip-whatif { color: #06221f; background: var(--teal); }
.lbl { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; white-space: nowrap; vertical-align: 1px; margin-right: 6px; }
.lbl-assume { color: var(--gold-bright); border: 1px dashed var(--gold-line); }
.lbl-result { color: #06221f; background: var(--teal-bright); }
.lbl-future { color: var(--text-muted); border: 1px dashed var(--line-strong); }
.paper .lbl-result { background: var(--teal-deep); color: #fff; }
.lbl-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: -18px 0 32px; font-size: 13px; color: var(--text-muted); }
.lbl-legend > span { display: inline-flex; align-items: center; }

.whatif-section { background: radial-gradient(70% 50% at 50% 0%, rgba(63,182,168,0.08), transparent 70%), var(--navy-950); border-top: 1px solid var(--line); }
.whatif-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .whatif-grid { grid-template-columns: 1fr; } .whatif-live { order: -1; } }
.wq-title { font-size: 18px; font-weight: 600; }
.wq-sub { font-size: 14px; color: var(--text-muted); margin: 4px 0 14px; }
.wi-list { display: grid; gap: 8px; }
.wi-card { display: grid; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.wi-card:hover { border-color: var(--teal-line); background: var(--teal-soft); transform: translateX(2px); }
.wi-area { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.wi-q { font-size: 15px; color: var(--text); line-height: 1.4; }
.wi-route { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.wi-try { border-color: var(--teal-line); }
.wi-try .wi-route { color: var(--teal-bright); }
.wi-scenario .wi-route { color: var(--text-muted); }

.qw { position: sticky; top: 96px; border-radius: 20px; border: 1px solid var(--teal-line); background: linear-gradient(180deg, #10192e, #0b1222); box-shadow: var(--shadow-lg); padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 18px; }
@media (max-width: 1000px) { .qw { position: static; } }
.qw-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-bright); }
.qw-base { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.qw-base b { color: var(--text); font-weight: 600; }
.qw-levers { display: grid; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qw-lever { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 14px; align-items: center; border-radius: 10px; transition: background-color .4s; }
@media (max-width: 520px) { .qw-lever { grid-template-columns: 1fr; } }
.qw-lever.qw-flash { background: var(--teal-soft); }
.qw-lever.is-off .qw-pct { opacity: .4; }
.qw-pct { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.qw-pct input[type='range'] { --track-fill: var(--teal); }
.qw-pct .num input { width: 44px; }
.qw-tag { font-size: 12.5px; color: var(--text-dim); }
.qw-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qw-out { display: grid; gap: 14px; }
.qw-if { font-size: 15.5px; line-height: 1.5; color: var(--text-muted); }
.qw-if strong { color: var(--text); }
.qw-bridge .br-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 46px; font-size: 12.5px; }
.qw-results { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.qw-results > div { padding: 14px 16px; }
.qw-results > div + div { border-left: 1px solid var(--line-strong); }
.qw-results p:first-child { font-size: 12.5px; color: var(--text-muted); }
.qw-num { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--teal-bright); }
.qw-sub { font-size: 11.5px; color: var(--text-dim); }
.qw-out .btn { justify-self: start; }

/* ---------- Decide comparison ---------- */
.table-paper { border-color: var(--paper-line); background: #fff; }
.decide-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; color: var(--ink); }
.decide-table th, .decide-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.decide-table thead th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; background: #faf8f3; }
.decide-table thead small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; }
.decide-table tbody th { font-weight: 600; width: 22%; }
.decide-table tbody th b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; margin-right: 6px; }
.decide-table td[data-k] { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--teal-deep); white-space: nowrap; }
.decide-table tr:last-child th, .decide-table tr:last-child td { border-bottom: 0; }
.decide-note { margin-top: 12px; font-size: 13px; color: var(--ink-muted); }
.decide-reco { margin-top: 22px; padding: 22px 24px; border-radius: var(--radius); border-left: 4px solid var(--gold-deep); background: #fff; display: grid; gap: 8px; }
.dr-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.decide-reco p { color: var(--ink); font-size: 16px; line-height: 1.55; }
.decide-reco .dr-small { font-size: 13.5px; color: var(--ink-muted); }

/* Method section on dark background */
.section-dark .dvp-legend { color: var(--text-muted); }
.section-dark .dvp-legend .st-demo { background: var(--text); }
.section-dark .dvp-legend .st-vis { border-color: var(--text-muted); }
.lights { display: grid; gap: 6px; margin-top: 6px; }
.wi-list-wide { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .wi-list-wide { grid-template-columns: 1fr; } }
/* The horizontally scrolling stage rail must not widen the explorer (mobile overflow fix) */
.xp { grid-template-columns: minmax(0, 1fr); }
.xp > * { min-width: 0; }
.xp-panel > * { min-width: 0; }
@media (max-width: 560px) { .xp-wi-r { white-space: normal; } .xp-mat { white-space: normal; } }
@media (min-width: 1100px) { .hero .display { font-size: clamp(48px, 3.9vw, 60px); } }

/* =========================================================================
   Stage C3 — scenario what-ifs (shared pieces + Revenue Leakage)
   Teal = underbilling / potential revenue; amber = overbilling / exposure;
   gold dashed = needs a human decision.
   ========================================================================= */
.lbl-evidence { color: var(--teal-bright); border: 1px solid var(--teal-line); background: var(--teal-soft); }
.paper .lbl-evidence { color: var(--teal-deep); border-color: rgba(19,107,98,.4); background: rgba(19,107,98,.08); }
.btn-teal { background: var(--teal); color: #06221f; border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-bright); }

/* shared slider + number field */
.sx-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 6px 14px; align-items: center; }
.sx-label { font-size: 14px; color: var(--text); line-height: 1.35; }
.sx-label small { display: block; font-size: 12px; color: var(--text-dim); }
.sx-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sx-input input[type='range'] { --track-fill: var(--teal); }
.sx-input .num input { width: 64px; }
@media (max-width: 520px) { .sx-field { grid-template-columns: 1fr; } }

/* hero jump links */
.rl-jump { display: grid; gap: 6px; margin-top: 26px; max-width: 720px; }
.rl-jump a { display: block; position: relative; padding-left: 34px !important; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); color: var(--text); font-size: 15px; transition: border-color .2s, background-color .2s; }
.rl-jump a:hover { border-color: var(--teal-line); background: var(--teal-soft); }

/* 1 · verify */
.rl-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.rl-hint { font-size: 13px; color: var(--text-muted); }
.rl-verify { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .rl-verify { grid-template-columns: minmax(0, 1fr); } }
.rl-contract td:first-child { padding-right: 12px; }
.rl-ledger { border-radius: 14px; border: 1px solid var(--line-strong); background: var(--navy-900); padding: 14px; display: grid; gap: 6px; min-width: 0; }
.rl-ledger-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 0 4px 6px; }
.rl-rows { display: grid; gap: 4px; }
.rl-row { width: 100%; display: grid; grid-template-columns: 1.05fr 1.15fr 1fr 1fr 0.9fr 1.05fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: rgba(255,255,255,0.02); color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s; }
.rl-row:hover { border-color: var(--line-strong); }
.rl-row.is-sel { border-color: var(--teal-line); background: var(--teal-soft); }
.rl-row-head { background: none; cursor: default; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); padding-block: 4px; }
.rl-row .r { text-align: right; }
.rl-id { font-weight: 600; }
.rl-id small { display: block; font-weight: 400; font-size: 11.5px; color: var(--text-dim); }
.rl-item { color: var(--text-muted); }
.rl-row.is-under .rl-diff { color: var(--teal-bright); }
.rl-row.is-over .rl-diff { color: var(--amber); }
.rl-row.is-review .rl-diff, .rl-row.is-exc .rl-diff { color: var(--text-muted); }
.rl-chip { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-strong); color: var(--text-muted); }
.is-ok .rl-chip, .rl-chip.is-ok { color: var(--text); }
.is-ok .rl-chip::before, .rl-chip.is-ok::before { content: '✓ '; color: var(--teal-bright); }
.is-under .rl-chip, .rl-chip.is-under { background: var(--teal); border-color: var(--teal); color: #06221f; }
.is-over .rl-chip, .rl-chip.is-over { background: var(--amber); border-color: var(--amber); color: #2a1c02; }
.is-review .rl-chip, .rl-chip.is-review { border: 1px dashed var(--gold); color: var(--gold-bright); }
.is-exc .rl-chip, .rl-chip.is-exc { border-style: dashed; color: var(--text-muted); }
@media (max-width: 720px) {
  .rl-row-head { display: none; }
  .rl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .rl-row .rl-item { grid-column: 1 / -1; order: 2; font-size: 12.5px; }
  .rl-row > span:last-child { grid-column: 2; grid-row: 1; justify-self: end; }
  .rl-row .r { grid-column: 1 / -1; display: flex; justify-content: space-between; order: 3; font-size: 12.5px; color: var(--text-muted); }
  .rl-row .r::before { content: attr(data-label); color: var(--text-dim); }
  .rl-row .rl-diff { font-weight: 600; }
}

.rl-detail { margin-top: 16px; border-radius: 16px; border: 1px solid var(--teal-line); background: linear-gradient(180deg, #10192e, #0b1222); padding: clamp(16px, 2.2vw, 24px); display: grid; gap: 14px; }
.rl-detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 10px; }
.rl-detail-head h3 { font-size: 18px; font-weight: 600; margin-top: 4px; }
.rl-detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .rl-detail-grid { grid-template-columns: minmax(0, 1fr); } }
.rl-checks { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rl-checks th, .rl-checks td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.rl-checks th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.rl-checks td:not(:first-child), .rl-checks th:not(:first-child) { text-align: right; }
.rl-checks .hl td { background: rgba(226,180,92,.08); color: var(--text); font-weight: 600; }
.rl-checks tfoot td { font-weight: 700; border-bottom: 0; color: var(--text); }
.rl-ok { color: var(--teal-bright); font-weight: 600; }
.rl-explain { display: grid; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.rl-explain b { color: var(--text); }
.rl-cause { font-size: 13.5px; }
.rl-cause span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.rl-exc { border: 1px dashed var(--gold-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; }
.rl-quote { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--text); line-height: 1.35; }
.rl-decide { display: flex; flex-wrap: wrap; gap: 6px; }

.rl-summary { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 860px) { .rl-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rl-tile { border-radius: 12px; border: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 2px; background: rgba(255,255,255,0.02); }
.rl-tile p { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.rl-tile b { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rl-tile small { font-size: 12px; color: var(--text-muted); }
.rl-tile.is-under { border-color: var(--teal-line); } .rl-tile.is-under b { color: var(--teal-bright); }
.rl-tile.is-over { border-color: rgba(226,180,92,.45); } .rl-tile.is-over b { color: var(--amber); }
.rl-tile.is-review { border-style: dashed; border-color: var(--gold-line); } .rl-tile.is-review b { color: var(--gold-bright); }
.rl-sum-note { grid-column: 1 / -1; font-size: 13px; color: var(--text-muted); }

.rl-causes { margin-top: 16px; border-radius: 14px; border: 1px solid var(--gold-line); background: linear-gradient(120deg, rgba(201,169,107,0.10), rgba(201,169,107,0.02)); padding: 16px 18px; display: grid; gap: 10px; scroll-margin-top: 90px; }
.rl-causes-head .rl-k { color: var(--gold-bright); }
.rl-causes ul { display: grid; gap: 4px; }
.rl-causes li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 16px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.03); font-size: 14px; }
.rl-causes label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.rl-causes input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.rl-cause-n { font-size: 12.5px; color: var(--text-dim); }
.rl-cause-v em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.rl-cause-v .u { color: var(--teal-bright); } .rl-cause-v .o { color: var(--amber); }
.rl-cause-out { font-size: 15px; color: var(--text-muted); }
.rl-cause-out strong { color: var(--text); }
@media (max-width: 620px) { .rl-causes li { grid-template-columns: minmax(0, 1fr) auto; } .rl-cause-n { grid-column: 1; padding-left: 28px; } }

/* 2 · what-if */
.rl-wi { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .rl-wi { grid-template-columns: minmax(0, 1fr); } }
.rl-controls { border-radius: 20px; border: 1px solid var(--line-strong); background: var(--navy-900); padding: clamp(16px, 2.2vw, 24px); display: grid; gap: 16px; }
.rl-group { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.rl-group + .rl-group { border-top: 1px solid var(--line); padding-top: 16px; }
.rl-group legend { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 12px; padding: 0; }
.rl-sample-note { font-size: 13px; color: var(--text-muted); }
.rl-sample-note:empty { display: none; }
.rl-out { position: sticky; top: 96px; border-radius: 20px; border: 1px solid var(--teal-line); background: linear-gradient(180deg, #10192e, #0b1222); box-shadow: var(--shadow-lg); padding: clamp(16px, 2.2vw, 24px); display: grid; gap: 16px; }
@media (max-width: 1000px) { .rl-out { position: static; } }
.rl-block { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.rl-block h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.rl-block h3 em { font-style: normal; color: var(--gold-bright); }
.rl-funnel { display: grid; gap: 7px; }
.rl-f-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 13px; }
.rl-f-l small { display: block; font-size: 11.5px; color: var(--text-dim); }
.rl-f-t { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.06); overflow: hidden; }
.rl-f-t span { display: block; height: 100%; border-radius: 6px; transition: width .35s var(--ease); }
.rl-f-row.u .rl-f-t span { background: rgba(63,182,168,.45); }
.rl-f-row.u2 .rl-f-t span { background: rgba(63,182,168,.7); }
.rl-f-row.u3 .rl-f-t span { background: var(--teal-bright); }
.rl-f-row.o { margin-top: 6px; }
.rl-f-row.o .rl-f-t span { background: rgba(226,180,92,.45); }
.rl-f-row.o2 .rl-f-t span { background: var(--amber); }
.rl-f-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rl-f-row.u3 .rl-f-v { color: var(--teal-bright); }
.rl-f-row.o2 .rl-f-v { color: var(--amber); }
@media (max-width: 520px) { .rl-f-row { grid-template-columns: minmax(0, 1fr) 84px; } .rl-f-t { grid-column: 1 / -1; grid-row: 2; } }
.rl-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.rl-pair > div { padding: 14px 16px; display: grid; gap: 2px; }
.rl-pair > div + div { border-left: 1px solid var(--line-strong); }
@media (max-width: 460px) { .rl-pair { grid-template-columns: 1fr; } .rl-pair > div + div { border-left: 0; border-top: 1px solid var(--line-strong); } }
.rl-big p { font-size: 12.5px; color: var(--text-muted); }
.rl-big b { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rl-big small { font-size: 11.5px; color: var(--text-dim); }
.rl-big.is-teal b { color: var(--teal-bright); } .rl-big.is-amber b { color: var(--amber); }
.rl-fwd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .rl-fwd { grid-template-columns: 1fr; } }
.rl-fwd > div { border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); padding: 12px; display: grid; gap: 2px; }
.rl-fwd p { font-size: 12.5px; color: var(--text-muted); }
.rl-fwd b { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rl-fwd b.t { color: var(--teal-bright); } .rl-fwd b.a { color: var(--amber); }
.rl-fwd small { font-size: 11.5px; color: var(--text-dim); }
.rl-method { border-top: 1px solid var(--line); padding-top: 12px; font-size: 13.5px; color: var(--text-muted); }
.rl-method summary { cursor: pointer; font-weight: 600; color: var(--text); }
.rl-method p { margin-top: 10px; }
.rl-formulas { display: grid; gap: 6px; margin-top: 10px; counter-reset: f; }
.rl-formulas li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
.rl-formulas span { color: var(--text-dim); }
.rl-formulas code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 520px) { .rl-formulas li { grid-template-columns: 1fr; gap: 0; } }

/* 3 · decide */
.rl-decide-table tbody th small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; }
.rl-decide-table td[data-k='credit'] { color: #8a5a07; }
.rl-jump a::before { content: '→'; position: absolute; left: 14px; color: var(--gold-bright); }
.xp-wi-live { color: var(--teal-bright); }
.wi-live { border-color: var(--teal-line); }
.wi-live .wi-route { color: var(--teal-bright); }
.sx-input .num { width: 118px; justify-content: flex-end; }
.sx-input .num input { width: 100%; }
/* C3 components: small secondary text meets 4.5:1 on every dark panel */
:root { --text-dim-aa: #8a93a7; }
.rl-k, .rl-id small, .rl-row-head, .rl-checks th, .rl-cause span, .rl-cause-n, .rl-tile p, .rl-f-l small, .rl-big small, .rl-fwd small, .rl-formulas span, .sx-label small, .rl-detail .qw-tag, .rl-out .qw-tag, .rl-controls .qw-tag { color: var(--text-dim-aa); }
@media (max-width: 720px) { .rl-row .r:not(.rl-diff) { display: none; } .rl-detail { scroll-margin-top: 84px; } }
@media (max-width: 520px) { .rl-checks { font-size: 12.5px; } .rl-checks th, .rl-checks td { padding: 7px 4px; } .rl-checks th { font-size: 10px; letter-spacing: .03em; } .rl-detail { padding: 14px; } }

/* ---------- C3 · Cash application ---------- */
.ca { display: grid; gap: 14px; }
.ca-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ca-case { text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, background-color .2s; }
.ca-case:hover { border-color: var(--teal-line); }
.ca-case.is-active { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.ca-case-k { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim-aa); }
.ca-case b { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ca-case small { font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 640px) { .ca-cases { grid-template-columns: minmax(0, 1fr); } .ca-case { grid-template-columns: minmax(0, 1fr) auto; } .ca-case-k { grid-column: 1 / -1; } .ca-case small { text-align: right; align-self: center; } }

.ca-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .ca-grid { grid-template-columns: minmax(0, 1fr); } }
.ca-evidence { display: grid; gap: 10px; }
.ca-bank { border-radius: 12px; border: 1px solid var(--line-strong); background: var(--navy-900); padding: 12px 14px; display: grid; gap: 6px; }
.ca-bank-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim-aa); }
.ca-bank-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ca-bank-row b { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ca-bank-row span { font-size: 13px; color: var(--text-muted); }
.ca-bank code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--text); background: rgba(0,0,0,.25); padding: 6px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.ca-bank mark { background: var(--teal-soft); color: var(--teal-bright); border-radius: 3px; padding: 0 2px; }
.ca-remit td small { display: block; font-size: 12px; color: var(--ink-muted); font-weight: 500; }
.ca-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.ca-evidence > .ca-date .ca-link, .ca-noremit .ca-link { color: var(--teal-bright); }
.ca-noremit { border-radius: 12px; border: 1px dashed var(--gold-line); padding: 12px 14px; display: grid; gap: 8px; justify-items: start; }
.ca-noremit p:not(.rl-k) { color: var(--text-muted); font-size: 14px; }
.ca-mini { border-radius: 12px; border: 1px solid var(--line); padding: 10px 14px; display: grid; gap: 4px; font-size: 13.5px; color: var(--text-muted); }
.ca-mini small { color: var(--text-dim-aa); }
.ca-mini b { color: var(--text); }
.ca-date { display: grid; gap: 6px; font-size: 13.5px; color: var(--text-muted); }
.ca-date > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ca-date input { height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(0,0,0,0.25); color: var(--text); font: inherit; color-scheme: dark; }
.ca-date input:focus { border-color: var(--teal); outline: none; }

.ca-alloc { border-radius: 16px; border: 1px solid var(--line-strong); background: var(--navy-900); padding: 14px; display: grid; gap: 10px; min-width: 0; }
.ca-alloc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.ca-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.ca-rule-note { font-size: 13px; color: var(--text-muted); }
.ca-rule-note:empty { display: none; }
.ca-items { display: grid; gap: 4px; }
.ca-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 100px 140px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.02); border: 1px solid transparent; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ca-row.is-on { border-color: var(--teal-line); background: var(--teal-soft); }
.ca-row-head { background: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim-aa); padding-block: 2px; }
.ca-row .r { text-align: right; }
.ca-row input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--teal); }
.ca-inv { display: grid; gap: 1px; cursor: pointer; }
.ca-inv small { font-size: 11.5px; color: var(--text-dim-aa); }
.ca-named { font-style: normal; font-size: 11px; font-weight: 600; color: var(--teal-bright); }
.ca-row .num { width: 100%; justify-content: flex-end; }
.ca-row .num input { width: 100%; }
@media (max-width: 560px) {
  .ca-row-head { display: none; }
  .ca-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .ca-row > .r:last-child { grid-column: 2 / -1; }
  .ca-row .num { width: 150px; margin-left: auto; }
}
.ca-totals { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; padding: 8px 10px 2px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-muted); }
.ca-totals b { color: var(--text); font-variant-numeric: tabular-nums; margin-left: 4px; }
.ca-totals .is-diff b { color: var(--amber); }

.ca-result { border-radius: 16px; border: 1px solid var(--teal-line); background: linear-gradient(180deg, #10192e, #0b1222); padding: clamp(16px, 2.2vw, 22px); display: grid; gap: 14px; }
.ca-outcome { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.ca-outcome p { flex: 1 1 320px; color: var(--text-muted); font-size: 15px; }
.ca-badge { font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
.ca-outcome.is-ok .ca-badge { background: var(--teal); border-color: var(--teal); color: #06221f; }
.ca-outcome.is-review .ca-badge { border: 1px dashed var(--gold); color: var(--gold-bright); }
.ca-outcome.is-insuff .ca-badge { background: var(--amber); border-color: var(--amber); color: #2a1c02; }
.ca-res-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .ca-res-grid { grid-template-columns: minmax(0, 1fr); } }
.ca-checks { display: grid; gap: 6px; }
.ca-checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.03); }
.ca-checks b { font-size: 14px; font-weight: 600; }
.ca-checks p { font-size: 13.5px; color: var(--text-muted); }
.ca-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--text-muted); }
.ca-checks .is-pass .ca-ic { background: var(--teal); border-color: var(--teal); color: #06221f; }
.ca-checks .is-fail .ca-ic { border-color: var(--gold); color: var(--gold-bright); }
.ca-checks .is-warn .ca-ic { border-style: dashed; border-color: var(--gold-line); color: var(--gold-bright); }
.ca-checks .is-missing .ca-ic { background: var(--amber); border-color: var(--amber); color: #2a1c02; }
.ca-effects { display: grid; gap: 6px; align-content: start; font-size: 14px; color: var(--text-muted); }
.ca-effects li { padding-left: 16px; position: relative; }
.ca-effects li::before { content: '→'; position: absolute; left: 0; color: var(--gold-bright); }
.ca-pcol { white-space: nowrap; }
.ca-pchip { display: inline-block; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin: 0 4px 4px 0; border: 1px solid var(--paper-line); color: var(--ink-muted); }
.ca-pchip.ok { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.ca-pchip.weak { background: #f6e3bd; border-color: #d9b46a; color: #5a3d05; }
.ca-decide-table td[data-k='weak'] { color: #8a5a07; }
.ca-decide-table td[data-k='held'] { color: var(--ink); }
.ca-mini.ca-date label { color: var(--text-muted); }
.ca-jump { display: none; }
.ca-result { scroll-margin-top: 84px; }
@media (max-width: 1000px) {
  .ca-totals { position: sticky; bottom: 0; z-index: 2; margin: 0 -14px -14px; padding: 10px 14px; border-radius: 0 0 16px 16px; background: rgba(10,16,32,.96); backdrop-filter: blur(6px); justify-content: space-between; }
  .ca-jump { display: inline-flex; flex-basis: 100%; justify-content: center; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
  .ca-jump.is-ok { background: var(--teal); border-color: var(--teal); color: #06221f; }
  .ca-jump.is-review { border: 1px dashed var(--gold); color: var(--gold-bright); }
  .ca-jump.is-insuff { background: var(--amber); border-color: var(--amber); color: #2a1c02; }
}

/* =========================================================================
   C3 — BIX Decision Intelligence Pipeline
   ========================================================================= */
.pipeline-section { background: radial-gradient(60% 45% at 50% 0%, rgba(201,169,107,0.08), transparent 70%), var(--navy-950); border-top: 1px solid var(--line); }
.pl { display: grid; gap: 18px; }
.pl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.pl-ex { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); }
.pl-ex-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim-aa); padding: 0 8px 0 10px; }
.pl-ex-b { border: 0; background: none; color: var(--text-muted); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s; }
.pl-ex-b:hover { color: var(--text); }
.pl-ex-b.is-on { background: var(--teal); color: #06221f; }
.pl-decision { font-size: 15px; color: var(--text-muted); }
.pl-decision em { font-family: var(--font-serif); font-size: 20px; color: var(--gold-bright); }

.pl-flow { position: relative; padding-bottom: 8px; }
.pl-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.pl-step { width: 100%; height: 100%; text-align: left; display: grid; align-content: start; gap: 8px; padding: 14px 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--navy-900); color: var(--text); font: inherit; cursor: pointer; transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.pl-step:hover { border-color: var(--teal-line); transform: translateY(-2px); }
.pl-step.is-active { border-color: var(--teal); background: linear-gradient(180deg, rgba(63,182,168,.16), rgba(63,182,168,.04)); box-shadow: 0 18px 40px -24px rgba(63,182,168,.6); }
.pl-step.is-human { border-style: dashed; border-color: var(--gold-line); }
.pl-step.is-human.is-active { border-color: var(--gold); background: linear-gradient(180deg, rgba(201,169,107,.16), rgba(201,169,107,.04)); box-shadow: 0 18px 40px -24px rgba(201,169,107,.6); }
.pl-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1px solid var(--line-strong); background: var(--navy-950); color: var(--text-muted); transition: all .25s; }
.pl-step.is-past .pl-n { border-color: var(--teal-line); color: var(--teal-bright); }
.pl-step.is-active .pl-n { background: var(--teal); border-color: var(--teal); color: #06221f; }
.pl-step.is-human.is-active .pl-n { background: var(--gold); border-color: var(--gold); color: #120e06; }
.pl-t { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.pl-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-dim-aa); line-height: 1.3; }
.pl-m span { margin-left: 2px; }
.pl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pl-dot.k-demo { background: var(--teal-bright); }
.pl-dot.k-validation { background: var(--gold-bright); }
.pl-dot.k-future { background: transparent; border: 1px solid var(--text-muted); }
.pl-dot.k-human { background: transparent; border: 1px dashed var(--gold); }

.pl-loop { display: block; margin-top: 2px; overflow: visible; }
.pl-loop-path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .7; }
.pl-arrow { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pl-flow.is-looping .pl-loop-path, .pl-flow.is-end .pl-loop-path { opacity: 1; stroke: var(--gold-bright); }
@media (prefers-reduced-motion: no-preference) { .pl-flow.is-looping .pl-loop-path { animation: pl-dash 1.2s linear infinite; } }
@keyframes pl-dash { to { stroke-dashoffset: -20; } }
.pl-loop-label { text-align: center; font-size: 13px; color: var(--gold-bright); margin-top: 2px; }
.pl-loop-label b { color: var(--text); font-weight: 600; }

.pl-panel { border-radius: 18px; border: 1px solid var(--teal-line); background: linear-gradient(180deg, #10192e, #0b1222); padding: clamp(16px, 2.4vw, 26px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); outline: none; }
.pl-p-k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-bright); }
.pl-p-main { display: grid; gap: 10px; align-content: start; }
.pl-p-main h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.pl-what { font-size: 16px; line-height: 1.55; color: var(--text-muted); }
.pl-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl-dl div { border-radius: 10px; border: 1px solid var(--line); padding: 10px 12px; }
.pl-dl dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim-aa); }
.pl-dl dd { margin: 2px 0 0; font-size: 14px; color: var(--text); }
.pl-mat { display: grid; gap: 6px; }
.pl-mat li { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
.pl-chip { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; margin-right: 8px; vertical-align: 1px; white-space: nowrap; }
.pl-chip.k-demo { color: #06221f; background: var(--teal-bright); }
.pl-chip.k-validation { color: var(--gold-bright); border: 1px solid var(--gold-line); }
.pl-chip.k-future { color: var(--text-muted); border: 1px dashed var(--line-strong); }
.pl-chip.k-human { color: var(--gold-bright); border: 1px dashed var(--gold); }
.pl-card { background: #f8f5ee; color: var(--ink); border-radius: 14px; padding: 18px 20px; display: grid; gap: 8px; align-content: start; box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); }
.pl-card.is-human { background: #fbf6ea; box-shadow: inset 0 0 0 1.5px var(--gold), 0 24px 50px -30px rgba(0,0,0,.8); }
.pl-card-k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.pl-card h4 { font-size: 19px; font-weight: 600; }
.pl-card p { font-size: 15px; line-height: 1.55; color: #2b3242; }
.pl-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 4px; }
.pl-figs div { border-radius: 10px; background: #fff; border: 1px solid var(--paper-line); padding: 10px 12px; display: grid; }
.pl-figs b { font-size: 20px; font-weight: 600; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.pl-figs span { font-size: 12.5px; color: var(--ink-muted); }
.pl-note { font-size: 13px !important; color: var(--ink-muted) !important; font-style: italic; }
.pl-link { justify-self: start; margin-top: 4px; font-weight: 600; font-size: 14.5px; color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.pl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--text-muted); }
.pl-legend li { display: inline-flex; align-items: center; gap: 7px; }
.pl-controls { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 1100px) { .pl-t { font-size: 14px; } .pl-step { padding: 12px 10px; } }
@media (max-width: 820px) {
  .pl-track { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pl-step { grid-template-columns: 30px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 2px; }
  .pl-step .pl-n { grid-row: span 2; }
  .pl-step:hover { transform: none; }
  .pl-li { position: relative; }
  .pl-li:not(:last-child)::after { content: ''; position: absolute; left: 26px; bottom: -9px; width: 2px; height: 10px; background: var(--line-strong); }
  .pl-li > .pl-panel { margin-top: 8px; grid-template-columns: minmax(0, 1fr); }
  .pl-loop { display: none; }
  .pl-loop-label { text-align: left; padding: 10px 14px; margin-top: 8px; border-radius: 12px; border: 1px dashed var(--gold-line); }
  .pl-dl { grid-template-columns: 1fr; }
  .pl-foot { flex-direction: column; align-items: stretch; }
  .pl-controls { justify-content: space-between; }
  .pl-ex { border-radius: 16px; }
  .pl-ex-k { flex-basis: 100%; padding: 4px 10px 2px; }
}

/* compact indicator on scenario pages */
.pl-strip { margin-top: 28px; display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); max-width: 860px; }
.pl-strip ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pl-strip li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-dim-aa); padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; }
.pl-strip .pl-n { width: 22px; height: 22px; font-size: 11px; flex: none; }
.pl-strip li.is-here { color: var(--text); border-color: var(--teal-line); background: var(--teal-soft); }
.pl-strip li.is-here .pl-n { background: var(--teal); border-color: var(--teal); color: #06221f; }
.pl-strip li.is-prep { color: var(--text-muted); border: 1px dashed var(--line-strong); }
.pl-strip li.is-human { color: var(--gold-bright); border: 1px dashed var(--gold-line); }
.pl-strip p { font-size: 13.5px; color: var(--text-muted); }
.pl-strip p b { color: var(--text); font-weight: 600; }
.pl-strip a { color: var(--gold-bright); font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) { .pl-strip ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-disclaimer { margin-top: 16px; text-align: center; }
.pl-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .pl-details { grid-template-columns: minmax(0, 1fr); } }
.pl-detail { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.pl-detail.is-human { border: 1px dashed var(--gold-line); }
.pl-detail h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.pl-detail p { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
.pl-detail-who { margin: 8px 0 10px; font-size: 13.5px !important; }
.pl-detail-who b { color: var(--text); font-weight: 600; }
.pl-li { position: relative; }
@media (min-width: 821px) {
  .pl-li:not(:last-child)::after { content: ''; position: absolute; z-index: 2; right: -9px; top: 30px; width: 8px; height: 8px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); opacity: .8; }
}
.pl-card { align-self: start; }
@media (max-width: 820px) { .pl-step { height: auto; } .pl-li { display: grid; } }
.pl-step { scroll-margin-top: 84px; }

/* Revenue leakage: one-time vs every year (CFO clarity) */
.rl-timeline { display: grid; grid-template-columns: 1.3fr auto 1fr 1fr 1.1fr; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.rl-timeline > span { padding: 6px 8px; border-radius: 8px; text-align: center; white-space: nowrap; }
.rl-tl-once { background: rgba(201,169,107,.16); color: var(--gold-bright); border: 1px solid var(--gold-line); }
.rl-tl-fix { color: var(--text); padding: 4px 10px !important; border-radius: 999px !important; border: 1px solid var(--line-strong); }
.rl-tl-year { background: var(--teal-soft); color: var(--teal-bright); border: 1px solid var(--teal-line); }
.rl-block h3 { display: flex; align-items: center; gap: 10px; }
.rl-kind { font-size: 11px; letter-spacing: .08em; padding: 3px 9px; border-radius: 6px; }
.rl-once { border-top: 0; padding: 14px; border-radius: 14px; border: 1px solid var(--gold-line); background: rgba(201,169,107,.05); }
.rl-once .rl-kind { background: var(--gold); color: #120e06; }
.rl-yearly { border-top: 0; padding: 14px; border-radius: 14px; border: 1px solid var(--teal-line); background: rgba(63,182,168,.05); }
.rl-yearly .rl-kind { background: var(--teal); color: #06221f; }
.rl-noadd { font-size: 14px; color: var(--text-muted); padding: 10px 12px 10px 38px; position: relative; border-radius: 10px; border: 1px dashed var(--line-strong); }
.rl-noadd::before { content: '≠'; position: absolute; left: 14px; top: 8px; font-size: 18px; font-weight: 700; color: var(--gold-bright); }
.rl-noadd b { color: var(--text); }
.rl-overnote { font-size: 13px; color: var(--text-muted); }
.rl-assume-note { font-size: 13px; line-height: 1.5; color: var(--text-muted); padding: 10px 12px; border-radius: 10px; background: rgba(201,169,107,.07); border: 1px dashed var(--gold-line); }
.rl-assume-note b { color: var(--gold-bright); }
.rl-common { margin-bottom: 12px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--paper-line); color: var(--ink); font-size: 15px; line-height: 1.5; }
.rl-common b { font-weight: 600; }
@media (max-width: 520px) { .rl-timeline { grid-template-columns: 1.4fr auto 1fr 1fr; } .rl-timeline > span:last-child { display: none; } }
@media (max-width: 820px) {
  .pl-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pl-controls [data-pl='walk'] { grid-column: 1 / -1; order: -1; justify-content: center; }
  .pl-controls .btn { justify-content: center; }
}

/* ---------- C3 · Credit & order release ---------- */
.cr-policy { display: grid; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--ink-muted); }
.cr-policy b { color: var(--gold-deep); margin-right: 4px; }
.cr-verify-result { margin-top: 16px; }
.cr-wi { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .cr-wi { grid-template-columns: minmax(0, 1fr); } }
.cr-controls .sx-field { grid-template-columns: minmax(0, 1fr); }
.cr-out { display: grid; gap: 14px; }
.cr-alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .cr-alts { grid-template-columns: minmax(0, 1fr); } }
.cr-alt { border-radius: 16px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #10192e, #0b1222); padding: 16px; display: grid; gap: 10px; align-content: start; }
.cr-alt h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cr-alt h3 b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--text); color: var(--navy-950); font-size: 12.5px; }
.cr-grp { border-radius: 12px; padding: 10px 12px; display: grid; gap: 4px; }
.cr-grp.t { background: rgba(63,182,168,.06); border: 1px solid rgba(63,182,168,.25); }
.cr-grp.a { background: rgba(226,180,92,.06); border: 1px solid rgba(226,180,92,.28); }
.cr-grp-k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cr-grp.t .cr-grp-k { color: var(--teal-bright); } .cr-grp.a .cr-grp-k { color: var(--amber); }
.cr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.cr-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-grp.t .cr-row:first-of-type b { color: var(--teal-bright); }
.cr-row small { display: block; font-size: 11px; color: var(--text-dim-aa); }
.cr-pw b { font-weight: 500; font-style: italic; }
.cr-bar { position: relative; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.06); margin: 6px 0 2px; }
.cr-bar-cur { position: absolute; left: 0; top: 0; height: 100%; border-radius: 6px 0 0 6px; background: rgba(226,232,245,.35); }
.cr-bar-add { position: absolute; top: 0; height: 100%; background: var(--amber); transition: width .3s var(--ease); }
.cr-bar-lim, .cr-bar-auth { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); }
.cr-bar-auth { background: none; border-left: 2px dashed var(--gold-bright); }
.cr-bar-note { font-size: 12.5px; color: var(--text-muted); }
.cr-bar-note b { color: var(--amber); font-weight: 600; }
.cr-appr { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); }
.cr-appr span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim-aa); }
.cr-appr.is-manager { border-color: var(--gold-line); color: var(--gold-bright); }
.cr-appr.is-committee { border-style: dashed; border-color: var(--gold); color: var(--gold-bright); }
.cr-concepts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .cr-concepts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cr-concepts { grid-template-columns: minmax(0, 1fr); } }
.cr-concepts div { border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); }
.cr-concepts .t { border-color: rgba(63,182,168,.3); } .cr-concepts .a { border-color: rgba(226,180,92,.35); }
.cr-concepts dt { font-size: 13px; font-weight: 700; }
.cr-concepts .t dt { color: var(--teal-bright); } .cr-concepts .a dt { color: var(--amber); }
.cr-concepts dd { margin: 3px 0 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.cr-legend-bar { font-size: 12px; color: var(--text-muted); }
.cr-td-fig { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.cr-decide-table td[data-k='approval'] { font-weight: 600; }
.cr-legend-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--text-muted); }
.cr-legend-bar i { display: inline-block; width: 14px; height: 8px; border-radius: 3px; margin-left: 6px; }
.cr-legend-bar i:first-child { margin-left: 0; }
.cr-legend-bar .k-cur { background: rgba(226,232,245,.35); }
.cr-legend-bar .k-add { background: var(--amber); }
.cr-legend-bar .k-lim { width: 2px; height: 14px; background: var(--text); border-radius: 0; }
.cr-legend-bar .k-auth { width: 0; height: 14px; border-left: 2px dashed var(--gold-bright); border-radius: 0; }

/* Homepage (shortened): live what-if intro and compact trust statement */
.whatif-intro { display: grid; gap: 18px; align-content: start; padding-top: 8px; }
.whatif-intro .h2 { margin: 0; }
.wi-legend { display: grid; gap: 10px; font-size: 14px; color: var(--text-muted); }
.wi-legend li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.wi-more { display: grid; gap: 8px; justify-items: start; }
@media (max-width: 1000px) { .whatif-grid .whatif-live { order: 0; } }
.trust-mini { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(255,255,255,0.02); display: grid; gap: 10px; }
.trust-mini-k { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); }
.trust-mini ul { display: grid; gap: 8px; }
.trust-mini li { font-size: 14px; line-height: 1.5; color: var(--text-muted); padding-left: 16px; position: relative; }
.trust-mini li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.trust-mini b { color: var(--text); font-weight: 600; }
