/* ═══════════════════════════════════════════════════════════════
   VOKI LANDING PAGE — styles.css
   Fonts: Fredoka (display + body)
   Colors driven by GSAP-animated #bg-canvas
   ═══════════════════════════════════════════════════════════════ */

/* ── ROOT VARIABLES ──────────────────────────────────────────── */
:root {
  --blue:    #1daae2;
  --orange:  #f58220;
  --green:   #8ebf4b;
  --yellow:  #fcd53b;
  --pink:    #f4608f;
  --dark:    #1a1a2e;
  --purple:  #6B35C8;
  --white:   #ffffff;
  --glass:   rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.22);

  --font-display: 'Fredoka', sans-serif;
  --font-body:    'Fredoka', sans-serif;

  --radius-sm:  12px;
  --radius-md:  20px;
  --radius-lg:  32px;
  --radius-xl:  44px;

  /* ── Type Scale ────────8──────────────────────────────────── */
  --h1: clamp(46px, 6vw, 86px);
  --h2: clamp(44px, 6.5vw, 72px);
  --h3: clamp(38px, 5vw, 54px);
  --h4: clamp(24px, 2.5vw, 34px);
  --h5: clamp(16px, 1.6vw, 22px);
  --h6: clamp(14px, 1.4vw, 17px);
  --p:  clamp(15px, 1.6vw, 19px);
}

/* ── CJK & DEVANAGARI FONT OVERRIDES ────────────────────────── */
/* Fredoka has no Chinese/Japanese/Hindi glyphs — swap to Noto   */
:lang(zh) {
  --font-display: 'Noto Sans SC', sans-serif;
  --font-body:    'Noto Sans SC', sans-serif;
}
:lang(ja) {
  --font-display: 'Noto Sans JP', sans-serif;
  --font-body:    'Noto Sans JP', sans-serif;
}
:lang(hi) {
  --font-display: 'Noto Sans Devanagari', sans-serif;
  --font-body:    'Noto Sans Devanagari', sans-serif;
}
/* Negative letter-spacing is inappropriate for CJK/Devanagari   */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4, :lang(zh) h5, :lang(zh) h6,
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4, :lang(ja) h5, :lang(ja) h6,
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) h4, :lang(hi) h5, :lang(hi) h6 {
  letter-spacing: 0;
}

/* CJK & Devanagari characters are visually larger than Latin at the same px.
   On mobile the clamp() minimums are the active value, so we reduce them ~20%. */
@media (max-width: 700px) {
  :lang(zh), :lang(ja), :lang(hi) {
    --h1: clamp(32px, 6vw, 90px);
    --h2: clamp(26px, 6.5vw, 82px);
    --h3: clamp(26px, 5vw, 72px);
    --h4: clamp(20px, 2.5vw, 34px);
  }
}

/* ── BASE HEADING SCALE (h1–h6) ─────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-display);
  font-size: var(--h4);
  font-weight: 600;
  line-height: 1.2;
}

h5 {
  font-family: var(--font-display);
  font-size: var(--h5);
  font-weight: 600;
  line-height: 1.3;
}

h6 {
  font-family: var(--font-display);
  font-size: var(--h6);
  font-weight: 600;
  line-height: 1.4;
}

p {
  font-family: var(--font-body);
  font-size: var(--p);
  line-height: 1.7;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--blue);
  min-height: unset;
}

#features {
  scroll-margin-top: 110px;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  overflow-x: hidden;
  background-color: var(--blue);
  min-height: unset;
}

html.mobile-nav-open,
body.mobile-nav-open {
  overflow: hidden;
}

body.mobile-nav-open {
  position: fixed;
  width: 100%;
}

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

ul { list-style: none; }

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

/* ── BACKGROUND CANVAS (GSAP-animated) ───────────────────────── */
#bg-canvas {
  display: none;
}

/* ── ALL SECTIONS ABOVE CANVAS ───────────────────────────────── */
main, footer, .navbar, .splash-screen {
  position: relative;
  z-index: 1;
}

/* ── DECORATIVE LAYER ────────────────────────────────────────── */
#deco-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2100;
  overflow: hidden;
}

/* Clouds — z-index 2, in front of balloons */
.deco-cloud {
  position: absolute;
  opacity: 0;
  will-change: transform;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
  z-index: 2;
}
/* cloud-1 = large (fast), cloud-2 = small (slow), cloud-3 = medium */
#deco-cloud-1 { width: clamp(220px, 24vw, 340px); top: 9vh;  left: 4%; }
#deco-cloud-2 { width: clamp(110px, 11vw, 170px); top: 40vh; right: 2%; }
#deco-cloud-3 { width: clamp(170px, 18vw, 270px); top: 71vh; left: 14%; }

