/* Pixel IPTV — site styles, v4. No external requests: system fonts, inline SVG,
   local images only. Dark first; light follows the system, ?theme=light|dark,
   or the header switch (data-theme on <html>, saved per browser).
   The Apple TV band (.theatre) keeps the dark tokens in both themes. */

/* ================================================================ tokens */
:root,
.theatre {
  color-scheme: dark;
  --bg: #060708;
  --bg-2: #0a0b0d;
  --surface: #101216;
  --surface-2: #16191e;
  --surface-3: #1f232a;
  --line: rgb(255 255 255 / .08);
  --line-2: rgb(255 255 255 / .15);
  --text: #f5f5f7;
  --text-2: rgb(236 237 241 / .74);
  --text-3: rgb(236 237 241 / .58);
  --head-grad: linear-gradient(180deg, #fff 25%, rgb(255 255 255 / .7));
  --accent: #80d900;
  --accent-text: #9be62a;
  --accent-ink: #0a1200;
  --accent-soft: rgb(128 217 0 / .12);
  --accent-line: rgb(128 217 0 / .4);
  --glow-a: rgb(128 217 0 / .3);
  --glass: rgb(16 18 22 / .62);
  --tile: #0d0f12;
  --tile-line: rgb(255 255 255 / .07);
  --tile-hi: inset 0 1px 0 rgb(255 255 255 / .05);
  --shadow-dev: 0 60px 90px -40px rgb(0 0 0 / .95), 0 24px 40px -30px rgb(0 0 0 / .8);
  --amb: .55;
  --rec: #ff453a;
  --warn: #ffb340;
  --code-bg: #0b0d10;
  /* v4 */
  --glass-strong: rgb(16 18 22 / .82);
  --bezel: #0b0c0e;
  --bezel-edge: rgb(255 255 255 / .12);
  --pro-bg: var(--accent-soft);
  --pro-text: var(--accent-text);
  --stage-bg: #050607;
}
:root {
  --maxw: 1180px;
  --maxw-wide: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 52px;
  --section-pad: clamp(80px, 14vw, 200px);
  --fs-display: clamp(44px, 9vw, 112px);
  --fs-h2: clamp(34px, 6vw, 80px);
  --fs-h3: clamp(22px, 2.6vw, 32px);
  --fs-tout: clamp(17px, 1.6vw, 21px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-fine: 12px;
  --lh-display: .95;
  --track-display: -.02em;
  --r-pill: 999px;
  --r-tile: 28px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-chip: 8px;
  --bz-tv: clamp(6px, 1.1vw, 14px);
  --rad-tv: clamp(10px, 1.6vw, 18px);
  --bz-ipad: clamp(8px, 1.4vw, 16px);
  --rad-ipad: clamp(18px, 2.6vw, 30px);
  --bz-phone: clamp(6px, 1.6vw, 10px);
  --rad-phone: clamp(26px, 7vw, 44px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f5f7;
    --bg-2: #ececf0;
    --surface: #fff;
    --surface-2: #f0f0f3;
    --surface-3: #e5e5ea;
    --line: rgb(0 0 0 / .08);
    --line-2: rgb(0 0 0 / .15);
    --text: #0b0b0d;
    --text-2: rgb(28 30 36 / .78);
    --text-3: rgb(28 30 36 / .64);
    --head-grad: linear-gradient(180deg, #0b0b0d 35%, #42454d);
    --accent-text: #3a7500;
    --accent-soft: rgb(128 217 0 / .16);
    --accent-line: rgb(80 150 0 / .45);
    --glow-a: rgb(128 217 0 / .3);
    --glass: rgb(255 255 255 / .72);
    --tile: #fff;
    --tile-line: rgb(0 0 0 / .06);
    --tile-hi: 0 1px 2px rgb(0 0 0 / .03);
    --shadow-dev: 0 50px 80px -40px rgb(10 14 24 / .5), 0 20px 36px -28px rgb(10 14 24 / .35);
    --amb: .32;
    --warn: #a35f00;
    --glass-strong: rgb(255 255 255 / .86);
    --bezel: #111316;
    --bezel-edge: rgb(0 0 0 / .18);
    --stage-bg: #0b0c0e;
    --pro-text: #2f6400;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-2: #ececf0;
  --surface: #fff;
  --surface-2: #f0f0f3;
  --surface-3: #e5e5ea;
  --line: rgb(0 0 0 / .08);
  --line-2: rgb(0 0 0 / .15);
  --text: #0b0b0d;
  --text-2: rgb(28 30 36 / .78);
  --text-3: rgb(28 30 36 / .64);
  --head-grad: linear-gradient(180deg, #0b0b0d 35%, #42454d);
  --accent-text: #3a7500;
  --accent-soft: rgb(128 217 0 / .16);
  --accent-line: rgb(80 150 0 / .45);
  --glow-a: rgb(128 217 0 / .3);
  --glass: rgb(255 255 255 / .72);
  --tile: #fff;
  --tile-line: rgb(0 0 0 / .06);
  --tile-hi: 0 1px 2px rgb(0 0 0 / .03);
  --shadow-dev: 0 50px 80px -40px rgb(10 14 24 / .5), 0 20px 36px -28px rgb(10 14 24 / .35);
  --amb: .32;
  --warn: #a35f00;
  --glass-strong: rgb(255 255 255 / .86);
  --bezel: #111316;
  --bezel-edge: rgb(0 0 0 / .18);
  --stage-bg: #0b0c0e;
  --pro-text: #2f6400;
}
/* The Apple TV band stays dark in both themes. */
.theatre { color-scheme: dark; --text: #f5f5f7; --amb: .7; }

/* Both languages are in the page; one is shown. */
html[lang^="pt"] [lang="en"]:not(html),
html[lang="en"] [lang^="pt"]:not(html) { display: none !important; }

/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.52 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--text); text-wrap: balance; font-weight: 700; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 650; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
section[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
.i { width: 1.25em; height: 1.25em; flex: none; }
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); font-weight: 650;
  padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; text-decoration: none; }
.wrap { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: calc(var(--maxw-wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--text-3); }
.small { font-size: .9rem; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================================================================ type */
.display, .display-2, .display-3, .h2 {
  background: var(--head-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: .06em;
}
.display { font-size: clamp(2.5rem, 1.3rem + 3.5vw, 4.5rem); line-height: 1; letter-spacing: -.04em; }
.display-2 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4rem); line-height: 1.03; letter-spacing: -.038em; }
.display-3 { font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3.1rem); line-height: 1.06; letter-spacing: -.032em; }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.02; letter-spacing: var(--track-display); }
@media (forced-colors: active) {
  .display, .display-2, .display-3, .h2 { background: none; color: CanvasText; }
}
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.48; color: var(--text-2); letter-spacing: -.014em; }
.tout { font-size: var(--fs-tout); font-weight: 500; line-height: 1.45; color: var(--text-2); letter-spacing: -.012em; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px; font-size: var(--fs-small); font-weight: 600; color: var(--accent-text); letter-spacing: -.005em;
}
.eyebrow-h1 { margin: 0; font: 600 var(--fs-small)/1.3 var(--font); color: var(--text-2); letter-spacing: -.005em; }
.center .eyebrow, .sec-head .eyebrow { justify-content: center; }
.fine { font-size: var(--fs-small); color: var(--text-3); }
.pro {
  display: inline-block; vertical-align: .14em;
  font: 600 12px/1.35 var(--font); letter-spacing: .02em;
  padding: 2px 7px; border-radius: var(--r-chip);
  color: var(--pro-text); background: var(--pro-bg);
  -webkit-text-fill-color: currentColor;
}
.tag-new {
  font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); letter-spacing: 0;
}
.more { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); font-size: 17px; font-weight: 400; }
.more:hover, .more:focus-visible { text-decoration: underline; }
.chev { width: 10px; height: 10px; flex: none; }
.btn .chev { width: 11px; height: 11px; }
.more .chev.down { width: 12px; height: 12px; }
sup.fn { font-size: .62em; line-height: 0; vertical-align: super; margin-left: 1px; }
sup.fn a { color: inherit; padding: 0 2px; text-decoration: none; }
sup.fn a:hover { color: var(--accent-text); text-decoration: underline; }

