/* TV Remote product page. A soft lilac page, centred and symmetric; the only dark things on it are the TV and the phone. */
:root {
  --bg: #f1eafd;
  --tint: #e5d9fa;
  --panel: #d7c7f5;
  --ink: #1e0e37;
  --muted: #564b6b;
  --accent: #6f35d8;
  --line: rgba(30, 14, 55, .13);
  --green: #1fae72;
  /* Inside the two devices */
  --night: #120824;
  --plum-2: #2b1750;
  --mist: #ede6fa;
  --red: #ff5a5f;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-width: 320px; color: var(--ink); font: 400 18px/1.6 var(--font); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.08; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: 20px; line-height: 1.3; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.shell { width: min(1120px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 10px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; height: 68px; background: rgba(241, 234, 253, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.logo img { border-radius: 10px; }
.top nav { display: flex; gap: 32px; margin-inline: auto; color: var(--muted); font-size: 15px; font-weight: 500; }
.top nav a:hover, .foot nav a:hover { color: var(--accent); }
.get { padding: 9px 18px; color: #fff; border-radius: 999px; background: var(--accent); font-size: 15px; font-weight: 500; transition: transform .2s ease; }
.get:hover { transform: translateY(-1px); }

/* Sections share one vertical rhythm */
section { padding: clamp(72px, 9vw, 112px) 0; }
.tinted { background: var(--tint); }
.centered { text-align: center; }

/* Hero */
.hero { padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 56px); text-align: center; background: linear-gradient(var(--bg), var(--tint)); }
.lead { max-width: 560px; margin: 20px auto 0; color: var(--muted); font-size: clamp(18px, 1.7vw, 20px); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.badge { height: 48px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; transition: transform .2s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { width: auto; max-width: none; height: 48px; }
.badge.android { width: 158px; }
.badge.android img { height: 70px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: clamp(28px, 4vw, 56px); max-width: 1020px; margin: clamp(40px, 5vw, 64px) auto 0; text-align: left; outline: none; }
.stage:focus-visible .tv-body { outline: 2px solid var(--accent); outline-offset: 4px; }

/* The TV: slim bezel, a status bar, and a stand */
.tv { position: relative; --glow: #b47cff; }
.tv-glow { position: absolute; inset: -6% -3% 8%; z-index: 0; border-radius: 50%; background: var(--glow); filter: blur(60px); opacity: .36; transition: background .7s ease, opacity .7s ease; }
.tv[data-on="false"] .tv-glow { opacity: 0; }
.tv-body { position: relative; z-index: 1; padding: 7px 7px 14px; border-radius: 16px; background: linear-gradient(#17171b, #060608); box-shadow: 0 30px 70px rgba(30, 14, 55, .3), inset 0 1px rgba(255, 255, 255, .1); }
.tv-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; container-type: inline-size; }
/* A faint diagonal sheen, like glass catching the room light */
.tv-screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 38%); pointer-events: none; }
.tv-led { position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2a2a31; transition: background .3s ease; }
.tv[data-on="false"] .tv-led { background: var(--red); }
.tv-stand { position: relative; z-index: 1; width: 9%; height: 22px; margin: 0 auto; background: linear-gradient(90deg, #0b0b0e, #25252b, #0b0b0e); }
.tv-stand i { position: absolute; bottom: 0; left: 50%; width: 320%; height: 7px; margin-left: -160%; border-radius: 6px 6px 2px 2px; background: #111114; }
.tv-picture { position: absolute; inset: 0; color: #fff; background: linear-gradient(160deg, #26114a, #0d0620 70%); transform-origin: center; transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, filter .55s ease; }
/* Off: the picture collapses to a bright line, the way a tube TV used to. */
.tv[data-on="false"] .tv-picture { transform: scale(.7, .006); opacity: 0; filter: brightness(3); transition: transform .32s cubic-bezier(.6, 0, .9, .3), opacity .2s ease .26s, filter .3s ease; }

.tv-view { position: absolute; inset: 0; padding: 5cqw; opacity: 0; visibility: hidden; transform: scale(.97); transition: opacity .35s ease, transform .35s ease, visibility 0s .35s; }
.tv[data-view="home"] .tv-home, .tv[data-view="app"] .tv-app, .tv[data-view="search"] .tv-search { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.tv-top { display: flex; justify-content: space-between; margin-bottom: 2.6cqw; color: rgba(255, 255, 255, .66); font-size: 2.3cqw; line-height: 1.6; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.tiles li { display: flex; align-items: flex-end; aspect-ratio: 3 / 2; padding: 1.8cqw 2.2cqw; color: #fff; border-radius: 2cqw; background: linear-gradient(140deg, var(--tile), color-mix(in srgb, var(--tile) 45%, #000)); font-size: 2.7cqw; font-weight: 500; opacity: .5; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .28s ease, box-shadow .28s ease; }
.tiles li.focus { opacity: 1; transform: scale(1.07); box-shadow: 0 0 0 .5cqw #fff, 0 2.4cqw 5cqw rgba(0, 0, 0, .55); }

.tv-app { display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 28% 18%, color-mix(in srgb, var(--glow) 75%, #000), #07030f 78%); }
.tv-app-name { font-size: 10cqw; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.tv-app-state { margin: 1.6cqw 0 3cqw; color: rgba(255, 255, 255, .72); font-size: 2.6cqw; }
.tv-bar { height: 1cqw; min-height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .22); }
.tv-bar i { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .3s ease; }

.tv-searchbar { display: flex; align-items: center; min-height: 7.4cqw; padding: 0 3cqw; border: .3cqw solid rgba(255, 255, 255, .35); border-radius: 99px; font-size: 3.1cqw; }
.caret { width: .35cqw; min-width: 2px; height: 3.6cqw; margin-left: .4cqw; background: #fff; animation: blink 1s steps(2) infinite; }
.tv-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; margin-top: 4cqw; }
.tv-results li { display: flex; align-items: flex-end; aspect-ratio: 3 / 2; padding: 1.8cqw; border-radius: 2cqw; background: rgba(255, 255, 255, .09); font-size: 2.1cqw; line-height: 1.25; opacity: 0; transform: translateY(2cqw); transition: opacity .4s ease, transform .4s ease; }
.tv[data-results="true"] .tv-results li { opacity: 1; transform: none; }
.tv[data-results="true"] .tv-results li:nth-child(2) { transition-delay: .09s; }
.tv[data-results="true"] .tv-results li:nth-child(3) { transition-delay: .18s; }

.tv-hud { position: absolute; top: 4cqw; right: 4cqw; min-width: 26cqw; padding: 1.6cqw 2.2cqw; border-radius: 1.6cqw; background: rgba(0, 0, 0, .7); font-size: 2.2cqw; opacity: 0; transition: opacity .25s ease; }
.tv-hud.show { opacity: 1; }
.tv-hud .tv-bar { margin-top: 1.2cqw; }
.tv-hud.plain .tv-bar { display: none; }

/* The phone remote, laid out and coloured like the app's Remote screen */
.phone { position: relative; display: grid; gap: 10px; width: 320px; padding: 16px 14px 18px; color: #f4f4f5; border: 5px solid #1d1d22; border-radius: 46px; background: #0a0a0c; box-shadow: 0 30px 70px rgba(30, 14, 55, .32); --surface: #151518; --raised: #1e1e23; --dim: #a1a1aa; --faint: #63636e; --accent: #b47cff; --hair: rgba(255, 255, 255, .08); }
.key { display: inline-grid; place-items: center; min-height: 44px; padding: 0 6px; color: #f4f4f5; border: 0; border-radius: 16px; background: var(--surface); font: 500 13px var(--font); cursor: pointer; transition: transform .12s ease, background .12s ease; -webkit-tap-highlight-color: transparent; }
.key:active, .key.pressed { transform: scale(.93); background: #2a2a31; }
.key svg, .phone-tv svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.key svg.fill { fill: currentColor; stroke: none; }
.key svg.accent { color: var(--accent); }
.round { width: 44px; padding: 0; border-radius: 50%; }
.phone-top { display: flex; gap: 8px; }
.power { color: var(--red); }
.phone-tv { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--hair); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; }
.phone-tv i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; }
.phone-tv .chev { width: 14px; height: 14px; color: var(--faint); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--surface); }
.seg button { height: 34px; color: var(--dim); border: 0; border-radius: 999px; background: none; font: 600 13px var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { color: var(--accent); background: rgba(180, 124, 255, .16); }
.deck { display: grid; grid-template-columns: 44px 1fr 44px; align-items: stretch; gap: 10px; }
.rocker { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center; border-radius: 999px; background: var(--surface); }
.rocker .key { width: 100%; height: 100%; background: none; }
.rocker .key.small { height: 40px; color: var(--dim); }
.rocker-label { color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.dpad { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--surface); }
.arrow { position: absolute; width: 46px; min-height: 46px; padding: 0; margin: auto; border-radius: 50%; background: none; }
.arrow.up { top: 2px; left: 0; right: 0; }
.arrow.down { bottom: 2px; left: 0; right: 0; }
.arrow.left { left: 2px; top: 0; bottom: 0; }
.arrow.right { right: 2px; top: 0; bottom: 0; }
.ok { position: absolute; inset: 0; width: 40%; height: 40%; min-height: 0; margin: auto; color: var(--accent); border: 2px solid var(--accent); border-radius: 50%; background: var(--raised); font-size: 16px; font-weight: 600; }
.swipe { display: grid; place-items: center; aspect-ratio: 1; color: var(--dim); border-radius: 28px; background: var(--surface); font-size: 13px; text-align: center; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; aspect-ratio: 1; }
.numpad .key { min-height: 0; font-size: 17px; }
.swipe[hidden], .dpad[hidden], .numpad[hidden] { display: none; }
.row { display: grid; gap: 8px; }
.row.nav { grid-template-columns: repeat(4, 1fr); }
.row.nav .key { gap: 2px; min-height: 54px; color: var(--dim); font-size: 11px; }
.row.nav .key svg { color: #f4f4f5; }
.row.nav .key svg.accent { color: var(--accent); }
.row.playback { grid-template-columns: repeat(5, 1fr); }
.row.playback .key { min-height: 42px; border-radius: 14px; }
.row.playback .key svg { width: 16px; height: 16px; }
.row.colors { grid-template-columns: repeat(4, 1fr); }
.row.colors .key { min-height: 38px; border-radius: 14px; }
.row.colors i { width: 24px; height: 5px; border-radius: 3px; background: var(--bar); }
.mic { justify-self: center; width: 54px; min-height: 54px; color: var(--accent); border: 1px solid var(--hair); }
.mic.listening { color: #0a0a0c; background: var(--accent); animation: listening 1.2s ease-out infinite; }
/* A ring leaves the phone each time a command is sent. */
.signal { position: absolute; top: -12px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; pointer-events: none; }
.signal.ping { animation: ping .5s ease-out; }

/* Feature splits: two equal columns, copy on one side and a screenshot panel on the other */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 80px); }
.split.flip > .media { order: -1; }
.pair { display: grid; gap: 28px; margin-top: 28px; }
.pair h3 { font-size: 19px; }
.pair p { max-width: 460px; margin-top: 6px; color: var(--muted); font-size: 17px; }
.points { display: grid; gap: 6px; max-width: 460px; margin-top: 12px; font-size: 16px; }
.points li { display: flex; align-items: baseline; gap: 10px; }
.points li::before { content: '✓'; color: var(--accent); font-weight: 600; }
/* Two screenshots side by side; the copy explains them in the same left-to-right order */
.media { display: flex; justify-content: center; gap: 16px; padding: 40px 24px 0; overflow: hidden; border-radius: 32px; background: var(--tint); }
.tinted .media { background: var(--panel); }
.media img { flex: 1; min-width: 0; max-width: 250px; border-radius: 24px 24px 0 0; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: clamp(64px, 8vw, 96px); }
.trio article { padding-top: 24px; border-top: 1px solid var(--line); }
.trio p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Supported TVs: a strip of cards under the demo that keeps drifting sideways */
.tvs { margin-top: clamp(36px, 4vw, 48px); }
.tvs h2 { font-size: clamp(20px, 2vw, 24px); }
.marquee { margin-top: 20px; overflow-x: auto; scrollbar-width: none; }
.marquee::-webkit-scrollbar { display: none; }
.scan { display: flex; width: max-content; padding: 4px 0 4px 24px; }
/* Margin, not gap, so the doubled list is exactly twice one list and the loop has no seam. */
.scan li { display: grid; justify-items: center; align-content: center; gap: 4px; flex: none; width: 140px; height: 76px; margin-right: 14px; padding: 12px; border-radius: 18px; background: #fff; }
.scan img, .scan svg { width: 96px; height: 46px; object-fit: contain; }
.scan .wordmark { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.scan .droid { fill: none; stroke: #3ddc84; stroke-width: 3; stroke-linecap: round; }
.scan .droid .head { fill: #3ddc84; stroke: none; }
.scan .droid circle { fill: #fff; stroke: none; }
.marquee.run { 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); }
.marquee.run .scan { padding-left: 0; animation: drift 42s linear infinite; }
.marquee.run:hover .scan { animation-play-state: paused; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; color: #fff; border-radius: 50%; background: var(--accent); font-size: 20px; font-weight: 600; }
.steps p { max-width: 300px; margin: 8px auto 0; color: var(--muted); font-size: 16px; }

.band p { max-width: 620px; margin: 20px auto 0; color: var(--muted); }

.faq { max-width: 720px; margin: 40px auto 0; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 22px; color: var(--muted); font-size: 17px; }

.closing-icon { margin: 0 auto 24px; border-radius: 20px; }
.closing p { margin-top: 12px; color: var(--muted); }

.foot { padding: 28px 0; border-top: 1px solid var(--line); }
.foot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 28px; font-size: 15px; }
.maker { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; color: var(--muted); }
.copyright { justify-self: end; color: var(--muted); }

/* Motion: blocks ease up into place the first time they scroll into view */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .media.reveal { transform: translateY(28px) scale(.97); transition-delay: .1s; }
.js .reveal.in { opacity: 1; transform: none; }
.js .trio .reveal:nth-child(2), .js .steps .reveal:nth-child(2) { transition-delay: .1s; }
.js .trio .reveal:nth-child(3), .js .steps .reveal:nth-child(3) { transition-delay: .2s; }

@keyframes drift { to { transform: translateX(-50%); } }
@keyframes blink { to { opacity: 0; } }
@keyframes listening { from { box-shadow: 0 0 0 0 rgba(180, 124, 255, .55); } to { box-shadow: 0 0 0 20px rgba(180, 124, 255, 0); } }
@keyframes ping { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(7); } }

@media (max-width: 860px) {
  .top nav { display: none; }
  .get { margin-left: auto; }
  .stage { grid-template-columns: 1fr; justify-items: center; }
  .tv { width: 100%; }
  .phone { width: min(320px, 100%); }
  .split { grid-template-columns: 1fr; }
  .split.flip > .media { order: 0; }
  .trio, .steps { grid-template-columns: 1fr; }
  .foot-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .copyright { justify-self: center; }
}

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