/* VIBEALCHEMY · Marketing site · Molten Alchemy palette · dark + light themes
 * Palette + typography come from /tokens.css (shared with the app bundle).
 * Marketing extends with its own grain spec, on-gold colour, and a more
 * refined warm-paper light theme. */
@import url('/tokens.css');

/* ─── DARK extensions ─── */
:root, [data-theme="dark"] {
  /* grain spec */
  --grain-bg: var(--obsidian);
  --grain-glow-1: rgba(245,158,11,0.045);
  --grain-glow-2: rgba(220,38,38,0.04);
  --grain-rgb: "0.96  0 0 0 0.94  0 0 0 0 0.91  0 0 0 0.06";
  --grain-blend: screen;
  --grain-opacity: 0.55;

  /* on-gold text */
  --on-gold: var(--obsidian);
}

/* ─── LIGHT (marketing-specific warm-paper refinement) ─── */
[data-theme="light"] {
  --obsidian: #F7F2E9;
  --obsidian-2: #F1EADD;
  --charcoal: #FBF7EF;
  --charcoal-2: #F3ECDD;
  --line: #E4DAC5;
  --line-2: #CFC2A6;
  --gold: #B45309;
  --gold-hover: #92400E;
  --gold-soft: rgba(180, 83, 9, 0.10);
  --gold-line: rgba(180, 83, 9, 0.32);
  --ember: #B91C1C;
  --ember-soft: rgba(185, 28, 28, 0.10);
  --parchment: #1A1610;
  --parchment-dim: #3A3023;
  --stone: #6B6258;
  --stone-dim: #8C8478;

  --grain-bg: #F7F2E9;
  --grain-glow-1: rgba(180,83,9,0.06);
  --grain-glow-2: rgba(185,28,28,0.04);
  --grain-blend: multiply;
  --grain-opacity: 0.45;

  --on-gold: #FBF7EF;
}

:root {
  --max: 1140px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--obsidian);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ─── GRAIN BACKDROP ─── */
.va-grain {
  position: relative;
  background-color: var(--grain-bg);
  background-image:
    radial-gradient(1100px 600px at 12% -10%, var(--grain-glow-1), transparent 60%),
    radial-gradient(900px 500px at 105% 110%, var(--grain-glow-2), transparent 65%);
}
[data-theme="dark"] .va-grain::before,
[data-theme="light"] .va-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
}
[data-theme="dark"] .va-grain::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0 0.91  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
[data-theme="light"] .va-grain::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.14  0 0 0 0 0.08  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─── TYPE ─── */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }

/* Landing page: italicize everything set in display serif (Instrument Serif),
   except the mixed hero h1 (which already has its own inline italic on the
   gold phrase). Body serif (Lora) stays regular. */
.landing-page .serif:not(.h1),
.landing-page .h2,
.landing-page .h3,
.landing-page h4.serif,
.landing-page .stage-name,
.landing-page .archetype-title,
.landing-page .memo-title,
.landing-page .compare-head h4,
.landing-page .faq-q { font-style: italic; }

/* How-it-works page: italicize everything in display serif. */
.how-page .h1,
.how-page .h2,
.how-page .h3,
.how-page h4.serif,
.how-page .serif,
.how-page .stage-deep-name,
.how-page .memo-title,
.how-page .faq-q { font-style: italic; }

/* FAQ page: italicize everything in display serif. */
.faq-page .h1,
.faq-page .h2,
.faq-page .h3,
.faq-page h4.serif,
.faq-page .serif,
.faq-page .faq-q { font-style: italic; }

/* About page: italicize everything in display serif. */
.about-page .h1,
.about-page .h2,
.about-page .h3,
.about-page h4.serif,
.about-page .serif { font-style: italic; }

/* For-All-In page: italicize everything in display serif. */
.for-all-in-page .h1,
.for-all-in-page .h2,
.for-all-in-page .h3,
.for-all-in-page h4.serif,
.for-all-in-page .serif { font-style: italic; }

