/* ==========================================================================
   Evidential website: design system
   Tokens mirror the app (Evidential/Design/Theme.swift): seven same-weight
   brand grounds (Lapis is the default), a neutral #0E0E0E dark ground,
   and the four priority colours P1 red, P2 amber, P3 sky, P4 grey.
   Theme and accent are resolved by an inline script in <head> and written to
   <html data-theme="light|dark" data-accent="lapis|...">.
   Shared by every page. Page-only styles live in page-*.css.
   ========================================================================== */

:root {
  --canvas: #f5f5f4;
  --page: #ffffff;
  --inset: #efefee;
  --raised: #ffffff;
  --ink: #0a0a0b;
  --body: #202224;
  --muted: #54585d;
  --faint: #5d6166;
  --line: rgba(10, 10, 11, 0.14);
  --line-soft: rgba(10, 10, 11, 0.08);
  --hover: rgba(10, 10, 11, 0.06);

  /* accent: resolved per data-accent below */
  --accent: #314dff;
  --accent-text: #314dff;
  --companion: #2589bf;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 34%, transparent);
  --on-accent: #ffffff;

  /* priorities, one value in both appearances */
  --p1: #f9262a;
  --p2: #e7a13c;
  --p3: #46abd4;
  --p4: #989fa7;

  --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.74);
  --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: #0e0e0e;
  --stage-2: #171717;
  --stage-ink: #f4f4f3;
  --stage-muted: #a8abaf;
  --stage-line: rgba(255, 255, 255, 0.12);
  --stage-accent: #5fb0f0;

  --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: #0e0e0e;
  --page: #171717;
  --inset: #202020;
  --raised: #282828;
  --ink: #f6f6f5;
  --body: #e2e3e4;
  --muted: #b7babe;
  --faint: #9a9fa5;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --hover: rgba(255, 255, 255, 0.07);

  --accent: #6084f2;
  --accent-text: #8ea8ef;
  --companion: #2589bf;
  --accent-soft: color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 50%, transparent);

  --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(23, 23, 23, 0.72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4), 0 36px 90px rgba(0, 0, 0, 0.6);

  --stage: #050505;
  --stage-2: #101010;
  color-scheme: dark;
}

