/* ============================================================
   ZenPense — Marketing Site v3 "Lotus Midnight"
   Brand-exact: ZenPalette (DesignSystem.swift) + DM Sans (app font)
   midnight #0A0F14 · teal #33BD94 · mint #59D18F · cyan #6BB8FF
   sapphire #3B8AFA · indigo #6679F5 · coral #FA787F · amber #FAB847
   ============================================================ */

:root {
  /* Canvas — ZenPalette dark */
  --midnight: #0a0f14;
  --charcoal: #0f1721;
  --surface: #141c29;
  --elevated: #1f2938;
  --stroke: rgba(51, 66, 87, 0.55);
  --stroke-strong: #334257;

  /* Text */
  --text: #f5f7fa;
  --text-2: #a8b5c4;
  --text-3: #667484;

  /* Brand accents — ZenPalette */
  --teal: #33bd94;
  --mint: #59d18f;
  --cyan: #6bb8ff;
  --sapphire: #3b8afa;
  --indigo: #6679f5;
  --coral: #fa787f;
  --amber: #fab847;

  --grad-brand: linear-gradient(100deg, var(--sapphire), var(--cyan) 45%, var(--teal));
  --grad-lotus: linear-gradient(135deg, #2456c4, var(--sapphire) 40%, var(--cyan));

  /* Type — DM Sans is the app's identity font */
  --font-sans: "DM Sans", "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "Spline Sans Mono", "SF Mono", monospace;

  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--midnight);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--sapphire); color: #fff; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Atmosphere ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58rem 38rem at 82% -10%, rgba(59, 138, 250, 0.13), transparent 60%),
    radial-gradient(46rem 32rem at -6% 30%, rgba(51, 189, 148, 0.08), transparent 65%),
    radial-gradient(50rem 40rem at 50% 115%, rgba(102, 121, 245, 0.10), transparent 60%);
}
.grain::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 9999; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 138, 250, 0.07), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
}

/* ---------- Layout & type ---------- */
.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex; align-items: center; gap: 0.9rem;
}
.kicker::before { content: ""; width: 2.2rem; height: 1px; background: linear-gradient(90deg, var(--sapphire), transparent); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }
.display { font-size: clamp(3rem, 7.4vw, 6.2rem); line-height: 0.98; font-weight: 700; }
.headline { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.05; margin: 1.1rem 0 1.4rem; font-weight: 700; }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.serif-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-2); max-width: 38rem; font-weight: 400; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100; display: flex; align-items: center; transition: 0.4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10, 15, 20, 0.72); backdrop-filter: blur(20px); border-bottom-color: var(--stroke); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: min(1200px, 92vw); margin-inline: auto; }

.logo { display: flex; align-items: center; gap: 0.7rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 18px -4px rgba(59, 138, 250, 0.5); }
.logo span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 2.1rem; align-items: center; font-size: 0.92rem; color: var(--text-2); }
.nav-links a { position: relative; transition: color 0.25s; padding: 0.3rem 0; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.8rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, filter 0.3s;
  white-space: nowrap; position: relative;
}
.btn-brand { background: var(--grad-brand); color: #06121d; box-shadow: 0 8px 28px -8px rgba(59, 138, 250, 0.55); }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(59, 138, 250, 0.7); filter: brightness(1.08); }
.btn-glass {
  background: rgba(31, 41, 56, 0.45); color: var(--text);
  border: 1px solid var(--stroke-strong); backdrop-filter: blur(10px);
}
.btn-glass:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.nav-links .btn.btn-sm {
  min-height: 2.5rem;
  padding: 0.62rem 1.25rem;
  line-height: 1;
  color: #06121d;
}
.nav-links .btn::after { display: none; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--text); }

/* ============================================================
   HERO — full-bleed cinematic film
   ============================================================ */
.hero-cinema {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; overflow: hidden;
  padding: calc(var(--nav-h) + 3rem) 4vw 6rem;
}
.hero-film {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05);
}
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(10, 15, 20, 0.2), transparent 50%),
    radial-gradient(60% 52% at 50% 46%, rgba(10, 15, 20, 0.38), transparent 100%),
    linear-gradient(180deg, rgba(10, 15, 20, 0.82) 0%, rgba(10, 15, 20, 0.38) 34%, rgba(10, 15, 20, 0.3) 60%, var(--midnight) 100%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.1rem 0.45rem 0.55rem; border-radius: 999px;
  background: rgba(20, 28, 41, 0.55); border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  font-size: 0.8rem; color: var(--text-2);
  animation: fade-up 0.9s var(--ease-out) 0.05s backwards;
}
.hero-badge img { width: 24px; height: 24px; border-radius: 7px; }
.hero-badge b { color: var(--mint); font-weight: 600; }

.hero-cinema h1 { margin-top: 1.6rem; text-shadow: 0 8px 60px rgba(0, 0, 0, 0.6); }
.hero-cinema h1 .row { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-cinema h1 .row > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease-out) forwards; }
.hero-cinema h1 .row:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-cinema .lede {
  margin: 1.8rem auto 2.4rem; max-width: 34rem;
  opacity: 0; animation: fade-up 1s var(--ease-out) 0.5s forwards;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
  color: #c6d1de;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; opacity: 0; animation: fade-up 1s var(--ease-out) 0.66s forwards; }

.hero-meta {
  margin-top: 3rem; display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center;
  opacity: 0; animation: fade-up 1s var(--ease-out) 0.84s forwards;
}
.hero-meta span {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2);
  padding: 0.5rem 1rem; border-radius: 999px;
  background: rgba(20, 28, 41, 0.5); border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}
