/* ==========================================================================
   Jilmil Talks — shared stylesheet (all pages)
   Palette aligned to the app's theme tokens (storyai/constants/theme.ts)
   ========================================================================== */

:root {
  --bg-0: #0f0028;
  --bg-1: #1a0041;
  --surface: #251057;
  --surface-2: #2f1a6b;
  --violet: #7c4dff;
  --violet-soft: #9a7bff;
  --lavender: #d4baff;
  --lavender-pale: #ede0ff;
  --yellow: #ffdf3f;
  --gold: #ffd166;
  --text: #ffffff;
  --muted: #cdbfea;
  --muted-2: #b4a3dc;
  --ok: #6fd9a6;

  --font-display: "Nunito", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "Poppins", "Noto Sans Devanagari", system-ui, sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-soft:
    0 2px 4px rgba(8, 0, 30, 0.3),
    0 10px 24px rgba(8, 0, 30, 0.35);
  --shadow-deep:
    0 2px 4px rgba(8, 0, 30, 0.35),
    0 12px 28px rgba(8, 0, 30, 0.4),
    0 32px 72px rgba(8, 0, 30, 0.5);
  --maxw: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--lavender);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--violet);
  color: #fff;
}

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  max-width: 22ch;
}

.section-sub {
  color: var(--muted);
  max-width: 58ch;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
}

.center {
  text-align: center;
}

.center .section-title,
.center .section-sub {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Reveal-on-scroll + parallax (JS adds .in-view; [data-depth] is translated)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

[data-depth] {
  will-change: transform;
}

@keyframes idle-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1.2deg); }
}

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

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(15, 0, 40, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(212, 186, 255, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--lavender-pale);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-cta {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--bg-1);
  background: var(--yellow);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
}

@media (min-width: 780px) {
  .nav-links { display: flex; }
  .nav-logo img { height: 48px; }
}

/* --------------------------------------------------------------------------
   Buttons & store badges
   -------------------------------------------------------------------------- */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  color: #14002e;
  border-radius: 16px;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 58px;
}

.store-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-deep);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.store-btn .store-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-btn .store-txt small {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.75;
}

.store-btn .store-txt strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
}

/* Below this width the two store buttons don't fit side by side at full
   size and wrap to their own rows — shrink them so both stay on one row. */
@media (max-width: 480px) {
  .store-buttons {
    flex-wrap: nowrap;
    gap: 0.6rem;
  }

  .store-btn {
    flex: 1 1 0;
    min-width: 0;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
  }

  .store-btn svg {
    width: 22px;
    height: 22px;
  }

  .store-btn .store-txt small,
  .store-btn .store-txt strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .store-btn .store-txt small {
    font-size: 0.6rem;
  }

  .store-btn .store-txt strong {
    font-size: 0.86rem;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4.5rem;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(124, 77, 255, 0.28), transparent 70%),
    radial-gradient(50% 45% at 10% 85%, rgba(255, 209, 102, 0.1), transparent 70%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 65%);
  overflow: hidden;
}

.stars,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 60% 15%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 40%, rgba(255, 223, 63, 0.7), transparent),
    radial-gradient(1px 1px at 35% 70%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 75% 80%, rgba(212, 186, 255, 0.6), transparent),
    radial-gradient(1px 1px at 10% 50%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 48% 22%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 92% 65%, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

.stars::after {
  transform: translate(28%, 42%) scale(1.3);
  opacity: 0.6;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.free-banner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
  padding: 1rem 1rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 223, 63, 0.16), rgba(124, 77, 255, 0.16));
  border: 1px solid rgba(255, 223, 63, 0.4);
  animation: free-banner-pulse 2.6s ease-in-out infinite;
}

.free-banner-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-left: 0.5rem;
  color: #14002e;
  background: var(--yellow);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.free-banner-text {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  color: var(--lavender-pale);
}

@keyframes free-banner-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 223, 63, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(255, 223, 63, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .free-banner { animation: none; }
}