/* For-Founders page: italicize everything in display serif. */
.for-founders-page .h1,
.for-founders-page .h2,
.for-founders-page .h3,
.for-founders-page h4.serif,
.for-founders-page .serif,
.for-founders-page .archetype-title,
.for-founders-page .faq-q { font-style: italic; }

/* Examples page: italicize everything in display serif. */
.examples-page .h1,
.examples-page .h2,
.examples-page .h3,
.examples-page h4.serif,
.examples-page .serif,
.examples-page .example-name,
.examples-page .memo-title { font-style: italic; }
.italic { font-style: italic; }
.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.ember { color: var(--ember); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.h1 { font-family: var(--serif); font-size: clamp(48px, 7.2vw, 92px); line-height: 1.05; letter-spacing: -0.02em; padding-bottom: 0.08em; }
.h2 { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.015em; }
.h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.01em; }
.h4 { font-family: var(--sans); font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
.lede { font-family: var(--serif-body); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; color: var(--parchment-dim); max-width: 720px; }
.body { font-family: var(--serif-body); color: var(--parchment-dim); line-height: 1.55; }
.muted { color: var(--stone); }
.mute2 { color: var(--stone-dim); }

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--parchment);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
  font-weight: 600;
}
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--on-gold); }
.btn-ghost { border: none; padding: 8px 10px; color: var(--stone); }
.btn-ghost:hover { color: var(--parchment); background: var(--charcoal-2); }
.btn-sm { padding: 8px 12px; font-size: 10px; }
.btn-lg { padding: 16px 24px; font-size: 12px; }

/* ─── SURFACES ─── */
.surface {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.surface-2 { background: var(--charcoal-2); }
.surface-tinted {
  background: linear-gradient(180deg, var(--charcoal) 0%, rgba(245,158,11,0.04) 100%);
  border: 1px solid var(--gold-line);
}
[data-theme="light"] .surface-tinted {
  background: linear-gradient(180deg, var(--charcoal) 0%, rgba(180,83,9,0.06) 100%);
}
.surface-clickable { cursor: pointer; transition: border-color 0.18s, background 0.18s, transform 0.18s; }
.surface-clickable:hover { border-color: var(--gold-line); transform: translateY(-2px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--stone);
  background: transparent;
}
.tag.gold { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.tag.ember { color: var(--ember); border-color: rgba(220,38,38,0.4); background: var(--ember-soft); }
.tag.green { color: #16A34A; border-color: rgba(22,163,74,0.4); background: rgba(22,163,74,0.10); }
[data-theme="light"] .tag.green { color: #15803D; }

/* ─── DIVIDERS ─── */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.divider-dot {
  height: 1px;
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.4px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  border: 0;
}
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  border: 0;
}
.vrule { width: 1px; align-self: stretch; background: var(--line); }

/* ─── LINKS ─── */
a, .link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: border-color 0.15s;
}
a:hover { border-bottom-color: var(--gold); }
a.bare, .bare { border-bottom: 0; }

/* ─── TOP NAV ─── */
.va-topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--obsidian) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.va-topnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.va-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--parchment);
  border-bottom: 0;
  cursor: pointer;
}
.va-topnav .va-logo {
  font-size: 28px;
  gap: 2px;
}
.va-footer .va-logo {
  font-size: 20px;
  gap: 2px;
}
.va-logo-mark {
  display: block;
  flex-shrink: 0;
}
.va-topnav-links {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-badge {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 0.16em;
  padding: 2px 5px;
  margin-left: 6px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  vertical-align: 1px;
}
.va-topnav-links a {
  color: var(--stone);
  border-bottom: 0;
  cursor: pointer;
  transition: color 0.15s;
}
.va-topnav-links a:hover, .va-topnav-links a.active { color: var(--parchment); }
.va-topnav-spacer { flex: 1; }
.va-topnav-cta { display: flex; align-items: center; gap: 14px; }
.va-topnav .login {
  color: var(--stone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 0;
  white-space: nowrap;
  cursor: pointer;
}
.va-topnav-cta > * { white-space: nowrap; }
.va-topnav .login:hover { color: var(--parchment); }
.va-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--parchment);
  width: 36px; height: 36px;
  border-radius: 3px;
  font-size: 16px;
  cursor: pointer;
}
.va-mobile-toggle:hover { border-color: var(--gold); color: var(--gold); }
.va-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--parchment);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.va-theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-line);
  background: var(--gold-soft);
}

