/* ==========================================================================
   Cortex OS — website
   Strict two-colour slate system, exactly as the app (CortexTheme.swift):
   canvas #F3F4F6 · white surfaces · ink #374151 · muted #9CA3AF.
   No hue anywhere. Depth comes from light, layering and type.
   ========================================================================== */

@font-face { font-family: "Sora"; src: url("../fonts/sora-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Instrument Serif's "1" reads like an "l". Digits in Cortex's voice come from a tiny subset of
   Source Serif 4 (SIL OFL, renamed "Cortex Voice Digits" as the licence requires for modified copies). */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/voice-digits.woff2") format("woff2"); font-weight: 400; font-style: normal; unicode-range: U+0030-0039; size-adjust: 86%; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/voice-digits-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; unicode-range: U+0030-0039; size-adjust: 86%; font-display: swap; }
/* "OS" in the lockup is Geist Mono Medium (logo kit), subset to two letters. */
@font-face { font-family: "Cortex Lockup Mono"; src: url("../fonts/geist-mono-os.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --canvas: #F3F4F6;
  --canvas-2: #ECEEF1;
  --paper: #FFFFFF;
  --sunken: #EEF0F3;
  --line: #E5E7EB;
  --line-2: #D1D5DB;
  --ink: #374151;
  --ink-2: #4B5563;
  --ink-3: #6B7280;
  --muted: #9CA3AF;
  --head: #111827;
  --night: #111827;
  --night-2: #1A2230;
  --night-3: #232C3B;
  --night-line: rgba(255, 255, 255, .08);

  --f-display: -apple-system, "SF Pro Display", BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --f-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --f-brand: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-voice: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --sh-1: 0 1px 2px rgba(17, 24, 39, .05), 0 0 0 1px rgba(17, 24, 39, .06);
  --sh-2: 0 0 0 1px rgba(17, 24, 39, .06), 0 2px 4px rgba(17, 24, 39, .04), 0 12px 32px -16px rgba(17, 24, 39, .18);
  --sh-3: 0 0 0 1px rgba(17, 24, 39, .07), 0 4px 8px rgba(17, 24, 39, .04), 0 30px 60px -30px rgba(17, 24, 39, .32), 0 80px 140px -70px rgba(17, 24, 39, .35);

  --gutter: clamp(18px, 4vw, 48px);
  --wrap: 1200px;
  --spring: cubic-bezier(.2, .9, .3, 1.15);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
::selection { background: rgba(55, 65, 81, .14); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--head); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.voice { font-family: var(--f-voice); font-weight: 400; letter-spacing: -.005em; }

/* ---------- brand lockup (WF 10 · Onboarding) ---------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--head); }
.lockup svg { width: 28px; height: 28px; color: var(--muted); }
.lockup .word { font-family: var(--f-brand); font-weight: 600; font-size: 21px; letter-spacing: -.03em; line-height: 1; }
.lockup .os { font-family: "Cortex Lockup Mono", var(--f-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .02em; color: var(--ink-2); margin-left: -5px; transform: translateY(3px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px;
  border-radius: 12px; border: 0; cursor: pointer;
  font: 600 15.5px/1 var(--f-ui); letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap;
  transition: background .2s ease, box-shadow .2s ease, transform .25s var(--spring), color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn .i { width: 16px; height: 16px; }
.btn-ink {
  color: #fff;
  background: linear-gradient(180deg, #414B5C 0%, #374151 55%, #2F3846 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px #2B3340, 0 6px 16px -6px rgba(17,24,39,.45);
}
.btn-ink:hover { background: linear-gradient(180deg, #384252 0%, #2F3846 60%, #29313D 100%); }
.btn-paper { background: var(--paper); color: var(--head); box-shadow: var(--sh-1); }
.btn-paper:hover { box-shadow: 0 0 0 1px rgba(17,24,39,.1), 0 4px 12px -6px rgba(17,24,39,.2); }
.btn-quiet { background: transparent; color: var(--ink-2); height: 40px; padding: 0 12px; }
.btn-quiet:hover { color: var(--head); background: rgba(17,24,39,.05); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
kbd, .kbd {
  display: inline-block;
  font: 600 12px/1 var(--f-ui); color: var(--ink-2);
  padding: 4px 6px; min-width: 22px; text-align: center;
  border-radius: 6px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 1px 0 1px var(--line);
}

/* ==========================================================================
   NAV — a macOS-style menu bar, with Cortex's status item on the right
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 249, 250, .72);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-bottom-color: rgba(17,24,39,.07); background: rgba(248, 249, 250, .82); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; padding: 8px 12px; border-radius: 8px; transition: color .2s ease, background .2s ease; }
.nav-links a:hover { color: var(--head); background: rgba(17,24,39,.05); }
.nav-links a.is-here { color: var(--head); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.status-item {
  position: relative; display: grid; place-items: center;
  width: 36px; height: 32px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink);
  transition: background .2s ease;
}
.status-item:hover, .status-item[aria-expanded="true"] { background: rgba(17,24,39,.07); }
.status-item svg { width: 20px; height: 20px; animation: breathe 4.2s ease-in-out infinite; }
.status-item .count { position: absolute; top: 2px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px; background: var(--ink); color: #fff; font: 700 9.5px/15px var(--f-ui); text-align: center; font-variant-numeric: tabular-nums; }
.is-paused .status-item svg { animation: none; opacity: .4; }
.status-item.fire svg { animation: fire .9s var(--ease); }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes fire { 0% { transform: scale(1); } 30% { transform: scale(1.22) rotate(-8deg); } 100% { transform: scale(1); } }
.noted {
  position: absolute; right: calc(100% + 6px); top: 50%;
  display: flex; align-items: center; gap: 7px;
  max-width: 340px; padding: 6px 12px 6px 10px; border-radius: 99px;
  background: var(--paper); box-shadow: var(--sh-2);
  font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translate(8px, -50%); pointer-events: none;
  transition: opacity .35s ease, transform .45s var(--spring);
}
.noted b { color: var(--head); font-weight: 600; }
.noted.show { opacity: 1; transform: translate(0, -50%); }
.noted .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }
.nav-right .btn { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; gap: 0; }
@media (max-width: 1100px) { .noted { display: none; } }
@media (max-width: 860px) { .nav-links { display: none; } .nav .wrap { gap: 12px; } }
@media (max-width: 420px) { .nav-right .btn { padding: 0 12px; } .nav-right .btn .long { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; text-align: center;
  padding: clamp(40px, 5.5vw, 64px) 0 0;
  background:
    radial-gradient(900px 520px at 50% -8%, #FFFFFF 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #F8F9FA 0%, var(--canvas) 640px);
  overflow-x: hidden; overflow-x: clip;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 6px; border-radius: 99px;
  background: var(--paper); box-shadow: var(--sh-1);
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  transition: box-shadow .2s ease;
}
.badge:hover { box-shadow: var(--sh-2); }
.badge img { width: 28px; height: 28px; }
.badge .sep { width: 1px; height: 16px; background: var(--line); }
.badge b { color: var(--head); font-weight: 600; }
.h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(46px, 7.6vw, 100px);
  line-height: .98;
  letter-spacing: -.048em;
  color: var(--head);
  margin: 22px auto 0;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(18px, 1.75vw, 22px); line-height: 1.5; color: var(--ink-2);
  max-width: 37em; margin: 22px auto 0; text-wrap: balance; letter-spacing: -.005em;
}
.hero-sub b { color: var(--head); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 30px; }
.hero-note { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 20px auto 0; font-size: 14.5px; color: var(--ink-3); }
.hero-note button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px; border-radius: 7px; border: 0; cursor: pointer; background: var(--paper); box-shadow: var(--sh-1); color: var(--ink); vertical-align: middle; }
.hero-note button svg { width: 16px; height: 16px; }

/* at-a-glance benefit tabs: each one switches the app window below */
.benefits {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
  margin: clamp(40px, 4.5vw, 56px) auto 0; text-align: left;
}
.benefit {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  padding: 18px 16px 16px; border-radius: 16px;
  transition: background .25s ease, box-shadow .25s ease;
}
.benefit::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 2px; background: var(--line); }
.benefit .bar { position: absolute; left: 16px; top: 0; height: 2px; width: 0; border-radius: 2px; background: var(--ink); }
.benefit .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); box-shadow: var(--sh-1); color: var(--ink-2); margin-bottom: 14px; transition: background .25s ease, color .25s ease; }
.benefit .ic .i { width: 17px; height: 17px; }
.benefit b { display: block; font-size: 15.5px; font-weight: 600; color: var(--head); letter-spacing: -.01em; line-height: 1.3; }
.benefit small { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; margin-top: 6px; }
.benefit:not([aria-selected="true"]) { opacity: .62; }
.benefit:hover { opacity: 1; background: rgba(255,255,255,.55); }
.benefit[aria-selected="true"] { opacity: 1; background: var(--paper); box-shadow: var(--sh-2); }
.benefit[aria-selected="true"] .ic { background: var(--ink); color: #fff; box-shadow: none; }
.benefit[aria-selected="true"]::before { background: transparent; }
.benefit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 1100px) { .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .benefits { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .benefits::-webkit-scrollbar { display: none; }
  .benefit { flex: 0 0 220px; scroll-snap-align: start; }
}

/* the product */
.stage-wrap { margin-top: 28px; perspective: 2200px; }
.tour-scroller { position: relative; }
.tour-stage { position: relative; width: 100%; transform-origin: 50% 0; will-change: transform; }
.tour-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; margin: 30px auto 0; text-align: left; max-width: 1100px; }
.tour-cap h3 { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; color: var(--head); margin: 0; }
.tour-cap p { margin: 4px 0 0; color: var(--ink-3); font-size: 15.5px; max-width: 70ch; }
.tour-cap .ctrls { display: flex; align-items: center; gap: 8px; }
.tour-cap .count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.tour-cap .ctrls button { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--paper); box-shadow: var(--sh-1); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.tour-cap .ctrls button:hover { box-shadow: var(--sh-2); }
.tour-cap .ctrls .i { width: 16px; height: 16px; }
@media (max-width: 760px) { .tour-cap { grid-template-columns: minmax(0, 1fr); margin-top: 18px; gap: 12px; } .tour-cap h3 { font-size: 18px; } .tour-cap p { font-size: 15px; } }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { padding: clamp(80px, 13vw, 180px) 0 0; }
.sec-head { text-align: center; max-width: 820px; margin: 0 auto; }
.sec-head.left { text-align: left; margin: 0; }
.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.042em;
  color: var(--head);
  margin: 0;
  text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 38em; margin: 20px auto 0; text-wrap: pretty; }
