/* ============================================================
   Seen — marketing site
   V2 navy system. Values are lifted verbatim from the app's
   paletteV2 (seen/src/theme/theme.ts) so the two surfaces stay
   one brand — do not tune these here in isolation. Contrast on
   ground: text 15.3:1, muted 7.64:1, accent 6.82:1.
   ============================================================ */

:root {
  color-scheme: dark;

  --ground:      #0B0D26;  /* page canvas — the darkest navy */
  --surface:     #151838;  /* cards, section bands, skeletons */
  --surface-alt: #162954;  /* emphasis fills */
  --accent:      #9D8DF0;  /* brand lavender */
  --accent-hover:#8878DC;  /* accent stepped down */
  --text:        #E6E6E6;  /* near-white */
  --muted:       #9FA3B8;  /* secondary text */
  /* The app's third text tier (textFaint #6B6F85) is deliberately NOT
     carried over: the site has no consumer for it, and at 3.85:1 on
     ground it would fail AA at the sizes here anyway. */
  /* Dark ink FOR USE ON light/accent fills. White on accent is only
     2.80:1 — never put white on the lavender. */
  --on-accent:   #0B0D26;
  --line:        rgba(230, 230, 230, 0.12);  /* hairlines */

  /* The wordmark's eyes. Only the letterforms carry the brand colour;
     the pupils are ground-dark ink. Sending all six fills to accent
     turns the eyes purple — the app hit exactly this (animated-logo.tsx). */
  --pupil:       #0B0D26;

  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Keep layout width identical whether or not the scrollbar is shown,
     so removing the intro's scroll lock doesn't reflow the page. */
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background: var(--ground);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Shared section chrome ─────────────────────────────────── */

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

/* The app's `overline` tier: body face, semibold, tracked uppercase.
   Was Geist Mono — dropping mono also fixes /i/, which used this class
   without ever loading the mono family. */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-wrap: balance;
}

/* Running copy: avoid a single orphaned word on the last line. */
.why-copy,
.shot figcaption,
.footer-tmdb p {
  text-wrap: pretty;
}

/* ── Buttons: stadium pills ────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Dark ink on the lavender, never white — see --on-accent. */
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Hero download buttons: white pills, and a fixed equal width so the pair
   lines up. The old black pills read as holes punched in the navy. White
   is also the ground the full-colour Google G is drawn for, and it keeps
   the lavender exclusive to the wordmark so the hero has one focal point.
   Navy on white is 15.9:1. */
.btn--store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 310px;
  background: #fff;
  border-color: #fff;
  color: var(--on-accent);
}