/* The seven grounds. Light ink / dark ink / companion come from Accent.all (Theme.swift). */
[data-accent="aquifer"]    { --accent: #006fbc; --accent-text: #006fbc; --companion: #268ea8; --stage-accent: #8bbcee; }
[data-accent="lapis"]      { --accent: #314dff; --accent-text: #314dff; --companion: #2589bf; --stage-accent: #a0b6ee; }
[data-accent="heather"]    { --accent: #a500c8; --accent-text: #a500c8; --companion: #7f61f3; --stage-accent: #da9cee; }
[data-accent="claret"]     { --accent: #c8004a; --accent-text: #c8004a; --companion: #d42aa6; --stage-accent: #ef9da7; }
[data-accent="clay"]       { --accent: #a94e00; --accent-text: #a94e00; --companion: #e52b46; --stage-accent: #efa379; }
[data-accent="moss"]       { --accent: #008321; --accent-text: #008321; --companion: #7e8822; --stage-accent: #5ed568; }
[data-accent="tidewater"]  { --accent: #007a85; --accent-text: #007a85; --companion: #27947d; --stage-accent: #5ecad6; }
[data-theme="dark"][data-accent="aquifer"] { --accent: #2d90e5; --accent-text: #70b0ef; }
[data-theme="dark"][data-accent="lapis"]   { --accent: #6084f2; --accent-text: #8ea8ef; }
[data-theme="dark"][data-accent="heather"] { --accent: #ca3df0; --accent-text: #d685ef; }
[data-theme="dark"][data-accent="claret"]  { --accent: #f43767; --accent-text: #f08695; }
[data-theme="dark"][data-accent="clay"]    { --accent: #d26c29; --accent-text: #f08e54; }
[data-theme="dark"][data-accent="moss"]    { --accent: #30a73f; --accent-text: #4ec85a; }
[data-theme="dark"][data-accent="tidewater"] { --accent: #309da8; --accent-text: #4ebdc9; }

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
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, video { 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; }
code, kbd { font-family: var(--mono); }
p code, li code, small code, .faq__a code { font-size: 0.82em; padding: 0.12em 0.5em; border-radius: 7px; background: var(--hover); color: var(--ink); overflow-wrap: anywhere; font-weight: 500; }

.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; }

.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: 620; color: var(--ink); text-wrap: balance; }
.h1 { font-size: clamp(2.6rem, 7.4vw, 6.9rem); line-height: 0.95; letter-spacing: -0.055em; }
.h2 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; }
.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, .hero__sub 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.14em; margin-bottom: -0.14em; }
.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; }
.stagebg { background: var(--stage); color: var(--stage-ink); }
.stagebg .h2, .stagebg .h3 { color: var(--stage-ink); }
.stagebg .lead { color: var(--stage-muted); }
.stagebg .lead strong { color: var(--stage-ink); }
.stagebg .eyebrow { color: var(--stage-accent); }

/* ---------- 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; }
.stagebg .btn--primary { background: var(--stage-ink); color: #0e0e0e; }
.stagebg .btn--ghost { background: rgba(255, 255, 255, 0.09); color: var(--stage-ink); }

/* ---------- scroll progress ---------- */
.progress { position: fixed; z-index: 95; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- 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 16px; 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%; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.04rem; letter-spacing: -0.03em; color: var(--ink); margin-right: 12px; }
.brand__mark { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.brand__mark svg { width: 18px; height: 18px; }
.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__links a[aria-current="page"] { color: var(--ink); background: var(--hover); }
.nav__actions { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background 0.2s, color 0.2s; position: relative; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.i-moon { display: none; }
[data-theme="dark"] .i-moon { display: block; }
[data-theme="dark"] .i-sun { display: none; }
.swatch-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--page), 0 0 0 3.5px var(--line); }
.nav .btn { height: 38px; padding: 0 18px; font-size: 0.9rem; }
.menu-btn { display: none; }

.accent-pop { position: absolute; top: calc(100% + 10px); right: 0; width: 272px; padding: 16px; border-radius: 22px; background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: 100% 0; pointer-events: none; transition: opacity 0.25s, transform 0.4s var(--ease); z-index: 5; }
.accent-pop.is-open { opacity: 1; transform: none; pointer-events: auto; }
.accent-pop b { display: block; color: var(--ink); font-size: 0.95rem; letter-spacing: -0.01em; }
.accent-pop p { font-size: 0.82rem; color: var(--muted); margin: 2px 0 14px; line-height: 1.35; }
.accent-pop__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.accent-pop__grid button { aspect-ratio: 1; border-radius: 50%; background: var(--c); position: relative; transition: transform 0.3s var(--ease); }
.accent-pop__grid button:hover { transform: scale(1.12); }
.accent-pop__grid button[aria-pressed="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ink); }
.accent-pop__name { margin-top: 12px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

/* ---------- intro: a completion ---------- */
.intro { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.intro__bg { position: absolute; inset: 0; background: #0e0e0e; }
.intro__mark { position: absolute; inset: 0; display: grid; place-items: center; }
.intro__mark svg { width: 112px; height: 112px; overflow: visible; }
.intro .ring-track { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 3; }
.intro .ring-draw { fill: none; stroke: #f4f4f3; stroke-width: 3; stroke-linecap: round; }
.intro .ring-fill { fill: var(--stage-accent); }
.intro .tick { fill: none; stroke: #0e0e0e; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.is-intro, .is-intro 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(118px, 15vh, 168px); padding-bottom: 0; overflow: hidden; position: relative; }
.hero__copy { display: grid; justify-items: center; text-align: center; gap: clamp(22px, 3vw, 34px); position: relative; z-index: 3; }
.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: 46ch; text-wrap: balance; }
.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(40px, 6vw, 84px); position: relative; perspective: 1900px; perspective-origin: 50% 0; }
.hero__art { position: relative; width: min(100% - var(--gutter) * 2, 1180px); margin-inline: auto; }
.window { position: relative; 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: 4 / 3; }
@supports (corner-shape: squircle) { .window { corner-shape: squircle; border-radius: 40px; } }
.window img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero__phone { position: absolute; z-index: 2; left: -2%; bottom: -14%; width: 24%; }
.hero__fade { height: clamp(60px, 8vw, 120px); margin-top: -1px; }
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.floater { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--page); box-shadow: var(--shadow-md), 0 0 0 1px var(--line-soft); font-size: 0.92rem; font-weight: 550; color: var(--ink); white-space: nowrap; will-change: transform; }
.floater .ring { --ring: var(--p1); }
.floater em { font-style: normal; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); padding: 3px 8px; border-radius: 999px; background: var(--hover); }
.f1 { left: 4%; top: 12%; } .f2 { right: 5%; top: 6%; } .f3 { left: 9%; top: 58%; } .f4 { right: 3%; top: 48%; } .f5 { right: 14%; top: 78%; }

/* ---------- atoms: the app's own pieces, drawn in html ---------- */
.ring { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ring, var(--p4)); flex: none; position: relative; transition: background 0.3s, border-color 0.3s; }
.ring.is-done { background: var(--ring, var(--p4)); }
.ring.is-done::after { content: ""; position: absolute; left: 50%; top: 46%; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%, -50%) rotate(45deg); }
.r1 { --ring: var(--p1); } .r2 { --ring: var(--p2); } .r3 { --ring: var(--p3); } .r4 { --ring: var(--p4); }
.tk { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--inset); font-size: 0.95rem; color: var(--ink); min-width: 0; }
.tk__t { flex: 1; min-width: 0; font-weight: 550; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk.is-done .tk__t { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--line); }
.tk.is-blocked { opacity: 0.55; }
.m { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 0.7rem; padding: 3px 9px; border-radius: 999px; background: var(--hover); color: var(--muted); white-space: nowrap; font-weight: 500; }
.m i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--accent)); }
.m--accent { background: var(--accent-soft); color: var(--accent-text); }
.m--bad { background: var(--danger-soft); color: var(--danger); }
.m--warn { background: var(--warn-soft); color: var(--warn); }
.m--ok { background: var(--ok-soft); color: var(--ok); }
.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; }
.mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; }
.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); }
.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: inline-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); }
.stagebg .cite, .tile--dark .cite { background: rgba(255, 255, 255, 0.1); color: var(--stage-accent); }
.fineprint { margin-top: 14px; font-size: 0.82rem; color: var(--faint); max-width: 72ch; }

