:root {
  --bg: #010101;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --label: #8e8e8e;
  --red: #e8484a;
  --red-hi: #f06a6c;
  --free-bg: #0c2f14;
  --free-bd: #2f8f4a;
  --pro-bg: #391519;
  --pro-bd: #a3343a;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-bd: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.1);
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.nw { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; }

.wrap { width: min(100% - 40px, 1240px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Type ---------- */
.eyebrow {
  color: var(--red);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: clamp(16px, 1.6vw, 24px);
}
.display {
  font-size: clamp(50px, 8.6vw, 136px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.lede {
  color: var(--muted);
  font-size: clamp(19px, 1.65vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin-top: clamp(20px, 2vw, 32px);
  max-width: 32ch;
  text-wrap: pretty;
}
.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary { background: #f5f5f7; color: #000; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--text); border: 1px solid rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }

/* Official Apple "Download on Apple TV" badge. Use the artwork unmodified:
   min 40px tall onscreen, clear space = 1/4 of badge height, one badge per page. */
.store-badge { display: inline-block; line-height: 0; border-radius: 9px; }
.store-badge img { display: block; height: 48px; width: auto; }

.text-cta {
  font-size: 17px; font-weight: 600; color: var(--text);
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: text-decoration-color 0.2s;
}
.text-cta:hover { text-decoration-color: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(1, 1, 1, 0.66);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.wordmark img { display: block; height: 28px; width: auto; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a {
  font-size: 13px; color: rgba(245, 245, 247, 0.8); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  font-size: 13px; font-weight: 600; color: #fff;
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 400px) { .nav-cta .long { display: none; } }

/* ---------- Sections ---------- */
section {
  position: relative;
  padding-block: clamp(96px, 12vw, 168px);
  overflow: hidden;
  overflow: clip;
  scroll-margin-top: var(--nav-h);
}
@media (min-width: 960px) and (min-height: 640px) {
  /* Capped so very tall windows (e.g. headless screenshots) do not stretch each section. */
  .panel {
    min-height: min(calc(100vh - var(--nav-h)), 1080px);
    min-height: min(calc(100svh - var(--nav-h)), 1080px);
    display: flex; flex-direction: column; justify-content: center;
  }
}

/* ---------- Reveal (content is visible by default; JS only hides below-the-fold items) ---------- */
.reveal.is-pending { opacity: 0; transform: translateY(40px); }
.reveal.is-pending.is-in {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

/* ---------- 2. Hero ---------- */
.hero {
  padding-top: clamp(72px, 10vw, 136px);
  padding-bottom: clamp(80px, 9vw, 140px);
  background:
    radial-gradient(42% 34% at 18% 30%, rgba(150, 88, 34, 0.30), transparent 72%),
    radial-gradient(38% 34% at 84% 58%, rgba(96, 72, 170, 0.22), transparent 72%),
    radial-gradient(30% 22% at 50% 82%, rgba(232, 72, 74, 0.10), transparent 72%);
}
.hero .lede { max-width: 30ch; }
.cta-row {
  margin-top: clamp(28px, 3vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
}
.meta { margin-top: 18px; color: var(--muted); font-size: 15px; letter-spacing: 0.01em; }
.tv {
  position: relative;
  margin: clamp(56px, 6vw, 96px) auto 0;
  max-width: 1120px;
  isolation: isolate;
}
.tv::before {
  content: "";
  position: absolute; inset: -3% -5% -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 176, 96, 0.36), rgba(120, 96, 255, 0.16) 60%, transparent);
  filter: blur(56px);
}
.tv-frame {
  padding: clamp(5px, 0.75vw, 11px);
  border-radius: clamp(18px, 2.4vw, 34px);
  background: linear-gradient(180deg, #1b1b1d, #0a0a0b);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tv-frame img { width: 100%; border-radius: clamp(13px, 1.65vw, 23px); }

/* ---------- 3. Audio ---------- */
.audio {
  background:
    radial-gradient(34% 40% at 76% 50%, rgba(78, 46, 170, 0.36), transparent 72%),
    radial-gradient(22% 26% at 64% 40%, rgba(60, 90, 200, 0.16), transparent 72%),
    radial-gradient(26% 20% at 22% 74%, rgba(232, 72, 74, 0.10), transparent 72%);
}
.split { display: grid; gap: clamp(56px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.channels { margin-top: clamp(32px, 3.2vw, 48px); display: grid; gap: 10px; }
.ch-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .ch-row { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.ch {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.75em;
  font-size: clamp(13px, 1.1vw, 17px); font-weight: 700; letter-spacing: -0.01em;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.6em;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.6s ease;
}
.ch.h {
  background: var(--red);
  border-color: var(--red-hi);
  box-shadow: 0 0 26px -4px rgba(232, 72, 74, 0.75);
}
.channels.armed .ch.h {
  background: #1c1c1e; border-color: rgba(255, 255, 255, 0.18); box-shadow: none;
}
.channels.armed.play .ch.h {
  background: var(--red);
  border-color: var(--red-hi);
  box-shadow: 0 0 26px -4px rgba(232, 72, 74, 0.75);
  transition-delay: calc(var(--i) * 170ms + 250ms);
}
.stats {
  margin-top: clamp(24px, 2.4vw, 36px);
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 4px;
}
.stats strong { color: var(--text); font-weight: 700; }
.stats > * + *::before { content: "·"; margin-right: 12px; color: rgba(255, 255, 255, 0.35); }
/* Narrow screens: stack the stats, so a wrapped line never starts with a "·". */
@media (max-width: 520px) {
  .stats { flex-direction: column; }
  .stats > * + *::before { content: none; }
}

.menu {
  position: relative;
  max-width: 560px; margin-inline: auto;
  padding: 1.15em 0 0.85em;
  font-size: clamp(18px, 1.75vw, 27px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04) 55%, rgba(120, 100, 200, 0.07));
  -webkit-backdrop-filter: blur(36px) saturate(150%);
  backdrop-filter: blur(36px) saturate(150%);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.45em;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.menu-title { color: rgba(255, 255, 255, 0.55); font-size: 0.74em; font-weight: 600; padding: 0 1.4em 0.4em; }
.menu li { position: relative; padding: 0.62em 1.4em 0.62em 2.5em; color: rgba(255, 255, 255, 0.9); letter-spacing: -0.01em; }
.menu li.sel {
  margin-inline: -0.3em;
  padding-left: 2.8em; padding-right: 1.7em;
  background: #fff; color: #000; font-weight: 600;
  border-radius: 0.65em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 12px 70px rgba(255, 255, 255, 0.24);
}
.menu li.sel svg { position: absolute; left: 1.1em; top: 50%; width: 1em; height: 1em; transform: translateY(-50%); }

/* ---------- 4. Dolby Vision ---------- */
.video {
  background:
    radial-gradient(48% 30% at 50% 26%, rgba(150, 84, 20, 0.30), transparent 72%),
    radial-gradient(30% 24% at 20% 60%, rgba(120, 70, 30, 0.14), transparent 72%);
}
.pills { margin-top: clamp(28px, 2.8vw, 40px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  padding: 0.42em 1em;
  font-size: clamp(15px, 1.2vw, 18px); font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}
.compare { margin: clamp(48px, 5vw, 80px) auto 0; max-width: 1180px; }
.compare img {
  width: 100%;
  border-radius: clamp(16px, 2vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 50px 120px -40px rgba(150, 84, 20, 0.45);
}
.compare figcaption {
  /* Two equal columns keep each caption under its own half of the split image. */
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 18px 1.2em 0;
  font-size: clamp(15px, 1.5vw, 22px); font-weight: 600;
}
.cap-dv { color: var(--text); }
.cap-sdr { color: var(--label); text-align: right; }
.facts { margin-top: clamp(56px, 6vw, 96px); display: grid; gap: 40px; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; gap: 64px; } }
.fact { border-top: 1px solid var(--line); padding-top: 24px; }
.fact h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.fact p { margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 42ch; }
.tag-pro {
  display: inline-block; vertical-align: 0.2em;
  margin-left: 2px; padding: 0.25em 0.7em; /* + the space before it in the HTML ≈ the old 8px gap */
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: #fff; background: var(--pro-bg); border: 1px solid var(--pro-bd); border-radius: 999px;
}

/* ---------- 5. Formats ---------- */
.formats {
  background:
    radial-gradient(38% 34% at 74% 36%, rgba(40, 70, 150, 0.28), transparent 72%),
    radial-gradient(30% 26% at 62% 70%, rgba(130, 64, 40, 0.16), transparent 72%);
}
.fmt { margin-top: clamp(48px, 5vw, 72px); }
.fmt-row { display: grid; gap: 12px; padding: 12px 0; }
@media (min-width: 760px) { .fmt-row { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } }
.fmt-label {
  color: var(--label);
  font-size: clamp(13px, 1.05vw, 16px); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding-top: 0.6em;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 0.45em;
  padding: 0.36em 0.95em;
  font-size: clamp(15px, 1.25vw, 19px); font-weight: 600; letter-spacing: -0.01em;
  color: #fff;
  background: var(--free-bg);
  border: 1.5px solid var(--free-bd);
  border-radius: 999px;
  white-space: nowrap;
}
.chip.pro { background: var(--pro-bg); border-color: var(--pro-bd); }
.pro-tag { font-size: 0.72em; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.62); }
.fmt-note {
  margin-top: clamp(32px, 3.4vw, 52px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  color: var(--muted); font-size: clamp(16px, 1.3vw, 20px);
}
.fmt-note .chip { white-space: normal; }

/* ---------- 6. Sources + 7. Details ---------- */
.sources {
  background:
    radial-gradient(36% 30% at 24% 40%, rgba(70, 50, 150, 0.22), transparent 72%),
    radial-gradient(30% 26% at 80% 62%, rgba(150, 90, 34, 0.16), transparent 72%);
}
.tiles { margin-top: clamp(48px, 5vw, 80px); display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }
.tile {
  padding: clamp(22px, 2vw, 30px);
  background: var(--glass);
  border: 1px solid var(--glass-bd);
  border-radius: 26px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.tile:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-3px); }
.icon { width: 36px; height: 36px; color: #fff; }
.tile h3, .detail h3 { margin-top: 20px; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.tile p, .detail p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.45; }
@media (max-width: 559px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .detail { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; }
  .tile .icon, .detail .icon { grid-row: span 2; }
  .tile h3, .detail h3 { margin-top: 4px; }
}

.details { padding-top: clamp(40px, 6vw, 96px); }
.detail-list { margin-top: clamp(48px, 5vw, 72px); display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.detail { border-top: 1px solid var(--line); padding-top: 24px; }
.detail .icon { width: 30px; height: 30px; color: var(--red); }

/* ---------- 8. Pricing ---------- */
.pricing {
  background:
    radial-gradient(30% 34% at 70% 58%, rgba(232, 72, 74, 0.14), transparent 72%),
    radial-gradient(30% 30% at 28% 54%, rgba(47, 143, 74, 0.10), transparent 72%);
}
.plans {
  margin: clamp(48px, 5vw, 80px) auto 0; max-width: 1000px;
  display: grid; gap: 20px; text-align: left;
}
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  background: var(--glass);
  border: 1px solid var(--glass-bd);
  border-radius: 32px;
}
.plan.pro { background: linear-gradient(160deg, rgba(57, 21, 25, 0.75), rgba(255, 255, 255, 0.04) 70%); border-color: rgba(163, 52, 58, 0.7); }
.plan-name { font-size: 15px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #6fd08c; }
.plan.pro .plan-name { color: var(--red); }
.plan-price { margin-top: 14px; font-size: clamp(44px, 4.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.plan-sub { margin-top: 10px; color: var(--muted); }
.prices { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price {
  padding: 16px 18px; border-radius: 20px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1);
}
.price-term { color: var(--muted); font-size: 15px; font-weight: 600; }
.price-amt { margin-top: 2px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
/* "Early adopter" corner ribbon on the PRO card. #d63a3d keeps white text at 4.6:1 contrast. */
.plan.pro { position: relative; overflow: hidden; }
.ribbon {
  position: absolute; top: 30px; right: -52px;
  width: 200px; padding: 7px 0;
  transform: rotate(45deg);
  background: #d63a3d; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
/* Keep the price boxes clear of the ribbon when the card padding shrinks (narrow screens). */
.plan.pro .prices { margin-top: max(14px, calc(101px - 2 * clamp(28px, 3vw, 44px))); }
.checks { margin-top: 28px; display: grid; gap: 12px; flex: 1; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: #d2d2d7; }
.checks svg { width: 20px; height: 20px; margin-top: 2px; color: #6fd08c; }
.plan.pro .checks svg { color: var(--red-hi); }
.plan .text-cta { margin-top: 32px; align-self: flex-start; }
.fine { margin-top: 24px; color: var(--label); font-size: 14px; }

/* ---------- 9. New in 2.0 + community ---------- */
.new {
  background: radial-gradient(40% 36% at 50% 82%, rgba(84, 52, 170, 0.24), transparent 72%);
}
.new-list {
  margin-top: clamp(40px, 4.4vw, 64px);
  display: grid; gap: 0 28px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.new-list li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(19px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3;
}
.new-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: translateY(-3px); }
.community {
  margin-top: clamp(64px, 7vw, 112px);
  display: grid; gap: 28px; align-items: center;
  padding: clamp(28px, 4vw, 56px);
  background: var(--glass);
  border: 1px solid var(--glass-bd);
  border-radius: 36px;
}
@media (min-width: 860px) { .community { grid-template-columns: 1fr auto; } }
.community h3 { font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.community p { margin-top: 12px; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 10. Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot p { color: var(--muted); }
.foot .wordmark { display: inline-block; color: var(--text); margin-bottom: 8px; }
.foot .wordmark img { height: 96px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot-links a { color: #d2d2d7; text-decoration: none; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-bottom p { color: var(--label); }
.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: #fff; text-decoration: underline; }

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