/* Wristper — one signal path, from wrist to cursor.
   Tokens first; every colour, type role and spacing step lives here. */

@font-face {
  font-family: "Sora";
  src: url("./fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #05070a;
  --surface: #0d1117;
  --elevated: #151b23;
  --text: #f4f7fa;
  --muted: #8e99a8;
  --faint: #7b8694;
  --signal: #5ad7ff;
  --rec: #ff4d57;
  --ok: #32e6a1;
  --note: #ffb224; /* Voice notes only: the watch's highlight gold. */
  --hair: rgba(244, 247, 250, 0.08);
  --hair-strong: rgba(244, 247, 250, 0.16);
  --signal-soft: rgba(90, 215, 255, 0.14);

  --font-display: "Sora", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-body: "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 14vw, 180px);
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  /* Names used by the support, privacy, watch and thanks pages (legal.css). */
  --page-inset: var(--gutter);
  --sans: var(--font-body);
  --ink: var(--text);
  --olive: #b9c2cd;
  --stone: var(--muted);
  --forest: var(--signal);
  --ivory: var(--surface);
  --line: var(--hair-strong);
  --line-soft: var(--hair);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-feature-settings: "zero" 0;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #ffffff; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-large { min-height: 56px; padding: 0 28px; font-size: 17px; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 10, 0.96);
  border-bottom: 1px solid var(--hair);
}
.masthead-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark-glyph { width: 26px; height: 26px; color: var(--text); }
.masthead-nav { display: flex; gap: 28px; margin-left: 8px; }
.masthead-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.masthead-nav a:hover { color: var(--text); }
.masthead-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.language-menu {
  position: relative;
  color: var(--text);
  font-size: 14px;
}
.language-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  background: transparent;
  cursor: pointer;
  list-style: none;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:hover,
.language-menu summary:focus-visible,
.language-menu[open] summary { border-color: var(--muted); }
.language-menu summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.language-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}
.language-menu[open] .language-chevron { transform: translateY(2px) rotate(225deg); }
.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--hair-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.language-options a {
  display: block;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.language-options a:hover,
.language-options a:focus-visible { color: var(--text); background: var(--elevated); outline: none; }
.language-options a[aria-current="page"] { color: var(--text); }

/* ---------- Spine: the page-long signal path ---------- */

.spine {
  position: fixed;
  top: 64px;
  bottom: 0;
  left: max(16px, calc((100vw - var(--max)) / 2 - 36px));
  width: 1px;
  background: var(--hair);
  z-index: 1;
  pointer-events: none;
  display: none;
}
.spine-fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: var(--signal);
  transform-origin: top;
  transform: scaleY(var(--spine, 0));
  opacity: 0.7;
}
@media (min-width: 1320px) { .spine { display: block; } }

/* ---------- Shared section frame ---------- */

main > section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.fine { color: var(--faint); font-size: 14px; line-height: 1.55; }

