/* ═══════════════════════════════════════════
   SPOKT — Editorial Audio Studio
   ═══════════════════════════════════════════ */

/* ─── Theme tokens ─── */
:root {
  --bg:          #FAF6EE;
  --bg-2:        #F2EBDC;
  --paper:       #FFFCF5;
  --ink:         #13110F;
  --ink-2:       #4A4640;
  --ink-3:       #908A7E;
  --rule:        #E0D7C2;
  --rule-strong: #C9BFA8;
  --accent:      #3852FF;
  --accent-deep: #1E2A78;
  --coral:       #FF6B57;
  --gold:        #E8AE3D;
  --green:       #4F8F5A;
  --shadow-sm:   0 2px 8px rgba(19, 17, 15, 0.06);
  --shadow:      0 14px 36px rgba(19, 17, 15, 0.12);
  --shadow-lg:   0 30px 72px rgba(19, 17, 15, 0.18);
  --shadow-phone:0 36px 80px rgba(19, 17, 15, 0.28);

  --r-card:  20px;
  --r-pill:  999px;
  --r-phone: 44px;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Sora', system-ui, sans-serif;
  --mono:  'Space Mono', 'JetBrains Mono', monospace;

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  --bg:          #0F0E14;
  --bg-2:        #16151E;
  --paper:       #1C1A26;
  --ink:         #FAF6EE;
  --ink-2:       #B5AFA1;
  --ink-3:       #6B6557;
  --rule:        #2A2730;
  --rule-strong: #3D3A47;
  --accent:      #6E8AFF;
  --accent-deep: #B5C2FF;
  --coral:       #FF8675;
  --gold:        #F2C461;
  --green:       #6FBC7E;
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow:      0 14px 36px rgba(0, 0, 0, 0.55);
  --shadow-lg:   0 30px 72px rgba(0, 0, 0, 0.65);
  --shadow-phone:0 36px 80px rgba(0, 0, 0, 0.7);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
img, picture { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ─── Paper grain ─── */
.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
:root[data-theme="dark"] .paper-grain { mix-blend-mode: screen; opacity: 0.3; }

/* ─── Layout ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ─── Type ─── */
.eyebrow, .section-tag, .lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot, .section-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.eyebrow .dot.dot-pulse {
  animation: pulse 1.6s var(--ease) infinite;
  box-shadow: 0 0 0 0 var(--coral);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 87, 0.55); }
  50%       { box-shadow: 0 0 0 7px rgba(255, 107, 87, 0); }
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
em, .emph-text {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.lede {
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 460px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s;
  border: 1px solid transparent;
}
.btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.btn-ink:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(56, 82, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(56, 82, 255, 0.4); }

/* App Store CTA — editorial */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  box-shadow: 0 12px 30px rgba(19, 17, 15, 0.2);
  position: relative;
  will-change: transform;
}
.btn-appstore:hover { box-shadow: 0 20px 44px rgba(19, 17, 15, 0.3); }
.btn-appstore svg { flex-shrink: 0; fill: var(--bg); }
.appstore-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.appstore-text span  { font-size: 0.7rem; opacity: 0.78; }
.appstore-text strong { font-size: 0.96rem; font-weight: 600; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.link-arrow:hover { color: var(--ink); border-color: var(--ink); gap: 10px; }

/* ─── Toggles (lang + theme) ─── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.lang-toggle:hover { background: var(--bg-2); }
.lang-toggle.sm { padding: 6px 12px; font-size: 0.74rem; }
.lang-sep   { opacity: 0.3; }
.lang-option { opacity: 0.4; transition: opacity 0.2s; }
.lang-option.active { opacity: 1; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { background: var(--bg-2); }
.theme-toggle .ic-sun, .theme-toggle .ic-moon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease-out);
}
.theme-toggle .ic-sun  { opacity: 1; transform: rotate(0deg); }
.theme-toggle .ic-moon { opacity: 0; transform: rotate(-90deg); }
:root[data-theme="dark"] .theme-toggle .ic-sun  { opacity: 0; transform: rotate(90deg); }
:root[data-theme="dark"] .theme-toggle .ic-moon { opacity: 1; transform: rotate(0deg); }

/* ─── NAVBAR ─── */
.nav {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 100;
  padding: 0 20px;
  pointer-events: none;
  transition: top 0.3s var(--ease);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: rgba(250, 246, 238, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}
:root[data-theme="dark"] .nav-inner { background: rgba(15, 14, 20, 0.78); }
.nav.scrolled .nav-inner { box-shadow: var(--shadow); }
.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1;
}
.nav-mark .nav-logo {
  height: 26px !important;
  width: auto !important;
  max-width: 120px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-mark .nav-mark-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.nav-end { display: inline-flex; align-items: center; gap: 10px; }

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}
.hero-text { position: relative; z-index: 2; }
.headline {
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.04;
  margin: 22px 0 28px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.headline-line { display: block; }
.headline-line-2 { color: var(--ink-2); }
.emph {
  position: relative;
  display: inline-block;
  color: var(--ink);
}
.emph-text { color: var(--coral); padding-right: 0.04em; }
.emph-underline {
  position: absolute;
  left: -2%;
  bottom: -0.18em;
  width: 104%;
  height: 0.32em;
  pointer-events: none;
}
.emph-underline path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: drawLine 1.4s var(--ease-out) 0.4s forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat .num { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.hero-stat .lbl { color: var(--ink-3); }
.hero-stat-sep {
  width: 1px;
  height: 28px;
  background: var(--rule);
}
.hero-trust {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.hero-trust .trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 82, 255, 0.15);
  flex-shrink: 0;
}

/* Hero ambient waveform */
.hero-wave {
  position: absolute;
  left: 0; right: 0;
  bottom: 16%;
  width: 100%;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}
.hero-wave path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.2;
}
.hero-wave path.lead {
  stroke: var(--coral);
  stroke-width: 2;
  opacity: 0.65;
  stroke-dasharray: 6 8;
  animation: waveDrift 9s linear infinite;
}
@keyframes waveDrift { to { stroke-dashoffset: -280; } }

.hero-eq {
  position: absolute;
  right: 6%;
  bottom: 8%;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-eq span {
  width: 5px;
  background: var(--ink);
  border-radius: 3px;
  animation: eqAnim 1.3s var(--ease) infinite;
  transform-origin: bottom;
}
.hero-eq span:nth-child(1) { height: 22px; animation-delay: 0s; }
.hero-eq span:nth-child(2) { height: 38px; animation-delay: 0.18s; }
.hero-eq span:nth-child(3) { height: 30px; animation-delay: 0.36s; }
.hero-eq span:nth-child(4) { height: 48px; animation-delay: 0.08s; }
.hero-eq span:nth-child(5) { height: 26px; animation-delay: 0.28s; }
@keyframes eqAnim {
  0%, 100% { transform: scaleY(0.3); }
  50%       { transform: scaleY(1); }
}

/* Hero phone */
.hero-phone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tilt-target {
  transition: transform 0.4s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform;
}

/* ─── Phone frame (light-mode editorial chrome) ─── */
.phone {
  position: relative;
  width: 290px;
  height: 600px;
  background: #1A1A24;
  border-radius: var(--r-phone);
  border: 4px solid #2C2C3A;
  box-shadow:
    0 0 0 1.5px #444253,
    var(--shadow-phone),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  flex-shrink: 0;
}
.phone.md  { width: 240px; height: 500px; }
.phone.sm  { width: 200px; height: 410px; }
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #1A1A24;
  border-radius: 13px;
  z-index: 10;
  border: 2px solid #2C2C3A;
}
.phone-screen {
  position: absolute;
  inset: 0;
  background: #0D0D12;
  overflow: hidden;
}
.phone-screen.bg-purple { background: linear-gradient(135deg, #1e1040 0%, #0d0d12 100%); }
.phone-screen.bg-dark   { background: #0D0D12; }
.phone-screen.bg-green  { background: linear-gradient(135deg, #0d2a1a 0%, #0d0d12 100%); }
.phone-screen.bg-cream  { background: #EDE7DA; }
.phone-screen.bg-app    { background: #F1F1F6; }
:root[data-theme="dark"] .phone-screen.bg-app { background: #1A1A1F; }
.screenshot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  z-index: 1;
}
.screenshot-img.contained {
  object-fit: contain;
  object-position: center top;
}

/* Hero phone "Now reading" label */
.phone-tape {
  position: absolute;
  left: -18px;
  bottom: 46px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  z-index: 5;
  transform: rotate(-3deg);
}
.phone-tape .lbl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; }
.phone-tape strong { font-family: var(--serif); font-style: italic; font-size: 0.95rem; font-weight: 600; }
.phone-tape em { font-style: normal; color: var(--ink-2); font-size: 0.74rem; }

.phone-trk {
  position: absolute;
  top: 24px;
  right: -22px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
  background: var(--paper);
  padding: 6px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  transform: rotate(6deg);
  z-index: 5;
}

/* ─── Karaoke overlay (used in hero phone screen) ─── */
.karaoke-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 18, 0)    0%,
    rgba(13, 13, 18, 0.85) 45%,
    rgba(13, 13, 18, 1)    100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 18px 26px;
  z-index: 2;
  color: white;
}
.karaoke-overlay.static {
  background: rgba(13, 13, 18, 0.92);
  justify-content: center;
  padding-top: 60px;
}
.karaoke-header { margin-bottom: 12px; }
.karaoke-title  { font-family: var(--serif); font-style: italic; font-size: 0.9rem; font-weight: 600; color: white; }
.karaoke-author { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

.karaoke-text {
  font-size: 0.96rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  font-family: var(--serif);
}
.karaoke-text.small { font-size: 0.84rem; }

.kw {
  color: rgba(255, 255, 255, 0.32);
  padding: 2px 3px;
  border-radius: 4px;
  display: inline;
  transition: color 0.18s ease, background 0.18s ease;
}
.kw.past   { color: rgba(255, 255, 255, 0.42); }
.kw.active {
  color: var(--coral);
  background: rgba(255, 107, 87, 0.18);
  font-weight: 600;
}

.karaoke-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.ctrl-time {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
}
.ctrl-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}
.ctrl-fill {
  height: 100%;
  width: 34%;
  background: var(--coral);
  border-radius: 2px;
}

/* ─── MARQUEE ─── */
.marquee-band {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.marquee-rail {
  display: flex;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  flex-shrink: 0;
  padding-right: 36px;
  animation: marqueeRoll 38s linear infinite;
  white-space: nowrap;
}
.marquee-rail:hover .marquee-track { animation-play-state: paused; }
.marquee-band .marquee-item {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: rgba(250, 246, 238, 0.95);
  letter-spacing: -0.02em;
}
.marquee-band .marquee-item em { color: var(--coral); font-style: italic; }
.marquee-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}
@keyframes marqueeRoll {
  to { transform: translateX(-50%); }
}

/* ─── Section base ─── */
section { position: relative; }
.section-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 12ch;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 480px;
  line-height: 1.6;
}

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── KARAOKE INTERACTIVE ─── */
.karaoke-section {
  padding: 130px 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.karaoke-stage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 60px;
}
.karaoke-passage {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.karaoke-passage .kw {
  color: var(--ink-3);
  cursor: pointer;
  padding: 1px 3px;
  border-radius: 4px;
  display: inline;
  transition: color 0.18s, background 0.18s;
}
.karaoke-passage .kw:hover { color: var(--ink-2); }
.karaoke-passage .kw.past   { color: var(--ink-2); }
.karaoke-passage .kw.active {
  color: var(--coral);
  background: rgba(255, 107, 87, 0.12);
  font-weight: 600;
}
.karaoke-passage .kw.emph-italic {
  font-style: italic;
  font-weight: 600;
}

.karaoke-stage-controls {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  max-width: 640px;
}
.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out), background 0.2s;
}
.play-btn:hover { transform: scale(1.05); background: var(--accent); }
.play-btn svg { width: 14px; height: 14px; fill: currentColor; }
.scrub-time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  flex-shrink: 0;
  min-width: 44px;
}
.scrub {
  flex: 1;
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.scrub-fill {
  height: 100%;
  width: 0%;
  background: var(--coral);
  border-radius: 3px;
  transition: width 0.15s linear;
}
.scrub-knob {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(255, 107, 87, 0.5);
  pointer-events: none;
}

/* ─── Folder tree (Flow B — audiobook folder structure) ─── */
.folder-tree {
  margin: 14px 0 6px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
  max-width: 440px;
  box-shadow: var(--shadow-sm);
}
.folder-tree-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.folder-tree-child { padding-left: 18px; position: relative; }
.folder-tree-child::before {
  content: "└─";
  position: absolute;
  left: 0;
  color: var(--ink-3);
  font-family: var(--mono);
}
.folder-tree-grandchild {
  padding-left: 40px;
  color: var(--ink-3);
  position: relative;
}
.folder-tree-grandchild::before {
  content: "└─";
  position: absolute;
  left: 22px;
  color: var(--ink-3);
}
.folder-tree-ico { font-size: 0.9em; }
.folder-tree-name { color: var(--ink); font-weight: 700; }
.folder-tree-root .folder-tree-name { color: var(--accent); }
.folder-tree-note {
  margin-left: auto;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
[dir="rtl"] .folder-tree-child   { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .folder-tree-child::before { left: auto; right: 0; }
[dir="rtl"] .folder-tree-grandchild { padding-left: 0; padding-right: 40px; }
[dir="rtl"] .folder-tree-grandchild::before { left: auto; right: 22px; }
[dir="rtl"] .folder-tree-note { margin-left: 0; margin-right: auto; }

/* ─── Karaoke video phone (TRK 02) ─── */
.karaoke-video-phone .phone-screen {
  background: #000;
}
.karaoke-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* The loud "Tap to hear" pill — bottom-center, pulsing, hard to miss */
.karaoke-unmute {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px 13px 18px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    0 14px 30px rgba(56, 82, 255, 0.42),
    0 4px 10px rgba(56, 82, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  animation: unmuteBob 2.2s var(--ease) infinite;
  transition: transform 0.18s var(--ease-out), opacity 0.3s var(--ease);
}
.karaoke-unmute:hover {
  transform: translateX(-50%) scale(1.04);
}
.karaoke-unmute:active {
  transform: translateX(-50%) scale(0.97);
}
.karaoke-unmute .unmute-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.karaoke-unmute .unmute-icon svg { display: block; }
.karaoke-unmute .unmute-ring {
  position: absolute;
  inset: -6px;
  border-radius: var(--r-pill);
  border: 2px solid rgba(56, 82, 255, 0.55);
  animation: unmuteRing 2.2s var(--ease) infinite;
  pointer-events: none;
}
.karaoke-unmute.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px) scale(0.92);
}

@keyframes unmuteBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}
@keyframes unmuteRing {
  0%   { opacity: 0.55; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* Small mute toggle after the user has unmuted */
.karaoke-mute-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 14, 20, 0.55);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease);
}
.karaoke-mute-toggle[hidden] { display: none; }
.karaoke-mute-toggle:hover { background: rgba(15, 14, 20, 0.78); }
[dir="rtl"] .karaoke-mute-toggle { right: auto; left: 16px; }

@media (prefers-reduced-motion: reduce) {
  .karaoke-unmute      { animation: none; }
  .karaoke-unmute .unmute-ring { animation: none; opacity: 0.4; }
}

/* ─── Built simulator (TRK 02 — live player UI) ─── */
/* The simulator always renders in light mode so the player UI matches the real app. */
.simulator-phone .phone-screen,
.simulator-phone .sim-screen {
  background: linear-gradient(180deg, #F2F2F8 0%, #E9E9F3 100%);
}
.sim-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  color: #13110F;
  font-family: var(--sans);
  overflow: hidden;
  /* Pin accent + rule colors so the simulator matches the real app in both page themes */
  --accent: #3852FF;
  --rule: #E0D7C2;
}
/* status bar */
.sim-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
}
.sim-statusbar .sim-icons { display: inline-flex; gap: 5px; align-items: center; }
.sim-signal, .sim-wifi, .sim-batt { display: inline-block; background: currentColor; }
.sim-signal { width: 14px; height: 8px; mask: radial-gradient(circle at 0 100%, #000 1.5px, transparent 2px) 0 0/3.5px 100% repeat-x; -webkit-mask: radial-gradient(circle at 0 100%, #000 1.5px, transparent 2px) 0 0/3.5px 100% repeat-x; }
.sim-wifi   { width: 12px; height: 9px; clip-path: polygon(50% 0, 100% 50%, 78% 65%, 50% 38%, 22% 65%, 0 50%); }
.sim-batt   { width: 22px; height: 10px; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 0 80%, transparent 80%); border-radius: 2px; position: relative; }
.sim-batt::after { content: ""; position: absolute; left: 100%; top: 2px; width: 1.5px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }

/* header */
.sim-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 10px;
}
.sim-title-wrap {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sim-title-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(56, 82, 255, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}
.sim-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sim-iconbtn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(19, 17, 15, 0.06);
}
.sim-iconbtn.sm { width: 22px; height: 22px; }
.sim-header-end { display: inline-flex; gap: 5px; align-items: center; }
.sim-speed {
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 3px 7px;
  background: rgba(56, 82, 255, 0.12);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700;
}

/* transcript — the interactive list of words */
.sim-transcript {
  flex: 1;
  overflow-y: auto;
  padding: 6px 16px 12px;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(19, 17, 15, 0.55);
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 82, 255, 0.25) transparent;
}
.sim-transcript::-webkit-scrollbar { width: 4px; }
.sim-transcript::-webkit-scrollbar-thumb { background: rgba(56, 82, 255, 0.25); border-radius: 2px; }
.sim-transcript .skw {
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 2px;
  margin: 0 -1px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.sim-transcript .skw:hover { color: var(--accent); }
.sim-transcript .skw.past { color: rgba(19, 17, 15, 0.85); }
.sim-transcript .skw.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(56, 82, 255, 0.35);
}

/* footer: waveform + times + controls */
.sim-foot {
  padding: 8px 16px 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(19, 17, 15, 0.06);
}
.sim-wave { width: 100%; height: 30px; margin-bottom: 4px; }
.sim-wave svg { width: 100%; height: 100%; display: block; }
.sim-wave-bg path { fill: none; stroke: rgba(19, 17, 15, 0.18); stroke-width: 1.4; }
.sim-wave-fg path { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.sim-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(19, 17, 15, 0.55);
  margin-bottom: 8px;
}

.sim-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.sim-ctl {
  background: rgba(255, 255, 255, 0.9);
  color: #13110F;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 6px rgba(19, 17, 15, 0.08);
  transition: transform 0.18s var(--ease), background 0.2s, color 0.2s;
}
.sim-ctl.sm { width: 30px; height: 30px; }
.sim-ctl.lg {
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(56, 82, 255, 0.45);
}
.sim-ctl.lg svg { width: 16px; height: 16px; transform: translateX(1px); }
.sim-ctl:hover { transform: scale(1.06); }
.sim-ctl:active { transform: scale(0.94); }
.sim-ctl-num {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.42rem;
  font-weight: 700;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: inherit;
}

/* small hairline scrub bar at the very bottom for backwards compat with existing JS */
.sim-scrub {
  height: 3px;
  background: rgba(19, 17, 15, 0.08);
  position: relative;
  cursor: pointer;
}
.sim-scrub .scrub-fill { height: 100%; background: var(--accent); border-radius: 0 2px 2px 0; transition: width 0.15s linear; }
.sim-scrub .scrub-knob { display: none; }

/* RTL */
[dir="rtl"] .sim-statusbar,
[dir="rtl"] .sim-header,
[dir="rtl"] .sim-foot,
[dir="rtl"] .sim-transcript { direction: rtl; }
[dir="rtl"] .sim-times { flex-direction: row-reverse; }

/* If the external karaoke-passage exists, the in-stage controls strip is gone — clean up margins */
.karaoke-stage-controls { display: none; }

/* Hide the simulator when not in TRK 02 layout (mobile collapses to single col) */
@media (max-width: 700px) {
  .sim-transcript { font-size: 0.84rem; }
  .sim-title { font-size: 0.74rem; }
}

/* ─── "Tap any word →" hint on the interactive passage ─── */
.karaoke-passage .kw.is-hint {
  background: rgba(56, 82, 255, 0.10);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(56, 82, 255, 0.25);
  position: relative;
  animation: hintPulse 1.6s var(--ease) infinite;
}
.karaoke-tap-hint {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.karaoke-tap-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
@keyframes hintPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(56, 82, 255, 0.25); }
  50%      { box-shadow: 0 0 0 4px rgba(56, 82, 255, 0.12); }
}
@media (prefers-reduced-motion: reduce) {
  .karaoke-passage .kw.is-hint { animation: none; }
}

