/* ===================================================================
   LumiTales — Editorial landing stylesheet.
   ===================================================================

   Three custom properties carry the brand:
     - `--font-display`   Fraunces (serif, italic)  — headlines, titles
     - `--font-body`      Nunito                    — body, controls
     - `--font-script`    Caveat                    — footer tagline only

   Layout idea: two visual languages stacked.
     - "Editorial spread" sections — Mission/Vision and How-we-do-it —
       are NOT cards. They sit on the brand canvas with generous
       whitespace, italic display type, and faint orbit / dividing lines.
     - "Inside the app" features + story rail ARE cards (glass panels)
       so the contrast feels intentional — like a magazine layout where
       editorial pages flow into a product grid.

   Theme tokens follow brand_background.dart but with a richer palette
   to support the script-font tagline and modal accents.
   =================================================================== */

:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Nunito', ui-sans-serif, system-ui, sans-serif;
  --font-script:  'Caveat', cursive;
  --maxw:         1240px;
  --radius-lg:    28px;
  --radius-md:    18px;
  --radius-sm:    12px;
  --z-prompt:     40;
  --z-topbar:     50;
  --z-modal:      100;
}

:root[data-theme="dark"] {
  --bg-0:        #0c0a2c;
  --bg-1:        #1a1340;
  --bg-2:        #2a1f5e;
  --ink:         #f7f3ff;
  --ink-soft:    #cdc4ee;
  --ink-mute:    #8b85b8;
  --gold:        #FFD66B;
  --gold-soft:   #FFE9B0;
  --peach:       #FFA07A;
  --pink:        #FF8FA3;
  --lavender:    #B79CFF;
  --teal:        #7FE8D6;
  --card-bg:     rgba(255,255,255,0.07);
  --card-border: rgba(255,255,255,0.14);
  --card-hi:     rgba(255,255,255,0.22);
  --glass:       rgba(20,15,55,0.55);
  --shadow-card: 0 24px 60px -20px rgba(8,4,40,0.7), 0 6px 20px -8px rgba(0,0,0,0.45);
}

:root[data-theme="light"] {
  --bg-0:        #cfe9ff;
  --bg-1:        #a8d2ff;
  --bg-2:        #fff3da;
  --ink:         #1f1740;
  --ink-soft:    #3b2f6b;
  --ink-mute:    #6c648f;
  --gold:        #E89E2A;
  --gold-soft:   #F6CF7A;
  --peach:       #FF8C5A;
  --pink:        #FF6B8E;
  --lavender:    #7B6CFF;
  --teal:        #1FA396;
  --card-bg:     rgba(255,255,255,0.74);
  --card-border: rgba(50,30,120,0.10);
  --card-hi:     rgba(255,255,255,0.95);
  --glass:       rgba(255,255,255,0.78);
  --shadow-card: 0 30px 60px -22px rgba(60,40,140,0.28), 0 8px 22px -10px rgba(60,40,140,0.18);
}

* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  /* `clip`, not `hidden`: `overflow-x: hidden` turns body into a scroll
     container (coerces overflow-y to auto) and can break the sticky
     topbar; `clip` just trims horizontal overflow. Mirrored on `html`. */
  overflow-x: clip;
  transition: background 600ms ease, color 600ms ease;
  /* Reserve room for the sticky bottom bar (copyright + store badges)
     so the footer content isn't permanently covered. The bar height
     is ~64 px desktop / ~56 px mobile (see media queries below). */
  padding-bottom: 80px;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }

/* Decorative canvas — stars/clouds painted by starfield.js / clouds.js. */
.brand-bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  display: block;
}

/* Stack page chrome above the canvas. */
.page-shell {
  position: relative; z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 48px) 60px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg-0);
  padding: 8px 14px; border-radius: 8px; font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 16px; z-index: 100; }

/* ───────── Topbar (sticky) ───────── */

/* The shell is the sticky wrapper; it spans the full viewport width
   and carries a translucent backdrop-blur so content scrolling under
   it stays legible. `.topbar` inside is clamped to the page max-width
   so it lines up with the rest of the editorial layout. */
.topbar-shell {
  position: sticky; top: 0;
  z-index: var(--z-topbar);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--card-border);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 48px);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
/* Brand logo SVGs , both ship; CSS shows the variant that matches the
   current theme. Original assets live at
   frontend/assets/icons/LogoName{Dark,Light}(XXL).svg. Height tuned so
   the wordmark reads from across a desk on desktop and stays legible
   on iPhone SE. */
