/* Streamlined family design system.
   Shared by the hub, native iOS, VR, help and every iOS information page.
   Tokens first; components only read tokens, so light and dark share one rule set.
   Art is pure CSS/SVG (no external origins, no images beyond the family logo). */

:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --bg-2: #eeebe3;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #15181d;
  --ink-2: #353b45;
  --muted: #565c67;
  --line: rgba(21, 24, 29, .12);
  --line-strong: rgba(21, 24, 29, .22);
  --shadow-sm: 0 0 0 1px rgba(21, 24, 29, .07), 0 2px 6px rgba(21, 24, 29, .04);
  --shadow-md: 0 0 0 1px rgba(21, 24, 29, .07), 0 12px 32px rgba(21, 24, 29, .08);
  --shadow-lg: 0 0 0 1px rgba(21, 24, 29, .07), 0 30px 70px rgba(21, 24, 29, .16);
  --glass: rgba(255, 255, 255, .72);

  /* product identities: text-safe accent, glow pair for art */
  --yt: #b42a22; --yt-glow: #ff5a4e; --yt-glow-2: #ffb347; --yt-soft: #fbe7e4;
  --ios: #1757c2; --ios-glow: #2f8cff; --ios-glow-2: #22d3c5; --ios-soft: #e3edfc;
  --air: #9a3f29; --air-glow: #ff8a5c; --air-glow-2: #ffd166; --air-soft: #fbe9e1;
  --vr: #6236c0; --vr-glow: #8f5cff; --vr-glow-2: #ff6bcb; --vr-soft: #ece5fb;
  --accent: var(--ink);
  --accent-soft: var(--bg-2);
  --on-accent: #ffffff;

  --font: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
  --radius-sm: 12px;
  --page: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 68px;
}

@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Dark tokens: explicit choice (website-theme.js), early choice (theme-init.js), or system. */
:root[data-website-theme=dark],
:root:not([data-website-theme])[data-theme=dark] {
  color-scheme: dark;
  --bg: #0b1020; --bg-2: #10172b; --surface: #141b31; --surface-2: #182039;
  --ink: #eef1f7; --ink-2: #ccd3e0; --muted: #a9b1c3;
  --line: rgba(238, 241, 247, .12); --line-strong: rgba(238, 241, 247, .24);
  --shadow-sm: 0 0 0 1px rgba(238, 241, 247, .08);
  --shadow-md: 0 0 0 1px rgba(238, 241, 247, .08), 0 14px 36px rgba(0, 0, 0, .35);
  --shadow-lg: 0 0 0 1px rgba(238, 241, 247, .09), 0 30px 80px rgba(0, 0, 0, .55);
  --glass: rgba(20, 27, 49, .72);
  --yt: #ff8f85; --yt-soft: #3a1a1f;
  --ios: #86b9ff; --ios-soft: #142a4d;
  --air: #ffaf8f; --air-soft: #3b2119;
  --vr: #bda5ff; --vr-soft: #2a1f4d;
  --on-accent: #0b1020;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-website-theme]):not([data-theme=light]) {
    color-scheme: dark;
    --bg: #0b1020; --bg-2: #10172b; --surface: #141b31; --surface-2: #182039;
    --ink: #eef1f7; --ink-2: #ccd3e0; --muted: #a9b1c3;
    --line: rgba(238, 241, 247, .12); --line-strong: rgba(238, 241, 247, .24);
    --shadow-sm: 0 0 0 1px rgba(238, 241, 247, .08);
    --shadow-md: 0 0 0 1px rgba(238, 241, 247, .08), 0 14px 36px rgba(0, 0, 0, .35);
    --shadow-lg: 0 0 0 1px rgba(238, 241, 247, .09), 0 30px 80px rgba(0, 0, 0, .55);
    --glass: rgba(20, 27, 49, .72);
    --yt: #ff8f85; --yt-soft: #3a1a1f;
    --ios: #86b9ff; --ios-soft: #142a4d;
    --air: #ffaf8f; --air-soft: #3b2119;
    --vr: #bda5ff; --vr-soft: #2a1f4d;
    --on-accent: #0b1020;
  }
}

/* Product scopes set the page or card accent. */
.p-yt { --accent: var(--yt); --accent-soft: var(--yt-soft); --g1: var(--yt-glow); --g2: var(--yt-glow-2); }
.p-ios { --accent: var(--ios); --accent-soft: var(--ios-soft); --g1: var(--ios-glow); --g2: var(--ios-glow-2); }
.p-air { --accent: var(--air); --accent-soft: var(--air-soft); --g1: var(--air-glow); --g2: var(--air-glow-2); }
.p-vr { --accent: var(--vr); --accent-soft: var(--vr-soft); --g1: var(--vr-glow); --g2: var(--vr-glow-2); }
.p-family { --g1: var(--ios-glow); --g2: var(--vr-glow); }

