/* ==========================================================================
   Storyteller — storyteller.tools
   Design system: dark, high‑contrast, OKLCH palette, fluid type, container
   queries, scroll‑driven reveals, reduced‑motion safe. No framework.
   ========================================================================== */

/* ---------- Fonts (self‑hosted, latin subsets) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  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: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  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;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Brand (matches the app icon: deep navy, electric blue, macaw orange) */
  --navy-0: oklch(13% 0.045 272);
  --navy-1: oklch(17% 0.05 270);
  --navy-2: oklch(22% 0.055 268);
  --navy-3: oklch(28% 0.06 266);
  --blue:   oklch(62% 0.2 258);
  --blue-2: oklch(72% 0.16 240);
  --orange: oklch(78% 0.17 62);
  --orange-2: oklch(70% 0.19 45);
  --violet: oklch(58% 0.2 300);

  --ink: oklch(97% 0.01 260);
  --ink-2: oklch(82% 0.02 260);
  --ink-3: oklch(66% 0.03 260);
  --line: color-mix(in oklab, var(--ink) 10%, transparent);
  --line-2: color-mix(in oklab, var(--ink) 18%, transparent);
  --glass: color-mix(in oklab, var(--navy-2) 72%, transparent);

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --radius-xl: 36px;

  --shadow-1: 0 1px 0 color-mix(in oklab, white 6%, transparent) inset, 0 10px 30px -12px oklch(0% 0 0 / .6);
  --glow-blue: 0 0 0 1px color-mix(in oklab, var(--blue) 40%, transparent), 0 20px 60px -20px color-mix(in oklab, var(--blue) 60%, transparent);
  --glow-orange: 0 0 0 1px color-mix(in oklab, var(--orange) 40%, transparent), 0 20px 60px -20px color-mix(in oklab, var(--orange) 55%, transparent);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* Fluid type scale */
  --fs-900: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);
  --fs-800: clamp(2rem, 1.2rem + 3.2vw, 3.6rem);
  --fs-700: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem);
  --fs-600: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  --fs-500: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  --fs-400: 1rem;
  --fs-300: .9rem;
  --fs-200: .8rem;

  --measure: 64ch;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 10vw, 8.5rem);

  /* App Store / Google Play badges (Apple spec: 40px min height; we scale in lockstep) */
  --store-badge-h: 40px;
  --store-badge-h-lg: 44px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: linear(0, .006, .025 2.8%, .101 6.1%, .539 18.9%, .721 25.3%, .849 31.5%, .937 38.1%, .968 41.8%, .991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  hanging-punctuation: first last;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-0);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--orange); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in oklab, var(--orange) 70%, transparent); color: var(--navy-0); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; padding: .6rem 1rem; background: var(--orange); color: var(--navy-0); border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-800); }
.section-head p { margin-top: 1rem; font-size: var(--fs-500); color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-300); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; border-radius: 2px; }
em.serif, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--orange); }