/* ─── SCROLL SHOWCASE ─── */
.showcase {
  padding: 130px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
.showcase-text {
  display: flex;
  flex-direction: column;
  gap: 28vh;
  padding-top: 8vh;
  padding-bottom: 22vh;
}
.showcase-step {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  opacity: 0.45;
  transition: opacity 0.5s var(--ease);
}
.showcase-step.is-active { opacity: 1; }
.showcase-step .step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--coral);
  text-transform: uppercase;
}
.showcase-step h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 16px 0 14px;
  color: var(--ink);
}
.showcase-step h3 em { color: var(--coral); }
.showcase-step p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 460px;
}
.showcase-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.showcase-chip {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: var(--paper);
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
}

.showcase-phone-wrap {
  position: sticky;
  top: 14vh;
  height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inline phone shown only on small screens — see media query below */
.showcase-step-phone { display: none; }
.showcase-phone-wrap .phone {
  position: relative;
}
.showcase-phone-wrap .showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease-out);
  z-index: 1;
}
.showcase-phone-wrap .showcase-img.is-active { opacity: 1; transform: scale(1); }

/* Flow labels (between sub-sections of How it works) */
.showcase-flow-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 50px;
  max-width: 780px;
}
.showcase-flow-label .flow-line {
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
}
.showcase-flow-label .flow-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  padding: 0 4px;
}