.btn--store {
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover-capable devices only, so the lift can't stick after a tap. */
@media (hover: hover) {
  .btn--store:hover {
    background: #E4E2F5;
    border-color: #E4E2F5;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
  }
}

.btn-apple-logo {
  width: 17px;
  height: 21px;
  flex: none;
  margin-top: -2px; /* optical centring of the Apple mark */
}

.btn-google-logo {
  width: 19px;
  height: 19px;
  flex: none;
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ── First-visit intro overlay ─────────────────────────────── */

/* Hidden unless the pre-paint head script adds .intro-pending to <html>.
   The overlay covers the site from the first frame; main.js populates
   .intro-stage and removes everything at handoff. */
.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.intro-pending .intro {
  display: flex;
}

/* Lock page scroll while the overlay is up. */
.intro-pending {
  overflow: hidden;
}

/* Hide the hero's own lockup while the intro plays, so the backdrop
   fade doesn't show a second copy beneath the moving one. The class is
   removed at the exact moment the intro clone has landed on it. */
.intro-pending .hero .lockup-svg {
  visibility: hidden;
}

/* Must be the page ground: this backdrop fades away to reveal the site,
   so any other colour makes the first visit flash. */
.intro-bg {
  position: absolute;
  inset: 0;
  background: var(--ground);
}

.intro-stage {
  position: relative;
  width: min(78vw, 720px);
}

/* Full screen gives the cards more room: bigger type, and they sit
   fully beside the lockup on the side the eyes glance to. */
.intro-stage .gaze-label {
  font-size: 1rem;
}

.intro-stage .gaze-label--left {
  left: auto;
  right: 100%;
  margin-right: 28px;
  top: -16%;
}

.intro-stage .gaze-label--right {
  right: auto;
  left: 100%;
  margin-left: 28px;
  top: 0;
}

.intro-stage .gaze-label--low {
  left: auto;
  right: 100%;
  margin-right: 28px;
  top: 30%;
}

/* Narrow screens: no room beside the lockup, so the cards sit above
   (left glances) and below (right glance) it instead, a size down so
   they clear the Skip control. */
@media (max-width: 600px) {
  .intro-stage .gaze-label {
    font-size: 0.85rem;
  }

  .intro-stage .gaze-label--left {
    right: auto;
    left: -4%;
    margin-right: 0;
    top: auto;
    bottom: 115%;
  }

  .intro-stage .gaze-label--right {
    left: auto;
    right: -4%;
    margin-left: 0;
    top: 115%;
  }

  .intro-stage .gaze-label--low {
    right: auto;
    left: 4%;
    margin-right: 0;
    top: 120%;
  }
}

.intro-skip {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.intro-skip:hover {
  color: var(--text);
  text-decoration: underline;
}

.intro-skip:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* No Skip control on narrow/touch widths; the intro just plays. */
@media (max-width: 600px) {
  .intro-skip {
    display: none;
  }
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  padding: 48px 24px 64px;
  text-align: center;
}

.lockup-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.lockup {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 0 8px;
}

.lockup-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Default (no JS / reduced motion) = resting state: assembled lockup,
   eyes centred, labels hidden. JS only adds motion on top. */
.word-part,
.eye {
  transform-box: fill-box;
  transform-origin: center;
}

/* Smooths the hover eye-follow (main.js sets inline transforms). The
   dart animations are WAAPI and override base styles, so this
   transition never affects them. */
.iris {
  transition: transform 0.25s ease;
}

/* Mini rec card: friend line as a header, big poster underneath. The
   card sizes itself to the name-and-title line; the poster fills that
   width at its natural 2:3 ratio. */
.gaze-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.label-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 6px;
}

.label-poster {
  /* width: 0 keeps the image's intrinsic 315px out of the card's
     max-content sizing; min-width stretches it back to the card width
     set by the header line. */
  width: 0;
  min-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 8px;
  /* Dark poster art on a dark card otherwise dissolves at the edge —
     the same hairline frame the app applies to every poster. */
  border: 1px solid var(--line);
}

.label-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

/* Card positions in the in-page hero. Small screens first: the cards
   must never cover the word, and at page top there is only ~88px above
   the lockup (not enough for a card), so they all sit BELOW the word —
   left glances hug the left edge, the right glance the right edge.
   From 900px up they sit fully beside the word instead. */
.gaze-label--left {
  left: 0;
  top: 105%;
}

.gaze-label--right {
  right: 0;
  top: 105%;
}

.gaze-label--low {
  left: 8%;
  top: 112%;
}

@media (max-width: 899px) {
  /* One type size down so the below-the-word cards stay compact. */
  .hero .gaze-label {
    font-size: 0.75rem;
  }
}

@media (min-width: 900px) {
  .gaze-label--left {
    left: auto;
    right: 100%;
    margin-right: 16px;
    top: -25%;
  }

  .gaze-label--right {
    right: auto;
    left: 100%;
    margin-left: 16px;
    top: -25%;
  }

  .gaze-label--low {
    left: auto;
    right: 100%;
    margin-right: 16px;
    top: 15%;
  }
}

.strapline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
  margin: 24px auto 32px;
  max-width: 30em;
  text-wrap: balance;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ── Scroll reveal ─────────────────────────────────────────── */

/* One restrained rule reused across the page: rise 12px, fade in, once.
   main.js adds .reveal (then .is-visible on intersection), so without JS
   or with reduced motion nothing is hidden and nothing moves. */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Screenshots ───────────────────────────────────────────── */

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

/* The navy V2 exports sit on a navy page, so a dark drop-shadow does
   nothing. A soft lavender-tinted glow separates the device from the
   ground instead; drop-shadow (not box-shadow) still follows the
   transparent rounded corners rather than boxing them. */
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(157, 141, 240, 0.22));
}

.shot figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Why / how it works ────────────────────────────────────── */

/* The surface step above ground is deliberately subtle (1.11:1, matching
   the app), which on a wide viewport is too quiet to read as a band on
   its own — hairlines give it the edges the tonal step can't. */
.section--why {
  max-width: none;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* Centered statement blocks; larger than body text so the section
   carries weight without the old three-step grid. */
.why-copy {
  max-width: 30em;
  margin: 0 auto;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.55;
  color: var(--text);
}

.why-copy strong {
  font-weight: 700;
}

.why-copy--support {
  margin-top: 28px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px 48px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

/* App icon sits centered above the copyright line. The column gap on
   .footer-inner provides the space beneath it. */
.footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-tmdb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 34em;
}

.tmdb-logo {
  height: 15px;
  width: auto;
}

/* ── Small screens ─────────────────────────────────────────── */

@media (max-width: 480px) {
  .section {
    padding: 56px 20px;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
  }

  /* Smaller cards so they do not overflow narrow screens. */
  .gaze-label {
    font-size: 0.75rem;
    gap: 6px;
    padding: 6px;
    border-radius: 12px;
  }

  .label-header {
    gap: 6px;
  }

  .label-avatar {
    width: 20px;
    height: 20px;
  }
}