/* Balloons — z-index 1, behind clouds */
.deco-balloon {
  position: absolute;
  will-change: transform;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
  z-index: 1;
}
#deco-balloon-1 { width: clamp(64px, 7vw, 120px); left: 7%;   bottom: -150px; opacity: 0; }
#deco-balloon-2 { width: clamp(54px, 6vw, 100px); right: 9%;  bottom: -200px; opacity: 0; }

/* Characters — position & transform fully controlled by GSAP at runtime */
.deco-char {
  position: absolute;
  width: clamp(110px, 12vw, 200px);
  will-change: transform, opacity;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
  z-index: 3;
  opacity: 0;   /* hidden by default — GSAP reveals them */
  visibility: hidden;
  pointer-events: auto;
}

/* character9 — inside footer, peeks above the footer top edge near the logo */
#footer-char9 {
  position: absolute;
  top: 0;
  right: 8%;
  width: clamp(160px, 18vw, 280px);
  transform: translateY(-68%);
  transform-origin: bottom center;
  filter: drop-shadow(0 -4px 18px rgba(0,0,0,0.3));
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 768px) {
  .deco-cloud { width: clamp(80px, 18vw, 140px); filter: none; will-change: auto; }
  .deco-balloon { width: clamp(40px, 8vw, 70px); filter: none; will-change: auto; }
  .deco-char { width: clamp(130px, 28vw, 220px); filter: none; will-change: auto; }
}

@media (prefers-reduced-motion: reduce) {
  #deco-layer { display: none; }
}

/* ── SPLASH SCREEN ───────────────────────────────────────────── */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.splash-logo-img {
  height: clamp(140px, 30vw, 320px);
  width: auto;
  object-fit: contain;
}

.splash-tagline {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
}

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0.5rem clamp(1.5rem, 6vw, 5rem);
  background: rgba(29, 170, 226, 0.65); /* #1daae2 */
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.navbar-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .navbar-logo-img { height: 36px; }
}

.nav-links {
  display: flex;
  align-items: center;
    gap: clamp(16px, 2.2vw, 24px);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.nav-links .nav-links-item,
.nav-links .nav-link {
  pointer-events: auto;
}

.nav-links-item { display: flex; }

.nav-link {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 3px;
  padding-inline: 0.8rem;
  padding-top: 0.38rem;
  transition: color 0.22s ease;
  transition-property: color, background-color, transform;
  transition-duration: 0.22s;
  transition-timing-function: ease;
  border-radius: 999px;
  white-space: nowrap;
}

/* Animated underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover {
  background: var(--nav-active-bg, var(--orange));
  color: var(--white);
  font-weight: 700;
}

.nav-link.is-active {
  background: var(--nav-active-bg, var(--orange));
  color: var(--white);
  font-weight: 700;
}

.nav-link.is-active::after {
  width: 0;
}

.nav-link:hover::after {
  width: 0;
}

.nav-link:active {
  transform: scale(0.95);
  color: var(--yellow);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-md);
  white-space: nowrap;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  transform: scale(1.06);
  background: var(--pink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-cta-inner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-cta-icon {
  width: 20px;
  height: 20px;
  color: var(--white);
  flex-shrink: 0;
}

.nav-cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-cta-sub {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-cta-name {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

/* ── Nav right group (lang picker + CTA) ─────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Language Picker ──────────────────────────────────────────── */
.lang-picker {
  position: relative;
  flex-shrink: 0;
}

.lang-picker-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  padding: 0.38rem 0.75rem 0.38rem 0.55rem;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.lang-picker-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}
.lang-picker-flag { font-size: 16px; line-height: 1; }
.lang-picker-label { letter-spacing: 0.03em; }
.lang-picker-chevron {
  width: 14px; height: 14px;
  opacity: 0.7;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.lang-picker.is-open .lang-picker-chevron { transform: rotate(180deg); }

.lang-picker-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(20, 20, 40, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  min-width: 170px;
  display: none;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  z-index: 9999;
}
.lang-picker.is-open .lang-picker-dropdown { display: block; }

.lang-picker-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.lang-picker-option:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}
.lang-picker-option.active {
  background: rgba(29, 170, 226, 0.35);
  color: #ffffff;
  font-weight: 700;
}