.hero-meta b { color: var(--cyan); font-weight: 500; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3);
  animation: fade-up 1s var(--ease-out) 1.2s backwards;
}
.scroll-hint::after { content: ""; display: block; width: 1px; height: 38px; margin: 0.7rem auto 0; background: linear-gradient(var(--cyan), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Film lightbox ---------- */
.film-modal {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(4, 7, 10, 0.88); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.film-modal.open { opacity: 1; visibility: visible; }
.film-modal video {
  width: min(1080px, 92vw); border-radius: var(--radius-lg);
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.9), 0 0 120px -30px rgba(59, 138, 250, 0.4);
}
.film-close {
  position: absolute; top: 4vh; right: 4vw;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(31, 41, 56, 0.6); border: 1px solid var(--stroke-strong);
  font-size: 1.1rem; color: var(--text-2);
  transition: color 0.25s, transform 0.25s;
}
.film-close:hover { color: var(--coral); transform: rotate(90deg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--stroke); padding: 1.1rem 0; overflow: hidden; background: var(--charcoal); }
.marquee-track { display: flex; gap: 3.2rem; width: max-content; animation: marquee 30s linear infinite; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.marquee-track span i { color: var(--sapphire); font-style: normal; margin-right: 3.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   MANIFESTO — the ZenPense way (ambient film background)
   ============================================================ */
.manifesto {
  position: relative; overflow: hidden; padding: clamp(6rem, 13vw, 11rem) 0;
  background: url("../assets/zenpense-way-background.png") center / cover no-repeat var(--midnight);
}
.manifesto-film {
  position: absolute; inset: -10% 0; z-index: -2; width: 100%; height: 120%;
  background: url("../assets/zenpense-way-background.png") center / cover no-repeat;
  opacity: 0.9; will-change: transform;
}
.manifesto-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--midnight) 0%, rgba(10, 15, 20, 0.45) 26%, rgba(10, 15, 20, 0.45) 74%, var(--midnight) 100%);
}
.manifesto .wrap { text-align: center; }
.manifesto-lede {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.4;
  max-width: 44rem; margin: 1.6rem auto 4.5rem; color: #d7e0ea;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; text-align: left; }
.principle {
  padding: 2.2rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 33, 0.62); backdrop-filter: blur(18px);
  border: 1px solid var(--stroke);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.principle:hover { transform: translateY(-6px); border-color: rgba(107, 184, 255, 0.45); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.8), 0 0 60px -24px rgba(59, 138, 250, 0.35); }
.principle .num {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.28em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.principle h3 { font-size: 1.5rem; margin: 0.9rem 0 0.7rem; font-weight: 700; }
.principle h3 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.principle p { font-size: 0.95rem; color: var(--text-2); }

/* ============================================================
   FIVE TABS — guided product story
   ============================================================ */
.product-tabs {
  overflow: hidden;
  background:
    radial-gradient(48rem 35rem at 27% 65%, rgba(59, 138, 250, 0.08), transparent 70%),
    var(--charcoal);
  border-block: 1px solid var(--stroke);
}
.split-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr); gap: 4rem; align-items: end; }
.split-intro .kicker::before { display: none; }
.split-intro .headline { margin-bottom: 0; }
.section-summary { color: var(--text-2); max-width: 26rem; padding-bottom: 0.45rem; font-size: 1rem; }
.guided-tabs { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr); gap: clamp(3rem, 7vw, 6.5rem); margin-top: 4.5rem; align-items: center; }