/* ================================================================ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease), filter .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-quiet { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-3); }
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled="true"] { cursor: not-allowed; background: var(--surface-2); color: var(--text-2); border-color: var(--line); filter: none; }
.btn[aria-disabled="true"] .soon { color: var(--text-3); background: var(--surface-3); }
.btn[aria-disabled="true"]:active { transform: none; }
.badge-link { display: inline-block; border-radius: 10px; }
.badge-link img { height: 50px; width: auto; }
.badge-link.sm img { height: 40px; }
/* White badge on the dark theme, black badge on the light one. */
.badge-link img.b-light { display: none; }
:root[data-theme="light"] .badge-link img.b-light { display: block; }
:root[data-theme="light"] .badge-link img.b-dark { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .badge-link img.b-light { display: block; }
  :root:not([data-theme="dark"]) .badge-link img.b-dark { display: none; }
}
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn .i { width: 18px; height: 18px; }
.cta-row { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; margin-top: 30px; }
.cta-row.center { justify-content: center; }

/* ================================================================ header */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); }
/* The glass lives on a pseudo-element, so the header is not a backdrop root
   and the menu panel can blur the page behind it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.site-header.scrolled::before { background: var(--glass-strong); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 650 17px/1 var(--font-display); letter-spacing: -.02em; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a { position: relative; color: var(--text-2); font-size: 13px; padding: 8px 10px; border-radius: 8px; }
.nav > a:hover { color: var(--text); text-decoration: none; }
.nav > a[aria-current] { color: var(--text); }
.nav > a[aria-current]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang-switch button {
  border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  font: 600 12px/1 var(--font); letter-spacing: .04em; padding: 6px 8px; border-radius: 999px;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.header-actions .icon-btn { width: 32px; height: 32px; }
.theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="dark"]) .theme-btn .moon { display: block; }
}
.menu-btn { display: none; }
.menu-btn .chev-i { transition: transform .18s var(--ease); }
.menu-btn[aria-expanded="true"] .chev-i { transform: rotate(180deg); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before, .site-header.scrolled::before, .nav { background: var(--bg) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::before, .site-header.scrolled::before, .nav { background: var(--bg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (max-width: 1067.98px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgb(0 0 0 / .45);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s var(--ease); }
  .nav > a { display: flex; align-items: center; min-height: 44px; padding: 0; font-size: 17px; color: var(--text); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav > a[aria-current]::after { left: 0; right: auto; width: 28px; bottom: -1px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 479.98px) {
  .header-actions > .lang-switch, .header-actions > .theme-btn { display: none; }
  .nav-extra { display: flex; align-items: center; gap: 12px; padding-top: 16px; }
  .header-row { gap: 10px; }
  .header-actions { gap: 8px; }
}
@media (max-width: 359.98px) {
  .brand-name { display: none; }
}

/* ================================================================ devices
   A .dev is the frame (its padding is the bezel); .screen is the picture,
   with the inner radius = outer radius − bezel. Devices stay black in both themes. */