/* Mobile language picker inside mobile nav */
.mobile-lang-picker {
  width: 100%;
  padding: 1.25rem 1.5rem 0.5rem;
  border-top: none;
  margin-top: 0.5rem;
}
.mobile-lang-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}
.mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.mobile-lang-opt {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mobile-lang-opt:hover { background: rgba(255,255,255,0.18); color: #fff; }
.mobile-lang-opt.active {
  background: rgba(29, 170, 226, 0.45);
  border-color: rgba(29, 170, 226, 0.7);
  color: #fff;
  font-weight: 700;
}

/* Hide desktop nav-right on mobile, show on desktop (>900px) */
@media (max-width: 900px) {
  .nav-right { display: none; }
}
@media (min-width: 901px) {
  .mobile-lang-picker { display: none; }
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.4rem;
  flex-shrink: 0;
}

.hamburger-icon { display: block; }

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1500;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(env(safe-area-inset-top, 0px) + 7.5rem) 1.5rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.75rem;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.mobile-nav-close-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  line-height: 1.1;
  transition: color 0.2s, background-color 0.2s;
}

.mobile-nav-link.is-active {
  background: var(--nav-active-bg, var(--yellow));
  color: var(--white);
}

.mobile-nav-link.is-active:hover {
  color: var(--white);
}

.mobile-nav-link:hover { color: var(--yellow); }

.mobile-nav-cta-link {
  color: var(--yellow);
  border: 2px solid var(--yellow);
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  margin-top: 1rem;
  display: inline-block;
}

.mobile-nav-store-btn {
  margin-top: 2.5rem;
}

/* ── SECTION BASE ────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: unset;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section + .section {
  margin-top: clamp(96px, 12vw, 190px);
}

/* ── COMMON TYPOGRAPHY ───────────────────────────────────────── */
.eyebrow-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(9px, 0.85vw, 11px);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  color: #ffffff;
  border: none;
  width: fit-content;
}

@media (max-width: 767px) {
  .eyebrow-label {
    font-size: 70%;
  }
}

.eyebrow-label--dark {
  background: rgba(26, 26, 46, 0.12);
  border: 1px solid rgba(26, 26, 46, 0.2);
  color: var(--dark);
}

/* Per-section badge background overrides — all cleared, JS assigns random colors */
.eyebrow-label--white,
.eyebrow-label--accent { color: #ffffff; }

.display-headline {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  width: 100%;
}

.display-headline--dark { color: var(--dark); }
.display-headline--white { color: var(--white); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--white);
  background: var(--dark);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
  will-change: transform;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateX(-102%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50px;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover::after { transform: translateX(0); }

.btn-primary .btn-icon,
.btn-primary span { position: relative; z-index: 1; }

.btn-primary--dark {
  background: var(--dark);
  color: var(--white);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── IMG PLACEHOLDER ─────────────────────────────────────────── */
.img-placeholder {
  width: 100%;
  height: 100%;
  background: #d1d5db;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 2vw, 22px);
  letter-spacing: 0.25em;
  border-radius: inherit;
}

.phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* ── LANGUAGE SLIDER (inside phone mockup) ───────────────────── */
.lang-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.lang-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.lang-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-slide.active {
  opacity: 1;
}

.lang-slider-dots {
  display: none;
}

.lang-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s, transform 0.3s;
}

.lang-slider-dot.active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.35);
}


.hero-section {
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 100dvh;
  padding: 80px 8vw;
  gap: 3rem;
}

@media (max-width: 768px) {
  .hero-layout {
    padding-top: 80px;
  }
  .phone-frame {
    width: clamp(80px, 22vw, 115px);
    border-radius: clamp(12px, 3.1vw, 18px);
  }
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Tablet: less top padding */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-layout {
    padding-top: 80px;
  }
}

@media (max-width: 899px) {
  .hero-text   { order: 2; }
  .hero-visual { order: 1; }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  z-index: 1;
}

@media (max-width: 899px) {
  .hero-text {
    align-items: center;
    text-align: center;
  }
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}

.headline-accent { color: var(--blue); }


/* colored accent span — inherits size so fitHeadlines never breaks */
.accent { color: var(--yellow); font-size: inherit; font-weight: inherit; }

/* Per-section accent colors for contrast against each background */
[data-bg="#1482ae"] .accent { color: var(--yellow); }
[data-bg="#1a1a2e"] .accent { color: var(--pink); }

