/* Phantom — marketing site. Dark, calm, precise. */
:root {
  --bg: #0b0b0d;
  --bg-2: #101013;
  --surface: #141418;
  --surface-2: #1a1a1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f6;
  --muted: #a3a3ad;
  --dim: #6e6e78;
  --violet: #8b6cff;
  --blue: #3a8dff;
  --grad: linear-gradient(135deg, #8b6cff 0%, #3a8dff 100%);
  --green: #3ddc84;
  --orange: #ffb547;
  --radius: 14px;
  --max: 1160px;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Geist', -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(139, 108, 255, 0.35); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ─── Type ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 700; }
h2 { font-size: clamp(34px, 4.8vw, 56px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--violet); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ─── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); color: var(--text);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: #fff; color: #0b0b0d; border-color: #fff; }
.btn.primary:hover { background: #e9e9ee; box-shadow: 0 8px 30px rgba(139,108,255,0.35); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Nav ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-right .signin { color: var(--muted); }
.nav-right .signin:hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 8px; margin-right: -8px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links, .nav-right .signin { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 64px; left: 0; right: 0;
    padding: 12px 24px 20px; background: rgba(11,11,13,0.97); border-bottom: 1px solid var(--line); font-size: 17px;
  }
  .nav.open .nav-links a { padding: 10px 0; }
}

/* ─── Sections ─────────────────────────────────────── */
section { position: relative; padding: 120px 0; }
.section-head { margin-bottom: 56px; }
.section-head h2 { margin: 14px 0 16px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* Hero */
.hero { padding: 96px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -200px -10% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 30% 30%, rgba(139,108,255,0.22), transparent 70%),
    radial-gradient(560px 380px at 75% 40%, rgba(58,141,255,0.18), transparent 70%);
  filter: blur(10px);
}
.hero h1 { margin: 22px auto 22px; max-width: 1100px; }
.hero .lead { margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--dim); }
.hero-visual { margin-top: 72px; perspective: 1600px; }

.works-with { padding: 56px 0 24px; }
.works-with .row { display: flex; justify-content: center; align-items: center; gap: 44px; flex-wrap: wrap; color: var(--dim); font: 600 15px/1 var(--display); letter-spacing: -0.01em; }
.works-with .row span { display: inline-flex; align-items: center; gap: 10px; }
.works-with .row i { width: 6px; height: 6px; border-radius: 2px; background: var(--line-2); display: inline-block; }

/* ─── Mock window (app) ─────────────────────────────── */
.window {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #16161a; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 40px 120px -20px rgba(0,0,0,0.8), 0 0 140px -30px rgba(139,108,255,0.45);
  font-size: 13px; text-align: left;
}
.hero .window { max-width: 1040px; margin: 0 auto; transform: rotateX(8deg); transform-origin: 50% 0; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.hero .window.flat { transform: rotateX(0); }
.titlebar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #1b1b20; }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.titlebar i:nth-child(1) { background: #ff5f57; } .titlebar i:nth-child(2) { background: #febc2e; } .titlebar i:nth-child(3) { background: #28c840; }
.titlebar .t { margin-left: 12px; font-weight: 600; color: var(--muted); font-size: 12px; }
.titlebar .tb-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.app { display: grid; grid-template-columns: 210px 1fr; min-height: 430px; }
.app-side { background: #131317; border-right: 1px solid var(--line); padding: 14px 10px; }
.app-side .h { font-size: 10.5px; font-weight: 600; color: var(--dim); padding: 6px 8px; letter-spacing: 0.02em; }
.app-side .it { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; color: #d6d6dc; }
.app-side .it span:last-child { color: var(--dim); font-variant-numeric: tabular-nums; }
.app-side .it.sel { background: rgba(255,255,255,0.07); }
.app-main { display: flex; flex-direction: column; }
.app-toolbar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.app-toolbar .ttl { font-weight: 600; font-size: 14px; }
.app-toolbar .sub { font-size: 11.5px; color: var(--dim); }
.app-toolbar .spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); font-size: 12px; color: #d6d6dc; }
.chip.build { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 6px 20px -6px rgba(139,108,255,0.7); }
.tbl { padding: 4px 0; }
.tr-h, .tr { display: grid; grid-template-columns: 30px 1.6fr 1.2fr 70px 110px; align-items: center; gap: 12px; padding: 0 20px; }
.tr-h { height: 30px; font-size: 11px; color: var(--dim); border-bottom: 1px solid var(--line); }
.tr { height: 52px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.tr .n { color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; }
.tr .song b { display: block; font-weight: 600; color: #ededf1; }
.tr .song small { color: var(--dim); font-size: 11.5px; }
.tr .arr { color: #c9c9d1; }
.tr .key { font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.work { color: var(--orange); }
.xfade { padding: 0 20px 0 62px; height: 18px; display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--violet); }
.xfade::after { content: ''; flex: 1; border-top: 1px dashed rgba(139,108,255,0.45); }
.progress { margin: 18px 20px 20px; padding: 14px 16px; border-radius: 10px; background: rgba(139,108,255,0.08); border: 1px solid rgba(139,108,255,0.25); display: flex; align-items: center; gap: 14px; }
.progress .bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width 2.6s cubic-bezier(.4,.1,.2,1); }
.in-view .progress .bar i { width: 100%; }
.progress small { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .tr-h, .tr { grid-template-columns: 22px 1.6fr 50px 90px; }
  .tr .arr, .tr-h .arr { display: none; }
}

/* ─── Ableton-style arrangement mock ────────────────── */
.daw { background: #1c1c1f; font-family: var(--font); }
.daw-top { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #242428; border-bottom: 1px solid #000; font-size: 11px; color: #b9b9c2; }
.daw-top .lcd { background: #0f0f10; color: #ffb547; padding: 3px 8px; border-radius: 3px; font: 600 11px/1 var(--mono); }
.daw-body { display: grid; grid-template-columns: 150px 1fr; }
.daw-names div { height: 30px; display: flex; align-items: center; padding: 0 10px; font-size: 11px; color: #d7d7de; border-bottom: 1px solid #111; background: #2a2a2f; }
.daw-names div.grp { background: #34343a; font-weight: 600; }
.daw-names div.ruler { height: 26px; background: #202024; color: var(--dim); }
.daw-grid { position: relative; overflow: hidden; background:
  repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 40px), #18181b; }
.daw-row { position: relative; height: 30px; border-bottom: 1px solid #111; }
.daw-row.ruler { height: 26px; background: #202024; }
.loc { position: absolute; top: 4px; height: 18px; padding: 0 6px; display: flex; align-items: center; font: 700 9.5px/1 var(--font); letter-spacing: 0.04em; color: #111; border-radius: 2px; background: #e8e8ec; white-space: nowrap; }
.loc.song { background: #ffb547; }
.clip { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; overflow: hidden; font-size: 9.5px; font-weight: 600; color: rgba(0,0,0,0.75); padding: 2px 5px; white-space: nowrap; }
.clip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 11px; opacity: 0.45;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0.8) 0 1px, transparent 1px 3px); -webkit-mask: linear-gradient(0deg,#000,transparent); mask: linear-gradient(0deg,#000,transparent); }
.c1 { background: #ff8a5c; } .c2 { background: #ffd166; } .c3 { background: #7bdcb5; } .c4 { background: #6fb7ff; } .c5 { background: #b79cff; } .c6 { background: #ff7eb6; } .c7 { background: #a8a8b3; }
.playhead { position: absolute; top: 0; bottom: 0; width: 1px; background: #fff; box-shadow: 0 0 10px #fff; left: 18%; animation: play 9s linear infinite; }
@keyframes play { from { left: 4%; } to { left: 96%; } }
@media (max-width: 760px) { .daw-body { grid-template-columns: 96px 1fr; } }

/* ─── Steps ────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 320px; transition: border-color .25s ease, transform .25s ease; }
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step .num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 700 13px/1 var(--display); background: var(--grad); color: #fff; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .mini { margin-top: auto; border-radius: 10px; background: #0f0f12; border: 1px solid var(--line); padding: 12px; font-size: 12px; }
.mini .r { display: flex; align-items: center; justify-content: space-between; padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,0.04); color: #d4d4db; }
.mini .r:last-child { border-bottom: 0; }
.mini .r em { font-style: normal; color: var(--dim); font-size: 11px; }
.mini .ok { color: var(--green); font-weight: 700; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* ─── Bento features ───────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)), var(--surface);
  border: 1px solid var(--line); min-height: 280px; display: flex; flex-direction: column; gap: 10px;
}
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(139,108,255,0.12), transparent 70%); opacity: 0; transition: opacity .3s ease; }
.card:hover::before { opacity: 1; }
.card p { margin: 0; color: var(--muted); font-size: 15px; max-width: 460px; }
.card .art { margin-top: auto; padding-top: 22px; }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr; } .span-4, .span-3, .span-2 { grid-column: auto; } }

/* feature art bits */
.tempo { position: relative; height: 110px; border-radius: 10px; background: #0f0f12; border: 1px solid var(--line); overflow: hidden; }
.tempo svg { width: 100%; height: 100%; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 12px; padding: 6px 10px; border-radius: 8px; background: #0f0f12; border: 1px solid var(--line); color: #d4d4db; }
.pill b { font-weight: 600; color: #fff; }
.pill .w { color: var(--violet); margin-left: 6px; }
.keys { display: flex; align-items: center; gap: 14px; font: 700 34px/1 var(--display); letter-spacing: -0.02em; }
.keys .from { color: var(--dim); }
.keys .to { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.keys small { font: 500 12px/1.4 var(--font); color: var(--dim); letter-spacing: 0; }
.seq { display: flex; gap: 6px; flex-wrap: wrap; }
.seq span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 8px 10px; border-radius: 7px; background: #0f0f12; border: 1px solid var(--line); color: #d4d4db; }
.seq span.rep { border-color: rgba(139,108,255,0.5); color: #c9bbff; }
.fade-art { height: 90px; position: relative; }
.fade-art .a, .fade-art .b { position: absolute; top: 18px; height: 54px; border-radius: 8px; }
.fade-art .a { left: 0; width: 62%; background: linear-gradient(90deg, #6fb7ff 70%, transparent); }
.fade-art .b { right: 0; width: 50%; background: linear-gradient(270deg, #b79cff 70%, transparent); mix-blend-mode: screen; }
.fade-art small { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); color: var(--dim); font-size: 11px; white-space: nowrap; }

/* ─── Big statement ────────────────────────────────── */
.statement { text-align: center; padding: 140px 0; }
.statement h2 { font-size: clamp(40px, 6vw, 76px); max-width: 980px; margin: 0 auto; }
.statement .strike { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(255,255,255,0.25); }

/* ─── Pricing ──────────────────────────────────────── */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); gap: 2px; margin-top: 8px; }
.toggle button { height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 14px/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s ease, color .2s ease; }
.toggle button.on { background: #fff; color: #0b0b0d; }
.toggle .save { font-size: 11px; padding: 3px 7px; border-radius: 99px; background: rgba(61,220,132,0.15); color: var(--green); }
.toggle button.on .save { background: rgba(0,0,0,0.08); color: #127a43; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; margin: 48px auto 0; }
.plan { position: relative; padding: 34px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.featured { background: linear-gradient(180deg, rgba(139,108,255,0.10), rgba(58,141,255,0.04) 60%), var(--surface); border-color: rgba(139,108,255,0.45); box-shadow: 0 30px 80px -30px rgba(139,108,255,0.45); }
.plan .badge { position: absolute; top: -12px; left: 34px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; background: var(--grad); color: #fff; }
.plan h3 { font-size: 22px; }
.plan .for { color: var(--muted); font-size: 14px; margin-top: 4px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 4px; }
.plan .price .amt { font: 700 52px/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.plan .price .per { color: var(--muted); font-size: 15px; }
.plan .billed { color: var(--dim); font-size: 13px; min-height: 20px; }
.plan .btn { margin-top: 26px; width: 100%; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-size: 15px; color: #d6d6dc; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: rgba(139,108,255,0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23b9a6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.trial-note { text-align: center; color: var(--dim); font-size: 14px; margin-top: 28px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.compare { max-width: 880px; margin: 80px auto 0; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.compare .row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare .row:last-child { border-bottom: 0; }
.compare .row.head { background: var(--surface); font-weight: 600; }
.compare .row div:not(:first-child) { text-align: center; color: var(--muted); }
.compare .yes { color: var(--green) !important; font-weight: 700; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font: 600 17px/1.4 var(--display); letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); }

/* CTA band */
.cta-band { padding: 120px 0; }
.cta-box { position: relative; overflow: hidden; text-align: center; padding: 80px 32px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(600px 300px at 50% 0%, rgba(139,108,255,0.25), transparent 70%), radial-gradient(500px 260px at 50% 110%, rgba(58,141,255,0.18), transparent 70%), var(--bg-2); }
.cta-box img { width: 64px; height: 64px; margin: 0 auto 24px; filter: drop-shadow(0 10px 30px rgba(139,108,255,0.5)); }
.cta-box h2 { margin-bottom: 16px; }
.cta-box .lead { margin: 0 auto 32px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 14px; font: 600 13px/1 var(--font); color: var(--text); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a:hover { color: var(--text); }
.foot .about { max-width: 300px; }
.foot .about p { margin: 14px 0 0; color: var(--dim); }
.legal-line { margin-top: 48px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--dim); font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ─── Docs + legal pages ───────────────────────────── */
.page-hero { padding: 88px 0 48px; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 64px); margin: 16px 0 14px; }
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 24px 0 120px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; display: grid; gap: 4px; }
.toc a { color: var(--muted); padding: 6px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.prose { max-width: 720px; font-size: 16px; color: #d6d6dc; }
.prose h2 { font-size: 30px; margin: 56px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose li { color: #c4c4cc; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: #b9a6ff; text-decoration: underline; text-decoration-color: rgba(185,166,255,0.4); text-underline-offset: 3px; }
.prose code { font: 500 13.5px/1 var(--mono); background: rgba(255,255,255,0.06); border: 1px solid var(--line); padding: 3px 6px; border-radius: 6px; color: #e6e6ea; }
.prose .callout { margin: 24px 0; padding: 16px 18px; border-radius: 12px; background: rgba(139,108,255,0.08); border: 1px solid rgba(139,108,255,0.25); color: #d6d6dc; }
.prose .callout.warn { background: rgba(255,181,71,0.08); border-color: rgba(255,181,71,0.3); }
.prose .callout strong { color: #fff; }
.req { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
.req div { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.req div b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; grid-auto-flow: column; overflow-x: auto; } .req { grid-template-columns: 1fr; } }

/* ─── Reveal on scroll ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .playhead { animation: none; }
  .hero .window { transform: none; }
}
@media (max-width: 600px) {
  .works-with .row { gap: 14px 22px; }
  .works-with .row i { display: none; }
  .works-with .row span:first-child { width: 100%; justify-content: center; }
  .app-toolbar .chip:not(.build) { display: none; }
  .chip.build { white-space: nowrap; }
}
