/* Purple Player public landing page (/iptv-player). A calm product page: near-black and charcoal surfaces,
   Roboto Flex throughout, brand purple only as an accent, real photos with the app's own screenshots on the
   screens. No JavaScript. Motion is CSS only (hero entrance, the TV's screenshot crossfade, scroll reveals where
   scroll-driven animations exist, hover lifts), uses only transform and opacity, and prefers-reduced-motion
   turns all of it off. */
:root {
  --bg: #0b0b0e;
  --bg-2: #111116;
  --surface: #16161c;
  --surface-2: #1d1d24;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #a8a8b3;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: #b9a2f8;
  --font: 'Roboto Flex', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --label: 'Saira Condensed', 'Roboto Flex', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(124, 58, 237, 0.55); color: #fff; }
strong { font-weight: 650; color: #fff; }
h1, h2, h3, h4 { font-family: var(--font); color: #fff; margin: 0; font-weight: 700; letter-spacing: -0.022em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico, .ico-lg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico { width: 18px; height: 18px; }
.ico-lg { width: 26px; height: 26px; color: var(--accent-soft); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; position: relative; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; background: #fff; color: #0b0b0e; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }

.label { margin: 0 0 14px; font: 600 15px/1 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-soft); }

/* ---------- top bar (gains its background as the page scrolls, where supported) ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 14, 0.82); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .top { background: rgba(11, 11, 14, 0.68); backdrop-filter: saturate(1.6) blur(18px); } }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.top-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.top-brand img { width: 26px; height: 26px; border-radius: 6px; }
.top-nav { display: none; gap: 4px; margin-left: auto; }
.top-nav a { padding: 8px 12px; color: #d4d4dc; text-decoration: none; font-size: 15px; border-radius: 8px; transition: color 0.2s var(--ease); }
.top-nav a:hover { color: #fff; }
.top .btn { margin-left: auto; }
@media (min-width: 880px) { .top-nav { display: flex; } .top .btn { margin-left: 8px; } }
@media (max-width: 400px) { .top-brand span { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  background: var(--accent); color: #fff; text-decoration: none; border-radius: 999px; white-space: nowrap;
  font: 600 16px/1 var(--font); letter-spacing: -0.005em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn:hover { color: #fff; background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(124, 58, 237, 0.65), 0 2px 4px rgba(0, 0, 0, 0.3); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 24px -10px rgba(0, 0, 0, 0.8); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- hero: headline, the living-room photo with the app on the TV, then the pitch ---------- */
.hero { position: relative; padding: 40px 0 72px; overflow: hidden; background: radial-gradient(60% 60% at 75% 30%, rgba(124, 58, 237, 0.1), transparent 70%); }
.hero-grid { display: grid; gap: 28px; }
.hero-logo { width: 150px; margin: 0 0 20px; }
.hero h1 { max-width: 13em; }
.lead { font-size: clamp(17px, 1.45vw, 20px); color: #c9c9d2; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note-sm { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .cta .btn { flex: 1 1 100%; } .hero-logo { width: 120px; margin-bottom: 14px; } }

/* the photo is cropped tight on the TV; the app screenshots sit on the screen (positions measured on the photo,
   in % of it, so they stay aligned at every size) */
.scene { position: relative; margin: 0; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; background: #15110e; box-shadow: var(--shadow); }
.scene-in { position: absolute; width: 230%; left: -64.6%; top: -37.7%; aspect-ratio: 3 / 2; }
.scene-photo { width: 100%; height: 100%; }
.screen { position: absolute; left: 36.125%; top: 26.375%; width: 27.375%; height: 23.5%; overflow: hidden; background: #000; clip-path: polygon(0 0.6%, 100% 0, 99.2% 100%, 1.8% 100%); }
.screen .sc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.screen .sc-1 { opacity: 1; }
.glass { position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 34%, transparent 35%), linear-gradient(0deg, rgba(0, 0, 0, 0.12), transparent 40%); }
@media (min-width: 720px) {
  .scene { aspect-ratio: 16 / 10; }
  .scene-in { width: 180%; left: -39.7%; top: -33%; }
}
@media (min-width: 1080px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 0; align-items: start; }
  .hero-head { grid-column: 1; grid-row: 1; align-self: end; }
  .hero-body { grid-column: 1; grid-row: 2; padding-top: 22px; }
  .scene { grid-column: 2; grid-row: 1 / 3; align-self: center; aspect-ratio: 5 / 4; }
  .scene-in { width: 250%; left: -74.5%; top: -41%; }
}

/* ---------- works-with row ---------- */
.works { position: relative; display: flex; align-items: center; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.works-label { flex: none; align-self: stretch; display: flex; align-items: center; padding: 0 20px 0 16px; position: relative; z-index: 1; background: var(--bg-2); font: 600 14px/1 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 720px) { .works-label { padding-left: 32px; } }
.marquee { display: flex; flex: 1; padding-right: 16px; }
.marquee-track { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.marquee-track[aria-hidden] { display: none; }
.marquee-track li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 550; font-size: 16px; white-space: nowrap; color: #e8e8ee; }
.marquee-track li .ico { color: var(--accent-soft); }

/* ---------- sections ---------- */
.sec { padding: 96px 0; overflow-x: clip; }
@media (min-width: 1000px) { .sec { padding: 136px 0; } }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.intro { color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); margin-top: 18px; max-width: 34em; }

/* clean device frame for screenshots: dark bezel, thin edge highlight, real shadow */
.device { margin: 0; }
.device-screen { position: relative; overflow: hidden; border-radius: 14px; padding: 10px; background: linear-gradient(180deg, #232329, #121216); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.device-screen img { border-radius: 5px; width: 100%; }
.device-screen::after { content: ''; position: absolute; inset: 10px; border-radius: 5px; background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 30%); pointer-events: none; }
.device figcaption { padding: 12px 4px 0; font-size: 14px; color: var(--muted); }

.split { display: grid; gap: 48px; align-items: center; margin-bottom: 56px; }
@media (min-width: 980px) { .split { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }

.card { position: relative; background: var(--surface); border-radius: 16px; padding: 24px 22px 26px; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease); }
.card:hover { transform: translateY(-4px); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 40px -24px rgba(0, 0, 0, 0.9); }
.card h3, .card h4 { margin: 16px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15.5px; }
.sources, .icons, .devs { list-style: none; display: grid; gap: 12px; }
.sources { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 16px; }

.notice { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-left: 3px solid var(--accent); }
.notice h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.01em; }
.notice p { color: #d0d0d8; }

/* alternating feature blocks */
.feat { display: grid; gap: 36px; align-items: center; margin-bottom: 104px; }
.feat-text h3 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 14px; letter-spacing: -0.03em; }
.feat-text > p { color: var(--muted); font-size: 18px; max-width: 30em; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: center; color: #dcdce3; }
.ticks .ico { color: var(--accent-soft); stroke-width: 2.2; }
@media (min-width: 980px) {
  .feat { grid-template-columns: 1.3fr 0.7fr; gap: 72px; margin-bottom: 136px; }
  .feat-rev { grid-template-columns: 0.7fr 1.3fr; }
  .feat-rev .device { order: 2; }
}
.grid-title { text-align: center; font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 28px; }
.icons { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }

/* devices: phone-in-hand photo with the app scrolling on its screen */
.devices { display: grid; gap: 40px; align-items: center; margin-bottom: 96px; }
@media (min-width: 980px) { .devices { grid-template-columns: 1fr 1fr; gap: 56px; } }
.devs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.hand { position: relative; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.hand-photo { width: 100%; height: 100%; }
.hand-screen { position: absolute; left: 36.6%; top: 22.05%; width: 26.85%; height: 57.25%; overflow: hidden; border-radius: 11.5% / 5.4%; background: #0d0a14; }
.hand-screen img { width: 100%; }
.island { position: absolute; left: 37.5%; width: 25%; top: 1.9%; height: 3.2%; border-radius: 999px; background: #000; }
.hand-screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 40%); }

.ps5 { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .ps5 { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.ps5-photo { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.ps5-photo img { width: 100%; }
.ps5-text h3 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 24px; letter-spacing: -0.03em; }
.steps { list-style: none; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: #dcdce3; }
.n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 650; font-size: 17px; color: #fff; }

/* privacy */
.privacy { display: grid; gap: 40px; }
@media (min-width: 980px) { .privacy { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; } }
.checks { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

/* 3 steps */
.three { list-style: none; display: grid; gap: 12px; position: relative; }
@media (min-width: 900px) {
  .three { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .three::before { content: ''; position: absolute; left: 16%; right: 16%; top: 46px; height: 1px; background: var(--line-2); }
}
.three .card { text-align: center; padding: 26px 24px 30px; }
.three .n { margin: 0 auto 4px; width: 44px; height: 44px; background: var(--accent); box-shadow: 0 0 0 6px var(--surface); }
.three h3 { font-size: 20px; }

/* FAQ */
.faq .qa-list { max-width: 840px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-child { border-top: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 2px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; transition: color 0.2s var(--ease); }
.qa summary:hover h3 { color: var(--accent-soft); }
.qa summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform 0.3s var(--ease); }
.qa[open] summary::after { transform: translateY(2px) rotate(225deg); }
.qa p { padding: 0 2px 24px; color: var(--muted); max-width: 44em; }

/* final band over the dark living-room photo */
.final { position: relative; overflow: hidden; isolation: isolate; padding: 140px 0; text-align: center; }
.final-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2; }
.final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 14, 0.55) 30%, rgba(11, 11, 14, 0.7) 70%, var(--bg) 100%), radial-gradient(60% 60% at 50% 50%, rgba(11, 11, 14, 0.75), transparent 80%); }
.final h2 { font-size: clamp(36px, 5vw, 68px); margin-bottom: 18px; letter-spacing: -0.04em; }
.final p { color: #d6d6de; max-width: 32em; margin: 0 auto 32px; font-size: 19px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 44px; background: #08080a; font-size: 14px; color: var(--muted); }
.foot-in { display: grid; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; color: #fff; }
.foot-brand img { width: 24px; height: 24px; border-radius: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: #d4d4dc; text-decoration: none; }
.foot nav a:hover { color: #fff; text-decoration: underline; }

/* =====================================================================
   Motion. Off entirely under prefers-reduced-motion (the TV then shows the home screen, nothing moves).
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* hero entrance: fade + 12px rise, staggered */
  .in-1, .in-2, .in-3, .in-4 { animation: rise 0.6s var(--ease) both; }
  .in-2 { animation-delay: 0.08s; } .in-3 { animation-delay: 0.16s; } .in-4 { animation-delay: 0.24s; }
  .scene { animation: fade 1s var(--ease) 0.2s both; }
  /* the TV cycles home → guide → live TV → subtitles, 4 s each, soft crossfades */
  .screen .sc { animation: screens 16s linear infinite; }
  .screen .sc-2 { animation-delay: 4s; } .screen .sc-3 { animation-delay: 8s; } .screen .sc-4 { animation-delay: 12s; }
  .screen .sc-2, .screen .sc-3, .screen .sc-4 { animation-fill-mode: none; }
  /* scroll reveals, CSS only: browsers without scroll-driven animations (and crawlers' tall viewports, where
     everything is in view) simply show the content */
  @supports (animation-timeline: view()) {
    [data-rv] { animation: rv-up linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @media (min-width: 980px) {
      [data-rv="left"] { animation-name: rv-left; }
      [data-rv="right"] { animation-name: rv-right; }
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes screens { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
@keyframes rv-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rv-left { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes rv-right { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }

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