/* ── Shared design tokens (carried from existing RegistrumAI design) ── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Brand palette — locked to RegistrumAI · R/001 spec */
  --green: #1F6B4A;          /* brand-500 · ledger green */
  --green-dark: #155039;
  --green-50: #ECF2ED;
  --green-100: #D3E2D6;
  --green-200: #A8C5B0;
  --green-light: #ECF2ED;
  --green-lighter: #F6FAF8;
  --green-bright: #7ECFB2;   /* reversed-on-dark accent */
  /* Deep ledger green for dark surfaces (brand has no navy; this is a
     darkened brand green, kept off the blue axis). Strict-mono alt = --ink. */
  --navy: #0E3A29;
  --ink: #111110;            /* n-900 · brand dark surface + the "R" glyph */
  --n-700: #2F2F2C;
  --n-600: #4C4B46;
  --n-500: #6F6E66;
  --n-400: #95928A;
  --n-300: #BBB8AA;
  --n-200: #D2D0C5;
  --n-150: #E1DFD6;
  --n-100: #ECEBE5;
  --n-50: #F6F4EF;
  --n-25: #FBFAF7;
  --success: #1F8A5B;
  --warning: #C98810;
  --danger:  #C53B3B;
  --indigo:  #4F4AD6;        /* user-actor accent (non-agent) */
  --muted: #6F6E66;
  --line: #ECEBE5;
  --soft: #F6F4EF;
  --paper: #FBFAF7;
  --white: #ffffff;
  --r: 8px;
  --r-lg: 14px;
  --mono: 'Geist Mono', 'SF Mono', Menlo, monospace;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset within each variation root ── */
.lp { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.5; }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; margin: 0; padding: 0; }
.lp h1, .lp h2, .lp h3, .lp h4 { line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.lp a { color: inherit; text-decoration: none; }
.lp p { line-height: 1.6; }

.lp .container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.lp .eyebrow { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase; color: var(--green); }
.lp .mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }

/* ── Brand mark (R/001 — first entry in its own registry) ── */
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.brand-mark { font-family: var(--mono); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); font-feature-settings: 'tnum' 1; display: inline-flex; align-items: baseline; white-space: nowrap; font-size: 18px; }
.brand-mark .bm-s { color: var(--green); font-weight: 400; }
.brand-mark .bm-n { color: var(--green); font-weight: 500; }
.brand-divider { width: 1px; height: 18px; background: var(--n-200); }
.brand-wordmark { font-family: var(--sans); font-weight: 600; letter-spacing: -0.028em; font-size: 16px; white-space: nowrap; }
.brand-wordmark .wm-ai { color: var(--green); }
.brand-lockup.inv .brand-mark, .brand-lockup.inv .brand-wordmark { color: #fff; }
.brand-lockup.inv .brand-mark .bm-s, .brand-lockup.inv .brand-mark .bm-n,
.brand-lockup.inv .brand-wordmark .wm-ai { color: var(--green-bright); }
.brand-lockup.inv .brand-divider { background: rgba(255, 255, 255, 0.18); }

/* Registry-style child reference, e.g. R/<SLUG> · Product */
.brand-child {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--n-500); font-weight: 500;
}
.brand-child .bc-mark { letter-spacing: -0.01em; text-transform: none; font-feature-settings: 'tnum' 1; color: var(--ink); }
.brand-child .bc-mark .s { color: var(--green); font-weight: 400; }
.brand-child .bc-mark .n { color: var(--green); font-weight: 500; }
.brand-child .bc-arrow { color: var(--n-300); }
.brand-child.inv { color: rgba(255,255,255,0.5); }
.brand-child.inv .bc-mark { color: #fff; }
.brand-child.inv .bc-mark .s, .brand-child.inv .bc-mark .n { color: var(--green-bright); }
.brand-child.inv .bc-arrow { color: rgba(255,255,255,0.25); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--r); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s ease; border: 1.5px solid transparent; text-decoration: none; font-family: var(--sans); white-space: nowrap; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--n-200); }
.btn-outline-dark:hover { border-color: var(--green); color: var(--green); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: transparent; padding: 11px 14px; }
.btn-ghost-dark:hover { color: var(--green); }
.btn-arrow::after { content: '→'; font-size: 13px; }

/* ── Nav (shared) ── */
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--compare-h, 0px);
  z-index: 30;
}
.nav .container {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 32px;
}
.nav-links {
  display: flex; align-items: center; gap: 3px;
  margin-left: 8px;
  flex: 1; min-width: 0;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: -0.005em;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--soft); }
.nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* In the compare shell's split mode, frames scroll internally, so the nav
   should stick to the top of its own scroll container, not below the bar. */
#stage[data-mode="split"] .nav { top: 0; }

/* Anchor-jump offset so the sticky nav (64px) + compare bar don't cover
   the top of a section the nav links jump to. */
.variation-a [id] { scroll-margin-top: calc(var(--compare-h, 0px) + 84px); }

.nav.dark { border-bottom-color: rgba(255, 255, 255, 0.08); background: var(--navy); }
.nav.dark .nav-links a { color: rgba(255, 255, 255, 0.62); }
.nav.dark .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* ── Section utilities ── */
.lp section { padding: 96px 0; }
.section-eyebrow-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-eyebrow-row .rule { flex: 1; height: 1px; background: var(--n-100); }
