/* Kursoro website — hand-written, no build step, no external fonts or CDNs.
   Same identity as the desktop app (ui/styles.css): neutral graphite surfaces, hairline borders, small soft
   shadows, system fonts, ONE accent (signal orange) used only for primary actions and "active" highlights.
   Rules (see README.md → Design rules): opaque surfaces only (no glass/blur/glow/gradients; the hero's light effects are the one exception), whole-pixel type,
   400/600 weights (700 only for the hero title), 8px spacing grid, light theme by default + dark theme.
   Structure: tokens → base → layout → components → hero demo → sections → guide/legal → responsive → motion. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* light (default) — values shared with ui/styles.css */
  --bg: #ffffff;            /* page */
  --bg-alt: #f6f6f7;        /* alternate sections, footer (= app --bg) */
  --surface: #ffffff;       /* cards, panels */
  --surface-2: #f3f3f5;
  --surface-3: #e9e9ec;
  --well: #f3f3f5;          /* illustration wells inside cards */
  --canvas: #ececef;        /* the app's desk canvas */
  --line: #e2e2e6;          /* hairlines (decorative separators) */
  --line-2: #d4d4da;
  --line-3: #babac2;
  --control: #84848d;       /* boundaries of interactive controls: >= 3:1 on every surface */
  --text: #17171a;
  --text-2: #4a4a52;        /* body copy */
  --muted: #66666f;         /* secondary text: >= 4.5:1 on bg, bg-alt and surfaces */
  --dim: #9a9aa3;           /* decorative only, never for text */
  --accent: #cf4510;        /* white text on it: 4.65:1 */
  --accent-hover: #b83c0c;
  --accent-text: #ffffff;
  --accent-soft: #fdebe3;
  --accent-line: #f4b597;
  --green: #1f9d55;
  --amber: #c27c0e;
  --red: #d93036;
  --screen: #dcdce2;
  --screen-2: #cfcfd6;
  --bezel: #2a2b30;
  --stand: #c3c3ca;
  --desk: #e2e2e7;
  --key: #fbfbfc;
  --kbd-body: #d6d6dc;
  --shadow-1: 0 1px 2px rgba(20, 20, 30, 0.06);
  --shadow-2: 0 12px 32px -8px rgba(20, 20, 30, 0.18), 0 0 0 1px rgba(20, 20, 30, 0.05);
  --focus-ring: var(--accent);
  /* hero light effects (decorative, except the title gradient) */
  --fx-dot: rgba(20, 20, 30, 0.16);
  --fx-hot: #cf4510;
  --fx-glow: rgba(207, 69, 16, 0.14);
  --fx-glow-2: rgba(255, 150, 90, 0.16);
  --fx-rim: rgba(207, 69, 16, 0.55);
  --fx-title-a: #b83c0c;   /* gradient title line: >= 3:1 (large text) even where both glows peak */
  --fx-title-b: #c94b15;

  --radius-s: 8px;
  --radius: 10px;
  --radius-l: 14px;
  --radius-xl: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --maxw: 1200px;
  --maxw-wide: 1280px;
  --gutter: 20px;
  --nav-h: 64px;
  --section-y: 72px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161719;
    --bg-alt: #1b1c1f;
    --surface: #24252a;
    --surface-2: #2b2c31;
    --surface-3: #34353b;
    --well: #1e1f23;
    --canvas: #141518;
    --line: #2f3036;
    --line-2: #3b3c43;
    --line-3: #53545c;
    --control: #7c7c86;
    --text: #ededf0;
    --text-2: #c4c4cb;
    --muted: #a3a3ad;
    --dim: #6c6c76;
    --accent: #ff7038;
    --accent-hover: #ff8552;
    --accent-text: #1a0f0a;
    --accent-soft: #3a2419;
    --accent-line: #7a3a1f;
    --fx-dot: rgba(255, 255, 255, 0.13);
    --fx-hot: #ff7038;
    --fx-glow: rgba(255, 112, 56, 0.22);
    --fx-glow-2: rgba(255, 160, 110, 0.10);
    --fx-rim: rgba(255, 140, 90, 0.8);
    --fx-title-a: #ff7038;
    --fx-title-b: #ffb48c;
    --green: #3fbf74;
    --amber: #e3a33a;
    --red: #ff6464;
    --screen: #34363d;
    --screen-2: #2c2e34;
    --bezel: #0d0d0f;
    --stand: #2e2f35;
    --desk: #1d1e22;
    --key: #3a3b42;
    --kbd-body: #26272c;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
:where(p, li, td) a:not(.btn) {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3);
  text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s;
}
:where(p, li, td) a:not(.btn):hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; color: var(--text); }
kbd {
  display: inline-block; min-width: 22px; padding: 1px 6px; margin: 0 1px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
  background: var(--surface); color: var(--text-2);
  font: 600 13px/18px var(--font); text-align: center; white-space: nowrap; vertical-align: 1px;
}
code {
  font-family: var(--mono); font-size: .875em; padding: 1px 5px; border-radius: 5px;
  background: var(--surface-3); color: var(--text);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
svg use { pointer-events: none; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-s);
  background: var(--text); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: calc(var(--maxw-wide) + 2 * var(--gutter)); }
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head-left { text-align: left; margin-left: 0; }
.eyebrow { display: flex; align-items: center; justify-content: inherit; gap: 8px; margin-bottom: 12px; font: 600 15px/1.4 var(--font); color: var(--muted); }
.section-head .eyebrow { justify-content: center; }
.section-head-left .eyebrow, .split-copy .eyebrow { justify-content: flex-start; }
.h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.015em; }
.section-lead { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.foot-note { max-width: 720px; margin: 24px auto 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-s);
  font: 600 15px/1 var(--font); white-space: nowrap;
  transition: background-color .12s, border-color .12s, color .12s, transform .15s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--control); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 48px; padding: 0 22px; font-size: 16px; }
.btn:active { filter: brightness(.96); transform: translateY(1px); }
/* tertiary action: text + round play mark, no box */
.btn-text { padding: 0 10px; color: var(--text); background: transparent; }
.btn-text .play-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--control); transition: transform .3s var(--ease-out), border-color .15s; }
.btn-text .play-dot svg { width: 12px; height: 12px; margin-left: 1px; }
.btn-text:hover { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.btn-text:hover .play-dot { transform: scale(1.08); border-color: var(--text-2); }

/* small neutral label (Beta, Coming soon…) — the app's .tag */
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border: 1px solid var(--control); border-radius: 6px;
  font: 600 12px/1 var(--font); color: var(--text-2); white-space: nowrap; vertical-align: middle;
  letter-spacing: 0; text-transform: none;
}

/* square icon tile, as in the app's feature cards */
.icon-tile {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--surface-3); color: var(--text-2);
}
.icon-tile svg { width: 20px; height: 20px; }

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.card h3 { font-size: 18px; line-height: 1.3; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

.check-list { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.check-list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.check-list svg:where([href]) { color: inherit; }

/* status pill — the app's top-bar status */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.status-pill strong { color: var(--text); }
.sp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.sp-sep { width: 1px; height: 14px; background: var(--line-2); }

.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.dot.on { background: var(--green); }
.dot.wait { background: var(--amber); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
/* at the top of the home page the hero's light runs on behind the nav */
.nav:has(+ main > .hero):not(.scrolled):not(.open) { background: transparent; }
html.shot .nav { background: var(--bg); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font: 600 18px/1 var(--font-display); color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
/* the app icon is a dark tile: in the dark theme a hairline keeps its edge visible against the page */
@media (prefers-color-scheme: dark) { .brand img, .brand-mini img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); } }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.nav-links a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--radius-s);
  font-size: 15px; color: var(--text-2); transition: color .12s, background-color .12s;
}
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current] { color: var(--text); font-weight: 600; }
/* underline: grows from the centre on hover (neutral), stays on the section in view (accent = "active") */
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 1px;
  background: var(--line-3); transform: scaleX(0); transition: transform .35s var(--ease-out), background-color .2s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current]::after { transform: scaleX(1); background: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px;
  border-radius: var(--radius-s); border: 1px solid var(--control);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600;
}
.lang-btn:hover { background: var(--surface-2); }
.lang-btn svg { width: 16px; height: 16px; color: var(--text-2); }
.lang-btn .chev { width: 14px; height: 14px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 192px; padding: 6px; list-style: none;
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s var(--ease), visibility 0s .15s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s var(--ease), visibility 0s; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 40px; padding: 0 10px; border-radius: 6px; font-size: 15px; color: var(--text); text-align: left;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--surface-2); }
.lang-menu .code { font: 600 12px/1 var(--mono); color: var(--muted); text-transform: uppercase; }
.lang-menu button[aria-checked="true"] { font-weight: 600; }
.lang-menu button[aria-checked="true"] .code { color: var(--accent-hover); } /* small text: the darker (light) / lighter (dark) accent step keeps 4.5:1 on the hover row */

.menu-btn {
  display: none; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-s); border: 1px solid var(--control); background: var(--surface);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 16px; height: 2px; border-radius: 1px; background: var(--text); content: "";
  transition: transform .2s var(--ease), background-color .2s;
}
.menu-btn span { position: relative; }
.menu-btn span::before { position: absolute; top: -5px; }
.menu-btn span::after { position: absolute; top: 5px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 var(--section-y); overflow: hidden; overflow: clip; } /* clip, not hidden: a scroll container would stall the desk's view() timeline */
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title {
  margin-top: 24px; max-width: 920px;
  font-size: 40px; line-height: 1.06; font-weight: 700; letter-spacing: -0.025em;
}
.hero-title > span { display: inline-block; }
.hero-title-2 { color: var(--muted); }
.hero-lead { max-width: 640px; margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }
.hero .container-wide { margin-top: 56px; }

/* ---------- Hero light effects ----------
   The one place on the site with light, glow and gradients (everything else stays opaque and flat).
   Decorative layers behind the copy: a dot grid that fades out from the title, the same grid in the
   accent lit around the pointer (main.js sets --mx / --my: it is the product's own cursor, after all),
   two slow aurora glows, and a horizon arc the desk rises from. Transform/opacity animations only. */
.hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--nav-h)); padding-top: calc(56px + var(--nav-h)); }
.hero > .container { position: relative; z-index: 1; }
.hero-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-fx i { position: absolute; display: block; }
.fx-aura { border-radius: 50%; will-change: transform; }
.fx-aura.a1 {
  left: 50%; top: -320px; width: 1200px; height: 760px; margin-left: -600px;
  background: radial-gradient(closest-side, var(--fx-glow), transparent);
  animation: fx-drift-a 16s ease-in-out infinite alternate;
}
.fx-aura.a2 {
  left: 50%; top: -120px; width: 760px; height: 520px; margin-left: -80px;
  background: radial-gradient(closest-side, var(--fx-glow-2), transparent);
  animation: fx-drift-b 21s ease-in-out infinite alternate;
}
@keyframes fx-drift-a { to { transform: translate3d(-90px, 40px, 0) scale(1.08); } }
@keyframes fx-drift-b { to { transform: translate3d(-260px, 70px, 0) scale(.92); } }
.fx-grid {
  left: 0; right: 0; top: 0; height: 900px;
  background-image: radial-gradient(circle, var(--fx-dot) 1.1px, transparent 1.5px);
  background-size: 28px 28px; background-position: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 52% 60% at 50% 30%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 60% at 50% 30%, #000 20%, transparent 100%);
}
.fx-grid-hot {
  --mx: 50%; --my: 30%;
  background-image: radial-gradient(circle, var(--fx-hot) 1.6px, transparent 2px);
  -webkit-mask-image: radial-gradient(circle 220px at var(--mx) var(--my), #000, transparent);
  mask-image: radial-gradient(circle 220px at var(--mx) var(--my), #000, transparent);
  opacity: 0; transition: opacity .5s var(--ease);
}
.hero-fx.lit .fx-grid-hot { opacity: .9; }

/* the title's second line in the accent, as a gradient */
.hero-title-2 {
  background: linear-gradient(100deg, var(--fx-title-a) 10%, var(--fx-title-b) 90%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em; /* room for descenders inside the clip */
}
@media (forced-colors: active) { .hero-title-2 { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; } }

/* the desk demo: rises from a glowing horizon, a light runs along its top edge */
.hero-stage { position: relative; }
.hero-stage::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -28px;
  width: max(1600px, 150%); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  border-top: 1px solid var(--fx-rim);
  background: radial-gradient(ellipse 50% 22% at 50% 0, var(--fx-glow), transparent);
  box-shadow: 0 -24px 120px -40px var(--fx-glow);
  -webkit-mask-image: linear-gradient(#000 0, transparent 22%);
  mask-image: linear-gradient(#000 0, transparent 22%);
  pointer-events: none;
}
.stage-3d { position: relative; transform-origin: 50% 0; }
.stage-3d .stage { box-shadow: var(--shadow-1), 0 40px 120px -40px var(--fx-glow); }
.stage-3d::after {
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 28%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--fx-hot), transparent);
  opacity: 0; animation: fx-sweep 7s var(--ease) 1.6s infinite; pointer-events: none;
}
@keyframes fx-sweep {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  45% { transform: translateX(257%); opacity: 1; }
  55%, 100% { transform: translateX(257%); opacity: 0; }
}

.platforms { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: 40px; font-size: 15px; color: var(--muted); }
.platforms li { display: inline-flex; align-items: center; gap: 8px; }
.platforms svg { width: 18px; height: 18px; }

/* ---------- Hero demo (1200×620 scene, scaled by demo.js through --s) ---------- */
.stage {
  --s: 1;
  position: relative; width: 100%;
  aspect-ratio: 1200 / 620;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background-color: var(--canvas);
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  contain: layout paint;
}
.scene {
  position: absolute; left: 0; top: 0; width: 1200px; height: 620px;
  transform: scale(var(--s)); transform-origin: 0 0;
  font-family: var(--font); line-height: 1.4; text-align: left;
}
.scene * { position: absolute; }
.scene .flow * { position: static; }

.desk { left: 0; right: 0; top: 478px; height: 142px; background: var(--desk); border-top: 1px solid var(--line-2); }

/* monitors */
.monitor {
  top: 50px; width: 400px; height: 258px; padding: 8px;
  border-radius: 12px; background: var(--bezel);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 16px 32px -16px rgba(0, 0, 0, .35);
  outline: 3px solid transparent; outline-offset: 4px;
  transition: outline-color .25s;
}
.monitor.m1 { left: 50px; }
.monitor.m2 { left: 466px; }
.monitor .neck { left: 186px; top: 258px; width: 28px; height: 160px; background: var(--stand); }
.monitor .foot { left: 135px; top: 414px; width: 130px; height: 12px; border-radius: 6px 6px 3px 3px; background: var(--stand); }
.screen { overflow: hidden; border-radius: 4px; }
.monitor .screen { left: 8px; top: 8px; width: 384px; height: 242px; }
.wall { inset: 0; background: var(--screen); }
.m2 .wall { background: var(--screen-2); }
.monitor.active, .laptop.active .lid { outline-color: var(--accent); }

.dev-badge {
  left: 50%; top: -38px; translate: -50% 0;
  display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 6px; background: var(--accent); color: var(--accent-text);
  font: 600 12px/1 var(--font); white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--ease);
}
.dev-badge * { position: static; }
.dev-badge svg { width: 12px; height: 12px; }
.monitor.active > .dev-badge, .laptop.active > .dev-badge { opacity: 1; transform: none; }
.laptop > .dev-badge { top: -42px; }

.taskbar { left: 0; right: 0; bottom: 0; height: 18px; background: var(--surface); border-top: 1px solid var(--line); }
.taskbar i { top: 5px; width: 8px; height: 8px; border-radius: 2px; background: var(--line-3); }
.taskbar i:nth-child(1) { left: 166px; } .taskbar i:nth-child(2) { left: 180px; } .taskbar i:nth-child(3) { left: 194px; } .taskbar i:nth-child(4) { left: 208px; }
.taskbar b { right: 8px; top: 5px; width: 24px; height: 8px; border-radius: 2px; background: var(--line-2); }

.appwin {
  overflow: hidden; border-radius: 6px;
  background: var(--surface); color: var(--text-2);
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px -10px rgba(0, 0, 0, .3);
}
.appwin .bar { left: 0; right: 0; top: 0; height: 18px; padding-left: 8px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 8px; line-height: 18px; font-weight: 600; color: var(--muted); }
.appwin .bar .ctl { right: 6px; top: 6px; width: 30px; height: 6px; background: linear-gradient(90deg, var(--line-3) 0 6px, transparent 6px 12px, var(--line-3) 12px 18px, transparent 18px 24px, var(--line-3) 24px 30px); }
.notes-pc { left: 26px; top: 22px; width: 250px; height: 170px; }
.notes-pc .body { left: 12px; right: 12px; top: 28px; font-size: 9.5px; line-height: 15px; }
.notes-pc .h { margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--text); }
.notes-pc .ln { display: block; height: 5px; margin: 7px 0; border-radius: 3px; background: var(--surface-3); }
.sel-line { position: relative !important; display: inline-block; white-space: nowrap; color: var(--text); }
.sel-line .sel { position: absolute !important; left: -2px; top: 0; bottom: 0; width: 0; border-radius: 2px; background: color-mix(in srgb, var(--accent) 24%, transparent); }
.copied {
  left: 140px; top: 198px; display: flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px;
  border-radius: 6px; background: var(--text); color: var(--bg); font-size: 9px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--ease);
}
.copied.on { opacity: 1; transform: none; }
.copied svg { position: static; width: 10px; height: 10px; color: var(--green); }

.browser { left: 40px; top: 24px; width: 300px; height: 180px; }
.browser .url { left: 54px; top: 4px; width: 170px; height: 10px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); }
.browser .hero-b { left: 12px; top: 30px; width: 276px; height: 62px; border-radius: 6px; background: var(--surface-3); }
.browser .blk { top: 102px; width: 84px; height: 64px; border-radius: 6px; background: var(--surface-2); }
.browser .blk:nth-child(4) { left: 12px; } .browser .blk:nth-child(5) { left: 108px; } .browser .blk:nth-child(6) { left: 204px; }

/* the seam: where the cursor crosses (app: solid accent bar) */
.seam { top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--accent); opacity: 0; transition: opacity .25s; }
.seam.on { opacity: 1; }
.m2 > .seam { right: 2px; }
.lid > .seam { left: 1px; top: 8px; bottom: 8px; z-index: 4; }

