/* IOWand site stylesheet. One hue family (violet ~265deg), light/dark aware, system fonts only. */

:root {
  color-scheme: light;
  --bg: #f6f2ff;
  --bg-2: #ece4ff;
  --surface: #ffffff;
  --ink: #1c1240;
  --ink-2: #4a3f72;
  --ink-3: #6a5f92;
  --line: #d9cef5;
  --accent: #6a38b4;
  --accent-2: #5a2ca0;
  --accent-ink: #ffffff;
  --glow: #b48cf0;
  --tint: rgba(106, 56, 180, 0.08);
  --shadow: 0 1px 2px rgba(28, 18, 64, 0.08), 0 24px 60px -24px rgba(53, 24, 108, 0.35);
  --ok: #1f8a4c;

  /* Device + app colours do not change with the page theme: the app is dark. */
  --device: #0e0824;
  --device-edge: #3b2c6b;
  --app-bg: #1c1c1e;
  --app-key: #3a3a3c;
  --app-key-2: #2c2c2e;
  --app-ink: #f2f2f7;

  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Helvetica Neue", Roboto, "Noto Sans", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius-device: 44px;
  --radius-panel: 22px;
  --radius-key: 9px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #140a30;
    --bg-2: #1b0f40;
    --surface: #221550;
    --ink: #f1e8ff;
    --ink-2: #c6b8ea;
    --ink-3: #a597d0;
    --line: #3a2a72;
    --accent: #c9b0f2;
    --accent-2: #dcc9ff;
    --accent-ink: #140a30;
    --glow: #9a6ae6;
    --tint: rgba(201, 176, 242, 0.08);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 30px 70px -30px rgba(0, 0, 0, 0.7);
    --ok: #4cd987;
    --device-edge: #4b3a86;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #140a30;
  --bg-2: #1b0f40;
  --surface: #221550;
  --ink: #f1e8ff;
  --ink-2: #c6b8ea;
  --ink-3: #a597d0;
  --line: #3a2a72;
  --accent: #c9b0f2;
  --accent-2: #dcc9ff;
  --accent-ink: #140a30;
  --glow: #9a6ae6;
  --tint: rgba(201, 176, 242, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  --ok: #4cd987;
  --device-edge: #4b3a86;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font-body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
h2 { font-size: var(--step-3); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
code, kbd { font-family: var(--font-mono); font-size: 0.88em; }
code { background: var(--tint); border-radius: 6px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
kbd {
  display: inline-block; min-width: 1.6em; text-align: center;
  padding: 0.05em 0.45em; border-radius: 6px; border: 1px solid var(--line);
  border-bottom-width: 2px; background: var(--surface); color: var(--ink); font-size: 0.82em;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.2rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 9px; font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); background: var(--tint); }
.head-actions { display: flex; gap: 8px; align-items: center; }
.theme-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun, .theme-btn .i-moon, .theme-btn .i-auto { display: none; }
.theme-btn[data-mode="light"] .i-sun, .theme-btn[data-mode="dark"] .i-moon, .theme-btn[data-mode="system"] .i-auto { display: block; }
@media (max-width: 980px) { .site-nav { display: none; } .head-actions { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; font: 650 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 0.95rem; }
.btn[aria-disabled="true"] { cursor: default; }
.store-soon {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 18px;
  border-radius: 14px; border: 1.5px dashed var(--accent); color: var(--ink); line-height: 1.15;
}
.store-soon small { font-size: 0.75rem; color: var(--ink-2); }
.store-soon strong { font-size: 1rem; }
.store-badge img { height: 48px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 8vw, 110px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 35%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 40%, transparent), transparent 70%);
  filter: blur(10px); opacity: 0.55;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.hero h1 {
  font-size: var(--step-4); font-weight: 850; line-height: 0.94; letter-spacing: -0.045em; max-width: 11ch;
  text-wrap: balance;
}
.hero h1 .spark { display: inline-block; width: 0.5em; height: 0.5em; vertical-align: 0.6em; margin-left: 0.06em; color: var(--accent); }
.hero .lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 34ch; margin: 22px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-facts { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-3); font-size: var(--step--1); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--accent); }

/* Stage: generic desktop window + phone lying in front of it */
.stage { position: relative; padding: 0 0 0 15%; margin-bottom: 9%; }
.desk {
  position: relative; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 16 / 11;
}
.desk-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-size: 0.82rem; }
.desk-bar .ctl { display: flex; gap: 6px; }
.desk-bar .ctl i { width: 11px; height: 11px; border-radius: 3px; background: var(--line); display: block; }
.desk-bar .title { flex: 1; text-align: center; font-weight: 600; }
.desk-bar .host { font-weight: 600; color: var(--ink-3); }
.board { position: absolute; inset: 38px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 10px; padding: 14px 14px 14px 30%; }
.board .side { position: absolute; left: 0; top: 0; bottom: 0; width: calc(30% - 14px); border-right: 1px solid var(--line); padding: 16px 14px; display: grid; align-content: start; gap: 10px; }
.board .side i { display: block; height: 9px; border-radius: 5px; background: var(--line); }
.board .side i:nth-child(1) { width: 60%; background: var(--accent); opacity: 0.6; }
.board .side i:nth-child(2) { width: 85%; } .board .side i:nth-child(3) { width: 70%; } .board .side i:nth-child(4) { width: 78%; } .board .side i:nth-child(5) { width: 52%; }
.tile { border-radius: 10px; background: var(--tint); border: 1px solid var(--line); transition: transform 0.18s, background 0.18s, border-color 0.18s; }
.tile:nth-child(3n) { background: color-mix(in srgb, var(--glow) 28%, transparent); }
.tile:nth-child(4n+1) { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.tile.sel { border: 2px solid var(--accent); transform: scale(0.96); }
.tile.hot { border-color: var(--accent); }
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; z-index: 3; will-change: transform; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35)); }
.ripple { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; z-index: 2; animation: ripple 0.5s ease-out forwards; }
@keyframes ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.desk-status { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: 0.78rem; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

.stage .phone { position: absolute; left: 0; bottom: -16%; width: 31%; z-index: 4; }
@media (max-width: 999px) { .stage { padding-left: 18%; } .stage .phone { width: 30%; } }
@media (max-width: 520px) { .stage { padding-left: 16%; margin-bottom: 30%; } .stage .phone { width: 40%; bottom: -34%; } }
.pad-hint { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); color: rgba(255,255,255,0.62); font: 600 clamp(9px, 1.1vw, 13px)/1.3 var(--font-body); text-align: center; pointer-events: none; transition: opacity 0.3s; width: 80%; }
.pad-zone { position: absolute; left: 0; right: 0; top: 12.5%; height: 43%; touch-action: none; cursor: crosshair; z-index: 3; border-radius: 4px; }
.pad-zone canvas { width: 100%; height: 100%; display: block; }
.pad-zone:focus-visible { outline-offset: -3px; }