.hero-sub {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

/* Individual hero badge colors */
.hero-badge:nth-child(1) { background: var(--blue);   border-color: var(--blue); }
.hero-badge:nth-child(2) { background: var(--orange);  border-color: var(--orange); }
.hero-badge:nth-child(3) { background: var(--green);   border-color: var(--green); }
.hero-badge:nth-child(4) { background: var(--pink);    border-color: var(--pink); }
.hero-badge:nth-child(5) { background: var(--yellow);  border-color: var(--yellow); color: var(--dark); }

.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Phone Frame Wrapper */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame-wrapper {
  position: relative;
  display: inline-flex;
  /* breathing room so protruding buttons aren't clipped */
  margin: 0 14px;
}

/* ── iPHONE 16 MOCKUP ────────────────────────────────────────── */
.phone-frame {
  /* Aspect ratio matches screenshot dimensions (589 × 1278 px); width reduced so height is ~60px less */
  width: clamp(193px, 21vw, 313px);
  aspect-ratio: 589 / 1258;
  position: relative;
  /* White aluminium body */
  background: linear-gradient(160deg, #f8f8f8 0%, #e8e8e8 40%, #f0f0f0 70%, #dcdcdc 100%);
  border-radius: clamp(28px, 3.5vw, 44px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.12),
    0 0 0 1px #c0c0c0,
    0 0 0 2.5px #e8e8e8,
    0 0 0 4px #b0b0b0,
    0 36px 72px rgba(0,0,0,0.35),
    0 8px 24px rgba(0,0,0,0.2);
  overflow: visible;
}

/* Screen — flush to frame, border-radius matches frame scaling */
.phone-screen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000;
  border-radius: inherit;
  overflow: hidden;
}

/* Dynamic Island — percentage-based so it scales with the phone frame */
.phone-dynamic-island {
  position: absolute;
  top: 1.8%;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: clamp(14px, 2.2%, 28px);
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(60,60,60,0.35);
}

/* ── Physical buttons ────────────────────────────────────────── */
.phone-btn-action,
.phone-btn-vol-up,
.phone-btn-vol-down,
.phone-btn-mute,
.phone-btn-power,
.phone-btn-camera-control {
  position: absolute;
  z-index: -1;  /* behind the frame */
}

/* Hide all left-side buttons and camera control — only power remains */
.phone-btn-action,
.phone-btn-vol-up,
.phone-btn-vol-down,
.phone-btn-mute,
.phone-btn-camera-control {
  display: none;
}

/* Right-side power button — white aluminium */
.phone-btn-power {
  right: -4px;
  width: 5px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to left,
    #aaa 0%, #d8d8d8 35%, #e8e8e8 50%, #d8d8d8 65%, #aaa 100%);
  box-shadow:
    1px 0 0 rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}
.phone-btn-power { top: 24%; height: 9%; }

/* Home indicator bar */
.phone-home-bar {
  display: none;
}

/* Legacy variants — all now inherit the white base; glows kept for accent */
.phone-notch { display: none; }
.phone-frame--glow {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 0 0 1px #c0c0c0, 0 0 0 2.5px #e8e8e8, 0 0 0 4px #b0b0b0,
    0 36px 72px rgba(0,0,0,0.35), 0 0 60px rgba(90,200,250,0.3);
}
.phone-frame--purple {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 0 0 1px #c0c0c0, 0 0 0 2.5px #e8e8e8, 0 0 0 4px #b0b0b0,
    0 36px 72px rgba(0,0,0,0.35), 0 0 60px rgba(107,53,200,0.35);
}
.phone-home-bar--dark { background: rgba(0,0,0,0.25); }

/* Floating badges around hero phone */
.hero-float-badge {
  position: absolute;
  background: var(--white);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  white-space: nowrap;
  z-index: 3;
}

/* 1 — New story every time (bottom-right) */
.hero-float-badge--1 {
  bottom: 18%;
  right: -30%;
  background: var(--orange);
}
/* 2 — 9 Languages (top-right) */
.hero-float-badge--2 {
  top: 12%;
  right: -30%;
  background: var(--green);
}
/* 3 — Your kid's hero (top-left) */
.hero-float-badge--3 {
  top: 32%;
  left: -34%;
  background: var(--pink);
}
/* 4 — Personalized (bottom-left) */
.hero-float-badge--4 {
  bottom: 36%;
  left: -34%;
  background: var(--yellow);
  color: var(--dark);
}

.float-badge-icon {
  width: 14px;
  height: 14px;
  color: var(--white);
}

.hero-float-badge--4 .float-badge-icon {
  color: var(--dark);
}

/* Scroll hint */
/* ── HERO MARQUEE BAR ────────────────────────────────────────── */
.hero-marquee-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.hero-marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.hero-marquee-bar:hover .hero-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 3rem;
  white-space: nowrap;
}

.marquee-item + .marquee-item::before {
  content: '·';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.3);
}

.marquee-icon {
  width: 17px;
  height: 17px;
  color: var(--yellow);
  flex-shrink: 0;
}

/* ── STATEMENT SECTION ───────────────────────────────────────── */
.statement-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: unset;
}

.statement-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 60px 8vw;
}

.statement-overline {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.statement-text {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--white);
  max-width: 1300px;
  width: 100%;
}

.split-line { display: inline; }

/* GSAP char-split spans — keep characters inline-block for transform */
.js-word {
  display: inline-block;
  white-space: nowrap;
}
.js-char {
  display: inline-block;
  will-change: transform, opacity;
  line-height: inherit;
}

.statement-emphasis {
  color: var(--yellow);
}

/* ── HOW IT WORKS SECTION ────────────────────────────────────── */
.how-section {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  padding: 80px 8vw;
  width: 100%;
}

.how-headline {
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  width: 100%;
}

/* ── SECTION SUBLINE ─────────────────────────────────────────── */
.section-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  width: 100%;
  max-width: 900px;
  margin-top: -0.5rem;
}

.section-sub--centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-sub--feature {
  font-size: clamp(14px, 1.3vw, 17px);
  color: rgba(255, 255, 255, 0.65);
  width: 100%;
  max-width: 1000px;
  margin-top: -0.75rem;
  margin-bottom: -0.25rem;
}

.how-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1300px;
  width: 100%;
}

