/* film-first.css: the home page, film first for everyone (Harry, 29 Nov 2026; replaces the 26 Nov split test and, on this
   page, the 24 Nov sign-up gate 15.451). The full film sits in the trailer's old place on every screen size; the box
   beside it (desktop) or under it (phone, tablet) has Play and "Watch later"; the name + email ask is a dialog
   (js/film-first.js). Loaded after css/home.css, so the rules here win. W below = the player's width on a phone
   (min(100cqw - 32px, 432px)), as in css/home.css. */

/* ---------- The film ---------- */
.hero .film-slot { background: #000; z-index: 2; }
.hero .film-slot iframe { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; border: 0; }

/* ---------- The box: heading, length, Play, Watch later ---------- */
.fw-box { padding: 16px; }
.fw-box .hs-h { font-size: 22px; }
.fw-box .hs-len { margin: 4px 0 0; }
.fw-actions { display: flex; gap: 10px; margin-top: 14px; }
.fw-play, .fw-later { flex: 1 1 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px;
  padding: 8px 10px; border-radius: 8px; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fw-play { flex-direction: row; gap: 10px; background: var(--gold); color: #fff; font: 700 17px/1.1 var(--mono); letter-spacing: .02em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.fw-play:hover { background-color: rgba(223, 171, 56, 0.85); }
.fw-tri { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.fw-later { border: 1.5px solid rgba(255, 255, 255, .75); color: #fff; font: 700 15px/1.15 var(--mono); }
.fw-later small { display: block; margin-top: 3px; font: 400 12px/1.2 var(--mono); color: rgba(255, 255, 255, .8); }
.fw-later:hover { background: rgba(255, 255, 255, .08); }

/* Desktop (1200+): film on the left (css/home.css), the box on its right, level with the film's middle. */
@media (min-width: 1200px) {
  .hero-signup.fw-box { top: 420px; width: 340px; }
  .fw-actions { flex-direction: column; }
  .fw-play, .fw-later { flex: none; }
}

/* Tablet (810-1199): the film where the YouTube trailer poster was, moved left; the box on its right, as on desktop. */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .hero .film-slot { left: calc(50% - 375px); translate: none; top: 351px; width: 480px; height: 270px; }
  .hero-signup.fw-box { display: block !important; left: calc(50% + 125px); translate: none; top: 351px; width: 250px; }
  .fw-actions { flex-direction: column; }
  .fw-play, .fw-later { flex: none; }
  .hero .fact-1 { top: 660px; }
  .finale .finale-cta { top: 700px; }
  .finale .finale-cta-sub { top: 770px; }
}

/* Phone: credits, title, the film (top 252px, as the trailer was), then Play and Watch later right under it, then the
   hook line. The buttons are in the first screen: on a 390px-wide phone the film ends at about 453px (517px on screen,
   under the 64px menu) and the buttons at about 580px on screen, above the slim cookie bar even in the Facebook and
   Instagram browsers (about 650px tall) and on an iPhone SE (667px). */
@media (max-width: 809.98px) {
  .hero .film-slot { top: 252px; }
  .hero-signup.fw-box { top: calc(258px + min(calc(100cqw - 32px), 432px) * 0.5625); width: min(calc(100cqw - 32px), 432px);
    display: flex; flex-direction: column; padding: 8px; border-radius: 10px; }
  .fw-box .fw-actions { order: -1; margin-top: 0; gap: 8px; }
  .fw-play, .fw-later { min-height: 48px; padding: 6px 8px; }
  .fw-play { font-size: 15px; white-space: nowrap; gap: 8px; }
  .fw-tri { border-width: 7px 0 7px 12px; }
  .fw-later { font-size: 14px; }
  .fw-later small { font-size: 11px; margin-top: 2px; }
  .fw-box .hs-h { margin-top: 8px; font-size: 16px; }
  .fw-box .hs-len { margin-top: 2px; font-size: 13px; }
  /* The hook line now sits on the photo's white fade, so it is dark text (it was white over the dark rock). */
  .hero .fact-1 { top: calc(390px + min(calc(100cqw - 32px), 432px) * 0.5625); color: #111; text-shadow: none; }
  .hero .fact-1 .y { color: #C8901A; }
  .hero { height: 930px; }
  .hero .bg { height: 800px; }
  .hero .fade-b { height: 810px; }
  .hero .signal-phone { top: 790px; }
}

/* ---------- The ask (one dialog: watch later, minute 15, pause or leave) ---------- */
.fw-ask:not([hidden]) { display: flex; }
.fw-ask { position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .62); }
.fw-ask-card { position: relative; width: min(100%, 380px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 22px 16px 12px; border-radius: 12px;
  background: rgba(12, 12, 12, .97); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); color: #fff; }
.fw-ask-h { margin: 0 24px; font: 700 22px/1.15 var(--sans); color: #fff; text-align: center; }
.fw-ask-h b { color: var(--gold); }
.fw-ask-sub { margin: 8px 0 0; font: 400 15px/1.4 var(--sans); color: rgba(255, 255, 255, .85); text-align: center; }
.fw-ask .signup-form { position: static; padding: 14px 0 0; gap: 14px; }
.fw-x { position: absolute; right: 6px; top: 4px; width: 40px; height: 40px; border: 0; background: none; color: rgba(255, 255, 255, .8);
  font: 400 28px/1 var(--sans); cursor: pointer; }
.fw-notnow { display: block; margin: 8px auto 0; padding: 10px 16px; border: 0; background: none; color: rgba(255, 255, 255, .85);
  font: 400 14px/1.2 var(--mono); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fw-sent[hidden], .fw-ask-body[hidden], .fw-notnow[hidden], .fw-cal [hidden] { display: none; }
.fw-cal { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
.fw-cal-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; height: 48px; padding: 0 20px; border-radius: 8px;
  background: var(--gold); color: #fff; font: 700 16px/1 var(--mono); text-decoration: none; }
.fw-cal-alt { color: #fff; font: 400 14px/1.2 var(--mono); text-underline-offset: 3px; }
html.fw-ask-on, html.fw-ask-on body { overflow: hidden; }
