/* Remte: the apps' public page, laid out like a streaming service's front door. Black, the apps' yellow, real covers. */
:root {
  --black: #000;
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.5);
  --line: #2b2b2b;
  --panel: #161616;
  --panel-2: #2d2d2d;
  --brand: #ffc529;
  --brand-2: #ff8a00;
  --brand-ink: #120d00;
  --gutter: clamp(16px, 5vw, 148px);
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --numeral: 'Anton', 'Impact', sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font: 400 17px/1.5 var(--display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header, over the opening */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px var(--gutter);
}
.logo {
  font: 900 34px/1 var(--display);
  font-stretch: 125%;
  letter-spacing: -0.01em;
  color: var(--brand);
  text-decoration: none;
  text-shadow: 0 2px 24px rgba(255, 197, 41, 0.35);
}
.logo-sm { font-size: 24px; }
.top-links { display: flex; gap: 26px; margin-left: auto; }
.top-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s; }
.top-links a:hover { color: var(--ink); }
.top .btn-sm + .btn-sm { margin-left: -20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--brand-ink);
  font: 700 16px/1 var(--display);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: #ffd65c; }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 22px; }
.btn-lg span { font-size: 30px; line-height: 0; }
.btn-glass { background: rgba(255, 255, 255, 0.14); color: var(--ink); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); }