.claim { max-width: 760px; margin: 0 auto clamp(36px, 4.5vw, 56px); text-align: center; }
.claim-body { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); text-wrap: pretty; }
.claim .text-link { display: inline-block; margin-top: 18px; }
.text-link { color: var(--signal); font-size: 16px; text-decoration: none; padding: 10px 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.next {
  display: table;
  margin: clamp(32px, 4vw, 48px) auto 0;
  padding: 10px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.next span[aria-hidden] { color: var(--signal); }
.next:hover { color: var(--text); }

.hero { text-align: center; padding-top: clamp(24px, 2.5vw, 36px) !important; }
.hero-name { font-family: var(--font-display); font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; color: var(--signal); margin-bottom: 14px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.8vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-wrap: balance;
}
.hero-title span { display: block; }
.hero-title-dim { color: var(--muted); }
.hero-sub { margin: 20px auto 0; max-width: 560px; color: #b9c2cd; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; margin-top: 14px; }
.hero-note { margin-top: 14px; color: var(--faint); font-size: 11px; }

/* ---------- Two apps: the install steps in the hero ---------- */
.two-apps { max-width: 820px; margin: clamp(24px, 3vw, 36px) auto 0; }
.two-apps-title { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.two-apps-sub { margin: 8px auto 0; max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.app-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; text-align: left; }
.app-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.app-step-num {
  display: grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  color: var(--signal);
  font-size: 14px;
}
.app-step-name { font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.25; }
.app-step-meta { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.app-step-tag { margin-top: 6px; color: var(--faint); font-size: 11px; }
.app-step-alt { grid-column: 1 / -1; justify-self: center; margin: 0; padding: 4px 0; color: var(--faint); font-size: 14px; line-height: 1.45; text-align: center; text-wrap: balance; }
.app-step .btn { grid-column: 1 / -1; justify-content: center; white-space: normal; text-align: center; }
.app-step .btn[hidden] { display: none; }
.app-step .copy-mac:not(.btn) { grid-column: 1 / -1; justify-self: center; min-block-size: 24px; padding: 4px 0; color: var(--signal); font-size: 15px; }
.app-step .copy-mac:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.two-apps-note {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 18px;
  border: 1px solid var(--hair-strong);
  border-radius: 22px;
  font-size: 16px;
  font-weight: 550;
  text-wrap: balance;
}
.two-apps .fine { margin: 8px 0 0; }
.two-apps .fine:empty { display: none; }
.two-apps .mac-link-fallback { margin-top: 10px; }
@media (max-width: 640px) {
  .btn-large { white-space: normal; justify-content: center; text-align: center; }
  .app-steps { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .app-step { padding: 14px; gap: 10px 12px; }
}
.hero .lab { max-width: 980px; margin: clamp(24px, 2.5vw, 36px) auto 0; text-align: left; }
.hero .lab-bench { padding: 16px 28px; }
.hero .lab .watch { margin: 36px 0; }

/* ---------- The lab (hero demo) ---------- */

.lab {
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}
.lab-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--hair);
}
.lab-label { color: var(--muted); font-size: 10.5px; }

.lab-bench {
  display: grid;
  grid-template-columns: 124px minmax(150px, 1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 0;
  padding: 36px 28px;
}

.lab-watch { display: grid; justify-items: center; gap: 16px; }

.watch {
  --case: linear-gradient(145deg, #ecebe7 0%, #b4b1ab 20%, #6e6b66 48%, #a9a6a0 74%, #f2f0ec 100%);
  position: relative;
  width: 108px;
  height: 130px;
  border-radius: 34px;
  padding: 4px;
  background: var(--case);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    inset 0 0 0 2px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 34px 50px -20px rgba(0, 0, 0, 0.95),
    0 18px 80px -12px rgba(90, 215, 255, 0.18);
  margin: 56px 0;
  isolation: isolate;
}
/* Sport Loop band: woven texture, fading out above and below the case */
.watch::before, .watch::after {
  content: "";
  position: absolute;
  left: 13%; right: 13%;
  height: 66px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #12161c, #2f3640 50%, #12161c);
  z-index: -1;
}
.watch::before { top: -58px; border-radius: 12px 12px 0 0; -webkit-mask-image: linear-gradient(#0000, #000 60%); mask-image: linear-gradient(#0000, #000 60%); }
.watch::after { bottom: -58px; border-radius: 0 0 12px 12px; -webkit-mask-image: linear-gradient(#000 40%, #0000); mask-image: linear-gradient(#000 40%, #0000); }
/* Digital Crown with ridges, side button below it */
.watch-crown {
  position: absolute;
  right: -6px; top: 36px;
  width: 7px; height: 22px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(0deg, #77746f 0 1px, #dcd9d3 1px 2.5px);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6), 0 0 6px rgba(90, 215, 255, 0.15);
}
.watch-crown::after {
  content: "";
  position: absolute;
  left: -1px; top: 32px;
  width: 4px; height: 22px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #8a8781, #dad7d1);
}
.watch-screen {
  position: relative;
  height: 100%;
  border-radius: 30px;
  border: 4px solid #030304;
  background: radial-gradient(120% 90% at 50% 0%, #0b0d10, #000 60%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  padding: 7px 4px;
  overflow: hidden;
}
/* Glass reflection */
.watch-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.03) 26%, transparent 42%);
  pointer-events: none;
}
.watch-time { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.watch-wave { display: flex; align-items: center; gap: 2px; height: 40px; }
.watch-wave i {
  width: 3px;
  height: 36px;
  border-radius: 2px;
  background: var(--faint);
  transform: scaleY(0.12);
  transform-origin: center;
}
.lab[data-state="record"] .watch-wave i { background: var(--rec); }
.lab[data-state="relay"] .watch-wave i,
.lab[data-state="model"] .watch-wave i { background: var(--signal); }
.watch-status { font-size: 9px; letter-spacing: 0.02em; text-transform: none; color: var(--muted); text-align: center; line-height: 1.2; }
.lab[data-state="record"] .watch-status { color: var(--rec); }
.lab[data-state="done"] .watch-status { color: var(--ok); }

.lab-path { position: relative; height: 120px; margin: 0 -6px; }
.lab-path-line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--hair-strong);
}
.lab-path-fill {
  position: absolute;
  inset: 0;
  background: var(--signal);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.lab-node {
  position: absolute;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translate(-50%, -14px);
  color: var(--faint);
  transition: color 0.3s;
}
.lab-node svg {
  width: 28px; height: 28px;
  padding: 5px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: border-color 0.3s;
}
.lab-node .mono { font-size: 9.5px; text-align: center; max-width: 92px; line-height: 1.3; }
.lab-node-relay { left: 30%; }
.lab-node-model { left: 72%; transform: translate(-50%, calc(-100% + 14px)); }
.lab-node-model .mono { order: -1; }
.lab-node.is-lit { color: var(--signal); }
.lab-node.is-lit svg { border-color: var(--signal); }
.lab-pulse {
  position: absolute;
  top: 50%;
  left: calc(var(--p, 0) * 100%);
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
  opacity: 0;
}
.lab[data-state="relay"] .lab-pulse,
.lab[data-state="model"] .lab-pulse { opacity: 1; }

.lab-mac { min-width: 0; }
.menubar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 0 4px 10px;
  color: var(--muted);
  font-size: 10px;
}
.menubar-glyph { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.lab[data-state="record"] .menubar-glyph { border-color: var(--rec); background: var(--rec); }
.lab[data-state="relay"] .menubar-glyph,
.lab[data-state="model"] .menubar-glyph,
.lab[data-state="type"] .menubar-glyph { border-color: var(--signal); background: var(--signal); }
.lab[data-state="done"] .menubar-glyph { border-color: var(--ok); background: var(--ok); }

.mac-window {
  border-radius: 12px;
  background: var(--elevated);
  border: 1px solid var(--hair);
  overflow: hidden;
}
.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hair);
}
.mac-titlebar span { width: 9px; height: 9px; border-radius: 50%; background: #2e3640; }
.mac-titlebar strong {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mac-body { padding: 16px; display: grid; gap: 14px; }
.mac-context { font-size: 13px; color: var(--muted); }
.mac-field {
  min-height: 92px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--hair-strong);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.3s;
}
.lab[data-state="type"] .mac-field { border-color: rgba(90, 215, 255, 0.5); }
.lab[data-state="done"] .mac-field { border-color: rgba(50, 230, 161, 0.45); }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--signal);
  animation: blink 1.1s steps(2, start) infinite;
}

.lab-steps {
  list-style: none;
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  font-size: 10.5px;
  color: var(--faint);
}
.lab-steps li { display: flex; align-items: center; gap: 8px; transition: color 0.3s; }
.lab-steps li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.lab-steps li.is-on { color: var(--text); }
.lab-steps li[data-step="record"].is-on::before { background: var(--rec); border-color: var(--rec); }
.lab-steps li[data-step="relay"].is-on::before,
.lab-steps li[data-step="model"].is-on::before { background: var(--signal); border-color: var(--signal); }
.lab-steps li[data-step="cursor"].is-on::before { background: var(--ok); border-color: var(--ok); }

@keyframes blink { to { visibility: hidden; } }
.lab .watch { width: 120px; height: 144px; border-radius: 38px; }
.lab .watch-screen { border-radius: 34px; }
.lab .watch-crown { top: 40px; }

.acoustic { margin: 0; }
.acoustic-map { width: 100%; height: auto; overflow: visible; }
.acoustic-map .floor { stroke: var(--hair-strong); stroke-width: 1; }
.acoustic-map .person,
.acoustic-map .spot {
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: stroke 0.4s;
}
.acoustic-map .spot.is-hearing { stroke: var(--signal); }
.acoustic-map .person { stroke: var(--muted); }
.rings path {
  stroke: var(--signal);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.rings path.is-on { opacity: var(--o, 0.6); }

.acoustic-labels { position: relative; height: 34px; margin-top: 10px; color: var(--muted); font-size: 10.5px; }
.al { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.al-watch { left: 14.6%; }
.al-laptop { left: 49%; }
.al-desk { left: 86.5%; }

.acoustic-control {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 18px 56px;
  align-items: start;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
}
.acoustic-control label { color: var(--muted); grid-column: 1; }
.acoustic-control input { grid-column: 1; }
.acoustic-scale { grid-column: 1; display: flex; justify-content: space-between; white-space: pre-line; color: var(--faint); font-size: 10.5px; }
.hears {
  grid-column: 2;
  grid-row: 1 / span 3;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.hears li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; }
.hears b { margin-left: auto; font-weight: 500; color: var(--faint); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.hears-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--faint); flex: none; }
.hears li.is-hearing { color: var(--text); }
.hears li.is-hearing b { color: var(--signal); }
.hears li.is-hearing .hears-dot { background: var(--signal); border-color: var(--signal); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--hair-strong); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 2px; background: var(--hair-strong); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--signal);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--signal);
}

.stations {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.stations::before {
  content: "";
  position: absolute;
  left: 12%; right: 12%;
  top: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--rec), var(--signal) 35%, var(--signal) 70%, var(--ok));
}
.station-visual {
  position: relative;
  z-index: 1;
  height: 160px;
  border-radius: var(--radius);
  border: 1px solid var(--hair-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.station-num { color: var(--signal); margin-top: 20px; }
.station h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.sv-whisper { grid-template-rows: auto auto; align-content: center; gap: 14px; }
.sv-rec { display: flex; align-items: center; gap: 6px; color: var(--rec); font-size: 10.5px; justify-self: center; }
.sv-rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sv-bars { display: flex; align-items: center; gap: 4px; height: 64px; }
.sv-bars i { width: 4px; height: 64px; border-radius: 2px; background: var(--rec); transform: scaleY(var(--h, 0.3)); animation: bar 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.09s); }
@keyframes bar { from { transform: scaleY(calc(var(--h) * 0.35)); } to { transform: scaleY(var(--h)); } }

.sv-relay { grid-template-columns: auto auto; gap: 22px; }
.sv-hex { font-size: 12px; line-height: 1.9; color: var(--muted); text-transform: lowercase; }
.sv-lock { width: 42px; height: 42px; fill: none; stroke: var(--signal); stroke-width: 1.4; stroke-linecap: round; }

.sv-model { grid-template-rows: auto auto; gap: 18px; align-content: center; }
.sv-chip { padding: 18px 22px; border-radius: 12px; border: 1px solid var(--signal); color: var(--text); }
.sv-chip .mono { font-size: 11px; }
.sv-meter { width: 160px; height: 2px; background: var(--signal); justify-self: center; }

.sv-cursor { grid-auto-rows: auto; align-content: center; gap: 10px; padding: 0 14px; place-items: stretch; }
.sv-case {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hair-strong);
  background: var(--elevated);
}
.sv-tag { color: var(--muted); font-size: 10px; }
.sv-state { font-size: 10px; display: flex; gap: 6px; align-items: center; }
.sv-case.is-ok { border-color: rgba(50, 230, 161, 0.45); }
.sv-case.is-ok .sv-state { color: var(--ok); }
.sv-case.is-ok .sv-state::before { content: "✓"; }
.sv-case.is-wait { border-color: rgba(90, 215, 255, 0.4); }
.sv-case.is-wait .sv-state { color: var(--signal); }
@media (max-width: 999px) {
  .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .stations::before { display: none; }
}


.private-figure {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.private-stats { display: grid; gap: 40px; }
.big-number {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--signal);
  white-space: nowrap;
}
.big-unit { margin-left: 0.12em; font-size: 0.4em; letter-spacing: 0; }
.big-label { margin-top: 14px; color: var(--muted); }
.stat .fine { max-width: 340px; margin: 10px auto 0; font-size: 13px; }
.private-nos { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.private-nos li { padding: 6px 12px; border: 1px solid var(--hair-strong); border-radius: 999px; font-size: 14px; color: #b9c2cd; }
@media (min-width: 760px) {
  .private-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat + .stat { border-left: 1px solid var(--hair); }
  .stat:only-child { grid-column: 1 / -1; }
}

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--surface);
}
.plan-paid { border-color: rgba(90, 215, 255, 0.4); box-shadow: 0 30px 80px -40px rgba(90, 215, 255, 0.35); }
.plan-name { font-family: var(--font-display); font-size: 22px; }
.plan-price { margin-top: 10px; font-family: var(--font-display); font-size: clamp(40px, 4vw, 52px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.plan-price s { margin-left: 8px; font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--faint); }
.plan-tag { margin-top: 10px; color: var(--signal); }
.plan-list { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 10px; color: #b9c2cd; }
.plan-list li { display: flex; gap: 10px; }
.plan-list li::before { content: "✓"; color: var(--ok); }
.plan-action { margin-top: auto; align-self: flex-start; }
.plans-fine { margin: 16px auto 0; text-align: center; }

.cost { max-width: 920px; margin: 56px auto 0; }
.cost-title { color: var(--muted); margin-bottom: 16px; }
.cost-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cost-bars li { display: grid; grid-template-columns: 140px minmax(0, 1fr) 96px; align-items: center; gap: 16px; color: var(--muted); font-size: 15px; }
.cost-bar { position: relative; height: 8px; border-radius: 4px; background: var(--hair); overflow: hidden; }
.cost-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: inherit; background: var(--faint); }
.cost-bars strong { font-family: var(--font-mono); font-size: 14px; font-weight: 500; text-align: right; color: var(--text); }
.cost-bars .is-us { color: var(--text); }
.cost-bars .is-us .cost-bar::after { background: var(--signal); }
.cost-bars .is-us strong { color: var(--signal); }
.cost .fine { margin-top: 16px; }

.faq-grid { display: grid; gap: 56px; max-width: 1080px; margin: 0 auto; }

.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-of-type { border-top: 1px solid var(--hair); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 680px; }
.specs-title { color: var(--muted); font-weight: 400; margin-bottom: 14px; }
.specs-list { margin: 0; border-top: 1px solid var(--hair); }
.specs-list div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.specs-list dt { color: var(--text); padding-top: 3px; }
.specs-list dd { margin: 0; color: #b9c2cd; font-size: 15px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }

.finale { text-align: center; padding-bottom: var(--section) !important; }
.finale-path {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 0 auto 56px;
}
.fp-line { flex: 1; height: 1px; background: var(--hair-strong); position: relative; overflow: hidden; }
.fp-fill { position: absolute; inset: 0; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 0.5s linear; }
.fp-node {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--hair-strong);
  position: relative;
  transition: border-color 0.3s;
}
.fp-node::after { content: ""; position: absolute; inset: 0; margin: auto; transition: background-color 0.3s, border-color 0.3s; }
.fp-watch { border-radius: 12px; }
.fp-watch::after { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.fp-lock::after { width: 12px; height: 9px; border: 1.5px solid var(--faint); border-radius: 2px; top: 6px; }
.fp-chip::after { width: 12px; height: 12px; border: 1.5px solid var(--faint); border-radius: 3px; }
.fp-caret::after { width: 2px; height: 16px; background: var(--faint); }
.finale-path.is-run .fp-line:nth-of-type(2) .fp-fill { transform: scaleX(1); transition-delay: 0.5s; }
.finale-path.is-run .fp-line:nth-of-type(4) .fp-fill { transform: scaleX(1); transition-delay: 1.2s; }
.finale-path.is-run .fp-line:nth-of-type(6) .fp-fill { transform: scaleX(1); transition-delay: 1.9s; }
.finale-path.is-run .fp-watch::after { background: var(--rec); }
.finale-path.is-run .fp-lock { border-color: var(--signal); transition-delay: 1s; }
.finale-path.is-run .fp-lock::after { border-color: var(--signal); transition-delay: 1s; }
.finale-path.is-run .fp-chip { border-color: var(--signal); transition-delay: 1.7s; }
.finale-path.is-run .fp-chip::after { border-color: var(--signal); transition-delay: 1.7s; }
.finale-path.is-run .fp-caret { border-color: var(--ok); transition-delay: 2.4s; }
.finale-path.is-run .fp-caret::after { background: var(--ok); transition-delay: 2.4s; animation: blink 1.1s 2.6s steps(2, start) infinite; }

.finale-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 820px;
  margin: 0 auto;
  text-wrap: balance;
}
.finale-body { margin: 24px auto 0; max-width: 520px; color: var(--muted); font-size: 18px; }
.finale-apps { max-width: 520px; margin: 10px auto 0; }
.setup-film { margin: 72px auto 0; max-width: 880px; }
.setup-film-title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.setup-film-body { margin: 12px auto 28px; max-width: 620px; color: var(--muted); font-size: 16px; }
.setup-film .fine { margin-top: 14px; }
.finale-contact { margin-top: 56px; color: var(--muted); font-size: 15px; }
.finale-contact a { color: var(--text); text-underline-offset: 3px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--hair); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: grid;
  gap: 22px;
}
.footer-brand { font-family: var(--font-display); font-weight: 600; }
.footer-tag { font-family: var(--font-body); font-weight: 400; color: var(--muted); margin-left: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 26px; }
.footer-links a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: var(--text); }
.footer-small { color: var(--faint); font-size: 10.5px; text-transform: none; letter-spacing: 0.02em; }

/* ---------- Traditional Chinese ---------- */

html[lang="zh-Hant"] .hero-title,
html[lang="zh-Hant"] .section-title,
html[lang="zh-Hant"] .finale-title,
html[lang="zh-Hant"] .station h3 { letter-spacing: 0; line-height: 1.22; font-weight: 600; }
html[lang="zh-Hant"] .hero-title { font-size: clamp(38px, 4.6vw, 68px); }
html[lang="zh-Hant"] .mono { text-transform: none; }
html[lang="zh-Hant"] body { line-height: 1.75; }
html[lang="zh-Hant"] .mono { letter-spacing: 0.06em; }
/* Headings keep phrases together: keep-all breaks them only at punctuation and spaces. */
html[lang="zh-Hant"] :is(.hero-title, .section-title, .finale-title, .station h3, .setup-film-title, .two-apps-title, .app-step-name) { word-break: keep-all; overflow-wrap: anywhere; }
/* On the narrowest phones a phrase can be wider than the line; let the line break normally there instead of anywhere. */
@media (max-width: 360px) {
  html[lang="zh-Hant"] :is(.hero-title, .section-title, .finale-title, .station h3, .setup-film-title, .two-apps-title, .app-step-name) { word-break: normal; }
}
/* Body copy breaks like normal Chinese text. With keep-all a whole sentence is one unbreakable word, overflow-wrap then breaks it anywhere (WebKit even before 。), so a line could start with punctuation. */
html[lang="zh-Hant"] :is(.hero-sub, .claim-body, .specs-list dd, .fine, .finale-contact, .setup-film-body, .two-apps-sub, .two-apps-note, .app-step-meta) { word-break: normal; overflow-wrap: anywhere; }
html[lang="zh-Hant"] :is(.hero-sub, .claim-body) { text-wrap: balance; }
/* Kinsoku: no line starts with 。，、）」 or similar. strict applies the full no-start-of-line list. */
html[lang="zh-Hant"] body { line-break: strict; }

/* ---------- Tablet and phone ---------- */

@media (max-width: 999px) {
  .acoustic-control { grid-template-columns: 1fr; }
  .hears { grid-column: 1; grid-row: auto; margin-top: 12px; }
}

@media (max-width: 860px) {
  .masthead-nav { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead-inner { gap: 12px; height: 58px; }
  .masthead .btn-small { padding: 0 14px; }
  html { scroll-padding-top: 70px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

  .lab-bar { padding: 10px 14px; }
  .hero .lab-bench { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px 14px; }
  .lab-path { display: none; }
  .hero .lab .watch { width: 84px; height: 102px; border-radius: 28px; margin: 30px 0; }
  .hero .lab .watch-screen { border-radius: 24px; }
  .hero .lab .watch-crown { top: 28px; }
  .menubar { padding-bottom: 8px; }
  .mac-body { padding: 12px; gap: 10px; }
  .mac-field { min-height: 66px; font-size: 14.5px; }
  .lab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px; }

  .acoustic-labels { height: auto; display: grid; gap: 6px; margin-top: 16px; }
  .al { position: static; transform: none; }
  .acoustic-map { margin: 0 -8px; width: calc(100% + 16px); max-width: none; }

  .stations { grid-template-columns: 1fr; row-gap: 32px; }
  .station-visual { height: 124px; }
  .plans { grid-template-columns: 1fr; }
  .cost-bars li { grid-template-columns: 100px minmax(0, 1fr) 80px; gap: 10px; font-size: 14px; }
  .specs-list div { grid-template-columns: 1fr; gap: 4px; }
  .finale-path { margin-bottom: 44px; }
  .footer-tag { display: block; margin: 4px 0 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .caret { animation: none !important; }
}

/* ---------- Support, privacy, watch and thanks pages ---------- */

.site-shell { min-height: 100vh; }
.site-header { border-bottom: 1px solid var(--hair); }
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.brand-period { color: var(--signal); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.language-switch {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}
.legal-main h1, .legal-main h2 { font-family: var(--font-display); letter-spacing: -0.01em; }

.acoustic-map .dims path { fill: none; stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 4; }
.acoustic-map .dims text { fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.04em; }

.acoustic-map .head { transform-box: fill-box; transform-origin: center; }
.acoustic-map .nose { transition: opacity 0.2s 0.22s; }
.acoustic-map .nose-toward, .acoustic-map .notice { opacity: 0; }
.acoustic-map .spot-desk.is-hearing .nose-away { opacity: 0; }
.acoustic-map .spot-desk.is-hearing .nose-toward { opacity: 1; }
.acoustic-map .spot-desk.is-hearing .head { animation: head-turn 0.5s var(--ease); }
.acoustic-map .notice { stroke-linecap: round; stroke-width: 2.4; transition: opacity 0.2s 0.3s; }
.acoustic-map .spot-desk.is-hearing .notice { opacity: 1; }
@keyframes head-turn { 50% { transform: scaleX(0.3); } }
@media (prefers-reduced-motion: reduce) { .acoustic-map .spot-desk.is-hearing .head { animation: none; } }

.real-video { position: relative; margin: 0; width: 100%; }
.real-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 28px; border: 1px solid var(--hair-strong); background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.02); }
.real-sound { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(5, 7, 10, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text); font-size: 13px; cursor: pointer; }
.real-sound:hover { border-color: var(--signal); }
.real-video video::cue { background: rgba(5, 7, 10, 0.78); color: #f4f7fa; font-family: var(--font-body); font-size: 0.9em; line-height: 1.4; }

.see-kicker { margin: 0 auto 16px; text-align: center; color: var(--muted); }
.see-legend { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; color: var(--muted); font-size: 11px; }
.see-legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.is-rec { background: var(--rec); }
.dot.is-ok { background: var(--ok); }
.dot.is-signal { background: var(--signal); }
.see-film-note { max-width: 620px; margin: 14px auto clamp(48px, 6vw, 72px); text-align: center; }
/* The promo film sits in the hero, between the headline and the two app cards. */
.hero-film { max-width: 960px; margin: clamp(24px, 3vw, 36px) auto 0; }
.hero-film .see-film-note { margin: 14px auto clamp(28px, 4vw, 44px); }

[hidden] { display: none !important; }
.copy-mac { cursor: pointer; }
.copy-mac:not(.btn) { border: 0; padding: 0; background: none; font: inherit; }
.mac-link-fallback { width: min(100%, 420px); padding: 10px; border: 1px solid var(--hair-strong); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12px; }
.cost-sources a { text-decoration: underline; text-underline-offset: 3px; }
.video-fallback { padding: 12px; font-size: 14px; }

.detail-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.detail {
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 24px;
}
.detail-tag { color: var(--signal); }
.detail h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 10px;
}
.detail p:last-child { margin-top: 10px; color: var(--muted); }
.detail-more { text-align: center; margin-top: 28px; }

/* ---------- Voice notes ---------- */

.notes-kicker { color: var(--note); margin-bottom: 14px; }
.notes-figure {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.notes-watches { display: flex; gap: 14px; }
.notes-watch {
  width: 156px;
  padding: 10px;
  border-radius: 42px;
  border: 1px solid var(--hair-strong);
  background: #000;
  box-shadow: 0 0 0 6px var(--surface), 0 20px 50px rgba(255, 178, 36, 0.08);
}
.notes-watch img { width: 100%; height: auto; border-radius: 30px; }
.notes-mac {
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.notes-mac img { width: 100%; height: auto; }
.notes-capture { max-width: 620px; margin: 14px auto clamp(32px, 4vw, 48px); text-align: center; }
.notes-grid .detail-tag { color: var(--note); }
.notes-fine { max-width: 720px; margin: 10px auto 0; text-align: center; }
@media (max-width: 999px) {
  .notes-figure { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 640px) {
  .notes-watch { width: 132px; padding: 8px; border-radius: 36px; }
  .notes-watch img { border-radius: 26px; }
}