.logo-img {
  height: 52px; width: auto;
  display: block;
}
:root[data-theme="light"] .logo-img-dark  { display: none; }
:root[data-theme="dark"]  .logo-img-light { display: none; }
.footer-logo .logo-img { height: 36px; }
@media (max-width: 520px) { .logo-img { height: 40px; } }
@media (max-width: 380px) { .logo-img { height: 34px; } }

.topctl { display: flex; align-items: center; gap: 8px; }
.topctl-lang { position: relative; }
.ctl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--ink);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: transform .18s ease, background .25s ease, border-color .25s ease;
}
.ctl-btn:hover  { background: var(--card-hi); transform: translateY(-1px); }
.ctl-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.ctl-icon { width: 42px; padding: 0; justify-content: center; }
.ctl-svg  { width: 18px; height: 18px; }
.ctl-flag { font-size: 18px; line-height: 1; }
.ctl-code { font-variant: tabular-nums; letter-spacing: 0.04em; opacity: .9; }
.ctl-chev { width: 12px; height: 12px; opacity: .7; }

/* Theme icon visibility — sun shown in LIGHT mode (= "switch to dark"),
   moon shown in DARK mode (= "switch to light"). */
:root[data-theme="light"] .lt-icon-moon { display: none; }
:root[data-theme="dark"]  .lt-icon-sun  { display: none; }

/* Music icon — `aria-pressed=true` means music is playing; show the
   "on" icon, hide the "off" icon. */
.lt-btn-music .lt-icon-music-on  { display: none; }
.lt-btn-music[aria-pressed="true"] .lt-icon-music-on  { display: inline-block; }
.lt-btn-music[aria-pressed="true"] .lt-icon-music-off { display: none; }

/* Language popover. Anchored under the trigger; closes on outside click. */
.lang-menu {
  position: absolute; top: 48px; right: 0;
  width: 280px; max-height: 60vh; overflow: auto;
  padding: 8px;
  background: var(--glass);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--shadow-card);
  z-index: var(--z-topbar);
}
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu[hidden] { display: none; }
.lang-opt {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: transparent; border: 0;
  color: var(--ink);
  font: 500 14px/1.2 var(--font-body);
  cursor: pointer;
  text-align: start;
}
.lang-opt:hover           { background: var(--card-hi); }
.lang-opt.is-active       { background: var(--card-hi); font-weight: 700; }
.lang-opt:focus-visible   { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-flag { font-size: 18px; }
.lang-name { flex: 1; }
.lang-code { font-size: 11px; opacity: .6; letter-spacing: .06em; font-variant: tabular-nums; }

/* ───────── Bottom bar (sticky) ───────── */

/* Pinned to viewport bottom. Carries copyright on the left and the
   two store badges on the right so a visitor can download the app
   without scrolling to the footer or opening a story preview. */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-topbar);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 10px clamp(14px, 3vw, 32px);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid var(--card-border);
}
.bottom-bar-rights {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.bottom-bar-stores {
  display: inline-flex; gap: 8px; flex-wrap: wrap;
}
/* Bottom-bar store badges are slightly more compact than the modal
   ones so the bar doesn't grow tall on mobile. */
.bottom-bar .store-badge {
  padding: 7px 12px;
  border-radius: 10px;
}
.bottom-bar .store-icon { width: 22px; height: 22px; }
.bottom-bar .store-name { font-size: 14px; }
.bottom-bar .store-pre  { font-size: 9px; }

/* ───────── Music opt-in prompt ───────── */

.music-prompt {
  /* Sit just below the sticky topbar (~64 px) with a small gap. */
  position: fixed; top: 80px; right: 16px;
  max-width: 320px;
  padding: 16px 18px;
  background: var(--glass);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  z-index: var(--z-prompt);
  animation: lt-fade-in 280ms ease-out;
}
.music-prompt[hidden] { display: none; }
[dir="rtl"] .music-prompt { right: auto; left: 16px; }
.music-prompt-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: 17px;
  margin-bottom: 4px;
}
.music-prompt-body {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.45;
}
.music-prompt-actions { display: flex; gap: 8px; align-items: center; }

/* ───────── Cookie / consent banner ─────────
   Centred floating card pinned above the sticky store-badges bar. Only
   inserted in HTML when Google Ads tracking is configured at build
   time, so on dev / preview builds it is absent entirely. */