/* laptop */
.laptop { left: 896px; top: 288px; width: 290px; height: 190px; }
.lid {
  left: 10px; top: 0; width: 270px; height: 178px; padding: 7px;
  border-radius: 10px 10px 3px 3px; background: var(--bezel);
  outline: 3px solid transparent; outline-offset: 4px; transition: outline-color .25s;
}
.lid .screen { left: 7px; top: 7px; width: 256px; height: 164px; }
.lid .notch { left: 118px; top: 0; width: 34px; height: 6px; border-radius: 0 0 4px 4px; background: var(--bezel); z-index: 3; }
.base { left: 0; top: 178px; width: 290px; height: 12px; border-radius: 2px 2px 10px 10px; background: var(--stand); box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .35); }
.base::before { content: ""; position: absolute; left: 120px; top: 0; width: 50px; height: 4px; border-radius: 0 0 5px 5px; background: var(--line-3); }
.mac .wall { background: var(--screen); }
.menubar { left: 0; right: 0; top: 0; height: 10px; background: var(--surface-2); }
.menubar i { top: 3px; height: 4px; border-radius: 2px; background: var(--line-3); }
.menubar i:nth-child(1) { left: 6px; width: 5px; } .menubar i:nth-child(2) { left: 16px; width: 16px; } .menubar i:nth-child(3) { left: 36px; width: 12px; }
.menubar img { right: 34px; top: 1px; width: 8px; height: 8px; }
.menubar b { right: 6px; top: 3px; width: 22px; height: 4px; border-radius: 2px; background: var(--line-3); }
.notes-mac { left: 16px; top: 20px; width: 224px; height: 132px; }
.notes-mac .bar { height: 14px; padding: 0; text-align: center; font-size: 6.5px; line-height: 14px; }
.notes-mac .dots { left: 6px; top: 4.5px; width: 24px; height: 5px; background:
  radial-gradient(circle at 2.5px 2.5px, #ff5f57 2.4px, transparent 2.6px),
  radial-gradient(circle at 10.5px 2.5px, #febc2e 2.4px, transparent 2.6px),
  radial-gradient(circle at 18.5px 2.5px, #28c840 2.4px, transparent 2.6px); }
.notes-mac .body { left: 9px; right: 9px; top: 20px; font-size: 8px; line-height: 12px; color: var(--text); }
.notes-mac .t { margin-bottom: 3px; font-size: 9px; font-weight: 600; }
.typed { white-space: pre-wrap; word-break: break-word; }
.caret { display: inline-block; width: 1px; height: 10px; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
.pasted { display: block; margin-top: 4px; padding: 1px 3px; border-radius: 3px; opacity: 0; transition: background-color 1s; }
.pasted.on { opacity: 1; background: var(--accent-soft); }
.pasted.on.settle { background: transparent; }
@keyframes blink { 50% { opacity: 0; } }

/* keyboard + mouse (flat, top view) */
.keyboard { left: 360px; top: 502px; width: 440px; height: 96px; padding: 8px; border-radius: 10px; background: var(--kbd-body); box-shadow: var(--shadow-1); }
.keys { left: 8px; top: 8px; right: 8px; bottom: 8px; display: grid !important; grid-template-columns: repeat(15, 1fr); grid-auto-rows: 1fr; gap: 3px; }
.keys span { position: static !important; border-radius: 3px; background: var(--key); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); transition: background-color .3s; }
.keys span.wide { grid-column: span 2; }
.keys span.space { grid-column: span 6; }
.keys span.hit { background: var(--accent); transition: none; }
.mouse { left: 846px; top: 510px; width: 44px; height: 66px; border-radius: 22px 22px 20px 20px; background: var(--key); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.mouse::before { content: ""; position: absolute; left: 21px; top: 8px; width: 2px; height: 14px; border-radius: 1px; background: var(--line-3); transition: background-color .2s; }
.mouse.moving::before { background: var(--accent); }

/* status pill (the app's top-bar status) + shortcut toast */
.hud {
  left: 24px; bottom: 20px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-1);
  font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s;
}
.hud * { position: static; }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; transition: background-color .25s; }
.hud.mac { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }
.hud.mac .hud-dot { background: var(--accent); }
.keytoast {
  left: 580px; top: 448px; display: flex; align-items: center; gap: 6px; padding: 7px 12px;
  border-radius: var(--radius); background: var(--text); color: var(--bg); box-shadow: var(--shadow-2);
  font-size: 12px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 6px); transition: opacity .2s, transform .25s var(--ease);
}
.keytoast.on { opacity: 1; transform: translate(-50%, 0); }
.keytoast * { position: static; }
.keytoast kbd { min-width: 0; padding: 0 5px; font-size: 11px; line-height: 16px; background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.keytoast .arrow { opacity: .7; }
.cursor { left: 0; top: 0; width: 22px; height: 30px; z-index: 10; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: opacity .2s; }
.cursor svg { width: 22px; height: 30px; }
.ripple { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.ripple.go { animation: ripple .5s var(--ease); }
@keyframes ripple { from { opacity: .8; transform: scale(.3); } to { opacity: 0; transform: scale(1.3); } }

/* step captions under the demo */
.stage-caption { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.stage-caption .chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
  font-size: 14px; color: var(--muted); transition: color .2s, background-color .2s, border-color .2s;
}
.chip-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); font: 600 12px/1 var(--font); color: var(--text-2); transition: background-color .2s, color .2s; }
.stage-caption .chip.on { color: var(--text); background: var(--accent-soft); border-color: var(--accent-line); }
.stage-caption .chip.on .chip-n { background: var(--accent); color: var(--accent-text); }

/* ---------- Product illustrations (shared) ---------- */
/* mini desk: the app's arrangement canvas */
.mini-desk {
  position: relative; width: 280px; height: 132px; max-width: 100%;
  border-radius: var(--radius); border: 1px solid var(--line);
  background-color: var(--canvas);
  background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.2px);
  background-size: 14px 14px; background-position: 7px 7px;
}
.md { position: absolute; padding: 3px; border-radius: 6px; background: var(--bezel); transition: background-color .3s; }
.md span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 3px; background: var(--screen); font: 600 11px/1 var(--font); color: var(--text-2); transition: background-color .3s; }
.md-a { left: 14px; top: 34px; width: 92px; height: 60px; }
.md-b { left: 110px; top: 38px; width: 80px; height: 52px; }
.md-b span { background: var(--screen-2); }
.md-c { left: 194px; top: 50px; width: 72px; height: 46px; background: var(--accent); }
.md-c span { background: var(--accent-soft); color: var(--text); }
.md-seam { position: absolute; left: 190px; top: 54px; width: 4px; height: 32px; border-radius: 2px; background: var(--accent); }
.mini-desk .md-c { animation: md-snap 6s var(--ease) infinite; }
.mini-desk .md-seam { animation: md-seam 6s var(--ease) infinite; }
@keyframes md-snap {
  0%, 8% { transform: translate(18px, 14px); background: var(--bezel); }
  30% { transform: none; background: var(--bezel); }
  36%, 100% { transform: none; background: var(--accent); }
}
@keyframes md-seam { 0%, 32% { opacity: 0; } 38%, 100% { opacity: 1; } }

/* scenes — the app's pill strip above the desk (ui/scenes.css) */
.sc-win { width: 400px; max-width: calc(100% - 32px); padding: 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-2); }
.sc-strip { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; overflow: hidden; }
.sc-strip small { margin-right: 2px; font: 600 11px/1 var(--font); color: var(--muted); }
.sc-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--surface); font: 600 12px/1 var(--font); color: var(--text); white-space: nowrap; }
.sc-pill svg { width: 14px; height: 14px; color: var(--text-2); }
.sc-pill.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.sc-pill.on svg { color: var(--accent-text); }
.sc-pill.off { border-style: dashed; background: var(--surface-2); color: var(--muted); }
.sc-pill.off svg { color: var(--muted); }
.sc-desk { position: relative; height: 132px; border: 1px solid var(--line); border-radius: 9px; background-color: var(--canvas); background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.2px); background-size: 14px 14px; }
.sc-mon { position: absolute; top: 30px; padding: 3px; border-radius: 6px; background: var(--bezel); }
.sc-mon span { display: grid; place-items: center; width: 100%; height: 100%; padding: 0 6px; border-radius: 3px; background: var(--screen); font: 600 11px/1.25 var(--font); color: var(--text-2); text-align: center; }
.sc-pc { left: calc(50% - 130px); width: 124px; height: 76px; }
.sc-ext { left: calc(50% - 2px); top: 40px; width: 100px; height: 64px; background: var(--accent); }
.sc-ext span { background: var(--accent-soft); color: var(--text); }
.sc-seam { position: absolute; left: calc(50% - 4px); top: 46px; width: 4px; height: 44px; border-radius: 2px; background: var(--accent); }
.viz-scenes .sc-pill.on { animation: sc-on 6s var(--ease) infinite; }
.viz-scenes .sc-ext { animation: sc-ext 6s var(--ease) infinite; }
.viz-scenes .sc-seam { animation: sc-seam 6s var(--ease) infinite; }
@keyframes sc-on { 0%, 14% { background: var(--surface); border-color: var(--line-2); color: var(--text); } 20%, 100% { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } }
@keyframes sc-ext { 0%, 18% { opacity: 0; transform: translateX(14px); } 30%, 100% { opacity: 1; transform: none; } }
@keyframes sc-seam { 0%, 28% { opacity: 0; } 34%, 100% { opacity: 1; } }

/* pairing code digits — the app's .code .digit */
.digits { display: flex; align-items: center; justify-content: center; gap: 4px; font: 600 22px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.digits span { display: grid; place-items: center; width: 30px; height: 40px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--surface); }
.digits i { width: 8px; }

/* device rows — the app's sidebar */
.dl { display: grid; gap: 2px; width: 248px; max-width: 100%; }
.dl-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: var(--radius-s); }
.dl-row.on { background: var(--accent-soft); }
.dl-row.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--accent); }
.dl-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--radius-s); background: var(--surface-3); color: var(--text-2); }
.dl-ico svg { width: 18px; height: 18px; }
.dl-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dl-txt b { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.dl-txt small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.radar { position: relative; flex: none; width: 10px; height: 10px; margin-right: 6px; }
.radar::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--amber); }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--amber); animation: radar 2.4s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: 1.2s; }
@keyframes radar { from { transform: scale(.5); opacity: 1; } to { transform: scale(2); opacity: 0; } }

/* small device monitors (edge / drag illustrations) */
.ve-mon { position: absolute; top: 44px; width: 132px; height: 86px; padding: 4px; border-radius: 7px; background: var(--bezel); }
.ve-scr { position: relative; width: 100%; height: 100%; border-radius: 3px; background: var(--screen); transition: background-color .3s; }
.ve-a { left: calc(50% - 138px); }
.ve-b { left: calc(50% + 6px); }
.ve-seam { position: absolute; left: calc(50% - 2px); top: 54px; width: 4px; height: 66px; border-radius: 2px; background: var(--accent); }

