/* Xplayer landing. Calm, modern product story; motion is scroll-driven. */

@property --p { syntax: "<number>"; inherits: true; initial-value: 1; }

:root {
  --bg: #F5F4F0;
  --bg-2: #ECEAE4;
  --surface: #FAF9F6;
  --ink: #17171B;
  --ink-2: #46474F;
  --ink-3: #5F6068;
  --line: #DDDBD3;
  --badge: #17171B;
  --badge-ink: #F5F4F0;
  --badge-line: transparent;
  --danger: #B42318;
  --grad: linear-gradient(115deg, #F0A95B 0%, #E5484D 52%, #6E2F7E 100%);
  --key-red: #E5484D; --key-green: #3DBE74; --key-yellow: #F2C94C; --key-blue: #4A8CF0; /* the LG remote's colour keys, drawn only on the remote */
  --plus: #17171B;
  --plus-solid: #17171B; /* the Plus card's colour behind the X mark's knockout stroke */
  --plus-ink: #F5F4F0;
  --plus-ink-2: #C4C3BD;
  --tv-shadow: 0 60px 90px -50px rgb(12 13 17 / .55), 0 24px 40px -24px rgb(12 13 17 / .35);
  --soft-shadow: 0 18px 40px -28px rgb(12 13 17 / .35);
  --display: "Commissioner", "Heebo", "Noto Kufi Arabic", "Kanit", system-ui, sans-serif;
  --body: "Commissioner", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131316; --bg-2: #19191D; --surface: #1F1F24; --ink: #ECEBE7; --ink-2: #B3B2AE; --ink-3: #8E8D8A; --line: #2B2B31;
    --badge: #222227; --badge-ink: #ECEBE7; --badge-line: #303037; --danger: #FF8A7A; --plus: linear-gradient(150deg, #3A1C34 0%, #281830 48%, #1C1722 100%); --plus-solid: #3A1C34; --plus-ink: #F4EFF1; --plus-ink-2: #CBBFC8;
    --tv-shadow: 0 60px 90px -50px rgb(0 0 0 / .9), 0 24px 40px -24px rgb(0 0 0 / .7); --soft-shadow: 0 18px 40px -28px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131316; --bg-2: #19191D; --surface: #1F1F24; --ink: #ECEBE7; --ink-2: #B3B2AE; --ink-3: #8E8D8A; --line: #2B2B31;
    --badge: #222227; --badge-ink: #ECEBE7; --badge-line: #303037; --danger: #FF8A7A; --plus: linear-gradient(150deg, #3A1C34 0%, #281830 48%, #1C1722 100%); --plus-solid: #3A1C34; --plus-ink: #F4EFF1; --plus-ink-2: #CBBFC8;
  --tv-shadow: 0 60px 90px -50px rgb(0 0 0 / .9), 0 24px 40px -24px rgb(0 0 0 / .7); --soft-shadow: 0 18px 40px -28px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-3) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; } /* slide-ins start off to the side; clip, not hidden, so sticky scenes keep working */
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
h2, h3 { word-break: auto-phrase; line-break: strict; }
h2 { font: 700 clamp(2.3rem, 5vw, 4.4rem)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.lede { color: var(--ink-2); font-size: clamp(1.06rem, 1.45vw, 1.25rem); max-width: 58ch; text-wrap: pretty; }
.head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 860px; }
section { scroll-margin-top: 72px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 0; text-decoration: none; font: 700 1.5rem/1 var(--display); letter-spacing: -.03em; }
.brand svg { flex: none; width: 1.32em; height: 1.32em; margin-inline: -.2em -.16em; }
.bar nav { display: flex; gap: 28px; margin-inline-start: auto; font-weight: 600; font-size: .95rem; }
.bar nav a { text-decoration: none; color: var(--ink-2); }
.bar nav a:hover { color: var(--ink); }
.tools { display: flex; gap: 10px; align-items: center; }
.bar nav + .tools { margin-inline-start: 12px; }
.lang { position: relative; display: inline-flex; align-items: center; }
.lang .ic { position: absolute; inset-inline-start: 11px; width: 18px; height: 18px; pointer-events: none; color: var(--ink-2); }
.lang select {
  appearance: none; font: 600 .9rem var(--body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; height: 40px; padding-inline: 36px 30px; cursor: pointer; max-width: 46vw;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-size: 5px 5px; background-repeat: no-repeat; background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
}
[dir="rtl"] .lang select { background-position: 12px 18px, 17px 18px; }
.theme { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.lang select:hover, .theme:hover { border-color: var(--ink-3); }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}

/* Store badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 22px 10px 16px;
  background: var(--badge); color: var(--badge-ink); border: 1px solid var(--badge-line); border-radius: 16px; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--soft-shadow); }
.badge .bt { display: grid; line-height: 1.15; text-align: start; }
.badge small { font-size: .72rem; font-weight: 600; letter-spacing: .02em; opacity: .75; }
.badge b { font: 700 1.04rem/1.15 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.logo { --h: 22px; height: calc(var(--h) * var(--k, 1)); width: calc(var(--h) * var(--k, 1) * var(--ar, 1)); flex: none; fill: currentColor; }
/* viewBoxes are cropped to each mark; --ar is its width/height, --k evens out their visual weight */
.logo-lg { --ar: 2.26; --k: .95; }
.logo-samsung { --ar: 6.32; --k: .6; }
.logo-googleplay { --ar: .96; --k: 1.1; }
.logo-amazonfiretv { --ar: 1.77; --k: 1.05; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero-copy { display: grid; gap: clamp(20px, 2.4vw, 28px); justify-items: center; text-align: center; }
.hero h1 { font: 700 clamp(2.6rem, 7vw, 6rem)/.98 var(--display); letter-spacing: -.045em; max-width: 16ch; text-wrap: balance; }
.hero .lede { margin-top: -4px; }
.plus-chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .95rem; color: var(--ink-2);
}
.plus-chip b { font-weight: 600; color: var(--ink); background: var(--bg-2); padding: 6px 14px; border-radius: 999px; }
.plus-chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.plus-chip:hover b { background: var(--line); }
.stage { margin-top: clamp(40px, 5vw, 72px); perspective: 1600px; }
.tv { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; transform-origin: 50% 0; }
.tv-screen { padding: clamp(6px, .9vw, 12px); background: #050507; border-radius: clamp(10px, 1.4vw, 18px); box-shadow: var(--tv-shadow); }
.tv-screen img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: clamp(4px, .6vw, 8px); }
.tv-stand { width: 18%; height: clamp(8px, 1.2vw, 16px); margin-inline: auto; background: linear-gradient(#18181d, #0a0a0d); border-radius: 0 0 12px 12px; }
.tv figcaption { margin-top: 18px; text-align: center; color: var(--ink-3); font-size: .88rem; }

/* Plans */
.plans { padding-block: var(--section); }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.plan { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(28px, 3.4vw, 44px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.plan h3 { font: 700 1.6rem/1.1 var(--display); letter-spacing: -.02em; }
.plan .price { font: 700 clamp(3rem, 5vw, 4.2rem)/1 var(--display); letter-spacing: -.04em; margin-top: 6px; }
.plan .unit { color: var(--ink-3); font-weight: 600; }
.plan ul { display: grid; gap: 12px; margin-top: 18px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li .ic { width: 20px; height: 20px; margin-top: 3px; }
.plan.plus { background: var(--plus); color: var(--plus-ink); border-color: transparent; }
.cta { justify-self: start; display: inline-flex; align-items: center; justify-content: center; height: 52px; margin-top: 22px; padding-inline: 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease); }
.cta:hover { transform: translateY(-2px); }
.plan.plus .cta { background: var(--plus-ink); color: #17171B; }
.plan.plus .unit { color: var(--plus-ink-2); }
.plan.plus h3 { display: flex; align-items: center; gap: 10px; }
.plan.plus h3 svg { width: 30px; height: 30px; --bg: var(--plus-solid); }
.plan.plus .ic { color: #F0A95B; }

/* How it works */
.how { padding-block: var(--section); border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 2px solid var(--ink); }
.steps li::before { counter-increment: step; content: counter(step); font: 700 2.6rem/1 var(--display); letter-spacing: -.04em; color: var(--ink-3); }
.steps h3 { font: 700 1.45rem/1.15 var(--display); letter-spacing: -.02em; }
.steps p { color: var(--ink-2); max-width: 34ch; }

/* Library: vertical scroll drives a sideways shelf */
.shelf-scene { position: relative; }
.shelf-pin { overflow: hidden; }
.track { display: flex; align-items: center; gap: clamp(18px, 2vw, 28px); padding-inline: var(--gutter); }
.track .intro { flex: none; width: min(520px, 80vw); display: grid; gap: 18px; padding-inline-end: clamp(16px, 4vw, 64px); }
.track .label { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); font: 700 1rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.poster { flex: none; display: grid; gap: 12px; width: clamp(170px, min(22vw, 40vh), 330px); }
.poster img { width: 100%; aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 16px; background: var(--bg-2); }
.poster.ep { width: clamp(280px, min(38vw, 66vh), 580px); }
.poster.ep img { aspect-ratio: 16 / 9; }
.poster p { display: grid; gap: 2px; font-size: .92rem; }
.poster b { font-weight: 700; }
.poster span { color: var(--ink-3); font-size: .84rem; }
.js .shelf-scene { height: calc(100vh + var(--dist, 0) * 1px); }
.js .shelf-pin { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; }
.js .track { transform: translateX(calc(var(--dir, -1) * var(--p) * var(--dist, 0) * 1px)); will-change: transform; }
html:not(.js) .shelf-scene { padding-block: var(--section); }
html:not(.js) .track { flex-wrap: wrap; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding-inline: 0; row-gap: 32px; align-items: start; }
html:not(.js) .track .intro, html:not(.js) .track .label { flex-basis: 100%; }
html:not(.js) .track .label { writing-mode: horizontal-tb; transform: none; }

/* Features */
.features { padding-block: var(--section); }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); align-items: baseline; padding-block: clamp(26px, 3vw, 40px); border-top: 1px solid var(--line); }
.feat h3 { display: flex; gap: 16px; align-items: baseline; font: 700 clamp(1.6rem, 2.8vw, 2.4rem)/1.08 var(--display); letter-spacing: -.03em; }
.feat h3 .ic { width: 28px; height: 28px; transform: translateY(4px); }
.feat p { color: var(--ink-2); font-size: clamp(1.02rem, 1.3vw, 1.15rem); max-width: 52ch; }

/* Remotes */
.remotes { padding-block: var(--section); background: var(--bg-2); }
.tabs { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding-inline: 20px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 .95rem var(--body); cursor: pointer; white-space: nowrap; }
.tab .logo { --h: 18px; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab:not([aria-selected="true"]):hover { color: var(--ink); background: var(--bg-2); }
.panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(28px, 3vw, 44px); align-items: center; }
.panel[hidden] { display: none; }
.panel h3 { font: 700 clamp(1.8rem, 3.2vw, 2.8rem)/1.05 var(--display); letter-spacing: -.035em; margin-bottom: 22px; }
.panel li { display: flex; gap: 14px; padding-block: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.panel li .ic { color: var(--ink); margin-top: 2px; }
.remote-art { display: grid; place-items: center; color: var(--ink); }
.remote { width: auto; height: clamp(320px, 42vw, 520px); overflow: visible; }
.remote .body, .remote .k, .remote .beam { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.remote .k { stroke-width: 2; opacity: .55; }
.remote .beam { opacity: .5; }
.remote .on { fill: currentColor; }
.remote .on.ring { fill: none; stroke: currentColor; stroke-width: 9; }
.remote .cut { fill: var(--bg-2); }

/* Close */
.close { padding-block: var(--section); text-align: center; }
.close h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.close .lede { margin: 22px auto 34px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--ink-3); font-size: .88rem; }
footer .base { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer .tm { flex-basis: 100%; }
.linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.bar nav .linkish { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.bar nav .linkish:hover { color: var(--ink); }
.contact-btn { display: none; }
.legal-links { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal-links a { color: var(--ink-2); }
.legal-links a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.support a { overflow-wrap: anywhere; }

/* Legal pages: Terms, Privacy, Refunds (English only, header without nav) */
.bar .brand + .tools { margin-inline-start: auto; }
.legal { padding-block: clamp(40px, 6vw, 88px) var(--section); }
.legal .wrap { width: min(780px, 100% - 2 * var(--gutter)); }
.legal h1 { font: 700 clamp(2.3rem, 5.4vw, 4.2rem)/1.02 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.legal .updated { margin-top: 16px; color: var(--ink-3); font-size: .92rem; }
.legal .lede { margin-top: 22px; }
.legal h2 { margin-top: clamp(44px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; letter-spacing: -.025em; }
.legal h3 { margin-top: 28px; font: 700 1.18rem/1.3 var(--display); letter-spacing: -.01em; }
.legal p, .legal ul { margin-top: 12px; color: var(--ink-2); max-width: 68ch; }
.legal ul { display: grid; gap: 8px; padding-inline-start: 1.3em; list-style: disc; }
.legal li::marker { color: var(--ink-3); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { overflow-wrap: anywhere; }
.legal .summary { margin-top: 32px; padding: clamp(20px, 3vw, 30px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.legal .summary > :first-child { margin-top: 0; }

/* Dialogs: contact form and credits */
.sheet { width: min(640px, 100% - 32px); max-height: min(92vh, 900px); padding: clamp(22px, 3vw, 36px); border: 0; border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: var(--tv-shadow); overflow: auto; }
.sheet::backdrop { background: rgb(10 10 12 / .55); }
.sheet[open] { animation: sheet-in .45s var(--ease); }
@keyframes sheet-in { from { opacity: 0; translate: 0 24px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.sheet h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.x { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.fine { color: var(--ink-3); font-size: .92rem; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 22px; }
.full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: 400 1rem var(--body); }
.field textarea { resize: vertical; min-height: 128px; }
.field select { appearance: none; padding-inline-end: 36px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-size: 5px 5px; background-repeat: no-repeat; background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px; }
[dir="rtl"] .field select { background-position: 14px 22px, 19px 22px; }
.field :focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 14px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hint { margin-top: -4px; color: var(--ink-3); font-size: .84rem; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.error { margin-top: 16px; color: var(--danger); font-weight: 600; }
.error a { color: inherit; }
.sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 22px; }
.sheet-foot .fine { flex: 1 1 260px; }
.sheet-foot .cta { margin-top: 0; }
.cta[disabled] { opacity: .6; cursor: progress; transform: none; }
.sent { display: grid; gap: 12px; justify-items: start; padding-block: 8px; }
.filmcredits { display: grid; gap: 10px; margin-block: 18px; font-size: .92rem; color: var(--ink-2); }

/* Scroll-driven motion. --p goes 0 to 1 per element and rests at 1, so content shows without support or JS. */
.tv { transform: rotateX(calc((1 - var(--p)) * 18deg)) scale(calc(.84 + .16 * var(--p))); }
.from-l, .from-r { opacity: calc(.15 + .85 * var(--p)); translate: calc((1 - var(--p)) * var(--shift)) 0; }
.from-l { --shift: -14vw; }
.from-r { --shift: 14vw; }
[dir="rtl"] .from-l { --shift: 14vw; }
[dir="rtl"] .from-r { --shift: -14vw; }
@keyframes p { from { --p: 0; } to { --p: 1; } }
.rise { opacity: calc(.1 + .9 * var(--p)); translate: 0 calc((1 - var(--p)) * 64px); }
.wipe { clip-path: inset(-.2em calc((1 - var(--p)) * 100%) -.2em 0); }
[dir="rtl"] .wipe { clip-path: inset(-.2em 0 -.2em calc((1 - var(--p)) * 100%)); }
@supports (animation-timeline: view()) {
  .tv { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  .from-l, .from-r, .rise, .wipe { animation: p linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
  .steps .rise:nth-child(2) { animation-range: entry 8% cover 40%; }
  .steps .rise:nth-child(3) { animation-range: entry 16% cover 48%; }
  .wipe { animation-range: entry 10% cover 45%; }
  .js .shelf-scene { view-timeline: --shelf block; }
  .js .track { animation: p linear both; animation-timeline: --shelf; animation-range: contain 0% contain 100%; }
}
.hero-copy > * { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }

/* Responsive */
@media (max-width: 1080px) { .bar nav { display: none; } .tools, .bar nav + .tools { margin-inline-start: auto; } .contact-btn { display: grid; } }
@media (max-width: 860px) {
  .plan-grid, .steps, .feat, .panel { grid-template-columns: minmax(0, 1fr); }
  .feat { gap: 10px; }
  .remote { height: 300px; }
}
@media (max-width: 520px) {
  .bar .wrap { gap: 12px; }
  .tools { gap: 8px; }
  .lang select { max-width: 36vw; padding-inline: 32px 26px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92vh; }
  .badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .badge { min-height: 54px; padding: 8px 12px; gap: 10px; }
  .badge b { font-size: .86rem; white-space: normal; }
  .plus-chip { flex-wrap: wrap; justify-content: center; gap: 8px 10px; padding: 10px 12px; border-radius: 22px; font-size: .9rem; }
  .plus-chip b { white-space: nowrap; }
  .logo { --h: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open] { animation: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .tv, .from-l, .from-r, .track { --p: 1; }
  .js .shelf-scene { height: auto; padding-block: var(--section); }
  .js .shelf-pin { position: static; height: auto; display: block; }
  .js .track { transform: none; flex-wrap: wrap; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding-inline: 0; row-gap: 32px; align-items: start; }
  .js .track .intro, .js .track .label { flex-basis: 100%; }
  .js .track .label { writing-mode: horizontal-tb; transform: none; }
  .tv, .from-l, .from-r, .rise, .wipe { --p: 1; }
}
/* Scripts with tall marks or joined letters need room between headline lines. */
:is(:lang(ar), :lang(fa), :lang(ur), :lang(hi), :lang(bn), :lang(th)) :is(h1, h2, h3) { line-height: 1.3; letter-spacing: 0; }

:is(:lang(ar), :lang(fa), :lang(ur), :lang(el)) .hero h1 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); max-width: 20ch; }