.dev {
  --bz: var(--bz-phone); --rad: var(--rad-phone);
  container-type: inline-size; position: relative; width: 100%;
  padding: var(--bz); border-radius: var(--rad); background: var(--bezel);
  box-shadow: inset 0 1px 0 var(--bezel-edge), 0 0 0 1px var(--bezel-edge), var(--shadow-dev);
}
.dev .screen { position: relative; overflow: hidden; background: #000; isolation: isolate; border-radius: calc(var(--rad) - var(--bz)); }
.dev .screen picture, .dev .screen img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.dev.tv { --bz: var(--bz-tv); --rad: var(--rad-tv); }
.dev.tv .screen { aspect-ratio: 16 / 9; }
.dev.ipad { --bz: var(--bz-ipad); --rad: var(--rad-ipad); }
.dev.ipad .screen { aspect-ratio: 4 / 3; }
.dev.iphone .screen { aspect-ratio: 460 / 999; }
.dev.land { --rad: clamp(20px, 4vw, 44px); }
.dev.land .screen { aspect-ratio: 1000 / 460; }
.browser {
  container-type: inline-size; border-radius: 14px; overflow: hidden; background: #111;
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow-dev);
}
.browser .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1b1d21; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3c41; }
.browser .bar span { margin: 0 auto; transform: translateX(-24px); font: 500 12px/1 var(--font); color: rgb(255 255 255 / .55); background: #26282d; padding: 6px 28px; border-radius: 7px; }
.browser img { width: 100%; }

/* Ambient light from the screen: a blurred copy of what it shows (set by JS). */
.glow { position: relative; isolation: isolate; }
.glow > .amb {
  position: absolute; z-index: -1; inset: 8% 6%; border-radius: 12%;
  background-size: cover; background-position: center;
  filter: blur(46px) saturate(1.7); opacity: var(--amb); transform: scale(1.06) translateZ(0);
  transition: background-image .6s;
}
html:not(.js) .glow::before {
  content: ""; position: absolute; z-index: -1; inset: 10%;
  background: radial-gradient(closest-side, var(--glow-a), transparent); filter: blur(30px);
}

/* ================================================================ inner-page hero (server) */
.hero { position: relative; isolation: isolate; padding-top: clamp(36px, 5vw, 72px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 36% 34% at 72% 76%, rgb(128 217 0 / .17), transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 0%, rgb(128 217 0 / .05), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 36em; }
.hero-devices {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 22px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); color: var(--text-2); font-size: 14px; font-weight: 500;
}
.hero-devices .i { width: 16px; height: 16px; color: var(--text-3); }
.hero-devices i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); margin: 0 4px; }
.hero .lede { max-width: 30em; margin: 22px 0 0; }
.hero .cta-row { margin-top: 30px; }
.hero-note { margin: 16px 0 0; font-size: .95rem; color: var(--text-3); }
.hero-note strong { color: var(--text-2); font-weight: 600; }

/* ================================================================ sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(32px, 5vw, 64px); }
.pt-0 { padding-top: 0; }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin: 18px 0 0; }
.section-head.center .lede { margin-inline: auto; max-width: 34em; }

/* segmented tabs, echoing the app's own pills */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg [role="tab"] {
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  font: 600 15px/1 var(--font); letter-spacing: -.01em; padding: 10px 20px; border-radius: 999px;
  transition: background-color .25s, color .25s;
}
.seg [role="tab"]:hover { color: var(--text); }
.seg [role="tab"][aria-selected="true"] { background: var(--text); color: var(--bg); }

/* ================================================================ HOME (index.html) */
.home .section { padding: var(--section-pad) 0; }
.band-1 { background: var(--bg); }
.band-2 { background: var(--bg-2); }
.sec-head { max-width: 900px; margin: 0 auto clamp(48px, 6vw, 88px); text-align: center; }
.sec-head .tout { max-width: 40ch; margin: 24px auto 0; }
.sec-foot { margin: clamp(40px, 5vw, 64px) auto 0; text-align: center; color: var(--text-2); }

/* lead-ins: a bold phrase that starts the paragraph */
.lead-ins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); max-width: 1000px; margin: clamp(56px, 7vw, 96px) auto 0; }
.lead-ins.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--maxw); }
.lead-in { margin: 0; max-width: 58ch; font-size: var(--fs-tout); line-height: 1.45; color: var(--text-2); letter-spacing: -.012em; }
.lead-in strong { color: var(--text); font-weight: 600; }
@media (max-width: 1067.98px) { .lead-ins.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 734.98px) { .lead-ins, .lead-ins.three { grid-template-columns: 1fr; } }

/* ---------- hero */
.hero-home { background: var(--bg-2); padding: clamp(56px, 8vw, 104px) 0 0; overflow: clip; }
.hero-home::before { display: none; }
.hero-lockup { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 22px; box-shadow: 0 24px 50px -22px rgb(128 217 0 / .45), 0 0 0 1px var(--line); }
.hero-lockup .eyebrow-h1 { margin-bottom: 14px; }
.hero-home .display { font-size: var(--fs-display); font-weight: 700; line-height: var(--lh-display); letter-spacing: var(--track-display); }
.hero-lockup .tout { max-width: 36ch; margin: 28px auto 0; }
.hero-lockup .cta-row { justify-content: center; margin-top: 30px; }
.hero-lockup .fine { margin: 20px 0 0; }
.hero-stage {
  margin-top: clamp(56px, 7vw, 96px); padding: 0 var(--gutter) 34px;
  background: linear-gradient(var(--bg-2) 0 60%, var(--bg) 60%);
}
.hero-dev { width: min(1100px, 92vw); margin-inline: auto; position: relative; }
/* iPad and iPhone in front of the Apple TV, at its lower corners (as in v3). */
.hero-side { position: absolute; z-index: 2; }
.hero-side .dev { box-shadow: inset 0 1px 0 var(--bezel-edge), 0 0 0 1px var(--bezel-edge), 0 40px 70px -24px rgb(0 0 0 / .75); }
.hero-ipad { width: 30%; left: -2.5%; bottom: -10%; }
.hero-iphone { width: 13.5%; right: -1.5%; bottom: -13%; }
.hero-iphone .dev { --bz: clamp(4px, .55vw, 7px); --rad: clamp(16px, 2.3vw, 28px); }
.hero-ipad .dev { --bz: clamp(5px, .8vw, 10px); --rad: clamp(12px, 1.7vw, 22px); }
@media (min-width: 735px) { .hero-stage { padding-bottom: clamp(70px, 9vw, 130px); } }
.hero-frame { --bz: var(--bz-tv); --rad: var(--rad-tv); }
.hero-frame .screen { aspect-ratio: 16 / 9; }
.hero-frame::after {
  content: ""; position: absolute; left: 39%; width: 22%; height: 6px; bottom: -16px;
  border-radius: 3px; background: var(--bezel); box-shadow: 0 0 0 1px var(--bezel-edge);
}
@media (max-width: 734.98px) {
  .hero-stage { background: linear-gradient(var(--bg-2) 0 62%, var(--bg) 62%); padding-bottom: 8px; }
  .hero-dev { width: min(72vw, 340px); }
  .hero-frame { --bz: var(--bz-phone); --rad: var(--rad-phone); }
  .hero-frame .screen { aspect-ratio: 460 / 999; }
  .hero-frame::after { display: none; }
  .hero-side { display: none; }
}