/* ---------- How it works ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; }
.step .visual { display: grid; place-items: center; height: 176px; margin-bottom: 24px; border-radius: var(--radius); background: var(--well); }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 8px; background: var(--surface-3); font: 600 14px/1 var(--font); color: var(--text); }
.v-install { display: flex; align-items: center; gap: 20px; }
.v-install .app-ico { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow-2); }
.file-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface); font: 600 13px/1 var(--mono); color: var(--text-2); }
.file-chip svg { width: 16px; height: 16px; }
.v-pair { display: grid; grid-template-columns: auto auto; gap: 8px 10px; justify-items: center; align-items: center; }
.mini-dialog { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.mini-dialog small { font-size: 12px; color: var(--muted); }
.code-s { font: 600 20px/1 var(--mono); letter-spacing: .04em; color: var(--text); font-variant-numeric: tabular-nums; }
.v-pair .ok { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.v-pair .ok svg { width: 16px; height: 16px; color: var(--green); }

/* ---------- Features (bento, 6-column grid) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.b-2 { grid-column: span 2; } .b-3 { grid-column: span 3; } .b-4 { grid-column: span 4; } .b-6 { grid-column: span 6; }
.b-viz { position: relative; display: grid; place-items: center; height: 176px; margin-bottom: 24px; border-radius: var(--radius); background: var(--well); overflow: hidden; }
.b-3 .icon-tile { margin-bottom: 16px; }
.b-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.b-split .b-viz { height: auto; min-height: 300px; margin: 0; padding: 24px 0; align-self: stretch; }

.viz-edge .ve-b .ve-scr { animation: ve-active 5s var(--ease) infinite; }
.ve-cur { position: absolute; left: calc(50% - 70px); top: 74px; width: 18px; height: 25px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); animation: ve-cross 5s var(--ease) infinite; }
@keyframes ve-cross { 0%, 10% { transform: translate(0, 0); } 45%, 100% { transform: translate(130px, -8px); } }
@keyframes ve-active { 0%, 30% { background: var(--screen); } 40%, 100% { background: var(--accent-soft); } }

.viz-devices .dl { padding: 8px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); border: 1px solid var(--line); }

.tray { width: 272px; max-width: calc(100% - 32px); padding: 10px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-2); }
.tray-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 8px; }
.tray-head img { border-radius: 5px; }
.tray-head b { font: 600 14px/1 var(--font-display); }
.tray-status { display: flex; align-items: center; gap: 8px; height: 30px; margin-bottom: 6px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--accent-line); background: var(--accent-soft); font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; }
.tray-status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tray-rows .dl-row { min-height: 40px; }
.tray-rows .dl-row.on { background: transparent; }
.tray-rows .dl-row.on::before { display: none; }
.tray-toggles { display: grid; gap: 2px; margin: 6px 0; padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tg { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.sw { position: relative; width: 30px; height: 18px; border-radius: 9px; background: var(--accent); }
.sw::after { content: ""; position: absolute; top: 2px; left: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.tray-hist { display: grid; gap: 2px; }
.tray-hist small { padding: 4px 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.hi { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 8px; border-radius: 7px; font-size: 13px; color: var(--text); }
.hi-src { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.hi-src svg { width: 14px; height: 14px; }
.hi-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-hist .hi:first-of-type { background: var(--surface-2); }
.hist { display: grid; gap: 4px; width: 236px; max-width: calc(100% - 32px); padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.hi-img { flex: none; width: 30px; height: 20px; border-radius: 3px; background: var(--screen-2); }

.viz-clip { display: flex; align-items: center; justify-content: center; gap: 12px; }
.doc { display: flex; flex-direction: column; gap: 6px; width: 110px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); box-shadow: var(--shadow-1); }
.doc small { font-size: 11px; font-weight: 600; color: var(--muted); }
.doc .hl { font-size: 12px; font-weight: 600; color: var(--text); padding: 1px 3px; margin: 0 -3px; border-radius: 3px; background: var(--accent-soft); white-space: nowrap; }
.doc.b .hl { background: transparent; }
.doc .shot { display: block; height: 30px; border-radius: 4px; background: var(--screen); }
.viz-clip .arrow { width: 20px; height: 20px; color: var(--muted); }

.viz-drag .file { position: absolute; left: calc(50% - 112px); top: 70px; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; animation: drag-file 5s var(--ease) infinite; }
.viz-drag .file svg { width: 14px; height: 14px; color: var(--accent); }
.viz-drag .folder { position: absolute; right: 18px; bottom: 14px; width: 22px; height: 16px; border-radius: 2px 3px 3px 3px; background: var(--line-3); }
.viz-drag .folder::before { content: ""; position: absolute; left: 0; top: -3px; width: 10px; height: 4px; border-radius: 2px 2px 0 0; background: var(--line-3); }
@keyframes drag-file { 0%, 10% { transform: translate(0, 0); opacity: 1; } 55% { transform: translate(150px, 22px); opacity: 1; } 70%, 85% { transform: translate(150px, 22px) scale(.8); opacity: 0; } 100% { transform: translate(0, 0); opacity: 0; } }

.viz-wired { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; }
.w-dev { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); color: var(--text-2); }
.w-dev svg { width: 24px; height: 24px; }
.w-links { display: grid; gap: 18px; width: 140px; }
.w-link { display: grid; gap: 4px; text-align: center; }
.w-link i { display: block; height: 2px; border-radius: 1px; }
.w-link small { font-size: 11px; line-height: 1.3; color: var(--muted); }
.w-wifi i { background: repeating-linear-gradient(90deg, var(--line-3) 0 4px, transparent 4px 8px); }
.w-cable i { height: 3px; background: var(--accent); }
.w-cable small { color: var(--text); font-weight: 600; }

.viz-code { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.viz-code .lock { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--mono); color: var(--muted); }
.viz-code .lock svg { width: 14px; height: 14px; color: var(--green); }

/* Two monitors and a laptop, bottoms aligned, the row centred in the well. */
.viz-lock { display: grid; grid-auto-flow: column; place-content: center; align-items: end; gap: 14px; }
.lk-scr { position: relative; display: grid; place-items: center; width: 72px; height: 50px; margin-bottom: 10px; padding: 3px; border-radius: 6px; background: var(--bezel); }
.lk-scr::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 18px; height: 10px; margin-left: -9px; border-radius: 0 0 2px 2px; background: var(--bezel); opacity: 0.55; }
.lk-scr svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--screen); color: var(--text-2); box-sizing: content-box; }
.lk-scr:first-child svg { background: var(--accent-soft); color: var(--accent); }
.lk-lap { width: 64px; height: 44px; margin-bottom: 5px; border-radius: 6px 6px 2px 2px; }
.lk-lap::after { bottom: -5px; width: 84px; height: 5px; margin-left: -42px; border-radius: 0 0 4px 4px; opacity: 1; }

.viz-keys { display: flex; align-items: center; justify-content: center; gap: 10px; }
.viz-keys kbd { min-width: 52px; height: 48px; padding: 0 12px; font-size: 17px; line-height: 44px; border-radius: 9px; border-bottom-width: 3px; color: var(--text); }
.viz-keys .swap { width: 22px; height: 22px; color: var(--muted); }
.viz-keys .plus { font-weight: 600; color: var(--muted); }

.more h3 { font-size: 20px; }
.more-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.more-list li { padding-top: 16px; border-top: 1px solid var(--line); }
.more-list h4 { font-size: 15px; line-height: 1.35; }
.more-list p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.langs-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.langs-row li { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; background: var(--surface-3); font-size: 14px; color: var(--text-2); }

/* ---------- Split sections (display, security) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split-copy .section-lead { max-width: 600px; }
.feature-list { list-style: none; display: grid; gap: 24px; margin-top: 32px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list h3 { font-size: 17px; line-height: 1.35; }
.feature-list p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 32px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius); background: var(--surface); font-size: 14px; line-height: 1.55; color: var(--text-2); }
.note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--amber); }
.panel { position: sticky; top: calc(var(--nav-h) + 32px); padding: 24px; }

.vd { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding: 28px 16px 20px; border-radius: var(--radius); background: var(--canvas); }
.vd-scr { position: relative; overflow: hidden; border-radius: 4px; background: var(--screen); }
.vd-pc { display: flex; flex-direction: column; align-items: center; }
.vd-pc .vd-scr { width: 168px; height: 104px; border: 5px solid var(--bezel); border-radius: 8px; }
.vd-stand { display: block; width: 14px; height: 26px; background: var(--stand); }
.vd-stand::after { content: ""; display: block; width: 64px; height: 6px; margin: 26px 0 0 -25px; border-radius: 3px; background: var(--stand); }
.vd-pc { padding-bottom: 6px; }
.vd-mac { display: flex; flex-direction: column; align-items: center; }
.vd-mac .vd-scr { width: 140px; height: 90px; border: 5px solid var(--bezel); border-bottom-width: 6px; border-radius: 8px 8px 2px 2px; }
.vd-base { display: block; width: 164px; height: 7px; border-radius: 1px 1px 6px 6px; background: var(--stand); }
.vd-win { position: absolute; top: 16px; height: 52px; border-radius: 4px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 4px 10px -4px rgba(0, 0, 0, .25); }
.vd-pc .vd-win { left: 96px; width: 120px; }
.vd-mac .vd-win { left: -46px; width: 120px; }
.vd-mac .vd-scr { box-shadow: inset 0 0 0 2px var(--accent); }
.vd-rev .vd-mac .vd-scr { box-shadow: none; }
.vd-rev .vd-pc .vd-scr { box-shadow: inset 0 0 0 2px var(--accent); }
.vd-rev .vd-pc .vd-win { left: -50px; }
.vd-rev .vd-mac .vd-win { left: 76px; }
.vd-link { position: relative; align-self: center; width: 40px; height: 2px; margin-bottom: 30px; border-radius: 1px; background: var(--line-3); overflow: hidden; }
.vd-link i { position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: var(--accent); animation: link 1.4s var(--ease) infinite; }
@keyframes link { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* the app's "Use <Mac> as a display" dialog: two choice cards, outcome line, quality, Start */
.vd-dlg-t { margin-bottom: 16px; font: 600 16px/1.35 var(--font-display); color: var(--text); text-align: center; }
.vd-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.vd-modes > span { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface); }
.vd-modes b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text); }
.vd-modes i { font-size: 13px; font-style: normal; line-height: 1.45; color: var(--muted); }
.vd-modes .on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.vd-rec { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--accent); font: 600 11px/1 var(--font); font-style: normal; color: var(--accent-text); white-space: nowrap; }
.vd-out { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.vd-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.vd-q { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vd-q small { font-size: 12px; color: var(--muted); }
.presets { display: inline-flex; flex-wrap: wrap; padding: 2px; border-radius: var(--radius-s); background: var(--surface-3); }
.presets span { padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.presets .on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--line-2); }
.vd-go { flex: none; pointer-events: none; }

.split-rev .pair-panel { order: -1; }
.pair-visual { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 24px; }
.pv-dev { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-3); color: var(--text-2); }
.pv-dev svg { width: 24px; height: 24px; }
.pv-link { width: 32px; height: 2px; border-radius: 1px; background: var(--green); }
.pv-lock { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--green); }
.pv-lock svg { width: 16px; height: 16px; }
.pair-codes { display: grid; gap: 16px; }
.pair-codes > div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: var(--radius); background: var(--well); }
.pair-codes small { font-size: 13px; font-weight: 600; color: var(--muted); }
.pair-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: center; }
.pair-note svg { flex: none; width: 18px; height: 18px; color: var(--green); }
.pair-panel .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.pair-panel .tag { font-family: var(--mono); font-weight: 400; }

/* ---------- Compare ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-1); }
table.compare { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--muted); background: var(--surface-2); }
.compare tbody th { text-align: left; font-size: 15px; font-weight: 600; color: var(--text); }
.compare tbody th small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tr.us > * { background: var(--accent-soft); }
.compare tr.us th { box-shadow: inset 3px 0 0 var(--accent); }
.brand-mini { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 16px; }
.brand-mini img { width: 24px; height: 24px; border-radius: 6px; }
.compare td > span { display: inline-flex; vertical-align: middle; }
.compare svg { width: 20px; height: 20px; }
.yes { color: var(--text); }
.us .yes { color: var(--accent); }
.no { color: var(--muted); }
.na { color: var(--muted); }
.cell-note { display: block !important; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--muted); }

/* ---------- Pricing (Free / Pro — docs/licensing.md) ----------
   Two cards side by side; the same rows in the same order, so they read as a comparison. Pro is the "active"
   card (accent ring + the Recommended-style ribbon). On phones the cards stack with Pro first (see Responsive). */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; }