/* Flow B — alternate path (local audio import) */
.flow-b {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px 48px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-card);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.flow-b::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 82, 255, 0.06), transparent 55%);
  pointer-events: none;
}
.flow-b-text { position: relative; z-index: 2; }
.flow-b-text .step-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--coral);
  text-transform: uppercase;
}
.flow-b-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 14px 0 14px;
  color: var(--ink);
  line-height: 1.1;
}
.flow-b-text h3 em { color: var(--accent); }
.flow-b-text p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 460px;
}
.flow-b-phone {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flow-b-phone .phone {
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease-out);
}
.flow-b-phone .phone:hover { transform: rotate(0deg) translateY(-4px); }

/* ─── BENTO GRID ─── */
.bento {
  padding: 130px 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 14px;
}
.tile {
  position: relative;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  grid-column: span 2;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--rule-strong);
}
.tile-2x { grid-column: span 4; }
.tile-3x { grid-column: span 3; }
.tile-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tile h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tile h3 em { color: var(--coral); }
.tile p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38ch;
}
.tile .tile-spacer { flex: 1; min-height: 8px; }

/* PDF stack */
.tile-pdf .pdf-stack {
  position: relative;
  height: 200px;
  margin-top: auto;
}
.pdf-card {
  position: absolute;
  width: 158px;
  height: 200px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-2);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