@media (max-width: 480px) {
  .free-banner {
    border-radius: var(--radius);
    padding: 0.7rem;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 6.8vw, 3.8rem);
  max-width: 15ch;
}

.hero h1 .hl {
  color: var(--yellow);
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 44ch;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--lavender-pale);
  background: rgba(212, 186, 255, 0.1);
  border: 1px solid rgba(212, 186, 255, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.hero-chips svg {
  width: 15px;
  height: 15px;
  color: var(--yellow);
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.hero-mascot {
  width: min(62vw, 340px);
  filter: drop-shadow(0 18px 30px rgba(8, 0, 30, 0.55));
  animation: idle-float 5.5s ease-in-out infinite;
  position: relative;
  z-index: 3;
}

.hero-ground {
  position: absolute;
  bottom: 6%;
  width: 55%;
  height: 36px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(8, 0, 30, 0.55), transparent 70%);
  z-index: 1;
  filter: blur(6px);
}

.hero-moon {
  position: absolute;
  top: 4%;
  right: 6%;
  z-index: 1;
  filter: drop-shadow(0 0 22px rgba(255, 226, 122, 0.45));
  animation: idle-float 7s ease-in-out infinite;
}

.hero-sparkle {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.6));
  animation: idle-float 6s ease-in-out infinite;
}

.hero-sparkle.s1 { top: 20%; right: 16%; }
.hero-sparkle.s2 { top: 60%; left: 8%; width: 12px; height: 12px; animation-delay: -2s; }
.hero-sparkle.s3 { bottom: 16%; right: 24%; width: 14px; height: 14px; animation-delay: -4s; }

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero-blob.b1 {
  width: 380px;
  height: 380px;
  background: rgba(124, 77, 255, 0.32);
  top: -10%;
  right: -8%;
}

.hero-blob.b2 {
  width: 300px;
  height: 300px;
  background: rgba(255, 209, 102, 0.12);
  bottom: -12%;
  left: -10%;
}

@media (min-width: 880px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-mascot { width: min(34vw, 400px); }
}

/* --------------------------------------------------------------------------
   Section 2 — Hear it (audio player)
   -------------------------------------------------------------------------- */
.hear {
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(124, 77, 255, 0.16), transparent 70%),
    var(--bg-0);
}

/* Three story sample players, side by side (stack to 1 column on mobile). */
.story-players {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
}

.story-player {
  background: linear-gradient(160deg, rgba(212, 186, 255, 0.14), rgba(124, 77, 255, 0.07) 45%, rgba(37, 16, 87, 0.6));
  border: 1px solid rgba(212, 186, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.2rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow-deep);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.25s ease;
}

.story-player.playing {
  border-color: rgba(255, 223, 63, 0.5);
  transform: translateY(-3px);
}

/* Language badge — native script + globe. Font stack includes the Noto script
   fonts (loaded in <head>) so हिंदी / ಕನ್ನಡ render regardless of system fonts. */
.sp-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Nunito", "Noto Sans Devanagari", "Noto Sans Kannada", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--lavender-pale);
  background: rgba(212, 186, 255, 0.1);
  border: 1px solid rgba(212, 186, 255, 0.22);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  margin-bottom: 1.3rem;
}

.sp-lang svg {
  width: 14px;
  height: 14px;
  color: var(--yellow);
}

.sp-play {
  flex: none;
  width: clamp(60px, 9vw, 76px);
  height: clamp(60px, 9vw, 76px);
  border-radius: 50%;
  border: 0;
  background: var(--yellow);
  color: var(--bg-1);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 4px 10px rgba(8, 0, 30, 0.4),
    0 14px 34px rgba(255, 223, 63, 0.25);
  transition: transform 0.2s ease;
}

.sp-play:hover { transform: scale(1.06); }
.sp-play svg { width: 42%; height: 42%; }
.sp-play .icon-pause { display: none; }
.story-player.playing .sp-play .icon-play { display: none; }
.story-player.playing .sp-play .icon-pause { display: block; }

.sp-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--lavender-pale);
  margin: 1.1rem 0 1.2rem;
  line-height: 1.3;
}

