/* Tonebar site.
   Layout: Apple-style chapters, alternating dark (fixed) and light (follows the
   viewer's light/dark setting). Each chapter: one idea, one drawn, animated visual.
   Two "song" colours run through every visual: A (cool) and B (warm). */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* light chapters */
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --surface: #ffffff;
  --accent: #0071e3;
  --link: #0066cc;
  --song-a: #0a84ff;
  --song-b: #ff6a3d;
  --cc-bg: #e8e8ed;
  --cc-row: #f4f4f7;
  --pill-track: #d1d1d6;
  --pill-fill: #ffffff;
  --pill-tick: rgba(0, 0, 0, .18);
  --person-top: #b6bbc5;
  --person-bottom: #e9ebef;
  --mac-lid: #1f1f22;
  --mac-edge: #55555c;
  --mac-deck: #c3c6cd;
  --key-bg: #ffffff;
  --key-ink: #1d1d1f;
  --shadow: 10px 30px 60px -30px rgba(0, 0, 0, .28);
  /* One easing curve and three durations for every transition on the page */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-1: .3s;
  --dur-2: .6s;
  --dur-3: 1s;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161617;
    --bg-alt: #1d1d1f;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #3a3a3f;
    --surface: #1d1d1f;
    --accent: #0a84ff;
    --link: #2997ff;
    --song-a: #64d2ff;
    --song-b: #ff9f6e;
    --cc-bg: #232326;
    --cc-row: #2c2c30;
    --pill-track: #3a3a3f;
    --pill-fill: #f5f5f7;
    --pill-tick: rgba(255, 255, 255, .28);
    --person-top: #4a4e57;
    --person-bottom: #24262b;
    --mac-lid: #1a1a1c;
    --mac-edge: #4a4a50;
    --mac-deck: #3a3b40;
    --key-bg: #2c2c30;
    --key-ink: #f5f5f7;
    --shadow: 10px 30px 60px -30px rgba(0, 0, 0, .7);
  }
}