.app-stage {
  padding: 1rem; border-radius: 30px;
  background: linear-gradient(155deg, rgba(31, 41, 56, 0.72), rgba(10, 15, 20, 0.88));
  border: 1px solid rgba(107, 184, 255, 0.34);
  box-shadow: 0 45px 120px -40px rgba(0, 0, 0, 0.9), 0 0 90px -45px rgba(59, 138, 250, 0.7);
}
.app-stage-top { display: flex; align-items: center; justify-content: space-between; padding: 0.25rem 0.35rem 0.9rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.stage-status { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--mint); }
.app-preview { display: grid; gap: 0.75rem; padding: 1rem; border-radius: 22px; background: rgba(8, 13, 19, 0.76); border: 1px solid var(--stroke); transition: opacity 0.2s, transform 0.35s var(--ease-out); }
.app-preview.is-changing { opacity: 0.2; transform: translateY(8px); }
.preview-metric, .preview-card { padding: 1.15rem; border-radius: 16px; background: rgba(20, 28, 41, 0.82); border: 1px solid rgba(51, 66, 87, 0.5); }
.preview-label { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; color: var(--text-3); }
.preview-metric > div { display: flex; align-items: baseline; gap: 0.55rem; margin: 0.35rem 0 0.7rem; }
.preview-metric strong, .preview-chart-card strong, .breakdown-head strong { display: block; font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.04em; }
.preview-metric small, .breakdown-head > span { color: var(--text-3); font-size: 0.72rem; }
.metric-bar { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: var(--elevated); }
.metric-bar i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--grad-brand); transition: width 0.55s var(--ease-out); }
.preview-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 0.75rem; }
.preview-chart-card { position: relative; min-height: 8.5rem; overflow: hidden; }
.preview-chart-card strong { margin-top: 0.35rem; font-size: 1.45rem; }
.positive { color: var(--mint); font-family: var(--font-mono); font-size: 0.62rem; }
.sparkline { position: absolute; right: 1rem; bottom: 1rem; width: 42%; height: 4rem; display: flex; align-items: end; gap: 4px; }
.sparkline i { flex: 1; border-radius: 4px 4px 1px 1px; background: linear-gradient(var(--teal), rgba(51, 189, 148, 0.15)); }
.sparkline i:nth-child(1) { height: 18%; }.sparkline i:nth-child(2) { height: 31%; }.sparkline i:nth-child(3) { height: 28%; }.sparkline i:nth-child(4) { height: 46%; }.sparkline i:nth-child(5) { height: 42%; }.sparkline i:nth-child(6) { height: 68%; }.sparkline i:nth-child(7) { height: 86%; }
.attention-card { background: linear-gradient(145deg, rgba(59, 138, 250, 0.08), rgba(20, 28, 41, 0.82)); }
.attention-card .preview-label { color: var(--cyan); }
.attention-card p { margin-top: 0.9rem; font-size: 0.83rem; line-height: 1.5; color: var(--text-2); }
.breakdown-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.breakdown-head strong { margin-top: 0.25rem; font-size: 1.45rem; }
.data-rows { display: grid; }
.data-rows > div { display: grid; grid-template-columns: 1fr 5rem 2.8rem; align-items: center; gap: 0.7rem; padding: 0.5rem 0; border-top: 1px solid rgba(51, 66, 87, 0.35); font-size: 0.75rem; }
.data-rows > div span { display: flex; align-items: center; gap: 0.55rem; }
.data-rows i {
  flex: 0 0 auto; width: 1.6rem; height: 1.6rem;
  display: inline-block; text-align: center; line-height: 1.6rem;
  border-radius: 8px; color: var(--cyan);
  background: rgba(59, 138, 250, 0.1); font-size: 0.95rem;
}
.data-rows b, .data-rows small { text-align: right; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 400; }
.data-rows small { color: var(--text-3); }
.recent-card { padding-block: 0.9rem; }
.recent-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem; margin-top: 0.55rem; font-size: 0.74rem; }
.recent-row > span:nth-child(2) { display: grid; }
.recent-row small { color: var(--text-3); }
.recent-row > strong { font-family: var(--font-mono); font-size: 0.72rem; }
.merchant-icon { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; color: var(--mint); background: rgba(51, 189, 148, 0.12); font-size: 1.05rem; }

.tab-journey { position: relative; display: grid; }
.tab-journey::before { content: ""; position: absolute; top: 2rem; bottom: 2rem; left: 1.55rem; width: 1px; background: linear-gradient(var(--sapphire), var(--stroke) 18%, var(--stroke) 82%, transparent); }
.journey-step { position: relative; z-index: 1; display: grid; grid-template-columns: 3.2rem 2.8rem 1fr; gap: 0.8rem; align-items: start; width: 100%; padding: 1rem 0; text-align: left; color: var(--text-3); transition: color 0.3s; }
.step-index { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border: 1px solid var(--stroke-strong); border-radius: 13px; background: var(--charcoal); font-family: var(--font-mono); font-size: 0.72rem; transition: border-color 0.3s, box-shadow 0.3s, color 0.3s; }
.step-icon { padding-top: 0.55rem; font-size: 1.45rem; }
.step-copy { display: grid; padding-top: 0.35rem; }
.step-copy strong { font-size: 1.35rem; color: currentColor; transition: color 0.3s; }
.step-copy small { margin-top: 0.18rem; font-size: 0.82rem; color: var(--text-3); }
.step-copy em { max-height: 0; overflow: hidden; opacity: 0; font-style: normal; color: var(--text-2); font-size: 0.82rem; line-height: 1.55; transition: max-height 0.45s var(--ease-out), opacity 0.3s, margin 0.3s; }
.journey-step::after { content: ""; grid-column: 3; width: 100%; height: 2px; margin-top: 0.1rem; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.journey-step:hover { color: var(--text-2); }
.journey-step:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; border-radius: 14px; }
.journey-step.active { color: var(--cyan); }
.journey-step.active .step-index { border-color: var(--sapphire); color: var(--text); box-shadow: 0 0 28px -8px rgba(59, 138, 250, 0.8); }
.journey-step.active .step-copy small { color: var(--text); }
.journey-step.active .step-copy em { max-height: 7rem; opacity: 1; margin-top: 0.6rem; }
.journey-step.active::after { transform: scaleX(1); }
.tab-dock {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem;
  padding: 0.4rem; border: 1px solid var(--stroke); border-radius: 999px;
  background: rgba(10, 15, 20, 0.74); backdrop-filter: blur(16px);
}
.dock-tab { display: flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3.5rem; padding: 0.65rem 0.8rem; border-radius: 999px; color: var(--text-2); font-size: 0.82rem; transition: color 0.3s, background 0.3s, box-shadow 0.3s; }
.dock-tab i { font-size: 1.2rem; }
.dock-tab:hover { color: var(--text); }
.dock-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.dock-tab.active { color: #06121d; background: var(--grad-brand); box-shadow: 0 10px 30px -12px rgba(59, 138, 250, 0.75); font-weight: 600; }

/* ============================================================
   EVERYTHING INCLUDED — flow + ledger
   ============================================================ */
.included-section { overflow: hidden; }
.included-intro { margin-bottom: 4rem; }
.capture-flow {
  display: grid; grid-template-columns: 0.78fr 1.42fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(20, 28, 41, 0.8), rgba(10, 15, 20, 0.72));
  border: 1px solid rgba(107, 184, 255, 0.3);
  box-shadow: 0 35px 90px -55px rgba(59, 138, 250, 0.7);
}
.feature-eyebrow { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.capture-copy h3, .trust-copy h3, .portable-copy h3 { margin: 0.65rem 0 0.55rem; font-size: 1.35rem; }
.capture-copy p, .trust-copy p, .portable-copy p, .feature-row p { color: var(--text-2); font-size: 0.88rem; }
.capture-points { display: grid; gap: 0.3rem; margin-top: 1rem; list-style: none; }
.capture-points li { position: relative; padding-left: 1rem; color: var(--text-2); font-size: 0.74rem; }
.capture-points li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--sapphire); }
.capture-steps { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; align-items: center; }
.capture-steps > div { display: grid; justify-items: center; text-align: center; min-width: 4.7rem; }
.capture-steps > div > span { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--stroke-strong); background: rgba(31, 41, 56, 0.52); color: var(--cyan); font-size: 1.35rem; }
.capture-steps b { margin-top: 0.6rem; font-size: 0.75rem; }
.capture-steps small { font-size: 0.65rem; color: var(--text-3); }
.flow-line { display: block; height: 1px; margin: 0 0.35rem 2.8rem; background: repeating-linear-gradient(90deg, rgba(107, 184, 255, 0.65) 0 4px, transparent 4px 8px); }