.plan-pro { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-1); }
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-name { font-size: 24px !important; line-height: 1.2 !important; letter-spacing: -0.01em; }
.plan-logo { width: 40px; height: 40px; border-radius: 10px; }
.card .plan-desc { min-height: 3.2em; color: var(--text-2); }
.card .plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 24px; }
.plan-price .amount { font: 600 48px/1 var(--font-display); letter-spacing: -0.025em; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price .was { font: 600 20px/1 var(--font-display); color: var(--muted); white-space: nowrap; text-decoration: line-through; text-decoration-thickness: 2px; }
.plan-price .per { font-size: 15px; color: var(--muted); }
.card .plan-sub { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.plan-cta { width: 100%; margin-top: 24px; }
/* "Try Pro free for 7 days from the app" under the Pro button */
.plan-trial { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); text-align: center; }
.plan-cta .cta-arrow { transition: transform .3s var(--ease-out); }
.plan-cta:hover .cta-arrow { transform: translateX(3px); }
.plan-list { list-style: none; display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.plan-list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.plan-list li.off, .plan-list li.off svg { color: var(--muted); }
.plan-ribbon {
  position: absolute; top: 0; right: 24px; transform: translateY(-50%);
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px;
  background: var(--accent); color: var(--accent-text); font: 600 13px/1 var(--font); white-space: nowrap; box-shadow: var(--shadow-1);
}
.plan-fine { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; max-width: 960px; margin: 40px auto 0; }
.plan-fine li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.plan-fine svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.plan-fine + .foot-note { margin-top: 16px; }
/* "Pro" chip next to the title of a Pro-only feature (a label, like the app's PRO chips) */
.tag-pro { margin-left: 4px; vertical-align: 2px; }
/* The Kursoro Pro app icon as an emblem where Pro itself is introduced (virtual display's
   Free/Pro line, the guide's "Free and Pro" heading). Decorative: the text next to it says Pro. */
.pro-mark { display: inline-block; flex: none; width: 1.2em; height: 1.2em; vertical-align: -0.22em; border-radius: 22%; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.vd-pro { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; margin-top: 28px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.vd-pro .pro-mark { width: 22px; height: 22px; margin: 0; vertical-align: 0; }
.vd-pro-txt { flex: 1 1 260px; }

/* buttons that wait for the server (Get Pro, Send my key again) */
.cta-spin { display: none; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] .cta-spin { display: inline-block; }
.btn[aria-busy="true"] .cta-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* toast: the inverted pair (--bg on --text) of the skip link */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: flex; align-items: flex-start; gap: 10px; width: max-content; max-width: min(540px, calc(100vw - 32px));
  padding: 12px 8px 12px 16px; border-radius: var(--radius); background: var(--text); color: var(--bg); box-shadow: var(--shadow-2);
  font-size: 15px; line-height: 1.45;
  opacity: 0; visibility: hidden; transform: translate(-50%, 16px);
  transition: opacity .2s, transform .35s var(--ease-out), visibility 0s .35s;
}
.toast.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .35s var(--ease-out), visibility 0s; }
.toast > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.toast-msg { flex: 1; padding-top: 1px; }
.toast-x { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin: -6px 0 -6px 4px; border-radius: 6px; color: inherit; opacity: .8; }
.toast-x:hover { opacity: 1; }
.toast-x svg { width: 16px; height: 16px; }
.toast-x:focus-visible { outline-color: var(--bg); outline-offset: -2px; }

/* ---------- Compatibility ---------- */
.compat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.compat-head { display: flex; align-items: center; gap: 12px; }
.compat-head h3 { font-size: 20px; }
.compat-head .tag { margin-left: auto; }
.compat-ver { margin-top: 16px !important; font-weight: 600; color: var(--text) !important; }
.compat .check-list li:has(use[href="#i-info"]) svg { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--nav-h) + 32px); margin: 0; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; list-style: none; cursor: pointer;
  font: 600 17px/1.4 var(--font-display); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text); }
.pm { position: relative; flex: none; width: 20px; height: 20px; color: var(--muted); }
.pm::before, .pm::after { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm::after { transform: rotate(0deg); }
.faq .ans { padding: 0 40px 20px 0; }
.faq .ans p { color: var(--text-2); line-height: 1.65; max-width: 68ch; }
.faq details::details-content, .trouble details::details-content { block-size: 0; overflow: clip; transition: block-size .25s var(--ease), content-visibility .25s allow-discrete; }
.faq details[open]::details-content, .trouble details[open]::details-content { block-size: auto; }
html { interpolate-size: allow-keywords; }

/* ---------- Download ---------- */
.download { display: flex; flex-direction: column; align-items: center; max-width: 880px; margin: 0 auto; text-align: center; }
.download .app-icon { width: 96px; height: 96px; margin-bottom: 24px; border-radius: 22px; box-shadow: var(--shadow-2); }
.download .section-lead { max-width: 600px; }
/* Below 900px the buttons stack at one shared width (a 2 + 1 wrap left them ragged); see the 900px rule for desktop */
.dl-buttons { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 440px; margin-top: 32px; }
.dl-btn {
  display: flex; align-items: center; gap: 14px; min-width: 248px; min-height: 72px; padding: 12px 20px;
  border: 1px solid var(--control); border-radius: var(--radius); background: var(--surface); color: var(--text);
  text-align: left; transition: background-color .12s, border-color .12s;
}
.dl-btn:hover { background: var(--surface-2); }
.dl-btn > svg { flex: none; width: 26px; height: 26px; }
.dl-btn > span { display: flex; flex-direction: column; gap: 2px; }
.dl-btn small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.dl-btn b { display: inline-flex; align-items: center; gap: 8px; font: 600 18px/1.2 var(--font-display); }
.dl-primary { border-color: transparent; background: var(--accent); color: var(--accent-text); }
.dl-primary:hover { background: var(--accent-hover); }
.dl-primary small { color: inherit; opacity: 1; }
.dl-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 28px; font-size: 15px; }
.dl-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.dl-links a:hover { color: var(--text); text-decoration-color: var(--accent); }
.dl-links svg { width: 18px; height: 18px; color: var(--muted); }
.dl-alt { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 14px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.dl-alt a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px; font-weight: 600; color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.footer .foot-ico { flex: none; width: 16px; height: 16px; margin-right: 8px; }
.footer-brand p { max-width: 320px; margin-top: 12px; color: var(--muted); line-height: 1.55; }
.footer-h { margin-bottom: 12px; font: 600 14px/1.4 var(--font); color: var(--text); }
.footer ul { list-style: none; display: grid; gap: 4px; }
.footer ul a { text-decoration: none !important; display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); }
.footer ul a:hover, .footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom.solo { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); }

/* ---------- Guide / docs ---------- */
.doc-hero { max-width: 760px; padding: 56px 0 24px; }
.doc-hero h1, .legal h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.02em; }
.doc-lead, .legal .lead { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; padding: 24px 0 96px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.toc h2 { margin-bottom: 8px; font: 600 13px/1.4 var(--font); color: var(--muted); }
.toc ol { list-style: none; border-left: 1px solid var(--line-2); }
.toc a { text-decoration: none !important; display: block; margin-left: -1px; padding: 6px 12px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .12s, border-color .12s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); font-weight: 600; border-left-color: var(--accent); }
.toc-mobile { display: none; }
.prose { min-width: 0; max-width: 720px; counter-reset: sec; }
.prose > section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); counter-increment: sec; }
.prose > section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose > section > h2 { display: flex; align-items: flex-start; gap: 12px; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.prose > section > h2::before {
  content: counter(sec); flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 1px;
  border-radius: 8px; background: var(--surface-3); font: 600 14px/1 var(--font); color: var(--text); letter-spacing: 0;
}
.prose h3 { margin: 32px 0 0; font-size: 19px; line-height: 1.3; }
.prose p { margin-top: 16px; color: var(--text-2); line-height: 1.7; }
.prose ul, .prose ol { margin-top: 16px; padding-left: 22px; color: var(--text-2); }
.prose li { margin: 8px 0; line-height: 1.65; }
.prose li::marker { color: var(--muted); }
.steps-list { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps-list > li { counter-increment: s; position: relative; padding-left: 40px; margin: 12px 0; }
.steps-list > li::before { content: counter(s); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--control); font: 600 13px/1 var(--font); color: var(--text); }
.callout { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--line-3); border-radius: var(--radius); background: var(--surface); }
.callout svg { width: 20px; height: 20px; margin-top: 2px; color: var(--muted); }
.callout p { margin: 0; font-size: 15px; line-height: 1.6; }
.callout.tip { border-left-color: var(--green); }
.callout.tip svg { color: var(--green); }
.callout.warn { border-left-color: var(--amber); }
.callout.warn svg { color: var(--amber); }
.callout code, .prose li code { overflow-wrap: anywhere; }
.kbd-table { width: 100%; margin-top: 20px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.kbd-table th, .kbd-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.kbd-table th { background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.kbd-table td { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.kbd-table tr:last-child td { border-bottom: 0; }
.kbd-table td:first-child { white-space: nowrap; }
.code-block { margin: 16px 0 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); font: 13px/1.7 var(--mono); color: var(--text); }
.code-block code { padding: 0; background: none; white-space: pre; font-size: inherit; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.settings-grid .card { padding: 16px 18px; box-shadow: none; }
.settings-grid h3 { margin: 0; font-size: 16px; }
.settings-grid p { margin-top: 4px; font-size: 14px; line-height: 1.55; }
.trouble { margin-top: 20px; border-top: 1px solid var(--line-2); }
.trouble details { border-bottom: 1px solid var(--line-2); }
.trouble summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 0; list-style: none; cursor: pointer; font-weight: 600; line-height: 1.4; color: var(--text); }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .2s var(--ease); }
.trouble details[open] summary::before { transform: rotate(45deg); }
.trouble .ans { padding: 0 0 16px 25px; }
.trouble .ans > :first-child { margin-top: 0; }
.doc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Privacy ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 96px; }
.legal-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 40px 0 8px; }
.legal-cards .card { padding: 20px; }
.legal-cards .icon-tile { margin-bottom: 16px; }
.legal-cards h2 { font-size: 17px; line-height: 1.3; }
.legal-cards .card p { margin-top: 6px; font-size: 15px; }
.legal > h3 { margin-top: 40px; font-size: 20px; }
.legal > p:not(.lead) { margin-top: 12px; color: var(--text-2); line-height: 1.7; }
.legal > p.legal-updated { margin-top: 12px; font-size: 14px; color: var(--muted); }
.legal > .seller {
  margin-top: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--surface); font-style: normal; line-height: 1.7; color: var(--text-2);
}
.legal > .seller strong { color: var(--text); }

