/* Scene That — marketing site. Palette extracted from Logo/app-icon (1).png. */
:root {
  --yellow: #f7bf50;
  --yellow-deep: #e0a52e;
  --black: #0a0907;
  --surface: #14120e;
  --surface-2: #1d1a14;
  --line: #2c2820;
  --text: #f0ecE4;
  --text-dim: #b5ad9e;
  --radius: 14px;
  --max: 1100px;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Sofia Sans", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Self-hosted app fonts (Space Grotesk body, Sofia Sans headings).
   Subset to Latin + the punctuation the site uses; no runtime CDN. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/SpaceGrotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/SpaceGrotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/SpaceGrotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/SofiaSans-700.woff2") format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 800;
  font-display: swap; src: url("../fonts/SofiaSans-800.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--yellow); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--yellow); color: var(--black); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--black) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.site-nav a { color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--text); }
.btn {
  display: inline-block; background: var(--yellow); color: var(--black) !important;
  font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  padding: .8rem 1.5rem; border-radius: 999px; font-size: 1rem; font-family: inherit;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--yellow-deep); transform: translateY(-1px); }
.btn.small { padding: .5rem 1.1rem; font-size: .92rem; }
.btn[aria-disabled="true"], .btn:disabled { background: var(--surface-2); color: var(--text-dim) !important; cursor: not-allowed; }
.nav-toggle { display: none; }
.header-cta { display: none; } /* narrow-screens-only: wide layouts keep the CTA inside the nav */

/* One "narrow" threshold for the whole site: below 760px the nav collapses,
   the always-visible waitlist pill appears, and the carousels go one-column —
   same behavior whether it's a phone or a narrowed desktop window. */
@media (max-width: 760px) {
  .site-header .wrap { gap: .6rem; }
  .header-cta {
    display: inline-block; margin-left: auto;
    padding: .45rem .85rem; font-size: .8rem; white-space: nowrap;
  }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: 0; background: none; border: 1px solid var(--line);
    color: var(--text); border-radius: 8px; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer;
  }
  /* very narrow phones: shrink the pill so the row never wraps */
  @media (max-width: 359px) {
    .header-cta { font-size: .7rem; padding: .38rem .6rem; }
  }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--black); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem; gap: .9rem;
  }
  .site-nav.open { display: flex; }
}

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
/* Sized so "You don't remember films." always fits one line (~14em wide). */
.hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1.06; margin: 0 0 1rem; letter-spacing: -.01em; }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero .lede { color: var(--text-dim); font-size: 1.15rem; max-width: 34em; margin: 0 0 1.8rem; }
.hero-logo { width: 72px; height: 72px; margin-bottom: 1.4rem; border-radius: 16px; }
.phone {
  width: min(300px, 78vw); margin: 0 auto; border-radius: 42px; padding: 10px;
  background: #191610; border: 1px solid #35301f;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(247,191,80,.06);
}
.phone video, .phone img { display: block; width: 100%; border-radius: 32px; background: #000; aspect-ratio: 9 / 19.5; object-fit: cover; }

/* Counter strip */
.counters { margin-top: 2rem; }
.counters .nums { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: baseline; }
.counters .num { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--yellow); font-variant-numeric: tabular-nums; }
.counters .unit { color: var(--text); font-weight: 600; font-size: 1rem; }
.counters .caption { color: var(--text-dim); font-size: .92rem; margin-top: .35rem; }

/* Sections */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.kicker { color: var(--yellow); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin: 0 0 .6rem; }
h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -.01em; }
.section-lede { color: var(--text-dim); max-width: 44em; }

.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.4rem; }
.beat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.beat h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.beat p { margin: 0; color: var(--text-dim); font-size: .98rem; }

/* In-the-app + trope carousels: compact boxes (sized to their content, in
   normal flow, NOT pinned) that cross-fade one slide at a time on a timer.
   Equal top/bottom framing via the stage padding, constant as slides change. */