.feature-ledger { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.2rem; border-block: 1px solid var(--stroke); }
.feature-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: start; padding: 1.8rem 1.2rem; border-bottom: 1px solid var(--stroke); }
.feature-row:nth-child(odd) { border-right: 1px solid var(--stroke); padding-left: 0; padding-right: 2.2rem; }
.feature-row:nth-child(even) { padding-left: 2.2rem; padding-right: 0; }
.feature-row:nth-last-child(-n+2) { border-bottom: none; }
.feature-icon { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 50%; background: rgba(59, 138, 250, 0.09); color: var(--cyan); font-size: 1.35rem; }
.feature-row h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.feature-tag { padding-top: 0.3rem; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); }

.trust-band {
  display: grid; grid-template-columns: auto minmax(0, 1.25fr) minmax(18rem, 0.75fr); gap: 1.8rem; align-items: center;
  margin-top: 2.2rem; padding: 2rem; border-radius: var(--radius-lg);
  background:
    radial-gradient(20rem 14rem at 8% 50%, rgba(59, 138, 250, 0.16), transparent 70%),
    linear-gradient(145deg, rgba(20, 28, 41, 0.82), rgba(10, 15, 20, 0.75));
  border: 1px solid var(--stroke);
}
.trust-mark { width: 5rem; height: 5rem; display: grid; place-items: center; border-radius: 50%; color: var(--cyan); font-size: 2.8rem; border: 1px solid rgba(107, 184, 255, 0.35); box-shadow: 0 0 55px -18px rgba(59, 138, 250, 0.8); }
.portable-copy { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding-left: 1.8rem; border-left: 1px solid var(--stroke); }
.portable-copy > i { color: var(--cyan); font-size: 2.5rem; }
.portable-copy h3 { margin-top: 0; font-size: 1.05rem; }

/* ============================================================
   ZENAI
   ============================================================ */