/* ---------- sticky story */
.story-stage { display: none; }
.story-steps { display: grid; gap: clamp(64px, 9vw, 104px); max-width: 640px; margin-inline: auto; }
.story-fig { margin: 0 0 32px; }
.story-step h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.022em; font-weight: 700; margin-bottom: 14px; }
.story-step .tout { margin: 0; max-width: 34em; }
.story-stage .screen { aspect-ratio: 4 / 3; }
.story-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.story-shot[data-active] { opacity: 1; }
@media (min-width: 735px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  html.js .story { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  html.js .story-stage { display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 8vh); }
  html.js .story-steps { grid-column: 1; grid-row: 1; gap: 0; max-width: none; margin: 0; }
  html.js .story-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .45s var(--ease); }
  html.js .story-step[data-active] { opacity: 1; }
  html.js .story-fig { display: none; }
}
@media (min-width: 1068px) and (min-height: 640px) and (prefers-reduced-motion: no-preference) {
  html.js .story { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
}

/* ---------- shelf (player) */
.shelf { position: relative; }
.shelf-track {
  --pad: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  display: flex; gap: clamp(16px, 2vw, 24px); margin: 0; padding: 24px var(--pad) 32px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track:focus-visible { outline-offset: -4px; border-radius: 12px; }
.shelf-card { flex: none; width: 86vw; scroll-snap-align: start; }
.shelf-card h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.022em; font-weight: 700; margin: 32px 0 10px; }
.shelf-card p { margin: 0; max-width: 46ch; color: var(--text-2); }
@media (min-width: 735px) { .shelf-card { width: 70vw; } }
@media (min-width: 1068px) { .shelf-card { width: 980px; } }
.shelf-controls { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 8px; }
.paddle {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--text); background: var(--glass); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.paddle svg { width: 14px; height: 14px; }
.paddle:hover:not(:disabled) { background: var(--surface-3); }
.paddle:disabled { opacity: .35; cursor: default; }
.dots { display: flex; align-items: center; margin-right: 6px; }
.dot { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color .2s, width .2s; }
.dot[aria-current="true"]::before { background: var(--text-2); }
.dot:focus-visible { outline-offset: 0; }

/* ---------- New in 2.5: the illustration stage */
.stage {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; max-width: 980px; margin: 0 auto;
  border-radius: var(--r-tile); background: var(--stage-bg); color: #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-dev);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("img/pt/iphone-player-1000.jpg") center / cover;
  background: image-set(url("img/pt/iphone-player-1000.webp") type("image/webp"), url("img/pt/iphone-player-1000.jpg") type("image/jpeg")) center / cover;
  filter: blur(28px) brightness(.45) saturate(1.2); transform: scale(1.15);
}
.stage-tag { position: absolute; top: 5%; left: 4%; font-size: 12px; font-weight: 500; color: rgb(236 237 241 / .62); letter-spacing: .01em; }
.skip-pill {
  position: absolute; right: 6%; bottom: 6%; padding: 11px 20px; border-radius: 999px;
  font: 600 15px/1 var(--font); color: #fff;
  background: rgb(16 18 22 / .62); border: 1px solid rgb(255 255 255 / .15);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.sub-sample {
  position: absolute; left: 50%; top: 72%; transform: translate(-50%, -50%); max-width: 88%; width: max-content;
  text-align: center; font: 600 clamp(15px, 2.2vw, 26px)/1.3 var(--font); color: #fff; letter-spacing: 0;
}
.look-outline, .look-yellow { text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.look-box { background: rgb(0 0 0 / .75); padding: 2px 8px; border-radius: 3px; }
.look-yellow { color: #ffd60a; }
@media (prefers-reduced-motion: no-preference) {
  html.js .skip-pill { transition: opacity .4s var(--ease), transform .4s var(--ease); }
  html.js .skip-pill:not(.on) { opacity: 0; transform: translateX(16px); }
  html.js .sub-sample { transition: opacity .4s var(--ease); }
  html.js .sub-sample:not(.on) { opacity: 0; }
}
@media (max-width: 734.98px) {
  .stage { border-radius: var(--r-md); }
  .skip-pill { right: 4%; top: 6%; bottom: auto; padding: 8px 13px; font-size: 13px; }
  .stage-tag { top: auto; bottom: 6%; }
}
.looks { display: flex; width: max-content; max-width: 100%; margin: 28px auto 0; }
.looks button {
  border: 0; background: transparent; color: var(--text-2); cursor: pointer; min-height: 36px;
  font: 600 15px/1 var(--font); letter-spacing: -.01em; padding: 10px 18px; border-radius: 999px;
}
.looks button:hover { color: var(--text); }
.looks button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
@media (max-width: 479.98px) { .looks button { font-size: 14px; padding: 10px 11px; } }

/* ---------- Continue Watching / Video Club */
.vod { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 1068px) { .vod { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; } }
.vod .lead-ins { grid-template-columns: 1fr; margin: 48px 0 0; max-width: none; gap: 24px; }
.vod-phone { width: min(62vw, 300px); margin-inline: auto; }
.live-row { --cards: 1.6; }
@media (min-width: 735px) { .live-row { --cards: 2.4; } }
@media (min-width: 1068px) { .live-row { --cards: 3.4; } }
.row-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 19px/1.2 var(--font); color: var(--text); letter-spacing: -.015em; }
.row-title .dotplay { width: 20px; height: 20px; color: var(--accent-text); }
.row-viewport {
  position: relative; overflow-x: auto; overflow-y: hidden; border-radius: var(--r-md); background: #111216;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.row-viewport::-webkit-scrollbar { display: none; }
.row-viewport:focus-visible { outline-offset: 2px; }
html.js .live-row:not(.static) .row-viewport { overflow: hidden; }
/* The capture is 5.6 cards wide (each card ≈ 250 of its 1400 px). */
.row-strip { position: relative; width: calc(100% * 5.6 / var(--cards)); transition: transform .7s cubic-bezier(.37, 0, .63, 1); }
.row-strip img { width: 100%; margin-top: -2.75%; }
.row-strip .snap { position: absolute; top: 0; width: 1px; height: 1px; scroll-snap-align: start; }
.live-row.static .row-strip { transform: none !important; transition: none; }
.replay { margin-top: 16px; }
.replay .i { width: 16px; height: 16px; }

/* ---------- Apple TV theatre (always dark) */
.home .theatre {
  color: var(--text);
  background: radial-gradient(60% 50% at 50% 35%, rgb(128 217 0 / .10), transparent), #08090b;
}
.theatre .tv-wrap { max-width: 1180px; margin-inline: auto; }
@media (min-width: 1440px) { .theatre .tv-wrap { max-width: var(--maxw-wide); } }
.theatre .sec-foot { color: var(--text-3); font-size: var(--fs-small); }
.river-wrap { display: flex; align-items: center; gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.river {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.river-track { display: flex; gap: 16px; width: max-content; padding-right: 16px; animation: drift 60s linear infinite; }
.river-track li {
  flex: none; display: grid; place-items: center; width: 160px; aspect-ratio: 16 / 9; padding: 16px;
  border-radius: var(--r-md); background: var(--tile); border: 1px solid var(--tile-line); box-shadow: var(--tile-hi);
}
.river-track img { width: 100%; height: 100%; object-fit: contain; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.river.paused .river-track, .river.off .river-track, .river:hover .river-track, .theatre:focus-within .river-track { animation-play-state: paused; }
.river-btn {
  flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--text); background: rgb(255 255 255 / .08); border: 1px solid var(--line-2);
}
.river-btn:hover { background: rgb(255 255 255 / .14); }
.river-btn svg { width: 16px; height: 16px; }
.river-btn .ic-play, .river-btn[aria-pressed="true"] .ic-pause { display: none; }
.river-btn[aria-pressed="true"] .ic-play { display: block; }
@media (max-width: 734.98px) { .river-track li { width: 120px; padding: 12px; } }

/* ---------- every screen + Pixel Server */
.avail { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 48px; max-width: 720px; margin: 0 auto; }
.avail > li { flex: 1 1 180px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.avail svg { width: 56px; height: 56px; color: var(--text); margin-bottom: 10px; }
.avail strong { font-size: 17px; font-weight: 600; color: var(--text); }
.avail .req { font-size: 14px; color: var(--text-3); line-height: 1.4; }
.avail.small { gap: 20px 36px; margin-top: 40px; }
.avail.small > li { flex: 0 1 auto; }
.avail.small a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); font-size: 15px; font-weight: 500; }
.avail.small a:hover { color: var(--accent-text); text-decoration: none; }
.avail.small svg { width: 40px; height: 40px; margin: 0; color: var(--text-2); }
.avail-note { max-width: 46ch; margin: 48px auto 0; text-align: center; color: var(--text-2); }
.avail-badge { display: flex; justify-content: center; margin-top: 24px; }
@media (max-width: 734.98px) {
  .avail { justify-content: flex-start; gap: 24px; }
  .avail > li { flex-basis: 100%; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 2px; align-items: start; text-align: left; }
  .avail > li svg { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .avail.small { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .avail.small > li { display: block; }
  .avail.small a { flex-direction: row; gap: 12px; }
  .avail.small svg { width: 32px; height: 32px; }
}
.server-block { margin-top: clamp(96px, 12vw, 160px); padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); text-align: center; }
.server-block:focus { outline: none; }
.server-block .eyebrow { justify-content: center; }
.server-icon { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 15px; box-shadow: 0 16px 40px -14px rgb(128 217 0 / .5), 0 0 0 1px var(--line); }
.server-block .tout { max-width: 40ch; margin: 24px auto 0; }
.server-block .flow { margin-top: clamp(48px, 6vw, 72px); text-align: left; }
.server-cta { display: flex; justify-content: center; margin-top: 40px; }

/* Pixel Server diagram (also on server.html) */
.flow {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(70px, 9vw, 130px) minmax(0, 1.2fr) clamp(70px, 9vw, 130px) minmax(0, 1fr);
  align-items: center;
}
.node {
  position: relative; padding: 22px; border-radius: 22px; min-height: 220px;
  background: var(--tile); border: 1px solid var(--tile-line); box-shadow: var(--tile-hi);
  display: flex; flex-direction: column;
}
.n2 { border-color: var(--accent-line); box-shadow: 0 30px 80px -40px var(--glow-a), var(--tile-hi); }
.node-ic { display: flex; gap: 10px; color: var(--accent-text); margin-bottom: 14px; }
.node-ic .i { width: 28px; height: 28px; }
.node-k { font: 650 1.06rem/1.25 var(--font-display); margin: 0 0 14px; letter-spacing: -.015em; }
.node-p { color: var(--text-2); font-size: .95rem; margin: 0; }
.sched { margin-top: auto; display: flex; flex-direction: column; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.sched-t { font-weight: 600; font-size: 14px; }
.sched-s { font-size: 12.5px; color: var(--text-3); }
.sched-b { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.sched-b .i { width: 16px; height: 16px; color: var(--rec); }
.recs { margin-top: auto; display: grid; gap: 6px; }
.recs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); }
.recs span { display: flex; flex-direction: column; min-width: 0; }
.recs b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recs small { font-size: 12px; color: var(--text-3); }
.recs em { flex: none; font: 700 10.5px/1 var(--font); letter-spacing: .08em; color: #fff; background: var(--rec); padding: 5px 7px; border-radius: 6px; font-style: normal; animation: recpulse 1.8s ease-in-out infinite; }
.recs em.ok { background: none; padding: 0; color: var(--accent-text); animation: none; }
.recs em.ok .i { width: 18px; height: 18px; }
@keyframes recpulse { 50% { opacity: .55; } }
.wire { position: relative; height: 2px; margin-inline: 6px; background: repeating-linear-gradient(90deg, var(--accent-line) 0 6px, transparent 6px 12px); }
.wire i {
  position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px 3px var(--glow-a); animation: travel 2.6s var(--ease) infinite;
}
.w2 i { animation-delay: 1.3s; }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes travel-v { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.wire-l {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-3);
}
.wire-l .i { width: 14px; height: 14px; }

/* ---------- and more */
.more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(24px, 3vw, 48px); }
.more-list li { border-top: 1px solid var(--line); padding-top: 24px; color: var(--text-2); font-size: var(--fs-body); line-height: 1.5; }
.more-list strong { color: var(--text); font-weight: 600; }
.more-list .pro { margin-left: 2px; }
@media (max-width: 1067.98px) { .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 734.98px) { .more-list { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- pricing */
.prices-row { display: flex; justify-content: center; }
.prices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.prices li { padding: 10px 18px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 16px; color: var(--text); white-space: nowrap; }
.prices li sup.fn { margin-left: 3px; }
.compare { width: 100%; max-width: 900px; margin: clamp(48px, 6vw, 72px) auto 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: var(--fs-body); }
.compare col.v { width: 160px; }
.compare th, .compare td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; line-height: 1.35; }
.compare tbody th[scope="row"] { text-align: left; font-weight: 400; color: var(--text-2); padding-left: 0; }
.compare thead th { position: sticky; top: var(--header-h); z-index: 1; background: var(--bg); font-weight: 600; font-size: 15px; color: var(--text); border-bottom-color: var(--line-2); }
.compare thead th.pro-col { color: var(--accent-text); }
.compare td { color: var(--text); }
.compare tr.grp th { background: var(--bg-2); font-weight: 600; text-align: left; color: var(--text); padding: 12px 12px; font-size: 15px; }
.compare .mark { width: 20px; height: 20px; margin: 0 auto; }
.compare .mark.yes { color: var(--accent-text); }
.compare .mark.no { color: var(--text-3); }
.compare .short { display: none; }
@media (max-width: 734.98px) {
  .compare { font-size: 15px; }
  .compare col.v { width: 72px; }
  .compare th, .compare td { padding: 12px 6px; }
  .compare thead th { font-size: 13px; }
  .compare .long { display: none; }
  .compare .short { display: inline; }
}
@media (min-width: 735px) { .compare .short-sr { display: none; } }
.pricing-foot { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-top: 32px; text-align: center; }
.pricing-foot .fine { margin: 0; }
.pricing-foot .cta-row { margin: 0; justify-content: center; }

/* ---------- FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none;
  padding: 20px 0; font: 600 1.08rem/1.35 var(--font-display); letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.pm { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; margin: -.9px 0 0 -5.5px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.answer { padding: 0 48px 20px 0; color: var(--text-2); }
.answer p:last-child { margin-bottom: 0; }
.faq-more { display: flex; justify-content: center; margin-top: 36px; }

.disclaimer {
  display: flex; gap: 18px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-size: .97rem;
}
.disclaimer > .i { width: 26px; height: 26px; color: var(--text-3); margin-top: 2px; }
.disclaimer h2 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 10px; }
.disclaimer p:last-child { margin-bottom: 0; }

/* ---------- finale (home) */
.finale-home { text-align: center; }
.finale-home .finale-icon { margin-bottom: 28px; }
#como-funciona { margin: clamp(48px, 6vw, 72px) auto 0; max-width: 980px; text-align: left; }
#como-funciona .step-n {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); font-weight: 300; margin-bottom: 10px;
  background: none; color: var(--accent-text); -webkit-text-fill-color: currentColor;
}
#como-funciona h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 7vw, 88px); text-align: left; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 40px; border-radius: var(--r-tile); background: var(--surface); border: 1px solid var(--line);
}
.tile-icon { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.tile h3 { font-size: var(--fs-h3); letter-spacing: -.022em; font-weight: 700; }
.tile p { margin: 0; color: var(--text-2); max-width: 30ch; }
.tile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: auto; padding-top: 12px; }
.peek { align-self: flex-end; width: 200px; height: 220px; overflow: hidden; margin: 8px -8px -40px 0; flex: none; }
.peek .dev { box-shadow: inset 0 1px 0 var(--bezel-edge), 0 0 0 1px var(--bezel-edge); }
@media (max-width: 759.98px) { .tiles { grid-template-columns: 1fr; } .tile { padding: 32px 24px; } .peek { margin-bottom: -32px; } }

/* ---------- notes */
.notes { background: var(--bg-2); padding: 48px 0 44px; font-size: 13px; line-height: 1.55; color: var(--text-3); border-top: 1px solid var(--line); }
.notes ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: 10px; max-width: 920px; }
.notes li { padding-left: 4px; }
.notes li::marker { color: var(--text-3); font-variant-numeric: tabular-nums; }
.notes li:target { color: var(--text-2); }
.notes .back { margin-left: 6px; color: var(--accent-text); text-decoration: none; }

/* ================================================================ finale (server) */
.finale { text-align: center; padding-block: clamp(72px, 10vw, 140px); position: relative; isolation: isolate; overflow: clip; }
.finale::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: clamp(50px, 8vw, 110px); width: 520px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(128 217 0 / .22), transparent); filter: blur(10px);
}
.finale-icon { display: block; width: 112px; margin: 0 auto 30px; }
.finale-icon img { border-radius: 25px; box-shadow: 0 30px 70px -20px rgb(128 217 0 / .45), 0 0 0 1px var(--line); }
.finale .lede { margin: 18px auto 0; }
.finale .cta-row { margin-top: 30px; }

/* steps (home finale) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); }
.steps li { border-top: 1px solid var(--line-2); padding-top: 20px; }
.step-n {
  display: block; margin-bottom: 14px; font: 200 clamp(2.6rem, 2rem + 2vw, 4rem)/1 var(--font-display); letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--accent-text), transparent 115%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-2); margin: 0; font-size: .98rem; }

/* ================================================================ footer */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 40px; font-size: 14px; color: var(--text-3); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { max-width: 26em; margin: 14px 0 18px; }
.foot-h { font: 600 13px/1 var(--font); color: var(--text); margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--text); }
details.foot-col > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.foot-col > summary::-webkit-details-marker { display: none; }
details.foot-col > summary::marker { content: ""; }
details.foot-col .fchev { width: 14px; height: 14px; color: var(--text-3); transition: transform .2s var(--ease); }
details.foot-col[open] .fchev { transform: rotate(180deg); }
@media (min-width: 735px) {
  details.foot-col > summary { pointer-events: none; cursor: default; }
  details.foot-col .fchev { display: none; }
  details.foot-col > ul { display: grid; }
}
@media (min-width: 735px) { details.foot-col::details-content { content-visibility: visible; } }
.credits { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; }
.credits a { color: var(--text-2); }
.footer-legal { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 16px; font-size: 12.5px; line-height: 1.55; }
.footer-legal p { margin: 0; max-width: 64em; }

/* ================================================================ reveal */
.reveal.d1 { --i: 1; }
.reveal.d2 { --i: 2; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* Devices rise a little as they scroll past (only where scroll timelines exist). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .dev-parallax { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .hero-parallax { --rise-to: -90px; animation: rise-hero linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
.dev-parallax { --rise: 60px; }
@media (max-width: 1067.98px) { .dev-parallax { --rise: 24px; } }
@keyframes rise { from { transform: translateY(var(--rise, 60px)); } to { transform: translateY(calc(-1 * var(--rise, 60px))); } }
@keyframes rise-hero { from { transform: none; } to { transform: translateY(var(--rise-to, -90px)); } }
@media (max-width: 734.98px) { .hero-parallax { --rise-to: -24px; } }

/* ================================================================ inner pages */
.page-hero { position: relative; isolation: isolate; padding-top: clamp(48px, 7vw, 88px); overflow: clip; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgb(128 217 0 / .09), transparent 70%);
}

/* Pixel Server */
.server-hero::before { background: radial-gradient(ellipse 34% 48% at 76% 54%, rgb(128 217 0 / .14), transparent 70%), radial-gradient(ellipse 50% 40% at 20% 0%, rgb(128 217 0 / .06), transparent 70%); }
.ps-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ps-head img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 16px 40px -14px rgb(128 217 0 / .5), 0 0 0 1px var(--line); }
.ps-head .hero-devices { margin: 0; }
.ps-head .hero-devices .i { display: none; }
.server-hero .eyebrow-h1 { margin-bottom: 10px; }
.server-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.ps-tag { margin: 12px 0 0; font: 600 clamp(1.3rem, 1rem + 1.2vw, 1.9rem)/1.15 var(--font-display); letter-spacing: -.03em; color: var(--accent-text); }
.admin-art { position: relative; container-type: inline-size; padding-right: 8cqw; padding-bottom: 6cqw; }
.aa-desk { width: 100%; }
.aa-desk .amb { inset: 10% 8%; }
.aa-phone { position: absolute; right: 0; bottom: 0; width: 24cqw; }
.aa-phone .dev { --rad: 22px; --bz: 5px; }
.flow-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); margin-top: clamp(32px, 4.5vw, 56px); }
.flow-notes li { border-top: 1px solid var(--line-2); padding-top: 18px; }
.flow-notes h3 { margin-bottom: 8px; }
.flow-notes p { margin: 0; color: var(--text-2); font-size: .97rem; }