.consent-banner {
  position: fixed; left: 50%; bottom: 96px;
  transform: translateX(-50%);
  width: min(92vw, 620px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 18px;
  align-items: center;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  z-index: var(--z-prompt);
  animation: lt-fade-in 320ms ease-out;
}
.consent-banner[hidden] { display: none; }
.consent-banner-text { min-width: 0; }
.consent-banner-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: 16px;
  margin-bottom: 2px;
}
.consent-banner-body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}
.consent-banner-more {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.consent-banner-actions {
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}
@media (max-width: 620px) {
  .consent-banner {
    grid-template-columns: 1fr;
    bottom: 84px;
    padding: 12px 14px;
  }
  .consent-banner-actions { justify-content: flex-end; }
}
@media (max-width: 380px) {
  .consent-banner { bottom: 78px; }
  .consent-banner-title { font-size: 15px; }
  .consent-banner-body  { font-size: 12.5px; }
}

.btn-pill {
  border: 0; padding: 8px 14px;
  border-radius: 999px;
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
}
.btn-pill-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--peach) 100%);
  color: #1a1340;
}
.btn-pill-primary:hover { filter: brightness(1.08); }
.btn-pill-ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn-pill-ghost:hover { color: var(--ink); }

/* ───────── Hero ───────── */

.hero {
  position: relative;
  padding: clamp(60px, 12vw, 140px) 0 clamp(40px, 7vw, 90px);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
  animation: lt-pulse 2.4s ease-in-out infinite;
}
@keyframes lt-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: .7; }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: clamp(40px, 7.4vw, 88px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 auto; max-width: 18ch;
  text-wrap: balance;
  /* Gradient text: ink at the top, brand accent at the bottom. */
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 55%, var(--gold-soft) 130%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .hero-title {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 60%, var(--peach) 130%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 58ch;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-ctas {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 34px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 24px;
  border-radius: 999px;
  font: 700 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--peach) 100%);
  color: #1a1340;
  box-shadow: 0 18px 36px -10px rgba(255,160,90,0.5),
              0 0 0 1px rgba(255,255,255,0.15) inset;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -10px rgba(255,160,90,0.6),
              0 0 0 1px rgba(255,255,255,0.2) inset;
}

.hero-badges {
  list-style: none; padding: 0; margin: 42px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 24px;
  color: var(--ink-soft);
  font-size: 14px;
}
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.badge-num {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: 22px;
  color: var(--gold);
}

/* ───────── Section primitives ───────── */