@property --fill { syntax: "<number>"; inherits: false; initial-value: 0; }
.rotator { position: relative; padding: 0; }
.rotator-track { position: static; height: auto; }
.rotator-stage { position: static; padding: 3rem 0; border-top: 1px solid var(--line); }
.rotator-stage > .wrap { width: 100%; }
.rotator-viewport { position: relative; height: min(60vh, 560px); }
.rotator-slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s ease;
}
.rotator-slide.active { opacity: 1; visibility: visible; }
.rotator-slide .media { display: flex; align-items: center; justify-content: center; height: 100%; }
.rotator-slide .phone { width: min(250px, 24vh); }
.rotator-copy h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 0 0 .7rem; }
.rotator-copy p { color: var(--text-dim); margin: 0; font-size: 1.05rem; max-width: 30em; }
/* Trope-rotator heading and card slides */
.taste-heading { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin: 0; }
.rotator-dots { display: flex; gap: .6rem; justify-content: center; align-items: center; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.rotator-dots button {
  width: 11px; height: 11px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line); cursor: pointer; transition: width .2s ease;
}
.rotator-dots button:hover { background: var(--text-dim); }
/* Active dot fills left-to-right over the interval, showing time to next slide */
.rotator-dots button[aria-current="true"] {
  width: 30px;
  background: linear-gradient(90deg,
    var(--yellow) calc(var(--fill, 0) * 100%),
    color-mix(in srgb, var(--yellow) 22%, transparent) 0);
}

/* The trope rotator sits inside the database section (right under the counters),
   so it has no separator line of its own, and its viewport auto-sizes to the cards. */
.rotator--tropes .rotator-stage { border-top: 0; padding: 3rem 0; }
.taste-heading { margin-bottom: 1.2rem; }
@media (min-width: 761px) {
  .rotator--tropes .rotator-viewport { display: grid; height: auto; }
  .rotator--tropes .rotator-slide {
    position: relative; inset: auto; grid-area: 1 / 1;
    grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch;
  }
}

/* Mobile: same auto-advancing carousel, one column — phone above, text below.
   Slides overlay via grid-area stacking, so the tallest slide sets the height
   (no fixed viewport height needed) and the cross-fade still works. */
@media (max-width: 760px) {
  .rotator-track { height: auto; }
  .rotator-stage { position: static; min-height: 0; padding: 2.8rem 0; display: block; }
  .rotator-viewport { display: grid; height: auto; min-height: 0; }
  .rotator-slide {
    position: relative; inset: auto; grid-area: 1 / 1;
    grid-template-columns: 1fr; gap: 1.3rem; align-items: start; justify-items: center;
    text-align: center;
  }
  .rotator-slide .media { height: auto; }
  .rotator-slide .phone { width: min(210px, 52vw); }
  .rotator-copy p { font-size: .98rem; }
  .rotator--tropes .rotator-slide { gap: 1rem; }
  .rotator-dots { margin-top: 1.5rem; }
}

/* Trope grid */
.trope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.trope { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.trope h3 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--yellow); }
.trope p { margin: 0; color: var(--text-dim); font-size: .93rem; line-height: 1.55; }

/* Testing + investor */
.panel {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: 2.4rem; margin-top: 2.2rem;
}
.panel ul { margin: 1rem 0 1.6rem; padding-left: 1.2rem; color: var(--text-dim); }
.panel li { margin: .45rem 0; }
.stats-inline { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 1.4rem 0; }
.stats-inline div { min-width: 8rem; }
.stats-inline .n { font-weight: 800; font-size: 1.6rem; color: var(--yellow); display: block; font-variant-numeric: tabular-nums; }
.stats-inline .l { color: var(--text-dim); font-size: .9rem; }
.waitlist-stat { margin: 1.2rem 0 1.6rem; }
.footnote { color: var(--text-dim); font-size: .85rem; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-top: .8rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 1.2rem 1.1rem; color: var(--text-dim); }
.faq .a p { margin: 0 0 .6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.6rem 0 3rem; color: var(--text-dim); font-size: .95rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; align-items: flex-start; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
/* Social links as circular icon buttons */
.socials { gap: .7rem; }
.socials a {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-dim); border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}
.socials a:hover, .socials a:focus-visible { background: var(--yellow); color: var(--black); outline: none; }
.socials svg { width: 20px; height: 20px; display: block; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brandline { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; }
.site-footer .brandline img { width: 26px; height: 26px; border-radius: 6px; }

/* Forms (signup) */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; max-width: 540px; }
.form-card label { display: block; font-weight: 700; margin: 1.1rem 0 .35rem; }
.form-card label:first-of-type { margin-top: 0; }
.form-card .optional { color: var(--text-dim); font-weight: 400; font-size: .9rem; }
.form-card input:not([type="checkbox"]):not([type="radio"]), .form-card select {
  width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--black); color: var(--text); font-size: 1rem; font-family: inherit;
}
.form-card button { margin-top: 1.5rem; width: 100%; }
.form-note { margin-top: 1rem; color: var(--text-dim); font-size: .9rem; }
.form-choice { border: 0; padding: 0; margin: 0 0 1.5rem; }
.form-choice legend { font-weight: 700; padding: 0; margin-bottom: .6rem; }
.form-card .form-choice label {
  display: flex; gap: .65rem; align-items: flex-start;
  font-weight: 400; margin: 0 0 .7rem; line-height: 1.45; font-size: .98rem; cursor: pointer;
}
.form-choice input[type="radio"] {
  width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex: 0 0 auto;
  accent-color: var(--yellow); cursor: pointer;
}
.form-card label.form-consent {
  display: flex; gap: .65rem; align-items: flex-start;
  font-weight: 400; margin: 1.4rem 0 0; line-height: 1.45; font-size: .95rem; cursor: pointer;
}
.form-consent input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: 0 0 auto;
  accent-color: var(--yellow); cursor: pointer;
}
.form-status { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: none; }
.form-status.show { display: block; }