/* ─── FOOTER ─── */
.va-footer {
  border-top: 1px solid var(--line);
  margin-top: 120px;
  padding: 64px 0 0;
  background: var(--obsidian-2);
}
.va-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.va-footer-col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-dim);
  margin: 0 0 16px;
  font-weight: 500;
}
.va-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.va-footer-col a { color: var(--parchment-dim); border-bottom: 0; font-size: 13px; cursor: pointer; }
.va-footer-col a:hover { color: var(--gold); }
.va-footer-brand p { color: var(--stone); font-size: 13px; max-width: 280px; }
.va-footer-legal {
  max-width: var(--max);
  margin: 64px auto 0;
  padding: 22px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-dim);
}
.va-footer-legal a { color: var(--stone-dim); border-bottom: 0; }
.va-footer-legal a:hover { color: var(--parchment); }
.va-footer-legal-links { display: flex; gap: 22px; }

/* ─── LAYOUT WRAPPERS ─── */
.page { min-height: 100vh; padding-bottom: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-lg { padding: 120px 0; }
.section-bg { background: var(--obsidian-2); }
.section-bg-2 { background: var(--charcoal); }
.section-rule { border-top: 1px solid var(--line); }
.section-header { margin-bottom: 48px; }
.section-header .eyebrow { margin-bottom: 14px; }
.section-header h2 { margin-bottom: 14px; }
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.col-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.col-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stack { display: flex; flex-direction: column; }
.stack-sm { gap: 10px; }
.stack-md { gap: 18px; }
.stack-lg { gap: 28px; }
.stack-xl { gap: 48px; }
.row { display: flex; align-items: center; }
.row-sb { display: flex; justify-content: space-between; align-items: center; }

/* ─── HERO ─── */
.hero {
  padding: 96px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--gold-soft); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-sub { margin: 28px 0 36px; }
.hero-microcopy {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--stone);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-microcopy span { display: inline-flex; align-items: center; gap: 6px; }
.hero-microcopy span::before { content: "·"; color: var(--gold); }

/* ─── MEMO ARTIFACT ─── */
.memo {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 0 0 1px var(--line) inset;
  transform: rotate(-0.3deg);
}
[data-theme="light"] .memo { box-shadow: 0 30px 60px rgba(26,22,16,0.10), 0 0 0 1px var(--line) inset; }
.memo-sample-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-dim);
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
}
.memo-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.memo-title { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; color: var(--parchment); }
.memo-meta { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--stone-dim); text-transform: uppercase; margin-top: 4px; }
.memo-verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.memo-verdict-pill.go { background: rgba(22,163,74,0.14); color: #16A34A; border: 1px solid rgba(22,163,74,0.4); }
.memo-verdict-pill.pivot { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.memo-verdict-pill.kill { background: var(--ember-soft); color: var(--ember); border: 1px solid rgba(220,38,38,0.4); }
.memo-verdict-pill.cond { background: rgba(22,163,74,0.10); color: #16A34A; border: 1px solid rgba(22,163,74,0.3); }
[data-theme="light"] .memo-verdict-pill.go,
[data-theme="light"] .memo-verdict-pill.cond { color: #15803D; }

.memo-score-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.memo-score {
  font-family: var(--serif);
  font-style: italic;
  font-size: 76px;
  line-height: 0.9;
  color: var(--parchment);
}
.memo-score-of { font-family: var(--mono); font-size: 11px; color: var(--stone); letter-spacing: 0.1em; }
.memo-score-label { font-family: var(--mono); font-size: 9px; color: var(--stone-dim); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 4px; }
.memo-insight {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--parchment);
  margin: 18px 0;
}
.memo-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
}
.memo-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-dim);
  margin-bottom: 6px;
}
.memo-assumption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
  color: var(--parchment-dim);
}
.memo-redline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ember);
  letter-spacing: 0.1em;
}
.memo-redline::before {
  content: "";
  display: block;
  width: 24px; height: 1px;
  background: var(--ember);
}