/* ---------- Thanks (after Stripe Checkout) ---------- */
.thanks { max-width: 760px; margin: 0 auto; padding: 56px 0 96px; }
.thanks-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.thanks-hero .eyebrow { justify-content: center; margin: 28px 0 12px; }
.thanks-hero h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.02em; }
.thanks-hero .lead { max-width: 600px; margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.thanks-mark { position: relative; width: 80px; height: 80px; }
.thanks-mark img { width: 80px; height: 80px; border-radius: 18px; box-shadow: var(--shadow-2); }
.tm-check { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 32px; height: 32px; border: 3px solid var(--bg); border-radius: 50%; background: var(--green); color: var(--bg); }
.tm-check svg { width: 16px; height: 16px; }
.thanks-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); font-size: 15px; line-height: 1.45; color: var(--text-2); text-align: left; }
.thanks-status[hidden] { display: none; }
.thanks-status svg { flex: none; width: 20px; height: 20px; color: var(--green); }
.thanks-status.pending svg { color: var(--amber); }
.thanks-status strong { overflow-wrap: anywhere; }
.thanks-spam { max-width: 560px; margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.thanks-card { margin-top: 32px; padding: 28px 32px; }
.thanks-card h2 { font-size: 22px; line-height: 1.25; }
.thanks-card .steps-list { margin-top: 20px; }
.thanks-card .steps-list > li { line-height: 1.6; color: var(--text-2); }
.thanks-card .doc-cta { margin-top: 24px; }
.tr-head { display: flex; align-items: flex-start; gap: 16px; }
.recover-form { margin-top: 24px; }
.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.field-row { display: flex; gap: 12px; }
.field {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px;
  border: 1px solid var(--control); border-radius: var(--radius-s); background: var(--surface); color: var(--text);
  font: 400 16px/1.2 var(--font); /* 16px: no zoom-on-focus on iOS */
}
.field::placeholder { color: var(--muted); opacity: 1; }
.field[aria-invalid="true"] { border-color: var(--red); }
.card .form-msg { min-height: 24px; margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--text); }
.form-msg.ok::before, .form-msg.err::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; background: var(--green); }
.form-msg.err::before { background: var(--red); }

/* ---------- Trailer ---------- */
/* A monitor-like bezel (the same --bezel as the product illustrations) around a 16:9 player. */
.trailer { max-width: 1040px; margin: 0 auto; }
.trailer-frame {
  position: relative; padding: 10px; border-radius: var(--radius-xl);
  background: var(--bezel); box-shadow: var(--shadow-2);
}
.trailer-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #0b0c0e; object-fit: cover; }
.trailer-play {
  position: absolute; inset: 10px; z-index: 1; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8%; border-radius: 12px; cursor: pointer;
}
.trailer-play[hidden] { display: none; }
.trailer-play:focus-visible { outline-offset: -4px; border-radius: 12px; }
.tp-pill {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px;
  border: 1px solid var(--line); border-radius: 40px; background: var(--surface); box-shadow: var(--shadow-2);
  text-align: left; transition: transform .35s var(--ease-out), background-color .15s;
}
.tp-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-text); transition: transform .35s var(--ease-out); }
/* the triangle's own shape is already centred on its balance point (#i-play): only a hair to the right */
.tp-icon svg { width: 24px; height: 24px; margin-left: 1px; }
.tp-txt { display: flex; flex-direction: column; gap: 2px; }
.tp-txt b { font: 600 17px/1.25 var(--font-display); color: var(--text); }
.tp-txt small { font-size: 13px; line-height: 1.3; color: var(--muted); }
.trailer-play:hover .tp-pill { transform: translateY(-2px); }
.trailer-play:hover .tp-icon { transform: scale(1.06); }
.trailer-play:active .tp-pill { transform: none; }

/* ---------- Motion ----------
   One easing family (expo-out) for entrances; transform/opacity only; everything readable without JS and static
   under prefers-reduced-motion. Illustration loops run only while their card is on screen (.live, set by main.js). */
:root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }
html:not(.no-js) .reveal {
  opacity: 0; transform: translateY(44px) scale(.97); filter: blur(10px);
  transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html:not(.no-js) .reveal.in { opacity: 1; transform: none; filter: none; }
/* revealed cards keep their hover lift transition */
html:not(.no-js) .card.reveal {
  transition-property: opacity, transform, filter, translate, box-shadow, border-color;
  transition-duration: .9s, 1.2s, 1s, .5s, .5s, .3s;
  transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s, 0s;
}
/* section headings: eyebrow, title and lead rise one after the other */
html:not(.no-js) .section-head.reveal { opacity: 1; transform: none; }
html:not(.no-js) .section-head.reveal { filter: none; }
html:not(.no-js) .section-head.reveal > * { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .8s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); }
html:not(.no-js) .section-head.reveal > :nth-child(2) { transition-delay: .08s; }
html:not(.no-js) .section-head.reveal > :nth-child(3) { transition-delay: .16s; }
html:not(.no-js) .section-head.reveal.in > * { opacity: 1; transform: none; filter: none; }

/* hero entrance: pill → each title line → lead → actions → meta → the desk demo */
.hero-in { animation: hero-in .9s var(--ease-out) both; animation-delay: var(--d, 0s); }
.hero-line { animation-name: hero-line; animation-duration: 1s; }
.hero-stage { animation-name: hero-stage; animation-duration: 1.2s; }
/* entrances start at 1% opacity, not 0: an invisible first paint keeps the hero title and lead out of
   Largest Contentful Paint, which then waited for the desk demo (≈2.2 s instead of ≈0.7 s). Looks the same. */
@keyframes hero-in { from { opacity: .01; transform: translateY(12px); } }
@keyframes hero-line { from { opacity: .01; transform: translateY(.32em); } }
@keyframes hero-stage { from { opacity: 0; transform: translateY(40px) scale(.97); } }

/* ---------- Site-wide light & motion (the hero's language, carried down the page) ----------
   Scroll progress line, frosted nav once scrolled, a glowing hairline between sections, an aura behind
   every section title, metallic section titles, cards that light up under the pointer (main.js sets
   --cx / --cy and .lit) and lift on hover, a light running round the Pro plan, a glow behind the trailer
   and the download icon. Decorative only; all of it is still under prefers-reduced-motion and ?shot=. */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px;
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, var(--fx-title-a), var(--fx-title-b));
  box-shadow: 0 0 12px var(--fx-glow);
}
@keyframes fx-progress { to { transform: scaleX(1); } }

.nav.scrolled:not(.open) {
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
}

.section { position: relative; isolation: isolate; overflow-x: clip; }
.section::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(760px, 86%); height: 1px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--fx-rim), transparent); opacity: .75; pointer-events: none;
}
.section-head, .split-copy, .download { position: relative; }
.section-head::before, .split-copy::before, .download::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 40%; width: 900px; max-width: 150vw; height: 440px;
  translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: .75;
  background: radial-gradient(closest-side, var(--fx-glow), color-mix(in srgb, var(--fx-glow) 40%, transparent) 45%, transparent);
}
.split-copy::before { left: 30%; }
.download::before { top: 30%; width: 1000px; height: 600px; opacity: 1; }
:is(.section-head, .split-copy, .download) > .h2 {
  background: linear-gradient(180deg, var(--text) 35%, color-mix(in srgb, var(--text) 72%, var(--fx-hot)));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: .06em;
}
@media (forced-colors: active) { :is(.section-head, .split-copy, .download) > .h2 { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; } }

/* cards: a light that follows the pointer, a lit border near it, a lift on hover */
.card {
  --cx: 50%; --cy: -20%;
  transition: translate .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.card.lit { background-image: radial-gradient(460px circle at var(--cx) var(--cy), var(--fx-glow), transparent 62%); }
.card::before {
  content: ""; position: absolute; inset: -1px; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--cx) var(--cy), var(--fx-hot), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  display: none; opacity: .9;
}
/* masked rings are costly to composite: only the card under the pointer (and the Pro plan) has one */
.card.lit::before, .plan-pro::before { display: block; }
@media (hover: hover) and (pointer: fine) {
  .card:not(.panel):hover { translate: 0 -4px; box-shadow: var(--shadow-2), 0 34px 80px -44px var(--fx-glow); }
  .card:hover .icon-tile { color: var(--accent); box-shadow: 0 0 0 1px var(--accent-line), 0 10px 26px -10px var(--fx-glow); }
}
.icon-tile { transition: color .3s, box-shadow .4s var(--ease-out); }
.step-n { background: var(--accent); color: var(--accent-text); box-shadow: 0 8px 22px -8px var(--fx-glow); }

/* the Pro plan: a light running round its border */
@property --fx-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan-pro { box-shadow: inset 0 0 0 1px var(--accent), var(--shadow-1), 0 50px 120px -50px var(--fx-glow); }
.plan-pro::before {
  inset: -2px; padding: 2px; opacity: 1;
  background: conic-gradient(from var(--fx-ang), transparent 0 58%, var(--fx-title-b) 74%, var(--fx-hot) 82%, transparent 94%);
  animation: fx-spin 6s linear infinite;
}
html:not(.shot) .plan-pro:not(.live)::before { animation-play-state: paused; }
@keyframes fx-spin { to { --fx-ang: 360deg; } }

/* the trailer and the download icon glow */
.trailer-frame { position: relative; }
.trailer-frame::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 6% -6%; border-radius: 40px; pointer-events: none;
  background: radial-gradient(closest-side, var(--fx-glow), transparent); filter: blur(10px);
}
.download .app-icon { box-shadow: var(--shadow-2), 0 24px 70px -18px var(--fx-glow); animation: fx-float 6s ease-in-out infinite; }
@keyframes fx-float { 50% { transform: translateY(-8px); } }


/* Illustration loops that existed before: hold still while off screen. */
html:not(.no-js):not(.shot) :is(.b-viz, .step .visual, .vd-card, .pair-panel):not(.live) * { animation-play-state: paused; }

