/* ==========================================================================
   LoveShorts — marketing site
   Palette mirrors the app (app/lib/core/theme/app_colors.dart).
   ========================================================================== */

@font-face {
  font-family: 'Roboto Condensed';
  src: url('../fonts/RobotoCondensed-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Inter 4 variable, Google Fonts subsets (OFL, assets/fonts/OFL-Inter.txt). */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #050505;
  --ink-deep: #000000;
  --surface: #121012;
  --surface-2: #1b181c;
  --surface-3: #242027;

  --magenta: #ff315f;
  --pink: #ff5a78;
  --violet: #d42b9c;
  --gold: #ffc54a;

  --text: #f7f7f7;
  --muted: #a8a3ab;
  --dim: #6b656e;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);

  --grad-primary: linear-gradient(90deg, #d42b9c 0%, #f32f73 56%, #ff5c68 100%);
  --grad-gold: linear-gradient(90deg, #ffe8a2 0%, #ffc75b 100%);

  --shell: min(1200px, 100% - 2.5rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --font-display: 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--magenta);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------- shared -- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  position: relative;
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

.section-head h2 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }

.section-head .lede {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[hidden] { display: none; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 10px 32px -12px rgba(255, 49, 95, 0.85);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(255, 49, 95, 0.95); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* Store badges (drawn in CSS so no external image is needed) */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.15rem 0.65rem;
  min-width: 172px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}
.store-badge svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store-badge span { display: block; line-height: 1.15; }
.store-badge .small {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.store-badge .large {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(5, 5, 5, 0.9);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.005em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.site-nav a {
  font-size: 0.93rem;
  color: var(--muted);
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.lang-switch button {
  padding: 0.3rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}
.lang-switch button[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.header-cta { padding: 0.62rem 1.25rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 60% 50% at 78% 8%, rgba(255, 49, 95, 0.26), transparent 70%),
    radial-gradient(ellipse 50% 45% at 8% 25%, rgba(212, 43, 156, 0.18), transparent 70%);
  pointer-events: none;
}

.hero .shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem 0.42rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 4px rgba(255, 49, 95, 0.18);
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 0.98;
}
.hero h1 .accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin-top: 1.5rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2.1rem 0 1.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.6rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--border);
}
.hero-stats .stat { display: flex; flex-direction: column; }

.hero-stats .value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .label {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 1080 / 2280;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2b262d 0%, #0b0a0c 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 45px 90px -30px rgba(0, 0, 0, 0.95),
    0 0 90px -20px rgba(255, 49, 95, 0.35);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: #000;
}
.phone-screen img,
.phone-screen iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.phone::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: #08070a;
  z-index: 3;
}

.hero-float {
  position: absolute;
  width: 118px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--border);
  animation: float 7s ease-in-out infinite;
}
.hero-float img { aspect-ratio: 2 / 3; object-fit: cover; }
.hero-float.one { left: -8%; top: 14%; }
.hero-float.two { right: -6%; bottom: 12%; animation-delay: -3.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------------------------------------------------------------- watch -- */

.watch { background: linear-gradient(180deg, var(--ink) 0%, #0b090c 45%, var(--ink) 100%); }

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.player-frame {
  position: relative;
  justify-self: center;
  width: min(340px, 80vw);
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2b262d 0%, #0b0a0c 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 45px 90px -30px rgba(0, 0, 0, 0.95),
    0 0 100px -24px rgba(255, 49, 95, 0.42);
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--player-aspect, 9 / 16);
  border-radius: 32px;
  overflow: hidden;
  background: #000;
}
.player-stage img,
.player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-stage img { object-fit: cover; }

.pill-free {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #2a1a00;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.watch-copy .lede { margin-top: 1.15rem; color: var(--muted); }
.watch-points { display: grid; gap: 1.6rem; margin: 2.25rem 0; }
.watch-point { display: flex; gap: 1rem; }
.watch-point .icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 49, 95, 0.12);
  border: 1px solid rgba(255, 49, 95, 0.28);
  color: var(--pink);
}
.watch-point .icon svg { width: 20px; height: 20px; }
.watch-point h3 { font-size: 1.15rem; }
.watch-point p { margin-top: 0.3rem; color: var(--muted); font-size: 0.96rem; }

/* -------------------------------------------------------------- stories -- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-chip {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip[aria-pressed='true'] {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.6rem;
}

.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 90, 120, 0.45);
  box-shadow: 0 28px 60px -30px rgba(255, 49, 95, 0.6);
}
.story-card.is-hidden { display: none; }

.story-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.story-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.story-card:hover .story-cover img { transform: scale(1.05); }
.story-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 5, 0.9) 100%);
}

.story-rank {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.story-free {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #2a1a00;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.story-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.35rem;
}
.story-body h3 { font-size: 1.28rem; }
/* The title link covers the whole card; one link per card for screen readers. */
.story-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}
.story-link:focus-visible { outline: none; }
.story-card:has(.story-link:focus-visible) { outline: 2px solid var(--pink); outline-offset: 3px; }
.story-body .synopsis {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.story-tag {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--dim);
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--dim);
}
.story-meta .sep { color: var(--surface-3); }

.stories-empty {
  padding: 3rem 0;
  color: var(--dim);
  text-align: center;
}
.stories-empty[hidden] { display: none; }

/* ------------------------------------------------------------------ app -- */

.app-section { background: linear-gradient(180deg, var(--ink) 0%, #0c0a0d 50%, var(--ink) 100%); }

.shots {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.75rem;
  margin-bottom: 3.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; }

.shot {
  flex: none;
  width: 222px;
  scroll-snap-align: start;
}
.shot img {
  width: 100%;
  aspect-ratio: 1080 / 2414;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.shot .caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--dim);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.feature .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 49, 95, 0.12);
  border: 1px solid rgba(255, 49, 95, 0.26);
  color: var(--pink);
  margin-bottom: 1.1rem;
}
.feature .icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.2rem; }
.feature p { margin-top: 0.55rem; color: var(--muted); font-size: 0.94rem; }