.sec-head.left .lede { margin-left: 0; }

/* ==========================================================================
   ASK — the Command HUD on a desktop (WF 08)
   ========================================================================== */
.screen {
  position: relative; margin: 56px auto 0; max-width: 1080px;
  border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(800px 420px at 50% 0%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #E6E9ED 0%, #D9DDE3 100%);
  box-shadow: var(--sh-3);
  padding: 0 0 56px;
}
.screen .wall { position: absolute; width: 760px; height: 760px; right: -190px; bottom: -260px; color: rgba(255,255,255,.55); pointer-events: none; }
.screen .wall path { stroke-width: 7; }
.screen-bar { position: relative; height: 34px; display: flex; align-items: center; gap: 18px; padding: 0 18px; background: rgba(240,242,245,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(17,24,39,.05); font-size: 13px; color: #1F2937; }
.screen-bar b { font-weight: 700; }
.screen-bar .sp { flex: 1; }
.screen-bar svg { width: 16px; height: 16px; }
.screen-bar .clock { font-variant-numeric: tabular-nums; }
.screen .hud { position: relative; margin: 64px auto 0; width: min(760px, calc(100% - 32px)); }
.summon { position: relative; display: flex; justify-content: center; margin-top: 22px; }
.summon span { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px 0 16px; border-radius: 99px; background: rgba(255,255,255,.8); box-shadow: var(--sh-1); font-size: 13.5px; color: var(--ink); }
.summon .kbd { font-size: 11.5px; }

.hud {
  background: #FFFFFF;
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(17,24,39,.08), 0 2px 6px rgba(17,24,39,.05), 0 40px 80px -40px rgba(17,24,39,.45);
  overflow: hidden; text-align: left;
}
.hud-q { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.hud-q > svg { width: 28px; height: 28px; color: var(--muted); flex: none; }
.hud-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 clamp(17px, 1.9vw, 22px)/1.3 var(--f-ui); color: var(--head); letter-spacing: -.015em; padding: 4px 0; }
.hud-input::placeholder { color: var(--muted); font-weight: 500; }
.hud-ans { padding: 18px 22px 20px; border-bottom: 1px solid var(--line); }
.hud-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 12.5px; color: var(--ink-3); }
.hud-meta .lbl { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.hud-meta .lbl .i { width: 14px; height: 14px; }
.src { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: var(--sunken); color: var(--ink-2); font-size: 12px; }
.src.visit { background: var(--ink); color: #fff; }
.src.docs { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.hud-text { font-family: var(--f-voice); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.25; color: var(--head); margin: 10px 0 0; text-wrap: pretty; }
.hud-text .tw-caret { display: inline-block; width: 2px; height: .95em; background: var(--ink); vertical-align: -.1em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hud-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hud-acts:empty { display: none; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1 var(--f-mono); color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-link .i { width: 14px; height: 14px; color: var(--ink-3); }
.hud-try { padding: 12px 12px 10px; }
.hud-try-lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 4px 10px 8px; }
.hud-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; transition: background .15s ease; }
.hud-row:hover, .hud-row.is-active { background: var(--canvas); }
.hud-row .sq { width: 34px; height: 34px; border-radius: 9px; background: var(--canvas); display: grid; place-items: center; color: var(--ink-2); }
.hud-row:hover .sq, .hud-row.is-active .sq { background: var(--paper); }
.hud-row b { display: block; font-weight: 600; font-size: 15px; color: var(--head); }
.hud-row small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.hud-row .src { font-size: 11.5px; }
.hud-foot { display: flex; align-items: center; gap: 10px; padding: 12px 22px; background: #F7F8FA; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.hud-foot .i { width: 14px; height: 14px; }
.hud-foot .keys { margin-left: auto; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.hud-foot .kbd { font-size: 11px; padding: 3px 5px; }
@media (max-width: 640px) {
  .hud-foot .keys { display: none; } .hud-row .src { display: none; }
  .hud-q { padding: 14px 16px; gap: 10px; } .hud-q > svg { width: 22px; height: 22px; } .hud-q .kbd { display: none; }
  .hud-ans { padding: 16px; } .hud-input { font-size: 16px; }
  .screen { border-radius: 20px; padding-bottom: 28px; } .screen .hud { margin-top: 28px; width: calc(100% - 20px); }
  .screen-bar span:not(.clock):not(b) { display: none; }
}

/* HUD overlay (⌘K) */
.hud-overlay { position: fixed; inset: 0; z-index: 80; display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; background: rgba(214, 218, 224, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.hud-overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.hud-overlay .hud { width: min(760px, 100%); transform: translateY(-8px) scale(.985); transition: transform .35s var(--spring); }
.hud-overlay.is-open .hud { transform: none; }
.hud-esc { margin-left: auto; cursor: pointer; border: 0; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { counter-increment: s; }
.step-vis { position: relative; height: 230px; border-radius: 22px; background: linear-gradient(180deg, #FFFFFF, #F7F8FA); box-shadow: var(--sh-2); overflow: hidden; display: grid; place-items: center; padding: 22px; }
.step h3 { display: flex; gap: 12px; align-items: baseline; margin: 24px 0 0; font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: var(--head); }
.step h3::before { content: counter(s); flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px/1 var(--f-ui); transform: translateY(-2px); }
.step p { margin: 10px 0 0 38px; color: var(--ink-3); font-size: 15.5px; max-width: 34ch; }
/* step visuals */
.perm { width: 100%; max-width: 330px; display: grid; gap: 8px; }
.perm div { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); box-shadow: var(--sh-1); font-size: 13.5px; color: var(--head); font-weight: 600; }
.perm .sq { width: 30px; height: 30px; border-radius: 8px; background: var(--canvas); display: grid; place-items: center; color: var(--ink-2); }
.perm .sq .i { width: 15px; height: 15px; }
.perm em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--ink-2); display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; border-radius: 99px; background: var(--canvas); }
.perm em .i { width: 11px; height: 11px; }
.mbar { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 16px; background: rgba(240,242,245,.9); border-bottom: 1px solid rgba(17,24,39,.05); font-size: 12px; color: #1F2937; }
.mbar .on { display: grid; place-items: center; width: 26px; height: 22px; border-radius: 6px; background: rgba(17,24,39,.09); }
.mbar svg { width: 15px; height: 15px; }
.mini-comp { margin-top: 26px; width: 100%; max-width: 300px; border-radius: 14px; background: var(--paper); box-shadow: var(--sh-2); padding: 14px; }
.mini-comp header { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; }
.mini-comp header svg { width: 28px; height: 28px; color: var(--muted); }
.mini-comp b { font-size: 14.5px; color: var(--head); display: block; }
.mini-comp small { font-size: 11.5px; color: var(--ink-3); }
.mini-comp .tgl { width: 30px; height: 18px; border-radius: 99px; background: var(--ink); position: relative; }
.mini-comp .tgl::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.mini-comp .tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.mini-comp .tri div { background: var(--canvas); border-radius: 9px; padding: 7px 9px; font-size: 10.5px; color: var(--ink-3); }
.mini-comp .tri b { font-size: 15px; }
.mini-hud { width: 100%; max-width: 340px; border-radius: 16px; background: var(--paper); box-shadow: var(--sh-2); overflow: hidden; text-align: left; }
.mini-hud .q { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--head); }
.mini-hud .q svg { width: 20px; height: 20px; color: var(--muted); }
.mini-hud .a { padding: 12px 14px 14px; }
.mini-hud .a small { font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.mini-hud .a small .i { width: 12px; height: 12px; }
.mini-hud .a p { margin: 6px 0 0; font-family: var(--f-voice); font-size: 18px; line-height: 1.22; color: var(--head); }
.summon-mini { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--paper); box-shadow: var(--sh-1); font-size: 12px; }
.summon-mini .kbd { font-size: 10.5px; padding: 3px 5px; }
.step-vis.col { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ==========================================================================
   PRIVACY — the one dark band
   ========================================================================== */
.night {
  margin: clamp(80px, 13vw, 180px) clamp(0px, 1.2vw, 16px) 0;
  border-radius: clamp(0px, 2.4vw, 36px);
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(255,255,255,.07), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #151B26 0%, var(--night) 60%);
  color: #D1D5DB;
  padding: clamp(72px, 11vw, 150px) 0 clamp(64px, 10vw, 130px);
  overflow: hidden; position: relative;
}
.night .wall { position: absolute; width: 900px; height: 900px; left: 50%; top: -420px; transform: translateX(-50%); color: rgba(255,255,255,.035); pointer-events: none; }
.night .wall path { stroke-width: 5; }
.night .h2 { color: #F9FAFB; }
.night .lede { color: #9CA3AF; }
.priv-grid { position: relative; display: grid; gap: 16px; margin-top: 56px; }
.play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: var(--night-2); box-shadow: 0 0 0 1px var(--night-line), 0 40px 80px -40px rgba(0,0,0,.6); }
@media (max-width: 880px) { .play { grid-template-columns: minmax(0, 1fr); } }
.play-in, .play-out { padding: 24px 26px 26px; }
.play-out { background: rgba(255,255,255,.02); border-left: 1px solid var(--night-line); }
@media (max-width: 880px) { .play-out { border-left: 0; border-top: 1px solid var(--night-line); } }
.play h3 { margin: 0; font-size: 13.5px; font-weight: 600; color: #9CA3AF; display: flex; align-items: center; gap: 8px; }
.play h3 .i { width: 16px; height: 16px; }
.ctx { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
.ctx button { height: 32px; padding: 0 12px; border-radius: 9px; border: 0; cursor: pointer; background: rgba(255,255,255,.06); font-size: 13.5px; color: #D1D5DB; display: inline-flex; align-items: center; gap: 7px; transition: background .2s ease, color .2s ease; }
.ctx button:hover { background: rgba(255,255,255,.1); }
.ctx button[aria-pressed="true"] { background: #F9FAFB; color: var(--head); }
.ctx button .i { width: 14px; height: 14px; }
.play textarea, .play input.pw {
  width: 100%; min-height: 156px; resize: vertical;
  border: 0; border-radius: 14px; padding: 14px 16px;
  font: 14.5px/1.6 var(--f-mono); color: #F9FAFB; background: #0D121B;
  box-shadow: inset 0 0 0 1px var(--night-line); outline: none; transition: box-shadow .2s ease;
}
.play textarea::placeholder, .play input.pw::placeholder { color: #4B5563; }
.play input.pw { min-height: 0; height: 54px; font-size: 18px; letter-spacing: .12em; }
.play textarea:focus, .play input.pw:focus { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 0 0 4px rgba(255,255,255,.05); }
.play textarea:disabled { opacity: .5; }
.samples { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 13.5px; color: #6B7280; align-items: center; }
.samples button { all: unset; cursor: pointer; color: #E5E7EB; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.samples button:hover { text-decoration-color: #E5E7EB; }
.samples button:focus-visible { outline: 2px solid #fff; border-radius: 3px; }
.out-file { font: 12.5px/1.4 var(--f-mono); color: #6B7280; margin: 14px 0 10px; }
.out-text { font: 14.5px/1.6 var(--f-mono); color: #F3F4F6; white-space: pre-wrap; word-break: break-word; min-height: 156px; border-radius: 14px; padding: 14px 16px; background: #0D121B; box-shadow: inset 0 0 0 1px var(--night-line); }
.out-text .ph { color: #6B7280; font-family: var(--f-voice); font-size: 19px; }
.red-tok { display: inline; padding: 1px 6px; border-radius: 6px; background: #F9FAFB; color: var(--head); font-weight: 600; }
.red-tok.fresh { animation: tok 1.1s var(--ease) both; }
@keyframes tok { 0% { background: #9CA3AF; } 100% { background: #F9FAFB; } }
.out-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; color: #9CA3AF; align-items: center; }
.out-sum b { color: #F9FAFB; }

.pipe { border-radius: 22px; background: var(--night-2); box-shadow: 0 0 0 1px var(--night-line); padding: 24px 26px; }
.pipe-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; justify-content: space-between; }
.pipe-head h3 { margin: 0; font-size: 13.5px; font-weight: 600; color: #9CA3AF; }
.pipe-head p { margin: 0; font-size: 13.5px; color: #6B7280; }
.pipe-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.pipe-line { position: absolute; left: 4%; right: 4%; top: 22px; height: 1px; background: rgba(255,255,255,.12); }
.pipe-spark { position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 0 18px 3px rgba(255,255,255,.45); opacity: 0; }
.stage { position: relative; text-align: left; }
.stage .dot { width: 44px; height: 44px; border-radius: 13px; background: var(--night-3); display: grid; place-items: center; color: #9CA3AF; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--night-2), inset 0 0 0 1px var(--night-line); transition: background .3s ease, color .3s ease; }
.stage.lit .dot { background: #4B5563; color: #fff; }
.stage.hit .dot { background: #F9FAFB; color: var(--head); }
.stage h4 { margin: 14px 0 4px; font-size: 14.5px; font-weight: 600; color: #F3F4F6; }
.stage h4 span { color: #6B7280; font-weight: 500; }
.stage p { margin: 0; font-size: 13px; line-height: 1.45; color: #9CA3AF; min-height: 3.9em; }
.stage .now { display: block; margin-top: 10px; font: 500 12px/1.4 var(--f-mono); color: #D1D5DB; background: rgba(255,255,255,.05); border-radius: 7px; padding: 6px 8px; min-height: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background .3s ease, color .3s ease; }
.stage.hit .now { background: #F9FAFB; color: var(--head); }
@media (max-width: 880px) {
  .pipe-track { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pipe-line { left: 21px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .stage { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; }
  .stage h4 { margin-top: 2px; } .stage p { min-height: 0; }
  .stage > :not(.dot) { grid-column: 2; } .stage .dot { grid-row: 1 / span 3; }
}
.night-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 880px) { .night-facts { grid-template-columns: minmax(0, 1fr); } }
.night-facts div { border-radius: 18px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--night-line); padding: 20px 22px; }
.night-facts .i { width: 20px; height: 20px; color: #E5E7EB; }
.night-facts b { display: block; margin-top: 14px; font-size: 15.5px; font-weight: 600; color: #F9FAFB; }
.night-facts p { margin: 6px 0 0; font-size: 14px; color: #9CA3AF; }

/* ==========================================================================
   USE CASES
   ========================================================================== */
.cases { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; margin-top: 56px; align-items: start; }
@media (max-width: 900px) { .cases { grid-template-columns: minmax(0, 1fr); } }
.roles { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 96px; }
@media (max-width: 900px) { .roles { position: static; flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; } .roles::-webkit-scrollbar { display: none; } }
.role { all: unset; box-sizing: border-box; cursor: pointer; display: block; padding: 14px 16px; border-radius: 14px; transition: background .2s ease, box-shadow .2s ease; }
.role:hover { background: rgba(255,255,255,.6); }
.role b { display: block; font-size: 16.5px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }
.role small { display: block; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.role[aria-selected="true"] { background: var(--paper); box-shadow: var(--sh-2); }
.role[aria-selected="true"] b { color: var(--head); }
.role:focus-visible { outline: 2px solid var(--ink); }
@media (max-width: 900px) { .role { flex: none; padding: 10px 14px; } .role small { display: none; } }
.story { min-width: 0; background: var(--paper); border-radius: 26px; box-shadow: var(--sh-2); padding: clamp(24px, 3.2vw, 40px); min-height: 520px; }
.story h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.035em; line-height: 1.06; color: var(--head); margin: 0; max-width: 26ch; text-wrap: balance; hyphens: none; }
.story > p { color: var(--ink-3); margin: 12px 0 0; max-width: 56ch; }
.beats { list-style: none; margin: 30px 0 0; padding: 0; position: relative; }
.beats::before { content: ""; position: absolute; left: 58px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.beat { display: grid; grid-template-columns: 50px 17px minmax(0, 1fr); gap: 0 12px; padding: 12px 0; }
.beat time { font-size: 13px; color: var(--ink-3); padding-top: 5px; font-variant-numeric: tabular-nums; text-align: right; }
.beat .node { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); margin: 7px 0 0 3px; position: relative; z-index: 1; }
.beat:last-child .node { background: var(--ink); border-color: var(--ink); }
.beat p { margin: 0; font-family: var(--f-voice); font-size: clamp(20px, 2vw, 23px); line-height: 1.28; color: var(--head); }
.beat .frag { margin-top: 12px; }
.story.swap .beat { animation: beat-in .6s var(--ease) both; }
.story.swap .beat:nth-child(2) { animation-delay: .08s; }
.story.swap .beat:nth-child(3) { animation-delay: .16s; }
@keyframes beat-in { from { opacity: 0; transform: translateY(8px); } }
.story-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.story-foot button { height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--canvas); cursor: pointer; font-size: 13.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.story-foot button:hover { background: var(--sunken); }
.story-foot .i { width: 14px; height: 14px; color: var(--ink-3); }
.frag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--canvas); font-size: 13px; color: var(--ink); max-width: 100%; }
.frag .pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; white-space: nowrap; max-width: 100%; }
.frag .pill .i { width: 12px; height: 12px; }
.frag code { font: 12px/1.4 var(--f-mono); word-break: break-all; }
.frag .bar { width: 120px; height: 6px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.frag .bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.frag > .i { width: 14px; height: 14px; color: var(--ink-3); }
@media (max-width: 520px) { .frag .pill { white-space: normal; } .beat { grid-template-columns: 40px 17px minmax(0, 1fr); } .beats::before { left: 48px; } }

/* ==========================================================================
   GET IT
   ========================================================================== */
.get { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .get { grid-template-columns: minmax(0, 1fr); } }
.dmg { position: relative; background: var(--paper); border-radius: 16px; box-shadow: var(--sh-3); overflow: hidden; user-select: none; }
.dmg-bar { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #F7F8FA; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dmg-bar i { width: 12px; height: 12px; border-radius: 50%; background: #D7DAE0; display: block; }
.dmg-bar span { margin: 0 auto; transform: translateX(-26px); }
.dmg-body { position: relative; height: 340px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; background: radial-gradient(circle at 1px 1px, rgba(17,24,39,.06) 1px, transparent 0) 0 0 / 18px 18px, linear-gradient(#FCFCFD, #F4F5F7); }
.dmg-item { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); position: relative; z-index: 2; }
.dmg-app { cursor: grab; touch-action: none; transition: transform .45s var(--spring), opacity .3s ease; }
.dmg-app:active { cursor: grabbing; }
.dmg-app.dragging { transition: none; z-index: 5; }
.dmg-app img { width: 140px; height: 140px; pointer-events: none; }
.dmg-app.installed { opacity: 0; transform: scale(.3); }
.folder { width: 128px; height: 104px; position: relative; transition: transform .3s var(--spring); }
.folder svg { width: 128px; height: 104px; }
.folder.hot { transform: scale(1.08); }
.folder.nope { animation: nope .5s ease; }
@keyframes nope { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.dmg-arrow { position: absolute; left: 33%; right: 33%; top: 33%; height: 60px; color: var(--line-2); z-index: 1; }
.dmg-arrow path { stroke-dasharray: 6 7; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -26; } }
.dmg-msg { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: 90%; font-size: 13.5px; color: var(--ink-2); background: var(--paper); border-radius: 99px; padding: 8px 14px; box-shadow: var(--sh-2); z-index: 3; text-align: center; }
.get-copy .h2 { max-width: 12ch; }
.get-copy .lede { margin-left: 0; }
.waitlist { margin-top: 30px; }
.waitlist label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.wl-row { display: flex; gap: 8px; max-width: 480px; }
.wl-row input { flex: 1; min-width: 0; height: 50px; border-radius: 12px; border: 0; padding: 0 16px; background: var(--paper); box-shadow: var(--sh-1); font: 16px var(--f-ui); color: var(--head); outline: none; transition: box-shadow .2s ease; }
.wl-row input:focus { box-shadow: 0 0 0 1.5px var(--ink-3), 0 0 0 5px rgba(55,65,81,.08); }
.wl-row .btn { height: 50px; }
@media (max-width: 480px) { .wl-row { flex-direction: column; } }
.wl-help { font-size: 13.5px; color: var(--ink-3); margin: 10px 0 0; }
.wl-error { font-size: 13.5px; color: #B42318; margin: 10px 0 0; }
.wl-done { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; max-width: 480px; padding: 18px; border-radius: 16px; background: var(--paper); box-shadow: var(--sh-2); margin-top: 30px; }
.wl-done .ok { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.wl-done b { display: block; color: var(--head); font-size: 16px; }
.wl-done p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
#dlBtn { margin-top: 30px; }
.req { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14px; color: var(--ink-3); }
.req span { display: inline-flex; gap: 7px; align-items: center; }
.req .i { width: 15px; height: 15px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq-side { position: sticky; top: 100px; }
@media (max-width: 900px) { .faq-side { position: static; } }
.faq-side p { color: var(--ink-3); margin: 18px 0 0; }
.qas { background: var(--paper); border-radius: 24px; box-shadow: var(--sh-2); padding: 6px 28px; }
.qa + .qa { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 16px; align-items: center; padding: 22px 0; font-size: clamp(16.5px, 1.5vw, 18px); font-weight: 600; color: var(--head); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); transition: transform .3s var(--spring), background .2s ease; }
.qa summary:hover .pm { background: var(--canvas); }
.qa[open] summary .pm { transform: rotate(45deg); }
.qa .ans { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 64ch; font-size: 16px; }
.qa .ans p { margin: 0 0 10px; }
.qa .ans ul { margin: 0 0 10px; padding-left: 20px; }
.qa .ans li { margin: 4px 0; }
.qa .ans code { font: 14px var(--f-mono); background: var(--canvas); padding: 1px 6px; border-radius: 5px; }
.qa[open] .ans { animation: ans-in .35s var(--ease); }
@keyframes ans-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 600px) { .qas { padding: 4px 18px; border-radius: 20px; } .qa .ans { padding-right: 0; } }

/* ==========================================================================
   FINALE — where you left off
   ========================================================================== */
.leftoff { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-top: 56px; align-items: stretch; }
@media (max-width: 960px) { .leftoff { grid-template-columns: minmax(0, 1fr); } }
.lo-card { background: var(--paper); border-radius: 24px; box-shadow: var(--sh-2); padding: clamp(22px, 2.8vw, 32px); }
.lo-top { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lo-top .sq { width: 30px; height: 30px; border-radius: 9px; background: var(--canvas); display: grid; place-items: center; color: var(--ink-2); }
.lo-top .sq .i { width: 15px; height: 15px; }
.lo-top .pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--canvas); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lo-text { font-family: var(--f-voice); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--head); margin: 18px 0 22px; text-wrap: pretty; }
.lo-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .lo-three { grid-template-columns: minmax(0, 1fr); } }
.lo-three div { background: var(--canvas); border-radius: 12px; padding: 12px 14px; }
.lo-three small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lo-three p { margin: 6px 0 0; font-size: 14.5px; color: var(--head); line-height: 1.35; }
.lo-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.lo-acts .btn { height: 42px; font-size: 14.5px; }
.lo-file { display: flex; flex-direction: column; }
.lo-file header { display: flex; align-items: center; gap: 10px; font: 12.5px var(--f-mono); color: var(--ink-3); min-width: 0; }
.lo-file header span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lo-file header .i { width: 15px; height: 15px; }
.lo-file header button { margin-left: auto; }
.lo-md { flex: 1; margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: var(--night); font: 12.5px/1.75 var(--f-mono); color: #D1D5DB; white-space: pre-wrap; word-break: break-word; overflow: auto; max-height: 420px; }
.lo-md .h { color: #fff; font-weight: 700; }
.lo-md .k { color: #6B7280; }
.lo-md .w { color: #F9FAFB; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.lo-md .r { color: var(--head); background: #E5E7EB; border-radius: 4px; padding: 0 4px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { margin-top: clamp(80px, 13vw, 170px); border-top: 1px solid var(--line); padding: 48px 0 max(56px, calc(env(safe-area-inset-bottom) + 32px)); background: linear-gradient(180deg, var(--canvas), #EDEFF2); }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-line { font-family: var(--f-voice); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; color: var(--head); margin: 24px 0 0; max-width: 24ch; text-wrap: balance; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14.5px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--head); }
.foot-small { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 10px; }

/* ==========================================================================
   VISIT MEMORY PANEL — the menu bar companion (WF 09), for this page
   ========================================================================== */
.rail {
  position: fixed; top: 70px; right: max(16px, calc((100vw - var(--wrap)) / 2 + var(--gutter) - 8px)); z-index: 60;
  width: 384px; max-width: calc(100vw - 24px); max-height: calc(100vh - 86px); max-height: calc(100dvh - 86px);
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.6) blur(24px); -webkit-backdrop-filter: saturate(1.6) blur(24px);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(17,24,39,.08), 0 30px 60px -20px rgba(17,24,39,.35), 0 10px 20px -10px rgba(17,24,39,.15);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: 92% 0; pointer-events: none; visibility: hidden;
  transition: opacity .2s ease, transform .35s var(--spring), visibility 0s linear .35s;
}
.rail.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
@media (max-width: 520px) { .rail { right: 12px; left: 12px; width: auto; top: 68px; } }
.rail-scrim { position: fixed; inset: 0; z-index: 55; background: transparent; visibility: hidden; }
.rail-scrim.is-open { visibility: visible; }
.rail-head { padding: 16px 16px 12px; }
.rail-state { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.rail-state > svg { width: 34px; height: 34px; color: var(--muted); }
.rail-state b { display: block; font-size: 16px; font-weight: 700; color: var(--head); letter-spacing: -.01em; }
.rail-state small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.tgl { position: relative; width: 38px; height: 22px; border-radius: 99px; border: 0; cursor: pointer; background: var(--ink); padding: 0; transition: background .2s ease; }
.tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transform: translateX(16px); transition: transform .25s var(--spring); }
.tgl[aria-checked="false"] { background: var(--line-2); }
.tgl[aria-checked="false"]::after { transform: none; }
.rail-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.rail-counts div { background: var(--canvas); border-radius: 11px; padding: 9px 11px; font-size: 11px; color: var(--ink-3); }
.rail-counts b { display: block; font: 700 19px/1.15 var(--f-display); color: var(--head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.rail-resume { margin-top: 14px; }
.rail-resume .lbl { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rail-resume p { margin: 5px 0 0; font-family: var(--f-voice); font-size: 18px; line-height: 1.22; color: var(--head); }
.rail-title { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--line); }
.rail-title span:last-child { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 12px; }
.rail-log { flex: 1; min-height: 120px; overflow-y: auto; padding: 2px 16px 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.rail-log ol { list-style: none; margin: 0; padding: 0; position: relative; }
.rail-log ol::before { content: ""; position: absolute; left: 41px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.m { display: grid; grid-template-columns: 34px 15px minmax(0, 1fr); gap: 0 8px; align-items: start; padding: 7px 0; font-size: 13px; }
.m time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.m .node { width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line-2); margin: 6px 0 0 3px; position: relative; z-index: 1; }
.m p { margin: 0; font-family: var(--f-voice); font-size: 17px; line-height: 1.26; color: var(--ink); text-wrap: pretty; }
.m .tag { display: inline-block; margin-top: 5px; font: 500 11px/1.4 var(--f-mono); color: var(--ink-3); background: var(--canvas); border-radius: 5px; padding: 2px 6px; word-break: break-all; }
.m.secret .node { border-color: var(--ink); background: var(--ink); }
.m.is-new { animation: m-in .7s var(--ease) both; }
.m.is-new .node { animation: node-fire 1.4s ease-out both; }
@keyframes m-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes node-fire { 0% { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 0 rgba(55,65,81,.35); } 60% { box-shadow: 0 0 0 7px rgba(55,65,81,0); } }
.rail-empty { font-family: var(--f-voice); font-size: 18px; color: var(--muted); padding: 12px 0; }
.rail-tools { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 6px 8px; }
.rail-tools button { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 13.5px; color: var(--ink); text-align: left; }
.rail-tools button:hover { background: var(--canvas); }
.rail-tools button .i { width: 15px; height: 15px; color: var(--ink-2); }
.rail-tools button .kbd { margin-left: auto; font-size: 10.5px; padding: 2px 5px; }
.rail-foot { display: flex; align-items: center; gap: 7px; border-top: 1px solid var(--line); padding: 10px 16px 12px; font-size: 11.5px; color: var(--ink-3); }
.rail-foot .i { width: 13px; height: 13px; }
.rail-foot .ver { margin-left: auto; font: 11px var(--f-mono); }
.mindbar { display: flex; gap: 2px; height: 6px; border-radius: 4px; overflow: hidden; background: var(--canvas); margin-top: 12px; }
.mindbar i { height: 100%; transition: flex-grow .6s var(--ease); min-width: 2px; }
.mindbar i:nth-child(3n+1) { background: #4B5563; }
.mindbar i:nth-child(3n+2) { background: #9CA3AF; }
.mindbar i:nth-child(3n) { background: #D1D5DB; }

/* ==========================================================================
   TOASTS (welcome back, etc.)
   ========================================================================== */
.toasts { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70; display: grid; gap: 10px; width: min(430px, calc(100vw - 32px)); }
.toast { background: rgba(255,255,255,.97); border-radius: 20px; padding: 18px 18px 16px; box-shadow: 0 0 0 1px rgba(17,24,39,.08), 0 30px 60px -24px rgba(17,24,39,.4); animation: toast-in .5s var(--spring) both; }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }
.toast header { display: grid; grid-template-columns: 34px 1fr 28px; gap: 12px; align-items: center; }
.toast header svg.mk { width: 32px; height: 32px; color: var(--muted); }
.toast header b { display: block; font-size: 17px; color: var(--head); letter-spacing: -.01em; }
.toast header small { display: block; font-size: 13px; color: var(--ink-3); }
.toast .x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; }
.toast .x:hover { background: var(--canvas); }
.toast ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.toast li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; font-size: 14px; color: var(--ink); }
.toast li span.sq { width: 26px; height: 26px; border-radius: 7px; background: var(--canvas); display: grid; place-items: center; color: var(--ink-2); }
.toast li .i { width: 13px; height: 13px; }
.toast .acts { display: flex; gap: 8px; margin-top: 16px; align-items: center; }
.toast .acts .btn { height: 38px; font-size: 14px; }
.toast p.msg { margin: 10px 0 0; font-family: var(--f-voice); font-size: 19px; line-height: 1.25; color: var(--head); }

/* ==========================================================================
   Load sequence + motion preferences
   ========================================================================== */
.rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .06s; } .rise.d2 { animation-delay: .14s; } .rise.d3 { animation-delay: .22s; } .rise.d4 { animation-delay: .3s; } .rise.d5 { animation-delay: .42s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* ==========================================================================
   RESPONSIVE — every screen type
   ========================================================================== */

/* Big displays (1080p and up): give the product more room */
@media (min-width: 1680px) {
  :root { --wrap: 1340px; }
  .h1 { font-size: clamp(100px, 6.4vw, 124px); }
  .hero-sub { font-size: 23px; }
  .h2 { font-size: clamp(64px, 3.6vw, 76px); }
  .lede { font-size: 21px; }
  .benefit b { font-size: 16.5px; }
  .benefit small { font-size: 14.5px; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1480px; }
  body { font-size: 18px; }
}

/* Short laptop screens (1280×720, 1366×768): keep the benefits above the fold */
@media (min-width: 900px) and (max-height: 820px) {
  .hero { padding-top: 26px; }
  .badge { height: 36px; font-size: 13.5px; }
  .h1 { font-size: min(7.6vw, 11.5vh, 100px); margin-top: 16px; }
  .hero-sub { font-size: 19px; margin-top: 16px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { height: 44px; }
  .hero-note { margin-top: 12px; font-size: 13.5px; }
  .benefits { margin-top: 26px; }
  .benefit { padding-top: 14px; }
  .benefit .ic { width: 30px; height: 30px; margin-bottom: 10px; }
}

/* Tablets */
@media (max-width: 1100px) {
  .hero-sub { max-width: 34em; }
}

/* Phones */
@media (max-width: 600px) {
  .h1 { font-size: 12.2vw; letter-spacing: -.045em; }
  .hero { padding-top: 32px; }
  .hero-sub { font-size: 17.5px; margin-top: 18px; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; max-width: 420px; margin-left: auto; margin-right: auto; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 15px; }
  .hero-actions .hide-sm { display: none; }
  .hero-note { font-size: 13.5px; }
  .benefits { margin-top: 36px; }
  .lede { font-size: 16.5px; }
  .story { padding: 22px 18px; border-radius: 22px; min-height: 0; }
  .qa summary { padding: 18px 0; }
  .play-in, .play-out, .pipe { padding: 18px; }
  .lo-card { border-radius: 20px; }
  .lo-acts .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .badge .badge-txt, .badge .sep { display: none; }
  .hero-actions .btn { font-size: 14px; padding: 0 8px; }
  .lockup .word { font-size: 19px; }
  .lockup svg { width: 24px; height: 24px; }
  .nav .wrap { gap: 8px; }
  .nav-right { gap: 4px; }
  .dmg-body { height: 260px; }
  .dmg-app img { width: 96px; height: 96px; }
  .folder, .folder svg { width: 92px; height: 75px; }
  .dmg-arrow { left: 30%; right: 30%; top: 30%; }
}
@media (max-width: 520px) {
  .dmg-body { height: 280px; }
  .dmg-app img { width: 112px; height: 112px; }
  .folder, .folder svg { width: 104px; height: 85px; }
  .dmg-msg { font-size: 12.5px; bottom: 12px; }
  .wl-row .btn { width: 100%; }
  .req { flex-direction: column; gap: 8px; }
}

/* Landscape phones and other very short screens */
@media (max-height: 500px) and (orientation: landscape) {
  .nav .wrap { height: 52px; }
  .rail { top: 58px; max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); }
  .hero { padding-top: 22px; }
  .h1 { font-size: min(7.6vw, 17vh); margin-top: 14px; }
  .hero-sub { font-size: 17px; margin-top: 14px; }
  .hud-overlay { padding-top: 4vh; }
}

/* Touch screens: no sticky hover states, no keyboard hints, no iOS zoom on inputs */
@media (hover: none) {
  .benefit:hover { opacity: .62; background: transparent; }
  .benefit[aria-selected="true"]:hover { opacity: 1; background: var(--paper); }
  .role:hover { background: transparent; }
  .role[aria-selected="true"]:hover { background: var(--paper); }
  .btn-paper:hover { box-shadow: var(--sh-1); }
  .status-item:hover { background: transparent; }
}
@media (hover: none) and (pointer: coarse) {
  .kbd-hint, .hud-foot .keys, .rail-tools .kbd, .hud-q > .kbd { display: none !important; }
  .play textarea, .play input.pw, .hud-input, .wl-row input { font-size: 16px; }
  .btn, .ctx button, .role, .benefit, .story-foot button, .tour-cap .ctrls button { touch-action: manipulation; }
}
.kbd-hint { display: inline-flex; gap: 4px; margin-left: 4px; }
.faq-ask { margin-top: 18px; }
@media (max-width: 600px) and (max-height: 700px) { .hero-note { display: none; } .benefits { margin-top: 28px; } }
/* Short screens: the whole panel scrolls as one, so the tools and footer never get cut off */
@media (max-height: 640px) {
  .rail { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .rail-log { flex: none; min-height: 0; max-height: none; overflow: visible; }
}
/* Role tabs scroll sideways on narrow screens: fade the edge so it reads as scrollable */
@media (max-width: 900px) {
  .roles { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 36px; }
}