/* Dark chapters stay dark in both modes. */
.dark {
  --bg: #000000;
  --bg-alt: #111113;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: #2c2c2e;
  --surface: #1c1c1e;
  --link: #2997ff;
  --song-a: #64d2ff;
  --song-b: #ff9f6e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.defs { position: absolute; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }

/* ---------- Navigation (also used by legal pages as .site-header) ---------- */
.nav, .site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(22, 22, 23, .78);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  color: #f5f5f7;
}
.nav-row, .header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: #f5f5f7; }
.brand:hover { text-decoration: none; }
.brand svg { fill: rgba(255, 255, 255, .55); }
.brand svg .knob { fill: #f5f5f7; }
.nav nav, .site-header nav { display: flex; align-items: center; gap: 26px; }
.nav nav a, .site-header nav a { color: rgba(245, 245, 247, .82); font-size: 13px; }
.nav nav a:hover, .site-header nav a:hover { color: #fff; text-decoration: none; }
.nav .nav-buy {
  color: #fff; background: #0071e3; padding: 5px 13px; border-radius: 980px; font-size: 13px;
}
@media (max-width: 600px) { .nav nav a:not(.nav-buy) { display: none; } }

/* ---------- Type ---------- */
h1 { font-size: clamp(2.7rem, 6.6vw, 5.2rem); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.12; letter-spacing: -0.025em; }
.eyebrow {
  font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--song-a), var(--song-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content;
}
.center .eyebrow, .hero-copy .eyebrow { margin-left: auto; margin-right: auto; }
.lede, .body { color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.45; letter-spacing: -0.015em; }
.body { margin-top: 20px; max-width: 34em; }
.lede { margin-top: 22px; max-width: 32em; }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.5; }
.center { text-align: center; }
.copy.center { max-width: 820px; margin: 0 auto; }
.copy.center .body { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #0071e3; color: #fff;
  font: 400 17px/1 var(--font); letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: 980px; border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.btn:hover { text-decoration: none; background: #0077ed; }
.btn:active { transform: scale(.98); }
.btn-quiet { background: transparent; color: var(--link); padding-left: 8px; padding-right: 8px; }
.btn-quiet:hover { background: transparent; text-decoration: underline; }
.btn-ghost { background: transparent; color: var(--link); border-color: var(--link); }
.btn-ghost:hover { background: transparent; }
.btn-wide { width: 100%; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.cta-row { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.notice {
  margin: 18px auto 0; max-width: 34em; font-size: 14px; padding: 10px 16px; border-radius: 12px;
  background: rgba(255, 159, 110, .16); color: var(--ink);
}

/* ---------- Chapters ---------- */
.chapter { background: var(--bg); color: var(--ink); padding-block: clamp(96px, 13vw, 168px); overflow: clip; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split > * { min-width: 0; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: 1px; margin-right: 7px; }
.dot.a { background: var(--song-a); box-shadow: 0 0 10px var(--song-a); }
.dot.b { background: var(--song-b); box-shadow: 0 0 10px var(--song-b); }
.dot.call { background: #30d158; box-shadow: 0 0 10px #30d158; }

/* Sound streams: a faint base line with light running along it (motion.js adds glowing particles). */
@property --glow { syntax: "<number>"; inherits: true; initial-value: 0; }
.streams path { --o: .38; stroke-width: 1.4; opacity: calc(var(--o) + .42 * var(--glow, 0)); stroke-dasharray: 2 9; animation: flow 1.6s linear infinite; }
.streams path:nth-child(3n+2) { --o: .26; animation-duration: 2.1s; }
.streams path:nth-child(3n) { --o: .22; animation-duration: 1.3s; }
.hero .particles { opacity: calc(.8 + .2 * var(--glow, 0)); }
@keyframes flow { to { stroke-dashoffset: -44; } }
.is-paused .streams path { animation-play-state: paused; }

/* ---------- 1. Hero ---------- */
.hero { padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(40px, 5vw, 64px); text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 32% at 22% 72%, rgba(100, 210, 255, .14), transparent 70%),
    radial-gradient(40% 32% at 78% 72%, rgba(255, 159, 110, .13), transparent 70%);
}
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-copy .lede { margin-left: auto; margin-right: auto; }
.hero-visual { position: relative; margin: clamp(28px, 4vw, 44px) auto 0; max-width: 1180px; padding: 0 8px; }
.stage { width: 100%; height: auto; overflow: visible; }
.hero .macbook { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)); }
.pods use { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }
.pods-a { animation: bob 5.2s ease-in-out infinite; }
.pods-b { animation: bob 5.8s ease-in-out infinite -2s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.is-paused .pods { animation-play-state: paused; }
.mini-fill { transform-box: fill-box; transform-origin: left center; animation: level 3.4s ease-in-out infinite; }
.mini-fill.b { animation-duration: 4.1s; animation-delay: -1.2s; }
@keyframes level { 50% { transform: scaleX(.78); } }
.legend { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- 2. Mixer (Control Center style) ---------- */
.cc {
  width: min(100%, 460px); margin-inline: auto;
  background: var(--cc-bg); border-radius: 28px; padding: 18px 18px 8px;
  box-shadow: var(--shadow);
}
.cc-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px 12px; font-weight: 600; font-size: 15px; }
.cc-device { color: var(--muted); font-weight: 400; font-size: 13px; }
.cc-row {
  display: grid; grid-template-columns: 36px 64px minmax(0, 1fr) 46px; align-items: center; gap: 12px;
  background: var(--cc-row); border-radius: 18px; padding: 10px 14px 10px 10px; margin-bottom: 10px;
}
.glyph {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--g1), var(--g2)); color: #fff;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25);
}
.glyph svg { width: 20px; height: 20px; fill: currentColor; }
.cc-name { font-size: 15px; font-weight: 500; }
.cc-val { font: 500 14px var(--font); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.cc-row.boost .cc-val { color: var(--song-b); }
@media (max-width: 420px) {
  .cc { padding: 14px 12px 4px; border-radius: 24px; }
  .cc-row { grid-template-columns: 30px 52px minmax(0, 1fr) 40px; gap: 8px; padding: 8px 10px 8px 8px; }
  .glyph { width: 30px; height: 30px; border-radius: 8px; }
  .glyph svg { width: 17px; height: 17px; }
  .cc-name { font-size: 13px; }
}

/* Pill slider: Control Center look, no knob. A real <input type=range> sits on top
   (transparent) so dragging, clicking and the keyboard all work; motion.js wraps it in
   .pill-wrap and adds the fill, the 100% tick and the warm boost segment. */
.pill-wrap {
  --f: .6667; --tick: 66.667%;
  position: relative; display: block; height: 30px; border-radius: 15px; overflow: hidden;
  background: var(--pill-track); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .05);
}
.pill-wrap .pill-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: max(30px, calc(var(--f) * 100%));
  border-radius: 15px; background: var(--pill-fill);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .04), 1px 0 3px rgba(0, 0, 0, .08);
}
.pill-wrap .pill-boost {
  position: absolute; top: 0; bottom: 0; left: var(--tick);
  width: max(0px, calc((var(--f) - .6667) * 100%));
  border-radius: 0 15px 15px 0; background: var(--song-b); opacity: 0; transition: opacity var(--dur-1) var(--ease);
}
.pill-wrap.boost .pill-boost { opacity: 1; }
.pill-wrap .pill-tick {
  position: absolute; top: 8px; bottom: 8px; left: calc(var(--tick) - 1px); width: 2px; border-radius: 1px;
  background: var(--pill-tick); z-index: 1;
}
.pill-wrap.pill-a .pill-fill { background: var(--song-a); }
.pill-wrap.pill-b .pill-fill { background: var(--song-b); }
.pill-wrap:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.pill {
  -webkit-appearance: none; appearance: none; position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; margin: 0; background: transparent; cursor: pointer; outline: none;
}
.pill::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 2px; height: 30px; background: transparent; border: 0; }
.pill::-moz-range-thumb { width: 2px; height: 30px; background: transparent; border: 0; }
.pill::-moz-range-track { background: transparent; }

