/* Castwave — a broadcast: channel bug, programme guide, test card, lower third. */
:root {
  --ground: #0B0A10;
  --ground-2: #121019;
  --panel: #17141F;
  --line: rgb(255 255 255 / .09);
  --ink: #F4F4F8;
  --ink-2: #B8B8C6;
  --ink-3: #7E7C8C;
  --red: #FF375F;
  --red-2: #E5234B;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- Recording dot ---------- */
.rec { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgb(255 55 95 / .6); animation: rec 1.8s ease-out infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgb(255 55 95 / .55); } 70%, 100% { box-shadow: 0 0 0 .7em rgb(255 55 95 / 0); } }

/* ---------- Channel bug (header) ---------- */
.bug { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter); background: linear-gradient(rgb(11 10 16 / .92), rgb(11 10 16 / .72)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bug-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -.02em; }
.bug-logo img { width: 36px; height: 36px; border-radius: 9px; }
.bug-logo b { color: var(--red); font-weight: 800; }
.bug-nav { display: flex; gap: 22px; margin-left: auto; font-size: .9375rem; }
.bug-nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.bug-nav a:hover { color: var(--ink); }
.bug-clock { display: flex; align-items: center; gap: 8px; font: 600 .875rem/1 var(--mono); color: var(--ink-2); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Hero ---------- */
.hero {
  min-height: min(100svh, 920px); padding: 120px var(--gutter) 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  width: min(100%, 1320px); margin-inline: auto;
  position: relative;
}
.hero::before { content: ""; position: absolute; inset: 0 -20vw; z-index: -1; background: radial-gradient(50% 55% at 70% 50%, rgb(255 55 95 / .22), transparent 70%), radial-gradient(40% 40% at 10% 0%, rgb(255 55 95 / .08), transparent 70%); }
.on-air { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgb(255 55 95 / .12); border: 1px solid rgb(255 55 95 / .35); color: #FF8DA3; font: 700 .8125rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin-top: 22px; font-size: clamp(2.75rem, 6.2vw, 5rem); line-height: 1; font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
.lede { margin-top: 22px; max-width: 30em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.5; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.hero-meta li { padding: 6px 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.hero-cta { margin-top: 30px; }
.soon { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: linear-gradient(135deg, #FF6A86, var(--red-2)); color: #fff; font-weight: 700; box-shadow: 0 14px 40px -12px rgb(255 55 95 / .7); }

/* The TV: bezel, screen, stand. The screenshot is the app on a real-looking set. */
.tv { position: relative; perspective: 1600px; }
.tv-screen { position: relative; padding: 10px; border-radius: 22px; background: linear-gradient(160deg, #2A2730, #0E0D12); box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 50px 120px -40px rgb(255 55 95 / .45), 0 40px 80px -40px #000; transform: rotateY(-7deg) rotateX(2deg); transform-origin: 30% 50%; transition: transform .8s var(--ease); }
.tv:hover .tv-screen { transform: rotateY(-2deg) rotateX(0); }
.tv-screen img { border-radius: 13px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tv-glare { position: absolute; inset: 10px; border-radius: 13px; pointer-events: none; background: linear-gradient(115deg, rgb(255 255 255 / .09), transparent 35%), repeating-linear-gradient(0deg, rgb(0 0 0 / .05) 0 1px, transparent 1px 3px); }
.tv-stand { display: block; width: 26%; height: 12px; margin: 18px auto 0; border-radius: 6px; background: linear-gradient(#2A2730, #121017); box-shadow: 0 18px 30px -10px #000; transform: translateX(-4%); }

/* ---------- Section heads ---------- */
.sec-head { max-width: 40em; }
.kicker { font: 700 .8125rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sec-head h2 { margin-top: 14px; font-size: clamp(2.125rem, 4.4vw, 3.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.sec-lede { margin-top: 16px; font-size: 1.1875rem; color: var(--ink-2); }
.fineprint { margin-top: 18px; font-size: .875rem; color: var(--ink-3); }

/* ---------- Lineup (EPG) ---------- */
.lineup { padding: var(--section) 0; background: var(--ground-2); border-block: 1px solid var(--line); }
.epg { margin-top: 48px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--ground); }
.epg-row { display: grid; grid-template-columns: 96px 110px minmax(0, 1fr); align-items: stretch; border-top: 1px solid var(--line); transition: background .3s; }
.epg-row:first-child { border-top: 0; }
.epg-row:hover { background: rgb(255 255 255 / .025); }
.epg-row > * { padding: 26px 22px; }
.ch { font: 700 .875rem/1.2 var(--mono); color: var(--ink-3); border-right: 1px solid var(--line); display: flex; align-items: flex-start; }
.slot { font: 600 .875rem/1.2 var(--mono); color: var(--ink-2); border-right: 1px solid var(--line); }
.show h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.show p { margin-top: 6px; max-width: 46em; color: var(--ink-2); }
.is-now { background: linear-gradient(90deg, rgb(255 55 95 / .14), rgb(255 55 95 / .03) 60%, transparent); }
.is-now .ch { color: var(--red); }
.now-tag { display: inline-block; padding: 4px 9px; border-radius: 6px; background: var(--red); color: #fff; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.progress { display: block; height: 4px; margin-top: 16px; max-width: 420px; border-radius: 2px; background: rgb(255 255 255 / .1); overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--p, 40%); background: var(--red); border-radius: inherit; transition: width 1s linear; }

/* ---------- Screens (reel) ---------- */
.screens { padding: var(--section) 0; }
.reel { margin-top: 44px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 620px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.reel figure { scroll-snap-align: start; }
.reel img { border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px #000; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.reel figcaption { margin-top: 12px; font-weight: 600; color: var(--ink-2); }

/* ---------- Formats (test card) ---------- */
.formats { position: relative; padding: 0 0 var(--section); background: var(--ground-2); border-block: 1px solid var(--line); overflow: hidden; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); height: clamp(90px, 14vw, 160px); }
.bars span { background: var(--c); opacity: .85; }
.formats-inner { margin-top: clamp(48px, 7vw, 80px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chips li { padding: 10px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font: 700 .9375rem/1 var(--mono); letter-spacing: .02em; }
.chips li:nth-child(3n+1) { border-color: rgb(255 55 95 / .35); }

/* ---------- Notice (lower third + ticker) ---------- */
.notice { padding: var(--section) 0; }
.lower-third { display: grid; grid-template-columns: auto minmax(0, 1fr); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px #000; }
.lt-tag { writing-mode: vertical-rl; transform: rotate(180deg); padding: 22px 14px; background: var(--red); color: #fff; font: 800 .8125rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.lt-body { padding: clamp(24px, 4vw, 44px); background: linear-gradient(90deg, var(--panel), var(--ground-2)); }
.lt-body h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; }
.lt-body p { margin-top: 12px; max-width: 46em; color: var(--ink-2); font-size: 1.125rem; }
.ticker { margin-top: 14px; border-radius: 10px; background: #fff; color: #0B0A10; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker 40s linear infinite; }
.ticker-track span { padding: 12px 0; font-weight: 700; }
.ticker-track span::after { content: "•"; color: var(--red); margin: 0 26px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Privacy ---------- */
.privacy { padding: var(--section) 0; background: var(--ground-2); border-block: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.facts { display: grid; gap: 14px; }
.facts li { padding: 22px 24px; border-radius: 16px; background: var(--ground); border: 1px solid var(--line); color: var(--ink-2); }
.facts b { color: var(--ink); }

/* ---------- Pricing ---------- */
.pricing { padding: var(--section) 0; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; max-width: 860px; }
.plan { padding: 32px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.plan h3 { font-size: 1.125rem; font-weight: 700; color: var(--ink-2); }
.plan .price { margin-top: 8px; font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.plan .price small { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.plan p:last-child { margin-top: 14px; color: var(--ink-2); }
.plan-pro { background: radial-gradient(120% 120% at 100% 0%, rgb(255 55 95 / .3), transparent 60%), var(--panel); border-color: rgb(255 55 95 / .4); }
.plan-pro h3 { color: #FF8DA3; }

/* ---------- FAQ ---------- */
.faq { padding: var(--section) 0; background: var(--ground-2); border-block: 1px solid var(--line); }
.qa { margin-top: 40px; max-width: 820px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-size: 1.1875rem; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.75rem/1 var(--font); color: var(--red); transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa details p { padding: 0 0 22px; max-width: 42em; color: var(--ink-2); }

/* ---------- Sign-off ---------- */
.signoff { padding: var(--section) 0; text-align: center; background: radial-gradient(50% 60% at 50% 40%, rgb(255 55 95 / .18), transparent 70%); }
.signoff-icon { width: min(380px, 80%); margin: 0 auto; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 40px 90px -30px rgb(255 55 95 / .55); }
.signoff h2 { margin-top: 40px; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.045em; }
.signoff p { margin-top: 12px; color: var(--ink-2); font-size: 1.1875rem; }

/* ---------- Footer ---------- */
.foot { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9375rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; min-height: 0; }
  .tv-screen { transform: none; }
  .privacy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bug-nav { display: none; }
  .bug-clock { margin-left: auto; }
  .epg-row { grid-template-columns: 1fr; }
  .epg-row > * { padding: 0 20px; }
  .ch, .slot { border-right: 0; padding-top: 20px; display: inline-flex; }
  .epg-row { grid-template-columns: auto 1fr; }
  .show { grid-column: 1 / -1; padding: 10px 20px 22px; }
  .ch { padding-right: 0; }
  .plans { grid-template-columns: 1fr; }
  .reel { grid-auto-columns: 86%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec, .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tv-screen { transition: none; }
}