/* ---------- Device frames (generic, not any vendor's industrial design) ---------- */
.phone {
  position: relative; padding: 3.6%; border-radius: 15% / 7%; background: var(--device);
  box-shadow: inset 0 0 0 1.5px var(--device-edge), inset 0 0 0 4px #000, 0 30px 60px -20px rgba(10, 4, 30, 0.6), 0 2px 6px rgba(10,4,30,.3);
}
.phone .screen { position: relative; border-radius: 12% / 5.6%; overflow: hidden; background: var(--app-bg); aspect-ratio: 1320 / 2868; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone::after { content: ""; position: absolute; top: 4.6%; left: 50%; width: 27%; height: 2.4%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 5; }
.phone.landscape { padding: 1.7%; border-radius: 7% / 15%; }
.phone.landscape .screen { aspect-ratio: 2868 / 1320; border-radius: 5.5% / 12%; }
.phone.landscape::after { display: none; }
.tablet { position: relative; padding: 2.6%; border-radius: 6%; background: var(--device); box-shadow: inset 0 0 0 1.5px var(--device-edge), 0 30px 60px -20px rgba(10, 4, 30, 0.6); }
.tablet .screen { border-radius: 3.6%; overflow: hidden; background: var(--app-bg); }
.tablet .screen img { width: 100%; height: auto; }
.tablet::after { content: ""; position: absolute; top: 1%; left: 50%; width: 1.2%; aspect-ratio: 1; transform: translateX(-50%); background: #1a1530; border-radius: 50%; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: var(--step-1); color: var(--ink-2); line-height: 1.45; margin-top: 18px; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .split.flip > :first-child { order: 2; } }
.prose { max-width: 36rem; }
.prose p { color: var(--ink-2); }
.prose h3 { margin: 1.6em 0 0.4em; }
.note { font-size: var(--step--1); color: var(--ink-3); }

/* Gesture table */
.gestures { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.gestures caption { text-align: left; color: var(--ink-3); font-size: var(--step--1); padding-bottom: 12px; }
.gestures th, .gestures td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gestures thead th { font-size: var(--step--1); color: var(--ink-3); font-weight: 600; border-bottom-width: 2px; }
.gestures tbody th { font-weight: 650; color: var(--ink); width: 34%; }
.gestures td { color: var(--ink-2); }
.fingers { display: inline-flex; gap: 3px; margin-right: 10px; vertical-align: -2px; }
.fingers i { width: 9px; height: 15px; border-radius: 5px; background: var(--accent); display: block; opacity: 0.9; }
.fingers.tap i { height: 9px; border-radius: 50%; }
@media (max-width: 640px) {
  .gestures thead { display: none; }
  .gestures tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .gestures tbody th { grid-column: 1 / -1; width: auto; border: 0; padding: 6px 0; }
  .gestures td { border: 0; padding: 2px 8px 6px 0; }
  .gestures td::before { content: attr(data-os); display: block; font-size: 0.78rem; color: var(--ink-3); font-weight: 600; }
}

/* ---------- Palette demo (mirrors PaletteCatalog) ---------- */
.demo { background: var(--app-bg); color: var(--app-ink); border-radius: var(--radius-panel); padding: clamp(14px, 2.4vw, 22px); box-shadow: var(--shadow); border: 1px solid #000; }
.demo-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 3px; background: #2c2c2e; border-radius: 12px; gap: 2px; }
.seg button { appearance: none; border: 0; background: transparent; color: #d1d1d6; font: 600 0.92rem/1 var(--font-body); padding: 9px 14px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #636366; color: #fff; }
.host-pill { display: inline-flex; align-items: center; gap: 8px; background: #2c2c2e; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 0.92rem; }
.host-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #30d158; }
.pal-viewport { overflow: hidden; touch-action: pan-y; border-radius: 12px; outline-offset: 4px; }
.pal-track { display: flex; transition: transform 0.32s cubic-bezier(.2,.8,.2,1); }
.pal-page { flex: 0 0 100%; display: grid; gap: 8px; padding: 2px; }
.pal-row { display: grid; gap: 8px; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.key {
  appearance: none; border: 0; border-radius: var(--radius-key); background: var(--app-key); color: var(--app-ink);
  min-height: 54px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 600 0.86rem/1.1 var(--font-body); cursor: pointer; transition: background 0.12s, transform 0.08s; text-align: center; min-width: 0;
}
.key small { font-weight: 500; font-size: 0.7rem; color: #aeaeb2; overflow-wrap: anywhere; }
.key:hover { background: #48484a; }
.key:active, .key.flash { background: #6a38b4; transform: translateY(1px); }
.key[data-state="oneShot"] { background: #6a38b4; }
.key[data-state="locked"] { background: #6a38b4; box-shadow: inset 0 -3px 0 #c9b0f2; }
.key svg { width: 18px; height: 18px; }
.pal-foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; min-height: 28px; }
.dots { display: flex; gap: 2px; }
.dots button { appearance: none; border: 0; background: transparent; padding: 8px 5px; cursor: pointer; }
.dots button i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #636366; }
.dots button[aria-current="true"] i { background: #fff; }
.chips { display: flex; gap: 4px; }
.chips span { font-size: 0.7rem; background: #6a38b4; padding: 2px 7px; border-radius: 999px; }
.readout { margin-top: 12px; font-size: 0.85rem; color: #c7c7cc; min-height: 1.4em; text-align: center; }
.readout b { color: #fff; }
@media (max-width: 720px) {
  .pal-row.wide { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pal-row.mods { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; }
  .pal-row.six { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; }
  .key { min-height: 48px; font-size: 0.8rem; }
}
.page-names { display: flex; gap: 6px; justify-content: center; margin: 0 0 12px; font-size: 0.85rem; color: #aeaeb2; }
.page-names span[aria-current="true"] { color: #fff; font-weight: 700; }

/* Screenshot pair under palette */
.shots-pair { max-width: 860px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2.4vw, 28px); margin-top: 40px; align-items: start; }
.shots-pair figure { margin: 0; }
.shots-pair figcaption, .gallery figcaption { margin-top: 12px; font-size: var(--step--1); color: var(--ink-2); line-height: 1.4; }
.shots-pair figcaption b, .gallery figcaption b { display: block; color: var(--ink); font-weight: 650; }

/* Landscape figure */
.landscape-fig { margin: 48px 0 0; }
.landscape-fig .phone { max-width: 860px; margin-inline: auto; }
.landscape-fig figcaption { text-align: center; color: var(--ink-2); font-size: var(--step--1); margin-top: 16px; }

/* ---------- Gamepad ---------- */
.pad-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pad-tabs button {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px;
  padding: 9px 14px; font: 600 0.9rem/1 var(--font-body); cursor: pointer;
}
.pad-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pad-screen { position: relative; aspect-ratio: 844 / 390; background: var(--app-bg); }
.pad-screen svg { width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.pad-name { margin-top: 14px; color: var(--ink-2); font-size: var(--step--1); min-height: 1.4em; }
.pad-name b { color: var(--ink); }
.output-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 18px; }
.output-list li { padding-left: 18px; border-left: 3px solid var(--accent); }
.output-list strong { display: block; font-family: var(--font-display); font-size: 1.08rem; }
.output-list span { color: var(--ink-2); }

/* ---------- Extras (orientation, Control Center, etc.) ---------- */
.extras { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); }
@media (min-width: 820px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.extra h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.extra h3 svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.extra p { color: var(--ink-2); }
.tag { display: inline-block; font: 600 0.75rem/1 var(--font-body); padding: 5px 8px; border-radius: 7px; background: var(--tint); color: var(--accent); border: 1px solid var(--line); vertical-align: 3px; }
.cc-list { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cc-list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }
.cc-list li i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-style: normal; }
.cc-list li i svg { width: 15px; height: 15px; }
.orient { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.orient span { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; }
.orient span:first-child { border-color: var(--accent); color: var(--accent); font-weight: 650; }

/* ---------- Gallery ---------- */
.gallery {
  display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 36px); overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(50% - 50vw); padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2)) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); scrollbar-width: thin;
}
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.gallery figure.tall { width: clamp(170px, 44vw, 200px); }
.gallery figure.wide { width: clamp(290px, 80vw, 520px); }
.gallery figure.tab-p { width: clamp(220px, 60vw, 290px); }
.gallery figure.tab-l { width: clamp(290px, 80vw, 470px); }
.gallery-controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: -8px; margin-bottom: 18px; }
.gallery-controls button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.gallery-controls svg { width: 20px; height: 20px; }

/* ---------- Private ---------- */
.net-diagram { width: 100%; height: auto; }
.net-diagram .lbl { font: 650 18px var(--font-body); fill: var(--ink); }
.net-diagram .sub { font: 500 15px var(--font-body); fill: var(--ink-2); }
.net-diagram .box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.net-diagram .wire { stroke: var(--accent); stroke-width: 3; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; }
.net-diagram .no { stroke: var(--ink-3); fill: none; stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) { .net-diagram .wire { animation: flow 1.4s linear infinite; } }
@keyframes flow { to { stroke-dashoffset: -22; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.facts li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.facts svg { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.facts strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }
.facts span { color: var(--ink-2); }

/* ---------- Host mockups ---------- */
.host-tabs { margin-bottom: 22px; }
.host-tabs .seg { background: var(--surface); border: 1px solid var(--line); }
.host-tabs .seg button { color: var(--ink-2); }
.host-tabs .seg button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.host-scene { position: relative; border-radius: var(--radius-panel); overflow: hidden; min-height: 560px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.host-scene.mac { background: linear-gradient(160deg, #6a38b4 0%, #35186c 55%, #140a30 100%); }
.host-scene.win { background: linear-gradient(200deg, #3d2380 0%, #241256 50%, #140a30 100%); }
.host-scene[hidden] { display: none; }
.mock-font { font-family: system-ui, -apple-system, sans-serif; }

/* Mac menu bar (right side only; no vendor logo) */
.mbar { height: 30px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 0 14px; background: rgba(30, 18, 60, 0.55); backdrop-filter: blur(20px); color: #fff; font-size: 13px; font-weight: 500; }
.mbar .glyph { width: 16px; height: 16px; opacity: 0.9; }
.mbar .iow { display: grid; place-items: center; width: 28px; height: 22px; border-radius: 5px; background: rgba(255,255,255,0.22); }
.mac-menu {
  position: absolute; right: 80px; top: 34px; width: 330px; padding: 5px; border-radius: 10px;
  background: rgba(246, 242, 255, 0.92); color: #1c1240; backdrop-filter: blur(24px); font-size: 13px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.25), 0 12px 36px rgba(10,4,30,.45);
}
.menu-item { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 22px; border-radius: 5px; min-height: 22px; white-space: nowrap; }
.menu-item.dis { color: rgba(28,18,64,.45); }
.menu-item .chk { position: absolute; left: 7px; font-size: 11px; }
.menu-item .kb { margin-left: auto; color: rgba(28,18,64,.5); }
.menu-item.sub::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.menu-item.hl { background: #6a38b4; color: #fff; }
.menu-item.hl .kb { color: #fff; }
.menu-sep { height: 1px; background: rgba(28,18,64,.12); margin: 5px 10px; }
.submenu { position: absolute; top: -5px; width: 230px; padding: 5px; border-radius: 10px; background: rgba(246, 242, 255, 0.97); color: #1c1240; box-shadow: 0 0 0 0.5px rgba(0,0,0,.25), 0 12px 36px rgba(10,4,30,.45); z-index: 2; }
.mac-menu .submenu { right: calc(100% + 2px); }
.mac-pair {
  position: absolute; left: 6%; top: 64px; width: 320px; border-radius: 12px; background: #f4f0fc; color: #1c1240;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.3), 0 24px 60px rgba(10,4,30,.5); overflow: hidden;
}
.panel-bar { height: 26px; display: flex; align-items: center; justify-content: center; position: relative; font-size: 12px; font-weight: 600; color: rgba(28,18,64,.7); border-bottom: 1px solid rgba(28,18,64,.08); }
.panel-bar .x { position: absolute; left: 9px; width: 11px; height: 11px; border-radius: 50%; background: rgba(28,18,64,.18); }
.pair-body { padding: 14px 16px 18px; display: grid; justify-items: center; gap: 9px; text-align: center; }
.pair-body h4 { margin: 0; font-size: 14px; }
.pair-code { font: 700 38px/1 var(--font-mono); letter-spacing: 0.02em; }
.pair-qr { width: 170px; height: 170px; image-rendering: pixelated; }
.pair-body .cap { font-size: 11px; color: rgba(28,18,64,.6); }
.pair-body .ips { font: 11px/1.4 var(--font-mono); color: rgba(28,18,64,.6); }

/* Windows taskbar corner, tray menu, flyout (generic, no vendor logo) */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: rgba(20, 12, 44, 0.82); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 10px; color: #fff; font-size: 12px; }
.tray-ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 5px; }
.tray-ico.on { background: rgba(255,255,255,.14); }
.tray-ico img { width: 18px; height: 18px; border-radius: 4px; }
.tray-ico svg { width: 16px; height: 16px; opacity: .85; }
.clock { text-align: right; line-height: 1.25; padding: 0 6px; }
.win-menu {
  position: absolute; right: 70px; bottom: 54px; width: 440px; padding: 4px; background: #f3f1f8; color: #1c1240; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 14px 40px rgba(10,4,30,.5); font-size: 13px;
}
.win-menu .menu-item { padding: 6px 12px 6px 30px; border-radius: 4px; }
.win-menu .menu-item .chk { left: 10px; }
.win-menu .menu-item.hl { background: #e2dcf2; color: #1c1240; }
.win-menu .submenu { right: calc(100% + 2px); background: #f3f1f8; border-radius: 8px; width: 290px; }
.win-menu .menu-sep { margin: 4px 8px; }
.win-flyout {
  position: absolute; left: 6%; top: 40px; width: 320px; height: 380px; background: #fff; color: #202020; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.14), 0 24px 60px rgba(10,4,30,.5); display: grid; justify-items: center; align-content: start; padding-top: 10px; gap: 4px; text-align: center;
}
.win-flyout h4 { margin: 2px 0 0; font-size: 18px; font-weight: 600; }
.win-flyout .pair-code { font-size: 44px; margin: 6px 0 4px; color: #000; }
.win-flyout .pair-qr { width: 190px; height: 190px; }
.win-flyout .ips { font-size: 13px; color: #404040; line-height: 1.4; margin-top: 4px; }
.scene-cap { position: absolute; left: 16px; bottom: 58px; max-width: 34ch; color: rgba(255,255,255,.82); font-size: 0.85rem; }
.host-scene.mac .scene-cap { bottom: 16px; }
.host-scene.win .scene-cap { left: auto; right: 16px; top: 16px; bottom: auto; text-align: right; }
@media (max-width: 860px) {
  .host-scene { min-height: 0; padding-bottom: 60px; }
  .mac-menu, .mac-pair, .win-menu, .win-flyout { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 16px auto 0; max-width: calc(100% - 24px); }
  .mac-menu, .win-menu { width: 100%; max-width: 400px; }
  .submenu { position: relative; right: auto !important; top: 0; width: auto; margin: 4px 0 4px 18px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
  .host-scene.mac { padding-bottom: 70px; }
  .scene-cap { position: static; margin: 16px; display: block; }
  .host-scene.win .scene-cap { margin-bottom: 0; text-align: left; }
  .menu-item { white-space: normal; flex-wrap: wrap; }
  .menu-item.sub.hl { background: transparent; color: inherit; }
  .menu-item.sub.hl::after { display: none; }
  .submenu { flex-basis: 100%; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; font: 800 1.3rem/1 var(--font-display); color: var(--accent-ink); background: var(--accent);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}
.steps p { color: var(--ink-2); margin-top: 8px; }

/* ---------- Price ---------- */
.price { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .price { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.price-lines { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.price-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.price-lines li span:first-child { font-weight: 650; }
.price-lines li span:last-child { color: var(--ink-2); text-align: right; }

/* ---------- Download ---------- */
.dl { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dl > div + div { border-left: 1px solid var(--line); } }
.dl > div { padding: 28px clamp(0px, 2vw, 28px) 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .dl > div + div { padding-left: 28px; } }
.dl h3 { margin-bottom: 6px; }
.dl .req { color: var(--ink-3); font-size: var(--step--1); margin-bottom: 18px; }
.dl ul { margin: 18px 0 0; padding-left: 1.1em; color: var(--ink-2); font-size: 0.95rem; }
.dl ul li + li { margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 1.12rem/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 44rem; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 0.92rem; color: var(--ink-2); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-foot h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot .fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-3); }

/* Motion: the hero trackpad demo is the one moving element; nothing waits on an entrance animation. */
@media (prefers-reduced-motion: no-preference) { .js [data-parallax] { will-change: transform; } }

/* ---------- Document pages (privacy, acknowledgements) ---------- */
.doc { padding: clamp(40px, 7vw, 88px) 0; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: var(--step-3); font-weight: 850; letter-spacing: -0.035em; line-height: 1; margin-bottom: 18px; }
.doc h2 { font-size: var(--step-2); margin: 2em 0 0.5em; letter-spacing: -0.02em; }
.doc h3 { margin: 1.6em 0 0.4em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.draft-banner { border: 2px dashed var(--accent); border-radius: 14px; padding: 14px 18px; background: var(--tint); color: var(--ink); margin: 0 0 28px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 1em 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.doc pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; font-size: 0.82rem; line-height: 1.45; white-space: pre-wrap; }
.doc pre code { background: none; padding: 0; }
.sprite { position: absolute; }
.landscape-row { margin-top: 64px; }
.landscape-fig { margin: 0; }
.pad-note { margin-top: 20px; }
.private-lede { margin-top: 14px; font-size: 1.05rem; color: var(--ink-2); }
.net-diagram { margin-top: 28px; }
.net-diagram .code { font-family: var(--font-mono); letter-spacing: 0.08em; }
.foot-tag { margin-top: 14px; max-width: 38ch; }

.prose h2, .split > div > h2 { margin-bottom: 22px; }
.landscape-fig .phone { max-width: 860px; }
.doc td { overflow-wrap: anywhere; }

/* Demo video */
.demo-video { max-width: 960px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #0b0a14; box-shadow: 0 20px 60px rgba(30, 10, 80, .25); }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