.sp-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(212, 186, 255, 0.22);
  cursor: pointer;
  overflow: hidden;
  touch-action: none;
}

.sp-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--yellow);
}

.sp-times {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted-2);
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.player-caption {
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 720px) {
  .story-players { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   Section 3 — Stories rail
   -------------------------------------------------------------------------- */
.stories-rail {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 3.2rem 1.25rem 1.6rem;
  margin-top: 0.6rem;
  scrollbar-width: none;
}

.stories-rail::-webkit-scrollbar { display: none; }

@media (min-width: 1120px) {
  .stories-rail {
    padding-inline: calc((100vw - var(--maxw)) / 2);
  }
}

.story-card {
  flex: 0 0 min(78vw, 320px);
  scroll-snap-align: center;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(212, 186, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 0 1.3rem 1.5rem;
  box-shadow: var(--shadow-deep);
  transition: transform 0.3s ease;
}

.story-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
}

.story-art {
  border-radius: 16px;
  margin: -2.2rem 0 1.1rem;
  box-shadow: var(--shadow-soft);
  transform: rotate(1.2deg);
  /* Banners come from Firestore at mixed ratios (3:2 and 16:9) — crop to one
     shape so the rail stays even. */
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
}

.story-card:nth-child(even) .story-art {
  transform: rotate(-1.2deg);
}

.story-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.story-card h3[lang="hi"] {
  font-family: "Noto Sans Devanagari", var(--font-display);
}

.story-card h3[lang="kn"] {
  font-family: "Noto Sans Kannada", var(--font-display);
}

.story-premise {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

/* Poppins has no Kannada coverage — fall through to Noto before system-ui. */
.story-premise[lang="kn"],
.story-meta span[lang="kn"] {
  font-family: "Noto Sans Kannada", var(--font-body);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.story-meta span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--lavender);
  background: rgba(124, 77, 255, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.story-meta .chip-free {
  color: var(--bg-1);
  background: var(--ok);
}

.stories-langline {
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
  margin: 1.2rem auto 0;
  max-width: 60ch;
  padding-inline: 1.25rem;
}

.stories-langline strong { color: var(--lavender-pale); }

/* --------------------------------------------------------------------------
   Section 4 — Your child, in the story
   -------------------------------------------------------------------------- */
.personal {
  background:
    radial-gradient(55% 60% at 15% 20%, rgba(255, 209, 102, 0.08), transparent 70%),
    radial-gradient(60% 60% at 90% 90%, rgba(124, 77, 255, 0.18), transparent 70%),
    var(--bg-1);
  overflow: hidden;
}

.moments {
  display: grid;
  gap: 1rem;
  margin: 2.2rem 0 2.8rem;
}

@media (min-width: 760px) {
  .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.moment {
  margin: 0;
  background: rgba(15, 0, 40, 0.5);
  border: 1px solid rgba(212, 186, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.moment-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.7rem;
}

.moment p {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.5;
  margin: 0;
  color: var(--lavender-pale);
}

.slot {
  display: inline-block;
  color: var(--yellow);
  border-bottom: 3px dotted rgba(255, 223, 63, 0.55);
  padding: 0 0.12em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.slot.swap {
  opacity: 0;
  transform: translateY(-6px);
}

.picker-hint {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.picker-choice {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.picker-choice .pc-name {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--lavender-pale);
}

.sidekick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

@media (min-width: 700px) {
  .sidekick-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

.sidekick-tile {
  background: rgba(212, 186, 255, 0.08);
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 0.5rem 0.3rem 0.4rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.sidekick-tile figure {
  margin: 0;
}

.sidekick-tile:hover {
  transform: translateY(-6px) scale(1.06) rotate(-2deg);
  background: rgba(212, 186, 255, 0.14);
}

.sidekick-tile[aria-pressed="true"] {
  border-color: var(--yellow);
  background: rgba(255, 223, 63, 0.12);
}

.sidekick-tile img {
  width: 100%;
  filter: drop-shadow(0 6px 10px rgba(8, 0, 30, 0.45));
}

.sidekick-tile figcaption {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--lavender-pale);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Section 5 — Who writes these stories
   -------------------------------------------------------------------------- */
.pipeline {
  background: var(--bg-0);
}

.pipe-flow {
  position: relative;
  margin: 2.6rem 0 0;
  padding-left: 2rem;
  display: grid;
  gap: 1rem;
}

.pipe-flow::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--violet-soft), rgba(154, 123, 255, 0.15));
}

.pipe-step {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.45rem 0;
}

.pipe-step::before {
  content: "";
  position: absolute;
  left: -1.98rem;
  top: 0.95em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--violet-soft);
  box-shadow: 0 0 0 4px rgba(154, 123, 255, 0.2);
}

.pipe-step.gate {
  background: linear-gradient(160deg, rgba(255, 223, 63, 0.1), rgba(255, 209, 102, 0.04));
  border: 1px solid rgba(255, 223, 63, 0.35);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--lavender-pale);
  box-shadow: var(--shadow-soft);
}

.pipe-step.gate::before {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 223, 63, 0.22);
  top: 1.35rem;
}

.pipe-step.gate strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--yellow);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.founders {
  display: grid;
  gap: 1.4rem;
  margin-top: 3rem;
}

@media (min-width: 720px) {
  .founders { grid-template-columns: 1fr 1fr; }
}

  .founder-card {
    background: var(--surface);
    border: 1px solid rgba(212, 186, 255, 0.16);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-soft);
  }

.founder-photo {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;          /* Important */
  border: 3px dashed var(--gold);
  margin-bottom: 1.1rem;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-photo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-align: center;
  line-height: 1.35;
  padding: 0 0.4rem;
}

.founder-card h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }

.founder-role {
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.founder-bio {
  color: var(--muted);
  font-size: 0.92rem;
}

.founder-bio.placeholder {
  border-left: 3px solid var(--gold);
  padding-left: 0.8rem;
  font-style: italic;
  color: var(--muted-2);
}

.pipeline-notes {
  margin-top: 2.6rem;
  color: var(--muted);
  max-width: 62ch;
  font-size: 0.98rem;
}

.pipeline-notes strong { color: var(--lavender-pale); }

/* --------------------------------------------------------------------------
   Section 6 — Inside the app (phone frames)
   -------------------------------------------------------------------------- */
.screens-row {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.phone {
  width: min(72vw, 240px);
  flex: none;
}

.phone:nth-child(2) { margin-top: 2.4rem; }
.phone:nth-child(3) { margin-top: 0.8rem; }

.phone-frame {
  border-radius: 34px;
  border: 3px solid rgba(212, 186, 255, 0.3);
  background: var(--bg-0);
  padding: 10px;
  box-shadow: var(--shadow-deep);
}

.phone-screen {
  aspect-ratio: 9 / 19;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 209, 102, 0.06), rgba(255, 209, 102, 0.06) 12px, transparent 12px, transparent 24px),
    linear-gradient(180deg, var(--surface), var(--bg-1));
  border: 2px dashed rgba(255, 209, 102, 0.4);
}

.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

.phone-screen .ph-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  padding: 1rem;
  line-height: 1.5;
}