/* ---------- Background ambience ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 15% 0%, color-mix(in oklab, var(--blue) 28%, transparent), transparent 70%),
    radial-gradient(45% 40% at 90% 10%, color-mix(in oklab, var(--violet) 22%, transparent), transparent 70%),
    radial-gradient(50% 45% at 70% 100%, color-mix(in oklab, var(--orange) 10%, transparent), transparent 70%),
    var(--navy-0);
}
.ambient::after {
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.ambient .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.ambient .orb-1 { width: 42vmax; height: 42vmax; left: -12vmax; top: -14vmax; background: color-mix(in oklab, var(--blue) 50%, transparent); animation: drift 26s ease-in-out infinite alternate; }
.ambient .orb-2 { width: 34vmax; height: 34vmax; right: -10vmax; top: 10vh; background: color-mix(in oklab, var(--violet) 45%, transparent); animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(8vw, 6vh, 0) scale(1.08); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in oklab, var(--navy-0) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a { display: inline-block; padding: .55rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: var(--fs-300); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 860px) {
  .site-header .nav { min-height: 3.75rem; }
  html { scroll-padding-top: 4.5rem; }
}
.mobile-menu { inset: auto 0 0 0; width: 100%; max-width: none; margin: 0; padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); border: 0; border-top-left-radius: var(--radius-l); border-top-right-radius: var(--radius-l); background: var(--navy-1); color: var(--ink); box-shadow: 0 -20px 60px oklch(0% 0 0 / .5); }
.mobile-menu::backdrop { background: oklch(0% 0 0 / .55); backdrop-filter: blur(4px); }
.mobile-menu ul { list-style: none; display: grid; gap: .25rem; }
.mobile-menu a { display: block; padding: .9rem 1rem; border-radius: var(--radius-s); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.mobile-menu a:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); }
.mobile-menu .close { position: absolute; top: .75rem; right: .75rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; }
@starting-style { .mobile-menu:popover-open { transform: translateY(20px); opacity: 0; } }
.mobile-menu:popover-open { transform: none; opacity: 1; transition: transform .35s var(--ease-out), opacity .3s; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--ink); --fg: var(--navy-0); display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent; background: var(--bg); color: var(--fg); font-weight: 600; text-decoration: none; line-height: 1; white-space: nowrap; transition: transform .25s var(--ease-spring), box-shadow .25s, background .2s, color .2s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { --bg: linear-gradient(135deg, var(--orange), var(--orange-2)); --fg: oklch(18% 0.04 60); box-shadow: var(--glow-orange); }
.btn-primary:hover { box-shadow: var(--glow-orange), 0 10px 30px -10px var(--orange); }
.btn-ghost { --bg: color-mix(in oklab, var(--ink) 7%, transparent); --fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { --bg: color-mix(in oklab, var(--ink) 12%, transparent); }
.btn-blue { --bg: var(--blue); --fg: white; box-shadow: var(--glow-blue); }
.btn-sm { padding: .6rem 1rem; font-size: var(--fs-300); }
.btn-lg { padding: 1.05rem 1.6rem; font-size: var(--fs-500); }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.store-badges--center { justify-content: center; }
.store-badges--lg { --store-badge-h: var(--store-badge-h-lg); }
@media (max-width: 380px) {
  .store-badges--lg { --store-badge-h: 40px; gap: .5rem; }
}
.store-badge {
  display: block;
  height: var(--store-badge-h);
  line-height: 0;
  border-radius: 8px;
  flex: 0 0 auto;
  transition: transform .25s var(--ease-spring), filter .2s;
}
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.06); }
.store-badge img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}
.store-note { font-size: var(--fs-200); color: var(--ink-3); }
.mobile-menu .store-badges { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); justify-content: center; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 8vw, 6rem); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--fs-900); letter-spacing: -0.035em; line-height: 1; max-width: 12ch; }
@media (max-width: 980px) { .hero h1 { max-width: none; } }
.hero h1 .serif { font-size: 1.08em; }
.hero .lede { margin-top: 1.5rem; font-size: var(--fs-500); color: var(--ink-2); max-width: 54ch; }
.hero .cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; margin-top: 2rem; }
.hero .hero-scroll { display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: var(--fs-300); font-weight: 600; text-decoration: none; transition: color .2s; }
.hero .hero-scroll:hover { color: var(--ink); text-decoration: none; }
.hero .hero-scroll span { color: var(--orange); font-size: 1.1em; line-height: 1; }
.hero .proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: var(--fs-300);
  list-style: none;
}
@media (max-width: 640px) { .hero .proof { grid-template-columns: repeat(2, 1fr); } }
.hero .proof li { min-width: 0; }
.hero .proof strong { display: block; color: var(--ink); font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: .2rem; }
.hero .proof strong.rating { display: flex; align-items: baseline; gap: .2rem; }
.hero .proof .stars { color: var(--orange); letter-spacing: 0; font-size: .95em; }
.hero-visual { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; min-height: 600px; padding-top: 2rem; }
.hero-visual .parrot { position: absolute; left: -16%; top: -2%; width: 62%; max-width: 380px; aspect-ratio: 1; opacity: .95; z-index: 0; pointer-events: none; mask-image: radial-gradient(closest-side, black 62%, transparent 100%); -webkit-mask-image: radial-gradient(closest-side, black 62%, transparent 100%); filter: saturate(1.05); animation: float 9s ease-in-out infinite; }
.hero-visual .parrot img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-visual .phone { position: relative; z-index: 1; margin-right: clamp(0px, 2vw, 1.5rem); }
@media (max-width: 980px) {
  .hero-visual { justify-content: center; min-height: 0; margin-top: 1rem; padding-top: 0; }
  .hero-visual .parrot { display: none; }
  .hero-visual .phone { margin-right: 0; }
  .hero .cta-row { align-items: stretch; }
  .hero .store-badges { justify-content: flex-start; }
}
@media (max-width: 980px) and (min-width: 641px) {
  .hero-grid { gap: 2.5rem; }
  .phone-lg { width: min(100%, 280px); }
}
.hero .wave { position: absolute; left: -2%; top: 56%; width: 36%; height: 60px; display: flex; align-items: center; justify-content: center; gap: 4px; opacity: .85; z-index: 2; pointer-events: none; }
@media (max-width: 980px) { .hero .wave { display: none; } }
.hero .wave i { width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--orange), var(--blue)); height: 20%; animation: bar 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.08s); }
@keyframes bar { 0%, 100% { height: 18%; } 50% { height: calc(40% + var(--h, 40%)); } }

/* Phone frame */
.phone { width: min(100%, 300px); aspect-ratio: 390 / 844; border-radius: 48px; padding: 10px; background: linear-gradient(160deg, oklch(35% 0.02 260), oklch(16% 0.02 260)); box-shadow: 0 0 0 1px oklch(60% 0.02 260 / .25), 0 40px 100px -30px oklch(0% 0 0 / .8), 0 0 80px -20px color-mix(in oklab, var(--blue) 50%, transparent); position: relative; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #0b0f1f; isolation: isolate; }
.phone .screen > img, .phone .screen > video, .phone .screen > picture img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-lg { width: min(100%, 310px); }
.phone-sm { width: min(100%, 230px); border-radius: 40px; padding: 8px; }
.phone-sm::before { width: 70px; height: 20px; top: 16px; }
.phone-sm .screen { border-radius: 32px; }

/* ---------- Trust strip ---------- */
.trust { padding-block: 1.75rem; border-block: 1px solid var(--line); }
.trust .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .85rem 1.25rem; color: var(--ink-3); font-size: var(--fs-300); text-align: center; }
@media (min-width: 768px) { .trust .row { gap: 1rem 2.5rem; } }
.trust .row strong { color: var(--ink-2); font-weight: 600; }
.trust .pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in oklab, var(--ink) 3%, transparent); }

