/* ============================================================
   CMD + J — Homepage v3 · "Editorial dark" (Chronicle-style)
   Swiss editorial language — hairline-divided grids, generous
   whitespace, grotesk type — rendered DARK with a living
   vertical line-field hero. Self-contained; loads after tokens.css.
   Reuses homepage.js hooks (.nav, #hero-demo, [data-waitlist], .reveal).
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: #060608;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
  letter-spacing: -0.011em;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent-soft); color: #fff; }

/* ---- editorial frame: hairline column rules down the whole page ---- */
.shell { position: relative; z-index: 1; }
.frame {
  position: fixed; top: 88px; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
  max-width: 1280px; margin: 0 auto;
}
.frame::before, .frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--line-1);
}
.frame::before { left: 28px; } .frame::after { right: 28px; }

/* ---- shared layout ---- */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.section { position: relative; padding: 0; }
.bd-top { border-top: 1px solid var(--line-1); }

/* big editorial type */
h1, h2, h3 { font-weight: var(--fw-semi); letter-spacing: -0.03em; text-wrap: balance; }
.display {
  font-size: clamp(46px, 6.6vw, 104px); line-height: 0.92; letter-spacing: -0.045em;
  font-weight: var(--fw-semi); margin: 0; color: #fff;
}
.h-lead { font-size: clamp(34px, 4.4vw, 64px); line-height: 0.98; letter-spacing: -0.04em; margin: 0; color: #fff; }
.mono-label {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--fw-medium);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3);
}

/* ---- keycaps + buttons ---- */
.kc {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: var(--fw-bold); color: var(--fg-1);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line-3);
  box-shadow: 0 2px 0 rgba(0,0,0,0.4), 0 5px 12px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.10);
}
.kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; font-family: var(--font-mono); font-size: 12px; font-weight: var(--fw-semi);
  color: var(--fg-2); background: rgba(255,255,255,0.06); border: 1px solid var(--line-2);
  border-radius: 5px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 8px;
  font-size: var(--text-base); font-weight: var(--fw-semi); white-space: nowrap;
  border: 1px solid var(--line-2); background: transparent; color: var(--fg-1);
  transition: background .18s var(--ease-out), border-color .18s, transform .18s, box-shadow .18s, color .18s;
}
.btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.04); }
.btn:active { transform: scale(0.985); }
.btn.solid { background: #fff; color: #0a0a0c; border-color: #fff; }
.btn.solid:hover { background: #e9e9ee; border-color: #e9e9ee; }
.btn.accent { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 8px 24px -10px var(--accent-ring); }
.btn.accent:hover { background: var(--accent-hover); }
.btn.lg { height: 52px; padding: 0 26px; font-size: var(--text-md); }
.btn.link { border: none; background: none; padding: 0 4px; height: auto; gap: 11px; }
.btn.link .play { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-3); display: inline-flex; align-items: center; justify-content: center; transition: border-color .18s, background .18s; }
.btn.link:hover .play { border-color: var(--line-strong); background: rgba(255,255,255,0.05); }
.btn.link .play svg { width: 11px; height: 11px; margin-left: 1px; }

/* ============================================================
   NAV — editorial top bar, hairline base, blur on scroll
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line-1); transition: background .25s, backdrop-filter .25s, border-color .25s; }
.nav.scrolled { background: rgba(6,6,8,0.74); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom-color: var(--line-2); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 66px; max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--fw-semi); font-size: var(--text-md); letter-spacing: -0.02em; }
.brand .mark { display: inline-flex; }
.brand .mark .sp { width: 18px; height: 18px; background: var(--ai-grad); -webkit-mask: var(--spark-mask) center/contain no-repeat; mask: var(--spark-mask) center/contain no-repeat; }

/* Brand keycap mark — the ⌘J logo pressed into a single dark key */
.brand .keycap {
  position: relative; display: inline-block; flex: none;
  width: 1em; height: 1em; font-size: 29px;
  border-radius: 0.28em;
  background: linear-gradient(180deg, #26262f 0%, #17171d 56%, #101015 100%);
  box-shadow:
    inset 0 0.012em 0 rgba(255,255,255,0.14),
    inset 0 -0.02em 0.03em rgba(0,0,0,0.6),
    0 0.08em 0.18em -0.05em rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
}
.brand .keycap::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 5%; height: 42%;
  border-radius: 0.22em 0.22em 50% 50% / 0.22em 0.22em 26% 26%;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
  pointer-events: none;
}
.brand .keycap .cmd {
  position: absolute; top: 14%; left: 15.5%;
  font-size: 0.235em; line-height: 1; color: #A6A6B0; font-weight: 500;
}
.brand .keycap .j {
  position: absolute; right: 20%; bottom: 9%;
  font-size: 0.68em; line-height: 1; font-weight: 600; letter-spacing: -0.02em;
  color: var(--accent); font-family: var(--font-sans);
}
/* Wordmark lockup */
.brand .wm { display: inline-flex; }
.brand .wm .wm-c { color: var(--fg-1); }
.brand .wm .wm-p { color: var(--fg-3); font-weight: var(--fw-medium); margin: 0 0.14em; }
.brand .wm .wm-j { color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: 34px; }
.nav-links a { padding: 8px 14px; border-radius: 7px; font-size: var(--text-base); color: var(--fg-2); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--fg-1); background: rgba(255,255,255,0.05); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-cta .login { font-size: var(--text-base); color: var(--fg-1); }
.nav-cta .login:hover { color: var(--fg-2); }
.nav-cta .btn { height: 40px; }

/* ============================================================
   HERO — editorial split + LIVING LINE-FIELD background
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-1); display: flex; align-items: center; min-height: 90vh; }
.hero-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* static vertical pinstripes — fade top & bottom */
.hero-lines .stripes {
  position: absolute; inset: -1px 0;
  background-image: repeating-linear-gradient(to right, var(--line-1) 0 1px, transparent 1px 42px);
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
  mask: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%);
}
/* LIGHT RAIN — luminous drops fall ALONG individual lines, each led
   by a small rounded ball of light. Staggered = gentle rain. */