.phone-caption {
  text-align: center;
  margin-top: 0.9rem;
}

.phone-caption strong {
  font-family: var(--font-display);
  font-weight: 800;
  display: block;
}

.phone-caption span {
  color: var(--muted-2);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Section 7 — Pricing
   -------------------------------------------------------------------------- */
.pricing {
  background:
    radial-gradient(60% 70% at 85% 15%, rgba(124, 77, 255, 0.18), transparent 70%),
    var(--bg-0);
}

.price-cards {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.6rem;
}

@media (min-width: 760px) {
  .price-cards {
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
  }
}

.price-cards-single {
  max-width: 420px;
  margin-inline: auto;
}

@media (min-width: 760px) {
  .price-cards-single {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid rgba(212, 186, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.price-card.premium {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 223, 63, 0.1), var(--surface) 40%);
  border-color: rgba(255, 223, 63, 0.4);
  box-shadow: var(--shadow-deep);
  padding-top: 2.6rem;
}

.price-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.6rem;
  background: linear-gradient(135deg, var(--yellow), #ffb020);
  color: #241400;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 176, 32, 0.35);
}

.price-card h3 { font-size: 1.25rem; }

.price-figure {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--yellow);
  margin: 0.3rem 0 0.2rem;
}

.price-figure small {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.price-alt {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.price-compare {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(255, 223, 63, 0.1);
  border-left: 3px solid var(--yellow);
  border-radius: 0.4rem;
  padding: 0.65rem 0.85rem;
  margin: 0 0 1.3rem;
}

.price-monthly-note {
  color: var(--muted-2);
  font-size: 0.82rem;
  margin: -0.4rem 0 0.6rem;
}

.price-card ul {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.price-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.93rem;
}

.price-card li svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.2rem;
  color: var(--ok);
}

.price-note {
  color: var(--muted-2);
  font-size: 0.85rem;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Section 8 — FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  margin-top: 2.4rem;
  display: grid;
  gap: 0.9rem;
  max-width: 760px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid rgba(212, 186, 255, 0.16);
  border-radius: var(--radius);
  padding: 0 1.3rem;
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--yellow);
  flex: none;
  transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 1.2rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Download band + Footer (all pages)
   -------------------------------------------------------------------------- */
.download-band {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(124, 77, 255, 0.3), transparent 75%),
    var(--bg-1);
}

.download-band .store-buttons {
  justify-content: center;
  margin-top: 1.8rem;
}

.footer {
  background: var(--bg-0);
  border-top: 1px solid rgba(212, 186, 255, 0.12);
  padding: 2.6rem 0 2.2rem;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--yellow); }

