/* digitspace.ai pre-launch site. Brand = Super Agent v1.8 (doc/design/SuperAgent-品牌与UI设计规范.md):
   Pass Green with dark ink on green fills, zinc neutrals, radius ladder 6/8/12/16, Plus Jakarta Sans / Inter / Geist Mono.
   Layout: an ink "stage" opens and closes the page (hero, final call); the quiet middle follows the viewer's theme. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --sunken: #f4f4f5;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --fg: #18181b;
  --muted: #52525b;
  --faint: #71717a;
  --accent: #17b27a;
  --accent-hover: #13976a;
  --accent-ink: #0f7251;
  --accent-soft: #ecfdf5;
  --accent-tint: #d1fae5;
  --accent-line: #a7f3d0;
  --on-accent: #18181b;
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 12px 32px -12px rgba(24, 24, 27, 0.16);
  /* the stage stays ink in both themes */
  --stage: #0e0e11;
  --stage-raised: #18181b;
  --stage-line: #2c2c31;
  --stage-fg: #fafafa;
  --stage-muted: #a1a1aa;
  --stage-faint: #8b8b94;
  --stage-accent: #34d399;
  --stage-danger: #fca5a5;
  --glow: rgba(23, 178, 122, 0.22);
  --show-light: block;
  --show-dark: none;

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.05, 0.7, 0.1, 1);
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 24px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --surface: #141416; --sunken: #1c1c1f; --line: #27272a; --line-strong: #3f3f46;
    --fg: #fafafa; --muted: #d4d4d8; --faint: #a1a1aa;
    --accent-hover: #34d399; --accent-ink: #6ee7b7; --accent-soft: rgba(23, 178, 122, 0.12);
    --accent-tint: #123c2c; --accent-line: rgba(52, 211, 153, 0.35);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
    --stage: #050506; --stage-raised: #111113; --stage-line: #232327;
    --show-light: none; --show-dark: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --surface: #141416; --sunken: #1c1c1f; --line: #27272a; --line-strong: #3f3f46;
  --fg: #fafafa; --muted: #d4d4d8; --faint: #a1a1aa;
  --accent-hover: #34d399; --accent-ink: #6ee7b7; --accent-soft: rgba(23, 178, 122, 0.12);
  --accent-tint: #123c2c; --accent-line: rgba(52, 211, 153, 0.35);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  --stage: #050506; --stage-raised: #111113; --stage-line: #232327;
  --show-light: none; --show-dark: block;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.section { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 96px); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 680px; }
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--r-md); background: var(--accent); color: var(--on-accent);
  font: 600 15px/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

/* ── nav ── */
.nav { background: var(--stage); color: var(--stage-fg); }
.nav .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--stage-fg); }
.brand:hover { text-decoration: none; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand span { font-size: 13px; color: var(--stage-muted); white-space: nowrap; }
@media (max-width: 420px) { .brand span { display: none; } }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--stage-muted); }
.nav-links a:not(.btn):hover { color: var(--stage-fg); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--stage-fg); }
/* phones: the page links become a second, swipeable row under the brand */
@media (max-width: 760px) {
  .nav .wrap { height: auto; min-height: 60px; flex-wrap: wrap; padding-block: 10px; row-gap: 6px; }
  .nav-links { order: 3; width: 100%; gap: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .nav .wrap { position: relative; }
  .nav-links .btn { position: absolute; right: var(--gutter); top: 12px; }
}

/* ── hero (stage) ── */
.hero { background: var(--stage); color: var(--stage-fg); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 440px; width: 960px; height: 560px; margin-left: -480px;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none;
  animation: glow 6s ease-in-out infinite alternate;
}
.hero .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding-block: clamp(48px, 7vw, 72px) clamp(56px, 8vw, 88px); text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(23, 178, 122, 0.12); border: 1px solid rgba(23, 178, 122, 0.35); font-size: 12.5px; color: var(--stage-muted);
}
.badge b { font: 500 12px var(--font-mono); color: var(--stage-accent); letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; max-width: 840px; }
.hero h1 em { font-style: normal; color: var(--stage-accent); }
.lede { font-size: clamp(16px, 2vw, 18.5px); color: var(--stage-muted); max-width: 620px; }