.hero-lines .beam {
  position: absolute; top: 0; width: 1px; height: 84px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 60%, transparent));
  opacity: 0;
  animation: rainFall var(--dur,6s) cubic-bezier(.4,0,.55,1) var(--delay,0s) infinite;
}
.hero-lines .beam::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; transform: translateX(-50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, #ffffff);
  box-shadow: 0 0 10px 2px var(--accent-ring), 0 0 4px var(--accent);
}
@keyframes rainFall {
  0%   { opacity: 0; transform: translateY(-90px); }
  8%   { opacity: .9; }
  82%  { opacity: .9; }
  100% { opacity: 0; transform: translateY(78vh); }
}
body.no-motion .hero-lines .beam { animation: none; opacity: 0; }
/* abstract focus: a soft central bloom + a horizon where the rain settles */
.hero-bloom { position: absolute; left: 50%; top: 46%; width: 64%; height: 58%; transform: translate(-50%,-50%); z-index: 0; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft), transparent 70%); filter: blur(34px); }
.hero-horizon { position: absolute; left: 0; right: 0; bottom: 17%; height: 1px; z-index: 0; pointer-events: none; background: linear-gradient(to right, transparent, var(--accent-ring) 28%, color-mix(in srgb, var(--accent) 60%, transparent) 50%, var(--accent-ring) 72%, transparent); opacity: .85; }
.hero-horizon::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 64px; background: radial-gradient(60% 100% at 50% 100%, var(--accent-soft), transparent 76%); filter: blur(9px); }
body.no-motion .hero-horizon, body.no-motion .hero-bloom { opacity: .5; }