/* ─── base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: calc(var(--head-h) + 16px); overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, dl, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
main a:not([class]), .footer a, .doc-body a, .note a { color: var(--accent); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ios-glow); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--ios-glow) 30%, transparent); }
main:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--head-h) + 16px); }
.wrap { width: min(var(--page), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.wrap, .wrap * { min-width: 0; overflow-wrap: break-word; }
.visually-hidden { 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: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; }

/* page backdrop: soft product-tinted light at the top of each page */
.backdrop { position: relative; isolation: isolate; }
.backdrop::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 82% 28%, color-mix(in srgb, var(--g1, #2f8cff) 24%, transparent), transparent 70%),
    radial-gradient(34% 40% at 62% 62%, color-mix(in srgb, var(--g2, #8f5cff) 18%, transparent), transparent 70%),
    radial-gradient(30% 36% at 10% 8%, color-mix(in srgb, var(--g2, #8f5cff) 10%, transparent), transparent 70%);
}
.backdrop::after {
  content: ""; position: absolute; inset: -120px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  opacity: .45;
}

/* ─── header ───────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 650; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.1; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 16px rgba(23, 87, 194, .28); }
.brand small { display: block; font-size: .7rem; font-weight: 450; letter-spacing: .01em; color: var(--muted); margin-top: 2px; }
.top-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.top-nav a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.top-nav a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, transparent); flex: none; }
.top-nav a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.top-nav a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.top-nav .n-yt { --dot: var(--yt-glow); } .top-nav .n-ios { --dot: var(--ios-glow); }
.top-nav .n-air { --dot: var(--air-glow); } .top-nav .n-vr { --dot: var(--vr-glow); }
[data-theme-control] {
  flex: none; font: inherit; font-size: .84rem; font-weight: 500; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
}
[data-theme-control]:hover { border-color: var(--ink); }
[data-theme-control]:focus-visible { outline: 3px solid var(--ios-glow); outline-offset: 3px; }

/* section breadcrumb + local nav (iOS information pages) */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-top: 18px; font-size: .85rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.local-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.local-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: .82rem; text-decoration: none; color: var(--ink-2);
}
.local-nav a:hover { border-color: var(--accent); color: var(--ink); }
.local-nav a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ─── type + common blocks ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.kicker { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: 14px; display: block; }
.display { font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.045em; font-weight: 560; }
.display .soft { color: var(--muted); }
.display .grad, .h-sec .grad {
  background: linear-gradient(100deg, var(--g1, var(--ios-glow)), var(--g2, var(--vr-glow)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-website-theme=light] .display .grad { filter: saturate(1.15) brightness(.82); }
.h-sec { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 560; }
.h-sec + .lead, .h-sec + p { margin-top: 18px; }
.split .h-sec { font-size: clamp(1.9rem, 3.4vw, 2.8rem); hyphens: manual; }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: 18px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 500; line-height: 1.3; background: var(--glass); box-shadow: var(--shadow-sm); color: var(--ink-2);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--accent)); flex: none; font-style: normal; }
.chip.live i { --dot: #2fb36b; box-shadow: 0 0 0 4px color-mix(in srgb, #2fb36b 22%, transparent); }
.chip.dev i { --dot: #e0a31a; }
.chip.soon i { --dot: var(--vr-glow); }
.chip.web i { --dot: var(--air-glow); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; }
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; max-width: 100%;
  padding: 11px 22px; border-radius: 14px; border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms, box-shadow 160ms;
}
.btn-solid, .button, .button.primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn-solid:hover, .button:hover { transform: translateY(-1px); }
.btn-line, .button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-line:hover, .button.secondary:hover { border-color: var(--ink); }
.btn .arrow, .text-link .arrow { transition: transform 160ms var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.note-line { margin-top: 16px; font-size: .84rem; color: var(--muted); max-width: 560px; }

/* surfaces */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; padding: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.card .num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem;
}
.card .icon { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card .icon svg { width: 22px; height: 22px; }

/* ─── hero layout ──────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero-copy .chip { margin-bottom: 22px; }
.hero-copy .lead { margin-top: 24px; }
.hero-in > * { animation: rise .8s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: .06s; } .hero-in > *:nth-child(3) { animation-delay: .12s; }
.hero-in > *:nth-child(4) { animation-delay: .18s; } .hero-in > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ─── stage: layered 3D art container ──────────────────────────────── */
.stage { position: relative; aspect-ratio: 1 / .92; min-height: 360px; perspective: 1400px; }
.stage-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -12deg)); transition: transform 600ms var(--ease); }
.stage figcaption, .art-caption { position: absolute; left: 0; bottom: -6px; font-size: .78rem; color: var(--muted); }
.aura { position: absolute; border-radius: 50%; filter: blur(42px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.aura.a1 { width: 46%; height: 46%; left: 8%; top: 10%; background: var(--ios-glow); }
.aura.a2 { width: 40%; height: 40%; right: 2%; top: 4%; background: var(--yt-glow); animation-delay: -6s; }
.aura.a3 { width: 42%; height: 42%; right: 10%; bottom: 4%; background: var(--vr-glow); animation-delay: -11s; }
.aura.a4 { width: 30%; height: 30%; left: 12%; bottom: 8%; background: var(--air-glow); animation-delay: -3s; }
:root[data-website-theme=dark] .aura { opacity: .38; }
@keyframes drift { from { transform: translate3d(0, 0, -80px) scale(1); } to { transform: translate3d(5%, -6%, -80px) scale(1.12); } }
.orbit { position: absolute; inset: 4%; width: 92%; height: 92%; transform: translateZ(-30px); color: var(--line-strong); }
.orbit ellipse { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 2 7; }
.orbit circle { fill: currentColor; }

.float { animation: bob 7s ease-in-out infinite; }
.float.d1 { animation-delay: -1.5s; } .float.d2 { animation-delay: -3s; } .float.d3 { animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* glass tile used inside art */
.tile {
  position: absolute; border-radius: 20px; padding: 14px; background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--shadow-lg); border: 1px solid color-mix(in srgb, #fff 40%, transparent);
  color: var(--ink);
}
:root[data-website-theme=dark] .tile { border-color: rgba(255,255,255,.08); }
.tile-label { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); margin-bottom: 10px; }
.tile-label b { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--g1), var(--g2)); flex: none; }
.bar { height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.bar + .bar { margin-top: 7px; }
.bar.w60 { width: 60%; } .bar.w40 { width: 40%; } .bar.w75 { width: 75%; } .bar.w50 { width: 50%; }

/* family hub tiles */
.tile-yt { left: 2%; top: 9%; width: 52%; transform: translateZ(70px) rotate(-2deg); }
.tile-ios .np-art { aspect-ratio: 1.35; }
.tile-ios { right: 2%; top: 4%; width: 32%; transform: translateZ(120px) rotate(2deg); }
.tile-air { left: 6%; bottom: 10%; width: 46%; transform: translateZ(40px) rotate(1.5deg); }
.tile-vr { right: 4%; bottom: 2%; width: 40%; transform: translateZ(90px) rotate(-2deg); }
.stage .core { display: none; }
.core { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; translate: -50% -50%; transform: translateZ(10px); border-radius: 26%; box-shadow: 0 20px 50px rgba(23, 87, 194, .45); }
.core img { width: 100%; height: 100%; border-radius: 26%; }

.vid { position: relative; aspect-ratio: 16 / 8.4; border-radius: 12px; overflow: hidden;
  background: radial-gradient(60% 80% at 70% 30%, #e7897a, transparent 70%), linear-gradient(135deg, #3b2e57, #1d2033 70%); }
.vid .skip { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border-radius: 99px; background: rgba(12, 14, 20, .82); color: #fff; font-size: .66rem; font-weight: 600; }
.vid .skip span { width: 16px; height: 16px; border-radius: 50%; background: #d8322a; display: grid; place-items: center; }
.vid .skip svg { width: 8px; height: 8px; }
.timeline { display: flex; gap: 3px; margin-top: 10px; height: 8px; }
.timeline i { display: block; border-radius: 3px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.timeline i.on { background: var(--yt-glow); }
.timeline i.skip { background: repeating-linear-gradient(135deg, #e0a31a 0 3px, transparent 3px 6px); }
.tile-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.np-art { aspect-ratio: 1; border-radius: 14px; background: conic-gradient(from 210deg at 60% 40%, #22d3c5, #2f8cff, #6236c0, #22d3c5); position: relative; overflow: hidden; }
.np-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 30% 25%, rgba(255,255,255,.55), transparent 60%); }
.np-art .wave { position: absolute; left: 12%; right: 12%; bottom: 14%; height: 34%; display: flex; align-items: flex-end; gap: 6%; }
.np-art .wave i { flex: 1; border-radius: 4px; background: rgba(255,255,255,.85); animation: eq 1.6s ease-in-out infinite alternate; }
.np-art .wave i:nth-child(1) { height: 40%; } .np-art .wave i:nth-child(2) { height: 85%; animation-delay: -.4s; }
.np-art .wave i:nth-child(3) { height: 60%; animation-delay: -.8s; } .np-art .wave i:nth-child(4) { height: 95%; animation-delay: -1.1s; }
.np-art .wave i:nth-child(5) { height: 50%; animation-delay: -.2s; }
@keyframes eq { from { transform: scaleY(.45); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
.progress { height: 5px; margin-top: 12px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); position: relative; }
.progress::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 42%); border-radius: inherit; background: linear-gradient(90deg, var(--ios-glow-2), var(--ios-glow)); }
.progress i { position: absolute; top: -2px; width: 2px; height: 9px; background: var(--surface); }

.browser-bar { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.browser-bar span { margin-left: 6px; flex: 1; padding: 3px 9px; border-radius: 99px; font-size: .62rem; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: center; padding: 6px 0; }
.ep + .ep { border-top: 1px solid var(--line); }
.ep b { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--air-glow), var(--air-glow-2)); }
.ep:nth-child(3) b { background: linear-gradient(135deg, #c3563b, #ff8a5c); }
.ep:nth-child(4) b { background: linear-gradient(135deg, #ffd166, #ff8a5c 80%); }

.vr-scene { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #1a1040 0%, #3a1d6e 52%, #12082a 52.2%, #0a0618 100%); }
.vr-scene::before { content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 50%;
  background-image: linear-gradient(rgba(189,165,255,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(189,165,255,.55) 1px, transparent 1px);
  background-size: 22px 22px; transform: perspective(160px) rotateX(62deg); transform-origin: top; }
.vr-scene::after { content: ""; position: absolute; left: 50%; top: 18%; width: 40%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #ff6bcb, #8f5cff 55%, transparent 70%); filter: blur(2px); opacity: .9; }
.vr-scene .panel-a, .vr-scene .panel-b { position: absolute; top: 26%; width: 22%; height: 30%; border-radius: 6px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.12); z-index: 1; }
.vr-scene .panel-a { left: 8%; transform: perspective(200px) rotateY(32deg); }
.vr-scene .panel-b { right: 8%; transform: perspective(200px) rotateY(-32deg); }

/* motion control (shown when family.js runs) */
.motion-toggle {
  position: absolute; right: 0; bottom: -14px; z-index: 3; display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 500; cursor: pointer;
}
.js .motion-toggle { display: inline-flex; }
/* desktop: the caption wraps before the absolutely placed toggle, so the disclaimer is never covered */
@media (min-width: 761px) { .js .stage .art-caption { max-width: calc(100% - 190px); } }
.motion-toggle svg { width: 12px; height: 12px; }
:root[data-motion=paused] *, :root[data-motion=paused] *::before, :root[data-motion=paused] *::after { animation-play-state: paused !important; }

/* ─── hub: product grid ────────────────────────────────────────────── */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product {
  position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-md); transition: transform 220ms var(--ease), box-shadow 220ms;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-art {
  position: relative; height: 230px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 90% at 85% 10%, color-mix(in srgb, var(--g1) 60%, transparent), transparent 70%),
    radial-gradient(60% 90% at 10% 100%, color-mix(in srgb, var(--g2) 45%, transparent), transparent 70%),
    linear-gradient(160deg, var(--accent-soft), var(--surface-2));
}
.product-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.4px); background-size: 18px 18px; opacity: .5; }
.product-art .tile { transform: none; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 30px; }
.product-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-id img, .product-id .glyph { width: 52px; height: 52px; border-radius: 14px; flex: none; box-shadow: 0 10px 22px color-mix(in srgb, var(--g1) 35%, transparent); }
.glyph { display: grid; place-items: center; background: linear-gradient(140deg, var(--g1), var(--g2)); color: #fff; }
.glyph svg { width: 26px; height: 26px; }
.product-id h3 { font-size: 1.5rem; }
.product-id p { font-size: .82rem; color: var(--muted); margin: 3px 0 0; }
.product-deck { font-size: 1.32rem; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.product-body > p:not(.product-deck) { color: var(--ink-2); }
.product-body .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.product-body .actions { margin-top: auto; padding-top: 24px; }
.stat-inline { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); font-size: .92rem; color: var(--ink); }
.stat-inline strong { color: var(--accent); }

/* art inside product cards */
.art-yt .tile { left: 8%; right: 30%; top: 26px; }
.art-yt .tile.side { left: auto; right: 6%; top: 112px; width: 38%; padding: 10px 12px; }
.art-ios .phone-mini { position: absolute; left: 50%; top: 22px; width: 150px; translate: -50% 0; }
.art-ios .tile.side { left: 8%; top: 60px; width: 32%; padding: 10px 12px; }
.art-ios .tile.side.r { left: auto; right: 7%; top: 120px; }
.art-air .tile { left: 10%; right: 10%; top: 26px; }
.art-vr .vr-scene { position: absolute; inset: 22px 9% auto; aspect-ratio: auto; height: 190px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.side-chip { display: flex; align-items: center; gap: 9px; font-size: .74rem; font-weight: 600; line-height: 1.25; }
.side-chip b { width: 26px; height: 26px; border-radius: 8px; flex: none; background: linear-gradient(135deg, var(--g1), var(--g2)); display: grid; place-items: center; color: #fff; }
.side-chip b svg { width: 12px; height: 12px; }
.side-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .68rem; }

/* phone frame */
.phone {
  position: relative; border-radius: 40px; padding: 10px; background: linear-gradient(145deg, #2a2f3a, #0d1017);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, var(--shadow-lg);
}
.phone-screen { border-radius: 31px; overflow: hidden; background: var(--surface); min-height: 100%; padding: 30px 16px 18px; position: relative; }
.phone-screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 32%; height: 16px; translate: -50% 0; border-radius: 99px; background: #0d1017; }
.phone-mini { border-radius: 28px; padding: 7px; }
.phone-mini .phone-screen { border-radius: 22px; padding: 22px 11px 12px; }
.phone-mini .phone-screen::before { top: 6px; height: 11px; }

/* ─── time band ────────────────────────────────────────────────────── */
.time-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 5vw, 64px); color: #fff;
  background:
    radial-gradient(50% 80% at 90% 10%, rgba(255, 90, 78, .55), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(255, 179, 71, .35), transparent 70%),
    linear-gradient(135deg, #2a0f14, #14070a 70%);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; box-shadow: var(--shadow-lg); }
.time-band .eyebrow { color: rgba(255,255,255,.78); }
.time-band .lead { color: rgba(255,255,255,.86); margin-top: 18px; }
.time-band .btn-solid { background: #fff; color: #2a0f14; box-shadow: none; }
.time-band .text-link { color: #ffd2cc; }
.time-figure { text-align: center; position: relative; }
.time-figure svg { width: min(320px, 100%); margin-inline: auto; }
.ring-bg { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 14; }
.ring-fg { fill: none; stroke: url(#ringGrad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 560 754; transform: rotate(-90deg); transform-origin: center; animation: ring 2.4s var(--ease) both; }
@keyframes ring { from { stroke-dasharray: 0 754; } }
.time-figure .big { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; }
.time-figure .big strong { font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.time-figure .big span { font-size: .85rem; color: rgba(255,255,255,.8); }
.attrib { margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.78); }

/* ─── compare table ────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare tbody th span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.compare tr:last-child > * { border-bottom: 0; }
.compare a { color: var(--accent); }

/* ─── editorial split (spectra etc.) ───────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.weave { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--surface), var(--bg-2)); box-shadow: var(--shadow-md); }
.weave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.weave > svg path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 6 10; animation: flow 6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -160; } }
.weave .node { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--g1), var(--g2)); color: #fff; }
.weave .node svg { position: static; width: 28px; height: 28px; }
.weave .hubnode { left: 50%; top: 50%; translate: -50% -50%; width: 86px; height: 86px; border-radius: 24px; background: var(--surface); }
.weave .hubnode img { width: 62px; height: 62px; border-radius: 16px; }
.boundary-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.boundary-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.boundary-list li::before { content: ""; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23697180' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; }
.boundary-list.yes li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f8cff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* ─── help routing ─────────────────────────────────────────────────── */
.route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.route { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); border-top: 4px solid var(--g1, var(--ink)); }
.route h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.route p { font-size: .92rem; color: var(--ink-2); }
.route ul { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.route li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--ink); }
.route li a::after { content: "→"; color: var(--accent); transition: transform 160ms var(--ease); }
.route li a[href^="http"]::after, .route li a[href^="mailto"]::after { content: "↗"; }
.route li a:hover { color: var(--accent); }
.route li a:hover::after { transform: translateX(3px); }
.route .glyph { width: 44px; height: 44px; border-radius: 12px; }
.route .glyph img { width: 44px; height: 44px; border-radius: 12px; }
.help-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* ─── iOS page ─────────────────────────────────────────────────────── */
.ios-stage { aspect-ratio: auto; min-height: 720px; }
.ios-stage .art-caption { bottom: 0; }
.ios-stage .phone { position: absolute; left: 50%; top: 2%; width: min(300px, 62%); translate: -50% 0; transform: translateZ(60px) rotate(-1deg); }
.ios-stage .aura.a1 { background: var(--ios-glow); } .ios-stage .aura.a2 { background: var(--ios-glow-2); } .ios-stage .aura.a3 { background: #6236c0; } .ios-stage .aura.a4 { background: #2f8cff; }
.np-title { margin-top: 12px; font-weight: 650; font-size: .95rem; letter-spacing: -.01em; }
.np-sub { font-size: .74rem; color: var(--muted); }
.np-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 10px; color: var(--ink); }
.np-controls svg { width: 18px; height: 18px; }
.np-controls .play { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); }
.np-times { display: flex; justify-content: space-between; margin-top: 6px; font-size: .64rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.np-queue { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.np-queue p { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.qrow { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 5px 0; font-size: .7rem; }
.qrow b { aspect-ratio: 1; border-radius: 7px; background: linear-gradient(135deg, var(--ios-glow-2), var(--ios-glow)); }
.qrow:nth-child(3) b { background: linear-gradient(135deg, #8f5cff, #2f8cff); }
.qrow:nth-child(4) b { background: linear-gradient(135deg, #ffb347, #ff5a4e); }
.qrow span { display: block; color: var(--muted); font-size: .62rem; }
.ios-stage .tile { width: 40%; max-width: 210px; padding: 12px 14px; }
.ios-stage .t1 { left: 0; top: 14%; transform: translateZ(130px) rotate(-3deg); }
.ios-stage .t2 { right: 0; top: 14%; transform: translateZ(150px) rotate(2deg); }
.ios-stage .t3 { left: 2%; top: 28%; transform: translateZ(100px) rotate(2deg); }

/* chapter demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow-lg); background: var(--surface); }
.demo-art { grid-row: span 2; position: relative; padding: clamp(24px, 4vw, 44px); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px;
  background: radial-gradient(70% 70% at 80% 20%, rgba(34, 211, 197, .55), transparent 70%), radial-gradient(70% 80% at 10% 90%, rgba(98, 54, 192, .6), transparent 70%), linear-gradient(160deg, #0f2a5c, #0b1020); }
.demo-art .eyebrow { color: rgba(255,255,255,.75); }
.demo-art .now { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.demo-art .when { margin-top: 6px; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.demo-track { position: relative; height: 10px; margin-top: 22px; border-radius: 99px; background: rgba(255,255,255,.18); }
.demo-track .fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #22d3c5, #86b9ff); transition: width 500ms var(--ease); }
.demo-track .mark { position: absolute; top: -3px; width: 3px; height: 16px; border-radius: 2px; background: rgba(255,255,255,.9); }
.demo-list { list-style: none; margin: 0; padding: clamp(18px, 3vw, 30px); display: grid; gap: 6px; align-content: start; }
.demo-list button {
  width: 100%; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px;
  border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.demo-list button:hover { background: var(--surface-2); border-color: var(--line); }
.demo-list button[aria-pressed=true] { background: var(--ios-soft); border-color: color-mix(in srgb, var(--ios) 40%, transparent); }
.demo-list .t { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; }
.demo-list .name { font-weight: 600; }
.demo-list .src { font-size: .74rem; color: var(--muted); }
.demo-note { padding: 0 clamp(18px, 3vw, 30px) clamp(18px, 3vw, 26px); font-size: .82rem; color: var(--muted); grid-column: 2; }

/* related links grid (iOS sections) */
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; min-height: 100%; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; transition: box-shadow 160ms, transform 160ms var(--ease); }
.link-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.link-card strong { font-size: 1rem; color: var(--ink); }
.link-card span { font-size: .85rem; color: var(--muted); }
.link-card strong::after { content: " →"; color: var(--accent); }

/* ─── VR page ──────────────────────────────────────────────────────── */
.vr-stage { aspect-ratio: 1 / .86; }
.vr-world { position: absolute; inset: 0; border-radius: 34px; overflow: hidden; transform: translateZ(0);
  background: radial-gradient(60% 50% at 50% 40%, rgba(255, 107, 203, .45), transparent 70%), linear-gradient(180deg, #120a2e 0%, #2b1360 48%, #0d0722 48.3%, #06030f 100%); box-shadow: var(--shadow-lg); }
.vr-world .floor { position: absolute; left: -60%; right: -60%; bottom: -6%; height: 54%;
  background-image: linear-gradient(rgba(189,165,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(189,165,255,.6) 1px, transparent 1px);
  background-size: 46px 46px; transform: perspective(300px) rotateX(64deg); transform-origin: top; animation: floor 6s linear infinite; }
@keyframes floor { to { background-position: 0 46px, 0 0; } }
.vr-world .sun { position: absolute; left: 50%; top: 14%; width: 34%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: linear-gradient(180deg, #ffd166, #ff6bcb 55%, #8f5cff); -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 10px, transparent 10px 14px); mask-image: repeating-linear-gradient(180deg, #000 0 72%, transparent 72% 100%); }
.vr-world .stars { position: absolute; inset: 0 0 52%; background-image: radial-gradient(1.4px 1.4px at 20% 30%, #fff, transparent), radial-gradient(1.2px 1.2px at 70% 20%, #fff, transparent), radial-gradient(1px 1px at 40% 60%, #fff, transparent), radial-gradient(1.3px 1.3px at 85% 55%, #fff, transparent), radial-gradient(1px 1px at 10% 70%, #fff, transparent), radial-gradient(1.2px 1.2px at 55% 12%, #fff, transparent); opacity: .8; }
.vr-pane { position: absolute; border-radius: 14px; border: 1px solid rgba(255,255,255,.45); background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.04)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.vr-pane.left { left: 7%; top: 26%; width: 26%; height: 30%; transform: translateZ(80px) perspective(500px) rotateY(34deg); }
.vr-pane.mid { left: 37%; top: 22%; width: 26%; height: 32%; transform: translateZ(110px); }
.vr-pane.right { right: 7%; top: 26%; width: 26%; height: 30%; transform: translateZ(80px) perspective(500px) rotateY(-34deg); }
.vr-pane::after { content: ""; position: absolute; inset: 14% 12% auto; height: 40%; border-radius: 8px; background: linear-gradient(135deg, rgba(143,92,255,.6), rgba(255,107,203,.5)); }
.vr-pane.mid::after { background: linear-gradient(135deg, rgba(47,140,255,.6), rgba(34,211,197,.5)); }
.vr-badge { position: absolute; left: 50%; bottom: 10%; translate: -50% 0; transform: translateZ(140px); padding: 10px 18px; border-radius: 999px; background: rgba(10, 6, 24, .7); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.vr-stage { margin-bottom: 40px; }
.vr-stage .art-caption { bottom: -46px; }

.status-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.status-item { padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.status-item dt { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.status-item dd { margin: 8px 0 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }

/* ─── page hero for information pages (iOS sub-pages) ──────────────── */
.info .intro { position: relative; margin-block: 18px 8px; padding: clamp(32px, 5vw, 60px); border-radius: 30px; overflow: hidden; isolation: isolate; box-shadow: var(--shadow-md);
  background:
    radial-gradient(50% 120% at 100% 0%, color-mix(in srgb, var(--g1) 34%, transparent), transparent 70%),
    radial-gradient(40% 100% at 70% 120%, color-mix(in srgb, var(--g2) 30%, transparent), transparent 70%),
    linear-gradient(160deg, var(--surface), var(--surface-2)); }
.info .intro h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.04em; line-height: 1.02; max-width: 15ch; }
.info .intro .lead { margin-top: 18px; }
.info .intro > p:not(.eyebrow):not(.lead) { margin-top: 14px; max-width: 760px; color: var(--ink-2); }
.info .intro .eyebrow { color: var(--accent); }
.page-art { position: absolute; right: clamp(12px, 4vw, 56px); top: 50%; translate: 0 -50%; width: clamp(140px, 22vw, 250px); aspect-ratio: 1; z-index: -1; pointer-events: none; }
.page-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); animation: spin 40s linear infinite; }
.page-art .ring.r2 { inset: 16%; animation-duration: 28s; animation-direction: reverse; }
.page-art .ring::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--g1); box-shadow: 0 0 16px var(--g1); }
.page-art .ring.r2::after { background: var(--g2); box-shadow: 0 0 16px var(--g2); }
.page-art img { position: absolute; inset: 32%; width: 36%; height: 36%; border-radius: 24%; box-shadow: 0 16px 40px color-mix(in srgb, var(--g1) 45%, transparent); }
@keyframes spin { to { rotate: 360deg; } }
.info .intro:has(.page-art) > :not(.page-art) { max-width: min(760px, calc(100% - clamp(120px, 20vw, 240px))); }

.info .editorial { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, 1fr); gap: 12px 40px; margin-top: 22px; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); }
.info .editorial > .eyebrow { margin: 6px 0 0; color: var(--accent); }
.info .editorial h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.03em; margin-bottom: 18px; }
.info .editorial p { color: var(--ink-2); max-width: 680px; }
.info .editorial > div > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; font-weight: 600; color: var(--accent); }
.info .editorial .button { margin-top: 18px; }
.info .editorial h3 { font-size: 1.15rem; margin-bottom: 8px; }
.info main { padding-bottom: clamp(48px, 7vw, 88px); }
.listening-tools { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; counter-reset: tools; }
.listening-tools li { counter-increment: tools; position: relative; padding: 18px 18px 18px 64px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.listening-tools li::before { content: "0" counter(tools); position: absolute; left: 16px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 700; }

/* legal / historical documents: preserved body, readable card */
.doc-body { margin-top: 22px; padding: clamp(24px, 5vw, 64px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); }
.doc-body > * { max-width: 760px; margin-inline: auto; }
.doc-body > h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.035em; margin-bottom: 18px; }
.doc-body > h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-top: 2.2em; margin-bottom: .6em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.doc-body h3 { font-size: 1.12rem; margin-top: 1.6em; margin-bottom: .5em; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body p + p { margin-top: .9em; }
.doc-body ul { padding-left: 1.3em; margin-top: .6em; }
.doc-body li + li { margin-top: .35em; }
.doc-body .meta { font-size: .9rem; color: var(--muted); margin-top: .4em; }
.doc-body .note { margin-top: 24px; padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); border-left: 4px solid var(--accent); color: var(--ink); }
.doc-body .legal-nav { margin-top: 26px; padding: 20px 24px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.doc-body .legal-nav ul { list-style: none; padding: 0; margin-top: 10px; columns: 2; column-gap: 28px; }
.doc-body .legal-nav li { break-inside: avoid; }
.doc-body .legal-nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: .92rem; }
/* changelog */
.doc-body .section-shell + .section-shell { margin-top: 32px; }
.doc-body .page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.035em; margin-bottom: 14px; }
.doc-body .page-hero > p:not(.eyebrow) { color: var(--ink-2); margin-top: 12px; }
.changelog-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.changelog-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .85rem; }
.changelog-date { position: relative; padding-left: 28px; border-left: 2px solid var(--line); margin-top: 28px; }
.changelog-date > h2 { position: relative; font-size: 1.3rem; margin-bottom: 12px; }
.changelog-date > h2::before { content: ""; position: absolute; left: -36px; top: .3em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.changelog-date article { margin-top: 14px; padding: 20px 22px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.changelog-date article h3 { margin-top: 4px; }
.changelog-date time { font-size: .8rem; color: var(--muted); }
.changelog-date .permalink { display: inline-flex; align-items: center; min-height: 40px; font-size: .82rem; }
.final-cta { margin-top: 36px; padding: 26px; border-radius: 18px; background: var(--accent-soft); }
.final-cta h2 { font-size: 1.4rem; margin-bottom: 8px; }

/* ─── footer ───────────────────────────────────────────────────────── */
.footer-band { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: var(--bg-2); }
.footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-block: 52px 44px; font-size: .9rem; }
.footer-title > a { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 650; text-decoration: none; color: var(--ink); }
.footer-title img { width: 32px; height: 32px; border-radius: 9px; }
.footer-title p { margin: 14px 0 8px; color: var(--ink-2); max-width: 300px; }
.footer-title small { color: var(--muted); font-size: .8rem; }
.footer nav h2 { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.footer nav a { display: flex; align-items: center; min-height: 40px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer .footer-title a:not(:first-child), .footer-title p a { color: var(--ink); text-decoration: underline; }

/* ─── responsive ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .route-grid, .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero, .split, .time-band { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 620px; width: 100%; margin-inline: auto; }
  .products, .grid-3, .help-guide, .status-board { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-note { grid-column: 1; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-title { grid-column: 1 / -1; }
  .info .editorial { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --head-h: 60px; }
  .head-inner { flex-wrap: wrap; gap: 6px 10px; padding-block: 8px 4px; }
  .brand { font-size: 1.02rem; }
  .brand img { width: 34px; height: 34px; }
  [data-theme-control] { margin-left: auto; font-size: .78rem; padding: 0 12px; }
  .top-nav { order: 3; width: 100%; margin: 0 -8px; gap: 0; justify-content: space-between; }
  .top-nav a { padding: 0 8px; font-size: .84rem; gap: 5px; }
  .top-nav a::before { width: 6px; height: 6px; }
  .site-head { position: relative; }
  .route-grid, .link-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: 0; }
  .product-art { height: 200px; }
  .product-body { padding: 22px 22px 24px; }
  .page-art { display: none; }
  .info .intro:has(.page-art) > :not(.page-art) { max-width: none; }
  .doc-body .legal-nav ul { columns: 1; }
  .changelog-date { padding-left: 20px; }
  .changelog-date > h2::before { left: -28px; }
  .time-band { border-radius: 26px; }
  /* hub hero: taller stage, wider tiles */
  .tile { padding: 10px; border-radius: 16px; }
  .stage-inner { --ry: -5deg; --rx: 4deg; }
  .tile-yt { left: 3%; top: 4%; width: 62%; }
  .tile-ios { right: 0; top: 16%; width: 40%; }
  .tile-ios .tile-meta, .tile-yt .tile-meta { display: none; }
  .tile-air { left: 3%; bottom: 6%; width: 43%; }
  .tile-vr { right: 0; bottom: 2%; width: 50%; }
  /* iOS hero: phone in flow, caption below */
  .ios-stage { min-height: 0; padding-top: 8px; }
  .ios-stage .stage-inner { position: relative; }
  .ios-stage .phone { position: relative; left: auto; top: auto; translate: none; margin: 0 auto; width: min(270px, 78%); }
  .ios-stage .t1 { left: 9%; top: 4%; transform: translateZ(90px) rotate(-2deg); } .ios-stage .t2, .ios-stage .t3 { display: none; }
  .ios-stage .art-caption { position: static; display: block; margin-top: 18px; }
  .stage figcaption { bottom: -4px; }
  /* motion control joins normal flow below the caption so disclaimers stay legible */
  .stage, .stage:not(.ios-stage):not(.vr-stage) { aspect-ratio: auto; min-height: 0; }
  .stage > .stage-inner { position: relative; inset: auto; width: 100%; aspect-ratio: 1 / 1.3; }
  .vr-stage > .stage-inner { aspect-ratio: 1 / .86; }
  .ios-stage > .stage-inner { aspect-ratio: auto; }
  .stage .art-caption { position: static; display: block; margin-top: 14px; }
  .js .motion-toggle { position: static; display: inline-flex; margin-top: 10px; }
  /* compare table becomes stacked cards */
  .table-wrap { overflow: visible; background: none; box-shadow: none; }
  .compare { min-width: 0; display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody { display: grid; gap: 14px; }
  .compare tr { display: block; padding: 18px 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-md); }
  .compare th, .compare td { display: block; padding: 4px 0; border: 0; }
  .compare tbody th { font-size: 1.1rem; margin-bottom: 6px; }
  .compare td::before { content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 6px; }
}
@media (max-width: 420px) {
  .top-nav a::before { display: none; }
  .top-nav a { padding: 0 6px; }
  .display { font-size: 2.55rem; }
  .ios-stage .tile { width: 46%; }
  .footer { grid-template-columns: 1fr; }
  .tile-label { font-size: .66rem; }
}

/* ─── motion preferences ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .stage-inner { transform: rotateX(4deg) rotateY(-8deg); }
}

/* ─── print ────────────────────────────────────────────────────────── */
@media print {
  .site-head, .footer-band, .stage, .page-art, .motion-toggle { display: none !important; }
  body, .doc-body, .card, .panel { background: #fff; color: #000; box-shadow: none; }
}

[hidden] { display: none !important; }
.fragment-target { display: block; height: 0; }

/* contact & canonical legal directory cards */
.mailbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mailbox-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); border-top: 4px solid var(--g1, var(--accent)); }
.mailbox-card h3 { font-size: 1.2rem; }
.mailbox-card .email-addr { font-weight: 650; font-size: 1.02rem; color: var(--accent); word-break: break-word; }
.mailbox-card p { color: var(--ink-2); font-size: .94rem; }
.mailbox-card .actions { margin-top: auto; padding-top: 10px; }
.nf-panel { margin-block: clamp(48px, 8vw, 96px); padding: clamp(32px, 5vw, 60px); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-md); max-width: 780px; }
.nf-panel h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.04em; line-height: 1.04; margin-bottom: 16px; }
.nf-panel .lead { max-width: 580px; }
@media (max-width: 920px) {
  .mailbox-grid { grid-template-columns: minmax(0, 1fr); }
}