/* ---------- 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: 620; letter-spacing: -0.045em; color: var(--ink); white-space: nowrap; }
.marquee__item i { width: 0.3em; height: 0.3em; 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.038em; font-weight: 620; color: var(--ink); max-width: 22em; text-wrap: pretty; }
.manifesto__text .sw { opacity: 0.16; }
.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 + glossary ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.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: 340px; overflow: hidden; }
.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.032em; }
.flow__viz { margin-top: auto; padding-top: 18px; display: grid; gap: 8px; }
.typed { font-family: var(--mono); font-size: 0.82rem; line-height: 1.6; padding: 14px 16px; border-radius: 14px; background: var(--inset); color: var(--ink); min-height: 4.6em; }
.typed .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent-text); vertical-align: -0.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tok-date { color: var(--p3); } .tok-len { color: var(--accent-text); } .tok-pri { color: var(--p1); } .tok-list { color: var(--ok); }
.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; }

/* ==========================================================================
   Fit simulator: "Overfill Tuesday"
   ========================================================================== */
.fit { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.fit__list { display: grid; gap: 8px; }
.fit__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); text-align: left; width: 100%; color: var(--ink); font-weight: 550; letter-spacing: -0.01em; transition: transform 0.3s var(--ease), box-shadow 0.3s, opacity 0.3s, border-color 0.3s; }
.fit__item:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.fit__item .ring { flex: none; }
.fit__item .t { flex: 1; min-width: 0; }
.fit__item .m { flex: none; }
.fit__item .sw { width: 38px; height: 22px; border-radius: 999px; background: var(--inset); position: relative; flex: none; transition: background 0.3s; }
.fit__item .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--page); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform 0.35s var(--ease); }
.fit__item.is-on .sw { background: var(--accent); }
.fit__item.is-on .sw::after { transform: translateX(16px); }
.fit__item.is-parked { opacity: 0.5; }
.fit__item.is-parked .t { text-decoration: line-through; text-decoration-color: var(--faint); }
.fit__panel { position: sticky; top: 92px; background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 18px; }
.fit__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fit__top b { color: var(--ink); font-size: 1.05rem; letter-spacing: -0.02em; }
.fit__top span { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.fit__clock { position: relative; padding-top: 22px; }
.fit__ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.66rem; color: var(--faint); position: absolute; top: 0; left: 0; right: 0; }
.fit__strip { position: relative; height: 64px; border-radius: 16px; background: var(--inset); overflow: hidden; display: flex; }
.fit__blk { height: 100%; flex: none; display: flex; align-items: center; padding: 0 10px; font-size: 0.72rem; font-weight: 600; color: #fff; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--inset); background: var(--c, var(--accent)); transform-origin: 0 50%; }
.fit__blk.is-fixed { background: repeating-linear-gradient(135deg, var(--line) 0 6px, transparent 6px 12px); color: var(--muted); border-right-color: var(--inset); }
.fit__blk.is-over { background: var(--danger); }
.fit__cap { position: absolute; top: 14px; bottom: -2px; width: 0; border-left: 2px dashed var(--ink); z-index: 2; }
.fit__cap span { position: absolute; top: -18px; left: 6px; font-family: var(--mono); font-size: 0.62rem; color: var(--ink); white-space: nowrap; letter-spacing: 0.04em; }
.fit__over { position: absolute; top: 22px; bottom: 0; right: 0; border-radius: 0 16px 16px 0; pointer-events: none; }
.fit__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: 96px; transition: background 0.4s, color 0.4s; }
.fit__verdict svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.fit__verdict b { display: block; font-size: 1.08rem; letter-spacing: -0.015em; margin-bottom: 2px; }
.fit__verdict span { color: var(--body); }
.fit__verdict.is-tight { background: var(--warn-soft); color: var(--warn); }
.fit__verdict.is-over { background: var(--danger-soft); color: var(--danger); }
.fit__cuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fit__cuts button { padding: 6px 12px; border-radius: 999px; background: var(--page); color: var(--ink); font-size: 0.8rem; font-weight: 600; box-shadow: 0 0 0 1px var(--line); transition: transform 0.3s var(--ease), background 0.2s; }
.fit__cuts button:hover { transform: translateY(-1px); background: var(--hover); }
.fit__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fit__stat { padding: 12px 14px; border-radius: 14px; background: var(--inset); }
.fit__stat small { display: block; color: var(--muted); font-size: 0.74rem; }
.fit__stat b { font-size: 1.45rem; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fit__reset { justify-self: start; font-size: 0.85rem; color: var(--muted); padding: 6px 12px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.fit__reset:hover { background: var(--hover); color: var(--ink); }

/* ==========================================================================
   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: 620; color: var(--stage-ink); }
.tour__head .eyebrow { color: var(--stage-accent); 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-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: var(--stage-accent); 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: var(--stage-accent); border-color: var(--stage-accent); }
.tour__item.is-active { color: var(--stage-ink); background: rgba(255, 255, 255, 0.07); }
.tour__item.is-active::before { background: var(--stage-accent); border-color: var(--stage-accent); 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: var(--ar, 4 / 3); width: min(100cqw, calc(100cqh * var(--ar-n, 1.3333))); margin-inline: auto; border-radius: 22px; overflow: hidden; background: #171717; 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 var(--stage-accent) 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: var(--stage-accent); color: #04121d; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--stage-accent) 30%, transparent); }
.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.032em; line-height: 1.05; font-weight: 620; 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, 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; }

/* ==========================================================================
   Horizontal pinned gallery (platforms)
   ========================================================================== */
.hscroll { position: relative; background: var(--canvas); }
.hscroll__pin { height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 4vh, 44px); }
.hscroll__head { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.hscroll__head .h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); }
.hscroll__count { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); letter-spacing: 0.06em; white-space: nowrap; }
.hscroll__track { display: flex; gap: clamp(16px, 2.4vw, 32px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.hpanel { flex: none; width: min(78vw, 980px); height: min(62vh, 560px); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(16px, 2.4vw, 36px); padding: clamp(22px, 2.6vw, 38px); background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-md); overflow: hidden; }
.hpanel--dark { background: var(--stage); color: var(--stage-ink); border-color: var(--stage-line); }
.hpanel--dark h3 { color: var(--stage-ink); }
.hpanel--dark p, .hpanel--dark li { color: var(--stage-muted); }
.hpanel__copy { display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
.hpanel__tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-text); }
.hpanel--dark .hpanel__tag { color: var(--stage-accent); }
.hpanel h3 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); letter-spacing: -0.038em; line-height: 1.04; font-weight: 620; color: var(--ink); text-wrap: balance; }
.hpanel p { color: var(--muted); font-size: 1.02rem; line-height: 1.45; }
.hpanel ul { display: grid; gap: 6px; margin-top: 4px; }
.hpanel li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.95rem; color: var(--muted); line-height: 1.35; }
.hpanel li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 0.42em; }
.hpanel__art { position: relative; min-width: 0; display: grid; place-items: center; }
.hpanel__art img { max-height: 100%; width: auto; border-radius: 18px; box-shadow: var(--shadow-md), 0 0 0 1px var(--line-soft); }
.hscroll__bar { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; height: 3px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.hscroll__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ==========================================================================
   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: 360px; grid-column: span 4; transition: box-shadow 0.4s 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__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.033em; line-height: 1.08; font-weight: 620; 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: var(--stage-accent); }