/* centered editorial hero copy — the abstract field is the main focus */
.hero-center { position: relative; z-index: 1; text-align: center; max-width: 940px; margin: 0 auto; padding: 0; }
.hero-center .eyebrow { margin-bottom: 26px; display: inline-flex; align-items: center; gap: 10px; justify-content: center; }
.hero-center .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-ring); }
.hero-center h1 { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: 0.96; letter-spacing: -0.045em; }
.hero-center h1 .ink { color: var(--fg-3); }            /* de-emphasized, Chronicle-style */
.hero-center h1 .cycler { color: #fff; position: relative; }
/* headline caret removed — too busy against the animated line-rain background */
@keyframes caretBlink { 50% { opacity: 0; } }
.hero-center .sub { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: var(--fg-2); margin: 28px auto 0; max-width: 50ch; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero-foot { margin-top: 30px; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .04em; color: var(--fg-4); }

/* AI prompt bar + example chips under the hero copy */
.hero-prompt-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 48px; }
.hero-prompt {
  display: inline-flex; align-items: center; gap: 12px; width: min(560px, 100%);
  padding: 13px 14px 13px 16px; border-radius: 14px;
  background: linear-gradient(180deg, var(--hud-fill-top), var(--hud-fill));
  backdrop-filter: blur(var(--hud-blur)) saturate(160%); -webkit-backdrop-filter: blur(var(--hud-blur)) saturate(160%);
  border: 1px solid var(--line-3); box-shadow: var(--shadow-hud);
}
.hero-prompt .spark { width: 19px; height: 19px; flex: none; }
.hero-prompt .hp-text { flex: 1; min-width: 0; text-align: left; font-size: var(--text-md); color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-prompt .hp-text b { color: var(--fg-1); font-weight: var(--fw-medium); }
.hero-prompt .hp-keys { display: inline-flex; gap: 4px; flex: none; }

/* orbiting bullet — a glowing arc that traces around the button border */
@property --orbit-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn.orbit { position: relative; isolation: isolate; }
.btn.orbit::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--orbit-a), transparent 0 66%, var(--accent-text) 80%, #ffffff 88%, var(--accent-text) 95%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: orbit 3s linear infinite;
}
@keyframes orbit {
  0% { --orbit-a: 0.00deg; }
  2.78% { --orbit-a: 29.33deg; }
  5.56% { --orbit-a: 48.34deg; }
  8.33% { --orbit-a: 59.33deg; }
  11.11% { --orbit-a: 66.02deg; }
  13.89% { --orbit-a: 70.41deg; }
  16.67% { --orbit-a: 73.48deg; }
  19.44% { --orbit-a: 75.74deg; }
  22.22% { --orbit-a: 82.12deg; }
  25% { --orbit-a: 90.00deg; }
  27.78% { --orbit-a: 97.88deg; }
  30.56% { --orbit-a: 104.26deg; }
  33.33% { --orbit-a: 106.52deg; }
  36.11% { --orbit-a: 109.59deg; }
  38.89% { --orbit-a: 113.98deg; }
  41.67% { --orbit-a: 120.67deg; }
  44.44% { --orbit-a: 131.66deg; }
  47.22% { --orbit-a: 150.67deg; }
  50% { --orbit-a: 180.00deg; }
  52.78% { --orbit-a: 209.33deg; }
  55.56% { --orbit-a: 228.34deg; }
  58.33% { --orbit-a: 239.33deg; }
  61.11% { --orbit-a: 246.02deg; }
  63.89% { --orbit-a: 250.41deg; }
  66.67% { --orbit-a: 253.48deg; }
  69.44% { --orbit-a: 255.74deg; }
  72.22% { --orbit-a: 262.12deg; }
  75% { --orbit-a: 270.00deg; }
  77.78% { --orbit-a: 277.88deg; }
  80.56% { --orbit-a: 284.26deg; }
  83.33% { --orbit-a: 286.52deg; }
  86.11% { --orbit-a: 289.59deg; }
  88.89% { --orbit-a: 293.98deg; }
  91.67% { --orbit-a: 300.67deg; }
  94.44% { --orbit-a: 311.66deg; }
  97.22% { --orbit-a: 330.67deg; }
  100% { --orbit-a: 360.00deg; }
}
body.no-motion .btn.orbit::after { animation: none; opacity: .5; }

