/* ============================================================================
   BingeBop — public site design system
   Cinematic warm-dark. Tomato accent (#ff6347, the play-roundel) on charcoal.
   Display: Bricolage Grotesque · Body: Rubik (brand-consistent w/ the wordmark).
   No build step — plain CSS, served static.
   ========================================================================== */

:root {
  --tomato:      #ff6347;
  --tomato-soft: #ff8b6b;
  --tomato-deep: #e8431f;
  --ink:         #0c0a09;   /* near-black, warm */
  --ink-2:       #141110;
  --surface:     #1b1715;
  --surface-2:   #241f1c;
  --line:        #342c28;
  --line-soft:   #2a2421;
  --paper:       #f7f2ee;   /* warm off-white text */
  --paper-dim:   #b6aaa1;
  --paper-faint: #a1948a;

  --maxw: 1140px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  --glow: 0 0 60px -12px rgba(255,99,71,.55);

  --serif: "Bricolage Grotesque", "Rubik", system-ui, sans-serif;
  --sans:  "Rubik", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmospheric backdrop — warm screen-glow + faint grid wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(255,99,71,.18), transparent 60%),
    radial-gradient(900px 700px at 4% 8%, rgba(255,139,107,.08), transparent 55%),
    var(--ink);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 46px 46px;
  /* fade baked into the layer instead of a mask-image (masks on fixed layers
     re-rasterize on scroll in Firefox → jank). A static low-opacity grid is
     composited once and stays cheap. */
  opacity: .5;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---- typography ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; margin: 0; }
.eyebrow {
  font-family: var(--sans);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--tomato-soft);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--tomato); display: inline-block; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .85em 1.5em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--tomato-soft), var(--tomato));
  color: #2a0f08; box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 78px -10px rgba(255,99,71,.8); }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--tomato); transform: translateY(-2px); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---- header ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  /* No backdrop-filter: a sticky blur re-rasterizes everything scrolling
     behind it every frame — the main cause of scroll jank in Firefox. A
     near-opaque solid bg over the dark page looks the same and is free. */
  background: rgba(13, 11, 10, .92);
  border-bottom: 1px solid var(--line-soft);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .55em; font-family: "Poppins", var(--sans); font-weight: 800; font-size: 1.32rem; font-style: italic; letter-spacing: -.02em; }
.brand .roundel { flex: none; }
.brand b { color: var(--paper); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a.link { font-size: .94rem; color: var(--paper-dim); font-weight: 500; transition: color .2s; }
.nav a.link:hover { color: var(--paper); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }

/* the play roundel mark (inline svg sizing) */
.roundel { width: 30px; height: 30px; }

/* ---- hero ---- */
.hero { position: relative; padding: clamp(70px, 12vw, 150px) 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.hero h1 .accent { color: var(--tomato); }
.hero p.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--paper-dim); max-width: 33ch; margin: 1.4rem 0 2.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; font-size: .86rem; color: var(--paper-faint); display: flex; align-items: center; gap: .5em; }
.hero-note svg { width: 1em; height: 1em; color: var(--tomato-soft); }

/* channel-wall visual */
.channel-wall {
  position: relative; aspect-ratio: 1/1; border-radius: var(--r-lg);
  padding: 18px; background: linear-gradient(160deg, var(--surface-2), var(--ink-2));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 12px;
  overflow: hidden;
}
.channel-wall::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 320px at 68% 30%, rgba(255,99,71,.34), transparent 65%);
  pointer-events: none;
}
.cell { border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.cell.lit { background: linear-gradient(150deg, rgba(255,99,71,.22), rgba(255,99,71,.04)); border-color: rgba(255,99,71,.4); box-shadow: inset 0 0 30px -10px rgba(255,99,71,.5); }
.cell.play { display: grid; place-items: center; }
.cell.play svg { width: 34%; height: 34%; color: var(--tomato); filter: drop-shadow(0 0 14px rgba(255,99,71,.7)); }
.cell .bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.1); }
.cell .bar::before { content: ""; position: absolute; inset: 0; width: var(--p, 40%); border-radius: 3px; background: var(--tomato); }

/* ---- generic section ---- */
section.band { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 60ch; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-top: .5rem; }
.section-head p { color: var(--paper-dim); font-size: 1.08rem; margin: 1rem 0 0; }

/* ---- free vs pro ---- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tier { border-radius: var(--r-lg); padding: 38px 34px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--ink-2)); position: relative; }
.tier.pro { border-color: rgba(255,99,71,.45); background: linear-gradient(180deg, rgba(255,99,71,.07), var(--ink-2)); box-shadow: var(--shadow); }
.tier .tier-name { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; gap: .5em; }
.tier .pill { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35em .7em; border-radius: 999px; }
.tier.free .pill { background: rgba(255,255,255,.07); color: var(--paper-dim); }
.tier.pro .pill { background: var(--tomato); color: #2a0f08; }
.tier .price-frame { margin: .6rem 0 1.4rem; color: var(--paper-dim); font-size: .98rem; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.tier li { display: flex; gap: .7em; align-items: flex-start; font-size: .98rem; color: var(--paper); }
.tier li svg { flex: none; width: 1.2em; height: 1.2em; margin-top: .15em; color: var(--tomato); }
.tier.free li svg { color: var(--paper-faint); }
.tier .tier-foot { margin-top: 1.8rem; }

/* ---- features grid ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 30px 26px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: rgba(255,255,255,.014); transition: transform .2s, border-color .2s, background .2s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(255,99,71,.4); background: rgba(255,99,71,.04); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,99,71,.12); color: var(--tomato); margin-bottom: 18px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.18rem; font-family: var(--serif); }
.feature p { color: var(--paper-dim); font-size: .95rem; margin: .6rem 0 0; }

/* ---- fairness (the emotional hook) ---- */
.fairness { position: relative; overflow: hidden; }
.fairness .panel {
  border-radius: var(--r-lg); padding: clamp(40px, 6vw, 76px);
  background: linear-gradient(135deg, rgba(255,99,71,.14), rgba(232,67,31,.05));
  border: 1px solid rgba(255,99,71,.35); text-align: center;
  box-shadow: var(--shadow);
}
.fairness h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 18ch; margin: .4rem auto 0; }
.fairness h2 .accent { color: var(--tomato); }
.fairness p { color: var(--paper-dim); font-size: 1.12rem; max-width: 52ch; margin: 1.4rem auto 0; }
.fairness .promises { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; margin-top: 2.4rem; }
.fairness .promises span { display: inline-flex; align-items: center; gap: .55em; font-weight: 500; font-size: .98rem; }
.fairness .promises svg { width: 1.15em; height: 1.15em; color: var(--tomato); }