/* ---------- Cards / bento ---------- */
.card { position: relative; border-radius: var(--radius-l); background: linear-gradient(180deg, color-mix(in oklab, var(--navy-2) 85%, transparent), color-mix(in oklab, var(--navy-1) 92%, transparent)); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: clip; container-type: inline-size; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(60% 40% at 50% 0%, color-mix(in oklab, var(--blue) 18%, transparent), transparent 70%); opacity: 0; transition: opacity .4s; }
.card:hover::after { opacity: 1; }
.card .body { padding: clamp(1.25rem, 4cqi, 2rem); }
.card h3 { font-size: var(--fs-600); margin-bottom: .5rem; }
.card p { color: var(--ink-2); }
.card .shot { margin-top: 1.25rem; display: grid; place-items: end center; align-self: end; }
.card .shot .screen-shot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin-bottom: -1px; }
.card .shot.strip { padding: 0 clamp(1.25rem, 4cqi, 2rem) clamp(1.25rem, 4cqi, 2rem); }
.card .shot.strip img { width: 100%; max-width: 420px; border-radius: var(--radius-s); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px oklch(0% 0 0 / .8); }
.card .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: color-mix(in oklab, var(--blue) 18%, transparent); color: var(--blue-2); border: 1px solid color-mix(in oklab, var(--blue) 30%, transparent); }
.card .icon.orange { background: color-mix(in oklab, var(--orange) 16%, transparent); color: var(--orange); border-color: color-mix(in oklab, var(--orange) 30%, transparent); }
.card .icon.violet { background: color-mix(in oklab, var(--violet) 18%, transparent); color: oklch(80% 0.12 300); border-color: color-mix(in oklab, var(--violet) 30%, transparent); }
.card .icon svg { width: 22px; height: 22px; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.bento > * { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .span-8 { grid-column: span 8; }
.bento .span-12 { grid-column: span 12; }
.bento .tall { display: grid; grid-template-rows: auto 1fr; }
.bento .split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; }
.bento .split .shot { margin-top: 0; }
@media (max-width: 980px) {
  .bento > *, .bento .span-6, .bento .span-8 { grid-column: span 6; }
  .bento .span-12 { grid-column: span 12; }
}
@media (max-width: 640px) {
  .bento > *, .bento .span-6, .bento .span-8, .bento .span-12 { grid-column: span 12; }
  .bento .split { grid-template-columns: 1fr; }
}
.screen-shot { width: min(100%, 300px); border-radius: 26px; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px oklch(0% 0 0 / .8); }
.screen-shot.crop-top { aspect-ratio: 390 / 560; object-fit: cover; object-position: top; }
.screen-shot.crop-bottom { aspect-ratio: 390 / 560; object-fit: cover; object-position: bottom; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; }
.step .num { font-family: var(--font-serif); font-style: italic; font-size: 3rem; line-height: 1; color: var(--orange); }
.step .num::before { content: "0" counter(step); }
.step h3 { margin-top: .75rem; }

/* ---------- Chips (languages / styles) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { list-style: none; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in oklab, var(--ink) 4%, transparent); font-size: var(--fs-300); color: var(--ink-2); }
.chips.styles li { background: color-mix(in oklab, var(--orange) 10%, transparent); border-color: color-mix(in oklab, var(--orange) 25%, transparent); color: var(--ink); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.marquee ul { display: flex; gap: .6rem; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.voices-extras { margin-top: 2.5rem; }
.subhead { font-size: var(--fs-600); margin-bottom: .75rem; }
.subcopy { color: var(--ink-2); margin-bottom: 1rem; }
.control-list { list-style: none; display: grid; gap: .6rem; color: var(--ink-2); }
.control-list strong { color: var(--ink); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 1.4rem 1.5rem; border-radius: var(--radius-l); border: 1px solid var(--line); background: color-mix(in oklab, var(--ink) 3%, transparent); }
.stat strong { display: block; font-size: var(--fs-700); letter-spacing: -0.03em; background: linear-gradient(90deg, var(--ink), var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--ink-2); font-size: var(--fs-300); }

/* ---------- Use cases ---------- */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usecases { grid-template-columns: 1fr; } }
.usecase { padding: 1.5rem; border-radius: var(--radius-l); border: 1px solid var(--line); background: color-mix(in oklab, var(--ink) 3%, transparent); transition: transform .35s var(--ease-spring), border-color .3s; }
.usecase:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--orange) 40%, transparent); }
.usecase h3 { font-size: var(--fs-500); margin: .75rem 0 .4rem; }
.usecase p { color: var(--ink-2); font-size: var(--fs-300); }
.usecase .emoji { font-size: 1.6rem; }

