/* Backlot — marketing site.
   Styled from the app's own tokens (BacklotPlex/Design/Theme.swift): the
   #EAEAEA ground with three cool blue blooms and fine grain, white cards,
   near-black ink, black pill buttons, SF Pro. Light and dark follow the
   same pairs the app resolves. Real screenshots and recordings carry the
   page; the little UI tiles inside the feature cards are drawn in the same
   surfaces the app uses. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eaeaea;
  --surface: #d9d9d9;
  --card: #ffffff;
  --card-raised: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #5f5f63;
  --ink-3: #8a8a90;
  --line: rgba(0, 0, 0, .08);
  --pill: #0a0a0a;
  --pill-ink: #ffffff;
  --star: #fdc72e;
  --blue: #3b76f0;

  /* Ambient wash — Theme.ambientPrimary/Secondary/Accent */
  --bloom-a: rgba(59, 118, 240, .16);
  --bloom-b: rgba(111, 168, 255, .14);
  --bloom-c: rgba(155, 196, 255, .12);
  --grain-opacity: .05;

  /* UI tiles inside the feature cards: the app's page ground inside a white card */
  --mock: #efeff0;
  --mock-ink: #0a0a0a;
  --mock-ink2: #6b6b70;
  --mock-line: rgba(0, 0, 0, .08);
  --mock-raised: #ffffff;
  --ok-ink: #1d7a43; --ok-bg: rgba(52, 199, 89, .16);
  --warn-ink: #b4530e; --warn-bg: rgba(255, 149, 0, .16);
  --sash: #f28221;

  --r-card: 26px;
  --r-tile: 18px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.06);
  --shadow-raised: 0 30px 80px rgba(10,20,50,.20), 0 6px 18px rgba(0,0,0,.08);
  --shadow-poster: 0 18px 40px rgba(0,0,0,.22), 0 4px 10px rgba(0,0,0,.10);
  --shadow-nav: 0 1px 2px rgba(0,0,0,.05), 0 12px 36px rgba(0,0,0,.08);
  --nav-bg: rgba(255,255,255,.78);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121213;
    --surface: #1f1f21;
    --card: #1c1c1e;
    --card-raised: #27272a;
    --ink: #f2f2f4;
    --ink-2: #9c9ca3;
    --ink-3: #6e6e75;
    --line: rgba(255, 255, 255, .09);
    --pill: #e8e8ec;
    --pill-ink: #0a0a0a;
    --blue: #6fa8ff;
    --bloom-a: rgba(46, 107, 255, .22);
    --bloom-b: rgba(30, 79, 216, .18);
    --bloom-c: rgba(75, 155, 255, .12);
    --grain-opacity: .07;
    --mock: #121213;
    --mock-ink: #f2f2f4;
    --mock-ink2: #9c9ca3;
    --mock-line: rgba(255, 255, 255, .09);
    --mock-raised: #27272a;
    --ok-ink: #7ee2a2; --ok-bg: rgba(63, 143, 95, .22);
    --warn-ink: #ffb36b; --warn-bg: rgba(210, 121, 47, .22);
    --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.35);
    --shadow-raised: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
    --shadow-nav: 0 12px 36px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.07);
    --nav-bg: rgba(30,30,32,.72);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font);
  font-size: 17px; line-height: 1.55; letter-spacing: -.2px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* The app's fine grain, laid over everything but never catching the pointer. */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { body::after { mix-blend-mode: screen; } }

a { color: inherit; }
img, video { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* Type ------------------------------------------------------------------ */

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
.display { font-size: clamp(44px, 7.4vw, 84px); line-height: 1.0; letter-spacing: -.045em; }
.h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.04em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); letter-spacing: -.2px; max-width: 700px; margin: 18px auto 0; }
.section { padding: clamp(72px, 9vw, 130px) 0; }
.section-head { max-width: 780px; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }

/* Buttons — the app's black pill ------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--pill); color: var(--pill-ink); text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: -.2px;
  padding: 13px 24px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:focus-visible, .nav-links a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn.lg { padding: 17px 30px; font-size: 17px; }
.btn.sm { padding: 10px 18px; font-size: 14px; }
.btn.light { background: #ffffff; color: #0a0a0a; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(0,0,0,.12); }
.btn.muted { background: var(--surface); color: var(--ink-2); pointer-events: none; }
.apple { width: 15px; height: 15px; fill: currentColor; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* Nav ------------------------------------------------------------------- */