.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl-card {
  display: flex; flex-direction: column; gap: 4px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg);
  background: var(--tile); border: 1px solid var(--tile-line); box-shadow: var(--tile-hi); scroll-margin-top: calc(var(--header-h) + 24px);
}
.dl-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px clamp(24px, 4vw, 48px); align-items: start; }
.dl-card .col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-card > p, .dl-card .col > p { color: var(--text-2); font-size: .97rem; }
.dl-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.dl-top .os { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.dl-top h3 { font-size: 1.4rem; }
.req { margin: 2px 0 0; font-size: .88rem; color: var(--text-3); }
.ticks { display: grid; gap: 8px; margin: 6px 0 14px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-2); line-height: 1.4; }
.ticks .i { width: 18px; height: 18px; color: var(--accent-text); margin-top: 1px; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.soon { font: 600 11.5px/1 var(--font); letter-spacing: .01em; padding: 5px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-3); margin-left: 2px; }
.btn-primary .soon { background: rgb(0 0 0 / .14); color: var(--accent-ink); }
.dl-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-3); margin-top: 8px; word-break: break-all; }
.dl-meta:empty { display: none; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgb(255 179 64 / .08); border: 1px solid rgb(255 179 64 / .22); margin: 6px 0 10px; font-size: .9rem; color: var(--text-2); }
.note .i { width: 18px; height: 18px; color: var(--warn); margin-top: 2px; }
.note p { margin: 0; }
.note strong { color: var(--text); }
details.more { margin-top: 8px; border-top: 1px solid var(--line); }
details.more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: .98rem; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] .pm::after { transform: rotate(0deg); }
details.more > div { display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.code-wrap { position: relative; margin: 6px 0; }
.code {
  margin: 0; padding: 48px 20px 18px; border-radius: 16px; overflow-x: auto; background: var(--code-bg); color: #e9ebef;
  border: 1px solid rgb(255 255 255 / .07); font-size: 12.8px; line-height: 1.6; tab-size: 2;
}
.code .c { color: #8a8f99; }
.code .k { color: #b5e66b; }
.code .ph { color: #ffc56b; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 var(--font); padding: 7px 10px; border-radius: 9px; cursor: pointer;
  color: #e9ebef; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .1);
}
.copy-btn:hover { background: rgb(255 255 255 / .14); }
.copy-btn .i { width: 14px; height: 14px; }
.setup-tabs { margin-bottom: 28px; }
.setup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.setup:not([hidden]) { animation: fadein .5s var(--ease); }
.setup-step { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--tile-line); box-shadow: var(--tile-hi); }
.setup-step .step-n { font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3.2rem); margin-bottom: 12px; }
.setup-step h3 { margin-bottom: 10px; }
.setup-step p { color: var(--text-2); font-size: .97rem; }
.setup-step p:last-child { margin-bottom: 0; }
.setup-step code, .dl-card code, .fact code { font-size: .86em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); word-break: break-word; }
.code code { background: none; border: 0; padding: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { padding: clamp(20px, 2.6vw, 28px); border-radius: 22px; background: var(--tile); border: 1px solid var(--tile-line); box-shadow: var(--tile-hi); }
.fact > .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--accent-text); background: var(--accent-soft); margin-bottom: 16px; }
.fact h3 { margin-bottom: 8px; font-size: 1.1rem; }
.fact p { color: var(--text-2); font-size: .95rem; }
.fact p:last-child { margin-bottom: 0; }