/* product window (right) */
.window {
  position: relative; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #121218, #0c0c11);
  border: 1px solid var(--line-3);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,0.85);
}
.win-bar { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 16px; border-bottom: 1px solid var(--line-1); }
.win-bar .pane { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--fg-3); padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 7px; }
.win-bar .pane svg { width: 13px; height: 13px; }
.win-bar .avs { margin-left: auto; display: inline-flex; }
.win-bar .avs i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #0c0c11; margin-left: -7px; display: inline-block; }
.win-bar .avs i:nth-child(1){ background:linear-gradient(135deg,#6d5cf5,#a855f7);} .win-bar .avs i:nth-child(2){ background:linear-gradient(135deg,#0ea5e9,#6366f1);} .win-bar .avs i:nth-child(3){ background:linear-gradient(135deg,#d6409f,#f59e0b);}
.win-body { position: relative; min-height: 372px; padding: 24px; }
.thread { display: flex; flex-direction: column; gap: 16px; max-width: 520px; opacity: .85; }
.msg { display: flex; gap: 12px; }
.msg .av { width: 36px; height: 36px; border-radius: 9px; flex: none; background: linear-gradient(135deg, #4f46e5, #d6409f); }
.msg.alt .av { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.msg .meta { font-size: var(--text-sm); margin-bottom: 3px; }
.msg .meta b { color: var(--fg-1); font-weight: var(--fw-semi); }
.msg .meta time { color: var(--fg-4); margin-left: 8px; font-size: var(--text-xs); }
.msg .tx { font-size: var(--text-base); color: var(--fg-2); line-height: 1.5; }
.hero-hud { position: absolute; left: 24px; right: 24px; bottom: 22px; }

/* tab row under product (Chronicle's template tabs) */
.hero-tabs { position: relative; z-index: 1; display: flex; justify-content: center; gap: 28px; margin-top: 56px; padding: 24px 0 0; border-top: 1px solid var(--line-1); flex-wrap: wrap; }
.hero-tabs a { font-size: var(--text-base); color: var(--fg-3); padding-bottom: 10px; position: relative; transition: color .15s; }
.hero-tabs a:hover { color: var(--fg-1); }
.hero-tabs a.on { color: var(--fg-1); }
.hero-tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }

/* ---- use-case switcher ---- */
.uc-tabs { border-top: none; padding-top: 0; margin-top: 0; gap: 10px; justify-content: flex-start; }
.uc-tabs button { font-family: inherit; font-size: var(--text-base); color: var(--fg-3); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 17px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.uc-tabs button:hover { color: var(--fg-1); border-color: var(--line-strong); }
.uc-tabs button.on { color: var(--fg-1); border-color: var(--accent); background: var(--accent-softer); }
.uc-stage { margin-top: 30px; }
.uc-panel { display: none; }
.uc-panel.on { display: block; }
@media (prefers-reduced-motion: no-preference) { .uc-panel.on { animation: ucIn .34s ease both; } }
body.no-motion .uc-panel.on { animation: none; }
@keyframes ucIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.uc-sketch { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--fg-3); margin-bottom: 14px; display: flex; gap: 11px; align-items: baseline; flex-wrap: wrap; line-height: 1.5; }
.uc-sketch .uc-k { flex: none; color: var(--accent-text); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 7px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.uc-stage .hud-card { max-width: 640px; }
.uc-stage .hud-route .ch { font-size: 11px; }
body.light .uc-stage .hud-card { background: linear-gradient(180deg, #ffffff, #fafafb); border-color: var(--line-3); box-shadow: 0 18px 44px -16px rgba(17,17,22,0.20); }
body.light .uc-stage .hud-card::before { background: linear-gradient(180deg, rgba(17,17,22,0.04), transparent 28%); }

/* ============================================================
   THE HUD (mini, hero demo) — carried over
   ============================================================ */
.hud-card {
  position: relative; border-radius: var(--r-hud); padding: 15px 17px;
  background: linear-gradient(180deg, var(--hud-fill-top), var(--hud-fill));
  backdrop-filter: blur(var(--hud-blur)) saturate(160%); -webkit-backdrop-filter: blur(var(--hud-blur)) saturate(160%);
  border: 1px solid var(--line-3); box-shadow: var(--shadow-hud);
  display: flex; flex-direction: column; gap: 11px;
}
.hud-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-hud); pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 28%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.hud-route { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--fg-2); padding-bottom: 10px; border-bottom: 1px solid var(--line-1); }
.hud-route .ch { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: var(--fw-bold); flex: none; }
.hud-route .ch.brand { background: transparent; width: 18px; height: 18px; padding: 0; border-radius: 0; flex: none; }
.hud-route .ch.brand svg { width: 18px; height: 18px; display: block; }
.hud-route b { color: var(--fg-1); font-weight: var(--fw-semi); }
.hud-input { display: flex; align-items: flex-start; gap: 11px; min-height: 26px; }
.spark { width: 21px; height: 21px; flex: none; margin-top: 1px; border-radius: 6px; background: var(--ai-grad); -webkit-mask: var(--spark-mask) center / contain no-repeat; mask: var(--spark-mask) center / contain no-repeat; }
:root { --spark-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='black'%3E%3Crect x='10.6' y='2' width='2.8' height='20' rx='1.4'/%3E%3Crect x='10.6' y='2' width='2.8' height='20' rx='1.4' transform='rotate(60 12 12)'/%3E%3Crect x='10.6' y='2' width='2.8' height='20' rx='1.4' transform='rotate(120 12 12)'/%3E%3C/g%3E%3C/svg%3E"); }
.hud-text { flex: 1; min-width: 0; font-size: var(--text-md); line-height: var(--lh-md); color: var(--fg-1); white-space: pre-wrap; }
.hud-text.dim { color: var(--fg-3); }
.hud-text .caret { display: inline-block; width: 2px; height: 1.05em; vertical-align: text-bottom; margin-left: 1px; background: var(--accent); border-radius: 1px; animation: caretBlink 1s steps(1) infinite; }
body.no-motion .hud-text .caret { animation: none; }
.hud-gen { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: var(--text-base); }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line-3); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
body.no-motion .spinner { animation: none; }
.hud-foot { display: flex; align-items: center; gap: 12px; min-height: 22px; }
.tone-auto { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-text); font-size: var(--text-sm); }
.tone-auto .tag { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; }
.hud-hints { margin-left: auto; display: inline-flex; gap: 12px; color: var(--fg-3); font-size: var(--text-sm); }
.hud-hints .h { display: inline-flex; align-items: center; gap: 6px; }
.hud-actions { display: flex; gap: 8px; }
.hud-actions .btn { height: 34px; flex: 1; font-size: var(--text-base); }
.hud-inserted { display: flex; align-items: center; gap: 10px; color: var(--ok); font-size: var(--text-base); font-weight: var(--fw-medium); padding: 2px 0; }
.hud-inserted .ck { width: 21px; height: 21px; border-radius: 50%; background: var(--ok-bg); display: inline-flex; align-items: center; justify-content: center; }
.hud-inserted .ck svg { width: 12px; height: 12px; }
.summon-cue { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(20,20,26,0.86); border: 1px solid var(--line-3); box-shadow: var(--shadow-pop); z-index: 5; transition: opacity .25s, transform .25s; }
.summon-cue .kbd { height: 22px; min-width: 22px; }
.summon-cue.gone { opacity: 0; transform: translateX(-50%) translateY(-6px); }

/* ============================================================
   LOGO STRIP — hairline-celled, monochrome
   ============================================================ */
/* section wraps that need tall vertical rhythm — keep horizontal inset from .wrap
   so content stays WITHIN the frame's vertical lines */
.wrap.pad-y { padding-top: 110px; padding-bottom: 110px; }
.brand-ico { width: 24px; height: 24px; border-radius: 6px; display: block; }

.logos { padding-top: 30px; padding-bottom: 44px; }
.logos .lbl { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-4); margin-bottom: 22px; }
.logo-cells { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line-1); border-radius: 12px; overflow: hidden; }
.logo-cells .cell { height: 92px; display: flex; align-items: center; justify-content: center; color: var(--fg-3); border-right: 1px solid var(--line-1); font-weight: var(--fw-semi); font-size: var(--text-md); }
.logo-cells .cell:last-child { border-right: none; }
.logo-cells .cell svg { height: 22px; width: auto; }

/* ============================================================
   "START FROM ANYWHERE" — editorial list section
   ============================================================ */
.flow { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; padding: 110px 0; }
.flow-visual { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0c0c11; aspect-ratio: 4/3; }
.flow-visual .ph { position: absolute; inset: 0; background: linear-gradient(160deg, #1a1a22, #0c0c11); }
.flow-list { display: flex; flex-direction: column; gap: 4px; }
.flow-list .it { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.18; letter-spacing: -0.035em; font-weight: var(--fw-semi); color: var(--fg-4); transition: color .3s; cursor: default; }
.flow-list .it.on { color: #fff; }
.flow-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--fg-3); font-size: var(--text-base); line-height: 1.55; max-width: 46ch; }

/* ============================================================
   "BUILT FOR SERIOUS BUSINESS" — editorial header + hairline grid
   ============================================================ */
.editorial-head { display: grid; grid-template-columns: auto minmax(320px, 1fr); gap: 48px; align-items: end; padding: 110px 0 0; }
.editorial-head .h-lead { white-space: nowrap; }
.editorial-head p { color: var(--fg-3); font-size: var(--text-md); line-height: 1.5; text-align: right; max-width: 40ch; justify-self: end; text-wrap: balance; }
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 56px; border-top: 1px solid var(--line-2); }
.fcol { padding: 40px 0; display: flex; flex-direction: column; }
.fcol:first-child { border-right: 1px solid var(--line-2); padding-right: 48px; }
.fcol:last-child { padding-left: 48px; }
.fhead { display: flex; align-items: center; gap: 11px; }
.fhead .fi { width: 22px; height: 22px; color: var(--fg-1); flex: none; }
.fhead .fi svg { width: 100%; height: 100%; }
.fhead h3 { font-size: var(--text-lg); font-weight: var(--fw-semi); margin: 0; letter-spacing: -0.02em; }
.fcol > p { color: var(--fg-3); font-size: var(--text-base); line-height: 1.5; margin: 12px 0 28px; max-width: 42ch; }
.fcol .shot { margin-top: auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0c0c11; aspect-ratio: 16/10; position: relative; }
.fcol .shot .ph { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, #17171f, #0a0a0e); }

.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.frow { padding: 34px 28px 34px 0; border-right: 1px solid var(--line-1); }
.frow:last-child { border-right: none; padding-right: 0; padding-left: 0; }
.frow:not(:first-child) { padding-left: 28px; }
.frow .fhead { align-items: flex-start; min-height: 46px; }   /* align body text across columns regardless of heading wrap */
.frow .fhead h3 { font-size: var(--text-md); }
.frow .fhead .fi { width: 18px; height: 18px; margin-top: 1px; }
.frow p { color: var(--fg-3); font-size: var(--text-sm); line-height: 1.5; margin: 11px 0 0; }
.feature-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   LINE FIELD behind a section (e.g. Pricing “inside the lines”)
   ============================================================ */
.lined { position: relative; }
.lined > .wrap { position: relative; z-index: 1; }
.lined-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lined-bg::before { content: ""; position: absolute; inset: -1px 0; background-image: repeating-linear-gradient(to right, var(--line-1) 0 1px, transparent 1px 42px); -webkit-mask: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); mask: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent); }
.lined-bg::after { content: ""; position: absolute; left: 50%; top: 50%; width: 58%; height: 70%; transform: translate(-50%,-50%); background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft), transparent 72%); filter: blur(40px); opacity: .5; }