/* Opening: a tilted wall of the catalogue's covers */
.hero {
  position: relative;
  min-height: max(640px, 92vh);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.wall { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* Rows of covers, tilted, each sliding slowly: one to the left, the next to the right. A row holds its covers twice,
   and each cover carries its gap as a right margin, so moving by half the row lands exactly where it began. */
.wall-rows {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 135vw;
  display: grid;
  gap: 14px;
  transform: translate(-50%, -50%) rotate(-11deg);
}
.wall-row { overflow: hidden; }
.wall-track { display: flex; width: max-content; animation: slide-left 170s linear infinite; }
.wall-rev .wall-track { animation-name: slide-right; animation-duration: 190s; }
.wall-track span {
  flex: none;
  width: clamp(110px, 10vw, 180px);
  aspect-ratio: 2 / 3;
  margin-right: 14px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}
.wall-track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes slide-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slide-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.2) 70%, #000 100%);
}
.hero-copy {
  max-width: 900px;
  padding: 140px var(--gutter) 80px;
  text-align: center;
  animation: rise 0.9s var(--ease) both;
}
.hero h1 {
  font: 900 clamp(38px, 6.4vw, 76px)/1.02 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-sub { margin-top: 20px; font-size: clamp(18px, 2vw, 24px); font-weight: 600; animation: rise 0.9s 0.12s var(--ease) both; }
.hero-note { margin-top: 26px; color: var(--ink-2); animation: rise 0.9s 0.2s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; animation: rise 0.9s 0.28s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Counts */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 400 clamp(36px, 4.6vw, 60px)/1 var(--numeral); color: var(--brand); letter-spacing: 0.01em; }
.stats span { color: var(--ink-2); font-size: 15px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

/* Shelves */
.shelf, .reasons, .faq { padding: 56px var(--gutter) 0; }
.shelf-title { font: 800 clamp(22px, 2.2vw, 30px)/1.2 var(--display); margin-bottom: 18px; }

/* Rows that slide on their own, slowly, the edges fading into the page; a pointer on them holds them still */
.marquee {
  overflow: hidden;
  padding: 14px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
.track > li { flex: none; margin-right: 12px; }
.track-left { animation: slide-left 80s linear infinite; }
.track-right { animation: slide-right 140s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.top-item { width: clamp(120px, 10.4vw, 190px); }
.track-right > li { width: clamp(130px, 12vw, 180px); }
.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.track > li:hover .cover { transform: scale(1.05); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75), 0 0 0 2px var(--brand); }

.row-name { margin-top: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { color: var(--ink-3); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.age { display: inline-block; padding: 1px 6px; border: 1px solid var(--ink-3); font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* Billboard: one title's header picture across the page */
.billboard {
  position: relative;
  margin-top: 56px;
  min-height: min(76vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.bb-picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; }
.bb-blur { filter: blur(30px) brightness(0.7); transform: scale(1.2); }
.billboard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 38%, transparent 70%),
    linear-gradient(180deg, #000 0%, transparent 18%, transparent 62%, #000 100%);
}
.bb-copy { max-width: 620px; padding: 0 var(--gutter) 64px; }
.billboard h2 { font: 900 clamp(36px, 5.4vw, 72px)/1 var(--display); font-stretch: 110%; letter-spacing: -0.02em; margin-bottom: 14px; }
.bb-meta { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; }
.bb-about { margin: 16px 0 26px; color: var(--ink-2); font-size: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bb-meta + .btn { margin-top: 26px; }
.eyebrow, .kicker { color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 12px; }

/* Reasons */
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.reason {
  position: relative;
  min-height: 250px;
  padding: 26px 22px 90px;
  border-radius: 16px;
  background: linear-gradient(149deg, #2a2010 0%, #1b1208 46%, #160c16 100%);
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.reason:hover { transform: translateY(-4px); }
.reason h3 { font: 800 23px/1.15 var(--display); margin-bottom: 12px; }
.reason p { color: var(--ink-2); font-size: 16px; }
.reason svg {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 64px;
  height: 64px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(255, 197, 41, 0.45));
}
.reason svg .fill { fill: var(--brand); }

/* App screens: Netflix's old alternating rows, divided by thick bars */
.screens { margin-top: 64px; }
.screen {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 72px var(--gutter);
  border-top: 8px solid #232323;
}
.screen-flip .screen-copy { order: 2; }
.screen h3, .chat h2 { font: 900 clamp(32px, 4.2vw, 52px)/1.05 var(--display); font-stretch: 108%; letter-spacing: -0.02em; }
.screen-copy p, .chat-copy > p:not(.kicker) { margin-top: 18px; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); }
/* A television: one thin even bezel, a metal edge, a slim neck and a stand under it */
.tv-frame {
  position: relative;
  padding: 10px;
  margin-bottom: 46px;
  border-radius: 14px;
  background: #050505;
  box-shadow:
    0 0 0 2px #2b2b2f,
    0 0 0 3px #6a6a70,
    0 0 0 4px #1c1c1f,
    0 40px 90px rgba(0, 0, 0, 0.75),
    0 0 140px rgba(255, 197, 41, 0.08);
}
.tv-frame::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 7%;
  height: 24px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #2a2a2e, #55555b 50%, #2a2a2e);
}
.tv-frame::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: 30%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #6a6a70, #2b2b2f 40%, #141416);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}
.tv-frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.phone-pair { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 0 0 0 12%; }
/* A phone: one thin even bezel all round, rounded like the device, a metal edge, side buttons */
.phone-frame {
  position: relative;
  z-index: 1;
  width: min(280px, 46%);
  padding: 9px;
  border-radius: 46px;
  background: #050505;
  box-shadow:
    0 0 0 2px #2b2b2f,
    0 0 0 3px #6a6a70,
    0 0 0 4px #1c1c1f,
    0 30px 70px rgba(0, 0, 0, 0.75);
}
.phone-frame::before,
.phone-frame::after {
  content: '';
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4a4a50, #7a7a82);
}
.phone-frame::before { right: -7px; top: 22%; height: 11%; }
.phone-frame::after { left: -7px; top: 16%; height: 17%; }
.phone-frame img { display: block; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; border-radius: 37px; }
.phone-back { margin-left: -10%; margin-top: 60px; z-index: 0; transform: rotate(4deg); }

/* Chat */
.chat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 80px var(--gutter);
  border-top: 8px solid #232323;
  background: radial-gradient(60% 80% at 85% 40%, rgba(255, 197, 41, 0.1), transparent 70%);
}
.chat-points { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 10px; font-size: 18px; }
.chat-points li::before { content: '✓'; color: var(--brand); font-weight: 900; margin-right: 12px; }

/* Questions */
.faq { padding-top: 72px; border-top: 8px solid #232323; max-width: calc(1100px + 2 * var(--gutter)); margin: 0 auto; }
.faq .shelf-title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; text-align: center; margin-bottom: 28px; }
.faq details { background: var(--panel-2); margin-bottom: 8px; transition: background 0.2s; }
.faq details:hover { background: #414141; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
  font: 500 clamp(18px, 2vw, 24px)/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 44px; font-weight: 300; line-height: 0.6; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 26px; border-top: 1px solid #000; padding-top: 22px; font-size: clamp(17px, 1.8vw, 22px); color: var(--ink); }

/* Download */
.download { padding: 80px var(--gutter) 96px; text-align: center; }
.download h2 { font: 700 clamp(20px, 2vw, 24px)/1.4 var(--display); color: var(--ink-2); margin-bottom: 22px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; gap: 14px; }
.dl {
  display: grid;
  gap: 6px;
  padding: 26px 24px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid #2c2c2c;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.25s var(--ease), background 0.2s;
}
.dl:hover { border-color: var(--brand); background: #1c1a12; transform: translateY(-3px); }
.dl-for { color: var(--ink-3); font-size: 14px; }
.dl strong { font: 900 28px/1.1 var(--display); font-stretch: 110%; }
.dl-go { margin-top: 10px; color: var(--brand); font-weight: 700; }

/* Footer */
.foot { padding: 56px var(--gutter) 64px; border-top: 8px solid #232323; color: var(--ink-3); }
.foot-grid { display: grid; grid-template-columns: repeat(4, max-content); gap: 14px 64px; margin: 26px 0; }
.foot-grid a { font-size: 14px; color: var(--ink-3); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-note { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-track, .track, .hero-copy, .hero-sub, .hero-note, .hero-actions { animation: none; }
  .marquee { overflow-x: auto; }
}

@media (max-width: 1000px) {
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .screen, .screen-flip, .chat { grid-template-columns: 1fr; text-align: center; }
  .screen-flip .screen-copy { order: 0; }
  .chat-points { justify-items: center; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats div:nth-child(3) { border-left: 0; }
  .foot-grid { grid-template-columns: repeat(2, max-content); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .tv-frame { padding: 5px; border-radius: 9px; margin-bottom: 34px; }
  .tv-frame::before { height: 18px; bottom: -19px; }
  .tv-frame::after { height: 9px; bottom: -28px; }
  .top { padding: 18px 16px; }
  .top-links { display: none; }
  .top .btn-sm { margin-left: auto; }
  .top .btn-sm + .btn-sm { margin-left: -24px; }
  .logo { font-size: 26px; }
  .wall-rows { width: 170vw; gap: 8px; }
  .wall-track span { margin-right: 8px; }
  .hero-copy { padding: 120px 16px 64px; }
  .btn-lg { padding: 15px 22px; font-size: 18px; }
  .reason-grid, .dl-grid { grid-template-columns: 1fr; }
  .billboard { min-height: 70vh; }
  .billboard::before { background: linear-gradient(180deg, #000 0%, transparent 20%, rgba(0, 0, 0, 0.5) 55%, #000 100%); }
  .screen { padding: 56px 16px; }
  .phone-pair { padding-left: 8%; }
  .faq summary { padding: 18px; }
}

/* Three phones side by side, the middle one a little larger; each name under its phone, outside the frame */
.screen-trio { grid-template-columns: 1fr; text-align: center; padding-bottom: 96px; }
.screen-trio .screen-copy { max-width: 760px; margin: 0 auto; }
.trio { display: flex; justify-content: center; align-items: center; gap: clamp(12px, 3vw, 44px); margin-top: 40px; }
.phone-shot { width: min(290px, 30%); display: grid; gap: 16px; justify-items: center; }
.phone-shot .phone-frame { width: 100%; }
.trio-main { width: min(330px, 34%); }
.trio-main .phone-frame { box-shadow: 0 0 0 2px #2b2b2f, 0 0 0 3px #6a6a70, 0 0 0 4px #1c1c1f, 0 40px 90px rgba(0, 0, 0, 0.8), 0 0 140px rgba(255, 197, 41, 0.16); }
.phone-shot figcaption { color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: 0.01em; }
@media (max-width: 640px) {
  .trio { gap: 8px; }
  .phone-shot .phone-frame { padding: 4px; border-radius: 22px; }
  .phone-shot .phone-frame img { border-radius: 18px; }
  .phone-shot figcaption { font-size: 12px; }
}

/* The opening's title typed as on a typewriter (site.js): the whole title keeps its place, invisible, while the typed
   part is laid over it, so nothing below moves. A yellow caret blinks at the end. */
.typed { position: relative; }
.typed-live { display: none; }
.typed.is-typing .typed-full { visibility: hidden; }
.typed.is-typing .typed-live { display: block; position: absolute; inset: 0; }
.typed.is-typing .typed-live::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 0.9em;
  margin-left: 0.06em;
  vertical-align: -0.08em;
  background: var(--brand);
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