/* ---------- Stories (live from the community) ---------- */
.stories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1000px) { .stories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }
.story-card { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--line); background: var(--navy-2); isolation: isolate; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.story-card:hover img { transform: scale(1.05); }
.story-card .meta { position: absolute; inset: auto 0 0 0; padding: 2.5rem .9rem .9rem; background: linear-gradient(180deg, transparent, oklch(10% 0.03 270 / .92)); }
.story-card .meta strong { display: block; font-size: var(--fs-300); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-card .meta span { font-size: var(--fs-200); color: var(--ink-2); }
.story-card .play { position: absolute; top: .75rem; right: .75rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--navy-0) 60%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line-2); }
.story-card .play svg { width: 16px; height: 16px; margin-left: 2px; }
.story-card.skeleton { background: linear-gradient(100deg, var(--navy-2) 30%, var(--navy-3) 50%, var(--navy-2) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in oklab, var(--ink) 3%, transparent); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 600; font-size: var(--fs-500); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange); transition: transform .3s var(--ease-out); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.25rem 1.25rem; color: var(--ink-2); }
.faq .answer p + p { margin-top: .6rem; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-xl); padding: clamp(2rem, 6vw, 4.5rem); text-align: center; background: radial-gradient(80% 120% at 50% 120%, color-mix(in oklab, var(--orange) 30%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in oklab, var(--blue) 30%, var(--navy-1)), var(--navy-1)); border: 1px solid var(--line-2); position: relative; overflow: clip; }
.cta-band h2 { font-size: var(--fs-800); }
.cta-band p { margin: 1rem auto 0; color: var(--ink-2); max-width: 48ch; font-size: var(--fs-500); }
.cta-band .store-badges { margin-top: 2rem; }
.bento .wide-shot { border-top: 1px solid var(--line); }
.footer-blurb { margin-top: 1rem; max-width: 36ch; }
.footer-blurb + .store-badges { margin-top: 1rem; }
.story-actions--center { justify-content: center; }
.error-mascot { margin-inline: auto; margin-bottom: 1.5rem; width: 220px; height: 220px; border-radius: 50%; mask-image: radial-gradient(closest-side, black 70%, transparent); -webkit-mask-image: radial-gradient(closest-side, black 70%, transparent); }
.footer-bottom--compact { margin-top: 0; border-top: 0; padding-top: 0; }
.cta-band .mascot { position: absolute; right: -30px; bottom: -50px; width: 280px; opacity: .45; mask-image: radial-gradient(closest-side, black 60%, transparent); -webkit-mask-image: radial-gradient(closest-side, black 60%, transparent); pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 3rem 2rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-300); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .footer-title { margin: 0 0 .75rem; font-weight: 600; font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: .75rem; }
.site-footer ul { list-style: none; display: grid; gap: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: var(--fs-200); }
.cookie-settings { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.cookie-settings:hover { color: var(--ink-2); }

/* ---------- Reveal on scroll (scroll‑driven when supported, IO fallback) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .reveal { opacity: 1; transform: none; transition: none; animation: reveal both linear; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .marquee ul { animation: none; flex-wrap: wrap; width: auto; }
}

/* Cross‑document view transitions between pages (progressive enhancement) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: var(--measure); }
.prose h1 { font-size: var(--fs-800); margin-bottom: 1.5rem; }
.prose h2 { font-size: var(--fs-600); margin: 2rem 0 .75rem; }
.prose h3 { font-size: var(--fs-500); margin: 1.5rem 0 .5rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: .75rem 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: .75rem 0; }
.prose a { color: var(--blue-2); }
.prose .updated { color: var(--ink-3); font-size: var(--fs-300); }

/* ---------- Story page ---------- */
.story-page { padding-block: clamp(1.5rem, 4vw, 3rem) var(--section); }
.story-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .story-layout { grid-template-columns: 1fr; } }
.story-cover { position: sticky; top: 5.5rem; }
@media (max-width: 900px) { .story-cover { position: static; } .story-cover .art { max-width: 300px; margin-inline: auto; } }
.story-cover .art { aspect-ratio: 1; position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px oklch(0% 0 0 / .8), 0 0 90px -30px color-mix(in oklab, var(--blue) 60%, transparent); background: var(--navy-2); }
.story-cover .art img { width: 100%; height: 100%; object-fit: cover; }
.story-cover .art.skeleton { animation: shimmer 1.4s infinite; background: linear-gradient(100deg, var(--navy-2) 30%, var(--navy-3) 50%, var(--navy-2) 70%); background-size: 200% 100%; }
.player[aria-busy=true] { opacity: .5; pointer-events: none; }
.story-body .kicker .ghost { min-width: 5rem; }
.story-body .byline:empty, .story-body .byline img:not([src]) { visibility: hidden; }
.story-body .byline { min-height: 44px; }
.player { margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--radius-l); background: color-mix(in oklab, var(--navy-2) 80%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.player .bars { display: flex; align-items: center; gap: 3px; height: 44px; margin-bottom: .75rem; }
.player .bars i { flex: 1; height: 12%; border-radius: 3px; background: linear-gradient(180deg, var(--orange), var(--blue)); opacity: .7; }
.player.playing .bars i { animation: bar 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.06s); }
.player .seek { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--orange) var(--p, 0%), color-mix(in oklab, var(--ink) 15%, transparent) var(--p, 0%)); cursor: pointer; }
.player .seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--orange); box-shadow: 0 2px 8px oklch(0% 0 0 / .5); }
.player .seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--orange); }
.player .times { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: var(--fs-200); color: var(--ink-3); margin-top: .4rem; }
.player .transport { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .75rem; }
.player .transport button { border: 1px solid var(--line-2); background: color-mix(in oklab, var(--ink) 6%, transparent); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--ease-spring), background .2s; }
.player .transport button:hover { background: color-mix(in oklab, var(--ink) 12%, transparent); transform: translateY(-1px); }
.player .transport button svg { width: 20px; height: 20px; }
.player .transport .play { width: 64px; height: 64px; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: oklch(18% 0.04 60); border: 0; box-shadow: var(--glow-orange); }
.player .transport .play svg { width: 26px; height: 26px; }
.player .extras { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .9rem; }
.player .extras button, .player .extras a { font-size: var(--fs-200); padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.player .extras button[aria-pressed=true] { background: color-mix(in oklab, var(--orange) 20%, transparent); color: var(--ink); border-color: color-mix(in oklab, var(--orange) 50%, transparent); }
.story-body .kicker { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.story-body .kicker span { font-size: var(--fs-200); padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.story-body h1 { font-size: var(--fs-800); }
.story-body .byline { display: flex; align-items: center; gap: .8rem; margin-top: 1.25rem; color: var(--ink-2); }
.story-body .byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.story-body .byline strong { display: block; color: var(--ink); }
.story-body .byline time { font-size: var(--fs-300); }
.story-body .prose-story { margin-top: 1.75rem; font-size: var(--fs-500); line-height: 1.75; color: var(--ink-2); max-width: var(--measure); }
.story-body .prose-story p, .story-body .prose-story div { margin: 0 0 1em; }
.story-body .prose-story img { max-width: 100%; border-radius: var(--radius); }
.story-body .prose-story.skeleton span { display: block; height: 1em; margin: .6em 0; border-radius: 6px; background: linear-gradient(100deg, var(--navy-2) 30%, var(--navy-3) 50%, var(--navy-2) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.story-body .prose-story.skeleton span:nth-child(2n) { width: 85%; }
.story-body .prose-story.skeleton span:nth-child(3n) { width: 65%; }
.story-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.app-upsell { margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--radius-l); border: 1px solid var(--line-2); background: linear-gradient(135deg, color-mix(in oklab, var(--blue) 18%, var(--navy-1)), var(--navy-1)); display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
@media (max-width: 560px) { .app-upsell { grid-template-columns: 1fr; } }
.app-upsell img.icon { width: 72px; height: 72px; border-radius: 18px; }
.app-upsell h2 { font-size: var(--fs-600); }
.app-upsell p { color: var(--ink-2); margin: .3rem 0 1rem; }
.story-error { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; }
.story-error h1 { font-size: var(--fs-800); }
.story-error p { color: var(--ink-2); margin: 1rem auto 1.5rem; max-width: 46ch; }
.explicit-gate { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; background: color-mix(in oklab, var(--navy-0) 75%, transparent); backdrop-filter: blur(20px); border-radius: inherit; }
.explicit-gate p { color: var(--ink-2); margin: .5rem 0 1rem; }
.trending-head { margin-top: var(--section); }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed;
  z-index: 200;
  inset: auto var(--gutter) max(var(--gutter), env(safe-area-inset-bottom));
  max-width: min(26rem, calc(100vw - 2 * var(--gutter)));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  pointer-events: none;
}
.cookie-banner--in { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner--out { opacity: 0; transform: translateY(8px); pointer-events: none; }
.cookie-banner__inner {
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: var(--radius-l);
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--navy-1) 88%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 24px 60px -20px oklch(0% 0 0 / .75), var(--shadow-1);
}
.cookie-banner__title { margin: 0 0 .45rem; font-weight: 700; font-size: var(--fs-500); }
.cookie-banner__text { margin: 0; color: var(--ink-2); font-size: var(--fs-300); line-height: 1.55; }
.cookie-banner__text a { color: var(--blue-2); text-decoration: underline; text-underline-offset: .15em; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
@media (max-width: 640px) {
  .cookie-banner {
    inset: auto 0 0 0;
    max-width: none;
    transform: translateY(100%);
  }
  .cookie-banner--in { transform: none; }
  .cookie-banner--out { transform: translateY(100%); }
  .cookie-banner__inner {
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1 1 calc(50% - .25rem); justify-content: center; min-height: 44px; }
}