.how-steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  margin-top: 3.5rem;
}

@media (max-width: 767px) {
  .how-steps-row {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 1.25rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    margin-top: 2.5rem;
  }
  .how-steps-row::-webkit-scrollbar { display: none; }

  .how-step {
    flex: 0 0 82vw;
    max-width: 340px;
    scroll-snap-align: center;
  }

  .how-steps-row .how-step:last-child {
    margin-right: 1.25rem;
  }

  /* Remove horizontal padding so cards reach the edges, like community section */
  .how-inner {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Restore padding for the header only */
  .how-header {
    padding: 0 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .how-steps-row {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  overflow: hidden;
  text-align: left;
  align-items: flex-start;
}

/* Card colour variants */
.how-step--blue {
  background: var(--blue);
  color: #ffffff;
}
.how-step--blue .step-title  { color: #ffffff; }
.how-step--blue .step-body   { color: rgba(255,255,255,0.85); }
.how-step--blue .step-icon-wrap { background: #1482ae; border-color: #1482ae; }
.how-step--blue .step-icon   { color: #ffffff; }
.how-step--blue .step-number-badge { color: rgba(255,255,255,0.2); }

.how-step--pink {
  background: var(--pink);
  color: #ffffff;
}
.how-step--pink .step-title  { color: #ffffff; }
.how-step--pink .step-body   { color: rgba(255,255,255,0.85); }
.how-step--pink .step-icon-wrap { background: #c74a72; border-color: #c74a72; }
.how-step--pink .step-icon   { color: #ffffff; }
.how-step--pink .step-number-badge { color: rgba(255,255,255,0.2); }

.how-step--orange {
  background: var(--orange);
  color: #ffffff;
}
.how-step--orange .step-title  { color: #ffffff; }
.how-step--orange .step-body   { color: rgba(255,255,255,0.85); }
.how-step--orange .step-icon-wrap { background: #c26517; border-color: #c26517; }
.how-step--orange .step-icon   { color: #ffffff; }
.how-step--orange .step-number-badge { color: rgba(255,255,255,0.2); }

.step-number-badge {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon {
  width: 26px;
  height: 26px;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
}

.step-body {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.65;
}

.how-connector { display: none; }

/* ── FEATURE SECTIONS ────────────────────────────────────────── */
.feature-section { display: flex; align-items: center; }

.feature-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
  padding: 70px 8vw;
  min-height: 0;
}

@media (min-width: 900px) {
  .feature-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-left: 8vw;
    padding-right: 8vw;
  }
  .feature-layout--reverse .feature-visual { order: 2; }
  .feature-layout--reverse .feature-text { order: 1; }
}

/* Always show visual first on mobile */
.feature-visual { order: -1; }

@media (min-width: 900px) {
  .feature-visual { order: unset; }
}

.feature-device-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
  text-align: left;
  max-width: 650px;
}

/* Body text and bullet list stay left-aligned */
.feature-body,
.feature-list {
  text-align: left;
  align-self: stretch;
}

.lang-tags {
  justify-content: flex-start;
}

.feature-headline {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--white);
}

.feature-headline--dark { color: var(--dark); }

.feature-body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.feature-body--dark { color: rgba(255, 255, 255, 0.85); }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.feature-list--dark .feature-list-item { color: rgba(26, 26, 46, 0.9); }

/* Language tags */
.lang-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.lang-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* Cycle logo colors across lang tags */
.lang-tag:nth-child(5n+1) { background: var(--blue);   border-color: var(--blue); }
.lang-tag:nth-child(5n+2) { background: var(--orange);  border-color: var(--orange); }
.lang-tag:nth-child(5n+3) { background: var(--green);   border-color: var(--green); }
.lang-tag:nth-child(5n+4) { background: var(--pink);    border-color: var(--pink); }
.lang-tag:nth-child(5n+5) { background: var(--yellow);  border-color: var(--yellow); color: var(--dark); }

.feature-list-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 1px;
}

.feature-list-icon--dark { color: var(--dark); }

/* All feature sections use white text on dark backgrounds */
.feature-section--light { color: var(--white); }

.feature-text--dark {
  color: var(--white);
}

/* ── FEATURES INTRO ─────────────────────────────────────────── */
.feature-section-title {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 0.5rem;
}

.feature-section-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  max-width: 480px;
}

/* ── IPAD FRAME ──────────────────────────────────────────────── */
.ipad-frame {
  width: clamp(260px, 42vw, 520px);
  aspect-ratio: 4 / 3;
  background: #0f0f1a;
  border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 8px;
  position: relative;
}

.ipad-camera-bar {
  width: 100%;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ipad-camera-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.ipad-screen {
  flex: 1;
  width: 100%;
  background: #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ipad-home-bar {
  width: 28%;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ── STATS SECTION ───────────────────────────────────────────── */
.stats-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: unset;
}

.stats-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 6vh, 5rem);
  padding: 80px 8vw;
  width: 100%;
  text-align: center;
}

.stats-headline {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.stat-main {
  display: flex;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(60px, 7.5vw, 104px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-infinity {
  font-size: clamp(72px, 9vw, 120px);
}

.stat-symbol {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--white);
  margin-top: 0.3em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── PRICING SECTION ─────────────────────────────────────────── */
.pricing-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vh, 5rem);
  padding: 80px 8vw;
  width: 100%;
}

.pricing-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
}

.pricing-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 17px);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 600px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
}

.pricing-tier {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s;
}

.pricing-tier:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.28);
}

.pricing-tier--featured {
  border-color: var(--blue);
  background: rgba(90, 200, 250, 0.1);
}

.tier-badge {
  display: inline-block;
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.tier-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  color: var(--white);
}

.tier-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.tier-price {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.tier-period {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.1vw, 14px);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.tier-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.tier-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.tier-check-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--green);
}

.tier-cta {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 700;
  color: var(--dark);
  background: var(--white);
  padding: 0.85rem 1rem;
  border-radius: 50px;
  margin-top: auto;
  border: 2px solid transparent;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.25s,
              color 0.25s;
}

.tier-cta:hover {
  transform: scale(1.05) translateY(-2px);
  background: var(--yellow);
}

.tier-cta--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.tier-cta--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.tier-cta--featured {
  background: var(--blue);
  color: var(--dark);
}

.tier-cta--featured:hover {
  background: var(--white);
}

/* ── VOICES / TESTIMONIALS SECTION ──────────────────────────── */
.voices-section {
  color: var(--white);
}

.voices-inner {
  width: 100%;
  margin: 0 auto;
  padding: 80px 8vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.voices-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  width: 100%;
}

.voices-headline {
  margin: 0;
  width: 100%;
}

/* Masonry grid using CSS columns */
.voices-masonry {
  column-count: 3;
  column-gap: 1.75rem;
  width: 100%;
}

.voice-card {
  break-inside: avoid;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
  /* start hidden — GSAP scrollTrigger fades in */
  opacity: 0;
  will-change: transform, opacity;
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.voice-stars {
  color: #FFD54F;
  font-size: 1rem;
  letter-spacing: 2px;
}

.voice-quote {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.90);
  font-style: italic;
  margin: 0;
}

.voice-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.25rem;
}