/* Zero height: the pill floats over the hero instead of pushing it down, so the glow reaches the top edge. The hero pads itself to clear the pill. */
.nav-wrap { position: sticky; top: 14px; z-index: 60; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; height: 0; overflow: visible; margin-top: 14px; align-items: flex-start; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-radius: var(--r-pill); padding: 8px 8px 8px 14px; box-shadow: var(--shadow-nav);
  max-width: 100%;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -.3px; text-decoration: none; margin-right: 18px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 2px; margin-right: 18px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 7px 10px; border-radius: 8px; transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav-links { display: none; } .brand { margin-right: 6px; } }

/* Hero ------------------------------------------------------------------ */

.hero { position: relative; padding: calc(clamp(48px, 7vw, 96px) + 86px) 0 0; margin-top: -14px; overflow: hidden; }
/* Theme.ambient*: three cool blooms, drifting slowly the way AmbientBackground does. */
.hero-glow { position: absolute; inset: -10% -10% auto; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 36% at 22% 16%, var(--bloom-a), transparent 70%),
    radial-gradient(38% 34% at 82% 26%, var(--bloom-b), transparent 70%),
    radial-gradient(34% 30% at 50% 62%, var(--bloom-c), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(2%, 3%, 0) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; letter-spacing: -.1px;
  background: var(--card); padding: 7px 14px 7px 8px; border-radius: var(--r-pill); box-shadow: var(--shadow-card); }
.eyebrow .dot-live { white-space: nowrap; background: var(--pill); color: var(--pill-ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; }
.hero h1 { margin-top: 26px; }
.hero .lede { margin-top: 22px; max-width: 720px; }
.hero .cta { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13px; color: var(--ink-3); }

/* The product visual: a real recording of the app in its own window, with
   two real posters leaning in from the sides, tilted like a hovered card. */
.stage { position: relative; max-width: 1180px; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 24px; perspective: 2200px; }
.window { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg);
  box-shadow: var(--shadow-raised); transform: rotateX(4deg); transform-origin: 50% 100%; }
.window video, .window img { display: block; width: 100%; height: auto; }
/* Two real posters flank the headline, tilted like a hovered card — beside
   the text, clear of the recording below. */
.lean { position: absolute; top: clamp(150px, 13vw, 190px); width: clamp(120px, 11vw, 168px); aspect-ratio: 2/3; border-radius: 12px; object-fit: cover;
  box-shadow: var(--shadow-poster); z-index: 1; pointer-events: none; }
.lean.l { left: max(28px, calc(50% - 600px)); transform: perspective(900px) rotate(-8deg) rotateY(16deg); }
.lean.r { right: max(28px, calc(50% - 600px)); transform: perspective(900px) rotate(7deg) rotateY(-16deg); }
@media (max-width: 1180px) { .lean { display: none; } }

/* Trust row */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 24px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border-radius: var(--r-pill);
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; letter-spacing: -.2px; color: var(--ink-2); box-shadow: var(--shadow-card); }
.trust i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); display: inline-block; }

/* Chips — HomeView's section-count badge and genre chips ------------------ */

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 30px auto 0; }
.chips span { background: var(--card); border-radius: var(--r-pill); padding: 8px 15px; font-size: 13.5px; font-weight: 600; letter-spacing: -.2px; box-shadow: var(--shadow-card); }

/* Media ----------------------------------------------------------------- */

.media { max-width: var(--max); margin: clamp(40px, 5vw, 64px) auto 0; border-radius: 16px; overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow-raised); position: relative; }
.media img, .media video { display: block; width: 100%; height: auto; }

/* Three short recordings, the way the launch posts show them */
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); text-align: left; }
@media (max-width: 860px) { .clips { grid-template-columns: minmax(0, 1fr); } }
.clip { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.clip .frame { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-raised); background: var(--bg); aspect-ratio: 1440 / 860; }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip figcaption b { display: block; font-size: 19px; letter-spacing: -.03em; }
.clip figcaption span { color: var(--ink-2); font-size: 15px; }