/* ─── STAGES / PIPELINE ─── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 5%; right: 5%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.stage-cell {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.stage-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-bottom: 22px;
}
.stage-icon {
  width: 76px; height: 76px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: var(--obsidian);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--gold);
  position: relative;
  z-index: 1;
}
[data-theme="light"] .stage-icon { background: var(--charcoal); }
.stage-icon svg { width: 28px; height: 28px; stroke: var(--gold); stroke-width: 1.5; fill: none; }
.stage-name { font-family: var(--serif); font-size: 26px; line-height: 1; margin-bottom: 10px; color: var(--parchment); }
.stage-desc { font-size: 13px; color: var(--parchment-dim); line-height: 1.5; }

/* ─── PROBLEM STAT ─── */
.stat-band {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.stat-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 0.9;
  color: var(--gold);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat-text { font-family: var(--serif-body); color: var(--parchment-dim); font-size: 16px; line-height: 1.55; max-width: 480px; }
.stat-text .src { font-family: var(--mono); font-size: 10px; color: var(--stone); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-top: 6px; }

/* ─── DELIVERABLE TILES ─── */
.deliverable {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 320px;
}
.deliverable-doc {
  background: var(--obsidian-2);
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 160px;
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .deliverable-doc { background: var(--charcoal-2); }
.doc-line { height: 4px; border-radius: 99px; background: var(--line-2); }
.doc-line.short { width: 40%; }
.doc-line.med { width: 65%; }
.doc-line.long { width: 90%; }
.doc-line.gold { background: var(--gold); }
.doc-line.ember { background: var(--ember); }
.doc-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  width: max-content;
}
.doc-pill.gold { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.doc-pill.ember { background: var(--ember-soft); color: var(--ember); border: 1px solid rgba(220,38,38,0.4); }

/* ─── COMPARE TABLE ─── */
.compare {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.compare-col {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.compare-col:last-child { border-right: 0; }
.compare-col.us {
  background: linear-gradient(180deg, rgba(245,158,11,0.06) 0%, rgba(245,158,11,0.02) 100%);
  border-left: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  border-radius: 0;
}
[data-theme="light"] .compare-col.us {
  background: linear-gradient(180deg, rgba(180,83,9,0.08) 0%, rgba(180,83,9,0.02) 100%);
}
.compare-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.compare-head h4 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 4px;
  color: var(--parchment);
}
.compare-col.us .compare-head h4 { color: var(--gold); }
.compare-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.compare-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row-kicker {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-dim);
  margin-bottom: 8px;
}
.compare-row-body { font-family: var(--serif-body); font-size: 15px; color: var(--parchment-dim); line-height: 1.55; }
.compare-col.us .compare-row-body { color: var(--parchment); }

/* ─── PRICING CARDS ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.pricing-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.pricing-card.recommended {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, rgba(245,158,11,0.05) 0%, var(--charcoal) 40%);
  transform: translateY(-6px);
}
[data-theme="light"] .pricing-card.recommended {
  background: linear-gradient(180deg, rgba(180,83,9,0.07) 0%, var(--charcoal) 40%);
}
.pricing-card.muted { opacity: 0.78; }
.pricing-card .ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  font-weight: 600;
}
.pricing-card .coming {
  position: absolute;
  top: 14px; right: 14px;
}
.pricing-role { font-family: var(--mono); font-size: 10px; color: var(--stone); letter-spacing: 0.18em; text-transform: uppercase; min-height: 28px; }
.pricing-name { font-family: var(--mono); font-size: 13px; color: var(--parchment); letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; }
.pricing-price-row { display: flex; align-items: baseline; gap: 10px; }
.pricing-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--parchment);
  letter-spacing: -0.02em;
}
.pricing-price-strike { font-family: var(--mono); font-size: 14px; color: var(--stone-dim); text-decoration: line-through; }
.pricing-cycle { font-family: var(--mono); font-size: 12px; color: var(--stone); }
.pricing-founding {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}
.pricing-runs {
  padding: 12px 14px;
  background: var(--obsidian-2);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--parchment);
  letter-spacing: 0.05em;
}
[data-theme="light"] .pricing-runs { background: var(--charcoal-2); }
.pricing-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.pricing-features li {
  font-family: var(--serif-body);
  font-size: 15px;
  color: var(--parchment-dim);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.pricing-features li::before {
  content: "·";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-cta { margin-top: auto; }

/* ── Credits explainer (below pricing cards) ────────────────────────────── */
.credits-explainer-body {
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--parchment-dim);
}
.credits-explainer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.credits-explainer-list li {
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--parchment-dim);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.credits-explainer-list li::before {
  content: "·";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.credits-explainer-list li strong { color: var(--parchment); font-weight: 600; }

/* ─── TOGGLE ─── */
.seg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
  background: var(--charcoal);
}
.seg-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  background: transparent;
  border: none;
  color: var(--stone);
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.seg-btn.on { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.seg-btn .save-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  letter-spacing: 0.1em;
}
.seg-btn:not(.on) .save-tag { color: var(--gold); background: var(--gold-soft); }

/* ─── ACCORDION ─── */
.faq-row {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  cursor: pointer;
}
.faq-row:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--parchment);
  letter-spacing: -0.005em;
}
.faq-q .toggle {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
  transition: transform 0.25s;
}
.faq-row.open .toggle { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-row.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  color: var(--parchment-dim);
  font-family: var(--serif-body);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}
