/*
 * Scripted landing: one 3D iPhone, sticky beside the copy.
 * The page stays light; the app inside the phone runs in its dark theme.
 * Motion follows Emil Kowalski's rules: transform and opacity only, strong
 * custom curves, blur to bridge crossfades, exits faster than entrances,
 * springs for the decorative, scroll-driven parts.
 */

@font-face {
  font-family: 'Cal Sans';
  src: url('/assets/fonts/CalSans.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* The app's light theme (global.css), for the page */
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --border: oklch(0.922 0 0);
  --primary: oklch(0.6386 0.202 35.83);

  --font-title: 'Cal Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: 24px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

/* ------------------------------------------------------------------ Nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  max-width: 1280px;
  height: 60px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 22px;
  width: auto;
}

.nav-steps {
  list-style: none;
  display: flex;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
}

.nav-steps a {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted-foreground);
  transition:
    color 200ms ease,
    background-color 200ms ease;
}

.nav-steps a.on {
  color: var(--foreground);
  background: oklch(0.97 0 0);
}

@media (hover: hover) and (pointer: fine) {
  .nav-steps a:hover {
    color: var(--foreground);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font-size: 14px;
  font-weight: 500;
  transition: transform 160ms var(--ease-out);
}

.pill:active {
  transform: scale(0.97);
}

/* ------------------------------------------------------------------ Story layout */

/* The glow and the lifts reach past the edges; never let them widen the page.
   `clip`, not `hidden`, so the sticky stage keeps working. */
main {
  overflow-x: clip;
}

.story {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.copy {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
}

.stage {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  align-self: start;
  pointer-events: none;
}

.chapter {
  min-height: 130vh;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter) 0 max(var(--gutter), 56px);
}

/* More room to scroll while the Watched with sheet is up */
#social {
  min-height: 170vh;
}

.chapter.hero {
  min-height: 100vh;
  min-height: 100svh;
}

.chapter-inner {
  max-width: 500px;
}

.kicker {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 14px;
}

.title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  margin-top: 20px;
  max-width: 30em;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.store-buttons {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  height: 48px;
  transition: transform 160ms var(--ease-out);
}

.store-badge img {
  height: 100%;
  width: auto;
}

a.store-badge:active {
  transform: scale(0.97);
}

.store-badge.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  user-select: none;
}

.scroll-hint {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.scroll-hint i {
  animation: nudge 1.8s var(--ease-in-out) infinite;
}

@keyframes nudge {
  50% {
    transform: translateY(4px);
  }
}

/* --- Copy reveal: words rise out of a mask, the rest rises out of a blur.
   Exits are quicker than entrances and need no stagger. --- */

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.03em 0.16em;
  margin: -0.08em -0.03em -0.16em;
}

.w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 260ms var(--ease-in-out);
}

.is-active .w > span {
  transform: none;
  transition: transform 800ms var(--ease-out);
  transition-delay: calc(var(--i) * 60ms);
}

.chapter .kicker,
.chapter .lede,
.chapter .store-buttons,
.chapter .scroll-hint,
.finale .lede,
.finale .store-buttons {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
}

.is-active .kicker,
.is-active .lede,
.is-active .store-buttons,
.is-active .scroll-hint {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out),
    filter 700ms var(--ease-out);
}

.is-active .lede {
  transition-delay: 180ms;
}

.is-active .store-buttons {
  transition-delay: 280ms;
}

.is-active .scroll-hint {
  transition-delay: 900ms;
}

/* ------------------------------------------------------------------ Stage, glow, rig */

.glow {
  position: absolute;
  inset: -10% -30% -10% -20%;
}

.glow i {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(closest-side, var(--c), transparent);
  will-change: opacity;
}

.rig {
  position: absolute;
  inset: 0;
}

.floor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 70px;
  margin: -35px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0));
  will-change: transform, opacity;
}

/* ------------------------------------------------------------------ The device (Phone3D) */

.device {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 417px;
  height: 876px;
  margin: -438px 0 0 -208.5px;
  transform-style: preserve-3d;
  will-change: transform;
}

.device > * {
  position: absolute;
}

.d-back {
  inset: 0;
  border-radius: 67px;
  backface-visibility: hidden;
  overflow: hidden;
}

.d-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.12));
}

.d-camera {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 178px;
  height: 178px;
  border-radius: 48px;
  background: linear-gradient(145deg, #3a3a3d, #1d1d1f 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.d-camera i {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #101012 52%, #4a4a4f 56%, #1a1a1c 64%, #2b2b2e 100%);
}

.d-strip,
.d-key,
.d-antenna {
  left: 0;
  top: 0;
}

.d-front {
  inset: 0;
  border-radius: 67px;
  backface-visibility: hidden;
  transform: translateZ(0.5px);
  box-shadow: inset 0 0 0 0.75px rgba(255, 255, 255, 0.28);
}

.d-glass {
  position: absolute;
  inset: 3.5px;
  border-radius: 63.5px;
  background: #050506;
  box-shadow: inset 0 0 0 0.75px rgba(255, 255, 255, 0.07);
}

/* ------------------------------------------------------------------ The app (dark) */

.app {
  /* The app's dark theme (global.css @variant dark) */
  --bg: oklch(0.145 0 0);
  --fg: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --sec: oklch(0.269 0 0);
  --muted: oklch(0.708 0 0);
  --line: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);

  font-family: var(--font-system);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.screen {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 393px;
  height: 852px;
  border-radius: 55px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
  /* overflow + border-radius alone lets layered children poke out of the
     corners in Chrome's 3D path; clip-path holds the curve */
  clip-path: inset(0 round 55px);
}

.status {
  position: absolute;
  inset: 0 0 auto;
  height: 54px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 34px 0 52px;
  font-weight: 600;
  font-size: 17px;
}

.status-icons {
  display: flex;
  gap: 6px;
  font-size: 18px;
}

.island {
  position: absolute;
  top: 11px;
  left: 134.5px;
  width: 124px;
  height: 36px;
  border-radius: 18px;
  background: #000;
  z-index: 100;
}

.home-bar {
  position: absolute;
  bottom: 8px;
  left: 126.5px;
  width: 140px;
  height: 5px;
  border-radius: 3px;
  background: var(--fg);
  z-index: 100;
}

.sheen {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -100%;
  width: 300%;
  z-index: 140;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.09) 47%, rgba(255, 255, 255, 0.02) 53%, rgba(255, 255, 255, 0) 60%);
  will-change: transform;
}

.scr {
  position: absolute;
  inset: 0;
  padding-top: 54px;
  background: var(--bg);
  /* The edge shadow of a pushed screen */
  box-shadow: -14px 0 32px rgba(0, 0, 0, 0.55);
  visibility: hidden;
}

.hdr {
  height: 44px;
  margin: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 17px;
}

.hdr strong {
  font-weight: 600;
}

.hdr-r {
  display: flex;
  justify-content: flex-end;
}

.hb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ib {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.inp {
  margin: 8px 16px 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: oklch(0.708 0 0 / 60%);
}

.inp.bordered {
  margin: 0 0 6px;
  background: transparent;
  border: 1px solid var(--input);
}

.btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background-color 300ms ease,
    color 300ms ease;
}

.btn.sm {
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.btn.done {
  background: var(--primary);
  color: #fff;
}

.avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sec);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.stars {
  display: inline-flex;
}

.stars img {
  width: var(--star, 16px);
  height: var(--star, 16px);
}

.tabbar {
  position: absolute;
  inset: auto 0 0;
  z-index: 30;
  height: 84px;
  padding: 10px 12px 34px;
  background: rgba(10, 10, 10, 0.9);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 28px;
}

.tabbar .on {
  color: var(--primary);
}

.meter {
  height: 6px;
  border-radius: 3px;
  background: var(--sec);
  overflow: hidden;
}

.meter b {
  display: block;
  height: 100%;
  background: var(--primary);
  transform-origin: left;
  transform: scaleX(0);
}

/* --- Diary --- */

.diary-month {
  margin: 20px 16px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.diary-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
}

.diary-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.diary-day {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diary-row .poster {
  width: 51px;
  height: 77px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.diary-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.diary-name {
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.diary-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

/* --- Season --- */

.season-hero {
  display: flex;
  gap: 16px;
  padding: 12px 16px 20px;
  align-items: flex-end;
}

.season-poster {
  width: 92px;
  height: 138px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.season-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.season-info strong {
  font-size: 22px;
  font-weight: 600;
}

.season-info > span,
.season-info small {
  font-size: 14px;
  color: var(--muted);
}

.season-info .meter {
  margin: 10px 0 2px;
}

.episodes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px;
}

.episode {
  display: flex;
  align-items: center;
  gap: 12px;
}

.still {
  width: 112px;
  height: 63px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.ep-body {
  flex: 1;
  min-width: 0;
}

.ep-name {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-meta {
  font-size: 13px;
  color: var(--muted);
}

.check {
  position: relative;
  width: 28px;
  height: 28px;
  font-size: 28px;
  flex-shrink: 0;
}

.check i {
  position: absolute;
  inset: 0;
}

.check .ph-square {
  color: var(--muted);
}

.check .ph-check-square {
  color: var(--primary);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 160ms ease,
    transform 160ms var(--ease-out);
}

.episode.on .ph-check-square {
  opacity: 1;
  transform: none;
  transition:
    opacity 200ms ease,
    transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-bar {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 16px 34px;
  background: linear-gradient(to bottom, transparent, var(--bg) 40%);
}

/* --- Posts --- */

.post {
  padding-top: 8px;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.who {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.who strong {
  font-size: 15px;
  font-weight: 600;
}

.who span {
  font-size: 13px;
  color: var(--muted);
}

.post-body {
  padding: 10px 16px 12px;
}

.post-title {
  font-weight: 600;
}

.post-title a {
  color: var(--primary);
}

.post-text {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

.cover {
  position: relative;
  height: 250px;
}

.cover.short {
  height: 206px;
}

.cover-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 45%, var(--bg));
}

.cover-slot {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 92px;
  height: 138px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cover.short .cover-slot {
  width: 76px;
  height: 114px;
}

.cover-poster {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8);
}

.cover .stars {
  position: absolute;
  right: 16px;
  bottom: 18px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  font-size: 22px;
}

.actions span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.actions small {
  font-size: 14px;
  color: var(--muted);
}

.grow {
  flex: 1;
}

/* --- Audio player --- */

.player {
  margin-top: 10px;
  height: 52px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 10px;
}

.play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.wave {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.wave i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 2px;
  background: var(--muted);
  opacity: 0.45;
  transition:
    background-color 120ms ease,
    opacity 120ms ease;
}

.wave i.on {
  background: var(--primary);
  opacity: 1;
}

.time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- Comments --- */

.comments {
  padding: 0 16px;
}

.comment {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.comment.on {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 450ms var(--ease-out),
    transform 450ms var(--ease-out),
    filter 450ms var(--ease-out);
}

.c-who {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.c-who strong {
  font-size: 14px;
  font-weight: 600;
}

.c-who span {
  font-size: 12px;
  color: var(--muted);
}

.comment p {
  font-size: 14px;
}

.comment-input {
  position: absolute;
  inset: auto 0 0;
  padding: 10px 16px 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.comment-input .field {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  align-items: center;
}

/* --- Stats recap --- */

.scr-stats {
  padding-top: 0;
}

.stats-backdrop {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 46%;
  object-fit: cover;
}

.scr-stats::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.6), rgba(10, 10, 10, 0) 30%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0) 30%, var(--bg));
}

.story-bars {
  position: absolute;
  top: 58px;
  left: 16px;
  right: 16px;
  z-index: 3;
  height: 4px;
  display: flex;
  gap: 4px;
}

.story-bars i {
  position: relative;
  flex: 1;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.story-bars i.done {
  background: var(--fg);
}

.story-bars b {
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform-origin: left;
  transform: scaleX(0);
}

.stats-top {
  position: absolute;
  top: 74px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
}

.chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.7);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip.round {
  width: 36px;
  padding: 0;
  justify-content: center;
}

.stats-card {
  position: absolute;
  top: 236px;
  left: 28px;
  right: 28px;
  z-index: 2;
  padding: 22px 20px 24px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.dial {
  position: relative;
  width: 220px;
  height: 220px;
}

.dial svg {
  display: block;
}

.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dial-center strong {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 62px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dial-center span {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

/* IntroCard: the year's posters fanned like a hand of cards */
.fan {
  position: relative;
  width: 100%;
  height: 150px;
  margin-top: 8px;
}

.fan img {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 74px;
  height: 111px;
  margin-left: -37px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.8);
  transform-origin: 50% 120%;
}

.total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.total strong {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.total span {
  font-size: 17px;
  color: var(--muted);
}

.split {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--sec);
  overflow: hidden;
}

.split b {
  display: block;
  height: 100%;
  background: var(--primary);
  transform-origin: left;
  transform: scaleX(0);
}

.split-labels {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

.split-labels span:last-child {
  color: var(--muted);
}

.stat-strong {
  font-size: 15px;
  font-weight: 600;
}

.stats-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 70px;
  text-align: center;
}

.stats-copy strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
}

.stats-copy span {
  font-size: 15px;
  color: var(--muted);
}

/* --- Where to watch --- */

.title-row {
  display: flex;
  gap: 14px;
  padding: 8px 16px 18px;
  align-items: flex-end;
}

.title-row > img {
  width: 72px;
  height: 108px;
  border-radius: 8px;
  object-fit: cover;
}

.title-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-row strong {
  font-size: 22px;
  font-weight: 600;
}

.title-row div > span:not(.stars) {
  font-size: 14px;
  color: var(--muted);
}

.country-bar {
  margin: 0 16px;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.country-bar i {
  font-size: 20px;
}

.country-bar span {
  flex: 1;
}

.country-bar b {
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}

.seg {
  margin: 14px 16px 0;
  height: 36px;
  padding: 3px;
  border-radius: 10px;
  background: var(--sec);
  display: flex;
  font-size: 14px;
  font-weight: 500;
}

.seg span {
  flex: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seg .on {
  background: var(--bg);
}

.providers {
  margin: 14px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.provider {
  height: 64px;
  padding: 0 14px 0 12px;
  border-radius: 14px;
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.provider span {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.provider i {
  font-size: 18px;
  color: var(--muted);
}

.notice {
  margin: 18px 16px 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.notice b {
  font-weight: 600;
}

/* --- Import --- */

.import {
  padding: 20px 16px 0;
}

.import-state {
  position: relative;
  height: 60px;
}

.import-state > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    filter 200ms ease;
}

.import-state strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.import-state span {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.import-done {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
}

.import-done i {
  font-size: 34px;
  color: var(--primary);
}

.import-state.done .import-working {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(4px);
}

.import-state.done .import-done {
  opacity: 1;
  transform: none;
  filter: none;
  transition-duration: 450ms;
  transition-timing-function: var(--ease-out);
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--sec);
  border-top-color: var(--fg);
  animation: spin 700ms linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.import .meter {
  margin: 14px 0 20px;
}

.import-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.import-grid span {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}

.import-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}


/* --- Pro --- */

.pro {
  padding: 0 16px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.list-item strong,
.feature strong,
.invite-row strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.list-item span {
  font-size: 14px;
  color: var(--muted);
}

.list-item i {
  font-size: 26px;
  color: var(--primary);
}

.section-label {
  margin: 18px 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.invite-card {
  padding: 0 14px;
  border-radius: 14px;
  background: var(--card);
}

.invite-row {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  opacity: 0.25;
  transition: opacity 200ms ease;
}

.invite-row:last-child {
  border-bottom: 0;
}

.invite-row.on {
  opacity: 1;
  transition-duration: 500ms;
}

.invite-row span {
  font-size: 13px;
  color: var(--muted);
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--card);
}

.feature span {
  font-size: 13px;
  color: var(--muted);
}

.f-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sec);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--fg) !important;
}

.pro-foot {
  position: absolute;
  inset: auto 0 0;
  padding: 12px 16px 34px;
}

/* ------------------------------------------------------------------ Lifts: off the glass */

.lifts {
  left: 12px;
  top: 12px;
  width: 393px;
  height: 852px;
  transform-style: preserve-3d;
  transform: translateZ(1px);
  pointer-events: none;
}

.lift {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* A copy of something on screen, shown only while it's up. No card behind
   it, so the glass and its sheen read through; just a shadow that grows as
   it rises (--lift: 0 → 1). */
.clone {
  --lift: 0;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, calc(var(--lift) * 0.6)));
}

.clone > * {
  position: relative !important;
  inset: auto !important;
  margin: 0 !important;
}

.float {
  border-radius: 22px;
  background: var(--card);
  box-shadow:
    0 0 0 1px var(--line),
    0 40px 80px -30px rgba(0, 0, 0, 0.65);
}

.picker {
  width: 361px;
  padding: 14px;
}

.picker-note {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.picks {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.picks img {
  width: 77px;
  flex: 1;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
  outline: 2px solid transparent;
  outline-offset: 2px;
  opacity: 0.55;
  transition:
    outline-color 200ms ease,
    opacity 200ms ease,
    transform 300ms var(--ease-out);
}

.picks img.on {
  outline-color: var(--primary);
  opacity: 1;
  transform: translateY(-4px);
}

.sheet {
  width: 300px;
  padding: 10px 16px 14px;
  border-radius: 26px;
}

.grabber {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: var(--sec);
  margin: 0 auto 10px;
}

.sheet-title {
  display: block;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}

.friend {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.friend .avatar {
  width: 42px;
  height: 42px;
}

.friend strong {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.toggle {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sec);
  font-size: 17px;
  transition: background-color 250ms ease;
}

.toggle i {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 200ms ease,
    transform 300ms var(--ease-out);
}

.toggle .ph-check {
  opacity: 0;
  transform: scale(0.6);
  color: #fff;
}

.friend.on .toggle {
  background: var(--primary);
}

.friend.on .ph-plus {
  opacity: 0;
  transform: scale(0.6) rotate(90deg);
}

.friend.on .ph-check {
  opacity: 1;
  transform: none;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
}

.stat-chip > img {
  width: 44px;
  height: 66px;
  border-radius: 6px;
  object-fit: cover;
}

.stat-chip small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.stat-chip strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.banner {
  width: 369px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: oklch(0.24 0 0);
}

.banner img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.banner div {
  flex: 1;
}

.banner strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.banner span {
  font-size: 14px;
}

.banner small {
  align-self: flex-start;
  font-size: 12px;
  color: var(--muted);
}

.flyer img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6);
}

.pass {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 18px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, oklch(0.3 0.06 36), oklch(0.205 0 0) 70%);
  box-shadow:
    0 0 0 1px oklch(0.6386 0.202 35.83 / 40%),
    0 40px 80px -30px rgba(0, 0, 0, 0.65);
}

.pass i {
  font-size: 36px;
  color: var(--primary);
}

.pass strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
}

.pass span {
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ Finale and end card */

.finale {
  min-height: 80vh;
  padding: 120px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.finale .store-buttons {
  justify-content: center;
}

.end-card {
  position: relative;
  min-height: 72vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.end-logo {
  width: clamp(200px, 32vw, 400px);
  height: auto;
}

.end-links {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 0 var(--gutter);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

@media (hover: hover) and (pointer: fine) {
  .end-links a:hover {
    color: #fff;
  }
}

/* ------------------------------------------------------------------ Narrow screens:
   the phone stays put in the top of the screen, the copy scrolls up under it */

@media (max-width: 1080px) {
  .nav-steps {
    display: none;
  }
}

@media (max-width: 860px) {
  /* --- Story slides: the chapters play like stories on the first screen --- */

  /* A scroll's worth per slide; the story screen stays pinned meanwhile */
  .story {
    display: block;
    height: calc(var(--slides, 9) * 100vh);
    height: calc(var(--slides, 9) * 100svh);
  }

  .story-pinned {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: clip;
    /* Swipes here step through the slides; the page doesn't scroll under them */
    touch-action: none;
  }

  .stage {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  /* One caption at a time, under the bars */
  .copy {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    pointer-events: none;
  }

  /* #social has a taller desktop height; reset it without outranking .is-active */
  #social {
    min-height: 0;
  }

  .chapter,
  .chapter.hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    min-height: 0;
    padding: 0 var(--gutter);
    visibility: hidden;
    /* Let the words slip out before it hides */
    transition: visibility 0s linear 260ms;
  }

  .chapter.is-active {
    visibility: visible;
    transition-delay: 0s;
  }

  .chapter-inner {
    max-width: none;
    text-align: center;
  }

  .chapter .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .kicker,
  .chapter .store-buttons,
  .scroll-hint {
    display: none;
  }

  .title {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .lede {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.45;
  }

  .story-ui {
    position: absolute;
    inset: 60px 0 0;
    z-index: 5;
    pointer-events: none;
  }

  .story-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted-foreground);
    transition: opacity 250ms ease;
  }

  .story-hint i {
    animation: nudge 1.8s var(--ease-in-out) infinite;
  }

  .finale {
    min-height: 70vh;
  }

  .finale .store-buttons {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .finale .store-badge {
    height: 40px;
  }
}

/* ------------------------------------------------------------------ Reduced motion:
   keep the fades, drop the travel */

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

  .w > span,
  .is-active .w > span {
    transform: none;
    opacity: 0;
    transition: opacity 300ms ease;
  }

  .is-active .w > span {
    opacity: 1;
  }

  .chapter .kicker,
  .chapter .lede,
  .chapter .store-buttons {
    transform: none;
    filter: none;
  }

  .scroll-hint i,
  .spinner {
    animation: none;
  }
}