/* Feature cards --------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 40px); min-width: 0; box-shadow: var(--shadow-card); }
.card h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.035em; line-height: 1.1; }
.card p { margin: 16px 0 0; color: var(--ink-2); font-size: 16.5px; }
.card p.inc { color: var(--ink); }
.card p.inc b { font-weight: 600; }
.mocks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; align-items: flex-start; }

/* The UI tiles all mockups share — the app's surfaces */
.mock { background: var(--mock); color: var(--mock-ink); border-radius: 16px; padding: 14px 16px;
  font-size: 12.5px; line-height: 1.4; min-width: 0; max-width: 100%; overflow: hidden; }
.mock b { font-weight: 600; }
.mock code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--mock-ink2); }

/* Real posters, cropped from the app's own grid */
.p1, .p2, .p3, .p4, .p5, .p6 { background-size: cover; background-position: center; background-color: var(--surface); }
.p1 { background-image: url("assets/posters/p2.jpg"); }
.p2 { background-image: url("assets/posters/p9.jpg"); }
.p3 { background-image: url("assets/posters/p12.jpg"); }
.p4 { background-image: url("assets/posters/p6.jpg"); }
.p5 { background-image: url("assets/posters/p11.jpg"); }
.p6 { background-image: url("assets/posters/p13.jpg"); }

/* poster grid */
.mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 240px; }
.mini-poster { aspect-ratio: 2/3; border-radius: 6px; position: relative; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.14); }
.mini-poster .rate { position: absolute; top: 4px; left: 4px; font-size: 8px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); padding: 2px 5px; border-radius: 99px; }

/* rows */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--mock-line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.tag { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.tag.ok { color: var(--ok-ink); background: var(--ok-bg); }
.tag.opt { color: var(--mock-ink2); background: var(--mock-line); }
.tag.warn { color: var(--warn-ink); background: var(--warn-bg); }
.note { margin-top: 10px; font-size: 10.5px; color: var(--mock-ink2); }
.mock-list { width: 250px; }

/* resume — HomeView's Continue Watching card */
.mock-resume { display: flex; align-items: center; gap: 12px; width: 330px; background: var(--mock-raised); box-shadow: var(--shadow-card); }
.res-poster { width: 40px; height: 60px; border-radius: 6px; flex: none; }
.res-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.res-eyebrow { font-size: 8.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--mock-ink2); }
.res-copy b { font-size: 14px; letter-spacing: -.02em; }
.res-ep { font-size: 10.5px; color: var(--mock-ink2); }
.res-bar { height: 3px; border-radius: 99px; background: var(--mock-line); margin-top: 5px; }
.res-bar i { display: block; height: 100%; border-radius: 99px; background: var(--mock-ink); }
.res-btn { background: var(--pill); color: var(--pill-ink); padding: 8px 13px; border-radius: 99px; font-size: 11px; font-weight: 650; white-space: nowrap; }

/* parser */
.mock-parse { width: 100%; }
.parse-line { display: grid; grid-template-columns: 1fr 16px auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--mock-line); }
.parse-line:first-child { border-top: 0; padding-top: 0; }
.parse-line code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arw { color: var(--mock-ink2); text-align: center; }
.parse-line b { font-size: 12px; white-space: nowrap; }
.parse-line em { font-style: normal; color: var(--mock-ink2); font-size: 10.5px; margin-left: 5px; }
@media (max-width: 520px) { .parse-line { grid-template-columns: 1fr; gap: 2px; } .arw { display: none; } }

/* season / missing */
.mock-season { width: 210px; }
.season-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 12px; }
.season-head span { color: var(--mock-ink2); font-size: 11px; }
.ep-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ep-grid i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--mock-ink); opacity: .85; }
.ep-grid i.miss { background: transparent; border: 1.5px dashed var(--warn-ink); opacity: 1; }