.zenai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ai-demo {
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(150deg, rgba(102, 121, 245, 0.5), rgba(51, 66, 87, 0.25) 40%, rgba(107, 184, 255, 0.45));
  box-shadow: 0 40px 110px -32px rgba(0, 0, 0, 0.85);
}
.ai-demo .msgs {
  border-radius: calc(var(--radius-lg) - 1px);
  background: rgba(13, 20, 29, 0.92);
  padding: 2rem 1.8rem 1rem;
  display: grid; gap: 1rem;
}
.msg {
  max-width: 86%; padding: 0.9rem 1.15rem; border-radius: 18px;
  font-size: 0.9rem; line-height: 1.55;
  opacity: 0; animation: msg-in 0.7s var(--ease-out) forwards;
}
@keyframes msg-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; } }
.msg.user { justify-self: end; background: linear-gradient(135deg, var(--sapphire), var(--indigo)); color: #fff; border-bottom-right-radius: 6px; }
.msg.ai { justify-self: start; background: var(--elevated); border: 1px solid var(--stroke); color: var(--text-2); border-bottom-left-radius: 6px; }
.msg.ai b { color: var(--text); }
.ai-demo .hint { padding: 1rem 1.8rem 1.6rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Stats band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--stroke);
  background: var(--charcoal);
}
.stat { padding: 3.2rem 1rem; text-align: center; border-right: 1px solid var(--stroke); }
.stat:last-child { border-right: none; }
.stat .num { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .num i { font-style: normal; font-size: 0.6em; }
.stat .cap { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-top: 0.4rem; }

/* ============================================================
   EARLY ACCESS — horizon film still
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(6rem, 12vw, 10rem) 0;
}
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 15, 20, 0.94) 0%, rgba(10, 15, 20, 0.62) 48%, rgba(10, 15, 20, 0.38) 100%),
    linear-gradient(180deg, var(--midnight) 0%, transparent 24%, transparent 76%, var(--midnight) 100%);
}
.cta-band .headline { text-shadow: 0 6px 50px rgba(0, 0, 0, 0.8); }
.cta-band .lede { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8); }
.early-access { scroll-margin-top: var(--nav-h); }
.early-access-layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(26rem, 0.78fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.early-access-copy .lede { max-width: 34rem; }
.access-notes { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 2rem; }
.access-notes span {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.8rem; border-radius: 999px;
  background: rgba(20, 28, 41, 0.58); border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  color: var(--text-2); font-family: var(--font-mono); font-size: 0.65rem;
}
.access-notes i { color: var(--cyan); font-size: 0.9rem; }

.waitlist-card {
  padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(20, 28, 41, 0.88), rgba(10, 15, 20, 0.8));
  border: 1px solid rgba(107, 184, 255, 0.38);
  backdrop-filter: blur(22px);
  box-shadow: 0 44px 110px -34px rgba(0, 0, 0, 0.92), 0 0 70px -34px rgba(59, 138, 250, 0.7);
}
.beta-status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--mint); font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.beta-status > span {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 5px rgba(89, 209, 143, 0.1), 0 0 18px rgba(89, 209, 143, 0.75);
}
.waitlist-card > h3 { margin-top: 1rem; font-size: clamp(1.55rem, 3vw, 2.05rem); }
.waitlist-card > p { margin-top: 0.45rem; color: var(--text-2); font-size: 0.92rem; }
.waitlist-form { margin-top: 1.7rem; }
.interest-options { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.interest-options legend, .field-label {
  display: block; width: 100%; margin-bottom: 0.55rem;
  color: var(--text-3); font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.interest-options legend { grid-column: 1 / -1; }
.interest-options label { position: relative; min-width: 0; cursor: pointer; }
.interest-options input { position: absolute; opacity: 0; pointer-events: none; }
.interest-choice {
  display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start;
  min-height: 6rem; padding: 0.9rem; border-radius: 15px;
  background: rgba(15, 23, 33, 0.66); border: 1px solid var(--stroke);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.interest-choice > i {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px;
  color: var(--cyan); background: rgba(59, 138, 250, 0.11); font-size: 1.05rem;
}
.interest-choice > span { display: grid; }
.interest-choice strong { font-size: 0.83rem; color: var(--text); }
.interest-choice small { margin-top: 0.2rem; color: var(--text-3); font-size: 0.7rem; line-height: 1.4; }
.interest-options label:hover .interest-choice { transform: translateY(-2px); border-color: var(--stroke-strong); }
.interest-options input:checked + .interest-choice { border-color: rgba(107, 184, 255, 0.65); background: linear-gradient(145deg, rgba(59, 138, 250, 0.15), rgba(20, 28, 41, 0.78)); }
.interest-options input:focus-visible + .interest-choice { outline: 2px solid var(--cyan); outline-offset: 3px; }
.field-label { margin-top: 1.2rem; }
.email-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.65rem; }
.email-row input {
  width: 100%; min-width: 0; padding: 0.85rem 1rem; border-radius: 999px;
  border: 1px solid var(--stroke-strong); background: rgba(8, 13, 19, 0.76);
  color: var(--text); font: inherit; font-size: 0.9rem; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.email-row input::placeholder { color: var(--text-3); }
.email-row input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(59, 138, 250, 0.12); }
.email-row .btn { padding-inline: 1.25rem; }
.form-note { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; color: var(--text-3); font-size: 0.68rem; line-height: 1.4; }
.form-note i { color: var(--mint); flex: 0 0 auto; }
.form-status { min-height: 1.35rem; margin-top: 0.55rem; color: var(--mint); font-size: 0.75rem; }
.form-status.error { color: var(--coral); }

/* ============================================================
   PAGE HERO (pricing / docs)
   ============================================================ */
.page-hero { padding: calc(var(--nav-h) + 5rem) 0 4rem; text-align: center; }
.page-hero .headline { margin-inline: auto; }
.pricing-hero { text-align: center; }
.pricing-hero .lede { margin-inline: auto; }

/* ---------- Pricing ---------- */
.billing-toggle {
  --billing-segment: 10.5rem;
  position: relative; display: inline-grid; grid-template-columns: repeat(2, var(--billing-segment)); margin-top: 2.6rem;
  border: 1px solid var(--stroke-strong); border-radius: 999px;
  background: rgba(20, 28, 41, 0.6); backdrop-filter: blur(10px);
  padding: 5px;
}
.billing-toggle button { width: var(--billing-segment); min-height: 2.65rem; padding: 0.6rem 0.75rem; border-radius: 999px; font-size: 0.88rem; color: var(--text-2); position: relative; z-index: 1; transition: color 0.3s; display: flex; justify-content: center; gap: 0.5rem; align-items: center; line-height: 1; }
.billing-toggle button.on { color: #06121d; font-weight: 600; }
.billing-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: var(--billing-segment); border-radius: 999px; background: var(--grad-brand); transition: transform 0.35s var(--ease-out); }
.billing-toggle.yearly .billing-pill { transform: translateX(100%); }
.save-tag { font-size: 0.64rem; padding: 0.1rem 0.5rem; background: rgba(6, 18, 29, 0.25); border-radius: 99px; }
.billing-toggle button:not(.on) .save-tag { background: rgba(89, 209, 143, 0.15); color: var(--mint); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; max-width: 880px; margin: 3rem auto 0; }
.plan {
  position: relative; padding: 2.5rem 2.3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(20, 28, 41, 0.9), rgba(15, 23, 33, 0.7));
  border: 1px solid var(--stroke);
  display: flex; flex-direction: column;
}
.plan.premium { border-color: rgba(107, 184, 255, 0.45); box-shadow: 0 40px 100px -36px rgba(59, 138, 250, 0.35); }
.plan.premium::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-lg); padding: 1px; z-index: -1;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 0.3rem 1.1rem; border-radius: 999px;
  background: var(--grad-brand); color: #06121d;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.plan h3 { font-size: 1.5rem; font-weight: 700; }
.plan .sub { color: var(--text-3); font-size: 0.88rem; margin-top: 0.3rem; }
.plan .price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 1.5rem; }
.plan .price small { font-size: 0.95rem; font-weight: 400; color: var(--text-3); }
.price-note { min-height: 1.3rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--mint); margin-top: 0.2rem; }
.plan ul { list-style: none; margin: 1.6rem 0 2.2rem; display: grid; gap: 0.65rem; flex: 1; }
.plan ul li { font-size: 0.9rem; color: var(--text-2); padding-left: 1.5rem; position: relative; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }
.plan ul li.no { color: var(--text-3); }
.plan ul li.no::before { content: "·"; color: var(--text-3); }
.plan ul li b { color: var(--text); }
.plan .btn { width: 100%; }

/* Comparison table */
.compare table { width: 100%; border-collapse: collapse; margin-top: 3rem; font-size: 0.9rem; }
.compare th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--stroke-strong); }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare td { padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--stroke); color: var(--text-2); }
.compare tr.grp td { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); background: rgba(31, 41, 56, 0.35); padding-top: 1.2rem; }
.compare .yes { color: var(--mint); }
.compare .lim { color: var(--amber); }
.compare .no-m { color: var(--text-3); }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  border: 1px solid var(--stroke); border-radius: var(--radius);
  background: rgba(20, 28, 41, 0.6);
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(107, 184, 255, 0.4); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--cyan); transition: transform 0.3s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.5rem 1.4rem; color: var(--text-2); font-size: 0.93rem; }

/* ============================================================
   DOCS
   ============================================================ */
.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(2rem, 5vw, 5rem); padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 6rem; }
.docs-side { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; display: grid; gap: 0.25rem; font-size: 0.9rem; }
.docs-side h6 { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-3); margin: 1.4rem 0 0.5rem; }
.docs-side a { color: var(--text-2); padding: 0.35rem 0.8rem; border-left: 2px solid var(--stroke); transition: color 0.25s, border-color 0.25s; }
.docs-side a:hover { color: var(--text); }
.docs-side a.here { color: var(--cyan); border-left-color: var(--cyan); }

.docs-main { max-width: 46rem; }
.docs-main section { margin-bottom: 4.5rem; scroll-margin-top: calc(var(--nav-h) + 2rem); }
.docs-main h2 { font-size: 1.9rem; margin-bottom: 1.1rem; font-weight: 700; }
.docs-main h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; font-weight: 600; }
.docs-main p { color: var(--text-2); margin-bottom: 0.9rem; font-size: 0.97rem; }
.docs-main p b, .docs-main li b { color: var(--text); }
.docs-main ul { margin: 0.6rem 0 1rem 1.2rem; color: var(--text-2); display: grid; gap: 0.5rem; font-size: 0.95rem; }
.docs-main code { font-family: var(--font-mono); font-size: 0.82em; background: var(--elevated); padding: 0.15em 0.45em; border-radius: 6px; color: var(--cyan); }

.callout {
  margin: 1.4rem 0; padding: 1.1rem 1.3rem; border-radius: var(--radius);
  background: rgba(59, 138, 250, 0.08); border: 1px solid rgba(59, 138, 250, 0.25);
  font-size: 0.92rem; color: var(--text-2);
}
.callout.warn { background: rgba(250, 184, 71, 0.07); border-color: rgba(250, 184, 71, 0.3); }
.callout b { color: var(--text); }

