/* Coming-soon holding page — tokens and choreography from
   docs/design_handoff/coming_soon/README.md ("Marquee" brand system).
   Every colour here is a handoff token; the names mirror src/theme/tokens.ts. */

:root {
  --bg: #17100a;
  --floor: #0f0a06;
  --panel: #1f150c;
  --panel-raised: #2a1e0f;
  --bulb: #ffd98a;
  --cta-hover: #f2c96f;
  --cta-active: #e6bd60;
  --gold-muted: #d9b877;
  --cream: #f5e9cf;
  --silhouette-back: #0b0703;
  --silhouette-front: #070401;
  --letterbox: #000;
  --border-panel: rgba(230, 180, 92, .35);
  --border-chip: rgba(217, 184, 119, .4);
  --placeholder: rgba(217, 184, 119, .55);
  --bulb-glow: 0 0 9px rgba(255, 205, 100, .9);
  --marquee-glow: 0 0 70px rgba(255, 200, 90, .2);

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-ui: 'Archivo', system-ui, sans-serif;
  --font-quote: 'DM Serif Display', Georgia, serif;

  --gutter: 24px;
}

* { box-sizing: border-box; }

html { background: var(--floor); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--floor);
  color: var(--cream);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--floor);
}

/* ---- Replay ---------------------------------------------------------- */

.replay {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  background: rgba(15, 10, 6, .6);
  border: 1px solid var(--border-chip);
  border-radius: 999px;
  padding: 7px 16px;
  min-height: 44px; /* NFR-6 hit target; the pill is drawn smaller inside */
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--gold-muted);
  cursor: pointer;
}
.replay:hover { background: var(--panel); color: var(--cream); }
.replay:focus-visible { outline: 2px solid var(--bulb); outline-offset: 2px; }

/* ---- Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse 120% 70% at 50% 40%, #2a1d0b 0%, var(--bg) 55%, var(--floor) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 44px var(--gutter) 20px;
  gap: 26px;
}

.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 42%, rgba(255, 200, 110, .14), transparent 70%);
  animation: spotIn 1.6s ease 2.2s both, screenFlicker 5s ease-in-out 4s infinite;
}

.eyebrow {
  position: relative;
  margin: 0;
  font-weight: 400;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  color: var(--bulb);
  letter-spacing: .4em;
  padding-left: .4em;
  text-align: center;
  text-shadow: 0 0 28px rgba(255, 215, 130, .45);
  animation: cineEyebrow 1.6s ease .9s both;
}

/* ---- Marquee --------------------------------------------------------- */

.marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border-panel);
  border-radius: 16px;
  padding: 24px 28px;
  width: 100%;
  max-width: 520px;
  animation: frameIn 1.4s ease 2.2s both;
}

.bulbs { display: flex; justify-content: space-between; }
.bulbs-side { flex-direction: column; padding: 4px 0; }
.bulbs span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bulb);
  box-shadow: var(--bulb-glow);
  animation: bulbChase 1.4s linear var(--d) infinite;
}

.marquee-mid { display: flex; align-items: stretch; gap: 20px; }

.marquee-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
}

.marquee-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--gold-muted);
  letter-spacing: .34em;
  padding-left: .34em;
  animation: cineLine 1.2s ease 3.2s both;
}

.marquee-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 11vw, 84px);
  line-height: .95;
  color: var(--cream);
  letter-spacing: .06em;
  text-align: center;
  animation: logoReveal 1.3s cubic-bezier(.2, .85, .3, 1.15) 3.9s both, glowPulse 2.4s ease-in-out 5.3s infinite;
}

/* ---- Tagline + teaser ----------------------------------------------- */

.tagline {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--gold-muted);
  letter-spacing: .22em;
  padding-left: .22em;
  text-align: center;
  animation: taglineReveal 1.2s ease 5.2s both;
}
.tagline span { color: var(--cream); }

