/* 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 */
  --lg: #A50034; --lg-ink: #6B6B6B; --samsung: #1428A0; --amazon: #FF9900; /* store marks in their own colours (tabs) */
  --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);
    --lg: #E0245E; --lg-ink: #ECEBE7; --samsung: #8EA2FF;
    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);
  --lg: #E0245E; --lg-ink: #ECEBE7; --samsung: #8EA2FF;
  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 tiles: one brand-coloured key per store, like app icons on a TV; the store name is for screen readers */
.stores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(100%, 464px); }
.store {
  display: grid; place-items: center; height: 68px; border-radius: 20px; color: #fff; text-decoration: none;
  background: var(--tile); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 12px 24px -16px var(--glow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.store:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 20px 32px -14px var(--glow); }
.store:active { transform: translateY(0) scale(.97); }
.store .logo { max-width: 78%; --h: 24px; }
.store .logo-samsung { --k: .42; }
.store[data-store="lg"] { --tile: linear-gradient(145deg, #D4084F, #A50034 62%, #7E0029); --glow: rgb(165 0 52 / .7); }
.store[data-store="samsung"] { --tile: linear-gradient(145deg, #3355E6, #1428A0 62%, #0E1D78); --glow: rgb(20 40 160 / .7); }
.store[data-store="google"] { --tile: #fff; --glow: rgb(66 133 244 / .55); box-shadow: inset 0 0 0 1px var(--line), 0 12px 24px -16px var(--glow); }
.store[data-store="google"]:hover { box-shadow: inset 0 0 0 1px var(--line), 0 20px 32px -14px var(--glow); }
.store[data-store="amazon"] { --tile: linear-gradient(145deg, #3B4D63, #232F3E 62%, #161E28); --glow: rgb(255 153 0 / .5); --ftv-b: var(--amazon); }
/* viewBoxes are cropped to each mark; --ar is its width/height, --k evens out their visual weight.
   max-width: none, or the global svg max-width lets a flex parent squash the mark under its label. */
.logo { --h: 22px; height: calc(var(--h) * var(--k, 1)); width: calc(var(--h) * var(--k, 1) * var(--ar, 1)); max-width: none; flex: none; fill: currentColor; }
.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: the app on a TV comes first, with a feature slider under it, then the pitch */
.hero { padding-block: clamp(20px, 4vw, 72px) clamp(56px, 8vw, 120px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: clamp(18px, 2.2vw, 26px); justify-items: center; text-align: center; }
.hero h1 { font: 700 clamp(2.5rem, 7vw, 5.4rem)/.98 var(--display); letter-spacing: -.045em; max-width: 16ch; text-wrap: balance; }
.hero .lede { margin-top: -4px; }
.stage { width: min(100%, 960px); margin-inline: auto; }
.tv { position: relative; isolation: isolate; }
.tv-screen { padding: clamp(5px, .8vw, 11px); background: #050507; border-radius: clamp(10px, 1.4vw, 18px); box-shadow: var(--tv-shadow); touch-action: pan-y; cursor: grab; }
.shots { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: clamp(4px, .6vw, 8px); background: #000; animation: power-on 1.3s cubic-bezier(.7, 0, .2, 1) .15s both; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; user-select: none; }
.shot.on, .shot.was { opacity: 1; }
.shot.on { z-index: 1; animation: drift 9s ease-out both; }
.moved .shot.on { animation: wipe .9s var(--ease) both, drift 9s ease-out both; }
.moved.back .shot.on, [dir="rtl"] .moved .shot.on { animation-name: wipe-back, drift; }
[dir="rtl"] .moved.back .shot.on { animation-name: wipe, drift; }
/* Ambilight: a blurred copy of the screen glows behind the TV in the colours of whatever is on it */
.ambi { position: absolute; inset: 6% 4% 14%; z-index: -1; filter: blur(clamp(28px, 6vw, 72px)) saturate(1.8); opacity: .7; pointer-events: none; animation: glow 2s ease 1s both; }
.ambi .shot { transition: opacity 1.2s ease; }
.ambi .shot.on { animation: none; }
.ambi .shot.was { opacity: 0; }
.tv-stand { width: 18%; height: clamp(8px, 1.2vw, 16px); margin-inline: auto; background: linear-gradient(#18181d, #0a0a0d); border-radius: 0 0 12px 12px; }
@keyframes power-on { /* an old set switching on: a dot, a line, then the picture */
  0% { clip-path: inset(50% 50%); filter: brightness(6); }
  30% { clip-path: inset(49.5% 0); filter: brightness(6); }
  100% { clip-path: inset(0); filter: none; }
}
@keyframes glow { from { opacity: 0; } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } }
@keyframes wipe-back { from { clip-path: inset(0 100% 0 0); } }
@keyframes drift { from { transform: scale(1.07); } }
/* The bar's own fill animation times each slide; site.js moves on when it ends */
.deck { display: grid; gap: 12px; margin-top: clamp(22px, 3vw, 34px); }
.segs { display: flex; gap: 6px; }
.seg { flex: 1; padding-block: 10px; border: 0; background: none; cursor: pointer; }
.seg i { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; transition: background-color .3s; }
.seg:hover i { background: var(--ink-3); }
.seg i::after { content: ""; display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .seg i::after { transform-origin: right; }
.seg[aria-current="true"] i::after { animation: fill 6s linear forwards; }
.stopped .seg[aria-current="true"] i::after { animation: none; transform: none; }
.stage:focus-within .seg i::after { animation-play-state: paused; }
@media (hover: hover) { .stage:hover .seg i::after { animation-play-state: paused; } }
@keyframes fill { to { transform: none; } }
.caps { display: grid; text-align: center; }
.cap { grid-area: 1 / 1; display: grid; gap: 6px; align-content: start; justify-items: center; opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity .35s, translate .6s var(--ease), visibility 0s .35s; }
.cap.on { opacity: 1; visibility: visible; translate: none; transition-delay: .2s, .2s, 0s; }
.cap b { font: 700 clamp(1.25rem, 2vw, 1.55rem)/1.15 var(--display); letter-spacing: -.02em; }
.cap span { color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }
.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); }

/* 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); }
.reel { display: contents; } /* phones turn it into a swipe row (Responsive) */
.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: 4px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding-inline: 18px;
  border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 .95rem var(--body); cursor: pointer; white-space: nowrap;
  --lg-a: var(--lg); --lg-b: var(--lg-ink); --sam: var(--samsung); --ftv-a: var(--ink); --ftv-b: var(--amazon);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.tab .logo { --h: 18px; transition: filter .3s, opacity .3s; }
/* The picked TV lights up in its brand colours; the others wait in grey */
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(12 13 17 / .1), 0 8px 20px -12px rgb(12 13 17 / .45); }
.tab:not([aria-selected="true"]) .logo { filter: grayscale(1); opacity: .65; }
.tab:not([aria-selected="true"]):hover { color: var(--ink); }
.tab:not([aria-selected="true"]):hover .logo { opacity: .85; }
.panel .eyebrow { margin-bottom: 10px; color: var(--ink-3); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.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; }
.close .stores { margin-inline: auto; }

/* 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. */
.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()) {
  .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 + 250ms); }
.deck { animation: rise .9s var(--ease) .9s both; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }

/* Responsive */
@media (min-width: 1081px) {
  .hero { min-height: calc(100svh - 69px); display: grid; align-content: center; }
  .hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); }
  .stage { grid-column: 2; grid-row: 1; width: 100%; }
  .hero-copy { grid-column: 1; grid-row: 1; justify-items: start; text-align: start; }
  .hero h1 { font-size: clamp(3rem, 4.4vw, 4.6rem); }
  .caps, .cap { text-align: start; justify-items: start; }
}
@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; }
  .from-l, .from-r { translate: 0 calc((1 - var(--p)) * 40px); } /* sideways slide-ins push text off a phone screen */
  /* Shelf: a plain swipe row instead of the pinned sideways scene, which left a screen of blank space on phones */
  .js .shelf-scene { height: auto; padding-block: 0 var(--section); } /* the How section above already ends in padding */
  .js .shelf-pin { position: static; height: auto; display: block; }
  .js .track { transform: none; animation: none; }
  .track { display: block; padding-inline: 0; }
  .track .intro { width: auto; padding-inline: var(--gutter); margin-bottom: 28px; }
  .reel { display: flex; align-items: center; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .reel::-webkit-scrollbar { display: none; }
  .reel > * { scroll-snap-align: start; }
  .poster { width: min(42vw, 240px); }
  .poster.ep { width: min(78vw, 420px); }
  /* Remote tabs: four equal logo keys; the panel's eyebrow names the TV */
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; border-radius: 20px; }
  .tab { height: 54px; padding-inline: 6px; border-radius: 15px; }
  .tab .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tab .logo { --h: 20px; max-width: 100%; }
  .tab .logo-samsung { --k: .44; }
}
@media (min-width: 861px) { .panel .eyebrow { display: none; } }
@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; }
  .stores { gap: 8px; }
  .store { height: 60px; border-radius: 17px; }
  .store .logo { --h: 21px; }
  .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; }
  .cap span { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open] { animation: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .from-l, .from-r, .track { --p: 1; }
  .seg[aria-current="true"] i::after { transform: none; } /* no autoplay: the bars only mark the picked screen */
  .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; }
  .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; }