/* Support */
.support-hero .wrap { max-width: calc(860px + 2 * var(--gutter)); text-align: center; }
.support-hero .eyebrow { justify-content: center; }
.support-hero h1 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: var(--track-display); }
.support-hero .lede { margin: 20px auto 0; max-width: 32em; }
.search {
  position: relative; display: flex; align-items: center; gap: 12px; max-width: 620px; margin: 32px auto 0;
  padding: 0 18px; height: 60px; border-radius: 999px; background: var(--tile); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -30px rgb(0 0 0 / .6);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search .i { width: 22px; height: 22px; color: var(--text-3); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 17px/1 var(--font); }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.count { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.toc-chips { display: none; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; font-size: 14px; color: var(--text-2); padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.chip:hover { color: var(--text); text-decoration: none; }
.support-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); max-width: calc(1060px + 2 * var(--gutter)); }
.support-hero + .section-tight { padding-top: clamp(40px, 6vw, 72px); }
.toc-side ul { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 2px; }
.toc-side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.toc-side a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.toc-side .i { width: 18px; height: 18px; color: var(--text-3); }
.faq-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; letter-spacing: -.025em; margin-bottom: 8px; }
.faq-group h2 .i { width: 24px; height: 24px; color: var(--accent-text); }
.faq-group details:first-of-type { border-top: 1px solid var(--line); }
.support-faq details:first-child { border-top: 0; }
.faq-empty { display: flex; gap: 14px; align-items: center; padding: 22px; border-radius: 18px; border: 1px dashed var(--line-2); color: var(--text-2); }
.faq-empty[hidden] { display: none; }
.faq-empty .i { width: 24px; height: 24px; color: var(--text-3); }
.faq-empty p { margin: 0; }
.contact-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: clamp(22px, 3vw, 34px);
  border-radius: var(--r-lg); background: var(--tile); border: 1px solid var(--accent-line); box-shadow: 0 30px 80px -50px var(--glow-a), var(--tile-hi);
  margin-bottom: 16px; scroll-margin-top: calc(var(--header-h) + 24px);
}
.cc-icon .i { width: 52px; height: 52px; padding: 13px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); }
.cc-copy h2 { font-size: 1.5rem; letter-spacing: -.025em; margin-bottom: 6px; }
.cc-copy p { margin: 0; color: var(--text-2); }