.teaser {
  position: relative;
  margin: 0;
  max-width: 560px;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.25;
  color: var(--cream);
  text-align: center;
  text-wrap: pretty;
  animation: titleSlam 1.1s cubic-bezier(.2, .8, .3, 1) 6.2s both;
}
.teaser .q { color: var(--bulb); }

/* ---- Audience zone --------------------------------------------------- */

.audience-zone {
  position: relative;
  width: calc(100% + 2 * var(--gutter));
  margin: -14px calc(-1 * var(--gutter)) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 16px var(--gutter) 90px;
  min-height: 440px;
  justify-content: flex-start;
}

.audience {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 38%);
  animation: audienceIn 1.8s ease 6s both;
}
.audience-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 10, 6, .35) 50%, rgba(15, 10, 6, .8) 100%);
}
/* Each silhouette: a head over rounded shoulders, bottom-anchored, rim-lit
   from the screen above. Geometry comes from signup.js (the handoff's rows). */
.seat {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.seat-head { border-radius: 50%; }
.seat-shoulders { width: 100%; }
.seat-back .seat-head { background: var(--silhouette-back); box-shadow: inset 0 3px 5px -2px rgba(255, 217, 138, .3); }
.seat-back .seat-shoulders { background: var(--silhouette-back); box-shadow: inset 0 3px 5px -2px rgba(255, 217, 138, .22); margin-top: -6px; }
.seat-front .seat-head { background: var(--silhouette-front); box-shadow: inset 0 4px 6px -3px rgba(255, 217, 138, .38); }
.seat-front .seat-shoulders { background: var(--silhouette-front); box-shadow: inset 0 4px 6px -3px rgba(255, 217, 138, .26); margin-top: -8px; }

.one-liner {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  color: var(--cream);
  letter-spacing: .06em;
  text-align: center;
  text-wrap: pretty;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
  animation: titleSlam 1.1s cubic-bezier(.2, .8, .3, 1) 6.2s both;
}

/* ---- Sign-up --------------------------------------------------------- */

.signup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeUp 1s ease 7s both;
}
.signup-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
/* `hidden` alone loses to the display:flex above, so say it explicitly —
   otherwise the form stays on screen beneath the success panel. */
.signup-form[hidden] { display: none; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; }

.signup-input {
  flex: 1 1 220px;
  min-width: 0;
  height: 50px;
  background: var(--panel);
  border: 1px solid var(--border-panel);
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--cream);
  outline: none;
}
.signup-input::placeholder { color: var(--placeholder); }
.signup-input:focus { border-color: var(--bulb); box-shadow: 0 0 0 3px rgba(255, 217, 138, .18); }
.signup-input[aria-invalid="true"] { border-color: var(--bulb); }

.signup-button {
  flex: 0 0 auto;
  height: 50px;
  background: var(--bulb);
  border: none;
  border-radius: 12px;
  padding: 0 24px 0 calc(24px + .12em);
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: .12em;
  color: var(--bg);
  cursor: pointer;
}
.signup-button:hover { background: var(--cta-hover); }
.signup-button:active { background: var(--cta-active); }
.signup-button:disabled { cursor: progress; opacity: .85; }
.signup-button:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup-helper {
  margin: 0;
  font-size: 12px;
  color: var(--gold-muted);
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}

.signup-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--panel-raised);
  border: 1.5px solid var(--bulb);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 0 22px rgba(255, 205, 100, .25);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .1em;
  color: var(--cream);
  text-align: center;
}
.signup-done[hidden] { display: none; }
.signup-done:focus { outline: none; }
.signup-done:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.signup-done .check { color: var(--bulb); font-family: var(--font-ui); font-size: 16px; }

/* ---- Platforms + footer ---------------------------------------------- */

.platforms {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  animation: fadeUp 1s ease 7.4s both;
}
.platforms li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-chip);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--gold-muted);
}
.platforms .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bulb);
  box-shadow: 0 0 8px rgba(255, 205, 100, .8);
}