.pdf-card .pdf-card-tag {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.pdf-card .pdf-card-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink);
}
.pdf-card .pdf-card-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 6px;
}
.pdf-card .pdf-card-lines span {
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  width: 100%;
}
.pdf-card .pdf-card-lines span:nth-child(2) { width: 86%; }
.pdf-card .pdf-card-lines span:nth-child(3) { width: 72%; }
.pdf-card .pdf-card-lines span:nth-child(4) { width: 92%; }
.pdf-card .pdf-card-lines span:nth-child(5) { width: 60%; }
.pdf-card-1 { right: 32%; top: 22px; transform: rotate(-7deg); z-index: 1; }
.pdf-card-2 { right: 16%; top: 12px; transform: rotate(-2deg); z-index: 2; }
.pdf-card-3 { right: 0;   top: 0;    transform: rotate(4deg);  z-index: 3; }
.tile-pdf:hover .pdf-card-1 { transform: rotate(-12deg) translateY(-6px); }
.tile-pdf:hover .pdf-card-3 { transform: rotate(8deg)   translateY(-6px); }
.tile-pdf .source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.source-chip {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.source-chip.pdf  { background: rgba(255, 107, 87, 0.14); color: var(--coral); }
.source-chip.url  { background: rgba(79, 143, 90, 0.14);  color: var(--green); }
.source-chip.epub { background: rgba(232, 174, 61, 0.14); color: var(--gold); }
.source-chip.text { background: rgba(56, 82, 255, 0.12);  color: var(--accent); }

/* Library tile — stacked covers */
.tile-import .cover-stack {
  position: relative;
  height: 110px;
  margin-top: auto;
}
.cover {
  position: absolute;
  width: 76px;
  height: 100px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 0 8px;
}
.cover-1 { left: 0;   top: 6px;  transform: rotate(-6deg); background: linear-gradient(135deg, #3852FF, #1E2A78); z-index: 3; }
.cover-2 { left: 60px;top: 0;    transform: rotate(2deg);  background: linear-gradient(135deg, #FF6B57, #B83A2A); z-index: 2; }
.cover-3 { left: 120px;top: 8px; transform: rotate(8deg);  background: linear-gradient(135deg, #4F8F5A, #1F4226); z-index: 1; }

/* Offline tile — looping ring */
.tile-offline .dl-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  position: relative;
  height: 96px;
}
.dl-ring svg { width: 96px; height: 96px; }
.dl-ring .ring-bg { stroke: var(--rule); fill: none; stroke-width: 6; }
.dl-ring .ring-fg {
  stroke: var(--accent);
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 245;
  stroke-dashoffset: 245;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: dlSpin 2.4s var(--ease) infinite;
}
@keyframes dlSpin {
  0%   { stroke-dashoffset: 245; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -245; }
}
.dl-ring .ring-pct {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

/* Stats tile */
.tile-stats .bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 96px;
  margin-top: auto;
}
.tile-stats .bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
  opacity: 0.85;
  transform-origin: bottom;
  animation: barGrow 3.5s var(--ease) infinite;
}
.tile-stats .bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.tile-stats .bars span:nth-child(2) { height: 56%; animation-delay: 0.18s; }
.tile-stats .bars span:nth-child(3) { height: 82%; animation-delay: 0.36s; }
.tile-stats .bars span:nth-child(4) { height: 44%; animation-delay: 0.54s; background: var(--coral); }
.tile-stats .bars span:nth-child(5) { height: 70%; animation-delay: 0.72s; }
.tile-stats .bars span:nth-child(6) { height: 92%; animation-delay: 0.9s; background: var(--coral); }
.tile-stats .bars span:nth-child(7) { height: 60%; animation-delay: 1.08s; }
@keyframes barGrow {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.55); }
}
.tile-stats .stat-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
}

/* Theme tile (live toggle) */
.tile-theme {
  background: linear-gradient(135deg, var(--paper) 0%, var(--bg-2) 100%);
}
.theme-flip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong);
  background: var(--bg);
}
.theme-flip-opt {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink-3);
  transition: background 0.25s, color 0.25s;
}
.theme-flip-opt.active {
  background: var(--ink);
  color: var(--bg);
}
.theme-color-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.theme-color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--rule-strong), var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}
.theme-color-dot:hover { transform: scale(1.15); }