/* Cookie-consent card: small, bottom-left, non-blocking */
.consent-card {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 60;
  max-width: 300px; padding: .8rem 1rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  font-size: .85rem; line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.consent-card p { margin: 0 0 .55rem; }
.consent-actions { display: flex; gap: .8rem; align-items: center; }
.consent-accept {
  background: var(--yellow); color: var(--black); border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .82rem;
  padding: .35rem .9rem; border-radius: 999px;
}
.consent-accept:hover { background: var(--yellow-deep); }
.consent-decline {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  color: var(--text-dim); font-size: .82rem; padding: .35rem 0; text-decoration: underline;
}
.consent-decline:hover { color: var(--text); }

/* Signup success pop-up (native <dialog>) */
.success-modal {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem; max-width: 26rem; text-align: center; overflow: hidden;
}
.success-modal::backdrop { background: rgba(0, 0, 0, 0.65); }
.success-modal img { border-radius: 12px; margin-bottom: .9rem; }
.success-modal h2 { font-family: var(--font-head); font-weight: 700; color: var(--yellow); margin: 0 0 .6rem; font-size: 1.5rem; }
.success-modal p { margin: 0 0 .6rem; }
.success-sub { color: var(--text-dim); font-size: .95rem; }
.success-modal .btn { margin-top: 1.1rem; }

/* Simple pages (legal, 404, signup) */
.page { padding: 3.5rem 0 4.5rem; }
.page h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.1rem, 3.8vw, 2.9rem); margin: 0 0 .4rem; }
.page .updated { color: var(--text-dim); margin-bottom: 2rem; }
.page h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.page p, .page li { color: var(--text-dim); }
.page ul { padding-left: 1.3rem; }
.page strong { color: var(--text); }
.notice { border-left: 3px solid var(--yellow); background: var(--surface); padding: .9rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1.4rem 0; color: var(--text-dim); }

/* Legal text shown in a pop-up (the consent card's "Details" link). Carries the
   .page class for its typography; these rules come later so they win on padding. */
.doc-modal {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.6rem 1.6rem; max-width: 46rem; width: calc(100vw - 2rem);
  max-height: 82vh; overflow: hidden;
  /* Nothing on this site declares a colour scheme, so the browser drew a white
     scrollbar on this dark panel. Declaring it here makes the scrollbar dark. */
  color-scheme: dark;
}
/* Only when open: a bare "display: flex" would defeat the browser's own rule
   that keeps a closed <dialog> hidden. The close button sits outside the
   scrolling area so it stays reachable in long policies on small screens. */
.doc-modal[open] { display: flex; flex-direction: column; }
.doc-body { overflow-y: auto; scrollbar-width: thin; }
.doc-modal::backdrop { background: rgba(0, 0, 0, 0.65); }
.doc-modal h1 { font-size: 1.55rem; }
.doc-modal h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.doc-close {
  align-self: flex-end; background: none; border: 0; cursor: pointer;
  color: var(--text-dim); font-size: 1.7rem; line-height: 1; padding: 0 .2rem;
  margin-bottom: .4rem; /* clear of the scroll bar directly below it */
}
.doc-close:hover { color: var(--text); }

@media (max-width: 900px) {
  .beats, .trope-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-top: 3rem; }
  .hero h1 { font-size: clamp(1.7rem, 7.4vw, 3.1rem); }
  section { padding: 3.4rem 0; }
}
@media (max-width: 560px) {
  .beats, .trope-grid { grid-template-columns: 1fr; }
  .panel { padding: 1.6rem; }
}

/* Honeypot field on the signup form: parked off-screen; humans never see or fill it */
.hp { position: absolute; left: -9999px; top: auto; }
