/* ─────────────────────────────────────────────────────────────────
   Velauth landing page — styles
   Design tokens from the Claude Design handoff.
   ───────────────────────────────────────────────────────────────── */

/* ── Design tokens ────────────────────────────────────────────── */
:root {
  --bg:          #FAF8F5;
  --bg-2:        #F2EEE8;
  --bg-3:        #E8E2D8;
  --ink:         #15151A;
  --ink-2:       #3D3D47;
  --ink-3:       #6B6B78;
  --line:        #E2DDD3;
  --line-2:      #D6CFC2;

  --accent:      oklch(0.58 0.18 277);
  --accent-soft: oklch(0.95 0.04 277);
  --accent-ink:  oklch(0.32 0.16 277);

  --ok:          oklch(0.62 0.13 152);
  --ok-soft:     oklch(0.95 0.04 152);
  --warn:        oklch(0.72 0.14 70);
  --warn-soft:   oklch(0.95 0.05 78);
  --danger:      oklch(0.58 0.17 25);
  --danger-soft: oklch(0.95 0.05 25);

  --radius:      10px;
  --radius-lg:   16px;

  --shadow-sm:   0 1px 0 rgba(20,20,28,.04), 0 1px 2px rgba(20,20,28,.04);
  --shadow-md:   0 1px 0 rgba(20,20,28,.04), 0 8px 24px -8px rgba(20,20,28,.10);
  --shadow-lg:   0 1px 0 rgba(20,20,28,.04), 0 24px 60px -20px rgba(20,20,28,.18);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; padding: 0; margin: 0; }
p { margin: 0; }
::selection { background: var(--accent); color: white; }