/* RTL tile */
.tile-rtl .rtl-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-top: auto;
  height: 90px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px dashed var(--rule-strong);
}
.tile-rtl .rtl-demo .ltr {
  font-style: italic;
  color: var(--ink);
}
.tile-rtl .rtl-demo .arrow {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.9rem;
}
.tile-rtl .rtl-demo .rtl {
  direction: rtl;
  font-style: italic;
  color: var(--accent);
}

/* ─── DRAG GALLERY ─── */
.gallery {
  padding: 130px 0 110px;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  position: relative;
}
.filmstrip {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  padding: 28px 0 36px;
  margin-top: 24px;
}
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip.dragging { cursor: grabbing; }
.filmstrip-track {
  display: flex;
  gap: 32px;
  padding: 0 8vw;
  width: max-content;
  align-items: flex-start;
}
.film-phone {
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0;
}
.film-phone:nth-child(odd)  { transform: translateY(-12px); }
.film-phone:nth-child(even) { transform: translateY(12px); }
.film-phone:hover { transform: translateY(-18px); }
.film-phone .phone { pointer-events: none; }
.gallery-phone {
  width: 240px !important;
  height: 500px !important;
}
.film-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 8px 14px;
  border-top: 1px solid var(--rule-strong);
  min-width: 200px;
}
.film-num {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.film-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}

.drag-hint {
  position: absolute;
  right: 28px;
  bottom: 24px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.drag-hint::before {
  content: "←";
  animation: hintArrow 1.6s var(--ease) infinite;
}
.drag-hint::after {
  content: "→";
  animation: hintArrow 1.6s var(--ease) infinite reverse;
}
@keyframes hintArrow {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50%       { transform: translateX(3px); opacity: 1; }
}

/* ─── FAQ ─── */
.faq {
  padding: 110px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}
.faq-list {
  max-width: 780px;
  margin: 56px auto 0;
  border-top: 1px solid var(--rule-strong);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: background 0.25s var(--ease);
}
.faq-item[open] {
  background: var(--paper);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 22px 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--accent); }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.faq-chev {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--ink-2);
  background: var(--paper);
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s;
}
.faq-item[open] .faq-chev {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.faq-a {
  padding: 0 56px 26px 4px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 680px;
}
[dir="rtl"] .faq-item > summary { padding: 22px 4px 22px 22px; }
[dir="rtl"] .faq-a { padding: 0 4px 26px 56px; }

@media (max-width: 600px) {
  .faq { padding: 80px 0; }
  .faq-item > summary { padding: 18px 14px 18px 2px; font-size: 1rem; }
  .faq-a { padding: 0 44px 22px 2px; font-size: 0.95rem; }
  [dir="rtl"] .faq-item > summary { padding: 18px 2px 18px 14px; }
  [dir="rtl"] .faq-a { padding: 0 2px 22px 44px; }
}

/* ─── PRICING (mixer strips) ─── */
.pricing {
  padding: 130px 0;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.pricing-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  margin: 0 auto 56px;
  position: relative;
}
.pricing-switch-wrap { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.ptoggle-btn {
  padding: 8px 22px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.25s, color 0.25s;
}
.ptoggle-btn.active {
  background: var(--ink);
  color: var(--bg);
}
.save-badge {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(232, 174, 61, 0.16);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid rgba(232, 174, 61, 0.3);
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.mixer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.strip {
  position: relative;
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s;
}
.strip:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--rule-strong); }
.strip-featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-12px);
}
.strip-featured:hover { transform: translateY(-16px); box-shadow: var(--shadow-lg); }
.strip-featured .strip-num,
.strip-featured h3,
.strip-featured .strip-price strong,
.strip-featured .strip-period { color: var(--bg); }
.strip-featured .strip-features li { color: rgba(250, 246, 238, 0.78); }
.strip-featured .strip-features li::before { color: var(--coral); }