/* Legal */
.legal-wrap { display: grid; grid-template-columns: 200px minmax(0, 760px); gap: clamp(28px, 6vw, 96px); justify-content: center; padding-block: clamp(40px, 6vw, 88px); }
.legal-nav { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.legal-nav .eyebrow { margin-bottom: 10px; }
.legal-nav a { padding: 8px 12px; margin-left: -12px; border-radius: 10px; color: var(--text-2); font-size: 15px; }
.legal-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 600; }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.3rem); line-height: 1.04; letter-spacing: -.04em; margin-bottom: 10px; }
.legal .subtitle { color: var(--text-3); font-size: .95rem; margin-bottom: 36px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.28rem; letter-spacing: -.02em; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-2); font-size: 1.03rem; line-height: 1.65; }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 8px; }
.legal li::marker { color: var(--accent-text); }
.legal strong { color: var(--text); }

/* 404 */
.not-found { text-align: center; padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 130px); position: relative; isolation: isolate; overflow: clip; }
.not-found .eyebrow { justify-content: center; margin-top: 48px; }
.not-found .lede { margin: 18px auto 0; max-width: 30em; }
.not-found .cta-row { justify-content: center; }
.nf-tv { width: min(100%, 560px); margin-inline: auto; }
.testcard { position: absolute; inset: 0; width: 100%; height: 100%; filter: saturate(.6) brightness(.78); }
.nf-tv .screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgb(0 0 0 / .18) 0 1px, transparent 1px 3px); pointer-events: none; }
.nf-tv::before { content: ""; position: absolute; z-index: -1; inset: 12% 4% -6%; background: radial-gradient(closest-side, rgb(128 217 0 / .18), transparent); filter: blur(30px); }
.nf-label {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px; background: rgb(0 0 0 / .78); color: #fff; font: 650 clamp(14px, 3.4cqw, 20px)/1 var(--font); letter-spacing: .02em;
}
.nf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: recpulse 1.4s ease-in-out infinite; }