.faq-row.open .faq-a-inner { padding-top: 16px; }

/* ─── FULL COMPARISON TABLE ─── */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.tier-table th, .tier-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif-body);
  font-size: 15px;
  line-height: 1.45;
}
.tier-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 500;
  background: var(--obsidian-2);
}
.tier-table th.us, .tier-table td.us {
  background: var(--gold-soft);
  color: var(--parchment);
  border-left: 1px solid var(--gold-line);
  border-right: 1px solid var(--gold-line);
}
.tier-table tr.group-row td {
  background: var(--obsidian-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 18px;
}
[data-theme="light"] .tier-table tr.group-row td,
[data-theme="light"] .tier-table th { background: var(--charcoal-2); }
.tier-table td.cell-yes { color: var(--gold); }
.tier-table td.cell-no { color: var(--stone-dim); }
.tier-table tr:last-child td { border-bottom: 0; }

/* ─── EXAMPLES CARDS ─── */
.example-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  min-height: 360px;
}
.example-card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.example-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--stone-dim); }
.example-name { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--parchment); letter-spacing: -0.01em; }
.example-score-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.example-score-num { font-family: var(--serif); font-style: italic; font-size: 42px; line-height: 1; color: var(--parchment); }
.example-link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border-bottom: 0; }

/* ─── ROADMAP BOARD ─── */
.roadmap-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.roadmap-col {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 20px;
  min-height: 380px;
}
.roadmap-col-head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); margin-bottom: 18px; }
.roadmap-col.shipped .roadmap-col-head { color: #16A34A; }
.roadmap-col.building .roadmap-col-head { color: var(--gold); }
.roadmap-col.next .roadmap-col-head { color: var(--parchment); }
.roadmap-col.considering .roadmap-col-head { color: var(--stone); }
.roadmap-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--parchment-dim);
}
.roadmap-item:last-child { border-bottom: 0; }
.roadmap-item .item-tag {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

/* ─── CHANGELOG ─── */
.changelog-entry { padding: 28px 0; border-bottom: 1px dashed var(--line); }
.changelog-entry:last-child { border-bottom: 0; }
.changelog-date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 14px; }
.changelog-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--parchment-dim); line-height: 1.55; }
.changelog-list li { display: flex; gap: 12px; }
.changelog-list .kind { color: var(--gold); min-width: 80px; }
.changelog-list .kind.fixed { color: var(--ember); }
.changelog-list .kind.shipped { color: #16A34A; }

/* ─── STAGE DEEP CARD (how-it-works) ─── */
.stage-deep {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 48px;
}
.stage-deep:last-child { border-bottom: 1px solid var(--line); }
.stage-deep-side { display: flex; flex-direction: column; gap: 8px; }
.stage-deep-name { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -0.015em; color: var(--parchment); }
.stage-deep-time { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.stage-deep-tagline { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); line-height: 1.3; margin-bottom: 22px; }
.stage-deep-excerpt {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--parchment-dim);
  background: var(--obsidian-2);
  border-left: 2px solid var(--gold);
  padding: 16px 18px;
  border-radius: 0 3px 3px 0;
}
[data-theme="light"] .stage-deep-excerpt { background: var(--charcoal-2); }
.stage-deep-excerpt .ex-label { color: var(--stone); letter-spacing: 0.08em; }
.stage-deep-excerpt .ex-val { color: var(--parchment); }