/* Dark theme: featured-strip background flips to cream — flip text/borders to dark too */
:root[data-theme="dark"] .strip-featured .strip-features li { color: rgba(15, 14, 20, 0.82); }
:root[data-theme="dark"] .strip-featured .strip-fader        { border-color: rgba(15, 14, 20, 0.22); }
:root[data-theme="dark"] .strip-featured .fader-label        { color: rgba(15, 14, 20, 0.62); }
:root[data-theme="dark"] .strip-featured .fader-bar          { background: rgba(15, 14, 20, 0.18); }

.strip-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.strip-num .badge-pop {
  font-size: 0.66rem;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--coral);
  color: white;
  letter-spacing: 0.1em;
}
.strip-num .badge-best {
  font-size: 0.66rem;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  letter-spacing: 0.1em;
}
.strip h3 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.strip-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  line-height: 1;
}
.strip-price span { font-size: 1rem; color: var(--ink-3); margin-bottom: 8px; font-weight: 600; }
.strip-price strong {
  font-family: var(--mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.strip-period {
  font-size: 0.84rem;
  color: var(--ink-3);
}
.price-yearly-note {
  font-size: 0.74rem;
  color: var(--coral);
  margin-top: -4px;
  display: none;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* Fader bar — visual flourish */
.strip-fader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
}
.strip-featured .strip-fader { border-color: rgba(250, 246, 238, 0.18); }
.fader-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.strip-featured .fader-label { color: rgba(250, 246, 238, 0.56); }
.fader-bar {
  flex: 1;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  position: relative;
}
.strip-featured .fader-bar { background: rgba(250, 246, 238, 0.18); }
.fader-knob {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(56, 82, 255, 0.4);
}
.strip-featured .fader-knob { background: var(--coral); box-shadow: 0 2px 6px rgba(255, 107, 87, 0.5); }

.strip-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.strip-features li {
  font-size: 0.88rem;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.strip-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.strip .btn { width: 100%; }

/* ─── FINALE ─── */
.finale {
  padding: 160px 0 140px;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.finale-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 2;
}
.finale-ghost {
  width: 130px;
  height: auto;
  margin-bottom: 6px;
  filter: drop-shadow(0 14px 28px rgba(19, 17, 15, 0.18));
  animation: ghostFloat 5.5s var(--ease) infinite;
}
:root[data-theme="dark"] .finale-ghost {
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
}
@keyframes ghostFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-12px) rotate(2deg); }
}
.finale h2 {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.finale h2 em {
  color: var(--coral);
  display: block;
  font-style: italic;
}
.finale p {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 480px;
  line-height: 1.6;
  margin: 4px auto 8px;
}
.cta-foot {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.08em;
}
.finale-wave {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.finale-wave path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.25;
}
.finale-wave path.lead {
  stroke: var(--coral);
  stroke-width: 2;
  opacity: 0.7;
  stroke-dasharray: 6 8;
  animation: waveDrift 9s linear infinite;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--rule-strong);
  padding: 72px 0 40px;
}
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}
.masthead-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.masthead-ghost {
  width: clamp(40px, 8vw, 64px);
  height: auto;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 4px 10px rgba(19, 17, 15, 0.15));
}
:root[data-theme="dark"] .masthead-ghost {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}
.masthead-meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.masthead-rule {
  height: 1px;
  background: var(--ink);
  margin-bottom: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 28px 0;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col .lbl { margin-bottom: 6px; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color 0.2s;
  width: fit-content;
  border-bottom: 1px solid transparent;
}
.footer-col a:hover { color: var(--ink); border-color: var(--ink); }
.footer-col p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 32ch;
}
.footer-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.ascii-wave {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin: 22px 0 14px;
  white-space: nowrap;
  overflow: hidden;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

/* ═════════════════════════════════════════════
   RTL OVERRIDES
   ═════════════════════════════════════════════ */
[dir="rtl"] .nav-inner       { flex-direction: row-reverse; }
[dir="rtl"] .nav-end         { flex-direction: row-reverse; }
[dir="rtl"] .hero-grid       { direction: rtl; }
[dir="rtl"] .hero-text       { text-align: right; }
[dir="rtl"] .lede            { text-align: right; }
[dir="rtl"] .hero-cta        { justify-content: flex-end; }
[dir="rtl"] .phone-tape      { right: -18px; left: auto; transform: rotate(3deg); }
[dir="rtl"] .phone-trk       { left: -22px; right: auto; transform: rotate(-6deg); }
[dir="rtl"] .karaoke-stage   { direction: rtl; }
[dir="rtl"] .karaoke-passage { text-align: right; direction: rtl; }
[dir="rtl"] .karaoke-stage-controls { direction: ltr; }
[dir="rtl"] .showcase-grid   { direction: rtl; }
[dir="rtl"] .showcase-step   { text-align: right; }
[dir="rtl"] .bento-grid      { direction: rtl; }
[dir="rtl"] .tile            { text-align: right; }
[dir="rtl"] .source-chip     { direction: ltr; }
[dir="rtl"] .filmstrip-track { flex-direction: row-reverse; }
[dir="rtl"] .flow-b          { direction: rtl; }
[dir="rtl"] .flow-b-text     { text-align: right; }
[dir="rtl"] .mixer           { direction: rtl; }
[dir="rtl"] .strip           { text-align: right; }
[dir="rtl"] .strip-features li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .strip-features li::before { left: auto; right: 0; }
[dir="rtl"] .strip-price     { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .footer-grid     { direction: rtl; }
[dir="rtl"] .footer-col      { text-align: right; align-items: flex-end; }
[dir="rtl"] .footer-actions  { align-items: flex-end; }
[dir="rtl"] .pricing-switch  { direction: ltr; }
[dir="rtl"] .karaoke-text    { direction: rtl; text-align: right; }
[dir="rtl"] .karaoke-header  { text-align: right; }
[dir="rtl"] .marquee-track   { direction: ltr; }
[dir="rtl"] .marquee-track   { animation-name: marqueeRollRtl; }
@keyframes marqueeRollRtl {
  to { transform: translateX(50%); }
}
[dir="rtl"] .appstore-text   { text-align: right; }
[dir="rtl"] .badge-pop, [dir="rtl"] .badge-best { direction: ltr; }

/* ═════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .hero-grid     { grid-template-columns: 1fr; gap: 64px; }
  .hero-phone    { justify-content: center; }
  .karaoke-stage { grid-template-columns: 1fr; gap: 48px; }
  .karaoke-stage .phone { margin: 0 auto; }
  .showcase-grid { grid-template-columns: 1fr; gap: 0; }
  .showcase-text { gap: 20px; padding-top: 0; padding-bottom: 0; }
  /* Hide the shared sticky phone — each step renders its own inline */
  .showcase-phone-wrap { display: none; }
  /* Each step becomes self-contained: text → screenshot → chips */
  .showcase-step { opacity: 1; padding: 32px 0 40px; }
  .showcase-step-phone {
    display: flex;
    justify-content: center;
    margin: 22px 0 18px;
  }
  .showcase-step-phone .phone-inline {
    width: 240px;
    height: 490px;
  }
  /* Tighten chip row spacing on mobile */
  .showcase-step .showcase-step-list { margin-top: 4px; }
  .bento-grid    { grid-template-columns: repeat(2, 1fr); }
  .tile          { grid-column: span 1; }
  .tile-2x       { grid-column: span 2; }
  .tile-3x       { grid-column: span 2; }
  .mixer         { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .strip-featured { transform: none; }
  .strip-featured:hover { transform: translateY(-4px); }
  .footer-grid   { grid-template-columns: repeat(2, 1fr); }
  .flow-b        { grid-template-columns: 1fr; gap: 36px; padding: 36px 28px; }
  .flow-b-phone  { order: -1; }

  [dir="rtl"] .hero-grid,
  [dir="rtl"] .karaoke-stage,
  [dir="rtl"] .showcase-grid,
  [dir="rtl"] .bento-grid,
  [dir="rtl"] .footer-grid { direction: rtl; }
}

@media (max-width: 600px) {
  .container       { padding: 0 20px; }
  .nav             { top: 8px; padding: 0 12px; }
  .nav-inner       { padding: 8px 12px; }
  .nav-mark .nav-mark-tag { display: none; }
  .nav .btn-ink    { display: none; }
  .hero            { padding: 110px 0 60px; min-height: auto; }
  .headline        { font-size: 2rem; line-height: 1.08; }
  .hero-stats      { gap: 16px; }
  .phone           { width: 250px; height: 510px; }
  .hero-eq         { display: none; }
  .marquee-band .marquee-item { font-size: 1.1rem; }
  .bento-grid      { grid-template-columns: 1fr; }
  .tile, .tile-2x, .tile-3x { grid-column: span 1; }
  .footer-grid     { grid-template-columns: 1fr; }
  .filmstrip-track { padding: 0 24px; }
  .drag-hint       { right: 20px; bottom: 16px; }
  .karaoke-passage { font-size: 1.2rem; }
  .nav-mark .nav-logo { height: 22px !important; }
  .gallery-phone   { width: 200px !important; height: 410px !important; }
  .film-caption    { min-width: 160px; }
  .film-name       { font-size: 0.88rem; }
  .finale-ghost    { width: 96px; }
  .showcase-flow-label { gap: 10px; }
  .showcase-flow-label .flow-label { font-size: 0.66rem; letter-spacing: 0.18em; }

  /* ─── Pricing mobile cleanup ─── */
  .pricing                { padding: 80px 0 90px; }
  .pricing .section-header h2 { font-size: clamp(1.7rem, 6.5vw, 2.2rem); }
  .pricing-switch-wrap    { gap: 10px; margin-bottom: 36px; flex-direction: column; }
  .pricing-switch         { margin: 0 auto; }
  .ptoggle-btn            { padding: 8px 18px; font-size: 0.82rem; }
  .save-badge             { font-size: 0.66rem; padding: 4px 10px; }
  .mixer                  { gap: 14px; max-width: 100%; padding: 0 4px; }
  .strip                  { padding: 22px 20px; gap: 14px; border-radius: 18px; }
  .strip-num              { flex-wrap: wrap; gap: 6px 12px; font-size: 0.66rem; letter-spacing: 0.14em; }
  .strip-num .badge-pop,
  .strip-num .badge-best  { font-size: 0.6rem; padding: 3px 8px; letter-spacing: 0.08em; }
  .strip h3               { font-size: 1.25rem; }
  .strip-price strong     { font-size: 2.2rem; }
  .strip-price span       { font-size: 0.9rem; margin-bottom: 6px; }
  .strip-period           { font-size: 0.78rem; }
  .price-yearly-note      { font-size: 0.68rem; }
  .strip-fader            { padding: 8px 0; gap: 8px; }
  .fader-label            { font-size: 0.6rem; letter-spacing: 0.12em; }
  .strip-features         { gap: 8px; }
  .strip-features li      { font-size: 0.84rem; padding-left: 20px; line-height: 1.5; }
  [dir="rtl"] .strip-features li { padding-left: 0; padding-right: 20px; }
  /* The featured strip's "lift" is removed at <=1000px; keep it visually distinct via accent border instead */
  .strip-featured         { box-shadow: 0 8px 24px rgba(19, 17, 15, 0.18); }
}

/* ═════════════════════════════════════════════
   MOTION REDUCTION
   ═════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .emph-underline path { stroke-dashoffset: 0; }
}

/* ═════════════════════════════════════════════
   v1.1 — LANGUAGE DROPDOWN
   Replaces the binary EN/AR pill with a 9-language menu. Reuses the existing
   `.lang-toggle` pill styling for the trigger; adds the dropdown panel.
   ═════════════════════════════════════════════ */
.lang-menu        { position: relative; display: inline-block; }
.lang-caret       { display: inline-block; font-size: 0.6rem; margin-left: 4px; opacity: 0.55; transition: transform 0.2s ease; }
[dir="rtl"] .lang-caret { margin-left: 0; margin-right: 4px; }
.lang-toggle[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid rgba(74, 70, 64, 0.18);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(19, 17, 15, 0.18);
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 200;
}
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

.lang-dropdown li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--ink-2);
  transition: background 0.15s ease;
}
.lang-dropdown li:hover,
.lang-dropdown li:focus { background: var(--bg-2); outline: none; }
.lang-dropdown li.active { background: var(--bg-2); color: var(--coral); font-weight: 600; }
.lang-dropdown li .lang-code   { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--ink-3); min-width: 28px; }
.lang-dropdown li .lang-native { flex: 1; }

