/* ==========================================================================
   Sourdough Space landing page
   Tokens mirror the app itself (Shared/Theme/AMTheme.swift): petrol accent,
   calm neutrals, ink-first text. Light is the default, dark is a full twin.
   Theme is resolved by an inline script in <head> and written to
   <html data-theme="light|dark">.
   ========================================================================== */

:root {
  --canvas: #f5f5f5;
  --page: #ffffff;
  --inset: #eeeeee;
  --raised: #ffffff;
  --ink: #0d0d0e;
  --body: #232527;
  --muted: #55595e;
  --faint: #5c6064;
  --line: rgba(13, 13, 14, 0.14);
  --line-soft: rgba(13, 13, 14, 0.08);
  --hover: rgba(13, 13, 14, 0.06);

  --accent: #0f6e8c;
  --accent-text: #0f6e8c;
  --accent-soft: rgba(15, 110, 140, 0.12);
  --on-accent: #ffffff;
  --ok: #0b6b39;
  --ok-soft: rgba(11, 107, 57, 0.12);
  --warn: #8a5a06;
  --warn-soft: rgba(138, 90, 6, 0.13);
  --danger: #c42b20;
  --danger-soft: rgba(217, 45, 32, 0.1);

  --glass: rgba(255, 255, 255, 0.72);
  --shutter: #0b0c0d;

  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.05), 0 2px 8px rgba(15, 15, 15, 0.06);
  --shadow-md: 0 2px 6px rgba(15, 15, 15, 0.05), 0 12px 32px rgba(15, 15, 15, 0.09);
  --shadow-lg: 0 4px 12px rgba(15, 15, 15, 0.06), 0 36px 90px rgba(15, 15, 15, 0.18);

  --stage: #0c0d0e;
  --stage-ink: #f2f2f2;
  --stage-muted: #a9adb2;
  --stage-line: rgba(255, 255, 255, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;

  color-scheme: light;
}