.doc-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.9rem; }
.doc-table th { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--stroke-strong); }
.doc-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--stroke); color: var(--text-2); }
.doc-table td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--stroke); background: var(--charcoal); padding: 4.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer .blurb { color: var(--text-3); font-size: 0.88rem; margin-top: 1rem; max-width: 20rem; }
.footer h5 { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.footer-grid a:not(.logo) { display: block; color: var(--text-2); font-size: 0.9rem; padding: 0.28rem 0; transition: color 0.25s; }
.footer-grid a:not(.logo):hover { color: var(--cyan); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--stroke); font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10, 15, 20, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stroke);
    max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { width: 100%; padding: 1rem 4vw; }
  .nav-links .btn { width: calc(100% - 8vw); margin: 0.8rem 4vw 1.2rem; padding: 0.9rem 1.25rem; }
  .nav-burger { display: flex; }

  .principles { grid-template-columns: 1fr; }
  .split-intro { grid-template-columns: 1fr; gap: 1.2rem; }
  .guided-tabs { grid-template-columns: 1fr; gap: 2.2rem; }
  .tab-journey { grid-row: 1; display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.2rem 0 0.8rem; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .tab-journey::-webkit-scrollbar { display: none; }
  .tab-journey::before { display: none; }
  .journey-step { min-width: 11rem; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0.55rem; padding: 0.9rem; border: 1px solid var(--stroke); border-radius: var(--radius); background: rgba(20, 28, 41, 0.5); scroll-snap-align: start; }
  .step-index { grid-row: 1 / 3; width: 2.5rem; height: 2.5rem; border-radius: 10px; }
  .step-icon { grid-column: 2; padding-top: 0; font-size: 1.2rem; }
  .step-copy { grid-column: 2; padding-top: 0; }
  .step-copy strong { font-size: 1rem; }
  .step-copy small, .step-copy em, .journey-step::after { display: none; }
  .journey-step.active { border-color: rgba(107, 184, 255, 0.55); background: linear-gradient(135deg, rgba(59, 138, 250, 0.13), rgba(51, 189, 148, 0.06)); }
  .tab-dock { display: none; }
  .capture-flow { grid-template-columns: 1fr; }
  .trust-band { grid-template-columns: auto 1fr; }
  .portable-copy { grid-column: 1 / -1; padding: 1.5rem 0 0; border-left: none; border-top: 1px solid var(--stroke); }
  .zenai-grid { grid-template-columns: 1fr !important; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--stroke); }
  .early-access-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .early-access-copy { max-width: 40rem; }
  .waitlist-card { max-width: 40rem; }
  .plans { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; border-bottom: 1px solid var(--stroke); padding-bottom: 1.4rem; }
  .docs-side h6 { width: 100%; margin: 0.6rem 0 0.1rem; }
  .docs-side a { border-left: none; padding: 0.2rem 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .billing-toggle { --billing-segment: min(10rem, calc(46vw - 10px)); }
  .billing-toggle button { padding-inline: 0.45rem; gap: 0.35rem; font-size: 0.82rem; }
  .save-tag { padding-inline: 0.35rem; font-size: 0.58rem; }
  .section { padding-block: 5rem; }
  .guided-tabs { margin-top: 2.6rem; }
  .app-stage { padding: 0.55rem; border-radius: 22px; }
  .app-preview { padding: 0.65rem; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-chart-card { min-height: 7.5rem; }
  .data-rows > div { grid-template-columns: minmax(0, 1fr) 4rem 2.4rem; }
  .capture-flow { padding: 1.5rem 1.2rem; }
  .capture-steps { grid-template-columns: repeat(5, minmax(4.4rem, 1fr)); gap: 0.8rem; overflow-x: auto; padding: 0.3rem 0 0.8rem; scroll-snap-type: x mandatory; }
  .capture-steps > div { scroll-snap-align: start; }
  .flow-line { display: none; }
  .feature-ledger { grid-template-columns: 1fr; }
  .feature-row, .feature-row:nth-child(odd), .feature-row:nth-child(even) { padding: 1.4rem 0; border-right: none; border-bottom: 1px solid var(--stroke); grid-template-columns: auto 1fr; }
  .feature-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--stroke); }
  .feature-row:last-child { border-bottom: none; }
  .feature-tag { grid-column: 2; padding-top: 0; }
  .trust-band { grid-template-columns: 1fr; padding: 1.5rem; }
  .trust-mark { width: 4.2rem; height: 4.2rem; font-size: 2.3rem; }
  .portable-copy { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .interest-options { grid-template-columns: 1fr; }
  .interest-choice { min-height: 0; }
  .email-row { grid-template-columns: 1fr; }
  .email-row .btn { width: 100%; }
  .compare { overflow-x: auto; }
  .hero-meta { gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-film, .manifesto-film { display: none; }
}

/* ============================================================
   V4 "INK IN WATER" — cinematic backgrounds, kinetic type,
   parallax, chapter rail, color-grade vignette
   ============================================================ */

/* Bigger, kinetic hero type — per-word reveal */
.hero-cinema .display { font-size: clamp(3.4rem, 8.6vw, 7.4rem); letter-spacing: -0.04em; }
.display .w {
  display: inline-block; opacity: 0;
  transform: translateY(0.55em) rotate(1.5deg) scale(0.98);
  filter: blur(12px);
  animation: word-in 1.15s var(--ease-out) forwards;
}
.display .w:nth-of-type(1) { animation-delay: 0.10s; }
.display .w:nth-of-type(2) { animation-delay: 0.26s; }
.display .w:nth-of-type(3) { animation-delay: 0.42s; }
.display .w:nth-of-type(4) { animation-delay: 0.60s; }
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* Hero film gets parallax headroom */
.hero-film { inset: -12% 0 0; height: 124%; will-change: transform; }

/* Section ink backdrops (parallax layers) */
.ink-section { position: relative; overflow: hidden; }
.ink-backdrop {
  position: absolute; inset: -14% 0; z-index: -2;
  background-size: cover; background-position: center;
  will-change: transform;
}
.ink-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--midnight) 0%, rgba(10, 15, 20, 0.66) 24%, rgba(10, 15, 20, 0.66) 76%, var(--midnight) 100%);
}
.zenai-section { border-block: 1px solid var(--stroke); }
.zenai-section .ink-veil {
  background: linear-gradient(90deg, rgba(10, 15, 20, 0.92) 0%, rgba(10, 15, 20, 0.55) 60%, rgba(10, 15, 20, 0.35) 100%),
              linear-gradient(180deg, var(--midnight) 0%, transparent 18%, transparent 82%, var(--midnight) 100%);
}