.footer {
  position: relative;
  width: 100%;
  padding-top: 8px;
  font-size: 11px;
  color: var(--placeholder);
  text-align: center;
  letter-spacing: .04em;
}

/* ---- Letterbox ------------------------------------------------------- */

.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--letterbox);
  z-index: 10;
  pointer-events: none;
  animation: letterbox 1.8s cubic-bezier(.7, .05, .3, 1) .2s both;
}
.letterbox-top { top: 0; }
.letterbox-bottom { bottom: 0; }

/* ---- Choreography (handoff timing table) ----------------------------- */

@keyframes bulbChase { 0%, 70%, 100% { opacity: .22 } 35% { opacity: 1 } }
@keyframes letterbox { from { height: 50% } to { height: 0 } }
@keyframes cineEyebrow {
  0% { opacity: 0; letter-spacing: .9em; filter: blur(8px) }
  60% { opacity: 1 }
  100% { opacity: 1; letter-spacing: .4em; filter: blur(0) }
}
@keyframes cineLine {
  0% { opacity: 0; letter-spacing: .7em; filter: blur(6px); transform: translateY(6px) }
  100% { opacity: 1; letter-spacing: .34em; filter: blur(0); transform: none }
}
@keyframes frameIn {
  0% { opacity: 0; transform: scale(.96); box-shadow: 0 0 0 rgba(255, 200, 90, 0) }
  100% { opacity: 1; transform: none; box-shadow: var(--marquee-glow) }
}
@keyframes logoReveal {
  0% { opacity: 0; transform: scale(.5); filter: blur(14px) }
  55% { opacity: 1; transform: scale(1.1); filter: blur(0); text-shadow: 0 0 50px rgba(255, 215, 130, 1), 0 0 90px rgba(255, 180, 80, .6) }
  100% { opacity: 1; transform: scale(1); text-shadow: 0 0 18px rgba(255, 215, 130, .4) }
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 16px rgba(255, 215, 130, .3) }
  50% { text-shadow: 0 0 32px rgba(255, 215, 130, .7) }
}
@keyframes taglineReveal {
  0% { opacity: 0; letter-spacing: .05em; transform: translateY(8px) }
  100% { opacity: 1; letter-spacing: .22em; transform: none }
}
@keyframes titleSlam {
  0% { opacity: 0; transform: scale(1.35); filter: blur(12px) }
  60% { opacity: 1; filter: blur(0) }
  100% { opacity: 1; transform: scale(1) }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@keyframes audienceIn { from { opacity: 0; transform: translateY(40px) } to { opacity: 1; transform: none } }
@keyframes spotIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes screenFlicker { 0%, 100% { opacity: .55 } 50% { opacity: .75 } }

/* Reduced motion: jump to the final state. Bulbs sit at full opacity, the
   marquee keeps its settled glow, the bars are gone. */
@media (prefers-reduced-motion: reduce) {
  .hero *, .hero { animation: none !important; }
  .glow { opacity: .65; }
  .marquee { box-shadow: var(--marquee-glow); }
  .marquee-title { text-shadow: 0 0 18px rgba(255, 215, 130, .4); }
  .letterbox { display: none; }
  .replay { display: none; }
}

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 480px) {
  /* The replay pill sits in the top-right corner; give COMING SOON room
     beneath it instead of letting the two overlap. */
  .hero { padding-top: 84px; }
  .signup-button { flex: 1 1 100%; }
  /* Handoff: the front row may shrink to 240 under 480px. Inline geometry
     comes from signup.js, hence the override. */
  .seat-front { width: 240px !important; margin-left: -120px !important; }
}

/* ---- Unsubscribe page ------------------------------------------------- */