.footer img { height: 40px; width: auto; }

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   Aux/legal pages
   -------------------------------------------------------------------------- */
.page-main {
  padding: 8rem 0 4rem;
  max-width: 780px;
  margin-inline: auto;
  width: min(100% - 2.5rem, 780px);
}

.page-main h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.page-main h2 {
  font-size: 1.25rem;
  margin-top: 2.2rem;
  color: var(--lavender-pale);
}

.page-main h3 {
  font-size: 1.05rem;
  margin-top: 1.6rem;
}

.page-main p,
.page-main li {
  color: var(--muted);
  font-size: 0.97rem;
}

.page-main .updated {
  color: var(--muted-2);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.page-main a { color: var(--yellow); }

.page-card {
  background: var(--surface);
  border: 1px solid rgba(212, 186, 255, 0.16);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 1.2rem 0;
  box-shadow: var(--shadow-soft);
}

.page-card h2:first-child,
.page-card h3:first-child { margin-top: 0; }

/* Legal document pages (content carried over verbatim from the old site) */
/* Aliases so inline styles from the old pages keep resolving */
:root {
  --white: #ffffff;
  --text-muted: var(--muted);
}

.page-main .step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0.9rem 0;
}

.page-main .step p { margin: 0; }

.page-main .step-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.page-main .divider {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1.4rem 0;
}

.page-main .email-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--bg-1);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.page-main .subtitle {
  color: var(--muted);
  margin-bottom: 1rem;
}

.page-main .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  color: var(--muted-2);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(212, 186, 255, 0.16);
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
}

.page-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.page-main th,
.page-main td {
  border: 1px solid rgba(212, 186, 255, 0.2);
  padding: 0.6rem 0.8rem;
  text-align: left;
  color: var(--muted);
  vertical-align: top;
}

.page-main th {
  color: var(--lavender-pale);
  font-family: var(--font-display);
  font-weight: 800;
  background: rgba(124, 77, 255, 0.12);
}

.page-main .small {
  font-size: 0.85rem;
  color: var(--muted-2);
}

.page-main .doc-end {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(212, 186, 255, 0.16);
  color: var(--muted-2);
  font-size: 0.85rem;
}