/* keys */
.mock-keys { width: 250px; }
.key-row { display: flex; align-items: center; gap: 5px; padding: 6px 0; border-top: 1px solid var(--mock-line); font-size: 11px; color: var(--mock-ink2); }
.key-row:first-child { border-top: 0; padding-top: 0; }
.key-row span { margin-left: auto; }
.key-row kbd { font: 600 10px/1 ui-monospace, Menlo, monospace; color: var(--mock-ink); background: var(--mock-raised); box-shadow: 0 1px 0 var(--mock-line); border-radius: 5px; padding: 5px 7px; min-width: 10px; text-align: center; }

/* mini player */
.mock-mini { width: 180px; padding: 0; }
.mini-bar { display: flex; gap: 5px; padding: 9px 11px; }
.mini-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--mock-line); }
.mini-screen { aspect-ratio: 16/9; background: #000 url("assets/shots/03-player.jpg") center/cover; display: grid; place-items: center; color: #fff; font-size: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.mini-label { padding: 8px 11px; font-size: 10.5px; color: var(--mock-ink2); text-align: center; }

/* lock */
.lock-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--mock-line); font-size: 11px; color: var(--mock-ink2); }
.lock-row:first-child { border-top: 0; padding-top: 0; }
.lock-row b { color: var(--mock-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fldr { width: 13px; height: 10px; border-radius: 2px; background: #6fa8ff; flex: none; }

/* match */
.mock-match { width: 240px; }
.match-field { background: var(--mock-raised); border-radius: 99px; padding: 6px 12px; font-size: 11px; color: var(--mock-ink2); margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.match-row { display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 7px; font-size: 11.5px; }
.match-row.sel { background: var(--mock-raised); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.match-row em { font-style: normal; margin-left: auto; color: var(--mock-ink2); font-size: 10px; }
.mp { width: 18px; height: 27px; border-radius: 3px; flex: none; }

/* sash — Sashes.swift */
.sash-poster { width: 90px; aspect-ratio: 2/3; border-radius: 10px; position: relative; overflow: hidden; box-shadow: var(--shadow-poster); }
.sash-poster::after { content: "WATCH LATER"; position: absolute; top: 14px; right: -34px; transform: rotate(45deg);
  background: var(--sash); color: #fff; font-size: 7px; font-weight: 800; letter-spacing: .08em; padding: 3px 36px; }
.sash-poster.new::after { content: "NEW"; background: #d9342b; }

/* scan */
.scan-head { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; margin-bottom: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.scan-bar { height: 4px; border-radius: 99px; background: var(--mock-line); margin-top: 10px; }
.scan-bar i { display: block; height: 100%; border-radius: 99px; background: var(--mock-ink); }

/* Player showcase -------------------------------------------------------- */

.player { position: relative; max-width: var(--max); margin: 0 auto; border-radius: var(--r-card); overflow: hidden; background: #000; color: #fff;
  box-shadow: var(--shadow-raised); min-height: clamp(420px, 52vw, 620px); display: flex; align-items: flex-end; }
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%); }
.player .copy { position: relative; z-index: 1; padding: clamp(28px, 5vw, 64px); text-align: left; max-width: 760px; }
.player .kicker { color: rgba(255,255,255,.7); }
.player .h2 { color: #fff; }
.player p { color: rgba(255,255,255,.72); margin: 16px 0 0; font-size: 17px; }
.player .chips { justify-content: flex-start; margin: 22px 0 0; }
.player .chips span { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Trailer ---------------------------------------------------------------- */

.trailer { max-width: var(--max); margin: clamp(36px, 4vw, 56px) auto 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-raised); background: #121213; }
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }

/* Apple TV --------------------------------------------------------------- */

.tv { max-width: 980px; margin: clamp(40px, 5vw, 64px) auto 0; position: relative; }
.tv-screen { border-radius: 18px; overflow: hidden; background: #0b0b0c; padding: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, var(--shadow-raised); }
.tv-screen img { display: block; width: 100%; height: auto; border-radius: 10px; }
.tv-stand { width: 26%; height: 12px; margin: 0 auto; background: linear-gradient(180deg, #2a2a2e, #141416); border-radius: 0 0 10px 10px; }
.tv-badges { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.tv-badges span { background: var(--card); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-card); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; text-align: left; }
@media (max-width: 760px) { .points { grid-template-columns: minmax(0, 1fr); } }
.points div { background: var(--card); border-radius: var(--r-tile); padding: 22px 24px; box-shadow: var(--shadow-card); }
.points b { display: block; font-size: 16.5px; letter-spacing: -.3px; margin-bottom: 6px; }
.points span { color: var(--ink-2); font-size: 15px; }

/* Black band — the player's world ---------------------------------------- */

.band { background: #000; color: #fff; padding: 0 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.marquee { display: flex; gap: 16px; padding: 32px 0 0; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 95%); mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 95%); }
.marquee .track { display: flex; gap: 16px; animation: slide 60s linear infinite; flex: none; }
.marquee .track img { display: block; width: 118px; aspect-ratio: 2/3; border-radius: 10px; flex: none; object-fit: cover; }
@keyframes slide { to { transform: translateX(calc(-100% - 16px)); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }
.band .h2 { margin-top: clamp(80px, 12vw, 170px); }
.band .lede { color: rgba(255,255,255,.62); }
.band .btn { margin-top: 30px; }
.band .offer { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.band .offer span { border: 1px solid rgba(255,255,255,.22); border-radius: 99px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }

/* Pricing --------------------------------------------------------------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: center; max-width: var(--max); margin: 0 auto; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; } }
.plan { background: var(--card); border-radius: var(--r-card); padding: 34px 28px 28px; text-align: center; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow-card); }
.plan.raised { background: var(--card-raised); box-shadow: var(--shadow-raised); padding-top: 44px; padding-bottom: 38px; }
.plan h3 { font-size: 24px; letter-spacing: -.03em; }
.price { margin: 28px 0 0; font-size: clamp(52px, 5vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 17px; font-weight: 600; letter-spacing: -.2px; color: var(--ink-3); margin-left: 6px; }
.price-note { color: var(--ink-3); font-size: 12.5px; margin-top: 10px; }
.plan ul { list-style: none; padding: 0; margin: 26px auto 0; text-align: left; display: grid; gap: 12px; font-size: 15px; width: fit-content; max-width: 100%; }
.plan li { display: flex; align-items: flex-start; gap: 10px; }
.plan li::before { content: "✓"; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--mock); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.plan .btn { margin-top: 30px; width: 100%; }
.plan .badge { align-self: center; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pill-ink); background: var(--pill); padding: 5px 11px; border-radius: 99px; margin-bottom: 18px; }
.plan-note { max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--ink-2); font-size: 14.5px; }

/* FAQ ------------------------------------------------------------------- */

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; align-items: start; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
details { background: var(--card); border-radius: 22px; padding: 0 24px; min-width: 0; box-shadow: var(--shadow-card); }
summary { cursor: pointer; padding: 20px 0; font-weight: 550; font-size: 16px; list-style: none; display: flex; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; width: 20px; text-align: center; flex: none; transition: transform .22s ease; }
details[open] summary::before { transform: rotate(45deg); }
details p { margin: 0 0 20px 36px; color: var(--ink-2); font-size: 15.5px; }

/* Closing visual + footer ---------------------------------------------- */

.closing { display: flex; justify-content: center; padding: 0 24px; }
.closing .mock { border-radius: 24px; padding: 18px 20px; box-shadow: var(--shadow-raised); }

footer { position: relative; padding: clamp(64px, 8vw, 110px) 0 0; overflow: hidden; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; }
.foot-brand img { width: 30px; height: 30px; border-radius: 8px; }
.foot h4 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -.03em; }
.foot p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; max-width: 300px; }
.foot .small { font-size: 13px; color: var(--ink-3); margin-top: 20px; }
.foot .product { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.foot .product img { width: 70px; height: auto; }
@media (prefers-color-scheme: dark) { .foot .product img { filter: invert(1); } }
.foot h5 { margin: 6px 0 14px; font-size: 16px; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot li a { text-decoration: none; font-size: 15px; color: var(--ink); }
.foot li a:hover { text-decoration: underline; }
.wordmark { margin-top: clamp(40px, 6vw, 80px); height: clamp(120px, 24vw, 340px); position: relative; overflow: hidden;
  background:
    radial-gradient(50% 90% at 20% 100%, var(--bloom-a), transparent 70%),
    radial-gradient(50% 90% at 80% 100%, var(--bloom-b), transparent 70%),
    var(--bg); }
.wordmark span { position: absolute; left: 50%; bottom: -0.16em; transform: translateX(-50%);
  font-size: clamp(110px, 24vw, 340px); font-weight: 800; letter-spacing: -.06em; line-height: 1; white-space: nowrap;
  color: var(--card); opacity: .8; }

/* Reveal ---------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Real posters shown as they appear in the app, sash or banner included */
.poster-shot { width: 90px; aspect-ratio: 2/3; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-poster); display: block; }
.mp:not([class*=" p"]) { background: var(--surface); }

/* Two smaller real Apple TV screens under the big one */
.tv-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 28px auto 0; }
@media (max-width: 640px) { .tv-more { grid-template-columns: minmax(0, 1fr); } }
.tv-more figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tv-more img { display: block; width: 100%; height: auto; border-radius: 12px; border: 6px solid #0b0b0c; box-shadow: var(--shadow-raised); }
.tv-more figcaption { font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* Hero proof: the unedited seek recording and the numbers measured from it */
.player-window { background: #000; transform: none; }
.rec-tag { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 11px; border-radius: 99px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: inline-flex; align-items: center; gap: 7px; }
.rec-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff453a; }
.speed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 22px auto 0; text-align: left; }
@media (max-width: 720px) { .speed { grid-template-columns: minmax(0, 1fr); } }
.speed div { background: var(--card); border-radius: var(--r-tile); padding: 18px 22px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 4px; }
.speed b { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.speed span { color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }

/* Warp speed block, straight under the hero recording */
.warp { margin-top: clamp(72px, 9vw, 120px); }
.warp .stage { margin-top: clamp(32px, 4vw, 48px); }

/* Feature-card tiles: one tidy two-column grid in every card. Tiles fill
   their column (no fixed widths), rows share a height, wide tiles span both
   columns, and the grid sits at the foot of the card so neighbouring cards
   line their tiles up. */
.card { display: flex; flex-direction: column; }
.cards .mocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 0; padding-top: 28px; align-items: stretch; }
.cards .mocks > .mock { width: auto; max-width: none; margin: 0; }
.cards .mocks > .wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .cards .mocks { grid-template-columns: minmax(0, 1fr); } }
.cards .mock-grid { gap: 8px; align-content: center; }
.cards .mock-resume { width: auto; }
.cards .mock-mini { display: flex; flex-direction: column; }
.cards .mock-mini .mini-screen { flex: 1; aspect-ratio: auto; min-height: 90px; }
.mock-posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.mock-posters figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mock-posters .sash-poster, .mock-posters .poster-shot { width: 100%; max-width: 120px; }
.mock-posters figcaption { font-size: 11px; font-weight: 600; color: var(--mock-ink2); text-align: center; }

/* Phones: the player card stacks its screenshot above the copy instead of
   laying text over the info panel; TV badges wrap as whole pills. */
@media (max-width: 640px) {
  .player { display: block; min-height: 0; }
  .player img { position: static; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 30% 20%; }
  .player::after { display: none; }
  .player .copy { padding: 26px 22px 28px; }
}
.tv-badges { flex-wrap: wrap; }
.tv-badges span { white-space: nowrap; }

/* Legal pages ------------------------------------------------------- */
.legal { padding: 120px 0 80px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -1px; margin: 8px 0 0; }
.legal .lede { margin: 18px 0 0; }
.legal h2 { font-size: 20px; letter-spacing: -.3px; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin: 8px 0; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.keybox { margin: 36px auto 0; max-width: 560px; padding: 28px; border-radius: 18px; background: var(--card, rgba(127,127,127,.12)); }
.keybox code { display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: clamp(16px, 2.4vw, 22px); letter-spacing: 1px; margin: 0 0 18px; word-break: break-all; color: var(--ink); }
.keybox #status { color: var(--ink-2); }

/* the live ticket roll in the download section: white floor, like the ticket page */
.ticket-embed { margin: 28px auto 0; max-width: 560px; }
.ticket-embed iframe { display: block; width: 100%; aspect-ratio: 980 / 520; border: 0; border-radius: 16px; background: #fff; }