.unsub {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px var(--gutter);
  background: radial-gradient(ellipse 120% 70% at 50% 40%, #2a1d0b 0%, var(--bg) 55%, var(--floor) 100%);
}
.unsub-panel {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border-panel);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--marquee-glow);
  text-align: center;
}
.unsub-panel > div { display: flex; flex-direction: column; gap: 16px; }
.unsub-panel > div[hidden] { display: none; }
.unsub-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .34em;
  padding-left: .34em;
  color: var(--gold-muted);
}
.unsub-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1;
  letter-spacing: .06em;
  color: var(--cream);
}
.unsub-copy { margin: 0; font-size: 15px; line-height: 1.5; color: var(--cream); }
.unsub-copy[hidden] { display: none; }
.unsub-copy a { color: var(--bulb); }
.unsub-button { width: 100%; }
.unsub-back { margin: 0; font-size: 12px; }
.unsub-back a { color: var(--gold-muted); }
.unsub-back a:hover { color: var(--cream); }

/* Contact page (contact.html, 2026-10-27): the unsubscribe panel, wider, with
   a left-aligned form. Every element toggled with `hidden` restates it. */
.contact-panel { max-width: 520px; }
.contact-form { display: flex; flex-direction: column; gap: 8px; margin: 0; text-align: left; }
.contact-form[hidden] { display: none; }
.contact-form .unsub-copy { margin-bottom: 8px; text-align: center; }
.contact-label { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--cream); }
.contact-input { flex: 0 0 auto; width: 100%; }
select.contact-input { cursor: pointer; color-scheme: dark; }
.contact-message { height: auto; min-height: 150px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.contact-note, .contact-count, .contact-privacy { margin: 0; font-size: 12px; line-height: 1.5; color: var(--gold-muted); }
.contact-note[hidden] { display: none; }
.contact-count { text-align: right; }
/* The phone rule for the home page's sign-up row sets the button to
   `flex: 1 1 100%`, which in this column squashes it to 24px. */
.contact-form .unsub-button { flex: 0 0 auto; margin-top: 8px; }
.contact-privacy { text-align: center; }
.contact-privacy a { color: var(--gold-muted); }

/* Team-room link landing (room.html, #164): the join code, big enough to read
   across a room and copy by hand. */
.room-code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 14vw, 80px);
  line-height: 1;
  letter-spacing: .2em;
  padding-left: .2em;
  color: var(--bulb);
}
/* The signup button's look on a link: opens the room in the installed app. */
.room-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* The phone-width rule lets .signup-button flex; in this column that
     collapsed the link to its text height. */
  flex: 0 0 auto;
  min-height: 50px;
  white-space: nowrap;
  margin: 20px 0 4px;
  text-decoration: none;
}
/* The second choice, for a guest with no app: outlined so OPEN IN THE APP
   stays the primary button. */
.room-browser {
  /* The panel's 16px column gap already separates the two buttons; pull this
     one up so they sit 12px apart and read as a pair. */
  margin-top: -8px;
  background: transparent;
  border: 1.5px solid var(--border-chip);
  color: var(--gold-muted);
}
.room-browser:hover, .room-browser:active { background: var(--panel-raised); }

/* ---- Legal pages (privacy, terms) ------------------------------------ */

.legal {
  min-height: 100vh;
  padding: 44px var(--gutter);
  background: radial-gradient(ellipse 120% 70% at 50% 0%, #2a1d0b 0%, var(--bg) 55%, var(--floor) 100%);
}
.legal-panel {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border-panel);
  border-radius: 16px;
  padding: 28px 24px;
  color: var(--cream);
  font-size: 15px;
  line-height: 1.6;
}
.legal-panel h1 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1;
  letter-spacing: .06em;
}
.legal-panel h2 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .08em;
  color: var(--bulb);
}
.legal-panel p, .legal-panel ul, .legal-panel ol { margin: 0 0 12px; }
.legal-panel ul, .legal-panel ol { padding-left: 20px; }
.legal-panel li { margin-bottom: 6px; }
.legal-panel a { color: var(--bulb); }
.legal-panel a:hover { color: var(--cream); }
.legal-meta { font-size: 12px; color: var(--gold-muted); }
.footer a { color: inherit; }
.footer a:hover { color: var(--cream); }