/* ── waitlist form ── */
.join { width: 100%; max-width: 540px; display: flex; flex-direction: column; gap: 10px; }
.join form { display: flex; flex-direction: column; gap: 10px; }
.join-row { display: flex; flex-wrap: wrap; gap: 10px; }
.join input[type="email"] {
  flex: 1 1 260px; min-width: 0; height: 50px; padding: 0 16px; border-radius: var(--r-md);
  border: 1px solid #3f3f46; background: rgba(255, 255, 255, 0.06); color: var(--stage-fg); font: 15px var(--font-body);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.join input[type="email"]::placeholder { color: var(--stage-faint); }
.join input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23, 178, 122, 0.25); }
.join input[aria-invalid="true"] { border-color: var(--stage-danger); }
.join .btn { height: 50px; padding: 0 24px; }
.join form[aria-busy="true"] .btn::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
.plan { display: flex; justify-content: center; gap: 6px; border: 0; margin: 0; padding: 0; }
.plan legend { float: left; font-size: 13px; color: var(--stage-faint); margin-right: 6px; line-height: 32px; }
.plan label { position: relative; }
.plan input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan span {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--stage-line); color: var(--stage-muted); font-size: 13px; cursor: pointer;
  transition: all 0.15s var(--ease);
}
.plan input:checked + span { border-color: rgba(52, 211, 153, 0.55); background: rgba(23, 178, 122, 0.14); color: var(--stage-fg); }
.plan input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-error { font-size: 13.5px; color: var(--stage-danger); }
.join-note { font-size: 12.5px; color: var(--stage-faint); }
.join-note a { color: var(--stage-muted); text-decoration: underline; text-underline-offset: 2px; }
.joined {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; text-align: left; border-radius: var(--r-md);
  background: rgba(23, 178, 122, 0.12); border: 1px solid rgba(52, 211, 153, 0.4);
  animation: rise 0.45s var(--ease-out) both;
}
.joined svg { flex: none; }
.joined b { display: block; font-size: 14.5px; color: var(--stage-accent); }
.joined p { font-size: 13.5px; color: var(--stage-muted); overflow-wrap: anywhere; }