.section-label {
  display: inline-block;
  font: 600 12px/1 var(--font-body);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.section-sub {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 16px; line-height: 1.55;
  margin: 0;
}

/* ───────── Mission / Vision (editorial spread, no cards) ───────── */

.mv {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  margin: clamp(60px, 9vw, 120px) 0;
  padding: clamp(20px, 4vw, 40px) 0;
  isolation: isolate;
  /* Clip the 120%-wide `.mv-orbit` to the section so the decorative SVG
     can't widen the page past the viewport on mobile. */
  overflow-x: clip;
}
.mv-orbit {
  position: absolute; left: 50%; top: 50%;
  width: 120%; height: 120%;
  transform: translate(-50%, -50%);
  color: var(--ink-soft); opacity: .6;
  z-index: -1; pointer-events: none;
  animation: mv-spin 90s linear infinite;
}
@keyframes mv-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.mv-block   { position: relative; max-width: 42ch; }
.mv-mission { padding-top: 0; }
.mv-vision  { padding-top: clamp(40px, 8vw, 90px); text-align: right; justify-self: end; }
[dir="rtl"] .mv-vision { text-align: left; }
.mv-label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--font-body);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.mv-mark { font-size: 14px; }
.mv-vision .mv-label, .mv-vision .mv-mark { color: var(--lavender); }
.mv-title {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.mv-body {
  color: var(--ink-soft);
  font-size: 17px; line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

/* ───────── How (numbered editorial list) ───────── */

.how {
  margin: clamp(60px, 9vw, 120px) 0;
  position: relative;
}
.how-head {
  max-width: 60ch;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}
.how-list {
  list-style: none; padding: 0; margin: 0;
  max-width: 780px;
  margin-inline: auto;
}
.how-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(20px, 3vw, 30px) 0;
  border-top: 1px solid var(--card-border);
}
.how-row:last-child { border-bottom: 1px solid var(--card-border); }
.how-row:hover .how-num { color: var(--gold); transform: translateY(-2px); }
.how-num {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  transition: color .3s ease, transform .3s ease;
  min-width: 1.6ch;
}
.how-icon {
  width: 36px; height: 36px;
  color: var(--lavender);
  margin-top: 8px;
  flex: none;
}
.how-text { padding-top: 4px; }
.how-card-title {
  font-family: var(--font-display);
  font-weight: 600; font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.2;
  margin: 0 0 8px;
  text-wrap: balance;
}
.how-card-body {
  color: var(--ink-soft);
  font-size: 15px; line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
  max-width: 60ch;
}

/* ───────── Features (glass-panel grid) ───────── */

.features {
  margin: clamp(60px, 9vw, 120px) 0;
  position: relative;
}
.features-head {
  max-width: 62ch;
  margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center;
}
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  max-width: 980px;
  margin-inline: auto;
}
.feat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: clamp(22px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feat-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
}
.feat-icon { width: 40px; height: 40px; color: var(--gold); }
.feat-title {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
.feat-body {
  color: var(--ink-soft);
  font-size: 15px; line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}

/* ───────── Stories rail ───────── */

.stories {
  margin: clamp(40px, 6vw, 80px) 0 80px;
  scroll-margin-top: 60px;
}
.stories .section-label,
.stories .section-title,
.stories .section-sub { text-align: center; margin-inline: auto; }
.stories-rail {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  perspective: 1200px;
}
.story-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  text-align: start;
  padding: 0; cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  /* Each card carries `--i` (0..4) for the float stagger via
     animation-delay calc — same trick as the Flutter onboarding scene. */
  animation: lt-float 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.4s);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
  will-change: transform;
}
.story-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 36px 70px -22px rgba(0,0,0,0.55),
              0 8px 22px -8px rgba(0,0,0,0.35),
              0 0 0 1px var(--card-hi) inset;
}
.story-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
@keyframes lt-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.story-art-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
}
.story-art {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.story-band {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.40); color: white;
  font: 700 11px/1 var(--font-body);
  letter-spacing: .06em;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[dir="rtl"] .story-band { left: auto; right: 12px; }
.story-info { padding: 16px 18px 20px; }
.story-type {
  font: 600 11px/1 var(--font-body);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.story-title {
  font-family: var(--font-display);
  font-weight: 600; font-style: italic;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}
.card-shine {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.story-card:hover .card-shine { transform: translateX(100%); }

/* ───────── Story preview modal ───────── */

.modal-backdrop {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(8, 4, 30, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lt-fade-in .3s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh; overflow: auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--card-border);
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.6);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  animation: lt-pop .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes lt-pop {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35); color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
[dir="rtl"] .modal-close { right: auto; left: 14px; }
.modal-close:hover { background: rgba(0, 0, 0, 0.55); }
.modal-close svg   { width: 18px; height: 18px; }
.modal-art {
  position: relative;
  min-height: 340px;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  overflow: hidden;
}
.modal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: clamp(24px, 3vw, 40px); }
.modal-preview-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 214, 107, 0.12);
  border: 1px solid rgba(255, 214, 107, 0.3);
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15; letter-spacing: -0.01em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.modal-gender { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.modal-gender[hidden] { display: none; }
.modal-gender-pill {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--ink-soft);
}
.modal-gender-pill[aria-selected="true"] {
  background: rgba(255, 214, 107, 0.18);
  color: var(--gold);
  border-color: var(--gold);
}
.modal-page {
  font-family: var(--font-display);
  font-size: 17px; line-height: 1.65;
  color: var(--ink);
  margin: 0 0 22px;
  text-wrap: pretty;
  font-weight: 400;
  white-space: pre-line;
}
.modal-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0;
  color: var(--ink-mute);
}
.modal-divider span:not(.dot) { flex: 1; height: 1px; background: currentColor; opacity: .25; }
.modal-divider .dot { flex: none; color: var(--gold); font-size: 14px; }
.modal-cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 6px;
}
.modal-cta-sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ───────── Store badges (brand-correct, black pill) ───────── */

.store-row { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.6);
}
.store-icon { width: 26px; height: 26px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; }
.store-pre  { font-size: 10px; opacity: .75; letter-spacing: .05em; text-transform: uppercase; }
.store-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }

/* ───────── FAQ (auto-rotating carousel) ───────── */

/* Both the question and the answer are visible at the same time;
   landing.js advances the track every ~6 s and supports swipe / drag
   for manual navigation. Pairs with FAQPage JSON-LD so the answers
   also surface in AI search overviews and Google Rich Results. */
.faq {
  margin: clamp(60px, 9vw, 120px) auto;
  max-width: 780px;
}
.faq .section-label,
.faq .section-title { text-align: center; margin-inline: auto; }
.faq-carousel {
  margin-top: clamp(28px, 4vw, 40px);
  position: relative;
}
/* Stage = single grid cell. All cards stack on top of each other in
   the same row/column, so only one is visible at a time (we toggle
   opacity). The stage's height auto-sizes to the tallest card, so
   advancing doesn't make the page jump. */