.stack { display: grid; gap: 8px; }
.rowsx { display: grid; gap: 8px; }

/* start date strip */
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.strip__d { padding: 10px 4px; border-radius: 12px; background: var(--inset); text-align: center; font-size: 0.72rem; color: var(--muted); display: grid; gap: 2px; position: relative; }
.strip__d b { color: var(--ink); font-size: 1rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.strip__d.is-start { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.strip__d.is-dl { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1.5px currentColor; }
.strip__d.is-due { background: var(--ink); color: var(--canvas); }
.strip__d.is-due b { color: var(--canvas); }
.strip__d small { font-size: 0.6rem; font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; min-height: 1em; }
.hiddenrow { position: relative; overflow: hidden; }

/* capacity bars */
.capbar { position: relative; height: 26px; border-radius: 999px; background: var(--inset); overflow: hidden; display: flex; }
.capbar i { display: block; height: 100%; background: var(--c, var(--accent)); transform-origin: 0 50%; border-right: 2px solid var(--inset); }
.capbar i.over { background: var(--danger); }
.caplegend { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--mono); font-size: 0.68rem; color: var(--faint); }

/* energy curve */
.energy { position: relative; }
.energy svg { width: 100%; height: 120px; overflow: visible; }
.energy .curve { fill: none; stroke: var(--accent-text); stroke-width: 2.5; stroke-linecap: round; }
.energy .area { fill: var(--accent-soft); }
.energy .tick { stroke: var(--line); stroke-dasharray: 3 5; }
.energy__labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.66rem; color: var(--faint); margin-top: 6px; }
.energy__dot { position: absolute; padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 650; background: var(--ink); color: var(--canvas); white-space: nowrap; transform: translate(-50%, -100%); }
.energy__dot.soft { background: var(--inset); color: var(--muted); }

