/* xliteplayer.com. One ground, one ink, one accent (the app's orange), navy
   as the stage colour, Roboto in five sizes. Square corners on the page.
   Pieces of the TV app (.frag, marked data-ui) keep the app's own look.
   /assets/roboto-400.425c0713a8.woff2 and the like are replaced by the build with hashed paths. */

@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/roboto-400.425c0713a8.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/roboto-500.5bcc3aa180.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/roboto-700.b9d66d1708.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ground: #f2f3f5;
  --tone: #e5e7eb;
  --tone-2: #dadde3;
  --ink: #15181d;
  --muted: #4b5360;
  --accent: #fb9c01;
  --accent-hover: #ffb02e;
  --accent-ink: #1c1206;
  --focus: #c75f00;
  --navy: #1d3352;
  --tv: #14171c;
  --tv-panel: #1b1f26;
  --tv-raise: #262c35;
  --tv-text: #ffffff;
  --tv-soft: #aeb5c1;
  --tv-focus: #fb9c01;
  --font: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --step-display: clamp(2.75rem, 1.15rem + 5.2vw, 5rem);
  --step-head: clamp(1.75rem, 1.3rem + 1.25vw, 2.5rem);
  --step-statement: clamp(1.375rem, 1.15rem + 0.6vw, 1.75rem);
  --step-body: 1.125rem;
  --step-small: 1rem;
  --margin: clamp(16px, 2.8vw, 40px);
  --gutter: clamp(16px, 1.9vw, 28px);
  --section: clamp(112px, 13vw, 200px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font: 400 var(--step-body) / 1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul[class], ol[class]) { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button { padding: 0; color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { color: var(--accent-ink); background: var(--accent); }
:target { scroll-margin-top: 24px; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.head { font-size: var(--step-head); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
html:not(.js) .js-only { display: none !important; }

.skip {
  position: absolute; top: 8px; left: 8px; z-index: 10; padding: 10px 16px;
  color: var(--accent-ink); background: var(--accent); font-weight: 500; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  color: var(--accent-ink); background: var(--accent); font-size: var(--step-body); font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-hover); }
}

/* Top bar: wordmark, four links. */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 16px; }
.wordmark img { width: auto; height: 52px; }
.bar-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: var(--step-small); font-weight: 500; }
.bar-links a { display: block; padding: 8px 0; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.bar-links a[aria-current="page"] { text-decoration-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .bar-links a:hover { text-decoration-color: currentColor; }
}

/* ---------- the TV app's look, inside data-ui fragments ---------- */
.tv { position: relative; overflow: hidden; color: var(--tv-text); background: var(--tv); font-family: var(--font); line-height: 1.3; }
.tv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; pointer-events: none; }
.tv-icon { width: 20px; height: 20px; flex: none; }
.tv .is-focus { box-shadow: 0 0 0 3px var(--tv-focus), 0 0 18px 2px rgba(251, 156, 1, 0.5); } /* taste-skill-ignore: the TV app focus ring and glow, inside data-ui */
.tv-bar { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px; }
.tv-bar-title { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: 0.01em; text-align: center; }
.tv-bar-clock { font-size: 14px; color: var(--tv-soft); }