/* ── animated app window ── */
.demo { width: 100%; max-width: 980px; margin-top: 20px; text-align: left; }
.win {
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface); color: var(--fg);
  border: 1px solid var(--stage-line); box-shadow: 0 32px 90px -20px rgba(0, 0, 0, 0.7);
}
.win-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.win-bar span { flex: 1; text-align: center; font-size: 12px; color: var(--faint); font-weight: 500; margin-right: 54px; }
.win-body { display: flex; } /* sized by content: every step keeps its space and only fades */
.win-rail { width: 196px; flex: none; background: var(--sunken); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.win-rail .new { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: var(--r-md); background: var(--accent); color: var(--on-accent); font-weight: 600; margin-bottom: 8px; }
.win-rail .item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-md); }
.win-rail .item.on { background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; }
.win-rail small { font: 11px var(--font-mono); color: var(--faint); padding: 10px 10px 4px; letter-spacing: 0.04em; }
.win-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); }
.convo { flex: 1; padding: 22px clamp(14px, 3vw, 28px) 14px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.msg-user { align-self: flex-end; max-width: 80%; background: var(--sunken); border-radius: var(--r-lg); padding: 10px 14px; }
.card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card-title { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.card-title b { color: var(--fg); font-weight: 600; font-size: 13.5px; }
.q { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.q > span:first-child { flex: 1 0 100%; color: var(--fg); }
.opt { padding: 3px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); position: relative; }
.steps { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); }
.step { display: flex; align-items: center; gap: 9px; }
.tick { position: relative; width: 16px; height: 16px; flex: none; }
.tick svg { position: absolute; inset: 0; }
.bar { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; }
.bar i.full { width: 100%; }
.status { position: relative; height: 16px; font-size: 11.5px; }
.status span { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; }
.go { align-self: flex-start; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-md); background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 600; }
.deliver { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow); max-width: 460px; background: var(--surface); }
.file { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; background: #c2410c; color: #fff; font: 600 10.5px var(--font-mono); }
.deliver b { display: block; font-size: 13.5px; }
.deliver small { font-size: 12px; color: var(--faint); }
.local { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: 500 10.5px var(--font-mono); flex: none; }
.composer { margin: 0 clamp(14px, 3vw, 28px) 18px; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-xl); font-size: 13.5px; box-shadow: var(--shadow); }
.composer .typed { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.caret { display: inline-block; width: 2px; height: 15px; margin-left: 1px; background: var(--accent); vertical-align: -2px; }
.send { width: 28px; height: 28px; border-radius: var(--r-md); background: var(--accent); display: grid; place-items: center; flex: none; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 4px; }
.chips > span:first-child { font-size: 13px; color: var(--stage-faint); margin-right: 4px; }
.chip { font: 11.5px var(--font-mono); color: var(--stage-muted); padding: 4px 11px; border: 1px solid var(--stage-line); border-radius: 999px; }
@media (max-width: 720px) {
  .win-rail { display: none; }
  .local { display: none; }
}

.spin { animation: spin 1s linear infinite; transform-origin: center; }
.caret { animation: blink 0.9s infinite; }
@keyframes blink { 0%, 50% { visibility: visible; } 51%, 100% { visibility: hidden; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { from { opacity: 0.55; transform: scale(1); } to { opacity: 0.9; transform: scale(1.06); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-in { animation: hero-in 0.7s var(--ease-out) both; }
.d1 { animation-delay: 0.06s; } .d2 { animation-delay: 0.12s; } .d3 { animation-delay: 0.2s; } .d4 { animation-delay: 0.3s; }

/* ── contrast ── */
.versus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; }
.side { border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side.them { background: var(--sunken); border: 1px solid var(--line); }
.side.us { background: var(--surface); border: 1px solid var(--accent-line); box-shadow: var(--shadow); }
.side .eyebrow { color: var(--faint); }
.side.us .eyebrow { color: var(--accent-ink); }
.lines { display: flex; flex-direction: column; gap: 8px; }
.lines i { height: 9px; border-radius: 999px; background: var(--line); }
.side p { font-size: 14.5px; color: var(--muted); }
.side.us p { color: var(--accent-ink); font-weight: 500; }
.files { display: flex; flex-direction: column; gap: 10px; }
.fileline { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.fileline .tag { font: 500 10px var(--font-mono); color: #fff; border-radius: 5px; padding: 3px 6px; flex: none; }
.fileline b { display: block; font-size: 13.5px; }
.fileline small { font-size: 12px; color: var(--faint); }
.fileline svg { margin-left: auto; flex: none; }

/* ── screenshot ── */
.shot-frame { border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.shot-light { display: var(--show-light); }
.shot-dark { display: var(--show-dark); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.facts span { font: 11.5px var(--font-mono); color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

/* ── how it works / features ── */
.flow { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.flow li { list-style: none; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); }
.flow li:last-child { border-right: 0; }
.flow .n { font: 500 13px var(--font-mono); color: var(--accent-ink); }
.flow h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.flow p { font-size: 14px; color: var(--muted); }
.flow .what { margin-top: auto; padding-top: 10px; font: 11.5px var(--font-mono); color: var(--faint); }
@media (max-width: 980px) { .flow li { border-right: 0; border-bottom: 1px solid var(--line); } .flow li:last-child { border-bottom: 0; } }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px 40px; }
.feat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feat svg { color: var(--accent-ink); margin-bottom: 4px; }
.feat h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.feat p { font-size: 14.5px; color: var(--muted); }

/* ── audiences ── */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 20px; }
.who article { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.who .me { background: var(--surface); border: 1px solid var(--line); }
.who .team { background: var(--stage-raised); color: var(--stage-fg); border: 1px solid var(--stage-line); }
.who .team .eyebrow { color: var(--stage-accent); }
.who h3 { font-size: 22px; font-weight: 700; }
.who p { font-size: 15px; color: var(--muted); }
.who .team p, .who .team li { color: var(--stage-muted); }
.who ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.who li { display: flex; gap: 10px; align-items: baseline; }
.who li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; transform: translateY(-2px); }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font: 600 16px var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--font-mono); color: var(--faint); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 15px; max-width: 64ch; }

/* ── footer ── */
.foot { background: var(--stage); border-top: 1px solid var(--stage-line); color: var(--stage-faint); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--stage-muted); }
.foot .mono { font-family: var(--font-mono); font-size: 12px; user-select: all; }

/* ── legal page ── */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 80px) var(--gutter); display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 800; }
.legal h2 { font-size: 19px; font-weight: 700; margin-top: 14px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal .meta { font: 12.5px var(--font-mono); color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Logo: the Super Agent paper-plane mark and its motion, ported from sa-desktop AnimatedLogo
   (doc/design/Logo待机动画-创意方案.md · 方案 1「巡航尾迹」). Idle = still with an occasional glide and contrail
   (assets/logo.mjs); working = the plane holds at 72 % while a green contrail circles it. Transform/opacity only. */
:root { --fly-trail: #a1a1aa; --ease-sine: cubic-bezier(0.37, 0, 0.63, 1); }
.sa-fly { display: block; overflow: visible; flex: none; }
.sa-fly .fly-plane { fill: none; stroke: var(--fly-ink, currentColor); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.sa-fly .fly-glide, .sa-fly .fly-body { transform-box: fill-box; transform-origin: center; }
.sa-fly .fly-trail { transform-box: view-box; transform-origin: 0 0; opacity: 0; }
.sa-fly .fly-orbit { transform-box: view-box; transform-origin: 54.27px 34.66px; }
.sa-fly .fly-trail line { stroke: var(--fly-trail); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 8 9; vector-effect: non-scaling-stroke; }
.sa-fly .fly-trail line.thin { stroke-width: 1; opacity: 0.6; }
.sa-fly.is-glide .fly-body { animation: fly-glide 1.6s var(--ease-sine); }
.sa-fly.is-glide .fly-trail { animation: fly-puff 1.6s var(--ease); }
.sa-fly .fly-hold { opacity: 0; }
.sa-fly .fly-ring { fill: none; stroke: var(--fly-trail); stroke-width: 1; stroke-dasharray: 2 3.5; opacity: 0.7; vector-effect: non-scaling-stroke; }
.sa-fly .fly-crumb { fill: var(--accent); }
@keyframes fly-glide { 0%, 100% { transform: none; } 38% { transform: translate(14px, -11px) rotate(-6deg); } 70% { transform: translate(-2px, 2px) rotate(1.2deg); } }
@keyframes fly-puff { 0%, 10% { opacity: 0; transform: translateX(-6px) scaleX(0.3); } 40% { opacity: 1; transform: translateX(10px) scaleX(1); } 100% { opacity: 0; transform: translateX(22px) scaleX(1); } }
@keyframes fly-orbit { to { transform: rotate(360deg); } }
:root[data-fly-paused] .sa-fly * { animation-play-state: paused !important; }

.brand { --fly-ink: var(--stage-fg); --fly-trail: #71717a; }
.brand .sa-fly { margin-right: 2px; }
.brand small { font-size: 12.5px; color: var(--stage-faint); white-space: nowrap; }
@media (max-width: 420px) { .brand small { display: none; } }


/* hero backdrop: logo flying through space (assets/space.mjs) */
.hero .space { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { z-index: 1; }
/* below 1100px the plane flies in the hero's top padding (space.mjs), so give it room above the badge */
@media (max-width: 1099px) { .hero .wrap { padding-block-start: 88px; } }

/* no inline styles anywhere, so the CSP can keep style-src without 'unsafe-inline' */
.lines i:nth-child(1) { width: 94%; } .lines i:nth-child(2) { width: 88%; } .lines i:nth-child(3) { width: 96%; }
.lines i:nth-child(4) { width: 72%; } .lines i:nth-child(5) { width: 91%; } .lines i:nth-child(6) { width: 85%; }
.lines i:nth-child(7) { width: 58%; }
.fileline .tag.ppt { background: #c2410c; } .fileline .tag.doc { background: #1d4ed8; } .fileline .tag.xls { background: #0f7251; }
.shot-frame { margin: 0; }
.legal .mono { font-family: var(--font-mono); }

/* ── hero demo: example tasks in fast-forward (assets/demo.mjs). Each part shows once it gets .is-on. ── */
.scenes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-bottom: 14px; }
.ff { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font: 500 11.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--stage-accent); }
.scene {
  --p: 0; position: relative; overflow: hidden; height: 32px; padding: 0 13px; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid var(--stage-line); background: transparent; color: var(--stage-muted); font: 500 13px var(--font-body);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.scene:hover { color: var(--stage-fg); border-color: #3f3f46; }
.scene[aria-selected="true"] { color: var(--stage-fg); border-color: rgba(52, 211, 153, 0.5); background: rgba(23, 178, 122, 0.1); }
.scene::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--accent); }
.scene[aria-selected="false"]::after { opacity: 0.35; }
.composer .typed span { white-space: nowrap; }
.composer .typed span:empty + .caret { margin-left: 0; }
.d-user, .d-ask, .d-plan, .d-file { opacity: 0; transform: translateY(10px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.d-file { transform: translateY(12px) scale(0.97); transition-timing-function: var(--ease-out); }
.d-user.is-on, .d-ask.is-on, .d-plan.is-on, .d-file.is-on { opacity: 1; transform: none; }
.opt { transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease); }
.opt.is-on { background: var(--accent-tint); border-color: var(--accent-line); color: var(--accent-ink); }
.go { transition: opacity 0.2s var(--ease), transform 0.12s var(--ease); }
.go.is-pressed { opacity: 0.45; }
.tick .ok { opacity: 0; transform: scale(0.4); transform-origin: center; transform-box: fill-box; transition: opacity 0.25s var(--ease), transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.2); }
.step.is-on .tick .ok { opacity: 1; transform: none; }
.status .working, .status .done { opacity: 0; transition: opacity 0.2s var(--ease); }
.status .working { color: var(--faint); }
.status .done { color: var(--accent-ink); font-weight: 600; }
.status[data-state="working"] .working, .status[data-state="done"] .done { opacity: 1; }
.local { opacity: 0; transform: scale(0.6); transition: opacity 0.25s var(--ease), transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.local.is-on { opacity: 1; transform: none; }
.file.ppt { background: #c2410c; } .file.xls { background: #0f7251; } .file.doc { background: #1d4ed8; } .file.pdf { background: #b91c1c; }
/* the app's rail logo: holding pattern while the demo task runs (same motion as sa-desktop) */
.win-rail .rail-logo { --fly-ink: var(--fg); padding: 2px 10px 12px; }
.demo .sa-fly .fly-hold { transition: opacity 0.24s var(--ease); }
.demo .sa-fly .fly-body { transition: transform 0.24s var(--ease); }
.demo .sa-fly.is-working .fly-hold { opacity: 1; }
.demo .sa-fly.is-working .fly-orbit { animation: fly-orbit 2.4s linear infinite; }
.demo .sa-fly.is-working .fly-body { transform: scale(0.72); }
@media (prefers-reduced-motion: reduce) { .scene::after { display: none; } }

/* ── detail pages ── */
.page-hero { background: var(--stage); color: var(--stage-fg); }
.page-hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-block: clamp(56px, 8vw, 88px); }
.page-hero .eyebrow { color: var(--stage-accent); }
.page-hero h1 { font-size: clamp(36px, 6vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; max-width: 820px; }
.page-hero .lede { max-width: 640px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: center; }
.split .section-head { margin-bottom: 0; }

/* home: the four advantages */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.pillar { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); color: var(--fg); min-width: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.pillar:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-line); }
.pillar h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.pillar p { font-size: 14.5px; color: var(--muted); }
.pillar .more { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }
.pillar .more::after { content: " \2192"; }
.pillar-edge { background: var(--stage-raised); border-color: var(--stage-line); color: var(--stage-fg); }
.pillar-edge .eyebrow { color: var(--stage-accent); }
.pillar-edge p { color: var(--stage-muted); }
.pillar-edge .more { color: var(--stage-accent); }
.pv { height: 128px; margin-top: auto; border-radius: var(--r-md); background: var(--sunken); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 7px; overflow: hidden; font-size: 12.5px; color: var(--muted); }
.pv span { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv .tag { font: 500 9.5px var(--font-mono); font-style: normal; color: #fff; border-radius: 4px; padding: 2px 5px; flex: none; }
.pv .tag.ppt { background: #c2410c; } .pv .tag.xls { background: #0f7251; } .pv .tag.doc { background: #1d4ed8; }
.pv-local span, .pv-team span { font-family: var(--font-mono); font-size: 11.5px; }
.pv-local .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.pv-local .ok { color: var(--accent-ink); }
.pv-team span { padding: 3px 8px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); align-self: flex-start; }
.pv-edge { padding: 0; border-color: var(--stage-line); background: var(--stage); }
.pv-edge img { width: 100%; height: 100%; object-fit: cover; }
.pillar .pv + .more { margin-top: 4px; }

/* work: typical tasks */
.scen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.scen-grid .fileline { align-items: flex-start; }
.scen-grid .fileline small { display: block; margin-top: 2px; line-height: 1.5; }
.fileline .tag.pdf { background: #b91c1c; }

/* checked points (local, edge, teams) */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 36px; }
.point { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.point svg { flex: none; margin-top: 3px; }
.point h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.point p { font-size: 14.5px; color: var(--muted); }

/* local: the model panel and the memory → model table */
.local-card { width: 100%; max-width: 440px; margin-top: 12px; text-align: left; border-radius: var(--r-lg); border: 1px solid var(--stage-line); background: var(--stage-raised); padding: 16px 18px; }
.lc-head { display: flex; align-items: center; gap: 8px; font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--stage-line); }
.lc-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stage-accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
.lc-state { margin-left: auto; font: 500 11.5px var(--font-mono); color: var(--stage-accent); text-transform: uppercase; letter-spacing: 0.06em; }
.local-card dl { margin: 0; display: grid; gap: 8px; padding-top: 12px; }
.local-card dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.local-card dt { color: var(--stage-faint); }
.local-card dd { margin: 0; color: var(--stage-fg); font-family: var(--font-mono); font-size: 12.5px; text-align: right; }
.local-card dd.ok { color: var(--stage-accent); }
.fit { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.fit-row { display: grid; grid-template-columns: 1.1fr 1.4fr 0.8fr; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.fit-row:first-child { border-top: 0; }
.fit-head { background: var(--sunken); font: 500 11.5px var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.fit-row.is-pick { background: var(--accent-soft); }
.fit-row em { font-style: normal; font: 500 11px var(--font-mono); color: var(--accent-ink); margin-left: 6px; text-transform: uppercase; }

/* edge: the render and the on-site flow */
.edge-figure { margin: 8px 0 0; width: 100%; max-width: 980px; }
.edge-figure img { border-radius: var(--r-xl); border: 1px solid var(--stage-line); }
.edge-figure figcaption { margin-top: 10px; font-size: 12.5px; color: var(--stage-faint); }
.edge-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.ef-node { flex: 1 1 180px; min-width: 0; padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.ef-node b { font-family: var(--font-display); font-size: 16px; }
.ef-node small { font-size: 13px; color: var(--muted); }
.ef-box { background: var(--stage-raised); color: var(--stage-fg); }
.ef-box small { color: var(--stage-muted); }
.ef-off { opacity: 0.55; }
.ef-link { flex: 0 1 150px; display: flex; align-items: center; justify-content: center; padding: 10px; position: relative; font: 11px var(--font-mono); color: var(--accent-ink); text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }
.ef-link::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; border-top: 2px dashed var(--accent); opacity: 0.6; }
.ef-link span { position: relative; background: var(--surface); padding: 2px 6px; }
.ef-cut { color: var(--faint); }
.ef-cut::before { border-top-color: var(--line-strong); }
@media (max-width: 760px) { .ef-link { flex-basis: 100%; min-height: 44px; } .ef-link::before { left: 50%; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 2px dashed var(--accent); } }

/* ── the only waitlist entry: a bar floating at the foot of every page; it leaves once the visitor joins ── */
.wl-bar {
  position: fixed; z-index: 50; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter)); max-width: 1060px; padding: 14px 16px 12px;
  background: rgba(18, 18, 21, 0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--stage-line); border-radius: var(--r-xl); color: var(--stage-fg);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(23, 178, 122, 0.08);
  animation: wl-in 0.5s var(--ease-out) both;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.wl-bar.is-leaving { transform: translate(-50%, 140%); opacity: 0; }
@keyframes wl-in { from { transform: translate(-50%, 120%); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.join.wl-bar form { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(320px, 460px); align-items: center; gap: 8px 18px; }
.wl-act { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wl-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; color: var(--stage-muted); line-height: 1.4; }
.wl-copy b { font-family: var(--font-display); font-size: 15px; color: var(--stage-fg); }
.wl-bar .plan { justify-content: flex-start; }
.wl-bar .plan legend { line-height: 32px; }
.wl-bar .join-row { flex-wrap: nowrap; }
.wl-bar .join-row input[type="email"] { height: 44px; flex: 1 1 0; min-width: 0; }
.wl-bar .join-row .btn { height: 44px; padding: 0 18px; }
.wl-bar .join-error, .wl-bar .join-note { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.wl-bar .join-error { font-size: 13px; }
.wl-bar .joined { margin: 0; }
/* keep the page's last lines clear of the bar while it is up */
body:has(.wl-bar:not([hidden])) { padding-bottom: 140px; }
@media (max-width: 900px) {
  .join.wl-bar form { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .join.wl-bar form > * { min-width: 0; }
  .wl-copy span { display: none; }
  .wl-bar .join-note { display: none; }
  body:has(.wl-bar:not([hidden])) { padding-bottom: 210px; }
}
@media (max-width: 420px) { .wl-bar .join-row .btn { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .wl-bar { animation: none; } }

/* local: how work is routed (inline SVG; scrolls sideways on narrow screens rather than shrinking the text) */
.route { margin: 8px 0 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); padding: 12px; }
.route svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font-body); }
.route .rq rect { fill: var(--sunken); stroke: var(--line); }
.route .rq text { font-size: 15px; fill: var(--fg); }
.route .cap { font: 500 11.5px var(--font-mono); letter-spacing: 0.06em; fill: var(--faint); }
.route .cap-local { fill: var(--accent-ink); }
.route .wire { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 6 7; }
.route .wire-local { stroke: var(--accent); }
.route .wire-fallback { stroke: var(--faint); }
.route .gate { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.route .gate-mark { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.route .zone { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 6; }
.route .screen { fill: var(--stage-raised); stroke: var(--line-strong); }
.route .laptop-base { fill: var(--line-strong); }
.route .plane { fill: none; stroke: #fafafa; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.route .big { font: 700 18px var(--font-display); fill: var(--fg); }
.route .small { font-size: 13.5px; fill: var(--muted); }
.route .tag-ok { font: 500 13px var(--font-mono); fill: var(--accent-ink); }
.route .cloud { fill: var(--sunken); stroke: var(--line-strong); stroke-width: 1.5; }
.route .dot-local { fill: var(--accent); }
.route .dot-cloud { fill: var(--faint); }
@media (prefers-reduced-motion: reduce) { .route .dot { display: none; } }

/* local: memory → model, drawn to scale (full track = 32 GB) */
.mem { display: flex; flex-direction: column; gap: 14px; }
.mem-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 6px 14px; align-items: center; }
.mem-label { font-size: 13.5px; color: var(--muted); }
.mem-label b { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.mem-track { height: 30px; border-radius: var(--r-sm); background: transparent; }
.mem-ram { height: 100%; border-radius: var(--r-sm); background: var(--sunken); border: 1px solid var(--line-strong); padding: 3px; display: flex; }
.mem-model { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.mem-8 { width: 25%; } .mem-16 { width: 50%; } .mem-32 { width: 100%; }
.mem-8 .sz-18 { width: 22.5%; } .mem-16 .sz-25 { width: 15.6%; } .mem-32 .sz-50 { width: 15.6%; }
.mem-pick { grid-column: 2; font: 500 12.5px var(--font-mono); color: var(--muted); margin-top: -2px; }
.mem-pick em { font-style: normal; color: var(--accent-ink); margin-left: 6px; text-transform: uppercase; font-size: 11px; }
.mem-row.is-pick .mem-ram { border-color: var(--accent-line); }
.mem-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; color: var(--faint); }
.mem-key span { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.mem-key .k-model { background: var(--accent); }
.mem-key .k-free { background: var(--sunken); border: 1px solid var(--line-strong); margin-left: 8px; }

/* hero demo: the delivered file opens, gets the visitor's note, and is revised with tracked changes */
.win-main { position: relative; overflow: hidden; }
.preview { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: var(--sunken); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform 0.45s var(--ease-out); }
.preview.is-open { transform: none; }
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; }
.pv-bar .file { width: 30px; height: 30px; font-size: 9px; border-radius: var(--r-sm); }
.pv-bar b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-chip { margin-left: auto; flex: none; font: 500 11px var(--font-mono); padding: 3px 8px; border-radius: 999px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); opacity: 0; transform: scale(0.8); transition: opacity 0.25s var(--ease), transform 0.3s var(--ease); }
.preview.is-revised .pv-chip { opacity: 1; transform: none; }
.pv-body { position: relative; flex: 1; min-height: 0; padding: clamp(14px, 3vw, 28px); display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.pv-body > div:first-child { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 22px 24px; font-size: 13px; color: var(--muted); }
.pv-body h4 { margin: 0 0 8px; font: 700 17px/1.3 var(--font-display); color: var(--fg); letter-spacing: -0.01em; }
.pv-body ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.pv-body p { margin-top: 8px; }
.pv-slide { aspect-ratio: 16 / 9; position: relative; }
.pv-slide h4 { font-size: 21px; }
.pv-slide .sub { font: 500 11px var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0; }
.pv-slide .bars { position: absolute; right: 22px; bottom: 20px; display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.pv-slide .bars i { width: 14px; border-radius: 3px 3px 0 0; background: var(--accent-line); }
.pv-slide .bars i:nth-child(1) { height: 40%; } .pv-slide .bars i:nth-child(2) { height: 55%; } .pv-slide .bars i:nth-child(3) { height: 70%; } .pv-slide .bars i:nth-child(4) { height: 100%; background: var(--accent); }
.pv-sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pv-sheet th, .pv-sheet td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.pv-sheet th { background: var(--sunken); font: 500 11px var(--font-mono); color: var(--faint); text-transform: uppercase; }
.pv-sheet tr.hl td { background: var(--accent-soft); color: var(--fg); font-weight: 600; }
.pv-sheet .sum { margin-top: 12px; }
.pv-pdf .flag { padding: 4px 6px; border-left: 3px solid #eab308; background: rgba(234, 179, 8, 0.1); border-radius: 0 4px 4px 0; }
.pv-web .url { font: 11.5px var(--font-mono); color: var(--faint); background: var(--sunken); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin: -6px 0 14px; }
.pv-web ul { list-style: none; padding: 0; }
.pv-web li { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sunken); color: var(--fg); }
/* tracked change: plain until revised; highlighted while the note is up; then old struck, new inserted */
.trk ins { display: none; text-decoration: none; }
.trk del { text-decoration: none; }
.preview.is-marked .trk { background: rgba(234, 179, 8, 0.22); border-radius: 3px; box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.22); }
.preview.is-revised .trk { background: none; box-shadow: none; }
.preview.is-revised .trk del { text-decoration: line-through; color: #dc2626; background: rgba(220, 38, 38, 0.08); }
.preview.is-revised .trk ins { display: inline; margin-left: 4px; color: var(--accent-ink); background: var(--accent-soft); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.pv-note { position: absolute; right: clamp(10px, 2vw, 18px); top: 10px; max-width: 240px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-md);
  background: #fef9c3; color: #713f12; font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 0.25s var(--ease), transform 0.3s var(--ease); }
.pv-note .who { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #a16207; color: #fff; font-size: 9.5px; font-weight: 700; }
.preview.is-marked .pv-note { opacity: 1; transform: none; }
.file.web { background: #0369a1; }

/* local: real app screens */
.app-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.app-shots figure { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.app-shots figcaption { font-size: 14px; color: var(--muted); }
.app-shots figcaption b { color: var(--fg); }

/* the launch film as a card in the waitlist bar; our own MP4 plays in a centred dialog (assets/video.mjs) */
.wl-film { position: relative; display: block; padding: 0; cursor: pointer; font: inherit; color: inherit; width: 208px; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--stage-line); background: #000; flex: none; }
.wl-film img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease), filter 0.2s var(--ease); }
.wl-film:hover img { transform: scale(1.05); filter: brightness(1.12); }
.wl-film-play { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45); }
.wl-film-play svg { margin-left: 3px; width: 16px; height: 16px; }
.wl-film-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px; font: 500 11px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); text-align: center; }
.wl-film:hover { text-decoration: none; }
.wl-bar .join-error, .wl-bar .join-note { grid-column: 2 / -1; }
.film-dialog { width: min(980px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--stage-line); border-radius: var(--r-xl); background: #000; overflow: visible; }
.film-dialog::backdrop { background: rgba(5, 5, 6, 0.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.film-dialog .frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; }
.film-dialog video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.film-dialog .close { position: absolute; right: 0; top: -44px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--stage-line); background: var(--stage-raised); color: var(--stage-fg); font: 500 13px var(--font-body); cursor: pointer; }
@media (max-width: 900px) {
  .join.wl-bar form { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "film copy" "act act" "err err"; }
  .wl-act { grid-area: act; }
  .wl-film { grid-area: film; width: 132px; }
  .wl-copy { grid-area: copy; }
  .wl-bar .join-error { grid-area: err; }
  .wl-copy span { display: block; font-size: 12.5px; }
}