.faq-stage {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  position: relative;
  touch-action: pan-y;
  user-select: none;
}
.faq-card {
  grid-column: 1; grid-row: 1;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  display: flex; flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}
.faq-card.is-active {
  opacity: 1;
  pointer-events: auto;
}
.faq-q {
  font-family: var(--font-display);
  font-weight: 600; font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.faq-a {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.faq-dots {
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.faq-dot {
  width: 8px; height: 8px;
  padding: 0; border: 0;
  border-radius: 50%;
  background: var(--ink-mute);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity .25s ease, background .25s ease, transform .25s ease;
}
.faq-dot.is-active {
  background: var(--gold);
  opacity: 1;
  transform: scale(1.3);
}
.faq-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ───────── Footer ───────── */

.footer {
  margin-top: 60px;
  padding: 36px 0 12px;
  border-top: 1px solid var(--card-border);
  color: var(--ink-soft);
  font-size: 14px;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-logo .logo-mark { width: 30px; height: 30px; }
.footer-logo .logo-word { font-size: 18px; }
.footer-tag {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--ink-soft);
  margin: 0;
}
.footer-seo {
  font-size: 11px;
  opacity: .45;
  line-height: 1.7;
  margin: 18px 0;
  letter-spacing: .02em;
}
.footer-nav {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 18px;
}
[dir="rtl"] .footer-nav { justify-content: flex-end; }
.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--card-border);
  padding-bottom: 2px;
}
.footer-nav a:hover { color: var(--gold); }
.footer-rights { margin-top: 14px; opacity: .6; font-size: 12px; }

/* ───────── Animations ───────── */

@keyframes lt-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────── Responsive ───────── */

@media (max-width: 1080px) {
  .stories-rail { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .features-grid { grid-template-columns: 1fr; }
  .mv { grid-template-columns: 1fr; gap: 40px; }
  .mv-vision { text-align: left; padding-top: 0; justify-self: start; }
  [dir="rtl"] .mv-vision { text-align: right; }
  .how-row { grid-template-columns: auto 1fr; gap: 16px; }
  .how-row .how-icon { display: none; }
  .modal { grid-template-columns: 1fr; max-height: 94vh; }
  .modal-art { min-height: 220px; }
  .stories-rail { grid-template-columns: repeat(2, 1fr); }
  /* On phones the bottom bar's copyright line gets tight; drop it
     and let the store badges take the full bar. */
  .bottom-bar-rights { display: none; }
  .bottom-bar { justify-content: center; }
}
@media (max-width: 520px) {
  .stories-rail { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 8px 14px; }
  .ctl-btn { height: 38px; padding: 0 10px; }
  .ctl-icon { width: 38px; }
  .logo-img { height: 30px; }
  body { padding-bottom: 72px; }
}
/* iPhone SE / very small viewports — the hero is dense; cut padding
   and let the story cards scroll horizontally rather than wrap into
   tiny 2-col squares. */
@media (max-width: 380px) {
  .page-shell { padding: 16px 14px 32px; }
  .hero { padding: 32px 0 24px; }
  .hero-title { font-size: clamp(34px, 9vw, 44px); }
  .hero-sub { font-size: 15px; }
  .hero-badges { gap: 10px 16px; font-size: 13px; }
  .badge-num { font-size: 18px; }
  .stories-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin: 0 -14px;
    padding-left: 14px; padding-right: 14px;
  }
  .story-card { scroll-snap-align: center; }
  .mv-title { font-size: clamp(24px, 7vw, 32px); }
  .section-title { font-size: clamp(24px, 6vw, 32px); }
  .feat-card { padding: 18px; }
  .faq-q { font-size: 16px; }
  .bottom-bar { padding: 8px 12px; gap: 6px; }
  .bottom-bar .store-badge { padding: 6px 10px; }
  .bottom-bar .store-icon { width: 20px; height: 20px; }
  .bottom-bar .store-name { font-size: 13px; }
  .bottom-bar .store-pre  { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .story-card, .eyebrow-dot, .mv-orbit { animation: none !important; }
  * { transition-duration: 0.001ms !important; }
}

/* ───────── Root redirector page ───────── */

body.lt-redirect {
  font-family: var(--font-body);
  padding: 64px 24px;
  text-align: center;
  color: var(--ink);
}
body.lt-redirect h1 {
  font-family: var(--font-display);
  font-weight: 700; font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 12px;
}
body.lt-redirect p {
  max-width: 640px; margin: 0 auto 24px;
  color: var(--ink-soft);
}
body.lt-redirect nav a {
  display: inline-block; margin: 4px 8px;
  color: var(--gold); text-decoration: none;
  font-size: 0.9rem;
}