:root[data-theme="dark"] .lang-dropdown {
  border-color: rgba(181, 175, 161, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Footer variant — slightly smaller font */
.lang-menu.sm .lang-dropdown { min-width: 140px; font-size: 0.76rem; }
/* Footer is at the BOTTOM of the page — open the dropdown UPWARDS so it
   doesn't get clipped or pushed under the viewport bottom edge. */
.lang-menu.sm .lang-dropdown { top: auto; bottom: calc(100% + 6px); }

@media (max-width: 480px) {
  .lang-dropdown { right: -4px; min-width: 200px; }
  [dir="rtl"] .lang-dropdown { right: auto; left: -4px; }
}

/* ═════════════════════════════════════════════
   v1.1 — i18n BANNER
   Top-of-page notice when a non-EN/AR language is selected but content
   hasn't been translated yet. Dismissible per-language via sessionStorage.
   ═════════════════════════════════════════════ */
.i18n-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 16px;
  background: rgba(255, 107, 87, 0.10);
  border-bottom: 1px solid rgba(255, 107, 87, 0.22);
  color: var(--ink-2);
  font-size: 0.78rem;
  z-index: 90;
}
.i18n-banner-text { line-height: 1.4; }
.i18n-banner-close {
  background: none;
  border: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.i18n-banner-close:hover { color: var(--coral); background: rgba(255, 107, 87, 0.10); }

:root[data-theme="dark"] .i18n-banner { background: rgba(255, 134, 117, 0.10); border-bottom-color: rgba(255, 134, 117, 0.22); }

/* ═════════════════════════════════════════════
   v1.1 — IMMERSIVE MODE SECTION (TRK 02)
   Side-by-side phone screenshot + numbered feature list. Stacks vertically
   on mobile. Phone visual reuses the existing `.phone tilt-target` chrome.
   ═════════════════════════════════════════════ */
.immersive-section { padding: clamp(60px, 8vw, 96px) 0; position: relative; }
.immersive-section .section-header { margin-bottom: clamp(32px, 5vw, 56px); text-align: center; }

.immersive-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
[dir="rtl"] .immersive-stage { direction: rtl; }

.immersive-phone { max-width: 320px; justify-self: center; }
.immersive-phone .phone-screen.bg-app { background: var(--paper); }
.immersive-phone .screenshot-img { width: 100%; display: block; }

.immersive-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.immersive-feature {
  position: relative;
  padding-left: 60px;
  padding-top: 4px;
  min-height: 48px;
}
[dir="rtl"] .immersive-feature { padding-left: 0; padding-right: 60px; }

.immersive-feature-num {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--coral);
  background: rgba(255, 107, 87, 0.10);
  border: 1px solid rgba(255, 107, 87, 0.24);
  border-radius: 999px;
  padding: 6px 10px;
  min-width: 44px;
  text-align: center;
}
[dir="rtl"] .immersive-feature-num { left: auto; right: 0; }

.immersive-feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--ink);
}
.immersive-feature p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 720px) {
  .immersive-stage { grid-template-columns: 1fr; }
  .immersive-phone { max-width: 260px; }
  .immersive-feature { padding-left: 52px; }
  [dir="rtl"] .immersive-feature { padding-right: 52px; padding-left: 0; }
}