/* --------------------------------------------------------------- unlock -- */

.unlock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.unlock-card {
  position: relative;
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.unlock-card h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.unlock-card p { color: var(--muted); font-size: 0.94rem; }
.unlock-card .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 0.9rem;
}

.unlock-card.is-vip {
  grid-column: 1 / -1;
  border-color: rgba(255, 197, 74, 0.35);
  background:
    radial-gradient(ellipse 70% 130% at 100% 0%, rgba(255, 197, 74, 0.14), transparent 70%),
    var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}
.unlock-card.is-vip h3 {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vip-plans { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.vip-plan {
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(255, 197, 74, 0.32);
  border-radius: 14px;
  background: rgba(255, 197, 74, 0.06);
  text-align: center;
  min-width: 104px;
}
.vip-plan .name { font-size: 0.78rem; color: var(--muted); }
.vip-plan .price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 0.15rem;
}

.unlock-note {
  margin-top: 1.75rem;
  max-width: 78ch;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--dim);
}

/* ------------------------------------------------------------------ cta -- */

.cta {
  position: relative;
  margin: 0 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.cta-inner {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.75rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 120% at 85% 10%, rgba(255, 49, 95, 0.3), transparent 65%),
    radial-gradient(ellipse 60% 100% at 10% 90%, rgba(212, 43, 156, 0.22), transparent 65%),
    var(--surface);
  text-align: center;
}
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta-inner p { margin: 1rem auto 2.1rem; max-width: 46ch; color: var(--muted); }
.cta .store-badges { justify-content: center; }

/* ------------------------------------------------------- store chooser -- */

