/*
 * DSH-Mizar web — the page.
 *
 * Rules of the house:
 *   - Every rounded surface is `.sq` (a continuous corner, see squircle.js).
 *     Only true circles and capsules use border-radius.
 *   - Motion moves `transform`, `translate`, `scale` and `opacity` — never
 *     layout — on spring easings from core.js.
 *   - Presses respond on pointer-down; releases spring back.
 */

@property --glow { syntax: '<number>'; inherits: false; initial-value: 0; }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
.reduced { scroll-behavior: auto; }
body {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
:lang(zh) body { letter-spacing: 0; }
/* Film grain: a few percent of noise keeps large dark gradients from banding. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] body::after { opacity: .025; }

::selection { background: var(--sel); color: var(--text); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, .mono, kbd { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono { letter-spacing: 0; }
code { font-size: .9em; letter-spacing: 0; }
kbd { font-size: .85em; padding: 0 .35em; border: 1px solid var(--line-strong); }
.dim { color: var(--text-2); }
.small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 300;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent);
  border-radius: 999px; font-weight: 600; text-decoration: none;
  translate: 0 -200%; transition: translate var(--dur-snappy) var(--ease-snappy);
}
.skip:focus { translate: 0 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ---------- Type ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 700; }
h1 {
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1;
  letter-spacing: -0.042em;
  margin-bottom: 26px;
}
h2 {
  font-size: clamp(36px, 4.9vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
:lang(zh) h1 { letter-spacing: -0.02em; line-height: 1.08; }
:lang(zh) h2 { letter-spacing: -0.015em; line-height: 1.12; }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #8BE3FF 38%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .06em; /* descenders clip without it */
}
[data-theme="light"] .grad { background-image: linear-gradient(100deg, #0A9FD8 0%, #1AB5EA 40%, #2E6BFF 100%); }
.lede {
  margin: 0;
  max-width: 36em;
  color: var(--text-2);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font: 600 13px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
:lang(zh) .eyebrow { letter-spacing: .02em; }
.cap {
  margin: 0;
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3);
}
.fine {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.5;
}
.fine .ic { font-size: 17px; margin-top: 1px; }

.sec { position: relative; padding-block: clamp(96px, 13vw, 168px); }
.sec-head { max-width: 660px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lede { margin-inline: auto; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- Icons & the mark ---------- */

.ic {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  overflow: visible;
}
symbol .fill { fill: currentColor; stroke: none; }
symbol .spokes path { stroke-width: 2.4; }
.spin { animation: spin 1s steps(8) infinite; }
@keyframes spin { to { rotate: 360deg; } }

.mark { width: 1.48em; height: 1em; flex: none; overflow: visible; }
.mark path { fill: none; stroke: currentColor; stroke-width: 7.4; }
.mark .m-a3 { stroke: var(--mark-accent, #3CCBF4); }
.mark .m-dot { fill: currentColor; }
.mark path, .mark .m-dot { transition: stroke .4s, fill .4s, opacity .4s; }

/* The arcs connect, dot outward, the first time they are seen. */
.mark-connect > * { opacity: .16; animation: arcOn .5s var(--ease-out) forwards; }
.mark-connect .m-dot { animation-delay: .15s; }
.mark-connect .m-a1 { animation-delay: .3s; }
.mark-connect .m-a2 { animation-delay: .45s; }
.mark-connect .m-a3 { animation-delay: .6s; }
@keyframes arcOn { to { opacity: 1; } }

/* ---------- Continuous corners ---------- */

.sq { position: relative; border-radius: calc(var(--r) * 1px); }
.sq.sq-on { border-radius: 0; }
.sq-edge {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 4;
}
/* Stroked on the path, half of it outside the clip: a crisp inner hairline. */
.sq-edge path { fill: none; stroke: var(--edge, var(--line)); stroke-width: 2; transition: stroke .25s, stroke-width .25s; }
.g-hi { stop-color: var(--glass-hi); }
.g-lo { stop-color: var(--glass-lo); }
.g-tint { stop-color: var(--tint-c, var(--accent-line)); }
/* Focus follows the corner instead of drawing a square around it. */
.sq:focus-visible { outline: none; }
.sq:focus-visible > .sq-edge path, .sq:focus-within > .sq-edge path { stroke: var(--accent); stroke-width: 4; }

/* Surfaces that catch the light where the pointer is. */
.card, .panel, .stats, .piece, .cta-card, .dev-android, .toggle-row {
  transition: --glow .6s var(--ease-out);
  background:
    radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgb(60 203 244 / calc(var(--glow) * .11)), transparent 62%),
    var(--card-tint, linear-gradient(transparent, transparent)),
    linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
}
.lit { --glow: 1; }
[data-theme="light"] .card, [data-theme="light"] .panel, [data-theme="light"] .stats,
[data-theme="light"] .piece, [data-theme="light"] .cta-card, [data-theme="light"] .dev-android,
[data-theme="light"] .toggle-row {
  background:
    radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgb(34 189 235 / calc(var(--glow) * .1)), transparent 62%),
    var(--card-tint, linear-gradient(transparent, transparent)),
    var(--surface);
}

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

.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 20px;
  border: 0; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: -.01em;
  color: var(--text); background: var(--fill-2);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
  transition: scale var(--dur-bouncy) var(--ease-bouncy), background-color .2s, color .2s, opacity .25s, box-shadow .3s, filter .2s;
}
/* Down is instant; up springs back. */
.btn:active { scale: .955; transition: scale .07s ease-out, background-color .1s; }
.btn .ic { font-size: 18px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn-sm { --h: 34px; padding: 0 14px; font-size: 13px; gap: 6px; }
.btn-sm .ic { font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .38; pointer-events: none; }
.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(180deg, #74DFFA, var(--accent) 52%, #1FB0E0);
  box-shadow: 0 10px 30px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .1);
}
.btn-glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 28px -16px rgba(0, 0, 0, .5);
}
.btn-reject { background: var(--fail-fill); color: var(--fail-ink); }
@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 16px 40px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .1); }
  .btn-glass:hover { background: var(--fill-2); }
  .btn-reject:hover { background: color-mix(in srgb, var(--fail) 18%, transparent); }
}
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 2px; border: 0; background: none; cursor: pointer;
  color: var(--accent-ink); font-size: 14px; font-weight: 600;
  transition: opacity .15s;
}
.btn-link:active { opacity: .55; }
.btn-link .ic { font-size: 16px; }

.copy-ic { position: relative; width: 18px; height: 18px; flex: none; }
.copy-ic .ic { position: absolute; inset: 0; font-size: 18px; transition: scale var(--dur-bouncy) var(--ease-bouncy), opacity .2s; }
.copy-ic .c-done { scale: .2; opacity: 0; color: var(--ok-ink); stroke-width: 2.4; }
.copied .copy-ic .c-copy { scale: .2; opacity: 0; }
.copied .copy-ic .c-done { scale: 1; opacity: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--ok-fill); color: var(--ok-ink);
}
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor;
  animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping { from { scale: 1; opacity: .6; } to { scale: 3.2; opacity: 0; } }

