/* ============================================================================
   OneAIKey — статичный лендинг. Дизайн-система закодифицирована в CSS-переменных
   (скопированы из design-system/tokens). Компоненты не хардкодят цвета —
   только через токены. Тема тёмная.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap&subset=cyrillic,latin');

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* backgrounds & surfaces */
  --bg:            #0A0B0D;
  --bg-elevated:   #121419;
  --surface:       #181B22;
  --surface-deep:  #0C0D11;

  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  /* text */
  --text:        #F4F6FB;
  --text-muted:  #A0A7B4;
  --text-faint:  #6B7280;

  /* brand accent (indigo → violet) */
  --accent:      #6D6BF6;
  --accent-2:    #9B6BF6;
  --accent-grad: linear-gradient(135deg, #6D6BF6 0%, #9B6BF6 100%);
  --accent-glow: rgba(109,107,246,0.35);
  --accent-soft: rgba(109,107,246,0.12);

  /* semantic / trust */
  --success: #34D399;
  --warning: #F5B544;
  --danger:  #F4677B;
  --info:    #6D9BF6;

  /* aliases */
  --text-on-accent:   #FFFFFF;
  --link:             var(--accent-2);
  --surface-card:     var(--bg-elevated);
  --surface-input:    var(--surface);
  --surface-code:     var(--surface-deep);
  --focus-ring:       0 0 0 3px var(--accent-glow);

  /* typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --fw-medium:500; --fw-semibold:600; --fw-bold:700;
  --fs-caption:13px; --fs-code:14px;
  --lh-body:1.6; --lh-tight:1.05;
  --ls-eyebrow:0.08em;

  /* spacing & radii */
  --r-sm:10px; --r-md:16px; --r-lg:24px; --r-input:12px; --r-pill:999px;
  --container:1180px; --container-px:24px;
  --control-h:50px; --control-h-sm:40px;

  /* effects */
  --shadow-card:       0 12px 40px -20px rgba(0,0,0,0.6);
  --shadow-glow-sm:    0 6px 24px -8px var(--accent-glow);
  --shadow-glow-lg:    0 20px 60px -30px var(--accent-glow);
  --shadow-feat-hover: 0 12px 40px -20px var(--accent-glow);
  --bg-accent-banner:  linear-gradient(135deg, rgba(109,107,246,0.10), rgba(155,107,246,0.04));
  --bg-accent-banner-strong: linear-gradient(135deg, rgba(109,107,246,0.14), rgba(155,107,246,0.05));
  --t-base:150ms;
  --transition-hover: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

/* ── Reset / base ────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--container-px); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px,3.5vw,40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 14px; }
.section-head h2:last-child { margin-bottom: 0; }
.section-head p { color: var(--text-muted); font-size: 18px; margin: 0; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ── Links ───────────────────────────────────────────────────────────────── */
.oak-link { color: var(--text-muted); transition: color .15s ease; }
.oak-link:hover { color: var(--text); }

/* ── Eyebrow ─────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: var(--fs-caption); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--accent-2);
}

/* ── Button ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-h); padding: 0 22px; font-size: 15px;
  border-radius: var(--r-input); font-family: var(--font-sans); font-weight: var(--fw-semibold);
  cursor: pointer; white-space: nowrap; text-decoration: none; border: 1px solid transparent;
  transition: var(--transition-hover);
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: var(--control-h-sm); padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-primary   { background: var(--accent-grad); color: var(--text-on-accent); box-shadow: var(--shadow-glow-sm); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost     { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-block { width: 100%; }

/* ── Pill ────────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: var(--fw-medium);
  padding: 7px 13px; border-radius: var(--r-pill); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 28px; position: relative;
  transition: var(--transition-hover);
}
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-feat-hover); transform: translateY(-2px); }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: var(--fw-semibold);
  padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--accent-grad); color: var(--text-on-accent);
}
.badge-float { position: absolute; top: -12px; left: 30px; }

/* ── Step card ───────────────────────────────────────────────────────────── */
.step-num {
  width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); color: var(--text-on-accent); margin-bottom: 16px;
}
.step-card h3 { font-size: 19px; font-weight: var(--fw-semibold); margin: 0 0 8px; color: var(--text); }
.step-card p  { font-size: 15px; color: var(--text-muted); margin: 0; line-height: var(--lh-body); }