/* ---------- 3. Router ---------- */
.router {
  position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 940px;
  display: grid; grid-template-columns: auto minmax(60px, 1fr) auto; align-items: center;
}
.r-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.r-col { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.r-apps { grid-column: 1; }
.r-devices { grid-column: 3; gap: 12px; }
.r-node {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: #161618; border: 1px solid #2c2c2e; color: #f5f5f7;
  font: 500 15px var(--font); padding: 13px 18px; border-radius: 16px;
}
button.r-node { cursor: pointer; transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); width: 100%; }
button.r-node:hover { border-color: var(--c); }
button.r-node:active { transform: scale(.97); }
.r-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.r-dev { color: #8e8e93; transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.r-dev svg { width: 26px; height: 22px; fill: currentColor; flex: none; }
.r-dev.live { border-color: #48484d; color: #f5f5f7; }
@media (max-width: 640px) {
  .r-node { font-size: 12.5px; padding: 10px 10px; gap: 6px; border-radius: 12px; }
  .r-dev svg { width: 18px; height: 16px; }
  .r-col { gap: 10px; }
  .r-devices { gap: 7px; }
}

/* ---------- 4. Two listeners ---------- */
.duo {
  margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1080px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr) minmax(0, 1fr); align-items: center;
}
.duo-mac { min-width: 0; }
.duo .stage.v { display: none; }
.duo-note { grid-column: 1 / -1; margin-top: 32px; }
.listen-card {
  --song: var(--song-a);
  background: var(--surface); border-radius: 30px; padding: 22px 24px 26px;
  box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; z-index: 1;
}
.listen-card[data-person="1"] { --song: var(--song-b); }
.device-art {
  border-radius: 22px; margin-bottom: 10px; padding: 16px 10px 8px; display: grid; place-items: center;
  background: radial-gradient(62% 70% at 50% 60%, color-mix(in srgb, var(--song) 20%, transparent), transparent 72%), var(--bg-alt);
}
.device-art { height: clamp(170px, 16vw, 210px); }
.device-art svg { width: auto; height: 100%; max-width: 100%; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .16)); }
.listen-name { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.listen-name .dot { width: 10px; height: 10px; vertical-align: 3px; }
.listen-device { color: var(--muted); font-size: 15px; }
.now { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; margin-top: 8px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.eq i { width: 3px; height: 100%; border-radius: 1.5px; background: var(--song); transform-origin: bottom; animation: eq .8s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration: .62s; animation-delay: -.3s; }
.eq i:nth-child(3) { animation-duration: .95s; animation-delay: -.5s; }
.eq i:nth-child(4) { animation-duration: .7s; animation-delay: -.15s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.progress { height: 4px; border-radius: 2px; background: var(--pill-track); overflow: hidden; margin: 4px 0 12px; }
.progress i { display: block; height: 100%; background: var(--song); transform-origin: left; animation: prog 36s linear infinite; }
.listen-card[data-person="1"] .progress i { animation-duration: 52s; animation-delay: -30s; }
@keyframes prog { from { transform: scaleX(.08); } to { transform: scaleX(1); } }
.is-paused .eq i, .is-paused .progress i { animation-play-state: paused; }
@media (max-width: 760px) {
  .duo { grid-template-columns: minmax(0, 1fr); max-width: 400px; }
  .duo .stage.h { display: none; }
  .duo .stage.v { display: block; width: 150px; margin: -2px auto; }
}

/* ---------- 5. Calls ---------- */
.callviz {
  margin: clamp(48px, 7vw, 80px) auto 0; max-width: 940px;
  background: #0c0c0e; border: 1px solid #222225; border-radius: 30px; padding: clamp(18px, 3vw, 30px);
}
.call-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.call-pill {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding: 9px 16px 9px 12px; border-radius: 980px; background: #1c1c1e; color: #a1a1a6;
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.call-pill .ring { width: 10px; height: 10px; border-radius: 50%; background: #636366; position: relative; }
.call-pill[data-state="ringing"], .call-pill[data-state="active"] { background: rgba(48, 209, 88, .16); color: #30d158; }
.call-pill[data-state="ringing"] .ring, .call-pill[data-state="active"] .ring { background: #30d158; }
.call-pill[data-state="ringing"] .ring::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #30d158; animation: ping 1s ease-out infinite;
}
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.call-level { color: #a1a1a6; font-size: 15px; }
.call-level b { color: #f5f5f7; font: 600 15px var(--mono); font-variant-numeric: tabular-nums; }
.wave { width: 100%; height: clamp(150px, 22vw, 220px); margin-top: 18px; }
.lanes { display: flex; gap: 22px; margin-top: 12px; color: #a1a1a6; font-size: 13px; }

.mic { margin-top: clamp(72px, 10vw, 120px); }
.mic h3 { color: #f5f5f7; }
.mic-demo {
  background: #0c0c0e; border: 1px solid #222225; border-radius: 26px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px; max-width: 440px; width: 100%; margin-inline: auto;
}
.mic-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #1c1c1e; border-radius: 12px; padding: 3px; margin-bottom: 6px; }
.mic-tabs span { position: relative; z-index: 1; text-align: center; font-size: 13px; font-weight: 500; padding: 7px 0; color: #a1a1a6; transition: color var(--dur-1) var(--ease); }
.mic-tabs span.on { color: #f5f5f7; }
.mic-tab-bg { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 9px; background: #3a3a3c; transition: transform var(--dur-2) var(--ease); }
.mic-demo[data-tab="1"] .mic-tab-bg { transform: translateX(100%); }
.mic-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: #161618; border: 1px solid #242427; color: #d8d8dd; transition: border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.mic-row svg { width: 30px; height: 26px; fill: currentColor; color: #a1a1a6; flex: none; }
.mic-row span { flex: 1; font-size: 15px; }
.mic-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #48484a; transition: all var(--dur-1) var(--ease); flex: none; }
.mic-row.on { border-color: #3a3a3c; background: #1c1c1e; }
.mic-row.on .mic-check { background: #0a84ff; border-color: #0a84ff; box-shadow: inset 0 0 0 4px #1c1c1e; }
.mic-result { position: relative; height: 22px; margin-top: 4px; font-size: 14px; font-weight: 500; }
.mic-result .q { position: absolute; inset: 0; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.mic-result .bad { color: #ff9f6e; }
.mic-result .good { color: #30d158; opacity: 0; transform: translateY(6px); }
.mic-demo[data-tab="1"] .bad { opacity: 0; transform: translateY(-6px); }
.mic-demo[data-tab="1"] .good { opacity: 1; transform: none; }

/* ---------- 6. Monitor ---------- */
.monitor { margin: 0; display: flex; flex-direction: column; align-items: center; }
.screen {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 16px;
  border: clamp(7px, 1.2vw, 12px) solid #1b1b1d;
  background:
    radial-gradient(70% 60% at 70% 25%, rgba(10, 132, 255, .45), transparent 70%),
    radial-gradient(60% 50% at 20% 85%, rgba(255, 106, 61, .35), transparent 70%),
    #0b1220;
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.stand { width: 14%; height: clamp(34px, 5vw, 56px); background: linear-gradient(90deg, #a7a9ae, #d9dade, #a7a9ae); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.foot { width: 30%; height: 8px; border-radius: 0 0 6px 6px; background: linear-gradient(#c8c9cd, #9a9ca2); }
.hud {
  width: clamp(120px, 34%, 200px); aspect-ratio: 1; border-radius: 22%;
  background: rgba(36, 36, 40, .72); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: #f5f5f7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12%;
  opacity: 0; transform: scale(.94); transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.hud.show { opacity: 1; transform: none; }
.hud-icon { width: 42%; fill: currentColor; }
.hud-icon .x { display: none; }
.hud[data-muted="true"] .hud-icon .x { display: inline; }
.hud[data-muted="true"] .w1, .hud[data-muted="true"] .w2 { display: none; }
.hud-bar { display: flex; gap: 2px; width: 74%; }
.hud-bar i { flex: 1; height: 7px; border-radius: 1.5px; background: rgba(255, 255, 255, .18); }
.hud-bar i.on { background: #f5f5f7; }
.hud-name { font-size: clamp(10px, 1.1vw, 12px); color: rgba(245, 245, 247, .7); margin-top: -4%; }
.keys { display: flex; gap: 12px; margin-top: 28px; }
.key {
  width: 74px; height: 62px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--key-bg); color: var(--key-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .12), inset 0 -2px 0 rgba(0, 0, 0, .06);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.key svg { width: 22px; height: 22px; fill: currentColor; }
.key small { font-size: 10px; color: var(--muted); }
.key.down, .key:active { transform: translateY(2px) scale(.98); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18); }

/* ---------- 7. Privacy ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(48px, 7vw, 80px); }
.trio-icon { width: 34px; height: 34px; color: var(--song-a); fill: currentColor; margin-bottom: 18px; }
.trio > div:nth-child(2) .trio-icon { color: var(--ink); }
.trio > div:nth-child(3) .trio-icon { color: var(--song-b); }
.trio h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 10px; }
.trio p { color: var(--muted); font-size: 17px; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }

/* ---------- Pricing + compare ---------- */
.pricing { background: var(--bg-alt); }
.price-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: clamp(48px, 7vw, 72px); }
@media (max-width: 880px) { .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
.price-card { background: var(--surface); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.price-name { font-weight: 600; }
.price { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; display: flex; align-items: baseline; gap: 10px; }
.price small { font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 6px; height: 11px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.compare { overflow-x: auto; min-width: 0; }
.compare table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
.compare caption { text-align: left; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; padding-bottom: 14px; }
.compare th, .compare td { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--muted); }
.compare td:last-child, .compare thead th:last-child { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-chapter { background: var(--bg-alt); padding-top: 0; }
.faq { max-width: 820px; display: flex; flex-direction: column; }
.faq h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { cursor: pointer; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: .8; color: var(--muted); transition: transform var(--dur-1) var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); max-width: 40em; }

/* ---------- Footer (also .site-footer on legal pages) ---------- */
.footer, .site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: 22px; font-size: 12px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-row a { color: var(--muted); }

/* ---------- Legal and thank-you pages ---------- */
.legal { max-width: 720px; padding-block: 64px 96px; display: flex; flex-direction: column; gap: 16px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.35rem; margin-top: 18px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); }
.legal ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.draft { font-size: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 159, 110, .18); color: var(--ink) !important; }
.key-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
#license-key {
  flex: 1 1 320px; min-width: 0; font: 500 13px/1.5 var(--mono); padding: 12px; resize: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; word-break: break-all;
}

/* ---------- Switch between apps (pinned scene) ---------- */
.switch { padding-bottom: 0; }
.switch-track { height: 420vh; position: relative; }
.switch-sticky {
  position: sticky; top: 52px; height: calc(100vh - 52px); height: calc(100svh - 52px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 32px);
}
.switch-sticky > .wrap { width: 100%; }
.switch-scene {
  position: relative; width: 100%; max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 56px);
}
.sw-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.sw-apps { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.sw-app {
  width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) 34px; align-items: center; gap: 12px;
  padding: 12px 14px 12px 12px; border-radius: 18px; cursor: pointer; text-align: left;
  background: #141416; border: 1px solid #262629; color: #f5f5f7; font: inherit;
  opacity: .5; transform: scale(.97);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.sw-app:hover { opacity: .8; }
.sw-app.on { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--c) 55%, #262629); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent), 0 18px 50px -18px var(--c); }
.sw-text { display: flex; flex-direction: column; min-width: 0; }
.sw-text b { font-size: 16px; font-weight: 600; }
.sw-text small { font-size: 13px; color: #a1a1a6; }
.sw-lvl { height: 26px; width: 34px; display: flex; align-items: flex-end; justify-content: flex-end; }
.sw-lvl i { width: 6px; height: calc(var(--lv, 1) * 100%); min-height: 3px; border-radius: 3px; background: var(--c); transition: height var(--dur-2) var(--ease); box-shadow: 0 0 10px var(--c); }
.sw-center { position: relative; z-index: 1; aspect-ratio: 1 / .78; width: 100%; }
.sw-dev {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: transform var(--dur-3) var(--ease), opacity var(--dur-2) var(--ease);
}
.sw-dev.max { opacity: 0; transform: translateX(30%) scale(.7); pointer-events: none; }
.sw-maxpods { width: min(100%, 250px); height: auto; filter: drop-shadow(8px 20px 22px rgba(0, 0, 0, .55)); }
.sw-owner { display: none; }
.switch-scene.split .sw-dev.pro { transform: translate(-29%, -5%) scale(.7); }
.switch-scene.split .sw-dev.max { opacity: 1; transform: translate(29%, 5%) scale(.74); }
.switch-scene.split .sw-owner { display: inline; }
.switch-scene.split .sw-device { font-size: 20px; }
.sw-route { grid-column: 2 / -1; display: none; font-size: 12px; color: #a1a1a6; margin-top: -4px; }
.switch-scene.split .sw-route { display: block; }
.switch-scene.split .sw-row[data-app="music"] .sw-route { color: #ff7a7a; } /* matches Music's red stream */
.switch-scene.split .sw-row[data-app="safari"] .sw-route { color: #6ab8ff; } /* matches Safari's blue stream */
.sw-note { text-align: center; font-size: 13px; color: #a1a1a6; opacity: 0; margin-top: -8px; transition: opacity var(--dur-2) var(--ease); }
.switch.is-split .sw-note { opacity: 1; }
.sw-pods { width: min(100%, 300px); height: auto; filter: drop-shadow(8px 20px 26px rgba(0, 0, 0, .6)); }
.sw-device { color: #a1a1a6; font-size: 14px; }
.sw-menu { position: relative; z-index: 1; background: #1c1c1e; border: 1px solid #2c2c2e; border-radius: 22px; padding: 14px 14px 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.sw-menu-title { font-weight: 600; font-size: 14px; padding: 0 4px 10px; color: #f5f5f7; }
.sw-row { display: grid; grid-template-columns: 24px 54px minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding: 8px 4px; font-size: 13px; color: #d8d8dd; }
.sw-ico { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, var(--g1), var(--g2)); }
.sw-ico svg { width: 14px; height: 14px; fill: currentColor; }
.sw-bar { height: 8px; border-radius: 4px; background: #3a3a3c; overflow: hidden; }
.sw-bar i { display: block; height: 100%; width: calc(var(--lv, 1) * 100%); border-radius: 4px; background: #f5f5f7; transition: width var(--dur-2) var(--ease); }
.sw-pct { text-align: right; font-variant-numeric: tabular-nums; color: #a1a1a6; }
.sw-caption { margin-top: 8px; text-align: center; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; color: #f5f5f7; min-height: 2.6em; max-width: 30em; margin: 0 auto; transition: opacity var(--dur-1) var(--ease); }
.sw-steps { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.sw-steps i { width: 6px; height: 6px; border-radius: 3px; background: #3a3a3c; transition: width var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }
.sw-steps i.on { width: 22px; background: #f5f5f7; }
@media (max-width: 760px) {
  .switch-track { height: 380vh; }
  .sw-center { aspect-ratio: 1 / .62; max-width: 340px; margin: 0 auto; }
  .switch-scene.split .sw-device { font-size: 12px; }
  .switch-scene { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sw-apps { flex-direction: row; gap: 6px; }
  .sw-apps li { flex: 1; min-width: 0; display: flex; }
  .sw-apps li > .sw-app { height: 100%; }
  .sw-app { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 6px; padding: 10px 6px; border-radius: 16px; }
  .sw-app .sw-lvl { display: none; }
  .sw-text small { font-size: 11px; }
  .sw-text b { font-size: 14px; }
  .sw-pods { width: 200px; }
  .sw-maxpods { width: 170px; }
  .sw-device { font-size: 12px; }
  .switch-scene:not(.split) .sw-device { display: none; }
  .sw-menu { padding: 10px 10px 2px; border-radius: 18px; }
  .sw-menu-title { display: none; }
  .sw-row { padding: 5px 2px; }
  .sw-caption { min-height: 3.4em; font-size: 1.05rem; padding: 0 8px; }
}
@media (max-height: 700px) and (min-width: 761px) { .sw-pods { width: 240px; } }

/* ---------- 3D render sequences (optional) ----------
   A <canvas class="seq"> only appears once its frames have loaded; until then the SVG drawing shows. */
.seq { display: none; }
.seq.ready { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-visual .seq.ready { height: calc(100% - 40px); }
.hero-visual.has-seq .stage { visibility: hidden; }
.sw-center .seq.ready { opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.switch-scene.split .sw-center.has-seq .seq.ready { opacity: 1; }
.switch-scene.split .sw-center.has-seq .sw-dev svg { visibility: hidden; }

/* ---------- Landing intro (html.intro is set in <head> unless reduced motion) ----------
   Everything below ends at the normal resting state, so nothing depends on it. */
.intro .hero-copy > * { animation: introText var(--dur-3) var(--ease) both; }
.intro .hero-copy > :nth-child(1) { animation-delay: .1s; }
.intro .hero-copy > :nth-child(2) { animation-delay: .22s; }
.intro .hero-copy > :nth-child(3) { animation-delay: .36s; }
.intro .hero-copy > :nth-child(4) { animation-delay: .5s; }
@keyframes introText { from { opacity: 0; filter: blur(14px); transform: translateY(16px); } to { opacity: 1; filter: blur(0); transform: none; } }
.intro .hero .macbook { transform-box: fill-box; transform-origin: 50% 100%; animation: introMac var(--dur-3) var(--ease) .2s both; }
@keyframes introMac { from { opacity: 0; transform: translateY(46px) scale(.95); } to { opacity: 1; transform: none; } }
.lid-glow { opacity: .6; }
.intro .hero .lid-glow { animation: introGlow calc(var(--dur-3) * 1.6) var(--ease) .25s both; }
@keyframes introGlow { 0% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: .6; } }
.intro .hero .mini-menu { transform-box: fill-box; transform-origin: 70% 0; animation: introMenu var(--dur-2) var(--ease) .8s both; }
@keyframes introMenu { from { opacity: 0; transform: scale(.94, .25); } to { opacity: 1; transform: none; } }
.intro .hero .streams, .intro .hero .particles { animation: introIgnite var(--dur-2) var(--ease) 1.1s both; }
@keyframes introIgnite { from { opacity: 0; } to { opacity: 1; } }
.intro .hero .pods use { animation: introIgnite var(--dur-2) var(--ease) 1.05s both; }
.intro .hero .legend { animation: introIgnite var(--dur-2) var(--ease) 1.4s both; }

/* ---------- Scroll-linked motion ----------
   html.sd    : browser supports CSS scroll-driven animations (motion.js decides)
   html.sd-js : fallback; motion.js writes each element's progress into --sp (0..1)
   Neither    : static resting state (no JS, or reduced motion). */
.sd-line { display: block; overflow: clip; overflow-clip-margin: .12em; padding-bottom: .04em; }
.sd-line > span { display: block; }

html.sd [data-sd="rise"] { animation: sdRise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
html.sd [data-sd="tilt"] { animation: sdTilt linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
html.sd .sd-line > span { animation: sdLine linear both; animation-timeline: view(); animation-range: entry 15% cover 32%; }
html.sd .sd-line:nth-child(2) > span { animation-range: entry 30% cover 38%; }
html.sd .sd-line:nth-child(3) > span { animation-range: entry 45% cover 44%; }
html.sd [data-sd="hero"] { animation: sdHero linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
html.sd .hero-visual { animation: sdGlow linear both; animation-timeline: view(); animation-range: contain 0% exit 70%; }
@keyframes sdRise { from { opacity: 0; transform: translateY(64px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes sdTilt { from { opacity: .25; transform: perspective(1400px) rotateX(26deg) translateY(70px) scale(.93); } to { opacity: 1; transform: none; } }
@keyframes sdLine { from { opacity: 0; transform: translateY(72%); } to { opacity: 1; transform: none; } }
@keyframes sdHero { to { transform: translateY(-5%) scale(1.07); } }
@keyframes sdGlow { to { --glow: 1; } }

html.sd-js [data-sd="rise"] { opacity: var(--sp, 1); transform: translateY(calc((1 - var(--sp, 1)) * 64px)) scale(calc(.96 + .04 * var(--sp, 1))); }
html.sd-js [data-sd="tilt"] { opacity: calc(.25 + .75 * var(--sp, 1)); transform: perspective(1400px) rotateX(calc((1 - var(--sp, 1)) * 26deg)) translateY(calc((1 - var(--sp, 1)) * 70px)) scale(calc(.93 + .07 * var(--sp, 1))); }
html.sd-js .sd-line > span { opacity: var(--sp, 1); transform: translateY(calc((1 - var(--sp, 1)) * 72%)); }
html.sd-js [data-sd="hero"] { transform: translateY(calc(var(--sp, 0) * -5%)) scale(calc(1 + .07 * var(--sp, 0))); }
[data-sd] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .streams path, .pods-a, .pods-b, .mini-fill, .call-pill .ring::after, .eq i, .progress i { animation: none !important; }
  .switch-track { height: auto; }
  .switch-sticky { position: static; height: auto; padding-block: 48px 0; }
}

/* ---------- Payment page (buy.html) ---------- */
.buy-page { background: var(--bg); color: var(--ink); }
.buy {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 420px); gap: clamp(40px, 6vw, 96px);
  align-items: start; padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 140px);
}
@media (max-width: 880px) { .buy { grid-template-columns: 1fr; } }
.buy-summary { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.buy-summary .eyebrow { color: var(--accent); font-size: 17px; font-weight: 600; margin: 0; }
.buy-summary h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; margin: 0; text-wrap: balance; }
.buy-lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); margin: 0; max-width: 34em; }
.buy-trust { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .buy-trust { grid-template-columns: 1fr; } }
.buy-trust li {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); min-width: 0;
}
.buy-trust svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.buy-trust b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.buy-trust span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.buy-card {
  position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3vw, 32px); border-radius: 26px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .04);
}
@media (max-width: 880px) { .buy-card { position: static; } }
.buy-product { display: flex; align-items: center; gap: 14px; }
.buy-product h2 { font-size: 21px; font-weight: 600; margin: 0; }
.buy-product p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.buy-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: linear-gradient(160deg, #2b2b30, #0c0c0e); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.buy-icon svg { width: 30px; height: 30px; fill: rgba(255, 255, 255, .45); }
.buy-icon svg .knob { fill: #fff; }
.buy-price { margin: 10px 0 0; font-size: 48px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.buy-price small { font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.buy-tax { margin: -6px 0 6px; font-size: 13px; color: var(--muted); }
.buy-label { font-size: 13px; font-weight: 600; }
.buy-label span { font-weight: 400; color: var(--muted); }
.buy-input {
  font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); width: 100%; min-width: 0;
}
.buy-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.buy-cta { margin-top: 4px; padding-block: 15px; font-size: 17px; }
.buy-small { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.buy-mor { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); }
.buy-mor svg { flex: none; margin-top: 2px; }
.buy-page .site-footer { border-top: 1px solid var(--line); }

/* ---------- Thank-you page (thanks.html) ---------- */
.thanks { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 44px); padding-block: clamp(64px, 9vw, 120px) clamp(72px, 10vw, 128px); }
.thanks > section { width: 100%; max-width: 720px; }
.thanks-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.thanks-hero h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.thanks-lede { margin: 0; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5; color: var(--muted); max-width: 32em; }
.thanks-mark svg { width: 76px; height: 76px; }
.thanks-mark circle { fill: none; stroke: #30d158; stroke-width: 2.5; }
.thanks-mark path { fill: none; stroke: #30d158; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.thanks-mark .mark-failed { display: none; }
.thanks-mark.is-failed .mark-ok { display: none; }
.thanks-mark.is-failed .mark-failed { display: inline; }
.thanks-mark.is-failed circle, .thanks-mark.is-failed path { stroke: #ff9f0a; }
@media (prefers-reduced-motion: no-preference) {
  .thanks-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: tb-draw .7s var(--ease, cubic-bezier(.22,1,.36,1)) .1s forwards; }
  .thanks-mark path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: tb-draw .45s var(--ease, cubic-bezier(.22,1,.36,1)) .65s forwards; }
  .thanks-hero h1, .thanks-lede { animation: tb-rise .7s var(--ease, cubic-bezier(.22,1,.36,1)) .25s both; }
  .key-card, .steps { animation: tb-rise .7s var(--ease, cubic-bezier(.22,1,.36,1)) .45s both; }
}
@keyframes tb-draw { to { stroke-dashoffset: 0; } }
@keyframes tb-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.key-card {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 30px); border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .25), 0 2px 6px rgba(0, 0, 0, .04);
}
.key-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.key-head h2 { margin: 0; font-size: 21px; font-weight: 600; }
.key-note { font-size: 13px; color: var(--muted); }
.key-card .key-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.key-card #license-key {
  flex: 1 1 320px; min-width: 0; resize: none; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: 500 15px/1.5 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; word-break: break-all;
}
.key-copy { flex: none; align-self: stretch; padding-inline: 22px; }
.key-help { margin: 0; font-size: 13px; color: var(--muted); }

.steps { display: flex; flex-direction: column; gap: 18px; }
.steps h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em; text-align: center; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .step-list { grid-template-columns: 1fr; } }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.step-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff; background: var(--accent); font-variant-numeric: tabular-nums;
}
.step > div > b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.step > div > span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
.step em { font-style: normal; font-weight: 600; color: var(--ink); }
.step-btn { margin-top: 12px; }
.thanks-help { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.thanks-help p { margin: 0; max-width: 34em; }

/* Claims that only become true at launch (see config.js) stay hidden until switched on. */
[data-needs="notarized"] { display: none !important; }
html.is-notarized [data-needs="notarized"] { display: revert !important; }
html.is-notarized .buy-trust [data-needs="notarized"] { display: flex !important; }

/* =====================================================================
   Content pages: features, guides, FAQ, compare (added 2026-11-28).
   Light/dark follows the shared tokens above. Calm, readable, Apple-like.
   ===================================================================== */

/* Header nav: keep a couple of links visible on phones. */
@media (max-width: 600px) {
  .nav nav { gap: 16px; }
  .nav nav a.nav-keep { display: inline; }
}
@media (max-width: 360px) { .nav nav a.nav-keep-wide { display: none; } }
.nav nav a[aria-current="page"] { color: #fff; }

.doc { padding-block: clamp(28px, 5vw, 56px) clamp(72px, 10vw, 120px); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li { display: inline-flex; gap: 6px; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }

.doc-head { max-width: 46rem; margin: clamp(22px, 4vw, 40px) 0 clamp(28px, 4vw, 44px); }
.doc-head .kicker { color: var(--accent); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.doc-head h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.025em; }
.doc-head .doc-lede { margin-top: 16px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); max-width: 36em; }
.doc-meta { margin-top: 14px; font-size: 13px; color: var(--muted); }

.doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1040px) {
  .doc-grid.has-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
  .toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; }
}
.toc { font-size: 14px; }
.toc p { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; }
.toc a:hover { color: var(--ink); text-decoration: none; border-left-color: var(--line); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 1039px) {
  .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
  .toc ol { border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
}

/* Readable long-form text */
.prose { max-width: 70ch; font-size: 18px; line-height: 1.62; min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(26px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -0.022em; margin-top: 2.4em; scroll-margin-top: 76px; }
.prose h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; margin-top: 1.8em; scroll-margin-top: 76px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.3em; }
.prose ul:not([class]) { list-style: disc; }
.prose ol:not([class]) { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose strong { font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a.btn { text-decoration: none; }
.prose kbd { font: 500 .85em var(--mono); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.path { font-weight: 600; }

/* Short answer box */
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 26px); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .25); }
.answer .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 8px; }
.answer p { font-size: 18px; line-height: 1.55; }

/* Good-to-know / limits */
.callout { border-radius: 16px; padding: 16px 20px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; }
.callout > b:first-child { display: block; margin-bottom: 6px; font-weight: 600; }
.callout ul { list-style: disc; padding-left: 1.2em; }
.callout li + li { margin-top: .35em; }

/* Numbered step cards */
.howto { list-style: none; margin: 0; padding: 0; counter-reset: howto; display: flex; flex-direction: column; gap: 10px; }
.howto > li { counter-increment: howto; position: relative; padding: 16px 18px 16px 62px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; line-height: 1.5; min-width: 0; }
.howto > li::before {
  content: counter(howto); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.howto > li + li { margin-top: 0; }
.howto small { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }

/* Screenshots */
.shot { margin: 1.6em 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shot img { width: 330px; max-width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot figcaption { font-size: 14px; color: var(--muted); text-align: center; max-width: 34em; }

/* Compact CTA card */
.cta-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; align-items: center; padding: clamp(20px, 3vw, 28px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -32px rgba(0, 0, 0, .3); }
.cta-card .buy-icon { width: 52px; height: 52px; }
.cta-card h3, .cta-card .cta-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.cta-card p { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.cta-card .cta-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cta-card .cta-actions .btn { padding: 12px 22px; font-size: 16px; }
.cta-card .cta-fine { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 0; }
.prose .cta-card { margin-top: 1.6em; }

/* Related guides and guide hub cards */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.card-grid > li { margin: 0; }
.link-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.prose a.link-card { text-decoration: none; }
.link-card:hover { text-decoration: none; border-color: var(--accent); }
.link-card b { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.link-card span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.link-card .more { margin-top: auto; padding-top: 6px; color: var(--link); font-size: 14px; }

/* FAQ inside content pages (reuses the global details/summary look) */
.qa details { padding: 18px 0; }
.qa summary { font-size: 18px; }
.qa details > div { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.qa details > div > * + * { margin-top: .7em; }
.qa h3 { margin-top: 2em; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.qa h3:first-child { margin-top: 0; }

/* Features page */
.feature-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.feature-hero .doc-head { margin: 0; }
.feature-hero .shot { margin: 0; }
@media (max-width: 860px) { .feature-hero { grid-template-columns: minmax(0, 1fr); } }
.jump { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 7px 14px; border-radius: 980px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; }
.jump a:hover { text-decoration: none; border-color: var(--accent); }
.feature-group { padding-top: clamp(36px, 5vw, 56px); margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.feature-group > h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; }
.feature-group > .group-lede { margin-top: 10px; color: var(--muted); font-size: 18px; line-height: 1.5; max-width: 40em; }
.feature-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 26px; align-items: start; }
@media (min-width: 960px) { .feature-layout.with-shot { grid-template-columns: minmax(0, 1fr) 330px; } .feature-layout.with-shot .shot { position: sticky; top: 80px; margin: 0; } }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.feature { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.feature h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.feature p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.feature .use { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.feature .use b { font-weight: 600; }
.feature a { text-decoration: underline; text-underline-offset: 2px; }
.wide-cta { margin-top: clamp(48px, 6vw, 72px); max-width: 760px; }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vs { border-collapse: collapse; width: 100%; min-width: 680px; font-size: 15px; line-height: 1.45; }
.vs th, .vs td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vs tbody tr:last-child th, .vs tbody tr:last-child td { border-bottom: 0; }
.vs thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-alt); }
.vs thead th.us { color: var(--accent); }
.vs tbody th { font-weight: 600; width: 22%; }
.vs td { color: var(--muted); }
.vs td.us { color: var(--ink); font-weight: 500; }
.table-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.prose .table-wrap { max-width: none; }
.compare-wide { max-width: 1000px; }

/* Rich footer */
.site-footer.rich { padding-block: clamp(36px, 5vw, 52px) 26px; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-cols .footer-about { grid-column: 1 / -1; } }
.footer-cols h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 10px; }
.footer-cols ul { display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--ink); }
.footer-about p { max-width: 26em; line-height: 1.5; }
.footer-base { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.5; }
.footer-cols a, .footer-base a { overflow-wrap: anywhere; }

/* Notice for the download button on content pages: floats so it's always seen. */
.notice.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30; margin: 0; width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .45); }

/* Guides strip on the home page FAQ */
.guide-strip { margin-top: 40px; }
.guide-strip h3 { font-size: 21px; letter-spacing: -0.015em; margin-bottom: 14px; }
.guide-strip .all { display: inline-block; margin-top: 14px; font-size: 15px; }
.vs.vs-narrow { min-width: 480px; }
.faq-page .faq-group { margin-top: 2em; }
.faq-page .faq-group:first-child { margin-top: 0; }
@media (max-width: 600px) { .guide-strip .card-grid { gap: 8px; } .guide-strip .link-card { padding: 14px 16px; } .guide-strip .link-card span { display: none; } }