/* ---------- Island ---------- */

.island {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 50%;
  translate: -50% 0;
  z-index: 80;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .32));
}
[data-theme="light"] .island { filter: drop-shadow(0 12px 26px rgba(20, 40, 80, .22)); }
.island-shape {
  position: relative;
  width: 222px; height: 38px;
  background: #000; color: #fff;
  border-radius: 19px;
  overflow: hidden;
  contain: layout paint;
}
.is-layer {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -50%;
  display: flex; align-items: center; gap: 8px;
  width: max-content; /* measured by island.js: must not shrink to the shape */
  height: 38px; padding: 0 14px 0 13px;
  white-space: nowrap;
  border: 0; background: none; color: inherit; font: inherit;
  opacity: 0; scale: .9; filter: blur(5px);
  pointer-events: none;
  transition: opacity .16s ease-out, scale .22s ease-out, filter .16s ease-out;
}
.is-layer.on {
  opacity: 1; scale: 1; filter: blur(0);
  pointer-events: auto;
  transition: opacity .3s ease-out .07s, scale var(--dur-bouncy) var(--ease-bouncy) .04s, filter .3s ease-out .07s;
}
button.is-layer { cursor: pointer; }
.is-layer .mark { font-size: 13px; }
.is-name { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.is-gap { width: 30px; }
.is-ring { width: 16px; height: 16px; rotate: -90deg; flex: none; }
.is-ring circle { fill: none; stroke-width: 2.6; }
.is-ring .trk { stroke: rgba(255, 255, 255, .18); }
.is-ring .val {
  stroke: #3CCBF4; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: var(--off, 100);
  transition: stroke .5s;
}
.warn .is-ring .val, .is-ring.warn .val { stroke: #FF9F0A; }
.is-end { position: relative; display: grid; place-items: center end; min-width: 34px; }
.is-end > * { grid-area: 1 / 1; transition: opacity .25s, scale var(--dur-bouncy) var(--ease-bouncy); }
.is-timer { font-size: 12.5px; font-weight: 600; color: #3CCBF4; }
.is-check { font-size: 17px; color: #30D158; stroke-width: 2.6; opacity: 0; scale: .3; }
.island.done .is-timer { opacity: 0; scale: .6; }
.island.done .is-check { opacity: 1; scale: 1; }

.is-tico { display: grid; place-items: center; font-size: 15px; }
.is-tico .ic { stroke-width: 2.2; }
.is-tico.ok { color: #30D158; }
.is-tico.accent { color: #3CCBF4; }
.is-ttext { font-size: 13px; font-weight: 600; }
.is-ttext small { font-weight: 500; color: rgba(255, 255, 255, .55); margin-right: 6px; }

.is-layer[data-layer="menu"] { height: auto; padding: 5px; }
.is-menu { position: relative; display: flex; gap: 2px; }
.is-menu a {
  position: relative; z-index: 1;
  padding: 9px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .2s;
}
.is-menu a:hover, .is-menu a:focus-visible, .is-menu a.here { color: #fff; }
.is-menu a:focus-visible { outline-offset: -2px; }
.is-menu a.is-get { color: #3CCBF4; font-weight: 600; }
.is-hl {
  position: absolute; left: 0; top: 0; height: 100%;
  width: var(--hw, 0px); translate: var(--hx, 0px) 0;
  border-radius: 999px; background: rgba(255, 255, 255, .13);
  opacity: 0;
  transition: translate var(--dur-snappy) var(--ease-snappy), width var(--dur-snappy) var(--ease-snappy), opacity .2s;
}
.is-menu.hovering .is-hl { opacity: 1; }
.is-menu.jump .is-hl { transition: opacity .2s; }

.ctrls {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 14px);
  z-index: 79;
  display: flex; gap: 8px;
}
.ctl {
  position: relative;
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 22px -12px rgba(0, 0, 0, .45);
  color: var(--text);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: scale var(--dur-bouncy) var(--ease-bouncy), background-color .2s;
}
.ctl:active { scale: .9; transition-duration: .07s; }
.ctl .ic { grid-area: 1 / 1; font-size: 18px; transition: rotate var(--dur-bouncy) var(--ease-bouncy), scale var(--dur-bouncy) var(--ease-bouncy), opacity .25s; }
[data-theme="dark"] .t-moon, [data-theme="light"] .t-sun { opacity: 0; scale: .3; rotate: -90deg; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) 0 72px;
  overflow: clip;
  background:
    radial-gradient(1100px 680px at 78% 8%, rgba(46, 123, 255, .16), transparent 62%),
    radial-gradient(900px 600px at 0% 0%, rgba(60, 203, 244, .07), transparent 60%),
    linear-gradient(180deg, #08101F, var(--bg) 85%);
}
[data-theme="light"] .hero {
  background:
    radial-gradient(1100px 680px at 78% 8%, rgba(46, 107, 255, .1), transparent 62%),
    radial-gradient(900px 600px at 0% 0%, rgba(34, 189, 235, .1), transparent 60%),
    linear-gradient(180deg, #EAF2FB, var(--bg) 85%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { color: var(--text-2); font-family: var(--font); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.hero-eyebrow .mark { font-size: 15px; color: var(--text); }
.hero .lede { max-width: 30em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-copy .cmd { font-size: 14px; font-weight: 500; }
.btn-copy .cmd .dim { color: var(--text-3); }
.hero-note { margin: 22px 0 0; font-size: 14px; color: var(--text-3); }
.hero-note a { color: var(--text-2); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.hero-note a:hover { color: var(--accent-ink); }

.hero-stage { position: relative; display: grid; place-items: center; perspective: 1600px; margin-bottom: 40px; }
.hero-glow {
  position: absolute; left: 50%; top: 46%;
  width: 640px; height: 640px; margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), rgba(46, 123, 255, .12) 55%, transparent);
  opacity: .5;
  translate: var(--gx, 0px) var(--gy, 0px);
  pointer-events: none;
}
.hero-arcs {
  position: absolute; left: 50%; top: 100%;
  width: 1500px; height: 1000px;
  margin: -910px 0 0 -750px;
  color: var(--accent);
  opacity: .3;
  pointer-events: none;
  overflow: visible;
}
.hero-arcs path { fill: none; }
.arcs-static path { stroke-width: 1.2; }
.arcs-pulses path { stroke: var(--accent); stroke-width: 2.4; transform-box: view-box; transform-origin: 600px 700px; }

.hero-phone { z-index: 1; }
.try-hint {
  position: absolute; z-index: 3;
  left: 50%; bottom: -60px;
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -16px rgba(0, 0, 0, .55);
  font-size: 14px; white-space: nowrap; color: var(--text-2);
  opacity: 0; translate: -50% 12px; scale: .96;
  pointer-events: none;
  transition: opacity .3s, translate var(--dur-smooth) var(--ease-smooth), scale var(--dur-smooth) var(--ease-smooth);
}
.try-hint b { color: var(--text); font-weight: 600; }
.try-hint.show { opacity: 1; translate: -50% 0; scale: 1; }
.try-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); color: var(--accent); }
.try-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ping 1.6s var(--ease-out) infinite; }

/* ---------- Phone ---------- */

.phone-wrap { --pw: 318px; position: relative; width: var(--pw); flex: none; }
.phone-shadow {
  position: absolute; inset: 6% 8% -3%;
  border-radius: 80px;
  background: rgba(0, 0, 0, .6);
  filter: blur(44px);
  translate: 0 34px;
  z-index: -1;
}
[data-theme="light"] .phone-shadow { background: rgba(20, 40, 80, .3); }
.phone {
  --tint-c: rgba(255, 255, 255, .22);
  width: 100%; aspect-ratio: 318 / 690;
  padding: 10px;
  background: linear-gradient(150deg, #454c57, #171a20 28%, #0b0d10 55%, #242830 82%, #4e5662);
}
[data-theme="light"] .phone {
  --glass-hi: rgba(255, 255, 255, 1);
  background: linear-gradient(150deg, #f5f7f9, #b8bec7 28%, #d6dade 55%, #a7aeb8 82%, #eef1f4);
}
.phone-screen {
  height: 100%;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--ph-bg); color: var(--ph-text);
  font-size: 13.5px; line-height: 1.35; letter-spacing: -.01em;
}
.ph-status {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  height: 48px; padding: 4px 22px 0 26px; flex: none;
  font-size: 14px; font-weight: 600;
}
.ph-time { font-variant-numeric: tabular-nums; }
.ph-sys { display: flex; align-items: center; gap: 5px; }
.ph-sys .ic { font-size: 15px; transition: opacity .3s, scale var(--dur-bouncy) var(--ease-bouncy); }
.ph-sys .ph-batt { font-size: 21px; }
.ph-sys .ph-air { display: none; }
.on-dark { color: #fff; }

/* The hardware island, which becomes the Live Activity. */
.ph-island {
  position: absolute; z-index: 5;
  top: 11px; left: 50%; translate: -50% 0;
  width: 92px; height: 28px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px;
  background: #000; border-radius: 999px; color: #fff;
  transition: width var(--dur-bouncy) var(--ease-bouncy), height var(--dur-bouncy) var(--ease-bouncy);
}
.ph-island > * { opacity: 0; scale: .6; transition: opacity .2s, scale var(--dur-bouncy) var(--ease-bouncy); }
.ph-island .mark { font-size: 10px; }
.ph-island.live { width: 138px; }
.ph-island.live > * { opacity: 1; scale: 1; transition-delay: .08s; }
.pi-end { display: grid; place-items: center end; min-width: 30px; }
.pi-end > * { grid-area: 1 / 1; transition: opacity .25s, scale var(--dur-bouncy) var(--ease-bouncy); }
.pi-clock { font-size: 11.5px; font-weight: 600; color: #3CCBF4; }
.pi-check { font-size: 14px; color: #30D158; stroke-width: 2.8; opacity: 0; scale: .3; }
.ph-island.done .pi-clock { opacity: 0; scale: .6; }
.ph-island.done .pi-check { opacity: 1; scale: 1; }

.ph-nav {
  display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 10px;
  height: 46px; padding: 0 12px; flex: none;
}
.ph-round {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ph-surface);
  box-shadow: inset 0 0 0 .5px var(--line-strong), 0 2px 8px -3px rgba(0, 0, 0, .25);
}
.ph-round .ic { font-size: 16px; }
.ph-title { text-align: center; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ph-chat {
  position: relative;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 8px 12px 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 44px);
  mask-image: linear-gradient(to bottom, transparent, #000 44px);
}
.ph-chat > * { flex: none; }
.ph-chat.clearing > * { opacity: 0; scale: .98; transition: opacity .35s, scale .35s; }

.ph-msg { max-width: 84%; padding: 7px 11px 8px; overflow-wrap: anywhere; }
.ph-msg.user {
  align-self: flex-end;
  background: linear-gradient(180deg, #5DD6F8, #26B8E8);
  color: var(--on-accent);
  transform-origin: 100% 100%;
}
.ph-msg.asst { align-self: flex-start; background: var(--ph-surface-2); color: var(--ph-text); transform-origin: 0 100%; }
.enter { animation: msgIn var(--dur-bouncy) var(--ease-bouncy) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }
.enter-soft { animation: softIn .5s var(--ease-out) both; }
@keyframes softIn { from { opacity: 0; transform: translateY(6px); } }

.ph-turn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent-ink); padding: 0 2px; }
.ph-turn .ic { font-size: 14px; }
.ph-turn .t-steps { margin-left: auto; display: flex; align-items: center; gap: 2px; color: var(--ph-text-2); }
.ph-turn .t-steps .ic { font-size: 11px; }
.ph-turn .t-ic { position: relative; display: grid; width: 14px; height: 14px; }
.ph-turn .t-ic .ic { grid-area: 1 / 1; transition: opacity .25s, scale var(--dur-bouncy) var(--ease-bouncy); }
.ph-turn .t-ic .t-done { opacity: 0; scale: .3; color: var(--ok); }
.ph-turn.done { color: var(--ph-text-2); }
.ph-turn.done .t-ic .t-run { opacity: 0; scale: .3; }
.ph-turn.done .t-ic .t-done { opacity: 1; scale: 1; }
.ph-turn .t-tx { font-variant-numeric: tabular-nums; }

.ph-card { padding: 11px 12px; --edge: var(--warn-line); background: var(--warn-fill); transform-origin: 50% 100%; }
.ph-card .pc-head { display: flex; align-items: center; gap: 6px; color: var(--warn-ink); font-weight: 600; font-size: 13px; }
.ph-card .pc-head .ic { font-size: 15px; }
.ph-card .pc-sub { margin: 3px 0 10px; color: var(--ph-text-2); font-size: 12px; }
.ph-card .pc-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-card .btn { --h: 32px; padding: 0 10px; font-size: 13px; }
.ph-card .btn-reject { background: var(--fail-fill); }
.ph-card.leaving { opacity: 0; scale: .94; filter: blur(4px); transition: opacity .25s, scale .3s var(--ease-out), filter .25s; }
.tap { position: relative; }
.tap::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  animation: tap .6s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes tap { from { scale: .2; opacity: .9; } to { scale: 1.8; opacity: 0; } }

.ph-log { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11.5px; color: var(--ph-text-2); }
.ph-log .ic { font-size: 12px; }
.ph-log code { font-size: 11px; }

.ph-compose { flex: none; padding: 6px 10px 4px; }
.ph-chips { display: flex; gap: 6px; }
.ph-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 9px; border-radius: 999px; flex: none;
  background: var(--ph-surface);
  box-shadow: inset 0 0 0 .5px var(--line-strong), 0 1px 3px -1px rgba(0, 0, 0, .2);
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.ph-chip .ic { font-size: 13px; }
.ph-chip.ph-model { flex: 1 1 0; min-width: 0; }
.ph-chip.ph-model span { overflow: hidden; text-overflow: ellipsis; }
.ph-ring { width: 13px; height: 13px; rotate: -90deg; flex: none; }
.ph-ring circle { fill: none; stroke-width: 3; }
.ph-ring .trk { stroke: var(--fill-3); }
.ph-ring .val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--off, 88); transition: stroke-dashoffset var(--dur-gentle) var(--ease-gentle); }
.ph-field-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ph-field {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  height: 36px; padding: 0 14px;
  background: var(--ph-surface);
  box-shadow: inset 0 0 0 .5px var(--line-strong);
  white-space: nowrap; overflow: hidden;
}
.ph-placeholder { color: var(--ph-text-2); }
.ph-field.has-text .ph-placeholder { display: none; }
.ph-typed { overflow: hidden; text-overflow: ellipsis; }
.ph-caret { width: 1.5px; height: 17px; margin-left: 1px; background: var(--accent); opacity: 0; flex: none; }
.ph-field.typing .ph-caret { opacity: 1; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ph-send {
  display: grid; place-items: center;
  width: 33px; height: 33px; border-radius: 50%; flex: none;
  background: var(--ph-surface-2); color: var(--ph-text-2);
  transition: background-color .2s, color .2s, scale var(--dur-bouncy) var(--ease-bouncy);
}
.ph-send .ic { font-size: 17px; stroke-width: 2.2; }
.ph-send.ready { background: var(--accent); color: var(--on-accent); }
.ph-send.fire { scale: .82; transition-duration: .07s; }
.ph-home { width: 118px; height: 4.5px; margin: 6px auto 8px; border-radius: 999px; background: var(--ph-text); opacity: .85; flex: none; }
.ph-home.on-dark { background: #fff; position: absolute; bottom: 0; left: 50%; translate: -50% 0; }

/* ---------- 01 Pairing ---------- */

.pair-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
/* Grid children may shrink below their longest word; a URL wraps instead of
   widening the page. */
.hero-grid > *, .pair-grid > *, .scene-grid > *, .use-grid > *, .lock-grid > *, .off-grid > *, .ans-grid > *, .dev-grid > *, .pieces > * { min-width: 0; }
.panel-top > div { min-width: 0; }
.panel-top .mono { overflow-wrap: anywhere; }
.panel { display: grid; gap: 12px; padding: 20px; }
.panel-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 4px 4px 6px; }
.panel-title { font-size: 20px; letter-spacing: -.02em; }
.panel-top .mono { margin: 4px 0 0; }
.panel-card { --edge: var(--line); padding: 16px 18px; background: var(--fill); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; font-size: 14px; }
.kv > span:first-child { color: var(--text-2); }
.pair-card .cap { margin-bottom: 14px; }
.pair-body { display: flex; align-items: center; gap: 22px; }
.qr {
  width: 172px; height: 172px; flex: none;
  padding: 11px; background: #fff;
}
.qr svg { display: block; width: 100%; height: 100%; }
.qr .qm { opacity: 0; transition: opacity .5s var(--ease-out); transition-delay: calc(var(--d) * 1ms); }
.qr.in .qm, .reduced .qr .qm { opacity: 1; }
.pair-code p { margin: 0 0 6px; }
.code {
  display: flex; margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 32px); font-weight: 600; letter-spacing: .04em;
  line-height: 1.15;
}
.slot { display: inline-block; height: 1.15em; overflow: hidden; }
.slot > span { display: flex; flex-direction: column; }
.dash { color: var(--text-3); padding: 0 .08em; }
.qr-note { margin: 2px 4px 0; font-size: 13px; color: var(--text-3); }

.pair-side { display: grid; gap: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps p { margin: 4px 0 0; font-size: 18px; line-height: 1.45; }
.steps b { font-weight: 600; }
.step-n {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--accent-fill); color: var(--accent-ink);
  font-size: 14px; font-weight: 600;
}
.no-steps { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.no-steps .ic { font-size: 26px; color: var(--ok-ink); }

/* ---------- 02 Only the summary travels ---------- */

.scene { position: relative; height: 320vh; }
.scene-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.scene-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.scene-head { margin-bottom: 0; }
.scene-head h2, .scene-head .lede, .scene-head .eyebrow { opacity: var(--hv, 1); }
.kb { margin-top: 36px; }
.kb-big { display: flex; align-items: baseline; gap: 8px; }
.kb-num { font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.kb-unit { font-size: 20px; font-weight: 600; color: var(--text-3); }
.kb-bars { display: grid; gap: 12px; margin: 18px 0 12px; max-width: 360px; }
.kb-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; }
.kb-track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.kb-track i { display: block; height: 100%; border-radius: inherit; background: var(--text-3); transform-origin: 0 50%; }
.kb-after .kb-track i { background: linear-gradient(90deg, var(--accent-2), var(--accent)); scale: var(--k, 1) 1; }
.kb-lab { color: var(--text-2); }
.kb-bar b { font-weight: 600; }

.scene-stage { position: relative; height: min(560px, 68vh); }
.route { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route path { fill: none; }
.route-base { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.route-live { stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--accent-glow)); }

.mac {
  position: absolute; left: 0; top: 16%;
  width: 52%; height: 64%;
  display: flex; flex-direction: column;
  --edge: rgba(255, 255, 255, .1);
  z-index: 1;
  background: #0A0E17;
  color: #C7D0DD;
  box-shadow: var(--shadow);
}
.mac-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; flex: none; background: #121825; }
.mac-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.mac-bar i:nth-child(2) { background: #FEBC2E; }
.mac-bar i:nth-child(3) { background: #28C840; }
.mac-bar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; color: #6C798D; pointer-events: none; }
.mac-body { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); mask-image: linear-gradient(to bottom, transparent, #000 40%); }
.mac-lines {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  font: 11.5px/1.7 var(--mono);
  transform-origin: 50% 100%;
  scale: 1 var(--sy, 1);
  opacity: var(--lo, 1);
}
.mac-lines div { white-space: pre; overflow: hidden; text-overflow: ellipsis; animation: softIn .3s var(--ease-out) both; }
.ml-tool { color: #7FDBFF; }
.ml-think { color: #7B879B; }
.ml-ok { color: #5BDB86; }
.ml-path { color: #C7D0DD; }

.relay-node {
  position: absolute; left: 62%; top: 4%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  translate: -50% 0;
}
.relay-dot {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 0 calc(var(--rg, 0) * 12px) var(--accent-fill), 0 0 calc(var(--rg, 0) * 40px) var(--accent-glow);
  color: var(--accent-ink);
  scale: calc(1 + var(--rg, 0) * .08);
}
.relay-dot .ic { font-size: 24px; }
.relay-label { font: 600 12px var(--mono); color: var(--text-3); }

.mini-phone {
  position: absolute; right: 0; top: 8%;
  width: 31%; height: 86%;
  padding: 6px;
  background: linear-gradient(150deg, #454c57, #171a20 30%, #0b0d10 60%, #2a2f37);
  box-shadow: var(--shadow);
}
[data-theme="light"] .mini-phone { background: linear-gradient(150deg, #f5f7f9, #b8bec7 30%, #d6dade 60%, #a7aeb8); }
.mini-screen {
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 40px 9px 16px;
  background: var(--ph-bg); color: var(--ph-text);
  font-size: 11.5px; line-height: 1.35;
}
.mini-label { position: absolute; top: 14px; left: 0; right: 0; margin: 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--ph-text-2); }
.mini-screen .ph-msg { max-width: 92%; padding: 6px 9px; }
.mini-screen .ph-turn { font-size: 10.5px; }
.mini-arrive { display: flex; flex-direction: column; gap: 8px; opacity: var(--ma, 0); translate: 0 calc((1 - var(--ma, 0)) * 10px); }

.packet {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 15px 0 12px; border-radius: 999px;
  background: linear-gradient(180deg, #74DFFA, var(--accent) 55%, #1FB0E0);
  color: var(--on-accent);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 30px -8px var(--accent-glow);
  opacity: var(--po, 0);
  will-change: transform;
}
.packet .ic { font-size: 16px; stroke-width: 2.2; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 0; font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
  opacity: var(--cue, 1);
}
.scroll-cue i { width: 1.5px; height: 28px; background: linear-gradient(var(--text-3), transparent); animation: cue 1.8s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { from { scale: 1 0; } 50% { scale: 1 1; } to { scale: 1 1; opacity: 0; } }

/* ---------- 03 Approvals ---------- */

.ans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.card { padding: 28px; }
.card h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.3; }
.ap-card { --card-tint: linear-gradient(var(--warn-fill), var(--warn-fill)); --tint-c: var(--warn-line); }
.ap-swap { transition: opacity .2s, translate .3s var(--ease-out), filter .2s; }
.ap-card.swapping .ap-swap { opacity: 0; translate: 0 -10px; filter: blur(5px); }
.ap-head { display: flex; align-items: center; gap: 10px; color: var(--warn-ink); }
.ap-head .ic { font-size: 24px; }
.ap-head code { color: inherit; }
.ap-sub { margin: 10px 0 0; color: var(--text-2); font-size: 16px; }
.ap-meta { margin: 6px 0 0; font-size: 12px; color: var(--text-3); }
.ap-foot, .q-foot, .cta-swap { display: grid; margin-top: 24px; }
.ap-foot > *, .q-foot > *, .cta-swap > * { grid-area: 1 / 1; }
.ap-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transition: opacity .2s, scale .3s var(--ease-out), filter .2s; }
.ap-actions .btn { --h: 48px; }
.ap-result, .q-done, .cta-result {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  opacity: 0; translate: 0 10px; pointer-events: none;
  transition: opacity .25s, translate var(--dur-smooth) var(--ease-smooth);
}
.ap-card:not([data-state="ask"]) .ap-actions { opacity: 0; scale: .96; filter: blur(4px); pointer-events: none; }
.ap-card:not([data-state="ask"]) .ap-result { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: .12s; }
.ap-res { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ap-res-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; }
.ap-res-ic .ic { font-size: 18px; stroke-width: 2.4; }
.ap-card[data-state="allowed"] .ap-res-ic { background: var(--ok-fill); color: var(--ok-ink); }
.ap-card[data-state="rejected"] .ap-res-ic { background: var(--fail-fill); color: var(--fail-ink); }
.ap-card[data-state="rejected"] .ap-res-ic .ic { rotate: 45deg; }
.ap-card:not([data-state="ask"]) .ap-res-ic .ic { animation: pop var(--dur-bouncy) var(--ease-bouncy) .1s both; }
@keyframes pop { from { scale: .2; opacity: 0; } }

.q-card { --card-tint: linear-gradient(var(--accent-fill), transparent 70%); --tint-c: var(--accent-line); }
.q-headrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--accent-ink); }
.q-headrow .ic { font-size: 20px; }
.q-headrow .cap { color: inherit; }
.q-card > .dim { margin: 8px 0 0; font-size: 15px; }
.q-opts { display: grid; gap: 8px; margin: 18px 0 10px; }
.q-opt {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; width: 100%;
  border: 0; text-align: left; cursor: pointer;
  background: var(--fill);
  transition: background-color .2s, opacity .3s, scale var(--dur-bouncy) var(--ease-bouncy);
}
.q-opt:active { scale: .985; transition-duration: .07s; }
@media (hover: hover) { .q-opt:hover { background: var(--fill-2); } }
.q-opt[aria-checked="true"] { background: var(--accent-fill); --edge: var(--accent-line); }
.radio {
  position: relative; flex: none;
  width: 21px; height: 21px; margin-top: 1px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.6px var(--line-strong);
  transition: box-shadow .2s, background-color .2s;
}
.radio::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  background: var(--on-accent);
  scale: 0; transition: scale var(--dur-bouncy) var(--ease-bouncy);
}
[aria-checked="true"] .radio { background: var(--accent); box-shadow: none; }
[aria-checked="true"] .radio::after { scale: 1; }
.q-txt b { display: block; font-size: 16px; font-weight: 500; }
.q-txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-3); }
.q-own { display: block; background: var(--fill); --edge: var(--line); transition: opacity .3s; }
.q-own input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 0; outline: none; background: transparent;
  color: var(--text); font: 15px var(--font);
}
.q-own input::placeholder { color: var(--text-3); }
.q-foot { margin-top: 14px; }
.q-foot > .btn { --h: 48px; transition: opacity .2s, scale .3s var(--ease-out), filter .2s; }
.q-done-tx { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.q-done-tx .ic { font-size: 22px; color: var(--ok-ink); flex: none; }
.q-card[data-state="answered"] .q-opt:not([aria-checked="true"]), .q-card[data-state="answered"] .q-own { opacity: .3; pointer-events: none; }
.q-card[data-state="answered"] .q-opt { pointer-events: none; }
.q-card[data-state="answered"] .q-foot > .btn { opacity: 0; scale: .96; filter: blur(4px); pointer-events: none; }
.q-card[data-state="answered"] .q-done { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: .12s; }
.q-card[data-state="answered"] .q-done-tx .ic { animation: pop var(--dur-bouncy) var(--ease-bouncy) .1s both; }

.feats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.feats li { display: flex; gap: 12px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.feats .ic { font-size: 22px; color: var(--accent-ink); }

/* ---------- 04 Live Activities ---------- */

.sec-lock { overflow: clip; }
.sec-lock::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 72% 50%, rgba(19, 31, 61, .95), transparent 72%);
}
[data-theme="light"] .sec-lock::before { background: radial-gradient(60% 60% at 72% 50%, rgba(19, 31, 61, .1), transparent 72%); }
.lock-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 7vw, 96px); align-items: center; }
.facts { display: grid; gap: 22px; margin: 0 0 30px; }
.facts > div { padding-left: 18px; border-left: 2px solid var(--accent-line); }
.facts dt { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.facts dd { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.caveat { max-width: 54ch; display: block; }
.caveat em { font-style: normal; color: var(--text-2); font-weight: 600; }

.lock-screen { background: #0A1330; color: #fff; }
.aurora { position: absolute; inset: 0; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .8; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 300px; height: 300px; left: -90px; top: -40px; background: radial-gradient(closest-side, rgba(60, 203, 244, .75), transparent); }
.aurora i:nth-child(2) { width: 340px; height: 340px; right: -140px; top: 160px; background: radial-gradient(closest-side, rgba(46, 107, 255, .8), transparent); animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 280px; height: 280px; left: -40px; bottom: -60px; background: radial-gradient(closest-side, rgba(110, 80, 255, .55), transparent); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.15); } }
.lock-top { position: relative; z-index: 1; text-align: center; margin-top: 22px; }
.lock-ic { font-size: 15px; opacity: .9; }
.lock-date { margin: 6px 0 0; font-size: 15px; font-weight: 600; opacity: .92; }
.lock-time { margin: 0; font-size: 78px; font-weight: 700; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; opacity: .94; }
.la-card {
  position: relative; z-index: 1;
  margin: 26px 10px 0; padding: 13px 15px 14px;
  background: rgba(19, 31, 61, .86);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  color: #fff;
  transform-origin: 50% 0;
  transition: opacity .45s var(--ease-out), scale var(--dur-smooth) var(--ease-smooth), translate var(--dur-smooth) var(--ease-smooth), filter .45s;
}
.la-card.gone { opacity: 0; scale: .9; translate: 0 -10px; filter: blur(8px); }
.la-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.la-head .mark { font-size: 12px; }
.la-rows { display: grid; gap: 7px; margin-top: 10px; }
.la-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.la-row .lr-t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.la-row .lr-c { font-size: 14px; color: rgba(255, 255, 255, .72); flex: none; }
.la-row.out { opacity: 0; translate: -14px 0; transition: opacity .3s, translate .4s var(--ease-out); }
.lock-bottom { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 34px; display: flex; justify-content: space-between; }
.lb-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.lb-btn .ic { font-size: 19px; color: #fff; }

/* ---------- 05 Offline ---------- */

.off-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.off-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 18px 4px; }
.off-title { display: flex; align-items: center; gap: 8px; font-size: 24px; letter-spacing: -.03em; }
.off-title .mark { font-size: 15px; }
.conn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--ok-fill); color: var(--ok-ink);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  transition: background-color .3s, color .3s;
}
.conn i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.off-list { flex: 1; padding: 0 12px; }
.ws-head { margin: 14px 6px 7px; font-size: 11px; color: var(--ph-text-2); }
.ws-card { background: var(--ph-surface); }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; }
.row + .row { box-shadow: inset 0 .5px 0 var(--line-strong); }
.row-ic { display: grid; place-items: center; font-size: 17px; color: var(--ph-text-2); }
.row-ic.run { color: var(--accent-ink); }
.row-ic.run .ic { animation: spin 1s steps(8) infinite; }
.row-t { flex: 1; min-width: 0; }
.row-t b { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t small { display: block; font-size: 11.5px; color: var(--ph-text-2); }
.row-ctx { font-size: 11px; color: var(--ph-text-2); }
#offPhone .ph-island { display: block; }
#offPhone.offline .ph-air { display: block; }
#offPhone.offline .ph-sig, #offPhone.offline .ph-wifi { display: none; }
#offPhone.offline .conn { background: var(--fill-2); color: var(--ph-text-2); }
#offPhone.offline .off-title .mark { --mark-accent: var(--ph-text-2); color: var(--ph-text-2); }
#offPhone.offline .row-ic.run .ic { animation-play-state: paused; opacity: .5; }
#offPhone .off-list { transition: opacity .4s; }

.toggle-row {
  display: flex; align-items: center; gap: 14px;
  max-width: 400px; margin: 0 0 22px; padding: 13px 16px 13px 13px;
  font-size: 17px; font-weight: 500;
  --edge: var(--line);
}
.tr-ic { display: grid; place-items: center; width: 32px; height: 32px; background: #FF9500; color: #fff; }
.tr-ic .ic { font-size: 19px; }
.switch {
  position: relative; flex: none; margin-left: auto;
  width: 51px; height: 31px; padding: 0;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--fill-3);
  transition: background-color .25s;
}
.switch[aria-checked="true"] { background: #34C759; }
.knob {
  position: absolute; left: 2px; top: 2px;
  width: 27px; height: 27px; border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .16), 0 0 0 .5px rgba(0, 0, 0, .05);
  transition: translate var(--dur-bouncy) var(--ease-bouncy), width var(--dur-snappy) var(--ease-snappy);
}
.switch[aria-checked="true"] .knob { translate: 20px 0; }
/* The knob stretches under your finger, the way iOS's does — and stretches
   toward the side it's about to travel to. */
.switch:active .knob { width: 33px; }
.switch[aria-checked="true"]:active .knob { translate: 14px 0; }

/* ---------- 06 Usage ---------- */

.use-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.use-note { display: flex; align-items: flex-start; gap: 12px; margin: 0; max-width: 32em; color: var(--text-3); font-size: 15px; }
.use-note .is-ring { width: 22px; height: 22px; margin-top: 1px; }
.use-note .is-ring .trk { stroke: var(--fill-3); }
.use-note .is-ring .val { stroke: var(--accent); }
.use-note .is-ring.warn .val { stroke: var(--warn); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; }
.stat-card { padding: 20px 20px 18px; background: var(--fill); }
.stat-title { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.stat-card hr { border: 0; height: 1px; background: var(--line); margin: 8px 0; }
.stat-card .kv { font-size: 13.5px; padding: 4px 0; }
.stat-card .kv b { font-weight: 700; }
.hit-bar { height: 6px; margin-top: 8px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.hit-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: 0 50%; scale: 0 1; transition: scale 1.4s var(--ease-gentle) .2s; }
.stats.in .hit-bar i { scale: .896 1; }
.ctx-ring { position: relative; width: 132px; height: 132px; margin: 2px auto 14px; }
.ctx-ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ctx-ring circle { fill: none; stroke-width: 11; }
.ctx-ring .trk { stroke: var(--fill-2); }
.ctx-ring .seg { stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease-gentle) .25s, stroke-dashoffset 1.4s var(--ease-gentle) .25s; }
.ctx-ring .s1 { stroke: var(--text-3); }
.ctx-ring .s2 { stroke: var(--accent-2); }
.ctx-ring .s3 { stroke: var(--accent); }
.stats.in .s1 { stroke-dasharray: 1.1 100; }
.stats.in .s2 { stroke-dasharray: 4 100; stroke-dashoffset: -1.1; }
.stats.in .s3 { stroke-dasharray: 29.9 100; stroke-dashoffset: -5.1; }
.ctx-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.sw { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.sw1 { background: var(--text-3); } .sw2 { background: var(--accent-2); } .sw3 { background: var(--accent); }

/* ---------- 07 Devices ---------- */

.dev-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 28px; justify-content: center; align-items: end; }
.dev { margin: 0; }
.dev[data-tilt] { transform: perspective(1200px) rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg)); }
.ipad { padding: 12px; background: linear-gradient(150deg, #3d434d, #121418 40%, #22262d); box-shadow: var(--shadow); }
[data-theme="light"] .ipad { background: linear-gradient(150deg, #f0f2f5, #c3c8cf 40%, #e1e4e8); }
.ipad-screen, .mini-shot-screen { overflow: hidden; background: #000; }
.ipad-screen img { width: 100%; aspect-ratio: 2064 / 2752; object-fit: cover; }
.dev figcaption { margin-top: 16px; }
.dev figcaption b { display: block; font-size: 16px; font-weight: 600; }
.dev figcaption span { font-size: 14px; color: var(--text-3); }
.dev-side { display: grid; gap: 28px; }
.dev-zh { display: grid; grid-template-columns: 210px 1fr; gap: 22px; align-items: end; }
.mini-shot { padding: 6px; background: linear-gradient(150deg, #454c57, #171a20 30%, #0b0d10 60%, #2a2f37); box-shadow: var(--shadow); }
[data-theme="light"] .mini-shot { background: linear-gradient(150deg, #f5f7f9, #b8bec7 30%, #d6dade 60%, #a7aeb8); }
.mini-shot-screen img { width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; }
.dev-android { display: flex; align-items: center; gap: 22px; padding: 22px; }
.dev-android figcaption { margin: 0; }
.m3 { position: relative; width: 96px; height: 96px; flex: none; }
.m3 svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m3 .cookie { fill: var(--accent-2); transform-origin: 50px 50px; animation: spin 24s linear infinite; }
.m3 .pill { fill: var(--accent); }
.m3 .dot { fill: var(--surface); }

/* ---------- 08 Three pieces ---------- */

.flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; margin: 0 auto 34px; max-width: 900px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.node .ic {
  box-sizing: content-box; padding: 15px; font-size: 26px;
  border-radius: 50%; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
}
.node-relay .ic { color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 8px var(--accent-fill); }
.wire {
  position: relative; height: 2px; margin: 0 14px 26px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 10px);
  container-type: inline-size;
}
.wire-lab { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 11px; color: var(--text-3); }
.wire i {
  position: absolute; left: 0; top: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
  animation: wire 2.6s linear infinite;
}
.wire i:nth-of-type(2) { animation-delay: -.87s; }
.wire i:nth-of-type(3) { animation-delay: -1.73s; }
.w-in i { animation-direction: reverse; }
@keyframes wire {
  from { translate: 0 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  to { translate: calc(100cqw - 8px) 0; opacity: 0; }
}
.pieces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.piece { padding: 26px; }
.piece-ic { display: grid; place-items: center; width: 44px; height: 44px; background: var(--accent-fill); color: var(--accent-ink); }
.piece-ic .ic { font-size: 22px; }
.piece h3 { margin: 18px 0 8px; font-size: 19px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.piece p { margin: 0; font-size: 15px; color: var(--text-2); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--fill-2); color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.cmd-box {
  display: flex; align-items: center; gap: 10px;
  width: 100%; margin-top: 16px; padding: 12px 14px;
  border: 0; cursor: pointer; text-align: left;
  background: var(--fill); color: var(--text);
  transition: background-color .2s, scale var(--dur-bouncy) var(--ease-bouncy);
}
.cmd-box:active { scale: .98; transition-duration: .07s; }
@media (hover: hover) { .cmd-box:hover { background: var(--fill-2); } }
.cmd-box code { flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trust { display: flex; gap: 12px; align-items: center; margin: 30px 0 0; color: var(--text-2); font-size: 15px; }
.trust .ic { font-size: 22px; color: var(--accent-ink); flex: none; }

/* ---------- Get the app ---------- */

.cta { padding-bottom: 96px; }
.cta-card {
  max-width: 640px; margin: 0 auto;
  padding: 44px clamp(22px, 5vw, 44px) 34px;
  text-align: center;
  --card-tint: radial-gradient(120% 70% at 50% 0%, var(--warn-fill), transparent 65%);
  --tint-c: var(--warn-line);
}
.app-icon { width: 100px; height: 100px; margin: 0 auto 24px; }
.cta-head { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-head .ic { font-size: 26px; color: var(--warn-ink); }
.cta-head h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 0; letter-spacing: -.03em; }
.cta-sub { margin: 14px auto 0; max-width: 44ch; color: var(--text-2); font-size: 16px; }
.cta-swap { margin: 30px auto 0; max-width: 460px; }
.cta-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transition: opacity .2s, scale .3s var(--ease-out), filter .2s; }
.cta-result { flex-direction: column; justify-content: center; }
.cta-result p { margin: 0; font-weight: 600; font-size: 17px; }
.cta-card:not([data-state="ask"]) .cta-actions { opacity: 0; scale: .96; filter: blur(4px); pointer-events: none; }
.cta-card:not([data-state="ask"]) .cta-result { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: .12s; }
.cta-card[data-state="allowed"] #ctaAnyway { display: none; }
.cta-card[data-state="allowed"] .cta-result p { color: var(--ok-ink); }
.cta-alt { margin: 26px 0 0; font-size: 14px; color: var(--text-3); }
.cta-alt a { color: var(--text-2); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

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

.foot { padding: 40px 0 calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot-done { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 0 0 40px; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fd-ic { display: grid; width: 18px; height: 18px; }
.fd-ic .ic { grid-area: 1 / 1; font-size: 18px; transition: opacity .3s, scale var(--dur-bouncy) var(--ease-bouncy); }
.fd-spin { color: var(--accent-ink); animation: spin 1s steps(8) infinite; }
.fd-check { color: var(--ok-ink); opacity: 0; scale: .3; }
.foot-done.done { color: var(--text); font-weight: 600; }
.foot-done.done .fd-spin { opacity: 0; scale: .3; }
.foot-done.done .fd-check { opacity: 1; scale: 1; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { display: block; font-size: 15px; }
.foot-brand small { font-size: 12px; color: var(--text-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-links .ic { font-size: 15px; }
.foot-inspect { display: flex; align-items: center; gap: 10px; }
.kbd-hint { font-size: 12px; color: var(--text-3); }
#inspectBtn[aria-pressed="true"] { background: #FF4FD8; color: #fff; }
.credits { margin: 24px 0 0; color: var(--text-3); }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  z-index: 90; translate: -50% 0; pointer-events: none;
}
.toast-body {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 18px; max-width: calc(100vw - 32px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500;
  opacity: 0; translate: 0 24px; scale: .94;
  transition: opacity .25s, translate .35s var(--ease-out), scale .35s var(--ease-out);
}
.toast-body .ic { font-size: 17px; flex: none; }
.toast.on .toast-body { opacity: 1; translate: 0 0; scale: 1; transition: opacity .3s, translate var(--dur-bouncy) var(--ease-bouncy), scale var(--dur-bouncy) var(--ease-bouncy); }

/* ---------- Inspector (hold ⌥) ---------- */

.inspector { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity .2s; }
.inspecting .inspector { opacity: 1; }
.inspector svg { position: absolute; inset: 0; overflow: visible; }
.i-sq { fill: rgba(255, 79, 216, .05); stroke: #FF4FD8; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.i-ghost { fill: none; stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.i-label {
  position: absolute; left: 0; top: 0;
  padding: 2px 7px; border-radius: 999px;
  background: #FF4FD8; color: #fff;
  font: 600 10.5px/1.5 var(--mono); white-space: nowrap;
}
.i-legend {
  position: fixed; left: 50%; bottom: 22px; translate: -50% 0;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(10, 10, 14, .82); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 12.5px; white-space: nowrap;
}
.i-legend code { font-size: 12px; }
.sw-sq, .sw-ghost { display: inline-block; width: 18px; height: 0; margin-right: 4px; vertical-align: middle; border-top: 2px solid #FF4FD8; }
.sw-ghost { border-top: 1.5px dashed rgba(255, 255, 255, .7); }

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0; translate: 0 30px; scale: .985;
  transition: opacity .8s var(--ease-out), translate var(--dur-gentle) var(--ease-gentle), scale var(--dur-gentle) var(--ease-gentle);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal="phone"] { translate: 0 90px; rotate: x 14deg; scale: .94; transition-property: opacity, translate, scale, rotate; transition-duration: 1s, 1.2s, 1.2s, 1.2s; transition-timing-function: var(--ease-out), var(--ease-gentle), var(--ease-gentle), var(--ease-gentle); }
.js [data-reveal].in { opacity: 1; translate: 0 0; scale: 1; rotate: none; }

.w { display: inline-block; }
.js [data-split] .w {
  opacity: 0; translate: 0 .42em; filter: blur(8px);
  transition: opacity .7s var(--ease-out), translate var(--dur-smooth) var(--ease-smooth), filter .7s var(--ease-out);
  transition-delay: calc(var(--wi) * var(--wstep, 55ms) + 60ms);
}
.js [data-split].in .w { opacity: 1; translate: 0 0; filter: blur(0); }
/* The gradient phrase stays inline so it can wrap; it arrives by focus, not travel. */
.w.grad { display: inline; }
:lang(zh) [data-split] { --wstep: 38ms; }

/* ---------- View transitions ---------- */

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
:root[data-vt="lang"]::view-transition-old(root) { animation-name: vtOut; }
:root[data-vt="lang"]::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; filter: blur(6px); } }
@keyframes vtIn { from { opacity: 0; filter: blur(6px); } }
:root[data-vt="theme"]::view-transition-old(root), :root[data-vt="theme"]::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root[data-vt="theme"]::view-transition-new(root) { z-index: 2; }

/* ---------- Actually offline ---------- */

.net-off .mark .m-a3 { stroke: var(--text-3); }
.net-off .is-timer { color: rgba(255, 255, 255, .5); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero { align-items: flex-start; padding-bottom: 120px; }
  .hero-grid, .pair-grid, .use-grid, .lock-grid, .off-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-eyebrow, .hero-actions { justify-content: center; }
  .hero .lede { margin-inline: auto; }
  .hero-stage { margin-top: 24px; }
  .lock-grid .phone-wrap, .off-grid .phone-wrap { margin-inline: auto; }
  .off-grid .off-copy { order: -1; }
  .ans-grid { grid-template-columns: 1fr; max-width: 560px; }
  .feats { grid-template-columns: 1fr; }
  .pieces { grid-template-columns: 1fr; max-width: 560px; }
  .dev-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .dev-ipad { max-width: 440px; margin: 0 auto; }

  .scene { height: 300vh; }
  .scene-grid { grid-template-columns: 1fr; gap: 18px; }
  .scene-head .lede, .kb-bars { display: none; }
  .scene-head h2 { margin-bottom: 0; }
  .kb { margin-top: 14px; display: flex; align-items: baseline; gap: 14px; }
  .kb-num { font-size: 40px; }
  .scene-stage { height: min(440px, 52svh); }
  .mac { top: 0; width: 64%; height: 50%; }
  .relay-node { left: 18%; top: 66%; }
  .mini-phone { top: 30%; width: 34%; height: 70%; }
}

@media (max-width: 860px) {
  .is-menu { display: grid; grid-template-columns: 1fr 1fr; width: 292px; }
  .is-menu a { padding: 11px 14px; font-size: 14px; }
}

@media (max-width: 680px) {
  .ctrls { left: calc(env(safe-area-inset-left, 0px) + 12px); right: calc(env(safe-area-inset-right, 0px) + 12px); justify-content: space-between; pointer-events: none; }
  .ctl { pointer-events: auto; }
  .is-name { display: none; }
  .island-shape { width: 150px; }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
  .btn-lg { --h: 50px; padding: 0 22px; }
  .card { padding: 22px; }
  .pair-body { flex-direction: column; align-items: flex-start; }
  .qr { width: 156px; height: 156px; }
  .dev-zh { grid-template-columns: 150px 1fr; }
  .dev-android { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .flow .wire-lab { display: none; }
  .flow .wire { margin-bottom: 26px; }
  .i-legend { font-size: 11px; }
}

@media (max-width: 380px) {
  .phone-wrap { --pw: 292px; }
  .lock-time { font-size: 70px; }
}

/* ---------- Reduced motion: fewer transitions, not shorter ones ---------- */

.reduced [data-reveal], .reduced [data-split] .w { translate: none !important; scale: none !important; rotate: none !important; filter: none !important; }
.reduced .aurora i, .reduced .wire i, .reduced .live-dot::after, .reduced .try-dot::after, .reduced .scroll-cue i, .reduced .m3 .cookie { animation: none; }
.reduced .scene { height: auto; }
.reduced .scene-sticky { position: relative; height: auto; padding-block: 120px; }
.reduced .scroll-cue { display: none; }
.reduced .mark-connect > * { animation: none; opacity: 1; }