/* ============================================================
   CTA / WAITLIST + FOOTER
   ============================================================ */
.cta { padding: 120px 0; text-align: center; }
.cta .mark { display: inline-flex; margin-bottom: 26px; }
.cta .mark .sp { width: 46px; height: 46px; background: var(--ai-grad); -webkit-mask: var(--spark-mask) center/contain no-repeat; mask: var(--spark-mask) center/contain no-repeat; }
.cta h2 { font-size: clamp(34px, 4.6vw, 66px); line-height: 0.98; letter-spacing: -0.04em; margin: 0; color: #fff; }
.cta p { color: var(--fg-3); font-size: var(--text-md); margin: 22px auto 0; max-width: 46ch; }
.waitlist { display: flex; gap: 10px; justify-content: center; margin: 38px auto 0; max-width: 480px; }
.waitlist input { flex: 1; height: 52px; padding: 0 16px; border-radius: 9px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--fg-1); font-family: inherit; font-size: var(--text-base); outline: none; transition: border-color .15s, box-shadow .15s; }
.waitlist input::placeholder { color: var(--fg-3); }
.waitlist input:focus { border-color: var(--accent-ring); box-shadow: 0 0 0 3px var(--accent-softer); }
.waitlist .btn { flex: none; }
.waitlist-ok { display: none; align-items: center; gap: 10px; color: var(--ok); font-size: var(--text-md); font-weight: var(--fw-medium); justify-content: center; margin-top: 34px; }
.waitlist-ok .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--ok-bg); display: inline-flex; align-items: center; justify-content: center; }
.waitlist-ok .ck svg { width: 15px; height: 15px; }
.cta-fine { font-size: var(--text-sm); color: var(--fg-4); margin-top: 16px; font-family: var(--font-mono); letter-spacing: .03em; }