/* ---- bring-your-own (media-player framing) ---- */
.byo { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.byo .logos { display: flex; flex-wrap: wrap; gap: .7rem; }
.byo .chip { padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: .9rem; color: var(--paper-dim); font-weight: 500; }

/* ---- final CTA ---- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 20ch; margin: 0 auto; }
.cta-final p { color: var(--paper-dim); margin: 1.2rem auto 2rem; max-width: 46ch; font-size: 1.08rem; }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--line-soft); padding: 64px 0 40px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.3)); }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
footer.site .brand { margin-bottom: 1rem; }
footer.site .tag { color: var(--paper-faint); font-size: .92rem; max-width: 30ch; font-style: italic; }
footer.site h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-faint); margin: 0 0 1rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
footer.site a.flink { color: var(--paper-dim); font-size: .94rem; transition: color .2s; }
footer.site a.flink:hover { color: var(--tomato-soft); }
footer.site .legal-row { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--paper-faint); font-size: .84rem; }
footer.site .disclaimer { max-width: 70ch; color: var(--paper-faint); font-size: .82rem; margin-top: 14px; line-height: 1.55; }

/* ---- reveal on load ---- */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; } .d5 { animation-delay: .45s; } .d6 { animation-delay: .55s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ============================================================================
   LEGAL / DOC PAGES
   ========================================================================== */
.doc { max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vw, 90px) 0 60px; }
.doc-draft {
  border: 1px dashed var(--tomato); background: rgba(255,99,71,.07);
  border-radius: var(--r-md); padding: 16px 22px; margin-bottom: 40px;
  font-size: .9rem; color: var(--tomato-soft); display: flex; gap: .8em; align-items: flex-start;
}
.doc-draft svg { flex: none; width: 1.3em; height: 1.3em; margin-top: .1em; }
.doc-draft b { color: var(--paper); }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc .meta { color: var(--paper-faint); font-size: .9rem; margin: 1rem 0 2.6rem; }
.doc h2 { font-size: 1.4rem; margin: 2.6rem 0 .8rem; color: var(--paper); }
.doc h3 { font-size: 1.1rem; margin: 1.8rem 0 .5rem; color: var(--paper); font-family: var(--sans); font-weight: 700; }
.doc p, .doc li { color: var(--paper-dim); font-size: 1rem; }
.doc ul, .doc ol { padding-left: 1.3em; display: grid; gap: .5rem; }
.doc a { color: var(--tomato-soft); text-decoration: underline; text-underline-offset: 2px; }
.doc .back { display: inline-flex; align-items: center; gap: .5em; color: var(--paper-dim); font-size: .92rem; margin-bottom: 2rem; }
.doc .back:hover { color: var(--tomato); }
.doc-toc { border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 24px; margin: 0 0 40px; background: rgba(255,255,255,.014); }
.doc-toc h4 { margin: 0 0 .8rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-faint); }
.doc-toc ul { list-style: none; padding: 0; gap: .4rem; }
.doc-toc a { color: var(--paper-dim); text-decoration: none; font-size: .94rem; }
.doc-toc a:hover { color: var(--tomato-soft); }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .channel-wall { max-width: 440px; }
  .tiers, .features, .byo, footer.site .cols { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .nav .link { display: none; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  /* keep both header CTAs visible (on legal pages "Sign in" is the only one);
     just shrink them so they fit alongside the wordmark on a phone. */
  header.site .btn { padding: .55em .95em; font-size: .86rem; }
  .brand { font-size: 1.15rem; }
}

/* ============================================================================
   A11Y + added sections
   ========================================================================== */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tomato); color: #2a0f08; font-weight: 600;
  padding: .6em 1em; border-radius: 8px; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--tomato-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

/* anchor jumps clear the sticky header */
:target, section[id], .doc h2[id] { scroll-margin-top: 92px; }

/* how-it-works steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { position: relative; padding: 30px 26px; border-radius: var(--r-md); border: 1px solid var(--line-soft); background: rgba(255,255,255,.014); }
.steps .step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tomato); color: #2a0f08; font-family: var(--serif); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.steps h3 { font-family: var(--serif); font-size: 1.16rem; }
.steps p { color: var(--paper-dim); font-size: .95rem; margin: .5rem 0 0; }

/* FAQ (native <details>, no JS) */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,.014); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--serif); font-weight: 700; font-size: 1.06rem; display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tomato); font-size: 1.5rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--paper-dim); font-size: .98rem; margin: 0; padding: 0 24px 22px; max-width: 70ch; }
.faq a { color: var(--tomato-soft); text-decoration: underline; text-underline-offset: 2px; }

/* legal TOC title (replaces the old <h4> to keep heading order clean) */
.toc-title { margin: 0 0 .8rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-faint); font-weight: 600; }

@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } }
