/* =========================================================
   CouchBuddy — marketing site
   1. Palette properties   2. Tokens        3. Base
   4. Layout & type        5. Components    6. Navigation
   7. Hero                 8. Ecosystem     9. Demo
   10. Features story      11. Gallery      12. ChatGPT
   13. Trust               14. Requirements 15. CTA & footer
   16. Motion & reveal     17. Responsive
   ========================================================= */

/* ---------- 1. Palette properties (animatable) ---------- */
@property --accent { syntax: "<color>"; inherits: true; initial-value: #6aa8ff; }
@property --accent-secondary { syntax: "<color>"; inherits: true; initial-value: #ff8a6b; }
@property --accent-soft { syntax: "<color>"; inherits: true; initial-value: rgba(106, 168, 255, .16); }
@property --background { syntax: "<color>"; inherits: true; initial-value: #070b14; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #121a2b; }
@property --glow { syntax: "<color>"; inherits: true; initial-value: rgba(90, 140, 255, .35); }
@property --event { syntax: "<color>"; inherits: true; initial-value: #8cccff; }

/* ---------- 2. Tokens ---------- */
:root {
  /* Artwork palette (updated by script.js) */
  --accent: #6aa8ff;
  --accent-secondary: #ff8a6b;
  --accent-soft: rgba(106, 168, 255, .16);
  --background: #070b14;
  --surface: #121a2b;
  --glow: rgba(90, 140, 255, .35);

  /* Category colours, matching the app */
  /* Category colours, as in the app (Theme.swift) */
  --cat-cast: #8cccff;
  --cat-trivia: #fae68c;
  --cat-production: #ffc77a;
  --cat-reference: #ff9eb3;
  --cat-place: #73ebb3;
  --cat-fashion: #ff9ecf;
  --cat-music: #dba3ff;

  --text: rgba(255, 255, 255, .95);
  --text-2: rgba(255, 255, 255, .64);
  --text-3: rgba(255, 255, 255, .40);
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);

  --glass-bg: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .12);
  --glass-blur: saturate(160%) blur(22px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-rounded: ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-xl: 40px;

  --spring: cubic-bezier(.22, 1, .36, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --palette-duration: 1.4s;

  --container: 100%;
  --gutter: clamp(16px, 5vw, 112px);
  --section-pad: clamp(96px, 14vw, 180px);

  color-scheme: dark;
  transition:
    --accent var(--palette-duration) var(--ease),
    --accent-secondary var(--palette-duration) var(--ease),
    --accent-soft var(--palette-duration) var(--ease),
    --background var(--palette-duration) var(--ease),
    --surface var(--palette-duration) var(--ease),
    --glow var(--palette-duration) var(--ease);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* global ambient glow that follows the palette */
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 90vh;
  background: radial-gradient(60% 60% at 70% 0%, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: .55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--text); }
kbd {
  font-family: var(--font-mono); font-size: .8em;
  padding: 1px 6px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--glass-bg);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- 4. Layout & type ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-pad) 0; }

.display {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.0;
  letter-spacing: -.035em;
  font-weight: 700;
}
.headline {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
}
.title {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 650;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); line-height: 1.5; max-width: 34em; }
.section-lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 36em; margin-top: 20px; }
.eyebrow {
  font-family: var(--font-rounded);
  font-size: 13px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  transition: color .6s var(--ease);
}
.eyebrow--pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text);
}
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--center { text-align: center; }
.section-head--center .section-lede { margin-inline: auto; }
.accent-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dim { color: var(--text-3); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hint { color: var(--text-3); font-size: 14px; margin-top: 28px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- 5. Components ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 50px -20px rgba(0, 0, 0, .6);
}

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .4s var(--spring), background-color .3s, box-shadow .4s var(--ease), border-color .3s;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: #fff; color: #05070c;
  box-shadow: 0 10px 40px -10px var(--glow);
}
.btn--primary:hover { box-shadow: 0 14px 50px -8px var(--glow); transform: translateY(-1px); }
.btn--ghost {
  color: var(--text); border-color: var(--glass-border); background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.btn--ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .1); }
.btn--small { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn--large { --h: 58px; padding: 0 34px; font-size: 18px; }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  color: var(--text-2); font-size: 14px; font-weight: 550;
}
.btn-text:hover { color: var(--text); }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  transition: background-color .3s;
}
.round-btn:hover { background: rgba(255, 255, 255, .12); }

.glass-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--font-rounded); font-size: 12px; font-weight: 650; letter-spacing: .1em;
  background: rgba(30, 40, 60, .45); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.glass-chip--round { width: 34px; height: 34px; padding: 0; justify-content: center; color: var(--accent); }
.pill-outline {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: .85em; color: var(--text);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff5b5b; flex: none;
  box-shadow: 0 0 0 0 rgba(255, 91, 91, .6);
  animation: live 2.4s var(--ease) infinite;
}
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 91, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 91, 91, 0); } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--text-2);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.tags--quiet { margin-top: 22px; }

/* Category helpers */
.cat {
  display: inline-block; font-family: var(--font-rounded);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c, var(--accent));
}
.cat--cast, .cat-text--cast { --c: var(--cat-cast); color: var(--cat-cast); }
.cat--trivia, .cat-text--trivia { --c: var(--cat-trivia); color: var(--cat-trivia); }
.cat--production, .cat-text--production { --c: var(--cat-production); color: var(--cat-production); }
.cat--reference, .cat-text--reference { --c: var(--cat-reference); color: var(--cat-reference); }
.cat--place, .cat-text--place { --c: var(--cat-place); color: var(--cat-place); }
.cat--fashion, .cat-text--fashion { --c: var(--cat-fashion); color: var(--cat-fashion); }
.cat--music, .cat-text--music { --c: var(--cat-music); color: var(--cat-music); }
.cat-bg--cast { background: var(--cat-cast); }
.cat-bg--trivia { background: var(--cat-trivia); }
.cat-bg--production { background: var(--cat-production); }
.cat-bg--reference { background: var(--cat-reference); }
.cat-bg--place { background: var(--cat-place); }
.cat-bg--fashion { background: var(--cat-fashion); }
.cat-bg--music { background: var(--cat-music); }
[data-category="cast"] { --event: var(--cat-cast); }
[data-category="trivia"] { --event: var(--cat-trivia); }
[data-category="production"] { --event: var(--cat-production); }
[data-category="reference"] { --event: var(--cat-reference); }
[data-category="place"] { --event: var(--cat-place); }
[data-category="fashion"] { --event: var(--cat-fashion); }
[data-category="music"] { --event: var(--cat-music); }

/* Replaceable assets: graceful placeholder when a file is missing */
.asset { position: relative; overflow: hidden; }
.asset > img { width: 100%; height: 100%; object-fit: cover; }
.asset.is-missing > img { display: none; }
.asset.is-missing {
  background:
    radial-gradient(120% 80% at 20% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(90% 70% at 90% 100%, color-mix(in srgb, var(--accent-secondary) 22%, transparent), transparent 60%),
    var(--surface);
}
.asset--logo.is-missing::after, .shot.is-missing::after, .step__shot.is-missing::after, .gallery-card__shot.is-missing::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px;
  font-family: var(--font-rounded); font-weight: 650; color: var(--text-2); font-size: 14px;
}
.asset--logo.is-missing { background: none; }
.asset--logo.is-missing::after { position: static; display: block; padding: 0; font-size: 22px; color: var(--text); letter-spacing: -.01em; text-align: left; }
.asset--logo > img { object-fit: contain; object-position: left center; }

/* Phone frame */
.phone {
  position: relative;
  width: 100%; max-width: 360px; aspect-ratio: 1206 / 2622;
  padding: 10px; border-radius: 56px;
  background: linear-gradient(145deg, #2a2f3a, #0c0f15 40%, #1d222c);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 60px 120px -30px rgba(0, 0, 0, .8),
    0 0 120px -20px var(--glow);
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; z-index: 3; top: 22px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 3.6%; border-radius: 999px; background: #000;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 46px; overflow: hidden;
  background: var(--background);
}

/* Timeline rail (shared by hero + demo) */
.rail { position: relative; height: 44px; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.rail__markers { position: absolute; left: 0; right: 0; top: 4px; height: 10px; pointer-events: none; }
.marker {
  position: absolute; top: 0; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--c); opacity: .9;
  transition: transform .5s var(--spring), opacity .4s, box-shadow .4s;
}
.marker.is-future { opacity: .35; }
.marker.is-near { transform: scale(1.5); box-shadow: 0 0 12px var(--c); opacity: 1; }
.rail__track {
  position: absolute; left: 0; right: 0; top: 26px; height: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); pointer-events: none;
}
.rail__fill {
  height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--event));
}
.rail__thumb {
  position: absolute; top: 28px; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: #fff; cursor: grab;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--event) 35%, transparent), 0 4px 14px rgba(0, 0, 0, .5);
  transition: box-shadow .4s, transform .3s var(--spring);
}
.rail.is-dragging .rail__thumb { cursor: grabbing; transform: scale(1.15); }
.rail__thumb:focus-visible { outline: 2px solid var(--event); outline-offset: 4px; border-radius: 50%; }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .5s var(--ease), border-color .5s, backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--background) 72%, transparent);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container); margin-inline: auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand__icon { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.brand__name { font-size: 17px; }
.nav__links { display: flex; gap: 28px; margin-inline: auto; }
.nav__links a { text-decoration: none; font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.label-short { display: none; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: 120px 80px; overflow: hidden; isolation: isolate; }
.hero__backdrop { position: absolute; inset: 0; z-index: -1; }
.hero__fanart { position: absolute; inset: -8% 0 0; }
.hero__fanart > img { opacity: .55; filter: saturate(1.1); }
.hero__fanart.is-missing {
  background:
    radial-gradient(50% 60% at 75% 30%, rgba(255, 170, 110, .22), transparent 70%),
    radial-gradient(60% 70% at 30% 20%, rgba(70, 120, 230, .35), transparent 70%),
    linear-gradient(#0b1430, #070b14);
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--background) 78%, transparent) 0%, color-mix(in srgb, var(--background) 45%, transparent) 45%, transparent 75%),
    linear-gradient(0deg, var(--background) 2%, transparent 45%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__copy { max-width: 780px; }
.hero__copy .display { margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__status { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 44px; font-size: 13px; color: var(--text-2); font-family: var(--font-rounded); font-weight: 550; }
.hero__status li { display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-dot--plex { background: #ebaf00; box-shadow: 0 0 10px #ebaf00; }
.status-dot--gpt { background: #74e0c4; box-shadow: 0 0 10px #74e0c4; animation: breathe 2.2s var(--ease) infinite; }
.status-dot--found { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@keyframes breathe { 50% { opacity: .35; } }

.hero__device { position: relative; display: flex; justify-content: center; }
.phone--hero { max-width: 330px; }
.float-card {
  position: absolute; display: grid; gap: 4px; width: 230px;
  padding: 14px 16px; border-radius: var(--radius-m); font-size: 14px;
}
.float-card strong { font-weight: 600; line-height: 1.25; }
.float-card .src { font-size: 12px; color: var(--text-3); }
.float-card--a { left: -12%; top: 50%; }
.float-card--b { right: -8%; bottom: 6%; }

/* Mini app inside hero phone */
.mini-app { height: 100%; display: flex; flex-direction: column; font-size: 11px; }
.mini-app__header { position: relative; height: 40%; flex: none; }
.mini-app__header > img { opacity: .9; }
.mini-app__header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, var(--background)); }
.mini-app__chips { position: absolute; z-index: 1; top: 52px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.mini-app__chips .glass-chip { font-size: 9px; padding: 5px 10px; }
.mini-app__chips .glass-chip--round { width: 26px; height: 26px; padding: 0; }
.mini-app__title { position: absolute; z-index: 1; left: 16px; bottom: 6px; display: grid; gap: 6px; }
.mini-app__logo { width: 120px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.mini-app__meta { font-size: 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.mini-app__meta .pill-outline { font-size: 10px; }
.mini-app__time { padding: 12px 16px 0; font-size: 13px; }
.rail--mini { margin: 0 16px; height: 32px; pointer-events: none; }
.rail--mini .marker { width: 6px; height: 6px; margin-left: -3px; }
.rail--mini .rail__track { top: 18px; height: 3px; }
.rail__thumb--mini { top: 19.5px; width: 12px; height: 12px; margin: -6px 0 0 -6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.mini-app__tabs {
  margin: 4px 12px 10px; padding: 4px; border-radius: 999px; display: flex; justify-content: space-between;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 600; color: var(--text-3);
}
.mini-app__tabs span { padding: 5px 9px; border-radius: 999px; }
.mini-app__tabs .is-active { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }
.mini-app__cards { padding: 0 12px; display: grid; gap: 8px; }
.mini-card {
  padding: 10px 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: rgba(255, 255, 255, .04);
  animation: card-in .7s var(--spring) both;
}
.mini-card .cat { font-size: 9px; }
.mini-card strong { display: block; font-size: 12.5px; margin: 3px 0 2px; }
.mini-card p { color: var(--text-2); font-size: 11px; line-height: 1.35; }

/* ---------- 8. Ecosystem ---------- */
.eco {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; align-items: stretch;
}
.eco__node {
  padding: 32px; border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.eco__node h3 { font-size: 24px; letter-spacing: -.02em; font-weight: 650; }
.eco__node p { color: var(--text-2); font-size: 15.5px; }
.eco__node .tags { margin-top: auto; padding-top: 8px; }
.eco__logo { height: 30px; }
.eco__node--plex { box-shadow: inset 0 1px 0 rgba(235, 175, 0, .25); }
.eco__node--plex .eco__logo.is-missing::after { color: #ebaf00; }
.eco__node--hero {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(116, 224, 196, .14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border-color: rgba(116, 224, 196, .28);
  transform: translateY(-14px);
}
.eco__node--hero .eco__logo.is-missing::after { color: #74e0c4; }
.eco__node--hero h3 { font-size: 28px; }
.eco__node--tmdb .eco__logo.is-missing::after { color: #6fd0e3; }
.eco__lines { grid-column: 1 / -1; width: 100%; height: 110px; margin-top: -6px; }
.eco__lines path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.eco__result {
  grid-column: 1 / -1; justify-self: center;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px 14px 14px; border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  box-shadow: 0 0 80px -10px var(--glow);
}
.eco__result-icon { width: 52px; height: 52px; border-radius: 14px; }
.eco__result strong { display: block; font-size: 20px; letter-spacing: -.01em; }
.eco__result span { color: var(--text-2); font-size: 15px; }

/* ---------- 9. Interactive demo ---------- */
.experience__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.experience__copy { position: sticky; top: 120px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 32px; font-size: 14px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend__dot { width: 9px; height: 9px; border-radius: 50%; }

.demo {
  --event: var(--cat-cast);
  border-radius: var(--radius-xl); overflow: hidden;
  background: color-mix(in srgb, var(--surface) 70%, #000);
  border: 1px solid var(--line);
  box-shadow: 0 80px 140px -50px rgba(0, 0, 0, .9), 0 0 140px -40px color-mix(in srgb, var(--event) 45%, transparent);
  transition: --event .6s var(--ease), box-shadow .8s var(--ease);
}
.demo__header { position: relative; height: 300px; }
.demo__header > img { object-position: center 40%; }
.demo__logo { width: clamp(150px, 16vw, 210px); height: auto; margin-bottom: 4px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .55)); }
.demo__header.is-missing {
  background:
    radial-gradient(40% 60% at 70% 40%, rgba(255, 170, 110, .25), transparent 70%),
    radial-gradient(60% 80% at 30% 20%, rgba(70, 120, 230, .45), transparent 70%),
    #0b1430;
}
.demo__header-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .2), transparent 30%, color-mix(in srgb, var(--surface) 70%, #000) 98%); }
.demo__status { position: absolute; top: 20px; left: 20px; font-size: 11px; }
.demo__media { position: absolute; left: 28px; right: 28px; bottom: 20px; display: flex; gap: 18px; align-items: flex-end; }
.demo__poster { width: 72px; aspect-ratio: 2 / 3; border-radius: 12px; flex: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); border: 1px solid var(--line-strong); }
.demo__title { font-family: var(--font-rounded); font-size: clamp(30px, 3.4vw, 42px); font-weight: 750; letter-spacing: -.02em; line-height: 1; margin-bottom: 10px; }
.demo__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.demo__body { padding: 8px 28px 28px; }
.demo__timebar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.demo__time { font-size: 22px; }
.demo__now { color: var(--text); }
.demo .rail { margin: 6px 0 18px; }

.segmented {
  display: flex; padding: 5px; gap: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  margin-bottom: 22px; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-3); font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color .4s var(--spring), color .3s;
}
.segmented button:hover { color: var(--text-2); }
.segmented button[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 32%, rgba(255, 255, 255, .05)); color: var(--text); }

.feed { position: relative; display: grid; gap: 12px; min-height: 430px; align-content: start; }
.feed::before { content: ""; position: absolute; left: 61px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.feed-item { display: grid; grid-template-columns: 48px 26px 1fr; align-items: start; gap: 0; animation: card-in .6s var(--spring) both; }
.feed-item__time { padding-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--c); text-align: right; padding-right: 2px; }
.feed-item__node { margin: 18px auto 0; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); position: relative; z-index: 1; }
.feed-card {
  margin-left: 10px; padding: 16px 18px; border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .045); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  transition: border-color .4s, background-color .4s, transform .5s var(--spring);
}
.feed-item.is-active .feed-card {
  background: color-mix(in srgb, var(--c) 9%, rgba(255, 255, 255, .04));
  border-color: color-mix(in srgb, var(--c) 65%, transparent);
  box-shadow: 0 0 40px -14px var(--c);
}
.feed-card__eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.feed-card h4 { margin: 0 0 4px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.feed-card p { color: var(--text-2); font-size: 15px; line-height: 1.45; }
.feed-card__row { display: flex; gap: 14px; align-items: center; }
.feed-card__src { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.feed-card__src a { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.feed-card__src a:hover { text-decoration: underline; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-rounded); font-weight: 700; font-size: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--cat-cast)) 45%, #223), #111827);
  border: 1px solid var(--line-strong);
}
.feed-item.is-locked { --c: rgba(255, 255, 255, .25); }
.feed-item.is-locked .feed-card { background: rgba(255, 255, 255, .025); border-color: var(--line); display: flex; align-items: center; gap: 14px; }
.feed-item.is-locked .feed-item__time { color: var(--text-3); }
.feed-item.is-locked .feed-item__node { box-shadow: none; background: rgba(255, 255, 255, .25); }
.lock-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--text-3); flex: none; }
.feed-item.is-locked h4 { font-size: 16px; color: var(--text-2); }
.feed-item.is-locked p { font-size: 13px; color: var(--text-3); }
.feed-empty { padding: 40px 12px; text-align: center; color: var(--text-3); font-size: 15px; position: relative; z-index: 1; background: color-mix(in srgb, var(--surface) 70%, #000); }
.feed-empty strong { display: block; color: var(--text-2); font-size: 17px; margin-bottom: 4px; }

@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* ---------- 10. Features story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.story__stage { position: relative; }
.story__phone { position: sticky; top: calc(50vh - 330px); margin-inline: auto; max-width: 320px; }
.shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform .9s var(--spring); }
.shot.is-active { opacity: 1; transform: none; }
.story__steps { display: grid; }
.step { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-block: 40px; opacity: .35; transition: opacity .6s var(--ease); }
.step.is-current { opacity: 1; }
.step > p:not(.eyebrow) { color: var(--text-2); font-size: 18px; max-width: 30em; }
.step .eyebrow { margin-bottom: 0; }
.step__shot { display: none; }

.mini-timeline { display: grid; gap: 2px; margin-top: 10px; border-left: 2px solid var(--line); padding-left: 18px; }
.mini-timeline__row { display: grid; grid-template-columns: 52px 100px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; font-size: 15px; }
.mini-timeline__row .mono { color: var(--text-3); font-size: 13px; }
.mini-timeline__row.is-locked { color: var(--text-3); }

.onscreen { padding: 18px; border-radius: var(--radius-m); display: grid; gap: 14px; margin-top: 10px; max-width: 440px; --c: var(--cat-cast); }
.onscreen__label { display: flex; align-items: center; gap: 8px; font-family: var(--font-rounded); font-weight: 700; letter-spacing: .12em; font-size: 13px; }
.onscreen__row { display: flex; gap: 14px; align-items: center; }
.onscreen__row strong { display: block; font-weight: 650; }
.onscreen__row span:not(.avatar) { color: var(--text-2); font-size: 14.5px; }

.place-card { border-radius: var(--radius-m); overflow: hidden; margin-top: 10px; max-width: 460px; color: var(--cat-place); }
.place-card__map { width: 100%; height: auto; display: block; background: rgba(115, 234, 179, .05); }
.place-card__body { padding: 16px 18px 18px; display: grid; gap: 4px; color: var(--text); }
.place-card__body span:last-child { color: var(--text-2); font-size: 15px; }
.tag-flag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(115, 234, 179, .14); color: var(--cat-place); margin-bottom: 4px; }
.pulse { transform-origin: 186px 78px; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.outfit-list { display: grid; gap: 10px; margin-top: 10px; max-width: 460px; }
.outfit-list li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-m); }
.outfit-list strong { display: block; }
.outfit-list span:not(.swatch) { color: var(--text-2); font-size: 14.5px; }
.swatch { width: 44px; height: 44px; border-radius: 12px; flex: none; border: 1px solid var(--line-strong); }
.swatch--a { background: repeating-conic-gradient(#111 0 25%, #eee 0 50%) 0 0 / 12px 12px; }
.swatch--b { background: linear-gradient(135deg, #d8c3a0, #b89c74); }
.swatch--c { background: linear-gradient(135deg, #f4efe4, #e2d8c4); }
.confidence { font-style: normal; color: #8cccff; }
.confidence--low { color: var(--text-3); }

.score { border-radius: var(--radius-l); overflow: hidden; max-width: 480px; margin-top: 10px; }
.score__art { position: relative; aspect-ratio: 16 / 7; }
.score__art > img:first-child { object-position: center 35%; }
.score__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 12, 18, .85)); }
.score__art > .score__logo { position: absolute; z-index: 1; left: 18px; bottom: 14px; width: 150px; height: auto; filter: brightness(1.35) drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.score__meta { padding: 0 18px 16px; font-size: 13px; color: var(--text-3); }
.track { display: flex; gap: 18px; align-items: center; padding: 18px; }
.track strong { display: block; font-weight: 650; margin: 2px 0; }
.track span:not(.mono) { color: var(--text-2); font-size: 14.5px; }
.track__bars { display: flex; gap: 3px; align-items: flex-end; height: 40px; width: 44px; flex: none; }
.track__bars i { flex: 1; border-radius: 2px; background: var(--cat-music); animation: bars 1.2s var(--ease) infinite alternate; }
.track__bars i:nth-child(odd) { animation-duration: .9s; }
.track__bars i:nth-child(3n) { animation-duration: 1.4s; }
@keyframes bars { from { height: 18%; } to { height: 100%; } }

.phrase-flow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; font-size: 15px; }
.subtitle-chip { font-size: 18px; font-weight: 600; padding: 8px 16px; border-radius: 10px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); }
.phrase-flow__arrow { color: var(--text-3); }
.phrase-flow__step { display: inline-flex; gap: 6px; align-items: center; color: #74e0c4; font-weight: 600; }
.phrase-flow__result { padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cat-reference) 50%, transparent); color: var(--cat-reference); font-weight: 600; }
.spark { color: #74e0c4; }

.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px; border-radius: var(--radius-l); overflow: hidden; background: var(--line); }
.extras li { padding: 26px 24px; background: var(--background); color: var(--text-2); font-size: 15px; transition: background-color var(--palette-duration); }
.extras strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* ---------- 11. Gallery: artwork stage ---------- */
.gallery { padding-top: var(--section-pad); }
.gstage { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 6vw, 88px) 0 clamp(28px, 4vw, 48px); }
.gstage__bg { position: absolute; inset: 0; z-index: -2; }
.gstage__bg img {
  position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; object-position: 70% 30%;
  opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 7s linear;
}
.gstage__bg img.is-active { opacity: .62; transform: scale(1); }
.gstage__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--background) 0%, color-mix(in srgb, var(--background) 82%, transparent) 34%, color-mix(in srgb, var(--background) 30%, transparent) 62%, color-mix(in srgb, var(--background) 55%, transparent) 100%),
    linear-gradient(180deg, var(--background) 0%, transparent 18%, transparent 62%, var(--background) 100%),
    radial-gradient(50% 60% at 72% 45%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.gstage__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.gstage__copy { max-width: 560px; }
.gstage__lede { color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); margin-top: 18px; }
.gstage__now { margin-top: 32px; min-height: 180px; }
.gstage__logo { display: block; height: 64px; width: auto; max-width: 300px; object-fit: contain; object-position: left center; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .6)); }
.gstage__kind {
  display: inline-block; margin-top: 18px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-rounded); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.gstage__body { margin-top: 12px; font-size: 18px; color: var(--text); max-width: 30em; }
.gstage__now.is-swapping > * { opacity: 0; transform: translateY(8px); }
.gstage__now > * { transition: opacity .45s var(--ease), transform .6s var(--spring); }

.palette { margin-top: 28px; }
.palette__label { font-family: var(--font-rounded); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.palette__swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch-chip {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2);
}
.swatch-chip i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: background-color 1s var(--ease); }

.gstage__device { position: relative; }
.gstage__phone { width: clamp(250px, 20vw, 300px); max-width: none; }
.gstage__phone .phone__screen { background: #0b0d14; }
.gstage__phone .phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .8s var(--ease); }
.gstage__phone .phone__screen img.is-active { opacity: 1; }

.gpicker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 3.5vw, 44px); }
.gpick {
  position: relative; overflow: hidden; display: grid; align-content: end; gap: 2px;
  height: 104px; padding: 12px 14px; border-radius: 18px; cursor: pointer; text-align: left;
  border: 1px solid var(--glass-border); background: #0b0d14; color: var(--text);
  transition: transform .4s var(--spring), border-color .4s, box-shadow .4s;
}
.gpick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .4s; z-index: 0; }
.gpick::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(5, 7, 12, .9)); z-index: 0; }
.gpick > span { position: relative; z-index: 1; }
.gpick__title { font-weight: 650; font-size: 15px; line-height: 1.2; }
.gpick__kind { font-size: 12.5px; color: var(--text-2); }
.gpick__bar { position: absolute !important; left: 0; bottom: 0; height: 3px; width: 0; background: var(--pick, var(--accent)); z-index: 2 !important; }
.gpick:hover { transform: translateY(-2px); }
.gpick:hover img { opacity: .65; }
.gpick[aria-selected="true"] { border-color: color-mix(in srgb, var(--pick) 70%, transparent); box-shadow: 0 10px 40px -12px var(--pick); }
.gpick[aria-selected="true"] img { opacity: .8; }
.gpick[aria-selected="true"] .gpick__bar { animation: gbar var(--gdur, 7s) linear forwards; }
.gstage.is-paused .gpick[aria-selected="true"] .gpick__bar { animation-play-state: paused; }
.gstage.is-manual .gpick[aria-selected="true"] .gpick__bar { animation: none; width: 100%; }
@keyframes gbar { from { width: 0; } to { width: 100%; } }

/* ---------- 12. ChatGPT ---------- */
.gpt .eyebrow { color: #74e0c4; }
.research {
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 0; align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-xl);
  background: radial-gradient(100% 120% at 50% 0%, rgba(116, 224, 196, .08), transparent 60%), rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
}
.research__stage { padding: 12px clamp(12px, 2vw, 28px); opacity: .3; transition: opacity .8s var(--ease), transform .8s var(--spring); transform: translateY(8px); }
.research[data-stage="1"] .research__stage--subtitle,
.research[data-stage="2"] .research__stage--subtitle,
.research[data-stage="2"] .research__stage--work,
.research[data-stage="3"] .research__stage { opacity: 1; transform: none; }
.research__stage + .research__stage { border-left: 1px solid var(--line); }
.research__label { font-size: 12px; font-family: var(--font-rounded); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.subtitle-line { font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.3; text-shadow: 0 2px 10px #000; }
.subtitle-line mark { background: none; color: inherit; box-shadow: inset 0 -0.45em 0 color-mix(in srgb, var(--cat-reference) 45%, transparent); }
.research__log { display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.research__log li { display: flex; gap: 10px; align-items: flex-start; opacity: 0; transform: translateX(-6px); transition: opacity .5s, transform .6s var(--spring); }
.research__log li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-top: 8px; flex: none; background: #74e0c4; }
.research[data-stage="2"] .research__log li, .research[data-stage="3"] .research__log li { opacity: 1; transform: none; }
.research__log li:nth-child(2) { transition-delay: .5s; }
.research__log li:nth-child(3) { transition-delay: 1s; }

.fact-card { padding: 22px 24px; border-radius: var(--radius-l); --c: var(--event); border-color: color-mix(in srgb, var(--event) 40%, transparent); }
.fact-card__eyebrow { font-family: var(--font-rounded); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.fact-card h3 { font-size: 22px; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 8px; font-weight: 650; }
.fact-card p { color: var(--text-2); font-size: 15.5px; }
.fact-card__src { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3) !important; }
.fact-card__src a, .source-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.fact-card__src a:hover, .source-link:hover { text-decoration: underline; }

.ask { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; margin-top: clamp(80px, 10vw, 140px); }
.ask__copy > p { color: var(--text-2); font-size: 18px; margin-top: 14px; }
.ask__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ask-chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 550;
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-2);
  transition: background-color .3s, color .3s, border-color .3s;
}
.ask-chip:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.ask-chip[aria-pressed="true"] { color: var(--text); border-color: rgba(116, 224, 196, .5); background: rgba(116, 224, 196, .12); }
.ask__chat { border-radius: var(--radius-xl); padding: 22px; min-height: 340px; display: flex; flex-direction: column; gap: 16px; }
.ask__context { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 12px; font-family: var(--font-rounded); font-weight: 650; letter-spacing: .08em; color: var(--text-2); padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.ask__thread { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 16px; line-height: 1.45; animation: card-in .5s var(--spring) both; }
.bubble--user { align-self: flex-end; background: var(--accent); color: #050912; border-bottom-right-radius: 6px; font-weight: 550; }
.bubble--bot { align-self: flex-start; background: rgba(255, 255, 255, .08); border-bottom-left-radius: 6px; }
.bubble--bot .bubble__src { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.typing { display: inline-flex; gap: 4px; padding: 16px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: .5; } }

/* ---------- 13. Trust ---------- */
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.privacy { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-l); margin-top: 40px; color: var(--cat-place); }
.privacy strong { color: var(--text); display: block; margin-bottom: 4px; }
.privacy p { color: var(--text-2); font-size: 15px; }
.trust__cards { position: relative; }
.fact-card--large { padding: clamp(26px, 3vw, 36px); transform: rotate(-1.5deg); }
.fact-card--large h3 { font-size: clamp(26px, 2.6vw, 34px); }
.fact-card--large p { font-size: 17px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.source-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13.5px; color: var(--text-2); }
.source-pill__mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--text); font-size: 11px; font-weight: 700; }
.source-link { margin-left: auto; font-size: 15px; }
.source-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: flex-end; }
.source-stack span { padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); }

/* ---------- 14. Requirements ---------- */
.req { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.req__item { padding: 32px 28px; border-radius: var(--radius-l); border: 1px solid var(--line); background: rgba(255, 255, 255, .025); display: grid; gap: 12px; align-content: start; }
.req__item--gpt { border-color: rgba(116, 224, 196, .3); background: rgba(116, 224, 196, .04); }
.req__num { font-family: var(--font-mono); color: var(--text-3); font-size: 13px; }
.req__logo { height: 26px; }
.req__logo.is-missing { display: none; }
.req__item h3 { font-size: 24px; letter-spacing: -.02em; font-weight: 650; }
.req__item p { color: var(--text-2); font-size: 15.5px; }
.req__plus { align-self: center; color: var(--text-3); font-size: 28px; font-weight: 300; }
.req__note { text-align: center; color: var(--text-3); margin-top: 32px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid .section-head { position: sticky; top: 120px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 300; color: var(--text-3); transition: transform .4s var(--spring); }
.faq__item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq__item h3 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.01em; }
.faq__item p { color: var(--text-2); font-size: 16.5px; max-width: 46em; padding: 0 40px 24px 0; }

/* ---------- 15. CTA & footer ---------- */
.cta { padding-bottom: var(--section-pad); text-align: center; overflow: hidden; }
.cta__glow { position: absolute; left: 50%; top: 55%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--glow), transparent); opacity: .8; pointer-events: none; }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__icon { width: 112px; height: 112px; border-radius: 26px; margin-bottom: 36px; box-shadow: 0 30px 80px -20px var(--glow), 0 0 0 1px var(--line); }
.display--cta { font-size: clamp(40px, 6.4vw, 84px); margin-bottom: 4px; }
.cta .section-lede { margin: 24px auto 40px; }
.cta__fine { margin-top: 22px; color: var(--text-3); font-size: 14px; }

.footer { border-top: 1px solid var(--line); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--text-3); }
.footer__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.footer__small { margin-top: 10px; }
.footer__attr { display: grid; gap: 12px; }
.footer__tmdb { display: flex; gap: 16px; align-items: center; }
.footer__tmdb-logo { width: 110px; height: 24px; flex: none; }
.footer__tmdb-logo.is-missing::after { font-size: 15px; color: var(--text-2); }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__bottom a { text-decoration: none; color: var(--text-2); }

/* ---------- v2: app-style demo, hero screenshot, Cloud ---------- */
.phone__screen > img, .phone__screen.asset > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--hero .phone__screen { background: #0b0d14; }
.float-card .cat { color: var(--c); }

/* Demo: time row like the app */
.demo__time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.demo__next { margin-left: 14px; font-size: 15px; color: var(--text-3); font-family: var(--font); }
.demo__next b { font-family: var(--font-mono); font-weight: 500; color: var(--text-2); }

/* Demo cards like the app's timeline rows */
.feed-item { grid-template-columns: 26px 1fr; }
.feed-item__time { display: none; }
.feed-item__node { margin: 30px auto 0; }
.feed::before { left: 12px; }
.feed-card { margin-left: 10px; padding: 16px 18px; border-radius: 22px; }
.feed-card__head { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; }
.feed-card__tile {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, rgba(255, 255, 255, .03)); color: var(--c);
}
.feed-card__tile svg { width: 26px; height: 26px; }
.feed-card__tile.avatar { border-radius: 50%; font-size: 15px; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 45%, #223), #111827); color: var(--text); }
.feed-card__kicker { display: flex; gap: 10px; align-items: baseline; font-family: var(--font-rounded); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin-bottom: 3px; }
.feed-card__kicker .mono { letter-spacing: 0; font-weight: 500; font-size: 14px; }
.feed-card h4 { margin: 0; }
.feed-card > p { margin-top: 12px; }
.feed-item.is-locked .feed-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; }
.feed-item.is-locked .feed-card__tile { background: rgba(255, 255, 255, .05); }
.feed-item.is-locked .lock { color: var(--text-3); width: 18px; height: 18px; }
.feed-locked__time { font-family: var(--font-mono); font-size: 14px; color: color-mix(in srgb, var(--c) 70%, var(--text-3)); margin-right: 8px; }
.feed-item.is-locked h4 { font-size: 16.5px; color: var(--text-2); }
.feed-more {
  margin-left: 36px; padding: 14px 18px; border-radius: 22px; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text-3); font-size: 15px;
}
.feed-more .mono { color: var(--text-3); }
.feed-empty-card { margin: 8px 0; padding: 26px 22px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text-2); }
.feed-empty-card strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* Music: listen buttons */
.listen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; color: var(--text-3); font-family: var(--font-rounded); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.listen b { letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 600; color: var(--cat-music); padding: 7px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cat-music) 40%, transparent); background: color-mix(in srgb, var(--cat-music) 10%, transparent); }

/* CouchBuddy Cloud */
.cloud { --cloud: #8fd3ff; }
.cloud .eyebrow { color: var(--cloud); }
.cloud__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.benefits { display: grid; gap: 22px; margin-top: 40px; }
.benefits li { position: relative; padding-left: 38px; }
.benefits li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--cloud) 20%, transparent); box-shadow: inset 0 0 0 1.5px var(--cloud); }
.benefits li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 5px; border-left: 2px solid var(--cloud); border-bottom: 2px solid var(--cloud); transform: rotate(-45deg); }
.benefits strong { display: block; font-size: 18px; font-weight: 650; margin-bottom: 2px; }
.benefits span { color: var(--text-2); font-size: 16px; }
.cloud__visual { position: relative; display: grid; justify-items: center; }
.cloud__phone { max-width: 320px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 120px -30px rgba(0,0,0,.8), 0 0 120px -20px rgba(120, 190, 255, .35); }
.cloud-card { position: absolute; left: -4%; top: 14%; width: 260px; padding: 16px 18px; border-radius: var(--radius-m); font-size: 14px; color: var(--text-2); }
.cloud-card__title { color: var(--text); font-weight: 650; font-size: 15.5px; margin-bottom: 4px; }
.shared { position: absolute; right: -6%; bottom: 8%; width: 290px; padding: 16px 18px; border-radius: var(--radius-m); display: grid; gap: 12px; font-size: 14px; color: var(--text-2); }
.shared__label { font-family: var(--font-rounded); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.shared__label--yes { color: var(--cat-place); }
.shared__label--no { color: var(--cat-reference); }

@media (max-width: 900px) {
  .demo__next { margin-left: 0; width: 100%; font-size: 13px; }
  .feed-card__head { grid-template-columns: 44px 1fr; gap: 12px; }
  .feed-card__tile { width: 44px; height: 44px; border-radius: 13px; }
  .feed-item.is-locked .feed-card { grid-template-columns: 44px 1fr auto; }
  .feed-card__kicker { font-size: 11.5px; }
  .cloud__grid { grid-template-columns: 1fr; }
  .cloud__visual { gap: 14px; }
  .cloud__phone { max-width: 280px; }
  .cloud-card, .shared { position: static; width: 100%; }
}

/* ---------- v3: Plex Library & Player, landscape, pricing ---------- */
.lib { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.lib__item--wide { grid-column: 1 / -1; grid-template-columns: 7fr 4fr; align-items: center; gap: clamp(28px, 5vw, 72px); margin-top: clamp(24px, 4vw, 48px); }
.lib__wide-phone { width: 100%; }
.lib__item { display: grid; gap: 24px; align-content: start; }
.lib__phone { max-width: 250px; justify-self: center; }
.lib__copy .title { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 8px; }
.lib__copy p { color: var(--text-2); font-size: 15.5px; }
.lib__quote { font-family: var(--font-rounded); color: var(--text) !important; font-weight: 600; margin-bottom: 6px; }
.lib__note { text-align: center; color: var(--text-3); margin-top: 48px; font-size: 15px; }

.landscape__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.landscape { --cloud: var(--accent); }
.benefits--plain { margin-top: 32px; }
.phone--landscape { max-width: none; aspect-ratio: 2622 / 1206; border-radius: 48px; }
.phone--landscape::before { display: none; } /* the screenshots already show the screen edge to edge */
.phone--landscape .phone__screen { border-radius: 40px; }
.phone--landscape .phone__screen > img { object-position: center; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 32px 28px; border-radius: var(--radius-l); border: 1px solid var(--line); background: rgba(255, 255, 255, .025); display: grid; gap: 10px; align-content: start; }
.plan h3 { font-size: 22px; letter-spacing: -.02em; font-weight: 650; }
.plan__price { font-family: var(--font-rounded); font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.plan__price span { font-size: 16px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan__trial { color: var(--cat-place); font-size: 14px; font-weight: 600; margin-top: -4px; }
.plan__lede { color: var(--text-2); font-size: 15.5px; }
.plan__plus { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.plan__plus-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan__plus-head strong { font-size: 17px; font-weight: 650; }
.plan__plus-head span { color: var(--text-2); font-size: 14px; }
.plan__plus-head b { font-family: var(--font-rounded); font-size: 20px; font-weight: 700; color: var(--text); }
.plan__plus p:not(.plan__plus-head) { color: var(--text-2); font-size: 14.5px; }
.plan__list { display: grid; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan__list li { position: relative; padding-left: 24px; color: var(--text-2); font-size: 15px; }
.plan__list li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 5px; border-left: 2px solid var(--plan, var(--accent)); border-bottom: 2px solid var(--plan, var(--accent)); transform: rotate(-45deg); }
.plan--cloud { --plan: #8fd3ff; border-color: rgba(143, 211, 255, .35); background: rgba(143, 211, 255, .05); }
.plan--library { --plan: #ffc77a; border-color: rgba(255, 199, 122, .3); background: rgba(255, 199, 122, .04); }
.plan__badge { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: #8fd3ff; color: #06121f; font-size: 12.5px; font-weight: 700; }

@media (max-width: 1080px) {
  .lib { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .lib__item--wide { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .landscape__grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; gap: 28px; }
  .phone--landscape { border-radius: 30px; padding: 7px; }
  .phone--landscape .phone__screen { border-radius: 24px; }
}
@media (max-width: 560px) {
  .lib { grid-template-columns: 1fr; }
  .lib__phone { max-width: 240px; }
}

/* ---------- v4: Research and Cloud marks, language switch ---------- */
.eco__mark { display: inline-flex; align-items: center; gap: 8px; height: 30px; font-family: var(--font-rounded); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.eco__mark svg { width: 22px; height: 22px; }
.eco__node--hero .eco__mark { color: #74e0c4; }
.eco__node--cloud { box-shadow: inset 0 1px 0 rgba(143, 211, 255, .25); }
.eco__node--cloud .eco__mark { color: #8fd3ff; }
.nav__lang { margin-right: 12px; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.nav__lang:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.plan__price b { font-weight: inherit; }
@media (max-width: 900px) { .nav__lang { margin-left: auto; } }
@media (max-width: 430px) { .nav__lang { margin-right: 8px; padding: 4px 9px; } }

/* ---------- 16. Motion & reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--spring); }
.js .reveal.is-visible { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  :root { --palette-duration: 0s; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1080px) {
  .float-card--a { left: -2%; }
  .float-card--b { right: -2%; }
  .nav__links { gap: 20px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav .label-long { display: none; }
  .nav .label-short { display: inline; }

  /* Hero: copy first, phone tucked under it */
  .hero { min-height: auto; padding-block: 104px 24px; align-items: flex-start; }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--background) 30%, transparent), var(--background) 60%); }
  .hero__fanart { inset: 0 0 40%; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; --h: 54px; }
  .hero__status { gap: 10px 18px; margin-top: 28px; }
  .phone--hero { max-width: 290px; }
  .float-card { width: 190px; font-size: 13px; padding: 12px 14px; }
  .float-card--a { left: 0; top: 14%; }
  .float-card--b { right: 0; bottom: 10%; }

  /* Ecosystem: vertical flow */
  .eco { grid-template-columns: 1fr; gap: 12px; }
  .eco__node--hero { transform: none; order: -1; }
  .eco__node { padding: 24px; }
  .eco__lines { display: none; }
  .eco__result { margin-top: 12px; border-radius: var(--radius-l); justify-self: stretch; }

  /* Demo: full-bleed native card */
  .experience__grid { grid-template-columns: 1fr; gap: 32px; }
  .experience__copy { position: static; }
  .legend, .hint { display: none; }
  .demo { margin-inline: calc(var(--gutter) * -1 + 6px); border-radius: 32px; }
  .demo__header { height: 230px; }
  .demo__media { left: 20px; right: 20px; }
  .demo__poster { width: 56px; }
  .demo__body { padding: 4px 18px 22px; }
  .demo .rail { height: 52px; }
  .demo .rail__track { top: 30px; height: 6px; }
  .demo .rail__thumb { top: 33px; width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .segmented button { font-size: 14px; padding: 0 10px; gap: 6px; flex: none; }
  .segmented button .icon { display: none; }
  .feed { min-height: 380px; }
  .feed::before { left: 10px; }
  .feed-item { grid-template-columns: 22px 1fr; }
  .feed-more { margin-left: 30px; }
  .feed-card { padding: 14px; }
  .feed-card h4 { font-size: 16.5px; }
  .feed-card p { font-size: 14.5px; }
  .avatar { width: 44px; height: 44px; font-size: 14px; }

  /* Features: stacked chapters with their own screenshots */
  .story { grid-template-columns: 1fr; }
  .story__stage { display: none; }
  .step { min-height: auto; opacity: 1; padding-block: 0 72px; }
  .step__shot { display: block; width: 72%; max-width: 300px; aspect-ratio: 1206 / 2622; max-height: 520px; margin: 18px auto 0; border-radius: 34px; border: 6px solid #12151c; }
  .step__shot.is-missing { max-height: 200px; aspect-ratio: auto; height: 200px; width: 100%; max-width: none; border-radius: var(--radius-l); border-width: 1px; border-color: var(--line); }
  .mini-timeline__row { grid-template-columns: 46px 1fr auto; }
  .mini-timeline__row .cat { grid-column: 2; grid-row: 1; }
  .mini-timeline__row > span:nth-child(3) { grid-column: 2; grid-row: 2; }
  .extras { grid-template-columns: 1fr 1fr; margin-top: 16px; }

  /* Gallery: stacked stage, swipeable picker */
  .gstage { padding-top: 48px; }
  .gstage__inner { grid-template-columns: 1fr; gap: 28px; }
  .gstage__bg img { object-position: 60% 20%; }
  .gstage__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--background) 45%, transparent) 0%, color-mix(in srgb, var(--background) 70%, transparent) 40%, var(--background) 100%); }
  .gstage__now { margin-top: 28px; min-height: 0; }
  .gstage__logo { height: 48px; max-width: 220px; }
  .gstage__body { font-size: 16.5px; }
  .gstage__device { justify-self: center; }
  .gstage__phone { width: min(72vw, 290px); }
  .gpicker { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); margin-top: 28px; }
  .gpicker::-webkit-scrollbar { display: none; }
  .gpick { flex: none; width: 168px; height: 92px; scroll-snap-align: start; }

  /* ChatGPT: vertical research sequence */
  .research { grid-template-columns: 1fr; padding: 20px; }
  .research__stage { padding: 18px 4px; }
  .research__stage + .research__stage { border-left: 0; border-top: 1px solid var(--line); }
  .ask { grid-template-columns: minmax(0, 1fr); }
  .ask > * { min-width: 0; }
  .ask__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .ask__chips::-webkit-scrollbar { display: none; }
  .ask-chip { flex: none; }
  .ask__chat { min-height: 300px; padding: 18px; }

  .trust__grid { grid-template-columns: 1fr; }
  .fact-card--large { transform: none; }
  .source-stack { justify-content: flex-start; }

  .req { grid-template-columns: 1fr; gap: 0; }
  .req__item { padding: 24px; }
  .req__plus { justify-self: center; padding: 6px 0; font-size: 22px; }

  .cta__icon { width: 92px; height: 92px; border-radius: 22px; }
  .cta .btn--large { width: 100%; }
  .cta__glow { width: 500px; height: 500px; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid .section-head { position: static; margin-bottom: 24px; }
  .faq__item summary { min-height: 56px; padding: 16px 0; }
  .faq__item p { padding-right: 0; }
  .footer__bottom { flex-direction: column; gap: 10px; }
}

@media (max-width: 430px) {
  .float-card--b { display: none; }
  .extras { grid-template-columns: 1fr; }
  .demo__meta .pill-outline { display: none; }
}
.feed-card__sub { color: var(--text-2); font-size: 15px; margin-top: 2px; }

/* ---------- 18. Two ways (the app's Library showcase) ---------- */
.hero__also { margin-top: 16px; max-width: 34em; color: var(--text-2); font-size: clamp(15px, 1.3vw, 17px); }
.hero__also a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; white-space: nowrap; }

.twoways { --cloud: var(--accent); }
.twoways__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.twoways__more { color: var(--accent); white-space: nowrap; font-weight: 600; }
.twoways__visual { display: grid; gap: 22px; justify-items: center; }

/* Drawn in a 360×300 box (as in the app), scaled to the frame by script.js (--k). */
.sc-frame { position: relative; width: 100%; max-width: 560px; aspect-ratio: 360 / 300; }
.sc-stage { position: absolute; left: 0; top: 0; width: 360px; height: 300px; transform: scale(var(--k, 1)); transform-origin: 0 0; }
.sc-stage > * { position: absolute; }

.sc-pic { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(#1a294d, #4d2e4d 50%, #d97a4d); }
.sc-pic__sun { position: absolute; left: 62%; top: 50%; height: 30%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; background: rgba(255, 199, 128, .85); filter: blur(1.5px); animation: sc-sun 19s ease-in-out infinite; }
.sc-pic__hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 36%; fill: rgba(0, 0, 0, .55); }
@keyframes sc-sun {
  0%, 100% { transform: translate(0, -9%); }
  25% { transform: translate(21%, 0); }
  50% { transform: translate(0, 9%); }
  75% { transform: translate(-21%, 0); }
}

.sc-glow { left: -18px; top: -58px; width: 396px; height: 396px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); filter: blur(30px); }

/* The TV: off while the iPhone plays; the picture folds into a line, the standby light comes on. */
.sc-tv { left: 0; top: 17px; width: 288px; height: 162px; padding: 5px; border-radius: 12px; background: #0f0f0f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .9s var(--spring); }
.sc-tv::after { content: ""; position: absolute; left: 109px; top: 168px; width: 70px; height: 6px; border-radius: 3px; background: #1f1f1f; }
.sc-tv__screen { position: relative; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; background: #000; }
.sc-tv__screen .sc-pic { transition: transform .5s var(--ease), opacity .5s var(--ease), filter .5s var(--ease); }
.sc-tv__standby { position: absolute; right: 14px; bottom: 1.5px; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 59, 48, .85); box-shadow: 0 0 3px #ff3b30; opacity: 0; transition: opacity .4s var(--ease) .3s; }
.sc-stage:not([data-scene="second"]) .sc-tv { transform: scale(.94); }
.sc-stage:not([data-scene="second"]) .sc-tv__screen .sc-pic { transform: scale(.9, .01); opacity: 0; filter: brightness(1.6); }
.sc-stage:not([data-scene="second"]) .sc-tv__standby { opacity: 1; }

/* What plays on the TV reaching the iPhone. */
.sc-trail { left: 0; top: 0; width: 360px; height: 300px; overflow: visible; pointer-events: none; transition: opacity .4s var(--ease); }
.sc-trail path { fill: none; stroke: var(--accent); stroke-opacity: .25; stroke-width: 1; stroke-dasharray: 2 4; stroke-linecap: round; }
.sc-trail circle { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.sc-stage:not([data-scene="second"]) .sc-trail { opacity: 0; }

/* The iPhone, lying down; standing next to the TV it's turned a quarter, its content turned back. */
.sc-phone { left: 47px; top: 84px; width: 266px; height: 132px; border-radius: 26px; background: #0d0d0d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 14px 24px rgba(0, 0, 0, .55), 0 0 30px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translate(97px, 18px) rotate(90deg); transition: transform .9s var(--spring), box-shadow .9s var(--ease); }
.sc-stage:not([data-scene="second"]) .sc-phone { transform: translate(0, 46px) scale(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 14px 24px rgba(0, 0, 0, .55), 0 0 30px color-mix(in srgb, var(--accent) 50%, transparent); }
.sc-screen { position: absolute; inset: 5px; border-radius: 21px; overflow: hidden; background: #0b0f1a; }
.sc-island { position: absolute; left: 10px; top: 49px; width: 9px; height: 34px; border-radius: 5px; background: #000; }

.sc-icon { display: grid; place-items: center; flex: none; width: 13px; height: 13px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.sc-icon svg { width: 7.5px; height: 7.5px; }

/* Now Playing's timeline view, standing up next to the TV. */
.sc-tl { position: absolute; left: 67px; top: -67px; width: 122px; height: 256px; padding: 26px 9px 10px; display: flex; flex-direction: column; gap: 7px; transform: rotate(-90deg); transition: opacity .2s var(--ease); }
.sc-tl__art { position: relative; margin: -26px -9px 0; height: 84px; }
.sc-tl__art .sc-pic { -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.sc-tl__title { position: absolute; left: 9px; bottom: -10px; display: grid; gap: 4px; }
.sc-tl__title i, .sc-tl__title b { display: block; border-radius: 9px; }
.sc-tl__title > i { width: 70px; height: 7px; background: rgba(255, 255, 255, .95); }
.sc-tl__title span { display: flex; align-items: center; gap: 4px; }
.sc-tl__title span i { width: 20px; height: 4px; background: rgba(255, 255, 255, .7); }
.sc-tl__title span b { width: 46px; height: 9px; box-shadow: inset 0 0 0 .7px rgba(255, 255, 255, .4); }
.sc-tl__time { margin-top: 10px; font: 500 7.5px/1 var(--font-mono); color: var(--text-2); }
.sc-tl__bar { position: relative; height: 10px; }
.sc-tl__bar > span { position: absolute; }
.sc-tl__dot { top: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--c); opacity: .4; transition: opacity .3s var(--ease); }
.sc-tl__dot.is-lit { opacity: 1; }
.sc-tl__track, .sc-tl__fill { left: 0; top: 5px; height: 1.5px; border-radius: 1px; }
.sc-tl__track { right: 0; background: rgba(255, 255, 255, .15); }
.sc-tl__fill { background: #fad673; }
.sc-tl__head { top: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fff; }
.sc-card { display: grid; gap: 5px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .8px color-mix(in srgb, var(--c) 35%, transparent); animation: sc-card .4s var(--spring); }
.sc-card i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.sc-card__top { display: flex; align-items: center; gap: 4px; }
.sc-card__top i { width: 34px; height: 3.5px; background: color-mix(in srgb, var(--c) 80%, transparent); }
.sc-card > i:nth-of-type(1) { width: 84px; height: 4px; background: rgba(255, 255, 255, .85); }
.sc-card > i:nth-of-type(2) { width: 90px; }
.sc-card > i:nth-of-type(3) { width: 72px; }
.sc-card > i:nth-of-type(4) { width: 52px; }
@keyframes sc-card { from { opacity: 0; transform: translateY(8px); } }

/* The built-in player in landscape: the picture with its timeline, the facts beside it. */
.sc-pl { position: absolute; inset: 0; display: flex; align-items: flex-start; gap: 8px; padding: 9px 6px 9px 18px; opacity: 0; transition: opacity .2s var(--ease); }
.sc-stage:not([data-scene="second"]) .sc-pl { opacity: 1; transition: opacity .3s var(--ease) .45s; }
.sc-stage:not([data-scene="second"]) .sc-tl { opacity: 0; }
.sc-pl__video { flex: none; width: 158px; }
.sc-pl__video > .sc-pic { position: relative; height: 89px; border-radius: 5px; }
.sc-pl__bar { position: relative; height: 8px; margin-top: 7px; }
.sc-pl__bar > span { position: absolute; }
.sc-pl__track, .sc-pl__fill { left: 0; top: 2.5px; height: 3px; border-radius: 2px; }
.sc-pl__track { right: 0; background: rgba(255, 255, 255, .15); }
.sc-pl__fill { background: rgba(255, 255, 255, .75); }
.sc-pl__dot { top: 4px; width: 4.5px; height: 4.5px; border-radius: 50%; translate: -50% -50%; background: var(--c); transition: width .3s var(--spring), height .3s var(--spring), box-shadow .3s var(--ease); }
.sc-pl__dot.is-lit { width: 7px; height: 7px; box-shadow: 0 0 4px var(--c); }
.sc-pl__side { position: relative; width: 66px; }
.sc-pl__rows { display: grid; gap: 3px; transition: opacity .2s var(--ease); }
.sc-row { display: flex; align-items: center; gap: 5px; padding: 2px; border-radius: 5px; opacity: .35; transition: opacity .25s var(--ease), background-color .25s var(--ease); }
.sc-row.is-lit { opacity: 1; background: color-mix(in srgb, var(--c) 12%, transparent); }
.sc-row__lines { display: grid; gap: 2.5px; }
.sc-row__lines i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .7); }
.sc-row__lines i + i { height: 2.5px; background: rgba(255, 255, 255, .3); }
.sc-loc { --c: var(--cat-place); position: absolute; left: 0; top: 0; width: 66px; display: grid; gap: 4px; padding: 6px; border-radius: 7px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .8px color-mix(in srgb, var(--c) 45%, transparent); opacity: 0; visibility: hidden; }
.sc-loc p { font: 700 8px/1.1 var(--font-rounded); color: var(--c); white-space: nowrap; }
.sc-loc > i { display: block; width: var(--w); height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); transform-origin: left; transform: scaleX(0); }
.sc-loc > i:first-of-type { background: rgba(255, 255, 255, .8); }
.sc-loc__map { position: relative; height: 34px; border-radius: 4px; background: #143838; }
.sc-loc__map svg { width: 100%; height: 100%; }
.sc-loc__map path { fill: none; stroke: var(--c); stroke-opacity: .7; stroke-width: 1; stroke-dasharray: 3 2; stroke-linecap: round; }
.sc-loc__pin { position: absolute; left: 44px; top: 7px; width: 10px; height: 10px; color: var(--c); transform: scale(0); }
.sc-stage[data-scene="facts"] .sc-pl__rows { opacity: 0; }
.sc-stage[data-scene="facts"] .sc-loc { visibility: visible; }

/* The TV's picture on its way to the iPhone. */
.sc-fly { left: 48px; top: 133.6px; width: 189.6px; height: 106.8px; border-radius: 6px; overflow: hidden; box-shadow: 0 8px 16px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.sc-fly.is-flying { left: 5px; top: 22px; width: 278px; height: 152px; border-radius: 8px; opacity: 1; transition: none; }
.sc-fly.is-flying.is-landing { left: 48px; top: 133.6px; width: 189.6px; height: 106.8px; border-radius: 6px; transition: left .9s var(--spring), top .9s var(--spring), width .9s var(--spring), height .9s var(--spring), border-radius .9s var(--spring); }

.sc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sc-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border: 0; border-radius: 18px; font: 600 14px/1 var(--font-rounded); color: var(--text-2); background: rgba(255, 255, 255, .07); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.sc-chip svg { width: 13px; height: 13px; }
.sc-chip:hover { color: var(--text); }
.sc-chip[aria-pressed="true"] { color: #000; background: var(--accent); }
.sc-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .twoways__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-trail circle, .sc-fly { display: none; }
}
@media (max-width: 430px) {
  .sc-chips { gap: 6px; }
  .sc-chip { height: 32px; padding: 0 11px; gap: 5px; font-size: 13px; }
}

/* ---------- 19. Beta waiting list ---------- */
.signup { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px 22px; width: 100%; max-width: 640px; margin-top: 8px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-l); text-align: left; }
.signup__field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.signup__field--wide, .signup__consent, .signup .btn, .signup__status, .signup__done { grid-column: 1 / -1; }
.signup label, .signup legend { font: 600 14px/1.3 var(--font-rounded); color: var(--text); padding: 0; }
.signup label span, .signup legend span { color: var(--text-3); font-weight: 500; }
.signup input:not([type=radio]):not([type=checkbox]), .signup select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05);
  color: var(--text); font: 16px var(--font); appearance: none; }
.signup select { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(-45deg, transparent 50%, var(--text-2) 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.signup select option { color: #000; }
.signup input::placeholder { color: var(--text-3); }
.signup input:focus-visible, .signup select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.signup__choices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.signup__choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-strong);
  font-weight: 550; color: var(--text-2); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.signup__choices input { accent-color: var(--accent); margin: 0; }
.signup__choices label:has(input:checked) { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.signup__choices label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.signup__consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--text-2) !important; cursor: pointer; }
.signup__consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.signup__consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.signup .btn { width: 100%; }
.signup .btn:disabled { opacity: .6; cursor: progress; }
.signup__status { min-height: 1.4em; margin: -6px 0 0; font-size: 14px; color: var(--text-2); text-align: center; }
.signup__status[data-tone="bad"] { color: #ff9e9e; }
.signup__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup__done { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.5; color: var(--text); }
.signup__done span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #000; font-weight: 700; }
@media (max-width: 560px) {
  .signup { grid-template-columns: 1fr; }
}