/* dependency chain */
.chain { display: grid; gap: 0; justify-items: start; }
.chain .tk { width: 100%; }
.chain__link { width: 2px; height: 18px; margin-left: 24px; background: var(--line); position: relative; }
.chain__link::after { content: ""; position: absolute; left: -3px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.chain .unblock { margin-top: 10px; }

/* repeat timeline */
.repeat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-top: 4px; }
.repeat i { aspect-ratio: 1; border-radius: 6px; background: var(--inset); position: relative; }
.repeat i.on { background: var(--accent); }
.repeat i.end { background: var(--ink); }
.repeat i.skip { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.repeat__cap { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--mono); font-size: 0.68rem; color: var(--faint); }

/* filter demo */
.filterbox { font-family: var(--mono); font-size: 0.84rem; padding: 12px 14px; border-radius: 14px; background: var(--inset); color: var(--ink); min-height: 3em; margin-bottom: 10px; }
.filterbox .op { color: var(--accent-text); }
.filterbox .kw { color: var(--p2); }

/* drag and drop */
.dnd { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.dnd__col { padding: 10px; border-radius: 16px; background: var(--inset); display: grid; gap: 8px; align-content: start; min-height: 150px; }
.dnd__col small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.dnd__col.is-target { box-shadow: inset 0 0 0 2px var(--accent-line); background: var(--accent-soft); }
.dnd .tk { background: var(--page); box-shadow: var(--shadow-sm); padding: 9px 12px; font-size: 0.88rem; }
.dnd__ghost { position: absolute; z-index: 5; pointer-events: none; }

/* stats */
.est { display: grid; gap: 12px; }
.est__row { display: grid; grid-template-columns: 82px 1fr 52px; gap: 12px; align-items: center; font-size: 0.82rem; color: var(--ink); font-weight: 550; }
.est__track { height: 10px; border-radius: 999px; background: var(--inset); position: relative; overflow: visible; }
.est__track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--faint); transform-origin: 0 50%; z-index: 1; }
.est__track b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); transform-origin: 0 50%; }
.est__row em { font-style: normal; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); text-align: right; }
.hours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 92px; margin-top: 8px; }
.hours i { display: block; border-radius: 5px; background: var(--accent-soft); height: var(--h); transform-origin: 50% 100%; }
.hours i.hi { background: var(--accent); }