/* ── Typography helpers ────────────────────────────────────────── */
.mono  { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.serif { font-family: "IBM Plex Serif", Georgia, serif; }
.h-display {
  font-family: "IBM Plex Serif", serif;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0;
}
.h-display em { font-style: italic; font-weight: 500; }
.h-section {
  font-family: "IBM Plex Serif", serif;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.1;
  margin: 0;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.accent-ink { color: var(--accent-ink); }
.ok         { color: var(--ok); }
.warn       { color: var(--warn); }
.ink-3      { color: var(--ink-3); }

/* ── Layout ────────────────────────────────────────────────────── */
.wrap        { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.wrap-narrow { width: min(880px,  calc(100% - 48px)); margin: 0 auto; }
.stack       { position: relative; z-index: 2; }
.bg-2        { background: var(--bg-2); }

.section-pad { padding-block: 96px; position: relative; }
.section-pad + .section-pad { border-top: 1px solid var(--line); }

/* ── Grids ─────────────────────────────────────────────────────── */
.grid        { display: grid; gap: 20px; }
.grid-3      { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4      { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-split  { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.grid-split-r{ grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.grid-split-l{ grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.grid-faq    { grid-template-columns: 1fr 2fr; gap: 56px; }
.grid-pilot  { grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.grid-footer { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.enterprise-grid { grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }

/* ── Grain overlay ─────────────────────────────────────────────── */
.grain::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .5;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 500; font-size: 15px;
  border: 1px solid transparent;
  transition: transform 80ms ease, box-shadow 120ms ease, background 120ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost   { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline-dark:hover { background: var(--bg-2); }
.btn-danger  { background: var(--danger); color: white; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-lg  { height: 48px; padding: 0 20px; font-size: 15px; }
.btn-xl  { height: 52px; padding: 0 22px; font-size: 16px; }
.btn-sm-dark    { height: 26px; padding: 0; font-size: 11.5px; width: 100%; background: var(--ink); color: var(--bg); border-radius: 8px; }
.btn-sm-outline { height: 26px; padding: 0; font-size: 11.5px; width: 100%; background: transparent; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; }
.tier-btn { width: 100%; margin-top: auto; }

/* ── Pills ─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 12px;
  font-family: "IBM Plex Mono", monospace;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}
.pill .dot.danger { background: var(--danger); }
.pill-accent {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-color: transparent;
}
.pill-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

/* status pills inside cards */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: .04em; font-weight: 500;
}
.s-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.status-ok      { background: var(--ok-soft);     color: var(--ok); }
.status-ok .s-dot { background: var(--ok); }
.status-planned { background: var(--accent-soft); color: var(--accent-ink); }
.status-planned .s-dot { background: var(--accent); }

/* ── Card ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ── NAV ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease;
}
.nav.scrolled,
.nav.open {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-word {
  font-family: "IBM Plex Serif", serif;
  font-weight: 600; font-size: 18px;
  letter-spacing: -.01em;
}
.logo-sigil {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
}
.logo-sigil svg {
  width: 100%; height: 100%;
  display: block;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-size: 14px; color: var(--ink-2);
  transition: color 120ms ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-cta-short { display: none; }
.nav-burger {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: transparent; color: var(--ink);
  padding: 0;
}
.nav-burger .icon-close { display: none; }
.nav-burger.open .icon-burger { display: none; }
.nav-burger.open .icon-close  { display: block; }

.nav-sheet {
  position: fixed; left: 0; right: 0; top: 64px; z-index: 49;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 24px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-sheet.open {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.nav-sheet a {
  display: block; padding: 12px 0; font-size: 17px;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.nav-sheet a:last-of-type { border-bottom: none; }

/* ── HERO ──────────────────────────────────────────────────────── */
.hero {
  padding-top: 88px;
  padding-bottom: 64px;
  overflow: hidden;
}

/* Marketing background animations */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.hero-grid-anim {
  position: absolute; inset: -80px;
  background-image:
    linear-gradient(color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 0%, transparent 72%);
  mask-image:         radial-gradient(ellipse 70% 80% at 50% 40%, #000 0%, transparent 72%);
  animation: grid-drift 16s linear infinite;
  opacity: .5;
}
@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 72px 72px; }
}
.hero-halo {
  position: absolute; left: 50%; top: 380px;
  width: min(1100px, 120vw); height: min(1100px, 120vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 58%);
  animation: halo-breathe 9s ease-in-out infinite;
}
@keyframes halo-breathe {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.96); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}
.hero-target {
  position: absolute; left: 50%; top: 380px;
  width: min(560px, 80vw); height: min(560px, 80vw);
  transform: translate(-50%, -50%);
  animation: target-spin 64s linear infinite;
  opacity: .4;
}
@keyframes target-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.hero-radial {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, color-mix(in oklab, var(--accent) 10%, transparent) 0%, transparent 65%);
}
.hero-sweep {
  position: absolute; top: -20%; bottom: -20%; width: 42%; left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.6) 45%, rgba(150,176,214,.15) 55%, transparent);
  transform: skewX(-14deg);
  mix-blend-mode: screen;
  animation: sweep 11s ease-in-out infinite;
}
@keyframes sweep {
  0%   { left: -60%; }
  45%  { left: 130%; }
  100% { left: 130%; }
}
.hero-emblem {
  position: absolute; left: 50%; top: 520px;
  width: min(220px, 28vw); height: min(220px, 28vw);
  transform: translate(-50%, -50%);
  opacity: .10;
  animation: emblem-bob 9s ease-in-out infinite;
  pointer-events: none;
}
.hero-emblem-glow {
  width: 100%; height: 100%;
  animation: emblem-pulse 9s ease-in-out infinite;
}
.hero-emblem svg {
  width: 100%; height: 100%; display: block;
}
@keyframes emblem-bob {
  0%, 100% { transform: translate(-50%, -50%) scale(.992); }
  50%       { transform: translate(-50%, -50%) scale(1.012); }
}
@keyframes emblem-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(35,75,138,.28)); }
  50%       { filter: drop-shadow(0 0 24px rgba(35,75,138,.52)); }
}

/* Hero content */
.hero-pills {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.hero-headline {
  font-size: clamp(48px, 7vw, 96px);
  max-width: 1100px;
}
.hero-sub-line {
  display: block;
  color: var(--ink-3);
  margin-top: 12px;
  font-size: .55em;
  letter-spacing: -.01em;
}
.hero-body {
  margin-top: 28px;
  max-width: 640px;
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.5;
}
.hero-note {
  font-size: 13px; color: var(--ink-3);
}
.cta-row {
  margin-top: 36px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.cta-center { justify-content: center; }
.hero-meta { margin-left: 6px; font-size: 12px; color: var(--ink-3); }
.hero-shot { margin-top: 72px; }

/* ── Product frame ─────────────────────────────────────────────── */
.product-frame { margin: 0; }
.frame-shell {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-lg);
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-2) 80%, var(--ink) 4%);
}
.frame-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.dot-r { background: #E96B5B; }
.dot-y { background: #E1B53D; }
.dot-g { background: #69BD53; }
.frame-title {
  margin-left: 12px;
  font-size: 11px; color: var(--ink-3);
}
.frame-shell img {
  width: 100%; display: block;
}
.frame-caption {
  font-size: 12px; color: var(--ink-3);
  margin-top: 12px; text-align: center;
  display: block;
}

/* ── Trust strip ───────────────────────────────────────────────── */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.trust-inner {
  display: flex; gap: 32px; flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px 0;
}
.trust-item {
  font-size: 12px; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
.trust-check { color: var(--ok); }

/* ── Section helpers ───────────────────────────────────────────── */
.section-body {
  color: var(--ink-2); font-size: 17px;
  margin-top: 18px; line-height: 1.55;
  max-width: 560px;
}
.section-ey-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.section-ey-row .eyebrow { margin-bottom: 0; }

/* ── Bullet list ───────────────────────────────────────────────── */
.bullet-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 28px; max-width: 540px;
}
.bullet {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--ink);
}
.bullet::before {
  content: "";
  flex: 0 0 18px; height: 18px; margin-top: 2px;
  border-radius: 4px;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='oklch(0.32 0.16 277)' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12l5 5L20 6'/></svg>");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── CLI block ─────────────────────────────────────────────────── */
.cli-block {
  margin-top: 32px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 12.5px; line-height: 1.7;
  max-width: 540px;
}
.cli-dim { color: var(--ink-2); }

/* ── Differentiator cards ──────────────────────────────────────── */
.diff-card {
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}
.diff-top {
  display: flex; justify-content: space-between;
  align-items: center; gap: 10px; flex-wrap: wrap;
}
.diff-title {
  font-size: 22px; line-height: 1.2; margin: 0;
  letter-spacing: -.01em; font-weight: 500;
  min-height: 2.4em;
}
.diff-body {
  margin: 0; color: var(--ink-2); font-size: 14.5px;
  line-height: 1.55; min-height: 4.4em;
}
.diff-visual {
  margin-top: auto; padding-top: 4px;
  padding: 12px; border-radius: 10px;
  border: 1px dashed var(--line-2);
  background: var(--bg-2);
}

/* Chain visual */
.chain-visual { display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; }
.chain-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 8px; align-items: center; min-width: 0;
}
.chain-t { color: var(--ink-3); }
.chain-a { color: var(--accent-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chain-h { white-space: nowrap; }
.chain-h.ok { color: var(--ok); }
.chain-footer {
  color: var(--ok); display: flex; align-items: center; gap: 6px;
  padding-top: 4px; border-top: 1px dashed var(--line-2); margin-top: 2px;
  font-size: 10.5px;
}

/* Risk visual */
.risk-visual { display: flex; flex-direction: column; gap: 10px; }
.risk-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.risk-action { font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.risk-badge  {
  flex-shrink: 0; padding: 2px 7px; border-radius: 999px;
  background: var(--danger-soft); color: var(--danger);
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
}
.risk-meter  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.risk-seg    { display: flex; flex-direction: column; gap: 4px; }
.risk-bar    { height: 5px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 8%, transparent); }
.risk-bar.danger { background: var(--danger); }
.risk-lbl    { font-size: 9.5px; text-align: center; color: var(--ink-3); }
.risk-lbl.danger { color: var(--danger); }
.risk-note   { font-size: 10.5px; color: var(--ink-2); }
.risk-btns   { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* Planned label bar */
.planned-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 4px;
}
.planned-rule { flex: 1; height: 1px; background: var(--line); }

/* Perms visual */
.perms-visual { display: flex; flex-direction: column; gap: 7px; }
.perm-row     { display: flex; align-items: center; gap: 9px; font-size: 12.5px; min-width: 0; }
.perm-icon {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: "IBM Plex Mono", monospace;
}
.denied-icon { background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--ink-3); }
.ok-icon     { background: var(--ok-soft); color: var(--ok); }
.perm-lbl    { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perm-lbl.struck { text-decoration: line-through; text-decoration-color: var(--line-2); color: var(--ink-3); }
.perms-footer {
  font-size: 10.5px; color: var(--ok);
  padding-top: 4px; border-top: 1px dashed var(--line-2); margin-top: 2px;
  display: flex; align-items: center; gap: 6px;
}

/* ── Preflight dialog ──────────────────────────────────────────── */
.preflight-card { padding: 0; overflow: hidden; max-width: 560px; margin-inline: auto; }
.pd-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.pd-header-l { display: flex; align-items: center; gap: 10px; }
.pd-icon-wrap {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: var(--danger-soft); color: var(--danger);
  display: inline-flex; align-items: center; justify-content: center;
}
.pd-title  { font-size: 14px; font-weight: 600; }
.pd-sub    { font-size: 11px; color: var(--ink-3); }
.pd-body   { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.pd-diff   { font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.diff-row  { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.diff-k    { color: var(--ink-3); width: 80px; flex-shrink: 0; }
.diff-v    { color: var(--ink); }
.diff-v.warn { color: var(--warn); }
.pd-warn {
  padding: 10px 12px; border-radius: 8px;
  background: var(--warn-soft); color: var(--ink-2);
  font-size: 12.5px; display: flex; gap: 10px; align-items: flex-start;
}
.pd-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }

/* Info callout */
.info-callout {
  margin-top: 22px; padding: 12px 14px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 13px; display: flex; gap: 10px; align-items: flex-start;
  max-width: 520px;
}

/* ── Product tour ──────────────────────────────────────────────── */
.tour-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 32px;
  flex-wrap: wrap; gap: 16px;
}
.tour-blurb { color: var(--ink-3); font-size: 15px; max-width: 360px; margin: 0; }
.tour-tabs  { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tour-tab {
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
  transition: all 140ms ease;
}
.tour-tab.active,
.tour-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
}
.tour-tab:hover:not(.active):not([aria-selected="true"]) { background: var(--bg-2); }

/* ── RBAC matrix ───────────────────────────────────────────────── */
.rbac-wrap { padding: 0; overflow: hidden; }
.rbac-table {
  width: 100%; border-collapse: collapse;
  min-width: 380px;
}
.rbac-table th, .rbac-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.rbac-table thead th {
  padding: 14px 14px;
  font-size: 13px; font-weight: 500;
  text-align: center;
}
.rbac-cap {
  text-align: left !important;
  font-size: 12px !important;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.rbac-table tbody td:first-child { padding-left: 18px; }
.rbac-table .rbac-last td { border-bottom: none; }
.rbac-ok  { text-align: center; color: var(--ok); background: color-mix(in oklab, var(--ok-soft) 50%, transparent); }
.rbac-no  { text-align: center; color: var(--ink-3); }

/* ── Pricing ───────────────────────────────────────────────────── */
.billing-toggle { display: flex; justify-content: center; margin-bottom: 32px; }
.billing-seg {
  display: inline-flex; padding: 4px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2);
}
.billing-btn {
  height: 32px; padding: 0 16px; border-radius: 999px; border: none;
  background: transparent; color: var(--ink-2);
  font-family: inherit; font-size: 13px; font-weight: 500;
  transition: all 140ms ease; white-space: nowrap;
}
.billing-btn.active {
  background: var(--ink); color: var(--bg);
}
.pricing-grid { align-items: stretch; }
.tier-card {
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.tier-popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.popular-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: white;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.coming-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--bg-3); color: var(--ink-2);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: .06em; font-weight: 500;
  border: 1px solid var(--line-2);
}
.tier-name { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.tier-tag  { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.tier-price-row { display: flex; align-items: baseline; gap: 6px; }
.tier-price {
  font-size: 44px; font-weight: 500;
  letter-spacing: -.02em;
  transition: opacity 180ms ease;
}
.tier-price.fading { opacity: 0; }
.tier-unit  { color: var(--ink-3); font-size: 13px; }
.tier-billing { font-size: 11px; color: var(--ink-3); margin-top: -10px; }
.tier-divider { height: 1px; background: var(--line); margin: 4px 0; }
.tier-list { display: flex; flex-direction: column; gap: 10px; }
.tier-list li {
  display: flex; gap: 10px;
  font-size: 14px; color: var(--ink-2); line-height: 1.45;
}
.tier-list li::before {
  content: "✓"; color: var(--ok); margin-top: 1px; flex-shrink: 0;
  font-size: 13px;
}
.pricing-fine {
  margin-top: 28px; padding: 16px 20px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px;
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 12px; color: var(--ink-3);
}
.enterprise-panel {
  margin-top: 24px; padding: 28px 32px;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.enterprise-title { font-size: 26px; margin: 0; font-weight: 500; letter-spacing: -.01em; margin-top: 8px; }
.enterprise-body  { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.waitlist-form { display: flex; flex-direction: column; gap: 8px; }
.waitlist-row  { display: flex; gap: 8px; }
.waitlist-input {
  flex: 1; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 14px; outline: none;
  transition: border-color 120ms ease;
}
.waitlist-input:focus { border-color: var(--accent); }
.waitlist-ok {
  padding: 12px 14px; border-radius: 10px;
  background: var(--ok-soft); color: var(--ok);
  font-size: 13px;
}

/* ── Pilot bar ─────────────────────────────────────────────────── */
.pilot-bar {
  padding-block: 64px;
  background: var(--ink); color: var(--bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pilot-count-col { display: flex; flex-direction: column; gap: 4px; }
.pilot-num  { font-size: 60px; font-weight: 500; line-height: 1; color: var(--accent); }
.pilot-lbl  { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, var(--bg) 60%, transparent); }
.pilot-title{ font-size: 28px; margin: 0; font-weight: 500; letter-spacing: -.01em; }
.pilot-body { margin-top: 10px; color: color-mix(in oklab, var(--bg) 70%, transparent); font-size: 15px; max-width: 640px; }
.pilot-cta  { background: var(--accent); color: white; border: 1px solid var(--accent); }
.pilot-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ── Roadmap ───────────────────────────────────────────────────── */
.roadmap-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 40px;
  flex-wrap: wrap; gap: 16px;
}
.roadmap-note { font-size: 12px; color: var(--ink-3); max-width: 320px; margin: 0; }
.roadmap-grid { position: relative; }
.roadmap-line {
  position: absolute; top: 18px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(to right, var(--accent), var(--line-2));
  pointer-events: none;
}
.roadmap-card {
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.rdot-row { display: flex; align-items: center; gap: 10px; }
.rdot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.rdot.shipping { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 8%, transparent); }
.rdot.next     { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 8%, transparent); }
.rdot.planned  { background: var(--bg-3); border: 1px solid var(--line-2); }
.rdot-when { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.rdot-ver  { font-size: 18px; font-weight: 500; color: var(--ink); }
.rdot-title{ font-size: 18px; font-weight: 500; margin-top: 4px; letter-spacing: -.01em; }
.rdot-list { display: flex; flex-direction: column; gap: 6px; }
.rdot-list li { font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; }
.rdot-list li::before { content: "—"; color: var(--ink-3); flex-shrink: 0; }
.roadmap-not {
  margin-top: 24px; padding: 16px 20px;
  border-radius: 10px; border: 1px dashed var(--line-2);
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12px;
}
.rno-label { color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.roadmap-not span:not(.rno-label) { color: var(--ink-2); }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-contact { color: var(--ink-3); margin-top: 16px; font-size: 15px; }
.faq-contact a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0;
  cursor: pointer; list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0; margin-top: 4px;
  color: var(--ink-3); font-size: 16px;
  transition: transform 160ms ease;
  display: inline-block;
}
.faq-item[open] .faq-chevron { transform: rotate(90deg); }
.faq-q {
  font-size: 19px; letter-spacing: -.005em; font-weight: 500;
}
.faq-a {
  margin: 0 0 20px 32px;
  color: var(--ink-2); font-size: 15px; line-height: 1.6;
  max-width: 640px;
}

/* ── Final CTA ─────────────────────────────────────────────────── */
.final-headline { font-size: clamp(40px, 6vw, 72px); }
.final-sha { margin-top: 22px; font-size: 12px; color: var(--ink-3); }

/* ── Footer ────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-top: 56px; padding-bottom: 32px; }
.footer-tag    { margin-top: 16px; color: var(--ink-3); font-size: 14px; max-width: 320px; }
.footer-meta   { margin-top: 16px; font-size: 11px; color: var(--ink-3); }
.footer-col-head {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-3); margin-bottom: 14px;
}
.footer-links  { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--ink-2); transition: color 120ms ease; }
.footer-links a:hover { color: var(--ink); }
.footer-base {
  margin-top: 56px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  font-size: 11px; color: var(--ink-3);
}

/* ─────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────── */

/* ── Tablet / small laptop ─ 1024px ───────────────────────────── */
@media (max-width: 1024px) {
  .section-pad { padding-block: 72px; }
  .wrap { width: min(1200px, calc(100% - 40px)); }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-split,
  .grid-split-r,
  .grid-split-l,
  .grid-faq,
  .enterprise-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-body { max-width: none; }
  .bullet-list  { max-width: none; }
  .cli-block    { max-width: none; }
  .info-callout { max-width: none; }

  /* Pricing cards — slightly smaller at 768-1024 */
  .tier-card { padding: 22px; }
}

/* ── Burger nav ─ 880px ───────────────────────────────────────── */
@media (max-width: 880px) {
  .nav-links  { display: none; }
  .nav-signin { display: none; }
  .nav-burger { display: inline-flex; }
  /* Solid background always on mobile — prevents hero animations bleeding through logo */
  .nav {
    background: color-mix(in oklab, var(--bg) 94%, transparent);
    border-bottom-color: var(--line);
  }
}

/* ── Small tablet / large phone ─ 720px ──────────────────────── */
@media (max-width: 720px) {
  .section-pad { padding-block: 56px; }
  .wrap { width: min(1200px, calc(100% - 32px)); }
  .grid   { gap: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-pilot  { grid-template-columns: 1fr; gap: 20px; }
  .grid-footer { grid-template-columns: 1fr 1fr; gap: 32px 24px; }

  .btn  { font-size: 14px; height: 42px; padding: 0 16px; }
  .pill { font-size: 11px; }

  .roadmap-line { display: none; }
  .pframe-mono  { display: none; }
  .hero-note    { display: none; }
  .hero-meta    { display: none; }

  .nav-cta-long  { display: none; }
  .nav-cta-short { display: inline !important; }

  /* Hero */
  .hero          { padding-top: 64px; padding-bottom: 48px; }
  .hero-headline { font-size: clamp(34px, 9vw, 64px); }
  .hero-body     { font-size: 16px; margin-top: 20px; }
  .hero-shot     { margin-top: 40px; }
  .hero-pills    { margin-bottom: 20px; }
  .hero-emblem   {
    width: min(200px, 52vw); height: min(200px, 52vw);
    top: 420px; opacity: .08;
  }

  /* Remove fixed-height alignment helpers — irrelevant in 1-col layout */
  .diff-title { min-height: 0; }
  .diff-body  { min-height: 0; }
  .diff-card  { padding: 20px; }

  /* FAQ */
  .faq-q { font-size: 16px; }
  .faq-a { margin-left: 20px; }

  /* Pilot bar */
  .pilot-bar   { padding-block: 48px; }
  .pilot-num   { font-size: 44px; }
  .pilot-title { font-size: 22px; }
  .pilot-cta   { width: 100%; justify-content: center; }

  /* Pricing */
  .tier-price  { font-size: 36px; }
  .tier-card   { padding: 20px; }

  /* Tour tabs — horizontal scroll on small screens */
  .tour-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
               padding-bottom: 4px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tab  { flex-shrink: 0; scroll-snap-align: start; }

  /* RBAC table — allow horizontal scroll */
  .rbac-wrap  { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rbac-table { min-width: 420px; }

  /* Section intro spacing */
  .section-intro { margin-bottom: 36px !important; }
}

/* ── Phone ─ 480px ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .section-pad { padding-block: 48px; }
  .wrap { width: min(1200px, calc(100% - 24px)); }

  .grid-footer { grid-template-columns: 1fr; }
  .trust-inner { justify-content: flex-start; gap: 16px 32px; }
  .tour-head   { flex-direction: column; align-items: flex-start; }

  /* Hero — tighten further */
  .hero          { padding-top: 52px; padding-bottom: 36px; }
  .hero-headline { font-size: clamp(30px, 9vw, 48px); }
  .hero-body     { font-size: 15px; }
  .hero-emblem   { top: 260px; opacity: .15; }

  /* CTA row — full-width buttons */
  .cta-row .btn-lg, .cta-row .btn-xl { width: 100%; justify-content: center; }
  .cta-center .btn-xl { width: auto; }

  /* Pilot bar */
  .pilot-num   { font-size: 36px; }
  .pilot-lbl   { font-size: 10px; }
  .pilot-title { font-size: 20px; }
  .pilot-body  { font-size: 14px; }

  /* Pricing */
  .tier-price        { font-size: 32px; }
  .tier-card         { padding: 18px; gap: 14px; }
  .enterprise-panel  { padding: 20px; }
  .pricing-fine      { flex-direction: column; gap: 5px; }

  /* Waitlist — stack input above button */
  .waitlist-row { flex-direction: column; }
  .waitlist-row .btn { width: 100%; }

  /* FAQ */
  .faq-q { font-size: 15px; }
  .faq-a { margin-left: 12px; font-size: 14px; }
  .faq-item summary { padding: 16px 0; gap: 10px; }

  /* Final headline */
  .final-headline { font-size: clamp(28px, 8vw, 48px); }

  /* Footer base — stack to column */
  .footer-base { flex-direction: column; gap: 8px; }
}

/* ── Very small phone ─ 375px ────────────────────────────────── */
@media (max-width: 375px) {
  .wrap { width: min(1200px, calc(100% - 16px)); }
  .section-pad { padding-block: 40px; }

  /* Nav — hide download btn; burger is enough at this width */
  .nav-actions .btn { display: none; }
  .logo-word { font-size: 16px; }

  /* Hero */
  .hero          { padding-top: 44px; }
  .hero-headline { font-size: clamp(26px, 8.5vw, 40px); }
  .hero-body     { font-size: 14px; }
  .cta-row       { gap: 8px; }

  /* Pricing */
  .tier-price { font-size: 28px; }
  .tier-card  { padding: 14px; }
  .enterprise-panel { padding: 14px; }

  /* Pilot */
  .pilot-num { font-size: 32px; }

  /* Final */
  .final-headline { font-size: clamp(24px, 7.5vw, 40px); }

  /* FAQ */
  .faq-q { font-size: 14px; }
  .faq-a { font-size: 13px; }

  /* Footer */
  .footer-tag  { font-size: 13px; }
  .footer-meta { font-size: 10px; }
}

/* ── Waitlist form (large, hero-level) ────────────────────────── */
.waitlist-form-lg { text-align: left; }
.waitlist-row-lg {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
}
.waitlist-input-lg {
  flex: 1 1 280px; max-width: 400px;
  height: 52px; padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: inherit; font-size: 15px; color: var(--ink);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.waitlist-input-lg::placeholder { color: var(--ink-3); }
.waitlist-input-lg:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 15%, transparent);
}

/* Pilot num – "Early" label */
.pilot-num { font-size: 20px; letter-spacing: .04em; }

/* ── Waitlist confirmation modal ──────────────────────────────────────────── */
.wl-modal-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--ink) 40%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
  opacity: 0;
  animation: wl-fade-in 200ms ease forwards;
}
.wl-modal-backdrop[hidden] { display: none; }

@keyframes wl-fade-in {
  to { opacity: 1; }
}

.wl-modal-card {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 24px 64px color-mix(in oklab, var(--ink) 18%, transparent);
  padding: 48px 40px 40px;
  max-width: 440px; width: 100%;
  text-align: center;
  transform: translateY(8px);
  animation: wl-card-in 260ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wl-card-in {
  to { transform: translateY(0); }
}

.wl-modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border: 1.5px solid color-mix(in oklab, var(--accent) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
}

.wl-modal-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 14px;
}

.wl-modal-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.wl-modal-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0 0 28px;
  line-height: 1.5;
}

.wl-modal-cta {
  width: 100%;
  height: 48px;
  font-size: 15px;
  margin-bottom: 20px;
}

.wl-modal-trust {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-3);
}