.footer { border-top: 1px solid var(--line-1); padding: 44px 0 64px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: var(--text-sm); color: var(--fg-3); transition: color .15s; }
.footer-links a:hover { color: var(--fg-1); }
.footer-copy { font-size: var(--text-sm); color: var(--fg-4); font-family: var(--font-mono); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
html.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
html.reveal-ready .reveal[data-d="1"] { transition-delay: .07s; }
html.reveal-ready .reveal[data-d="2"] { transition-delay: .14s; }
html.reveal-ready .reveal[data-d="3"] { transition-delay: .21s; }
body.no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .frame { display: none; }
  .wrap, .nav-inner { padding: 0 32px; }
  .nav-links { display: none; }
  .hero { min-height: auto; }
  .hero-center { padding: 36px 0 0; }
  .hero-tabs { margin-top: 44px; }
  .feature-row.cols-3 { grid-template-columns: 1fr; }
  .logo-cells { grid-template-columns: repeat(3, 1fr); }
  .logo-cells .cell:nth-child(3n) { border-right: none; }
  .logo-cells .cell:nth-child(-n+3) { border-bottom: 1px solid var(--line-1); }
  .flow { grid-template-columns: 1fr; gap: 40px; padding: 80px 0; }
  .editorial-head { grid-template-columns: 1fr; gap: 20px; padding: 80px 0 0; }
  .editorial-head .h-lead { white-space: normal; }
  .editorial-head p { text-align: left; justify-self: start; }
  .feature-split { grid-template-columns: 1fr; }
  .fcol:first-child { border-right: none; border-bottom: 1px solid var(--line-2); padding-right: 0; }
  .fcol:last-child { padding-left: 0; }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .frow { padding: 28px 20px 28px 0; }
  .frow:nth-child(2) { border-right: none; padding-right: 0; }
  .frow:nth-child(3), .frow:nth-child(4) { border-top: 1px solid var(--line-1); padding-top: 28px; }
  .frow:nth-child(3) { padding-left: 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .waitlist { flex-direction: column; }
  .feature-row { grid-template-columns: 1fr; }
  .frow { border-right: none; padding-left: 0 !important; }
  .frow:not(:first-child) { border-top: 1px solid var(--line-1); padding-top: 26px; }
}

/* ============================================================
   LIGHT THEME  ·  body.light  (toggleable, white editorial)
   Keeps the violet accent + the dark floating composer (real
   macOS HUD vibrancy). Everything else flips to light.
   ============================================================ */
body.light {
  /* surfaces */
  --bg-window: #ffffff;
  --bg-elev:   #f4f4f6;
  --bg-elev-2: #ffffff;
  --bg-input:  rgba(0,0,0,0.03);
  --bg-input-strong: rgba(0,0,0,0.05);
  /* hairlines flip to dark-on-light */
  --line-1: rgba(17,17,22,0.08);
  --line-2: rgba(17,17,22,0.12);
  --line-3: rgba(17,17,22,0.18);
  --line-strong: rgba(17,17,22,0.28);
  /* text flips to dark */
  --fg-1: #16161a;
  --fg-2: #44444e;
  --fg-3: #6e6e77;
  --fg-4: #838388;
  /* accent text needs contrast on white */
  --accent-text: #6d28d9;
  --accent-soft:   rgba(139,92,246,0.13);
  --accent-softer: rgba(139,92,246,0.08);
  /* soften the heavy dark shadows for light surfaces */
  --shadow-hud: 0 24px 60px -18px rgba(17,17,22,0.18), 0 6px 18px -8px rgba(17,17,22,0.12);
  --shadow-pop: 0 12px 32px -10px rgba(17,17,22,0.16);
  background: #ffffff;
}
body.light ::selection { background: var(--accent-soft); color: var(--accent-press); }

/* headings that were forced #fff */
body.light .display,
body.light .h-lead,
body.light .hero-center h1,
body.light .hero-center h1 .cycler,
body.light .flow-list .it.on,
body.light .cta h2 { color: #0d0d12; }

/* solid (inverted) button → dark on light */
body.light .btn.solid { background: #16161a; color: #ffffff; border-color: #16161a; }
body.light .btn.solid:hover { background: #2a2a30; border-color: #2a2a30; }
body.light .btn:hover { background: rgba(17,17,22,0.04); }
body.light .kbd { background: rgba(17,17,22,0.05); }
body.light .kc { box-shadow: 0 2px 0 rgba(17,17,22,0.10), 0 4px 10px rgba(17,17,22,0.10), inset 0 1px 0 rgba(255,255,255,0.6); }

/* nav blur on scroll → light glass */
body.light .nav.scrolled { background: rgba(255,255,255,0.78); border-bottom-color: var(--line-2); }

/* product / preview panels → light framed shots */
body.light .window { background: linear-gradient(180deg, #ffffff, #f6f6f8); }
body.light .win-bar .avs i { border-color: #ffffff; }
body.light .flow-visual,
body.light .fcol .shot { background: #f4f4f7; }
body.light .flow-visual .ph { background: linear-gradient(160deg, #ececf1, #f6f6f9); }
body.light .fcol .shot .ph { background: radial-gradient(120% 100% at 50% 0%, #ededf2, #f6f6f9); }

/* in-page HUD preview cards → light surface (the floating composer stays dark) */
body.light .flow-visual .hud-card,
body.light .fcol .shot .hud-card {
  background: linear-gradient(180deg, #ffffff, #fafafb);
  border-color: var(--line-3);
  box-shadow: 0 18px 44px -16px rgba(17,17,22,0.20);
}
body.light .flow-visual .hud-card::before,
body.light .fcol .shot .hud-card::before { background: linear-gradient(180deg, rgba(17,17,22,0.04), transparent 28%); }

/* waitlist input */
body.light .waitlist input { background: rgba(17,17,22,0.03); }

/* hero rain: brighten the drop core a touch so it reads on white */
body.light .hero-lines .beam::after { background: color-mix(in srgb, var(--accent) 55%, #ffffff); }

/* ============================================================
   THEME SWITCHER  ·  segmented control, lives in the footer
   ============================================================ */
.theme-seg {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px; border-radius: 12px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--fg-1) 4%, transparent);
}
.seg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 32px; padding: 0;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; cursor: pointer; color: var(--fg-4);
  transition: color .15s, background .15s, border-color .15s;
}
.seg-btn svg { width: 17px; height: 17px; }
.seg-btn:hover { color: var(--fg-2); }
.seg-btn.on {
  color: var(--fg-1);
  background: color-mix(in srgb, var(--fg-1) 9%, transparent);
  border-color: var(--line-3);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg-1) 10%, transparent);
}
body.light .theme-seg { background: rgba(17,17,22,0.03); }
body.light .seg-btn.on { background: #fff; box-shadow: 0 1px 3px rgba(17,17,22,0.12); }
@media (max-width: 560px) { .footer-inner { justify-content: center; } }

/* ============================================================
   MODALS — keep the original HUD vibrancy palette.
   Page body copy stays brightened, but the floating composer and the
   in-page HUD cards revert to the design's original text tones so the
   modal hierarchy reads as intended. The composer is always dark; the
   in-page HUD cards only revert in dark mode (they flip to a light
   surface under body.light, which needs the light text tokens).
   ============================================================ */
body:not(.light) .hud-card,
body .sb-root {
  --fg-2: #A8A8B3;
  --fg-3: #74747F;
  --fg-4: #56565F;
}

/* ============================================================
   DARK-MODE REVIEW FIXES — force key headings/labels to pure white
   and make primary CTAs + the theme control clearly visible.
   ============================================================ */
body:not(.light) .fhead h3,
body:not(.light) .hero-center h1,
body:not(.light) .hero-center h1 .ink,
body:not(.light) .uc-tabs button.on { color: #fff; }

/* primary CTAs → transparent ghost so the orbiting-arc effect stays visible
   (every orbit button: hero, pricing Pro, and the final waitlist CTA) */
body:not(.light) .btn.orbit { background: transparent; color: #fff; border-color: rgba(255,255,255,0.14); }
body:not(.light) .btn.orbit:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.30); }
body:not(.light) .btn.orbit .kbd { color: var(--fg-2); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }

/* Free-tier button matches the Pro (orbit) button exactly — same ghost shape
   and corners — just without the animated ring */
body:not(.light) #pricing .btn.lg { background: transparent; color: #fff; border-color: rgba(255,255,255,0.14); }
body:not(.light) #pricing .btn.lg:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.30); }

/* nav links → pure white on hover in dark mode */
body:not(.light) .nav-links a:hover { color: #fff; }

/* centered CTA button in the closing waitlist section */
.cta-action { display: flex; justify-content: center; margin-top: 38px; }

/* in-page HUD modals: match the app's monochrome look, drop the unreadable
   accent-tinted text (channel chip, tone label, caret) */
.hud-card .hud-route .ch:not(.brand) { background: rgba(255,255,255,0.10); color: var(--fg-1); }
body.light .hud-card .hud-route .ch:not(.brand) { background: rgba(17,17,22,0.06); color: var(--fg-1); }
.hud-card .tone-auto { color: var(--fg-2); }
.hud-card .tone-auto b { color: var(--fg-1); }
.hud-card .hud-text .caret { background: var(--fg-1); }

/* theme switcher outline visible against the dark footer */
body:not(.light) .theme-seg { border-color: rgba(255,255,255,0.28); }

/* summon-cue pill stays dark in both themes → keep its ⌘/J keycaps light so
   they stay readable in bright mode (was dark-on-dark) */
body.light .summon-cue .kbd { color: #fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.22); }

/* download-started toast */
.dl-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: rgba(20,20,26,0.92); color: #fff; font-size: var(--text-sm); font-weight: var(--fw-medium);
  border: 1px solid var(--line-3); box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none; z-index: 200; transition: opacity .25s, transform .25s;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.dl-toast.show { opacity: 1; transform: translate(-50%, 0); }
.dl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
body.light .dl-toast { background: rgba(255,255,255,0.96); color: #16161a; border-color: var(--line-3); }

/* orbit ring colour follows the (yellow) accent in the white/light theme
   — was purple because light mode maps --accent-text to violet */
body.light .btn.orbit::after { background: conic-gradient(from var(--orbit-a), transparent 0 66%, var(--accent) 80%, #ffffff 88%, var(--accent) 95%, transparent 100%); }

/* feature / privacy section icons → pure white on dark */
body:not(.light) .fhead .fi { color: #fff; }

/* theme-switcher icons → clearly readable on dark (active pure white) */
body:not(.light) .seg-btn { color: var(--fg-2); }
body:not(.light) .seg-btn.on { color: #fff; }

/* brand logos in the use-case cards → greyed/desaturated so they sit
   quietly in the UI (matches the product's muted-logo treatment) */
.hud-route .ch.brand svg { filter: grayscale(1); opacity: 0.7; }