/* Home screen */
.tv-home { aspect-ratio: 16 / 9; padding: 3.4% 4.2% 0; }
.tv-home-top { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.tv-logo { width: 13%; min-width: 64px; height: auto; }
.tv-clock { display: flex; gap: 12px; font-size: clamp(12px, 1.6vw, 17px); font-weight: 500; }
.tv-round { display: grid; justify-self: end; place-items: center; width: 44px; height: 44px; background: rgba(0, 0, 0, 0.45); border-radius: 50%; }
.tv-round .tv-icon { width: 20px; }
.tv-home-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 1fr auto; gap: 14px; height: 64%; margin-top: 5.5%; }
.tv-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #213a5e; border-radius: 10px;
  font-size: clamp(13px, 1.5vw, 18px); font-weight: 700; letter-spacing: 0.01em;
}
.tv-tile--big { grid-row: 1 / 3; font-size: clamp(15px, 1.9vw, 22px); }
.tv-tile-icon { width: 30%; max-width: 64px; height: auto; color: var(--tv-focus); stroke-width: 1.6; }
.tv-tile--big .tv-tile-icon { width: 26%; max-width: 76px; }
.tv-chips { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tv-chip { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 8px; background: rgba(16, 19, 24, 0.86); border-radius: 8px; font-size: clamp(10px, 1vw, 12px); font-weight: 700; white-space: nowrap; }
.tv-chip .tv-icon { width: 16px; height: 16px; }
.tv-home-foot { position: relative; display: flex; justify-content: space-between; margin-top: 4.5%; font-size: clamp(12px, 1.3vw, 15px); font-weight: 500; }
.tv-home-grid > *, .tv-chip { transition: box-shadow 120ms ease; }

/* Films: grid, details, player */
.demo-screen { background: var(--tv); }
.demo-screen:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.tv-state { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 0s linear 220ms; }
.tv-state.is-active { opacity: 1; visibility: visible; transition: opacity 220ms ease; }
html:not(.js) .tv-state--grid { opacity: 1; visibility: visible; }
.tv-cat { display: flex; gap: 10px; padding: 2px 20px 12px; color: var(--tv-focus); font-size: 14px; font-weight: 700; }
.tv-cat span { color: var(--tv-soft); }
.tv-posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; padding: 4px 20px 20px; }
.tv-poster { position: relative; border-radius: 6px; }
.tv-poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.tv-rate { position: absolute; top: 6px; left: 6px; display: flex; align-items: center; gap: 3px; padding: 2px 6px; color: #fff; background: rgba(0, 0, 0, 0.62); border-radius: 4px; font-size: 12px; font-weight: 700; }
.tv-rate .tv-star { width: 11px; height: 11px; color: #fbc103; fill: #fbc103; }
.tv-poster-title { display: block; overflow: hidden; padding: 7px 2px 0; color: var(--tv-soft); font-size: 13px; font-weight: 500; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.tv-poster.is-focus { box-shadow: none; } /* taste-skill-ignore: the TV app focus ring, inside data-ui */
.tv-poster.is-focus img { box-shadow: 0 0 0 3px var(--tv-focus), 0 0 18px 2px rgba(251, 156, 1, 0.5); } /* taste-skill-ignore: the TV app focus ring and glow, inside data-ui */
.tv-poster.is-focus .tv-poster-title { color: #fff; }
.tv-detail { display: grid; grid-template-columns: 38% 1fr; gap: 14px 18px; padding: 6px 20px 20px; }
.tv-detail-poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.tv-stars { display: flex; justify-content: center; gap: 3px; margin-top: 8px; color: #555c68; }
.tv-stars .tv-star { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.tv-stars .on { color: #fbc103; }
.tv-meta { display: grid; align-content: start; gap: 9px; font-size: 13px; }
.tv-meta div { display: grid; gap: 1px; }
.tv-meta dt { color: var(--tv-soft); font-weight: 500; }
.tv-meta dd { font-weight: 700; }
.tv-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.tv-btn { display: grid; flex: 1; place-items: center; min-height: 42px; padding: 0 12px; background: #24395a; border-radius: 6px; font-size: 14px; font-weight: 700; }
.tv-btn--play { color: var(--accent-ink); background: var(--tv-focus); }
.tv-fav { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; }
.tv-fav .tv-icon { width: 24px; height: 24px; }
.tv-fav.is-on .tv-icon { color: var(--tv-focus); fill: var(--tv-focus); }
.tv-plot { grid-column: 1 / -1; color: #e6e9ee; font-size: 14px; line-height: 1.45; }
.tv-toast { grid-column: 1 / -1; padding: 10px 12px; color: #fff; background: rgba(36, 57, 90, 0.9); border-radius: 6px; font-size: 13px; }
.tv-state--player { background: #000; }
.tv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-osd { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 48px 20px 18px; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); } /* taste-skill-ignore: neutral scrim over the video, inside data-ui */
.tv-osd-title { font-size: 16px; font-weight: 700; }
.tv-progress { grid-column: 1 / -1; height: 4px; background: rgba(255, 255, 255, 0.25); border-radius: 2px; }
.tv-progress span { display: block; width: 100%; height: 100%; background: var(--tv-focus); border-radius: 2px; transform: scaleX(0.15); transform-origin: left; }
.tv-osd-time { display: flex; justify-content: space-between; gap: 12px; grid-column: 1 / -1; color: #dfe3e9; font-size: 12px; font-variant-numeric: tabular-nums; }
.tv-osd-state { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 34px; height: 34px; background: rgba(255, 255, 255, 0.14); border-radius: 50%; }
.tv-osd-state .tv-icon { width: 16px; height: 16px; }

/* Live TV panel */
.tv-live { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; background: var(--tv-panel); }
.tv-live .tv-bar-title { text-align: left; }
.tv-preview { position: relative; margin: 0 14px 6px; overflow: hidden; border-radius: 6px; background: #000; }
.tv-preview video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tv-live-tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; color: #fff; background: rgba(0, 0, 0, 0.6); border-radius: 4px; font-size: 12px; font-weight: 700; }
.tv-search { display: flex; align-items: center; gap: 10px; margin: 2px 14px 6px; padding: 11px 14px; color: var(--tv-soft); background: #11141a; border-radius: 6px; font-size: 14px; }
.tv-search .tv-icon { width: 17px; height: 17px; }
.tv-cats { display: grid; gap: 2px; padding: 0 14px; }
.tv-cats li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 6px; font-size: 14px; font-weight: 700; }
.tv-cats li span:last-child { color: var(--tv-soft); font-weight: 500; }
.tv-cats li.is-current { color: var(--tv-focus); background: rgba(251, 156, 1, 0.1); }
.tv-cats li.is-current span:last-child { color: var(--tv-focus); }
.tv-channels { display: grid; gap: 6px; margin-top: 6px; padding: 0 14px; }
.tv-channels li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; background: rgba(255, 255, 255, 0.04); border-radius: 6px; }
.tv-channels img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.tv-channels b { display: block; font-size: 14px; }
.tv-channels small { display: block; color: var(--tv-soft); font-size: 13px; }
.tv-heart .tv-icon { width: 20px; height: 20px; }
.tv-heart.is-on .tv-icon { color: var(--tv-focus); fill: var(--tv-focus); }
.tv-guide { display: grid; gap: 4px; margin: 8px 14px 0; }
.tv-guide p { display: grid; gap: 2px; padding: 9px 14px; border-radius: 6px; background: rgba(255, 255, 255, 0.03); }
.tv-guide b { font-size: 14px; }
.tv-guide span { color: var(--tv-soft); font-size: 13px; }
.tv-hint { display: flex; align-items: center; align-self: flex-end; gap: 8px; margin: 10px 14px 0; padding: 6px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); font-size: 13px; font-weight: 500; }
.tv-yellow { width: 18px; height: 10px; background: #f5c400; border-radius: 3px; }
.tv-live [data-part] { transition: box-shadow 120ms ease; }

/* Sign-in screen */
.tv-login { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 9%; }
.tv-login > p { position: relative; }
.tv-login-title { margin-bottom: 4px; font-size: 19px; font-weight: 700; text-align: center; }
.tv-field { display: flex; align-items: center; min-height: 54px; padding: 0 16px; background: rgba(18, 21, 26, 0.86); border: 2px solid rgba(255, 255, 255, 0.12); border-radius: 8px; font-size: 16px; }
.tv-field .tv-ph { color: #b7bdc7; }
.tv-field .tv-val { display: none; font-weight: 500; letter-spacing: 0.02em; }
.tv-field--pass .tv-icon { margin-left: auto; color: #fff; }
.tv-submit { display: grid; place-items: center; min-height: 54px; margin-top: 4px; color: var(--accent-ink); background: var(--tv-focus); border-radius: 8px; font-size: 16px; font-weight: 700; letter-spacing: 0.04em; }
.tv-mac { display: flex; justify-content: center; gap: 10px; margin-top: 10px; color: var(--tv-soft); font-size: 13px; }
.tv-mac b { color: #fff; font-weight: 500; letter-spacing: 0.04em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(680px, calc(100svh - 92px)); }
.hero-copy { position: relative; z-index: 1; padding-top: clamp(32px, 6.5vh, 64px); }
.hero-title { grid-column: 1 / 8; font-size: var(--step-display); font-weight: 500; line-height: 1; letter-spacing: -0.035em; }
.hero-lead { grid-column: 1 / 5; max-width: 38ch; margin-top: 32px; }
.hero-action { grid-column: 1 / 5; margin-top: 32px; }
.hero-stage-grid { position: absolute; inset: 0; top: max(250px, calc(36svh - 92px)); pointer-events: none; }
.hero-stage {
  --cut: clamp(64px, 10vw, 168px);
  position: relative; grid-column: 5 / -1; margin-right: calc(-1 * var(--margin)); overflow: hidden;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  pointer-events: auto;
}
.shutter-body { position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.hero-stage .tv-home { position: absolute; top: 56px; left: 56px; width: min(1040px, calc(100% - 56px)); }

/* ---------- try it ---------- */
.demo { padding-top: var(--section); }
.demo-inner { max-width: 760px; margin-inline: auto; }
.demo-intro { max-width: 60ch; margin-top: 14px; }
.demo-panel { position: relative; display: grid; grid-template-columns: 62fr 38fr; height: 640px; margin-top: 40px; background: var(--tv); }
html:not(.js) .demo-panel { grid-template-columns: 1fr; }
.demo-screen { height: 100%; }
.demo-remote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 20px 72px; color: #fff; background: #1f242c; }
.remote-pad { display: grid; grid-template-columns: repeat(3, 60px); grid-template-rows: repeat(3, 60px); gap: 6px; }
.key { display: grid; place-items: center; min-width: 48px; min-height: 48px; color: #fff; background: #2d343f; transition: transform 120ms var(--ease-out), background-color 160ms ease; }
.key:active, .key.is-pressed { transform: scale(0.93); background: #3a4350; }
.key-icon { width: 26px; height: 26px; }
.key--up { grid-column: 2; grid-row: 1; }
.key--left { grid-column: 1; grid-row: 2; }
.key--ok { grid-column: 2; grid-row: 2; color: var(--accent-ink); background: var(--accent); font-size: var(--step-small); font-weight: 700; }
.key--ok:active, .key--ok.is-pressed { background: var(--accent-hover); }
.key--right { grid-column: 3; grid-row: 2; }
.key--down { grid-column: 2; grid-row: 3; }
.key--back { display: flex; gap: 10px; min-width: 192px; padding: 0 20px; font-size: var(--step-small); font-weight: 500; }
.key--back .key-icon { width: 20px; height: 20px; }
.remote-caption { max-width: 22ch; color: #c9ced7; font-size: var(--step-small); text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .key:hover { background: #38404c; }
  .key--ok:hover { background: var(--accent-hover); }
}
.key:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.demo-link { position: absolute; left: calc(62% + 20px); bottom: 24px; color: #fff; font-size: var(--step-small); font-weight: 500; }
html:not(.js) .demo-link { display: none; }
.demo-hint { max-width: 62ch; margin-top: 16px; color: var(--muted); font-size: var(--step-small); }

/* ---------- your TV's own remote ---------- */
.remotes { padding-top: var(--section); }
.remotes-grid { align-items: start; }
.remotes-copy { grid-column: 1 / 6; align-self: center; }
.remotes-text { max-width: 30ch; margin-top: 20px; font-size: var(--step-statement); line-height: 1.3; }
.remotes-a { grid-column: 6 / 10; }
.remotes-b { grid-column: 10 / 13; margin-top: 30%; }
.remotes img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- live TV, with notes in the margins ---------- */
.features { padding-top: var(--section); }
.features-grid { position: relative; grid-template-rows: auto 1fr; }
.features-title { grid-column: 1 / 5; grid-row: 1; text-align: right; }
.features-panel { grid-column: 5 / 9; grid-row: 1 / 3; }
.features-panel .tv-live { max-width: 400px; margin-inline: auto; }
.features-notes { position: relative; display: grid; gap: 28px; align-content: start; }
.features-notes--left { grid-column: 1 / 5; grid-row: 2; padding-top: 40px; }
.features-notes--right { grid-column: 9 / 13; grid-row: 1 / 3; }
.note { display: grid; gap: 4px; width: 100%; max-width: 26ch; color: var(--ink); text-align: left; }
.features-notes--left .note { margin-left: auto; text-align: right; }
.note-name { font-size: var(--step-body); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; transition: text-decoration-color 160ms ease; }
.note-text { color: var(--muted); font-size: var(--step-small); line-height: 1.45; }
.note.is-current .note-name, .note:focus-visible .note-name { text-decoration-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .note:hover .note-name { text-decoration-color: var(--accent); }
}
.features-grid.is-placed .features-notes { display: block; padding-top: 0; }
.features-grid.is-placed .features-notes li { position: absolute; right: 0; left: 0; }

/* ---------- getting started ---------- */
.steps { padding-top: var(--section); }
.steps-text { grid-column: 1 / 6; }
.step { display: flex; flex-direction: column; justify-content: center; min-height: 72vh; }
.statement { color: var(--muted); font-size: var(--step-statement); font-weight: 500; line-height: 1.25; transition: color 240ms ease; }
.step.is-active .statement { color: var(--ink); }
.step-text { max-width: 40ch; margin-top: 12px; color: var(--muted); }
.steps-stage-wrap { grid-column: 7 / 13; }
.step-stage { display: none !important; }
.steps-stage { position: sticky; top: 14vh; display: grid; width: 100%; max-width: 560px; aspect-ratio: 1; margin-top: 18vh; margin-left: auto; overflow: hidden; background: var(--navy); }
.steps-stage > .frag { grid-area: 1 / 1; width: 100%; height: 100%; transition: opacity 260ms ease; }
.steps-stage .tv-login { background: transparent; }
.steps-stage .tv-home--after { display: flex; flex-direction: column; aspect-ratio: auto; padding: 8% 7%; opacity: 0; }
.steps-stage .tv-home--after .tv-home-grid { flex: 1; grid-template-rows: 1fr; height: auto; margin-top: 10%; }
.steps-stage .tv-home--after .tv-tile--big { grid-row: auto; }
.steps-stage .tv-home--after .tv-chips { display: none; }
.steps-stage .tv-home--after .tv-home-foot { margin-top: 8%; }
.steps-stage .tv-field--provider { box-shadow: 0 0 0 3px var(--tv-focus), 0 0 18px 2px rgba(251, 156, 1, 0.5); } /* taste-skill-ignore: the TV app focus ring and glow, inside data-ui */
.steps-stage[data-stage="1"] .tv-ph { display: none; }
.steps-stage[data-stage="1"] .tv-val { display: inline; }
.steps-stage[data-stage="1"] .tv-field--provider { box-shadow: none; } /* taste-skill-ignore: the TV app focus ring, inside data-ui */
.steps-stage[data-stage="1"] .tv-submit { box-shadow: 0 0 0 3px #fff, 0 0 18px 2px rgba(251, 156, 1, 0.6); } /* taste-skill-ignore: the TV app focus ring and glow, inside data-ui */
.steps-stage[data-stage="2"] .tv-login { opacity: 0; }
.steps-stage[data-stage="2"] .tv-home--after { opacity: 1; }

/* ---------- TVs ---------- */
.tvs { padding-block: clamp(120px, 12vw, 150px); }
.tvs-row { display: flex; align-items: baseline; gap: 48px; }
.tvs-lead { flex: none; color: var(--muted); font-size: var(--step-body); font-weight: 400; }
.tvs-names { display: flex; flex: 1; justify-content: space-between; gap: 32px; }
.tvs-name { display: block; font-size: var(--step-statement); font-weight: 500; line-height: 1.2; }
.tvs-note { display: block; margin-top: 4px; color: var(--muted); font-size: var(--step-small); }

/* ---------- your data ---------- */
.data-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; }
.data-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; margin-top: 56px; }
html:not(.js) .data-body { grid-template-columns: minmax(0, 1fr); }
.data-tabs { display: grid; align-content: start; gap: 6px; }
.data-tab { display: grid; gap: 2px; min-height: 64px; padding: 12px 16px; text-align: left; background: var(--tone); transition: background-color 160ms ease, color 160ms ease; }
.data-tab-name { font-size: var(--step-body); font-weight: 500; line-height: 1.25; }
.data-tab-when { color: var(--muted); font-size: var(--step-small); }
.data-tab[aria-selected="true"] { color: #fff; background: var(--ink); }
.data-tab[aria-selected="true"] .data-tab-when { color: #c9ced7; }
@media (hover: hover) and (pointer: fine) {
  .data-tab[aria-selected="false"]:hover { background: var(--tone-2); }
}
.data-panels { display: grid; gap: 40px; }
.js .data-panel[data-hidden] { display: none; }
.data-panel-title { margin-bottom: 12px; font-size: var(--step-statement); font-weight: 500; }
.js .data-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.data-rows { display: grid; gap: 4px; }
.data-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px; align-items: center; gap: 24px; min-height: 76px; padding: 14px 20px; background: var(--tone); }
.data-row:nth-child(even) { background: var(--tone-2); }
.data-status { font-weight: 700; }
.data-item b { display: block; font-weight: 500; }
.data-item span { display: block; color: var(--muted); font-size: var(--step-small); }
.data-where { color: var(--muted); font-size: var(--step-small); text-align: right; }

/* ---------- questions ---------- */
.faq { padding-top: var(--section); }
.faq-list { grid-column: 1 / 6; }
.faq-title { margin-bottom: 14px; color: var(--muted); font-size: var(--step-body); font-weight: 500; }
.faq-q { font-size: var(--step-body); font-weight: 400; }
.faq-q button { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 9px 0; color: var(--muted); text-align: left; transition: color 160ms ease; }
.faq-q button::before { flex: none; width: 8px; height: 8px; content: ""; background: var(--muted); border-radius: 50%; transform: translateY(-2px); transition: background-color 160ms ease; }
.faq-item.is-open .faq-q button { color: var(--ink); }
.faq-item.is-open .faq-q button::before { background: var(--accent); }
.faq-a { padding: 0 0 12px 22px; }
.faq-a p { max-width: 52ch; }
.faq-pane-wrap { display: none; grid-column: 7 / 13; }
.faq-pane { position: sticky; top: 120px; max-width: 30ch; font-size: var(--step-statement); line-height: 1.3; transition: opacity 150ms ease; }
.faq-pane.is-changing { opacity: 0; }

/* ---------- footer ---------- */
.foot { padding-bottom: 30px; }
.page-home .foot { margin-top: 30svh; }
.page-doc .foot { margin-top: var(--section); }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 12px 24px; font-size: var(--step-small); }
.foot-desc, .foot-meta { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.foot-links a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .foot-links a:hover { text-decoration-color: currentColor; }
}
.foot-meta { justify-self: end; }
.foot-credits { max-width: 72ch; margin-top: 12px; color: var(--muted); font-size: var(--step-small); }

/* ---------- documents ---------- */
.doc { padding-top: clamp(40px, 8vh, 96px); }
.doc-head { grid-column: 1 / -1; }
.doc-title { max-width: 16ch; font-size: var(--step-display); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; }
.doc-lead { max-width: 52ch; margin-top: 20px; color: var(--muted); font-size: 1.125rem; }
.doc-toc { grid-column: 1 / 4; grid-row: 2; align-self: start; position: sticky; top: 32px; margin-top: 64px; font-size: var(--step-small); }
.doc-toc-title { margin-bottom: 10px; color: var(--muted); font-size: var(--step-small); font-weight: 500; }
.doc-toc ul { margin: 0; padding: 0; list-style: none; }
.doc-toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: underline; text-decoration-color: transparent; transition: color 160ms ease, text-decoration-color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .doc-toc a:hover { color: var(--ink); text-decoration-color: currentColor; }
}
.doc-text { grid-column: 4 / 10; margin-top: 64px; }
.doc--short .doc-text { grid-column: 1 / 8; }
.doc-aside { grid-column: 10 / 13; grid-row: 2; align-self: start; position: sticky; top: 32px; margin-top: 64px; font-size: var(--step-small); }
.doc-aside-title { margin: 24px 0 6px; color: var(--muted); font-weight: 500; }
.doc-aside-title:first-child { margin-top: 0; }
.doc-aside ul { margin: 0; padding: 0; list-style: none; }
.doc-aside li { padding: 3px 0; }
.doc-aside a { text-decoration-color: var(--accent); }
.doc--short .doc-aside { grid-column: 9 / 13; }
.doc-text > * { max-width: 68ch; }
.doc-text h2 { margin: 56px 0 14px; font-size: var(--step-statement); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; scroll-margin-top: 24px; }
.doc-text h2:first-child { margin-top: 0; }
.doc-text h3 { margin: 32px 0 10px; font-size: var(--step-body); font-weight: 700; }
.doc-text p, .doc-text ul, .doc-text ol { margin: 0 0 16px; }
.doc-text ul, .doc-text ol { padding-left: 1.3em; }
.doc-text li { margin: 8px 0; padding-left: 4px; }
.doc-text li::marker { color: var(--focus); font-weight: 700; }
.doc-text p > em:only-child { color: var(--muted); font-style: normal; }
.doc-text a { text-decoration-color: var(--accent); }
.doc-text .note { margin: 0 0 24px; padding: 20px 24px; background: var(--tone); }
.doc-text .note p { margin: 0; }
.doc--center { padding-top: 16vh; text-align: center; }
.doc--center .doc-title { max-width: none; margin-inline: auto; }
.doc--center p { margin-top: 16px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(20px); animation: xl-rise 900ms var(--ease-out) forwards; }
  .js .hero-lead[data-rise] { animation-delay: 120ms; }
  .js .hero-action[data-rise] { animation-delay: 220ms; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter .shutter-body { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter .tv-home { transform: scale(1.12); transform-origin: 20% 0; transition: transform 1500ms var(--ease-soft); }
  .js .shutter.is-in .shutter-body { clip-path: inset(0); }
  .js .shutter.is-in .tv-home { transform: none; }
  .hero-stage .tv-bg, .steps-stage .tv-bg { animation: xl-drift 26s ease-in-out infinite alternate; }
  .tv .is-focus { animation: xl-focus 220ms var(--ease-out); }
}
@keyframes xl-rise { to { opacity: 1; transform: none; } }
@keyframes xl-drift { from { transform: scale(1.08) translate3d(-2%, -1%, 0); } to { transform: scale(1.08) translate3d(2%, 1%, 0); } }
@keyframes xl-focus { from { transform: scale(0.97); } to { transform: none; } }

/* ---------- desktop extras ---------- */
@media (min-width: 900px) {
  .js .faq-pane-wrap { display: block; }
  .js .faq-a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero-title { grid-column: 1 / 10; }
  .hero-lead, .hero-action { grid-column: 1 / 6; }
  .features-panel { grid-column: 5 / 10; }
  .features-notes--right { grid-column: 10 / 13; }
  .doc-toc { display: none; }
  .doc-text, .doc--short .doc-text { grid-column: 1 / 9; }
  .doc-aside, .doc--short .doc-aside { grid-column: 9 / 13; padding-left: 8px; }
}

/* ---------- phone and small tablet ---------- */
@media (max-width: 899px) {
  .wordmark img { height: 42px; }
  .bar-links { gap: 2px 20px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-title, .hero-lead, .hero-action { grid-column: 1 / -1; }
  .hero-stage-grid { position: relative; top: auto; inset: auto; margin-top: 48px; }
  .hero-stage { grid-column: 1 / -1; height: clamp(320px, 62vw, 520px); margin-inline: calc(-1 * var(--margin)); --cut: 72px; }
  .hero-stage .tv-home { top: 40px; left: 16px; width: max(560px, calc(100% - 32px)); }
  .demo-panel { grid-template-columns: 1fr; height: auto; }
  .demo-screen { height: auto; aspect-ratio: 4 / 5; }
  .demo-remote { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px 24px; padding: 24px 16px 64px; }
  .remote-caption { order: 3; flex-basis: 100%; }
  .demo-link { left: 16px; bottom: 20px; }
  .remotes-copy { grid-column: 1 / -1; }
  .remotes-a { grid-column: 1 / 8; margin-top: 32px; }
  .remotes-b { grid-column: 8 / -1; margin-top: 35%; }
  .features-title { grid-column: 1 / -1; text-align: left; }
  .features-panel { grid-column: 1 / -1; grid-row: 2; margin-top: 32px; }
  .features-notes--left, .features-notes--right { grid-column: 1 / -1; grid-row: auto; padding-top: 32px; }
  .features-notes--left .note { margin-left: 0; text-align: left; }
  .features-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .features-notes--right { padding-top: 24px; }
  .steps-text { grid-column: 1 / -1; }
  .steps-stage-wrap { display: none; }
  .step-stage { display: grid !important; position: relative; top: 0; max-width: 520px; aspect-ratio: 1; margin: 24px 0 0; }
  .step { min-height: 0; padding-top: 48px; }
  .step .statement { color: var(--ink); }
  .tvs-row { flex-direction: column; gap: 24px; }
  .tvs-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; width: 100%; }
  .data-body { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 32px; }
  .data-tabs { position: sticky; top: 0; z-index: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; background: var(--ground); }
  .data-tab { min-height: 56px; padding: 10px 12px; }
  .data-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px; }
  .data-where { text-align: left; }
  .faq-list { grid-column: 1 / -1; }
  .js .faq-item:not(.is-open) .faq-a { display: none; }
  .foot-line { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .foot-links { justify-content: flex-start; gap: 4px 20px; }
  .foot-meta { justify-self: start; }
  .doc-title { max-width: none; }
  .doc-text, .doc--short .doc-text { grid-column: 1 / -1; margin-top: 40px; }
  .doc-aside, .doc--short .doc-aside { position: static; grid-column: 1 / -1; grid-row: auto; margin-top: 48px; padding: 24px; background: var(--tone); }
}
@media (max-width: 480px) {
  .bar { padding-top: 16px; }
  .wordmark img { height: 38px; }
  .bar-links { width: 100%; justify-content: space-between; }
  .remote-pad { grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px); }
}

@media print {
  .skip, .bar, .foot, .doc-toc { display: none; }
  body { background: #fff; }
  .doc-text { grid-column: 1 / -1; }
}