/* Cinematic color-grade vignette over every page */
.grain::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  background: radial-gradient(118% 88% at 50% 46%, transparent 58%, rgba(2, 5, 9, 0.42) 100%);
}

/* Manifesto principles — glass over the calm film */
.manifesto .principle { background: rgba(10, 15, 20, 0.66); }

/* Early-access dawn grade: let the warm light breathe */
.early-access .cta-veil {
  background: linear-gradient(180deg, var(--midnight) 0%, rgba(10, 15, 20, 0.38) 26%, rgba(10, 15, 20, 0.38) 72%, var(--midnight) 100%);
}
.early-access .cta-bg { inset: -10% 0; height: 120%; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .display .w { animation: none; opacity: 1; transform: none; filter: none; }
  .ink-backdrop, .hero-film, .manifesto-film, .early-access .cta-bg { transform: none !important; }
}

/* ============================================================
   V5 "FINTECH ZEN" — HUD hero, ledger ticker, data chips
   ============================================================ */

/* Blueprint grid over the hero film */
.hud-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(107, 184, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 184, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 48%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 48%, #000 30%, transparent 100%);
  animation: grid-drift 24s linear infinite;
}
@keyframes grid-drift { to { background-position: 72px 72px, 72px 72px; } }

/* HUD corner readouts */
.hud-readout {
  position: absolute; bottom: 2.1rem; z-index: 2;
  font-family: var(--font-mono); font-size: 0.6rem; line-height: 1.9;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3);
  opacity: 0; animation: fade-up 1s var(--ease-out) 1.35s forwards;
}
.hud-bl { left: 3vw; text-align: left; }
.hud-br { right: 3vw; text-align: right; }
.hud-readout::before {
  content: ""; display: block; width: 2rem; height: 1px;
  background: var(--stroke-strong); margin-bottom: 0.5rem;
}
.hud-br::before { margin-left: auto; }

/* Floating ledger chips — income / expense */
.hero-chip {
  position: absolute; top: 50%; z-index: 2;
  min-width: 12rem; padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(13, 20, 29, 0.6); backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  text-align: left;
  box-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.8);
  opacity: 0; animation: chip-in 1.1s var(--ease-out) forwards, chip-float 7s ease-in-out 2.2s infinite;
}
.chip-income  { left: clamp(1rem, 5vw, 6rem);  transform: rotate(-2deg); animation-delay: 1.0s, 2.2s; }
.chip-expense { right: clamp(1rem, 5vw, 6rem); transform: rotate(2deg);  animation-delay: 1.2s, 3.6s; }
.hero-chip small {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.3rem;
}
.hero-chip b { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.chip-income b { color: var(--mint); }
.chip-expense b { color: var(--coral); }
.chip-bar { display: block; height: 5px; border-radius: 99px; background: rgba(51, 66, 87, 0.6); margin-top: 0.7rem; overflow: hidden; }
.chip-bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--mint)); animation: bar-grow 1.4s var(--ease-out) 1.8s backwards; }
.chip-bar.expense i { background: linear-gradient(90deg, var(--amber), var(--coral)); }
@keyframes chip-in { from { opacity: 0; transform: translateY(34px) rotate(0deg) scale(0.95); } to { opacity: 1; } }
@keyframes chip-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes bar-grow { from { width: 0; } }

/* Live ledger ticker */
.marquee.ledger .marquee-track {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: none; gap: 2.6rem;
}
.marquee.ledger span { white-space: nowrap; }
.marquee.ledger span::after { content: "·"; color: var(--stroke-strong); margin-left: 2.6rem; }
.tx-in  { color: var(--mint); }
.tx-out { color: var(--coral); opacity: 0.92; }
.tx-mark { color: var(--text-3); }

/* Brand buttons get a scanline shimmer */
.btn-brand { overflow: hidden; }
.btn-brand::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  left: -50%; transform: skewX(-18deg);
  animation: scan 3.6s var(--ease-out) infinite;
}
@keyframes scan { 0%, 55% { left: -50%; } 100% { left: 130%; } }

/* Manifesto over the chart terrain — let the ridges glow */
.manifesto-veil {
  background: linear-gradient(180deg, var(--midnight) 0%, rgba(10, 15, 20, 0.5) 22%, rgba(10, 15, 20, 0.34) 60%, var(--midnight) 100%);
}

@media (max-width: 1180px) { .hero-chip { display: none; } }
@media (max-width: 900px) { .hud-readout, .hud-grid { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hud-grid, .btn-brand::after { animation: none; }
  .hero-chip { animation: chip-in 0.01ms forwards; opacity: 1; }
}