/* ═════════════════════════════════════════════
   v1.1 — BENTO ADDITIONS (feat7 langs, feat9 vocab, feat10 translate)
   Reuses the existing `.tile` chrome — only the inner visual block is new.
   ═════════════════════════════════════════════ */

/* Languages tile — 9 native-name chips */
.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.lang-chip {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid rgba(74, 70, 64, 0.10);
  border-radius: 999px;
  line-height: 1.1;
}
:root[data-theme="dark"] .lang-chip { border-color: rgba(181, 175, 161, 0.14); }

/* Vocabulary stack — three rotated word cards stacked behind each other */
.vocab-stack {
  position: relative;
  height: 140px;
  margin-top: 12px;
}
.vocab-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid rgba(74, 70, 64, 0.14);
  border-radius: 10px;
  padding: 10px 14px;
  width: 78%;
  left: 11%;
  box-shadow: 0 4px 12px rgba(19, 17, 15, 0.06);
  font-size: 0.85rem;
  line-height: 1.4;
}
.vocab-card-1 { top: 0;   transform: rotate(-2.5deg); }
.vocab-card-2 { top: 38px; transform: rotate(0.8deg); }
.vocab-card-3 { top: 76px; transform: rotate(-1.2deg); }
.vocab-word   { display: block; font-weight: 700; color: var(--coral); font-family: var(--serif); font-size: 0.98rem; }
.vocab-def    { display: block; color: var(--ink-3); font-size: 0.76rem; margin-top: 2px; }
:root[data-theme="dark"] .vocab-card { border-color: rgba(181, 175, 161, 0.14); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }

/* AI translation tile — source ↔ target sentence pair */
.translate-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid rgba(74, 70, 64, 0.10);
}
.translate-source,
.translate-target { display: flex; flex-direction: column; gap: 4px; }
.translate-source p,
.translate-target p {
  font-family: var(--serif);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0;
}
.translate-target p { color: var(--ink); font-weight: 500; }
.lang-lbl {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.translate-arrow { color: var(--coral); font-size: 1rem; font-weight: 700; }
[dir="rtl"] .translate-arrow { transform: rotate(180deg); }
:root[data-theme="dark"] .translate-card { border-color: rgba(181, 175, 161, 0.14); }

/* Tile badge — small pill in the corner of vocab + translate tiles */
.tile-badge {
  display: inline-block;
  padding: 4px 9px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(255, 107, 87, 0.10);
  border: 1px solid rgba(255, 107, 87, 0.22);
  border-radius: 999px;
  margin-top: 8px;
  align-self: flex-start;
}

/* ═════════════════════════════════════════════
   v1.1 — OUTRO TAG
   Small italic kicker under "Press play."
   ═════════════════════════════════════════════ */
.outro-tag {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.outro-tag em { font-style: normal; color: var(--coral); font-weight: 600; }