/* ================================================================ responsive */
@media (max-width: 1060px) {
  .flow { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .wire { width: 2px; height: 72px; margin: 4px auto; background: repeating-linear-gradient(180deg, var(--accent-line) 0 6px, transparent 6px 12px); }
  .wire i { left: 50%; top: 0; margin: -4.5px 0 0 -4.5px; animation-name: travel-v; }
  .wire-l { left: 16px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .node { min-height: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .server-hero .hero-grid { grid-template-columns: 1fr; gap: clamp(36px, 7vw, 56px); }
  .hero-copy { max-width: 40em; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-card.wide { grid-template-columns: 1fr; }
  .setup { grid-template-columns: 1fr; }
  .flow-notes { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .support-grid > [aria-hidden="true"] { display: none; }
  .toc-side { display: none; }
  .toc-chips { display: flex; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .legal-nav .eyebrow { display: none; }
  .legal-nav a { margin: 0; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; padding: 7px 13px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card .btn { justify-self: start; }
}
@media (max-width: 734.98px) {
  body { font-size: 16px; }
  .display br, .display-2 br, .display-3 br, .h2 br { display: none; }
  .seg [role="tab"] { padding: 9px 15px; font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .answer { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-brand { margin-bottom: 20px; }
  details.foot-col { border-top: 1px solid var(--line); }
  details.foot-col:last-child { border-bottom: 1px solid var(--line); }
  details.foot-col > summary.foot-h { min-height: 48px; margin: 0; cursor: pointer; font-size: 14px; }
  details.foot-col > ul { padding: 2px 0 18px; }
  .footer-legal { flex-direction: column; }
  .facts { grid-template-columns: 1fr; }
  .hero-devices .i { display: none; }
  .dl-card { padding: 22px 20px; }
  .dl-buttons .btn { font-size: 15px; padding: 0 18px; }
  .admin-art { padding-right: 10cqw; }
  .aa-phone { width: 28cqw; }
  .search { height: 54px; }
  .ps-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .menu-btn, .river-wrap, .shelf-controls { display: none !important; }
  body { background: #fff; color: #000; }
}