/* ─── PRINCIPLE / RED TEAM ─── */
.principle {
  padding: 36px 0;
  border-top: 1px dashed var(--line-2);
  max-width: 760px;
  margin: 0 auto;
}
.principle-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.principle h3 { margin-bottom: 16px; }
.principle blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--parchment-dim);
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

/* ─── FOUNDER STRIP ─── */
.founder-strip {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.founder-avatar {
  width: 180px; height: 180px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--obsidian-2) 100%);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 72px;
  font-style: italic;
  color: var(--gold);
  position: relative;
  overflow: hidden;
}
.founder-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft) 0%, transparent 60%);
  pointer-events: none;
}
.founder-stats { display: grid; grid-template-columns: 1fr; gap: 18px; }
.founder-stat { border-left: 2px solid var(--gold); padding-left: 14px; display: block; text-decoration: none; color: inherit; transition: transform 0.15s ease; }
a.founder-stat:hover { transform: translateX(2px); }
a.founder-stat:hover .founder-stat-label { color: var(--gold); }
.founder-stat-num { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1; color: var(--parchment); }
.founder-stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-top: 6px; }
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--parchment);
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin: 18px 0;
}
.pull-quote .who { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--stone); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px; }

/* ─── CTA BLOCK ─── */
.cta-block {
  text-align: center;
  padding: 96px 0;
  position: relative;
}
.cta-block::before, .cta-block::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.cta-block::before { top: 0; }
.cta-block::after { bottom: 0; }
.cta-block .h2 { max-width: 800px; margin: 0 auto 18px; }
.cta-block .lede { margin: 0 auto 32px; }

/* ─── TRUST STRIP ─── */
.trust-strip {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  row-gap: 14px;
}
.trust-strip-item {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.trust-strip-item::before {
  content: "▴";
  color: var(--gold);
  position: relative;
  top: -1px;
}

/* ─── PERSONA / ARCHETYPE ─── */
.archetype {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.archetype-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.archetype-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--parchment); }

/* ─── KBD ─── */
.kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 6px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--stone);
  background: var(--obsidian-2);
}

/* ─── KEY VAL ─── */
.kv { display: flex; gap: 12px; font-family: var(--mono); font-size: 13px; }
.kv .k { color: var(--stone); letter-spacing: 0.06em; }
.kv .v { color: var(--parchment); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .hero-grid, .col-2, .col-3, .col-4, .compare, .pricing-grid, .roadmap-board, .pipeline { grid-template-columns: 1fr; gap: 24px; }
  .pipeline::before { display: none; }
  .pricing-card.recommended { transform: none; }
  .va-footer-inner { grid-template-columns: 1fr 1fr; }
  .va-topnav-links { display: none; }
  .va-mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .va-topnav .login { display: none; }
  .va-topnav.mobile-open .va-topnav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--obsidian);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    gap: 4px;
    z-index: 30;
  }
  .va-topnav.mobile-open .va-topnav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line-2);
    font-size: 15px;
  }
  .va-topnav.mobile-open .va-topnav-links a:last-child { border-bottom: none; }
  .va-topnav { position: relative; }
  .stage-deep { grid-template-columns: 1fr; gap: 24px; }
  .founder-strip { grid-template-columns: 1fr; }
  .va-topnav-inner { padding: 12px 20px; gap: 16px; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone-dim); }