[data-theme="dark"] {
  --canvas: #111314;
  --page: #1a1d1e;
  --inset: #242729;
  --raised: #2c2f31;
  --ink: #f5f5f5;
  --body: #e0e2e3;
  --muted: #b9bcc0;
  --faint: #9aa0a6;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --hover: rgba(255, 255, 255, 0.07);

  --accent: #0081a6;
  --accent-text: #56b4d8;
  --accent-soft: rgba(0, 129, 166, 0.22);
  --ok: #34c17d;
  --ok-soft: rgba(52, 193, 125, 0.15);
  --warn: #f2b544;
  --warn-soft: rgba(242, 181, 68, 0.15);
  --danger: #ff8a8e;
  --danger-soft: rgba(229, 72, 77, 0.16);

  --glass: rgba(26, 29, 30, 0.7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.35), 0 36px 90px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.only-dark { display: none !important; }
[data-theme="dark"] .only-light { display: none !important; }
[data-theme="dark"] .only-dark { display: block !important; }

/* squircle where the browser supports it, plain radius everywhere else */
.sq { border-radius: var(--r-md); }
@supports (corner-shape: squircle) {
  .sq { corner-shape: squircle; border-radius: calc(var(--r-md) * 1.7); }
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 500;
}
.h1, .h2 { font-weight: 600; color: var(--ink); text-wrap: balance; }
.h1 {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.038em;
}
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
.lead { font-size: clamp(1.1rem, 1.55vw, 1.35rem); line-height: 1.45; color: var(--muted); max-width: 40ch; text-wrap: balance; }
.lead strong { color: var(--ink); font-weight: 600; }

/* word-split reveal (js wraps each word) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.wi { display: inline-block; will-change: transform; }
.js [data-split]:not(.is-split) { visibility: hidden; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.no-gsap [data-reveal], .no-gsap [data-split] { opacity: 1 !important; transform: none !important; visibility: visible !important; }

/* ---------- layout ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(88px, 13vw, 190px); position: relative; }
.section__head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 84px); }
.section__head--center { text-align: center; justify-items: center; }
.section__head--center .lead { max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 0.97rem; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s;
  will-change: transform;
}
.btn--lg { height: 54px; padding: 0 30px; font-size: 1.05rem; }
.btn--primary { background: var(--ink); color: var(--canvas); box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--hover); color: var(--ink); }
.btn--ghost:hover { background: var(--line-soft); }
.btn svg { width: 16px; height: 16px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 90; top: 14px; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; padding-inline: 12px; }
.nav__inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  height: 54px; padding: 0 8px 0 18px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  max-width: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.02rem; letter-spacing: -0.02em; color: var(--ink); margin-right: 14px; }
.brand svg { width: 26px; height: 26px; color: var(--accent-text); }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { padding: 8px 13px; border-radius: 999px; font-size: 0.92rem; color: var(--muted); font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: var(--ink); background: var(--hover); }
.nav__actions { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background 0.2s, color 0.2s; }
.theme-toggle:hover { background: var(--hover); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
.nav .btn { height: 38px; padding: 0 18px; font-size: 0.9rem; }

/* ---------- shutter intro ---------- */
.shutter { position: fixed; inset: 0; z-index: 1000; pointer-events: none; background: transparent; }
.shutter svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shutter__mark { position: absolute; inset: 0; display: grid; place-items: center; color: #f2f2f2; pointer-events: none; }
.shutter__mark svg { position: static; width: 72px; height: 72px; }

.shutter .blade { fill: var(--shutter); }
.shutter .seam { stroke: #fff; stroke-opacity: 0.13; stroke-width: 0.35; }
.shutter .rim { stroke: #fff; stroke-opacity: 0.32; stroke-width: 0.35; fill: none; }
.is-shuttering, .is-shuttering body { overflow: hidden; }

/* ---------- hero ---------- */
.js:not(.hero-ready) .hero .h1,
.js:not(.hero-ready) .hero__anim { visibility: hidden; }
.no-gsap .hero .h1, .no-gsap .hero__anim { visibility: visible !important; }
.hero { padding-top: clamp(120px, 15vh, 170px); padding-bottom: 0; overflow: hidden; }
.hero__copy { display: grid; justify-items: center; text-align: center; gap: clamp(22px, 3vw, 34px); }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  font-size: 0.86rem; font-weight: 500; color: var(--muted);
}
.hero__pill i { font-style: normal; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.hero__sub { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.42; color: var(--muted); max-width: 44ch; text-wrap: balance; }
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__note { font-size: 0.85rem; color: var(--faint); }
.hero__stage { margin-top: clamp(48px, 7vw, 96px); perspective: 1800px; perspective-origin: 50% 0; }
.window {
  position: relative; width: min(100% - var(--gutter) * 2, 1180px); margin-inline: auto;
  border-radius: 22px; overflow: hidden; background: var(--page);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-soft);
  transform-origin: 50% 0; aspect-ratio: 8 / 5;
}
@supports (corner-shape: squircle) { .window { corner-shape: squircle; border-radius: 40px; } }
.window img { width: 100%; height: 100%; object-fit: cover; }
.hero__fade { height: clamp(60px, 8vw, 120px); margin-top: -1px; }

/* ---------- marquee ---------- */
.marquee { padding-block: clamp(36px, 5vw, 64px); border-block: 1px solid var(--line-soft); overflow: hidden; background: var(--page); }
.marquee__label { text-align: center; margin-bottom: 22px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); }
.marquee__track { display: flex; width: max-content; gap: clamp(28px, 4vw, 64px); will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: 18px; font-size: clamp(2rem, 5.4vw, 4.6rem); font-weight: 600; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.marquee__item i { width: 0.34em; height: 0.34em; border-radius: 50%; background: var(--dot, var(--accent)); flex: none; }

/* ---------- manifesto ---------- */
.manifesto { padding-block: clamp(100px, 16vw, 240px); }
.manifesto__text { font-size: clamp(1.9rem, 4.4vw, 4rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; color: var(--ink); max-width: 22em; text-wrap: pretty; }
.manifesto__text .sw { opacity: 0.16; transition: none; }
.manifesto__answer { margin-top: clamp(36px, 5vw, 64px); font-size: clamp(1.2rem, 2vw, 1.7rem); color: var(--muted); max-width: 30em; }
.manifesto__answer strong { color: var(--ink); }

/* ---------- three-step flow ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); counter-reset: f; }
.flow__item { position: relative; padding: clamp(24px, 3vw, 36px); background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.flow__num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--accent-text); }
.flow__item p { color: var(--muted); }
.flow__item .h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; }
.flow__who { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 550; color: var(--ink); }
.flow__who i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-style: normal; font-size: 0.7rem; }
.flow__who svg { width: 14px; height: 14px; }

/* ---------- glossary strip ---------- */
.words { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); margin-top: clamp(14px, 2vw, 24px); }
.word { padding: 26px; background: var(--page); border: 1px solid var(--line-soft); display: grid; gap: 10px; align-content: start; }
.word b { font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.word b i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--accent)); flex: none; }
.word p { color: var(--muted); font-size: 0.97rem; line-height: 1.45; }

/* ==========================================================================
   Tour — pinned, scroll-driven walkthrough on real screenshots
   ========================================================================== */
.tour { position: relative; background: var(--stage); color: var(--stage-ink); height: calc(100vh + var(--steps, 10) * 78vh); height: calc(100svh + var(--steps, 10) * 78vh); }
.tour__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; display: grid; grid-template-rows: auto 1fr; padding: clamp(76px, 8.4vh, 90px) var(--gutter) clamp(16px, 2.6vh, 30px); gap: clamp(10px, 1.8vh, 20px); overflow: hidden; }
.tour__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; width: min(100%, 1480px); margin-inline: auto; }
.tour__head h2 { font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 600; color: var(--stage-ink); }
.tour__head .eyebrow { color: #56b4d8; display: block; margin-bottom: 8px; }
.tour__hint { font-size: 0.85rem; color: var(--stage-muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tour__hint kbd { font-family: var(--mono); font-size: 0.72rem; padding: 3px 7px; border-radius: 6px; border: 1px solid var(--stage-line); background: rgba(255, 255, 255, 0.06); color: var(--stage-ink); }
.tour__grid { display: grid; grid-template-columns: minmax(250px, 340px) 1fr; gap: clamp(20px, 3vw, 48px); width: min(100%, 1480px); margin-inline: auto; min-height: 0; }
.tour__list { display: flex; align-items: center; min-height: 0; }
.tour__rail { position: relative; width: 100%; display: flex; flex-direction: column; gap: 2px; padding-left: 26px; }
.tour__rail::before { content: ""; position: absolute; left: 8px; top: 22px; bottom: 22px; width: 2px; background: var(--stage-line); border-radius: 2px; }
.tour__bar { position: absolute; left: 8px; top: 22px; bottom: 22px; width: 2px; background: #56b4d8; border-radius: 2px; transform-origin: 0 0; transform: scaleY(0); }
.tour__item { position: relative; text-align: left; width: 100%; padding: 9px 12px; border-radius: 12px; display: flex; align-items: baseline; gap: 12px; color: var(--stage-muted); transition: color 0.3s, background 0.3s; }
.tour__item:hover { color: var(--stage-ink); }
.tour__item::before { content: ""; position: absolute; left: -22px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--stage); border: 2px solid var(--stage-line); transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.tour__item .n { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; opacity: 0.7; min-width: 1.6em; }
.tour__item .t { font-size: clamp(0.95rem, 1.5vh + 0.2rem, 1.12rem); font-weight: 550; letter-spacing: -0.015em; }
.tour__item.is-past::before { background: #56b4d8; border-color: #56b4d8; }
.tour__item.is-active { color: var(--stage-ink); background: rgba(255, 255, 255, 0.06); }
.tour__item.is-active::before { background: #56b4d8; border-color: #56b4d8; transform: scale(1.35); }
.tour__stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(12px, 2vh, 22px); min-height: 0; min-width: 0; }
.device-wrap { min-height: 0; min-width: 0; display: grid; place-items: center; container-type: size; }
.device { position: relative; aspect-ratio: 8 / 5; width: min(100cqw, 160cqh); margin-inline: auto; border-radius: 22px; overflow: hidden; background: #1a1d1e; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 100px rgba(0, 0, 0, 0.6); }
@supports (corner-shape: squircle) { .device { corner-shape: squircle; border-radius: 38px; } }
.device__zoom { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.device__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: opacity, transform; }
.device__img.is-on { opacity: 1; }
.spot { position: absolute; border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(6, 8, 9, 0.6), 0 0 0 2px #56b4d8 inset; pointer-events: none; opacity: 0; }
.pin { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; pointer-events: none; transform: translate(-13px, -50%); opacity: 0; }
.pin b { width: 26px; height: 26px; border-radius: 50%; background: #56b4d8; color: #04222d; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; flex: none; box-shadow: 0 0 0 4px rgba(86, 180, 216, 0.28); }
.pin span { padding: 6px 12px; border-radius: 999px; background: rgba(12, 13, 14, 0.92); color: #f2f2f2; font-size: clamp(0.72rem, 1.1vw, 0.88rem); font-weight: 550; white-space: nowrap; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); }
.pin--left { flex-direction: row-reverse; transform: translate(calc(-100% + 13px), -50%); }
.tour__caption { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; min-height: 88px; }
.tour__caption h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; color: var(--stage-ink); }
.tour__caption p { margin-top: 10px; color: var(--stage-muted); max-width: 62ch; font-size: clamp(0.95rem, 1.2vw, 1.08rem); line-height: 1.45; }
.tour__caption p b { color: var(--stage-ink); font-weight: 600; }
.tour__side { display: grid; justify-items: end; gap: 12px; }
.tour__nav { display: flex; gap: 8px; }
.tour__nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--stage-line); display: grid; place-items: center; color: var(--stage-ink); transition: background 0.25s, transform 0.3s var(--ease), opacity 0.25s; }
.tour__nav button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.tour__nav button:disabled { opacity: 0.3; cursor: default; }
.tour__nav svg { width: 18px; height: 18px; }
.tour__count { font-family: var(--mono); font-size: 0.78rem; color: var(--stage-muted); letter-spacing: 0.06em; }

/* ==========================================================================
   Bento — features
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.tile { position: relative; overflow: hidden; background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 14px; min-height: 340px; grid-column: span 4; transition: box-shadow 0.4s var(--ease), transform 0.5s var(--ease); }
.tile:hover { box-shadow: var(--shadow-md); }
.tile--4 { grid-column: span 4; } .tile--5 { grid-column: span 5; } .tile--6 { grid-column: span 6; } .tile--7 { grid-column: span 7; } .tile--8 { grid-column: span 8; } .tile--12 { grid-column: span 12; }
.tile--tall { min-height: 0; }
.tile__tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-text); }
.tile h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; color: var(--ink); text-wrap: balance; }
.tile p { color: var(--muted); font-size: 1rem; line-height: 1.45; max-width: 46ch; }
.tile__viz { margin-top: auto; position: relative; }
.tile--dark { background: var(--stage); color: var(--stage-ink); border-color: var(--stage-line); }
.tile--dark h3 { color: var(--stage-ink); } .tile--dark p { color: var(--stage-muted); } .tile--dark .tile__tag { color: #56b4d8; }

/* mini ledger */
.ledger { display: grid; gap: 9px; font-size: 0.8rem; }
.ledger__row { display: grid; grid-template-columns: 82px 1fr; gap: 14px; align-items: center; }
.ledger__row > span { color: var(--muted); font-weight: 500; }
.ledger__track { position: relative; height: 22px; border-radius: 999px; background: var(--inset); overflow: hidden; }
.ledger__seg { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--seg, var(--accent)); transform-origin: 0 50%; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-family: var(--mono); font-size: 0.66rem; color: #fff; font-weight: 600; white-space: nowrap; }
.ledger__seg--cool { background: repeating-linear-gradient(135deg, var(--line) 0 6px, transparent 6px 12px); color: var(--muted); justify-content: center; padding: 0; }
.ledger__seg--ready { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); justify-content: center; padding: 0; }
.ledger__axis { display: grid; grid-template-columns: 82px 1fr; gap: 14px; font-family: var(--mono); font-size: 0.66rem; color: var(--faint); }
.ledger__axis div { display: flex; justify-content: space-between; }

/* gate chips */
.claim { display: block; padding: 14px 16px; border-radius: 14px; background: var(--inset); font-size: 1rem; line-height: 1.4; color: var(--ink); }
.cite { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-family: var(--mono); font-size: 0.72rem; font-weight: 600; vertical-align: 2px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--ok-soft); color: var(--ok); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--bad { background: var(--danger-soft); color: var(--danger); }
.chip svg { width: 13px; height: 13px; }
.stack { display: grid; gap: 10px; }

/* conflict duel */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.duel__card { padding: 14px; border-radius: 14px; background: var(--inset); font-size: 0.86rem; line-height: 1.3; color: var(--ink); display: grid; gap: 6px; }
.duel__card small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.duel__vs { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); font-size: 0.7rem; font-weight: 700; }
.blocked { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.blocked span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--hover); font-size: 0.76rem; color: var(--muted); font-weight: 500; }
.blocked svg { width: 12px; height: 12px; }

/* statuses */
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; }
.pipeline span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--inset); font-size: 0.82rem; font-weight: 550; color: var(--ink); }
.pipeline span i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.pipeline em { font-style: normal; color: var(--faint); align-self: center; font-size: 0.85rem; }

/* tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs span { padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 550; background: var(--inset); color: var(--muted); }
.tabs span.on { background: var(--ink); color: var(--canvas); }

/* cadence */
.cadence { display: grid; gap: 12px; }
.cadence__row { display: grid; grid-template-columns: 96px 1fr 34px; gap: 12px; align-items: center; font-size: 0.85rem; }
.cadence__row span { color: var(--ink); font-weight: 550; }
.cadence__row em { font-style: normal; color: var(--muted); font-family: var(--mono); font-size: 0.78rem; text-align: right; }
.bar { height: 7px; border-radius: 999px; background: var(--inset); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 50%); background: var(--dot, var(--accent)); border-radius: 999px; transform-origin: 0 50%; }

/* study rows */
.rows { display: grid; gap: 8px; }
.rows__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; background: var(--inset); font-size: 0.9rem; }
.rows__row b { color: var(--ink); font-weight: 600; display: block; }
.rows__row small { color: var(--muted); font-size: 0.78rem; }
.mult { font-weight: 700; color: var(--ok); font-variant-numeric: tabular-nums; font-size: 1.05rem; }

/* pulse */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 14px; border-radius: 14px; background: var(--inset); }
.kpi small { color: var(--muted); font-size: 0.75rem; display: block; margin-bottom: 4px; }
.kpi b { font-size: 1.7rem; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 86px; margin-top: 16px; }
.spark path { fill: none; stroke: var(--accent-text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.js .spark .line { stroke-dashoffset: 1; stroke-dasharray: 1; }
.no-gsap .spark .line { stroke-dashoffset: 0 !important; }
.spark .base { stroke: var(--line); stroke-dasharray: 4 5; stroke-width: 1.5; }

/* screenshots inside tiles */
.crop { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-soft), var(--shadow-md); background: #1a1d1e; }
.crop img { width: 100%; }
.tile__viz--bleed { margin-inline: calc(clamp(22px, 2.6vw, 34px) * -1); margin-bottom: calc(clamp(22px, 2.6vw, 34px) * -1); }
.tile__viz--bleed .crop { border-radius: 16px 0 0 0; margin-inline: clamp(22px, 2.6vw, 34px) 0; box-shadow: 0 0 0 1px var(--line-soft); max-height: 250px; }
.tile__viz--bleed .crop img { width: 100%; }

/* keys */
.keys { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.key { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--page); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line), var(--shadow-sm); display: grid; place-items: center; font-weight: 600; color: var(--ink); font-size: 1rem; }
.key.is-down { transform: translateY(2px); box-shadow: 0 0 0 var(--line), var(--shadow-sm); }
.cmdlist { display: grid; gap: 4px; margin-top: 14px; font-size: 0.9rem; }
.cmdlist div { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.cmdlist div.on { background: var(--inset); }
.cmdlist kbd { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }

/* terminal */
.term { font-family: var(--mono); font-size: 0.78rem; line-height: 1.7; padding: 18px 20px; border-radius: 16px; background: #0b0c0d; color: #d7dadd; border: 1px solid var(--stage-line); overflow: hidden; }
.term .c { color: #7d848b; } .term .g { color: #6fd6a3; } .term .b { color: #7cc7e6; }

/* grants */
.grants { display: grid; gap: 8px; }
.grant { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-size: 0.88rem; color: var(--stage-ink); }
.grant small { color: var(--stage-muted); font-size: 0.76rem; }
.grant .yes { color: #6fd6a3; font-weight: 600; font-size: 0.78rem; }
.grant .no { color: var(--stage-muted); font-size: 0.78rem; display: inline-flex; gap: 6px; align-items: center; }
.grant .no svg { width: 12px; height: 12px; }

/* voice checks */
.checks { display: grid; gap: 9px; }
.check { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--inset); font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.check em { font-style: normal; color: var(--ok); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.check em svg { width: 14px; height: 14px; }

/* imports */
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.files span { font-family: var(--mono); font-size: 0.74rem; padding: 7px 12px; border-radius: 10px; background: var(--inset); color: var(--ink); border: 1px solid var(--line-soft); }

/* privacy */
.lock { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.lock__big { font-size: clamp(3.4rem, 6vw, 5.2rem); font-weight: 650; letter-spacing: -0.06em; color: var(--ink); line-height: 0.9; font-variant-numeric: tabular-nums; }
.lock small { color: var(--muted); font-size: 0.92rem; line-height: 1.35; }

/* phones */
.phone { position: relative; border-radius: 42px; overflow: hidden; background: #000; box-shadow: 0 0 0 7px #16181a, 0 0 0 8px rgba(255, 255, 255, 0.14), var(--shadow-lg); aspect-ratio: 1206 / 2622; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.widget { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-md), 0 0 0 1px var(--line-soft); background: #151617; }
.widget img { width: 100%; }

/* ==========================================================================
   Gates — interactive
   ========================================================================== */
.gates { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.gates__copy { display: grid; gap: 22px; }
.gates__copy .lead { max-width: 34ch; }
.gates__try { display: grid; gap: 10px; margin-top: 8px; }
.gates__try > span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.gbtn { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 18px; border-radius: 16px; background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); font-size: 0.98rem; font-weight: 550; color: var(--ink); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.gbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gbtn.is-on { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
.gbtn i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--hover); font-size: 0.78rem; font-family: var(--mono); color: var(--muted); flex: none; }
.gpanel { background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); padding: clamp(20px, 2.6vw, 34px); display: grid; gap: 18px; }
.gpanel__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--muted); }
.gpanel__top b { color: var(--ink); font-size: 1rem; letter-spacing: -0.02em; }
.draft { display: grid; gap: 4px; }
.draft__line { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.02rem; line-height: 1.38; color: var(--ink); align-items: baseline; }
.draft__line:last-child { border: 0; }
.draft__line > em { font-style: normal; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.draft__line.is-new { animation: none; }
.verdict { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); font-size: 0.95rem; line-height: 1.4; min-height: 84px; }
.verdict svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.verdict b { display: block; font-size: 1.02rem; letter-spacing: -0.015em; margin-bottom: 2px; }
.verdict span { color: var(--body); }
.verdict--bad { background: var(--danger-soft); color: var(--danger); }
.verdict--warn { background: var(--warn-soft); color: var(--warn); }

/* ==========================================================================
   Compare
   ========================================================================== */
.table-wrap { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.compare { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; background: var(--page); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.compare th, .compare td { padding: 16px 18px; text-align: center; font-size: 0.95rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare thead th { position: sticky; top: 0; font-size: 0.86rem; font-weight: 600; color: var(--ink); background: var(--page); line-height: 1.25; padding-block: 22px; }
.compare thead th small { display: block; font-weight: 450; color: var(--muted); margin-top: 4px; font-size: 0.76rem; }
.compare th:first-child, .compare td:first-child { text-align: left; width: 34%; }
.compare tbody th { font-weight: 550; color: var(--ink); text-align: left; position: sticky; left: 0; z-index: 1; background: var(--page); }
.compare thead th:first-child { position: sticky; left: 0; z-index: 2; }
.compare tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 0.82rem; margin-top: 2px; }
.compare .us { background: var(--accent-soft); }
.compare thead .us { color: var(--accent-text); }
.mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.mk svg { width: 14px; height: 14px; }
.mk--y { background: var(--ok-soft); color: var(--ok); }
.mk--p { background: var(--warn-soft); color: var(--warn); }
.mk--n { background: var(--hover); color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; font-size: 0.85rem; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .mk { width: 22px; height: 22px; }
.fineprint { margin-top: 14px; font-size: 0.82rem; color: var(--faint); max-width: 72ch; }

/* ==========================================================================
   Can / can't
   ========================================================================== */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.limits__col { padding: clamp(26px, 3vw, 44px); background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); display: grid; gap: 22px; align-content: start; }
.limits__col--no { background: var(--stage); border-color: var(--stage-line); color: var(--stage-ink); }
.limits__col h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.035em; font-weight: 600; color: var(--ink); }
.limits__col--no h3 { color: var(--stage-ink); }
.limits__col ul { display: grid; gap: 4px; }
.limits__col li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 1.02rem; line-height: 1.4; color: var(--ink); }
.limits__col--no li { border-color: var(--stage-line); color: var(--stage-ink); }
.limits__col li small { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.limits__col--no li small { color: var(--stage-muted); }
.limits__col li .mk { margin-top: 1px; }
.limits__col--no .mk--n { background: rgba(255, 255, 255, 0.1); color: var(--stage-muted); }

/* ---------- phones section ---------- */
.mobile { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 100px); align-items: center; }
.mobile__copy { display: grid; gap: 22px; }
.mobile__list { display: grid; gap: 4px; margin-top: 8px; }
.mobile__list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-soft); color: var(--ink); font-weight: 550; }
.mobile__list li small { display: block; font-weight: 400; color: var(--muted); font-size: 0.93rem; }
.mobile__art { position: relative; display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(14px, 2vw, 24px); align-items: center; }
.mobile__art .phone { width: 100%; }
.mobile__side { display: grid; gap: clamp(12px, 1.6vw, 18px); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 32px; height: 32px; border-radius: 50%; background: var(--hover); position: relative; flex: none; transition: transform 0.4s var(--ease), background 0.3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); margin: -1px 0 0 -6px; border-radius: 2px; }
.faq summary i::after { transform: rotate(90deg); transition: transform 0.4s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); background: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--canvas); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq__a { padding: 0 4px 28px; color: var(--muted); font-size: 1.06rem; line-height: 1.55; max-width: 62ch; }
.faq__a strong { color: var(--ink); }

/* ---------- final CTA: closing iris ---------- */
.cta { position: relative; height: 190vh; }
.cta__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--canvas); }
.cta__iris { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__iris .blade { fill: var(--ink); }
.cta__iris .seam { stroke: var(--canvas); stroke-opacity: 0.22; stroke-width: 0.35; }
.cta__iris .rim { stroke: var(--canvas); stroke-opacity: 0.5; stroke-width: 0.3; fill: none; }
.cta__inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 26px; padding: 0 var(--gutter); max-width: 620px; }
.cta__inner .h2 { font-size: clamp(2.4rem, 6.4vw, 5.6rem); }
.cta__inner .lead { text-align: center; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer ---------- */
.footer { padding: 44px 0 56px; background: var(--canvas); border-top: 1px solid var(--line-soft); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 0.9rem; }
.footer .brand { margin: 0; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links a:nth-child(n + 4) { display: none; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile, .tile--5, .tile--7, .tile--8 { grid-column: span 6; }
  .tile--6 { grid-column: span 6; }
  .words { grid-template-columns: repeat(2, 1fr); }
  .gates, .mobile { grid-template-columns: 1fr; }
  .mobile__art { max-width: 640px; margin-inline: auto; }
}
@media (max-width: 900px) {
  .tour__pin { padding-top: 80px; }
  .tour__hint { display: none; }
  .tour__grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
  .tour__list { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tour__list::-webkit-scrollbar { display: none; }
  .tour__rail { flex-direction: row; padding-left: 0; gap: 6px; width: max-content; }
  .tour__rail::before, .tour__bar, .tour__item::before { display: none; }
  .tour__item { width: auto; flex: none; padding: 8px 14px; border: 1px solid var(--stage-line); border-radius: 999px; }
  .tour__item .t { display: none; }
  .tour__item.is-active .t { display: inline; }
  .tour__caption { grid-template-columns: 1fr; min-height: 0; }
  .tour__nav, .tour__count { display: none; }
  .tour__stage { grid-template-rows: auto auto; align-content: start; }
  .device-wrap { container-type: normal; display: block; }
  .device { width: 100%; }
  .pin { display: none; }
}
@media (max-width: 760px) {
  .ledger__row, .ledger__axis { grid-template-columns: 70px 1fr; gap: 10px; }
  .ledger__seg--cool { font-size: 0; }
  .compare { min-width: 640px; }
  .compare th:first-child, .compare td:first-child { width: 176px; min-width: 176px; }
  .compare th, .compare td { padding: 14px 12px; }
  .nav__links { display: none; }
  .brand { margin-right: 6px; }
  .flow, .limits { grid-template-columns: 1fr; }
  .flow__item { min-height: 0; }
  .words { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--5, .tile--6, .tile--7, .tile--8, .tile--12 { grid-column: span 1; min-height: 0; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; }
  .duel { grid-template-columns: 1fr; }
  .duel__vs { justify-self: center; }
  .draft__line { grid-template-columns: 1fr; gap: 4px; }
  .mobile__art { grid-template-columns: 1fr; }
  .mobile__side { grid-template-columns: 1fr 1fr; }
  .cta { height: 160vh; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-split]:not(.is-split) { visibility: visible; }
  .js .spark .line { stroke-dashoffset: 0; }
}