.store-dialog {
  width: min(580px, calc(100% - 2rem));
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.store-dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.store-dialog__content { position: relative; padding: 2.2rem; }
.store-dialog h2 { margin-top: 0.55rem; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.store-dialog p { margin-top: 0.7rem; color: var(--muted); }
.store-dialog__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
}
.store-dialog__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.store-dialog__body { display: flex; align-items: center; gap: 1.6rem; margin-top: 1.75rem; }
.store-dialog__qr { flex: none; display: grid; justify-items: center; gap: 0.6rem; margin: 0; }
.store-dialog__qr[hidden] { display: none; }
.store-dialog__qr-code {
  width: 172px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.store-dialog__qr-code svg { display: block; width: 100%; height: 100%; }
.store-dialog__qr figcaption { font-size: 0.78rem; color: var(--dim); }
.store-dialog__choices { flex: 1; display: grid; gap: 0.8rem; }
.store-dialog__choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.8rem 1.2rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  transition: background 0.18s ease, transform 0.18s ease;
}
.store-dialog__choice:hover { color: var(--text); background: rgba(255, 49, 95, 0.16); transform: translateY(-1px); }
.store-dialog__choice.is-disabled { cursor: not-allowed; opacity: 0.45; pointer-events: none; }

/* ------------------------------------------------------------------ faq -- */

.faq-shell { max-width: 880px; }
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(255, 90, 120, 0.4); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-item summary:focus-visible { outline-offset: -2px; border-radius: var(--radius); }
.faq-item p { padding: 0 1.35rem 1.3rem; color: var(--muted); font-size: 0.96rem; }

/* ---------------------------------------------------------- story pages -- */

.story-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.story-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 50% 50% at 15% 20%, rgba(255, 49, 95, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 45% at 90% 10%, rgba(212, 43, 156, 0.16), transparent 70%);
  pointer-events: none;
}
.story-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story-hero__cover {
  justify-self: center;
  width: min(390px, 100%);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: 0 45px 90px -30px rgba(0, 0, 0, 0.95), 0 0 100px -24px rgba(255, 49, 95, 0.42);
}
.story-hero__cover img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.story-hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.story-hero .story-tags { margin-top: 1.1rem; }
.story-hero .story-tag { font-size: 0.78rem; color: var(--muted); }
.story-hero .lede { margin-top: 1.25rem; max-width: 60ch; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.14rem); }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--dim);
}
.breadcrumb li + li::before { content: '/'; margin-right: 0.4rem; color: var(--surface-3); }
.breadcrumb a { color: var(--muted); transition: color 0.18s ease; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); }

.story-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.4rem;
  margin: 1.75rem 0 2rem;
  padding: 1.2rem 0;
  border-block: 1px solid var(--border);
}
.story-fact { display: flex; flex-direction: column; }
.story-fact dt { order: 2; font-size: 0.78rem; color: var(--dim); }
.story-fact dd { order: 1; margin: 0; font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }

.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.episode {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.episode__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  font-family: var(--font-display);
}
.episode__name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.episode__label { font-size: 0.92rem; }
.episode__title { overflow: hidden; font-size: 0.8rem; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.episode__time { font-size: 0.8rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.episode__access {
  flex: none;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
}
.episode__access.is-free { color: #2a1a00; background: var(--grad-gold); border-color: transparent; }

.story-how { background: linear-gradient(180deg, var(--ink) 0%, #0b090c 50%, var(--ink) 100%); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: 0;
  list-style: none;
}
.how-step { padding: 1.75rem 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.how-step .num { margin-bottom: 0.9rem; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.14em; color: var(--pink); }
.how-step h3 { margin-bottom: 0.55rem; font-size: 1.25rem; }
.how-step p:last-child { color: var(--muted); font-size: 0.94rem; }
.story-how .faq-list { max-width: 880px; }

/* ---------------------------------------------------------- legal pages -- */

.legal { padding-top: clamp(2.5rem, 6vw, 5rem); }
.legal-shell { max-width: 820px; }
.legal-head { margin-bottom: clamp(1rem, 3vw, 2rem); }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.legal-updated { margin-top: 0.8rem; font-size: 0.85rem; color: var(--dim); }
.legal-head .lede { margin-top: 1.25rem; color: var(--muted); font-size: 1.08rem; }
.legal-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.legal-section h2 { margin-bottom: 0.9rem; font-size: clamp(1.5rem, 3.5vw, 1.9rem); }
.legal-section p,
.legal-section ul { color: var(--muted); font-size: 0.98rem; }
.legal-section * + p,
.legal-section * + ul { margin-top: 0.8rem; }
.legal-section ul { display: grid; gap: 0.45rem; margin-bottom: 0; padding-left: 1.2rem; }
.legal a:not(.btn) {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 90, 120, 0.6);
  text-underline-offset: 2px;
}
.legal code { padding: 0.1rem 0.35rem; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 0.86em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.legal-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.88rem; line-height: 1.5; }
.legal-table th,
.legal-table td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.legal-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--surface);
}
.legal-table tbody tr:last-child > * { border-bottom: 0; }
.legal-table td { color: var(--muted); }
.legal-table th[scope='row'] { font-weight: 500; white-space: nowrap; }

/* ------------------------------------------------------------ /get page -- */

.get-page { padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem); text-align: center; }
.get-shell { display: flex; flex-direction: column; align-items: center; max-width: 560px; }
.get-icon { width: 96px; height: 96px; margin-bottom: 1.75rem; border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(255, 49, 95, 0.6); }
.get-page h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.get-page .lede { margin-top: 1rem; color: var(--muted); }
.get-page .store-badges { justify-content: center; margin-top: 2rem; }
.get-back { margin-top: 1.75rem; font-size: 0.9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.get-back:hover { color: var(--text); }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  background: #030303;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--dim); font-size: 0.9rem; max-width: 34ch; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--muted); transition: color 0.18s ease; }
.footer-col a:hover { color: var(--text); }
.link-button {
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.18s ease;
}
.link-button:hover { color: var(--text); }
.link-button[hidden] { display: none; }

/* -------------------------------------------------------------- consent -- */

.consent-banner {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin-inline: auto;
  padding: 1rem 1.2rem;
  color: var(--muted);
  background: rgba(18, 16, 18, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  font-size: 0.88rem;
  line-height: 1.5;
}
.consent-banner[hidden] { display: none; }
.consent-banner p { flex: 1 1 320px; }
.consent-banner a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent-banner__actions { display: flex; gap: 0.6rem; }
.consent-banner .btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
@media (max-width: 560px) {
  .consent-banner__actions { flex: 1 1 100%; }
  .consent-banner__actions .btn { flex: 1; }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--dim);
}
.footer-bottom p { max-width: 70ch; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1024px) {
  .hero .shell,
  .watch-grid,
  .story-hero__grid { grid-template-columns: 1fr; }
  .story-hero__cover { width: min(260px, 70%); }
  .hero-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .unlock-card.is-vip { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --shell: min(1200px, 100% - 2rem); }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem 1rem 1.5rem;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a {
    padding: 0.9rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .header-actions { order: 3; }
  .header-cta { display: none; }

  .hero-float { display: none; }
  .hero-stats { gap: 1.5rem 2rem; }
  .how-steps { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .story-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .story-body { padding: 0.9rem 0.95rem 1.1rem; }
  .story-body h3 { font-size: 1.05rem; }
  .story-body .synopsis { font-size: 0.84rem; }
  .story-tags { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .store-badge { flex: 1 1 100%; }
  .store-dialog__content { padding: 2rem 1.4rem 1.6rem; }
  .store-dialog__body { flex-direction: column; align-items: stretch; }
  .store-dialog__qr { display: none; }
  .story-facts { gap: 1rem 1.6rem; }
  .story-fact dd { font-size: 1.45rem; }
  .episode-list { grid-template-columns: 1fr; }
  .faq-item summary { padding: 1rem 1.1rem; font-size: 1.05rem; }
  .faq-item p { padding: 0 1.1rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