@media (prefers-reduced-motion: no-preference) {
  /* hero copy drifts up and softens as the page scrolls past it (scroll-driven, where supported) */
  @supports (animation-timeline: scroll()) {
    html:not(.shot) .hero-copy { animation: hero-away linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes hero-away { to { opacity: .35; transform: translateY(-32px); } }
  }
  /* the desk lies back a little and straightens up as it scrolls into view (wide screens) */
  @supports (animation-timeline: view()) {
    @media (min-width: 900px) {
      html:not(.shot) .stage-3d:not(.flat) { animation: fx-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
      @keyframes fx-rise { from { transform: perspective(1800px) rotateX(14deg) scale(.95); } }
    }
  }
  @supports (animation-timeline: scroll()) {
    html:not(.shot) .scroll-progress { animation: fx-progress linear both; animation-timeline: scroll(root); }
  }

  /* How it works */
  .live .v-install .file-chip { animation: chip-in .8s var(--ease-out) both .1s; }
  .live .v-install .file-chip:last-child { --x: -16px; }
  .live .v-install .app-ico { animation: pop-in .9s var(--ease-out) both; }
  .live .v-pair .mini-dialog { animation: rise-in .7s var(--ease-out) both; }
  .live .v-pair .mini-dialog:nth-child(2) { animation-delay: .12s; }
  .live .v-pair .ok { animation: rise-in .6s var(--ease-out) both .55s; }

  /* Cross the edge: the seam lights up as the cursor reaches it */
  .live .viz-edge .ve-seam { animation: ve-seam 5s var(--ease) infinite; }
  @keyframes ve-seam { 0%, 30% { opacity: .25; transform: scaleY(.7); } 40%, 100% { opacity: 1; transform: none; } }

  /* Zero config: devices appear as they are discovered */
  .live .viz-devices .dl-row { animation: rise-in .7s var(--ease-out) both; }
  .live .viz-devices .dl-row:nth-child(2) { animation-delay: .25s; }
  .live .viz-devices .dl-row:nth-child(3) { animation-delay: .5s; }

  /* Tray panel: it opens, the switches turn on, recent items arrive */
  .live .viz-panel .tray { animation: rise-in .9s var(--ease-out) both; }
  .live .viz-panel .sw::after { animation: sw-on .5s var(--ease-out) both .6s; }
  .live .viz-panel .tg:nth-child(2) .sw::after { animation-delay: .75s; }
  .live .viz-panel .tray-hist .hi { animation: rise-in .6s var(--ease-out) both .9s; }
  .live .viz-panel .tray-hist .hi:last-child { animation-delay: 1.02s; }
  @keyframes sw-on { from { transform: translateX(-12px); } }

  /* Clipboard history: the newest copy lands on top */
  .live .viz-hist .hi { animation: hist-in 6s var(--ease-out) infinite; }
  .live .viz-hist .hi:nth-child(1) { animation-delay: .6s; }
  .live .viz-hist .hi:nth-child(2) { animation-delay: .3s; }
  @keyframes hist-in { 0% { opacity: 0; transform: translateY(-10px); } 10%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

  /* One clipboard: the copied line flies from the PC to the Mac and is pasted there */
  .live .viz-clip .fly { animation: clip-fly 5s var(--ease-out) infinite; }
  .live .viz-clip .doc.b .hl { animation: clip-paste 5s var(--ease) infinite; }
  .live .viz-clip .arrow { animation: clip-arrow 5s var(--ease) infinite; }
  @keyframes clip-fly {
    0%, 14% { opacity: 0; transform: none; }
    20% { opacity: 1; transform: translateY(-3px); }
    52% { opacity: 1; transform: translate(var(--fly, 154px), -3px); }
    58%, 100% { opacity: 0; transform: translate(var(--fly, 154px), 0); }
  }
  @keyframes clip-paste { 0%, 54% { background: transparent; } 58%, 86% { background: var(--accent-soft); } 100% { background: transparent; } }
  @keyframes clip-arrow { 0%, 20% { transform: none; } 34% { transform: translateX(4px); } 48%, 100% { transform: none; } }

  /* Drag files: the target folder takes the file */
  .live .viz-drag .folder { animation: folder-hit 5s var(--ease) infinite; }
  @keyframes folder-hit { 0%, 50% { transform: none; } 58% { transform: scale(1.3); } 70%, 100% { transform: none; } }

  /* Wired link: traffic moves to the cable */
  .live .viz-wired .w-cable i::after { content: ""; position: absolute; top: -2px; left: 0; width: 18px; height: 7px; border-radius: 4px; background: var(--accent); animation: packet 1.6s linear infinite; }
  .live .viz-wired .w-wifi { animation: wifi-dim 1.2s var(--ease) both .2s; }
  @keyframes packet { from { transform: translateX(-18px); } to { transform: translateX(140px); } }
  @keyframes wifi-dim { to { opacity: .55; } }

  /* Pairing code digits: shown one by one, then the lock */
  .live .digits span { animation: digit-in .55s var(--ease-out) both; }
  .live .digits span:nth-child(2) { animation-delay: .06s; }
  .live .digits span:nth-child(3) { animation-delay: .12s; }
  .live .digits span:nth-child(5) { animation-delay: .18s; }
  .live .digits span:nth-child(6) { animation-delay: .24s; }
  .live .digits span:nth-child(7) { animation-delay: .3s; }
  .live .viz-code .lock, .live .pair-note { animation: rise-in .6s var(--ease-out) both .5s; }
  @keyframes digit-in { from { opacity: 0; transform: translateY(10px) scale(.9); } }
  /* Security panel: the encrypted link is drawn from both ends to the lock */
  .live .pair-visual .pv-link { animation: link-draw .7s var(--ease-out) both .2s; transform-origin: left; }
  .live .pair-visual .pv-link:nth-of-type(2) { transform-origin: right; }
  .live .pair-visual .pv-lock { animation: pop-in .7s var(--ease-out) both .7s; }
  @keyframes link-draw { from { transform: scaleX(0); } }

  /* Lock together / shared folder / clipboard relay: the state spreads from the first computer to the others */
  .live .lk-flow .lk-scr:not(:first-child) svg { animation: lk-spread 4.5s var(--ease) infinite; }
  .live .lk-flow .lk-scr:nth-child(3) svg { animation-delay: .45s; }
  @keyframes lk-spread {
    0%, 12% { background: var(--screen); color: var(--text-2); transform: none; }
    18% { background: var(--accent-soft); color: var(--accent); transform: scale(1.15); }
    24%, 80% { background: var(--accent-soft); color: var(--accent); transform: none; }
    90%, 100% { background: var(--screen); color: var(--text-2); transform: none; }
  }

  /* Shortcuts: keys are pressed in turn */
  .live .keys-swap kbd { animation: key-press 4s var(--ease) infinite; }
  .live .keys-swap kbd:last-child { animation-delay: 1.1s; }
  .live .keys-swap .swap { animation: swap-turn 4s var(--ease-out) infinite; }
  .live .keys-chord kbd { animation: key-chord 4s var(--ease) infinite; }
  .live .keys-chord kbd:nth-of-type(2) { animation-delay: .18s; }
  .live .keys-chord kbd:nth-of-type(3) { animation-delay: .36s; }
  @keyframes key-press { 0%, 8% { transform: none; } 12%, 22% { transform: translateY(2px); background: var(--accent-soft); border-color: var(--accent-line); } 28%, 100% { transform: none; } }
  @keyframes key-chord { 0%, 8% { transform: none; } 12%, 40% { transform: translateY(2px); background: var(--accent-soft); border-color: var(--accent-line); } 48%, 100% { transform: none; } }
  @keyframes swap-turn { 0%, 18% { transform: none; } 34%, 100% { transform: rotate(180deg); } }

  /* Virtual display: the window is dragged onto the extra screen */
  .live .vd-win { animation: vd-drag 6s var(--ease-out) infinite; }
  @keyframes vd-drag { 0%, 8% { transform: translateX(-48px); } 42%, 88% { transform: none; } 100% { transform: translateX(-48px); } }
  .live .vd-modes .on { animation: rise-in .6s var(--ease-out) both .1s; }

  /* Compare: the rows settle in one after the other; Download: icon, then the three buttons */
  html:not(.shot) .table-wrap.in tbody tr { animation: rise-in .6s var(--ease-out) both; }
  html:not(.shot) .table-wrap.in tbody tr:nth-child(2) { animation-delay: .08s; }
  html:not(.shot) .table-wrap.in tbody tr:nth-child(3) { animation-delay: .16s; }
  html:not(.shot) .table-wrap.in tbody tr:nth-child(4) { animation-delay: .24s; }
  html:not(.shot) .table-wrap.in tbody tr:nth-child(5) { animation-delay: .32s; }
  html:not(.shot) .download.in .app-icon { animation: pop-in 1s var(--ease-out) both .1s; }
  html:not(.shot) .download.in .dl-btn { animation: rise-in .7s var(--ease-out) both .3s; }
  html:not(.shot) .download.in .dl-btn:nth-child(2) { animation-delay: .38s; }
  html:not(.shot) .download.in .dl-btn:nth-child(3) { animation-delay: .46s; }

  /* Pricing: the rows of each card settle in turn; the launch ribbon drops onto the Pro card */
  html:not(.shot) .plan.in .plan-list li { animation: rise-in .55s var(--ease-out) both .2s; }
  html:not(.shot) .plan.in .plan-list li:nth-child(2) { animation-delay: .26s; }
  html:not(.shot) .plan.in .plan-list li:nth-child(3) { animation-delay: .32s; }
  html:not(.shot) .plan.in .plan-list li:nth-child(4) { animation-delay: .38s; }
  html:not(.shot) .plan.in .plan-list li:nth-child(5) { animation-delay: .44s; }
  html:not(.shot) .plan.in .plan-list li:nth-child(6) { animation-delay: .5s; }
  html:not(.shot) .plan.in .plan-list li:nth-child(7) { animation-delay: .56s; }
  html:not(.shot) .plan-pro.in .plan-ribbon { animation: ribbon-in .7s var(--ease-out) both .45s; }
  @keyframes ribbon-in { from { opacity: 0; transform: translateY(-110%); } }
  /* Thanks: the check pops onto the app icon */
  html:not(.shot) .thanks-mark .tm-check { animation: pop-in .6s var(--ease-out) both .5s; }

  @keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
  @keyframes pop-in { from { opacity: 0; transform: scale(.8); } }
  @keyframes chip-in { from { opacity: 0; transform: translateX(var(--x, 16px)); } }
}
.viz-clip .doc .hl { position: relative; }
.viz-clip .fly { position: absolute; inset: 0; padding: 1px 3px; border-radius: 3px; background: var(--accent-soft); color: var(--text); box-shadow: var(--shadow-1); opacity: 0; pointer-events: none; white-space: nowrap; }


/* ================================================================
   Responsive — mobile first values above; scale up here.
   ================================================================ */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero-title { font-size: 56px; }
  .hero-lead { font-size: 20px; }
}
@media (min-width: 768px) {
  :root { --section-y: 96px; }
  .h2 { font-size: 40px; }
  .hero { padding-top: calc(80px + var(--nav-h)); }
  .doc-hero h1, .legal h1 { font-size: 44px; }
}
/* Desktop: the three download buttons always share one row, at equal widths (long French / German labels wrap
   inside the button instead of pushing one button onto a second row). */
@media (min-width: 900px) {
  .dl-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .dl-btn { min-width: 0; }
}
@media (min-width: 1280px) {
  :root { --section-y: 128px; --gutter: 40px; }
  .hero-title { font-size: 72px; }
  .h2 { font-size: 48px; }
  .hero { padding-top: calc(96px + var(--nav-h)); }
}
@media (min-width: 1800px) {
  :root { --maxw: 1280px; --maxw-wide: 1400px; }
}
/* 2K / 4K desktops: scale the whole layout by 1.25 (16px → 20px; the 4/8px grid stays whole-pixel) */
@media (min-width: 2200px) {
  :root { --maxw: 1200px; --maxw-wide: 1280px; }
  html { zoom: 1.25; }
}

@media (max-width: 1180px) {
  .nav-links a.opt { display: none; }
}
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-2, .b-3 { grid-column: span 1; }
  .b-4, .b-6 { grid-column: span 2; }
  .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split-rev .pair-panel { order: 0; }
  .panel { position: relative; top: auto; max-width: 560px; width: 100%; margin: 0 auto; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-wrap .section-head { position: static; text-align: center; margin: 0 auto; }
  .faq-wrap .section-head .eyebrow { justify-content: center; }
  .compat { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin: 0 auto; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .b-split { grid-template-columns: minmax(0, 1fr); }
  .b-split .b-viz { min-height: 0; height: auto; padding: 24px 0; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .toc { display: none; }
  .toc-mobile {
    display: block; position: sticky; top: var(--nav-h); z-index: 20;
    margin: 0 calc(-1 * var(--gutter)) 32px; padding: 10px var(--gutter);
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .toc-mobile select {
    width: 100%; height: 44px; padding: 0 40px 0 12px; border: 1px solid var(--control); border-radius: var(--radius-s);
    -webkit-appearance: none; appearance: none; cursor: pointer;
    background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%2384848d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 12px center / 16px;
    font: 600 15px/1 var(--font); color: var(--text);
  }
  html:has(.toc-mobile) { scroll-padding-top: calc(var(--nav-h) + 88px); }
  .legal-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav-inner { gap: 12px; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px var(--gutter) 16px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-links a, .nav-links a.opt { display: flex; height: auto; min-height: 48px; padding: 0 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a:hover { background: transparent; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .2s var(--ease), visibility 0s; }
  .nav.open { border-bottom-color: var(--line); }
  .menu-btn { display: grid; }
  .lang-btn { height: 40px; }
}
/* Pricing on phones: one column, Pro first. Free's path to Download is already on screen three times (nav, hero,
   Download section), so this section's job is to sell Pro: leading with it puts the price, the launch ribbon and
   "Get Pro" on the first screen; Free follows right below with its own Download button. */
@media (max-width: 760px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 32px; }
  .plan-pro { order: -1; }
  .plan { padding: 28px 24px; }
  .card .plan-desc { min-height: 0; }
  .plan-fine { flex-direction: column; align-items: center; gap: 12px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .b-2, .b-3, .b-4, .b-6 { grid-column: span 1; }
  .more-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer ul a { min-height: 40px; }
  .card { padding: 20px; }
  .section-head { margin-bottom: 32px; }
  .stage { border-radius: var(--radius); }
  .stage-caption .chip { height: 40px; font-size: 13px; }
  /* comparison: one card per tool */
  .table-wrap { overflow: visible; }
  table.compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tbody tr { padding: 16px 20px 8px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { padding: 0 0 8px; border: 0; }
  .compare td { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
  .compare tr td:last-child { border-bottom: 0; }
  .compare td::before { content: attr(data-label); flex: 1; color: var(--muted); }
  .compare td .cell-note { order: 1; margin: 0; }
  .compare td > :not(.cell-note) { order: 2; }
  .compare tr.us > * { background: transparent; }
  .compare tr.us { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); border-radius: var(--radius-l) var(--radius-l) 0 0; }
  .compare tr.us th { box-shadow: none; }
  .faq .ans { padding-right: 0; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
  .hero { padding-top: calc(40px + var(--nav-h)); }
  .hero-ctas { flex-direction: column; align-self: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-meta { flex-direction: column; align-items: center; }
  .status-pill { height: auto; min-height: 32px; padding: 6px 12px; flex-wrap: wrap; justify-content: center; }
  .dl-btn { min-width: 0; }
  .v-pair { grid-template-columns: auto; }
  .v-pair .mini-dialog:nth-child(2) { display: none; }
  .pair-codes .digits span { width: 26px; height: 36px; font-size: 19px; }
  .vd { gap: 8px; padding: 24px 8px 16px; }
  .vd-pc .vd-scr { width: 120px; height: 76px; }
  .vd-mac .vd-scr { width: 104px; height: 68px; }
  .vd-base { width: 124px; }
  .vd-pc .vd-win { left: 66px; width: 90px; height: 40px; }
  .vd-mac .vd-win { left: -36px; width: 90px; height: 40px; }
  .vd-rev .vd-pc .vd-win { left: -40px; }
  .vd-rev .vd-mac .vd-win { left: 50px; }
  .vd-link { width: 24px; }
  .vd-modes { grid-template-columns: minmax(0, 1fr); }
  .vd-foot { flex-wrap: wrap; }
  .kbd-table th, .kbd-table td { padding: 10px 12px; }
  .kbd-table td:first-child { white-space: normal; min-width: 108px; }
  .prose ul, .prose ol, .card p, .callout p, .kbd-table td { -webkit-hyphens: auto; hyphens: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .trailer-frame { padding: 6px; border-radius: var(--radius-l); }
  .trailer-video { border-radius: 9px; }
  /* phones: just the round play mark under the logo (the label stays for screen readers) */
  .trailer-play { inset: 6px; padding-bottom: 12px; border-radius: 9px; }
  .tp-pill { padding: 4px; gap: 0; }
  .tp-icon { width: 44px; height: 44px; }
  .tp-icon svg { width: 20px; height: 20px; }
  .tp-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .doc-hero h1, .legal h1, .thanks-hero h1 { font-size: 32px; }
  .prose h2 { font-size: 23px; }
  .plan-price .amount { font-size: 44px; }
  .thanks { padding-top: 40px; }
  .thanks-card { padding: 24px 20px; }
  .tr-head { flex-direction: column; gap: 12px; }
  .field-row { flex-direction: column; }
  .field-row .field { flex: none; }
  .field-row .btn, .thanks-card .doc-cta .btn { width: 100%; }
  .toast { left: 16px; right: 16px; width: auto; max-width: none; transform: translateY(16px); }
  .toast.on { transform: none; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .hero-title { font-size: 36px; }
}

/* ================================================================
   Motion preferences + deterministic screenshot mode
   ================================================================ */
/* ---------- Scroll-driven details (where the browser has scroll timelines; nothing changes elsewhere) ----------
   Each effect is tied to how far its element has come into view, so it plays forward and back with the scroll.
   They use the individual `scale` / `rotate` properties (or a pseudo-element) so they compose with the
   reveal (`transform`), the hover lift (`translate`) and the pointer tilt (`rotate` on the mockups). */
.steps { position: relative; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 2px; border-radius: 1px; pointer-events: none;
}
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--fx-title-a), var(--fx-title-b)); transform-origin: 0 50%; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* section titles settle as they arrive, leads light up line by line */
    html:not(.shot) :is(.section-head, .split-copy, .download) > .h2 { animation: fx-title linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    html:not(.shot) .section-head-left > .h2, html:not(.shot) .split-copy > .h2 { transform-origin: 0 50%; }
    @keyframes fx-title { from { scale: .9; } }
    html:not(.shot) :is(.section-head, .split-copy) > .section-lead {
      background: linear-gradient(90deg, var(--text) 0 50%, var(--muted) 50% 100%) 100% 0 / 200% 100% no-repeat;
      -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
      animation: fx-lead linear both; animation-timeline: view(); animation-range: entry 30% cover 50%;
    }
    @keyframes fx-lead { to { background-position: 0 0; } }
    /* the auras behind the titles drift slower than the page: depth */
    html:not(.shot) :is(.section-head, .split-copy, .download)::before { animation: fx-aura linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes fx-aura { from { transform: translateY(90px) scale(.85); } to { transform: translateY(-90px) scale(1.1); } }
    /* How it works: the line across the three steps draws itself */
    html:not(.shot) .steps::after { animation: fx-draw linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
    @keyframes fx-draw { from { transform: scaleX(0); } }
    /* feature and compatibility cards grow a little as they come in */
    html:not(.shot) :is(.bento > .card, .compat-card) { animation: fx-card linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes fx-card { from { scale: .93; } }
    /* comparison rows slide in one after the other */
    html:not(.shot) .compare tbody tr { animation: fx-row linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes fx-row { from { opacity: 0; translate: -28px 0; } }
    /* pricing: the plans stand up */
    .plans { perspective: 1400px; }
    html:not(.shot) .plan { transform-origin: 50% 100%; animation: fx-plan linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    @keyframes fx-plan { from { rotate: x 16deg; scale: .95; } }
    /* the trailer zooms up to size */
    html:not(.shot) .trailer-frame { animation: fx-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes fx-zoom { from { scale: .86; } }
    /* the download icon grows into place (and keeps floating) */
    html:not(.shot) .download .app-icon {
      animation: fx-float 6s ease-in-out infinite, fx-icon linear both;
      animation-timeline: auto, view(); animation-range: normal, entry 0% cover 30%;
    }
    @keyframes fx-icon { from { scale: .55; } }
  }
}
@media (forced-colors: active) { :is(.section-head, .split-copy) > .section-lead { background: none !important; color: CanvasText !important; -webkit-text-fill-color: CanvasText !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html:not(.no-js) .reveal, html:not(.no-js) .section-head.reveal > * { opacity: 1; transform: none; transition-delay: 0s; }
  /* looping illustrations rest on their final, most telling frame */
  .mini-desk .md-c, .mini-desk .md-seam, .viz-edge .ve-b .ve-scr, .ve-cur, .viz-drag .file, .vd-link i, .radar i { animation: none !important; }
  .ve-cur { transform: translate(130px, -8px); }
  .viz-edge .ve-b .ve-scr { background: var(--accent-soft); }
  .viz-drag .file { transform: translate(150px, 22px); }
  .vd-link i { width: 100%; }
  .fx-aura, .stage-3d::after, .plan-pro::before, .download .app-icon { animation: none !important; }
  .reveal, .section-head.reveal > * { filter: none !important; }
  .card:hover { translate: none !important; }
}
/* ?shot=… (see README): no transitions, looping illustrations frozen on their most telling frame */
html.shot { scroll-behavior: auto; }
html.shot .hero-in { animation: none; }
html.shot .fx-aura, html.shot .stage-3d::after, html.shot .plan-pro::before, html.shot .download .app-icon { animation: none; }
html.shot *, html.shot *::before, html.shot *::after { transition: none !important; }
html.shot details::details-content { transition: none !important; }
html.shot .mini-desk .md-c, html.shot .mini-desk .md-seam, html.shot .viz-edge .ve-b .ve-scr, html.shot .ve-cur,
html.shot .vd-link i, html.shot .radar i, html.shot .viz-scenes .sc-pill.on, html.shot .viz-scenes .sc-ext, html.shot .viz-scenes .sc-seam { animation-play-state: paused; animation-delay: -4s; }
html.shot .viz-drag .file { animation-play-state: paused; animation-delay: -2.4s; }