/* ── Feature tile / problem / case ───────────────────────────────────────── */
.feature .ico {
  width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  margin-bottom: 14px; color: var(--accent-2);
}
.feature h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.feature p  { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.problem { display: flex; gap: 14px; padding: 22px; }
.problem .pico { font-size: 22px; line-height: 1; }
.problem b { display: block; margin-bottom: 3px; color: var(--text); }
.problem span.desc { color: var(--text-muted); font-size: 15px; }
.case h3 { font-size: 16px; margin: 0 0 6px; color: var(--text); }
.case p  { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.6; }

/* ── Tier card ───────────────────────────────────────────────────────────── */
.tier-card { display: flex; flex-direction: column; border-radius: var(--r-lg); padding: 30px; }
.tier-card.featured { border-color: var(--accent); box-shadow: var(--shadow-glow-lg); }
.tier-card h3 { font-size: 21px; font-weight: var(--fw-bold); margin: 0 0 4px; color: var(--text); }
.tier-who { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.tier-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tier-card li { padding: 7px 0; font-size: 14px; color: var(--text); display: flex; gap: 9px; align-items: baseline; }
.tier-card li .chk { color: var(--success); font-weight: var(--fw-bold); }

/* ── Pricing table ───────────────────────────────────────────────────────── */
.pricing { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.pricing table { width: 100%; border-collapse: collapse; min-width: 560px; }
.pricing th {
  text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-weight: var(--fw-semibold); font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em;
}
.pricing td { padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text); }
.pricing tr:last-child td { border-bottom: 0; }
.pricing td.muted { color: var(--text-muted); }
.pricing th.num, .pricing td.num { text-align: right; }
.pricing td.num { font-family: var(--font-mono); }
.pricing-formula { display: grid; gap: 20px; }
.formula-card {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: clamp(24px,4vw,34px); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); background: var(--bg-accent-banner);
}
.formula-part {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 16px; border-radius: var(--r-input); background: var(--surface-card);
  border: 1px solid var(--border); color: var(--text); font-weight: var(--fw-semibold);
}
.formula-op { color: var(--accent-2); font-family: var(--font-mono); font-size: 22px; font-weight: var(--fw-bold); }
.formula-notes .card { padding: 24px; }
.formula-notes h3, .trust-card h3 { font-size: 16px; margin: 0 0 8px; color: var(--text); }
.formula-notes p, .trust-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ── Code block ──────────────────────────────────────────────────────────── */
.codeblock { background: var(--surface-code); border: 1px solid var(--border-strong); border-radius: var(--r-md); overflow: hidden; }
.cb-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.cb-tab {
  all: unset; cursor: pointer; padding: 6px 14px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: var(--fw-medium); color: var(--text-muted); border: 1px solid transparent;
}
.cb-tab.active { color: var(--text); background: var(--bg-elevated); border-color: var(--border); }
.cb-body { position: relative; }
.cb-copy {
  position: absolute; top: 12px; right: 12px; height: 32px; padding: 0 12px;
  font-family: var(--font-sans); font-size: 12px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-muted); cursor: pointer;
}
.cb-body pre { margin: 0; padding: 24px; overflow-x: auto; font-family: var(--font-mono); font-size: var(--fs-code); line-height: 1.7; color: var(--text); }
.cb-pane[hidden] { display: none; }
/* syntax tints */
.t-kw  { color: var(--accent-2); }
.t-fn  { color: var(--info); }
.t-str { color: var(--success); }
.t-com { color: var(--text-faint); }
.t-num { color: var(--warning); }
.t-url { color: var(--warning); }

/* ── Provider marquee ────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 48px; align-items: center; white-space: nowrap; width: max-content;
  animation: oak-marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 19px; font-weight: var(--fw-semibold); color: var(--text-muted);
  opacity: .75; letter-spacing: -0.01em;
}
@keyframes oak-marquee { to { transform: translateX(-50%); } }

/* ── Input ───────────────────────────────────────────────────────────────── */
.input {
  height: var(--control-h); width: 100%; padding: 0 16px; border-radius: var(--r-input);
  background: var(--surface-input); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--font-sans); font-size: 15px; outline: none;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.input::placeholder { color: var(--text-faint); }
.input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.input.invalid { border-color: var(--danger); }

/* ── Choice chip ─────────────────────────────────────────────────────────── */
.choice-chip {
  display: inline-flex; align-items: center; padding: 9px 14px; border-radius: var(--r-pill);
  font-size: 13px; cursor: pointer; user-select: none;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-muted);
  transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
}
.choice-chip.selected { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }

/* ── Logo ────────────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--fw-bold); font-size: 18px; color: var(--text); }

/* ── Promo bar ───────────────────────────────────────────────────────────── */
.promo { background: var(--accent-soft); border-bottom: 1px solid var(--border); text-align: center; padding: 9px 16px; font-size: 13.5px; color: var(--text-muted); }
.promo b { color: var(--text); font-weight: var(--fw-semibold); }
.promo a { color: var(--accent-2); font-weight: 600; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(10,11,13,.72); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(64px,9vw,118px) 0 clamp(56px,7vw,92px); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 900px; height: 700px; background: radial-gradient(closest-side, var(--accent-glow), transparent 70%); filter: blur(40px); opacity: .6; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(closest-side,#000,transparent 80%); mask-image: radial-gradient(closest-side,#000,transparent 80%); opacity: .5; }
.hero h1 { font-size: clamp(38px,6vw,62px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 18px 0; }
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(17px,2vw,20px); color: var(--text-muted); max-width: 560px; margin: 0 0 4px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.micro { font-size: 13px; color: var(--text-faint); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.viz { position: relative; height: 360px; }
.oak-flow { stroke-dasharray: 6 8; animation: oak-dash 3s linear infinite; }
@keyframes oak-dash { to { stroke-dashoffset: -56; } }

/* ── Stats strip ─────────────────────────────────────────────────────────── */
.stats { background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--surface-card); padding: 30px 22px; text-align: center; }
.stat .big { font-family: var(--font-mono); font-size: clamp(28px,4vw,38px); font-weight: 700; }
.stat .lbl { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

/* ── Trust bar ───────────────────────────────────────────────────────────── */
.trustbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; margin-top: clamp(40px,6vw,72px); }
.trustbar p { text-align: center; color: var(--text-muted); font-size: 13px; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .06em; }
.trust-grid .card { padding: 24px; }
.trust-card .ico {
  width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  margin-bottom: 14px; color: var(--success);
}

/* ── Legal (для бизнеса) ─────────────────────────────────────────────────── */
.legal-box { background: var(--bg-accent-banner); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: clamp(28px,4vw,48px); }
.legal-box ul { list-style: none; padding: 0; margin: 20px 0 0; }
.legal-box li { padding: 9px 0; color: var(--text); display: flex; gap: 10px; align-items: center; }
.legal-box li .chk { color: var(--success); }
.doc-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.doc-row:last-of-type { border-bottom: 0; }
.doc-row span.k { color: var(--text-muted); }
.doc-tags { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.doc-tags span { font-size: 13px; color: var(--text-muted); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; color: var(--text); }
.faq-q .sign { flex-shrink: 0; color: var(--text-muted); font-size: 20px; line-height: 1; }
.faq-a { margin: 0 0 22px; color: var(--text-muted); font-size: 15px; max-width: 660px; line-height: 1.6; }
.faq-a[hidden] { display: none; }

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.final { position: relative; text-align: center; background: var(--bg-accent-banner-strong); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: clamp(48px,7vw,72px) 24px; overflow: hidden; }
.final .glow { position: absolute; top: -160px; left: 50%; transform: translateX(-50%); width: 760px; height: 560px; background: radial-gradient(closest-side, var(--accent-glow), transparent 70%); filter: blur(40px); opacity: .55; pointer-events: none; }
.final-inner { position: relative; z-index: 1; }
.final h2 { font-size: clamp(28px,4vw,42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 14px; }
.final p { color: var(--text-muted); font-size: 18px; margin: 0 auto 28px; max-width: 540px; line-height: 1.6; }
.final-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: clamp(40px,6vw,72px); }
.footer p.tag { color: var(--text-muted); font-size: 14px; max-width: 260px; margin-top: 12px; line-height: 1.6; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin: 0 0 14px; }
.footer .col a { display: block; font-size: 14px; padding: 5px 0; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-faint); font-size: 13px; }
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-muted); }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(5,6,8,.72); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px; }
.overlay.open { display: flex; }
.modal { position: relative; width: 100%; max-width: 460px; background: var(--surface-card); border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-card); max-height: 92vh; overflow-y: auto; }
.modal-close { position: absolute; top: 14px; right: 16px; all: unset; cursor: pointer; font-size: 24px; line-height: 1; color: var(--text-muted); }
.modal-close:hover { color: var(--text); }
.modal h3 { font-size: 22px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.modal > div > p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.modal label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 10px; }
.field { margin-bottom: 18px; }
.q { margin-bottom: 20px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-muted); line-height: 1.5; margin: 4px 0 18px; }
.consent input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--accent-2); }
.modal-actions { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
.skip { color: var(--text-muted); font-size: 14px; cursor: pointer; }
.skip:hover { color: var(--text); }
.form-err { color: var(--danger); font-size: 13px; margin: 0 0 14px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ── Article (legal pages) ───────────────────────────────────────────────── */
.article { max-width: 820px; margin: 0 auto; padding: clamp(56px,8vw,80px) 0; }
.article h1 { font-size: clamp(30px,4vw,42px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; }
.article .lead { color: var(--text-muted); margin: 0 0 8px; }
.article .upd { color: var(--text-faint); font-size: 13px; margin: 0 0 36px; }
.article h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: -0.01em; }
.article p, .article li { color: var(--text-muted); line-height: 1.7; }
.article ul { padding-left: 22px; }
.article a { color: var(--accent-2); }
.article .back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

/* ── Layout grids ────────────────────────────────────────────────────────── */
.r-hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.r-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; }
.r-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.r-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; align-items: stretch; }
.r-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.r-features { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.r-tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.r-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.r-foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.center-narrow { max-width: 760px; margin: 0 auto; }

@media (max-width: 980px) {
  .r-hero { grid-template-columns: 1fr; }
  .viz { display: none; }
  .r-features { grid-template-columns: repeat(2,1fr); }
  .r-4 { grid-template-columns: repeat(2,1fr); }
  .r-legal { grid-template-columns: 1fr; }
  .nav-links { display: none !important; }
  .r-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .r-3, .r-2, .r-4, .r-tiers, .r-foot, .r-features { grid-template-columns: 1fr; }
  .nav-secondary { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