/* rot review */
.rot { display: grid; gap: 8px; }
.rot__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; }
.rot__row b { color: var(--ink); font-weight: 600; display: block; }
.rot__row small { color: var(--muted); font-size: 0.78rem; }

/* keys + command list */
.keys { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.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-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: #080808; color: #d7dadd; border: 1px solid var(--stage-line); overflow: hidden; }
.term .c { color: #7d848b; } .term .g { color: #6fd6a3; } .term .b { color: #7cc7e6; } .term .y { color: #e7c16a; }
.term .caret { display: inline-block; width: 7px; height: 1em; background: #d7dadd; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }

/* widgets / watch tiles */
.miniwidget { padding: 14px; border-radius: 22px; background: var(--inset); display: grid; gap: 8px; }
.miniwidget b { font-size: 0.78rem; color: var(--faint); font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.miniwidget .tk { background: var(--page); padding: 8px 10px; font-size: 0.82rem; }
.ctrl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ctrl div { padding: 16px; border-radius: 22px; background: var(--inset); display: grid; gap: 8px; justify-items: start; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.ctrl div i { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-style: normal; }
.ctrl div i svg { width: 16px; height: 16px; }

/* sync */
.sync { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; text-align: center; }
.sync__dev { padding: 14px 8px; border-radius: 16px; background: var(--inset); display: grid; gap: 6px; justify-items: center; font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.sync__dev svg { width: 26px; height: 26px; color: var(--accent-text); }
.sync__link { position: relative; width: 38px; height: 2px; background: var(--line); }
.sync__link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ==========================================================================
   Evidence section
   ========================================================================== */
.evid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.evid__copy { display: grid; gap: 22px; }
.evid__nos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.evid__nos span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--stage-ink); font-size: 0.92rem; font-weight: 550; }
.evid__nos svg { width: 14px; height: 14px; color: var(--stage-muted); }
.graph { padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--stage-2); border: 1px solid var(--stage-line); }
.graph__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 0.86rem; color: var(--stage-muted); }
.graph__top b { color: var(--stage-ink); font-size: 1rem; letter-spacing: -0.02em; }
.graph svg { width: 100%; height: auto; overflow: visible; }
.graph .gl { stroke: rgba(255, 255, 255, 0.09); }
.graph .curve { fill: none; stroke: var(--stage-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.graph .busy { fill: rgba(255, 255, 255, 0.14); }
.graph .dip { fill: none; stroke: #f2b544; stroke-width: 2; stroke-dasharray: 4 5; }
.graph text { fill: var(--stage-muted); font-family: var(--mono); font-size: 11px; }
.graph__foot { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--stage-muted); }
.graph__foot span { display: inline-flex; align-items: center; gap: 8px; }
.graph__foot i { width: 14px; height: 4px; border-radius: 2px; background: var(--stage-accent); }
.graph__foot i.b { background: rgba(255, 255, 255, 0.3); }
.graph__tag { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(242, 181, 68, 0.15); color: #f2b544; }
.evid__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(28px, 4vw, 56px); }
.ecard { padding: 26px; border-radius: var(--r-lg); background: var(--stage-2); border: 1px solid var(--stage-line); display: grid; gap: 10px; align-content: start; }
.ecard small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--stage-accent); }
.ecard h3 { font-size: 1.3rem; letter-spacing: -0.028em; color: var(--stage-ink); }
.ecard p { color: var(--stage-muted); font-size: 0.97rem; line-height: 1.45; }

/* ==========================================================================
   Agent door (home teaser)
   ========================================================================== */
.agent { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.agent__copy { display: grid; gap: 22px; }
.agent__list { display: grid; gap: 4px; margin-top: 6px; }
.agent__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; }
.agent__list li small { display: block; font-weight: 400; color: var(--muted); font-size: 0.93rem; }
.chat { display: grid; gap: 12px; padding: clamp(18px, 2.4vw, 28px); background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); }
.chat__bar { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.chat__bar b { color: var(--ink); font-size: 0.95rem; letter-spacing: -0.015em; }
.msg { padding: 12px 16px; border-radius: 18px; font-size: 0.97rem; line-height: 1.4; max-width: 88%; }
.msg--me { background: var(--ink); color: var(--canvas); justify-self: end; border-bottom-right-radius: 6px; }
.msg--ai { background: var(--inset); color: var(--ink); border-bottom-left-radius: 6px; }
.toolcall { font-family: var(--mono); font-size: 0.74rem; padding: 10px 14px; border-radius: 14px; background: #080808; color: #d7dadd; border: 1px solid var(--line-soft); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolcall b { color: #7cc7e6; font-weight: 500; }
.toolcall .ok { color: #6fd6a3; margin-left: auto; }
.proposal { padding: 16px; border-radius: 18px; background: var(--page); box-shadow: 0 0 0 1.5px var(--accent-line), var(--shadow-md); display: grid; gap: 10px; }
.proposal__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.proposal b { color: var(--ink); font-size: 0.98rem; letter-spacing: -0.015em; }
.diff { display: grid; gap: 4px; font-family: var(--mono); font-size: 0.74rem; }
.diff div { padding: 5px 10px; border-radius: 8px; }
.diff .minus { background: var(--danger-soft); color: var(--danger); }
.diff .plus { background: var(--ok-soft); color: var(--ok); }
.proposal__btns { display: flex; gap: 8px; }
.proposal__btns .btn { height: 38px; font-size: 0.88rem; padding: 0 18px; }
.proposal.is-accepted { box-shadow: 0 0 0 1.5px var(--ok), var(--shadow-md); }
.proposal.is-declined { opacity: 0.55; }

/* ==========================================================================
   Privacy numbers
   ========================================================================== */
.bignums { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.bignum { padding: clamp(22px, 2.6vw, 34px); background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); display: grid; gap: 10px; align-content: start; }
.bignum__n { font-size: clamp(3.6rem, 7vw, 6rem); font-weight: 620; letter-spacing: -0.07em; color: var(--ink); line-height: 0.9; font-variant-numeric: tabular-nums; }
.bignum b { font-size: 1.05rem; color: var(--ink); letter-spacing: -0.015em; }
.bignum p { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }

/* ==========================================================================
   Compare / can-cant / roadmap
   ========================================================================== */
.table-wrap { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.compare { width: 100%; min-width: 860px; 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 { 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: 32%; }
.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); }
.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; }

.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.038em; font-weight: 620; 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--no .mk--n { background: rgba(255, 255, 255, 0.1); color: var(--stage-muted); }

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.rcol { padding: clamp(22px, 2.6vw, 34px); background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); display: grid; gap: 16px; align-content: start; }
.rcol__tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rcol__tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.rcol h3 { font-size: 1.5rem; letter-spacing: -0.03em; font-weight: 620; color: var(--ink); }
.rcol li { padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 0.98rem; color: var(--ink); line-height: 1.35; font-weight: 500; }
.rcol li small { display: block; color: var(--muted); font-weight: 400; font-size: 0.86rem; margin-top: 2px; }

/* ---------- 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.027em; 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; overflow: hidden; }
.faq__a strong { color: var(--ink); }
.faq__a a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- finale: a completion ---------- */
.finale { position: relative; height: 210vh; }
.finale__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--canvas); }
.finale__disc { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--stage); will-change: transform; }
.finale__ring { position: absolute; left: 50%; top: 50%; width: min(34vmin, 300px); height: min(34vmin, 300px); transform: translate(-50%, -50%); }
.finale__ring svg { width: 100%; height: 100%; overflow: visible; }
.finale__ring .ring-track { fill: none; stroke: var(--line); stroke-width: 3; }
.finale__ring .ring-draw { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.finale__ring .tick { fill: none; stroke: var(--canvas); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.finale__ring .ring-fill { fill: var(--ink); }
.finale__inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 26px; padding: 0 var(--gutter); max-width: 680px; color: var(--stage-ink); }
.finale__inner .h2 { font-size: clamp(2.4rem, 6.4vw, 5.6rem); color: var(--stage-ink); }
.finale__inner .lead { text-align: center; color: var(--stage-muted); }
.finale__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.finale .btn--primary { background: var(--stage-ink); color: #0e0e0e; }
.finale .btn--ghost { background: rgba(255, 255, 255, 0.1); color: var(--stage-ink); }

/* ---------- page heroes (inner pages) ---------- */
.phero { padding-top: clamp(130px, 18vh, 190px); padding-bottom: clamp(40px, 6vw, 80px); }
.phero__in { display: grid; gap: 26px; max-width: 980px; }
.phero .h1 { font-size: clamp(2.6rem, 6.6vw, 6rem); }
.phero .lead { max-width: 52ch; }

/* ---------- footer ---------- */
.footer { padding: 56px 0 64px; background: var(--canvas); border-top: 1px solid var(--line-soft); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__about { display: grid; gap: 14px; align-content: start; color: var(--muted); font-size: 0.92rem; max-width: 32ch; }
.footer h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin: 0 0 14px; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 0.95rem; color: var(--muted); }
.footer__col a:hover { color: var(--ink); }
.footer__base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--faint); font-size: 0.85rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__links a.opt { display: none; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile, .tile--4, .tile--5, .tile--7, .tile--8, .tile--6 { grid-column: span 6; }
  .words { grid-template-columns: repeat(2, 1fr); }
  .fit, .agent, .evid { grid-template-columns: 1fr; }
  .fit__panel { position: relative; top: 0; }
  .evid__cards, .roadmap { grid-template-columns: 1fr; }
  .bignums { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@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; }
  .hpanel { grid-template-columns: 1fr; height: min(70vh, 620px); width: min(86vw, 520px); }
  .hpanel__art { display: none; }
  .hero__phone { display: none; }
  .floater { font-size: 0.78rem; padding: 7px 12px 7px 9px; }
  .f3, .f5 { display: none; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .brand { margin-right: 6px; }
  .nav .btn { display: none; }
  .flow, .limits { grid-template-columns: 1fr; }
  .flow__item { min-height: 0; }
  .words { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--4, .tile--5, .tile--6, .tile--7, .tile--8, .tile--12 { grid-column: span 1; min-height: 0; }
  .compare { min-width: 680px; }
  .compare th:first-child, .compare td:first-child { width: 180px; min-width: 180px; }
  .compare th, .compare td { padding: 14px 12px; }
  .fit__stats { grid-template-columns: 1fr 1fr 1fr; }
  .sync { grid-template-columns: 1fr; }
  .sync__link { width: 2px; height: 22px; justify-self: center; }
  .sync__link i { left: -3px; top: 0; }
  .finale { height: 170vh; }
  .footer__grid { grid-template-columns: 1fr; }
  .phero .h1 { letter-spacing: -0.05em; }
  .accent-pop { right: 0; width: min(272px, calc(100vw - 32px)); }
}

/* ---------- mobile menu panel ---------- */
.mnav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 10px; border-radius: 26px; background: var(--page); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); display: grid; gap: 2px; opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: 50% 0; pointer-events: none; transition: opacity 0.25s, transform 0.4s var(--ease); }
.mnav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mnav a { padding: 14px 16px; border-radius: 16px; font-size: 1.05rem; font-weight: 550; color: var(--ink); }
.mnav a:hover, .mnav a[aria-current="page"] { background: var(--hover); }
.mnav .btn { margin-top: 6px; }
@media (max-width: 760px) { .menu-btn { display: grid; } .nav__inner { width: min(100%, 560px); justify-content: space-between; } .nav__actions { margin-left: 0; } }
@media (min-width: 761px) { .mnav { display: none; } }

/* ---------- 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; }
  .manifesto__text .sw { opacity: 1; }
}

/* inline code on the always-dark stages */
.tour code, .stagebg code, .tile--dark code, .limits__col--no code, .finale code { background: rgba(255, 255, 255, 0.12); color: var(--stage-ink); }