.voice-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.voice-avatar--1 { background: linear-gradient(135deg, #e05f9a, #c74a72); }
.voice-avatar--2 { background: linear-gradient(135deg, #1482ae, #0d6a91); }
.voice-avatar--3 { background: linear-gradient(135deg, #f7a942, #e08a20); }
.voice-avatar--4 { background: linear-gradient(135deg, #7c4dff, #5c35cc); }
.voice-avatar--5 { background: linear-gradient(135deg, #26c6da, #1a9eae); }
.voice-avatar--6 { background: linear-gradient(135deg, #ef5350, #c62828); }

.voice-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.voice-meta {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.15rem;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .voices-masonry {
    column-count: 2;
  }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
  .voices-inner {
    padding: 72px 1.25rem;
  }
  .voices-masonry {
    column-count: 1;
  }
}

/* ── FAQ SECTION ─────────────────────────────────────────────── */
.faq-section {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: unset;
}

.faq-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
  padding: 80px 8vw;
}

.faq-header-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  width: 100%;
}

.faq-cta-text {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.faq-bottom-cta {
  display: none;
}

.faq-list-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.faq-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.2); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  cursor: pointer;
  color: var(--white);
  text-align: left;
  transition: opacity 0.2s;
}

.faq-question:hover { opacity: 0.75; }

.faq-question-text {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.faq-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255, 255, 255, 0.6);
}

.faq-chevron svg {
  width: 20px;
  height: 20px;
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  height: 0;
  overflow: hidden;
}

.faq-answer-text {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: 1.4rem;
  max-width: 1000px;
}

/* ── DOWNLOAD SECTION ────────────────────────────────────────── */
.download-section {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  padding: 80px 8vw;
  width: 100%;
}

.download-headline {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
   max-width: 1300px;
  width: 100%;
}

.download-accent { color: var(--blue); }

.download-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 21px);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  background: var(--dark);
  border-radius: var(--radius-md);
  padding: 1rem 2rem;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease, background 0.3s ease;
  border: 2px solid transparent;
}

/* Ensure contrast for the app store button on dark sections */
[data-bg="#1a1a2e"] .store-btn {
  background: var(--green);
}
[data-bg="#1a1a2e"] .store-btn:hover {
  background: var(--pink);
}
[data-bg="#1482ae"] .store-btn {
  background: var(--orange);
}
[data-bg="#1482ae"] .store-btn:hover {
  background: var(--green);
}

.store-btn:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border-color: var(--white);
}

.store-btn-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.store-icon {
  width: 32px;
  height: 32px;
  color: var(--white);
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.store-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.download-note {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.1vw, 14px);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: var(--dark);
  padding: clamp(3rem, 5vh, 5rem) 8vw;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
}

.footer-nav-link {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-nav-link:hover { color: var(--white); }

.footer-copy {
  font-family: var(--font-body);
  font-size: clamp(12px, 1vw, 13px);
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
}

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .hero-float-badge { display: none; }
  .how-step { padding: 2rem 1.5rem; }
  .hero-layout { padding: 80px 8vw; }
  .statement-inner { padding: 60px 8vw; }
  .how-inner { padding-top: 80px; padding-bottom: 80px; }
  .feature-layout { padding: 55px 8vw; }
  .pricing-inner { padding: 80px 8vw; }
  .faq-inner { padding: 80px 8vw; }
  .download-inner { padding: 80px 8vw; }
  .stats-inner { padding: 80px 8vw; }
}

/* ── COMMUNITY STORIES SECTION ───────────────────────────────── */
.community-inner {
  width: 100%;
  margin: 0 auto;
  padding: 80px 8vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.community-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.community-headline {
  margin: 0;
  width: 100%;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

@media (max-width: 700px) {
  /* Remove horizontal padding from inner so the grid can reach the edges */
  .community-inner {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Restore horizontal padding for the header text only */
  .community-header {
    padding: 0 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Switch from grid to a horizontal snap-scroller on mobile */
  .community-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    /* Inset padding so first/last cards have breathing room */
    padding: 0.5rem 1.25rem 1.25rem;
    /* No negative margin needed — parent has no horizontal padding */
    width: 100%;
    box-sizing: border-box;
    /* hide the scrollbar but keep functionality */
    scrollbar-width: none;
  }
  .community-grid::-webkit-scrollbar { display: none; }

  .story-card {
    flex: 0 0 82vw;
    max-width: 340px;
    scroll-snap-align: center;
  }

  /* Peek effect: a sliver of the next card stays visible */
  .community-grid .story-card:last-child {
    margin-right: 1.25rem;
  }
}

/* Story Card */
.story-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 200px;
}

.story-card--empty {
  min-height: 300px;
}

.story-card:not(.story-card--empty):hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

/* Cover wrap — holds image + play button overlay */
.story-card-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
}

.story-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-card-cover-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

/* Play button overlay */
.story-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.story-card-play:hover {
  background: rgba(0, 0, 0, 0.25);
}

.story-card-play-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* color set inline per-card */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

.story-card-play:hover .story-card-play-circle {
  transform: scale(1.10);
}

.story-card-play-circle svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
  display: block;
  flex-shrink: 0;
}

.story-card-play-circle .pause-icon {
  margin-left: 0;
}

/* Card body */
.story-card-body {
  padding: 1.1rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.story-card-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}

.story-card-meta-sep {
  opacity: 0.35;
}

.story-card-meta-icon,
.sp-ico {
  width: 13px;
  height: 13px;
  opacity: 0.6;
  flex-shrink: 0;
}

/* theme pills on story cards */
.story-card-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 14px 0;
}
.story-theme-pill {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* theme pills inside floating player meta */
.sp-meta-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.sp-theme-pill {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* ── FLOATING STORY PLAYER ──────────────────────────────────── */
.story-player {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  transform: translateX(160%);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.story-player.is-visible {
  transform: translateX(0);
}

/* ── Bubble (collapsed) ──────────────────────────────────────── */
.sp-bubble {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  display: block;
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.2s ease, opacity 0.25s ease;
  /* iOS Safari: force overflow:hidden + border-radius to clip correctly */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
}
.sp-bubble:hover { transform: scale(1.06); }
.story-player.is-expanded .sp-bubble {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.sp-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-bubble-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, #6c3fe8, #e84f7a);
}
.sp-thumb[src]:not([src=""]) ~ .sp-bubble-emoji { display: none; }

.sp-bubble-pulse { display: none; }

/* ── Equalizer bars (shown on bubble while playing) ────────── */
.sp-bubble-eq {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  mix-blend-mode: overlay;
}
.story-player.is-playing .sp-bubble-eq { opacity: 0.8; }
.sp-bubble-eq span {
  display: block;
  flex: 1;
  border-radius: 2px;
  background: white;
  transform-origin: bottom;
  margin: 0 2px;
}
.sp-bubble-eq span:nth-child(1) { height: 10px; animation: sp-eq 0.85s ease-in-out 0.00s infinite alternate; }
.sp-bubble-eq span:nth-child(2) { height: 16px; animation: sp-eq 0.85s ease-in-out 0.10s infinite alternate; }
.sp-bubble-eq span:nth-child(3) { height: 22px; animation: sp-eq 0.85s ease-in-out 0.20s infinite alternate; }
.sp-bubble-eq span:nth-child(4) { height: 14px; animation: sp-eq 0.85s ease-in-out 0.30s infinite alternate; }
.sp-bubble-eq span:nth-child(5) { height: 20px; animation: sp-eq 0.85s ease-in-out 0.40s infinite alternate; }
.sp-bubble-eq span:nth-child(6) { height: 12px; animation: sp-eq 0.85s ease-in-out 0.50s infinite alternate; }
.sp-bubble-eq span:nth-child(7) { height: 18px; animation: sp-eq 0.85s ease-in-out 0.60s infinite alternate; }
.sp-bubble-eq span:nth-child(8) { height: 10px; animation: sp-eq 0.85s ease-in-out 0.70s infinite alternate; }
@keyframes sp-eq {
  from { transform: scaleY(0.25); }
  to   { transform: scaleY(1);    }
}

/* Subtle idle wiggle — hints "tap me to play", stops once playing */
@keyframes sp-idle-wiggle {
  0%, 85%, 100% { transform: rotate(0deg) scale(1); }
  88%           { transform: rotate(-6deg) scale(1.04); }
  92%           { transform: rotate(5deg)  scale(1.04); }
  96%           { transform: rotate(-3deg) scale(1.02); }
}
.story-player.is-visible:not(.is-playing) .sp-bubble {
  animation: sp-idle-wiggle 6s ease-in-out 2s infinite;
}
.story-player.is-playing .sp-bubble {
  animation: none;
}

.sp-bubble-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.38);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  color: white;
}
.sp-bubble-play svg { width: 28px; height: 28px; }
.sp-bubble:hover .sp-bubble-play { opacity: 1; }

/* Idle fade-in/out on the play icon while not playing */
@keyframes sp-play-breathe {
  0%, 100% { opacity: 0.18; }
  50%       { opacity: 0.72; }
}
.story-player.is-visible:not(.is-playing) .sp-bubble-play {
  animation: sp-play-breathe 2.4s ease-in-out 1.5s infinite;
}
.story-player.is-playing .sp-bubble-play {
  animation: none;
  opacity: 0;
}

.sp-bubble-expand { display: none; }
.sp-bubble-expand--hidden {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 3px;
}
.sp-bubble-expand svg { width: 12px; height: 12px; }

/* ── Panel (expanded) ────────────────────────────────────────── */
.sp-panel {
  width: 288px;
  background: rgba(14, 14, 26, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  /* absolutely positioned so it doesn't affect bubble anchor */
  position: absolute;
  bottom: 0;
  right: 0;
  /* animated show/hide */
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94) translateY(10px);
  transform-origin: bottom right;
  transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}
.story-player.is-expanded .sp-panel {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.sp-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  transition: background 0.15s;
}
.story-player.is-expanded .sp-close { display: flex; }
@media (max-width: 700px) {
  .story-player { bottom: 1.25rem; right: 1.25rem; }
  .sp-bubble { width: 62px; height: 62px; border-radius: 16px; }
}
.sp-close:hover { background: rgba(255,255,255,0.22); }
.sp-close svg { width: 15px; height: 15px; }

.sp-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #2a1a4e, #1a1a2e);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

/* panel colour backdrop behind cover image */
.sp-cover-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a1a4e 0%, #0e0e1a 100%);
  z-index: 0;
  pointer-events: none;
}
.sp-cover-wrap > * { position: relative; z-index: 1; }
.sp-cover-wrap > .sp-cover-blur { z-index: 0; }
.sp-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-cover-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(72px, 18vw, 100px);
}
.sp-cover-img[src]:not([src=""]) ~ .sp-cover-emoji { display: none; }

.sp-info {
  padding: 14px 16px 6px;
}
.sp-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sp-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.sp-sep {
  color: rgba(255,255,255,0.25);
  margin: 0 1px;
}

.sp-progress-bar {
  margin: 10px 16px 3px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}
.sp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  border-radius: 3px;
  transition: width 0.1s linear;
}
.sp-time-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 16px 10px;
  font-size: 10px;
  color: rgba(255,255,255,0.38);
  font-family: var(--font-body);
}
.sp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 16px 18px;
}
.sp-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s, transform 0.15s;
  padding: 0;
}
.sp-btn:hover { color: white; transform: scale(1.1); }
.sp-btn--prev svg, .sp-btn--next svg { width: 30px; height: 30px; }
.sp-btn--main {
  width: 54px;
  height: 54px;
  background: white;
  color: #12121e;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.sp-btn--main:hover { transform: scale(1.08); color: #12121e; }
.sp-btn--main svg { width: 26px; height: 26px; }

/* tap-to-play indicator when autoplay is blocked */
.story-player.sp-blocked .sp-bubble::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  background: rgba(0,0,0,0.52);
  border-radius: 20px;
  animation: sp-pulse 1.4s ease-in-out infinite;
}

/* mobile */
@media (max-width: 480px) {
  .story-player { bottom: 1rem; right: 1rem; }
  .sp-panel { width: min(288px, calc(100vw - 2rem)); }
}
