/* Lumo's landing page (D-156, D-184): static, self-hosted, no external requests. site.css holds the
   fonts and tokens it shares with the other pages. The hero's reveal is driven by landing.js (Web
   Animations); this file holds the finished state, so a page without the script, or with reduced
   motion, shows the hero open and the scene still. Below the hero, the same night carries on. */

:root {
  --fs: min(19.6vh, 13.2vw);
  color-scheme: dark;
}

html {
  background: var(--deep);
  color: var(--cream);
  font-family:
    'Fredoka',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------ the hero */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  font-size: var(--fs);
  background: var(--deep);
}

/* The lighter starry layer with its gold trails, faded in as the pill opens. */
.bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff4c2 60%, transparent),
    radial-gradient(1px 1px at 27% 64%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 41% 9%, #fff 60%, transparent),
    radial-gradient(1px 1px at 55% 81%, #fff4c2 60%, transparent),
    radial-gradient(2px 2px at 68% 23%, #fff4c2 60%, transparent),
    radial-gradient(1px 1px at 79% 57%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 91% 12%, #fff 60%, transparent),
    radial-gradient(1px 1px at 6% 86%, #fff 60%, transparent),
    radial-gradient(1px 1px at 35% 38%, #fff4c2 60%, transparent),
    radial-gradient(1.5px 1.5px at 86% 90%, #fff 60%, transparent),
    radial-gradient(ellipse at 50% 120%, rgba(74, 63, 143, 0.55), transparent 60%),
    linear-gradient(180deg, #171b52 0%, var(--night-light) 100%);
}

.trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trails path {
  vector-effect: non-scaling-stroke;
}

/* Nav: plain text links at the top. */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: calc(var(--fs) * 0.14) calc(var(--fs) * 0.27) 0;
  font-size: max(12px, calc(var(--fs) * 0.072));
  font-weight: 400;
  line-height: 1.3;
}

.nav ul {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li + li::before {
  content: '·';
  padding: 0 0.6em;
  color: var(--lavender);
}

.nav a {
  text-decoration: none;
}

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

/* English | Français (D-180): the same page in the other language, the visitor's choice. */
.nav li.lang {
  margin-left: 1.6em;
  color: var(--lavender);
}

.nav li.lang::before {
  content: none;
}

.nav .lang .sep {
  padding: 0 0.45em;
}

.nav .lang [aria-current] {
  color: var(--gold);
}

/* The word: LU · pill · MO. */
.word {
  position: absolute;
  left: 0;
  right: 0;
  top: 43%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.085em;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.8;
  color: var(--cream);
  user-select: none;
}

.half {
  display: block;
}

.pill {
  position: relative;
  flex: none;
  width: 3.62em;
  height: 1.81em;
}

.pill-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #151948;
  clip-path: inset(0);
  container-type: size;
}

/* The gold hairline the pill opens from: an overlay, faded on its own, never the scene. */
.pill-line {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--gold);
  box-shadow:
    0 0 6px 1px rgba(255, 200, 61, 0.9),
    0 0 22px 4px rgba(255, 200, 61, 0.45);
  opacity: 0;
  pointer-events: none;
}

.pill-icon {
  position: absolute;
  top: 50%;
  width: max(14px, 0.085em);
  height: max(14px, 0.085em);
  margin-top: calc(max(14px, 0.085em) / -2);
  opacity: 0.85;
}

.icon-star {
  left: 0.22em;
}

.icon-speaker {
  right: 0.22em;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.icon-speaker svg {
  display: block;
  width: 100%;
  height: 100%;
}

.icon-speaker .waves {
  transition: opacity 0.2s;
}

.icon-speaker[aria-pressed='false'] .waves {
  opacity: 0;
}

/* --------------------------------------------- the night scene inside the pill */
/* Crops like object-fit: cover, anchored centre top: 2:1, never narrower than the pill. */
.scene {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100cqw, 200cqh);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  overflow: hidden;
  container-type: size;
  background: linear-gradient(180deg, #0e1350 0%, #1d2266 52%, #2e2f78 100%);
}

.stars {
  position: absolute;
  inset: 0 0 30% 0;
  animation: twinkle 3.4s ease-in-out infinite alternate;
}

.s1 {
  background:
    radial-gradient(0.25cqw 0.25cqw at 8% 22%, #fff4c2 60%, transparent),
    radial-gradient(0.18cqw 0.18cqw at 19% 58%, #fff 60%, transparent),
    radial-gradient(0.3cqw 0.3cqw at 33% 12%, #fff 60%, transparent),
    radial-gradient(0.2cqw 0.2cqw at 61% 30%, #fff4c2 60%, transparent),
    radial-gradient(0.25cqw 0.25cqw at 88% 62%, #fff 60%, transparent);
}

.s2 {
  animation-duration: 4.6s;
  animation-delay: -1.7s;
  background:
    radial-gradient(0.2cqw 0.2cqw at 14% 38%, #fff 60%, transparent),
    radial-gradient(0.28cqw 0.28cqw at 41% 44%, #fff4c2 60%, transparent),
    radial-gradient(0.18cqw 0.18cqw at 56% 8%, #fff 60%, transparent),
    radial-gradient(0.25cqw 0.25cqw at 70% 52%, #fff 60%, transparent),
    radial-gradient(0.2cqw 0.2cqw at 95% 20%, #fff4c2 60%, transparent);
}

.s3 {
  animation-duration: 5.8s;
  animation-delay: -3.1s;
  background:
    radial-gradient(0.18cqw 0.18cqw at 4% 70%, #fff 60%, transparent),
    radial-gradient(0.22cqw 0.22cqw at 26% 30%, #fff 60%, transparent),
    radial-gradient(0.3cqw 0.3cqw at 48% 26%, #fff4c2 60%, transparent),
    radial-gradient(0.2cqw 0.2cqw at 66% 74%, #fff 60%, transparent),
    radial-gradient(0.22cqw 0.22cqw at 76% 10%, #fff 60%, transparent);
}

@keyframes twinkle {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.moon {
  position: absolute;
  left: 79%;
  top: 10%;
  width: 7cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffdf0, #fff4c2 55%, #f4e3a0 100%);
  box-shadow:
    0 0 2cqw 0.6cqw rgba(255, 244, 194, 0.35),
    0 0 7cqw 2cqw rgba(255, 244, 194, 0.12);
}

.hill {
  position: absolute;
  border-radius: 50%;
}

.hill-back {
  left: -22%;
  top: 74%;
  width: 118%;
  height: 80%;
  background: radial-gradient(ellipse at 50% 0%, #4a7f50 0%, #3c6842 22%);
}

.hill-front {
  left: 28%;
  top: 80%;
  width: 110%;
  height: 80%;
  background: radial-gradient(ellipse at 45% 0%, #3f7346 0%, #315a38 24%);
}

.lantern {
  position: absolute;
  left: 7%;
  bottom: 13%;
  height: 34%;
  aspect-ratio: 172 / 300;
}

.lantern img {
  position: relative;
  display: block;
  height: 100%;
  width: 100%;
}

.lantern-glow {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 300%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 61, 0.55) 0%, rgba(255, 200, 61, 0) 62%);
  animation: flicker 3.2s linear infinite;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.85;
  }
  9% {
    opacity: 0.68;
  }
  17% {
    opacity: 0.95;
  }
  31% {
    opacity: 0.74;
  }
  44% {
    opacity: 1;
  }
  56% {
    opacity: 0.8;
  }
  69% {
    opacity: 0.94;
  }
  83% {
    opacity: 0.7;
  }
}

.pet {
  position: absolute;
  bottom: 6%;
  height: 33%;
  width: auto;
  transform: translateX(-50%);
}

.pip {
  left: 27%;
}

.tess {
  left: 73%;
}

/* Lumo, upper-middle, so he shows at every width of the pill. */
.lumo {
  position: absolute;
  left: 50%;
  top: 8%;
  height: 52%;
  aspect-ratio: 321 / 420;
  transform: translateX(-50%);
}

.lumo-float {
  position: relative;
  height: 100%;
  animation: float 4.8s ease-in-out infinite;
}

.lumo-float img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.lumo-glow {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 190%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 231, 163, 0.55) 0%,
    rgba(255, 210, 74, 0.22) 34%,
    rgba(255, 210, 74, 0) 62%
  );
  animation: pulse 2.4s ease-in-out infinite alternate;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3.5cqh);
  }
}

@keyframes pulse {
  from {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

/* Eight fireflies drifting slowly up, each invisible at both ends of its loop. */
.ff {
  position: absolute;
  width: 0.7cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffd24a;
  box-shadow: 0 0 0.8cqw 0.3cqw rgba(255, 210, 74, 0.65);
  opacity: 0;
  animation: drift 11s linear infinite;
}

.f1 {
  left: 14%;
  top: 82%;
  animation-delay: -1s;
}
.f2 {
  left: 22%;
  top: 70%;
  animation-duration: 13s;
  animation-delay: -6s;
}
.f3 {
  left: 37%;
  top: 88%;
  animation-duration: 10s;
  animation-delay: -3.5s;
}
.f4 {
  left: 44%;
  top: 76%;
  animation-duration: 12s;
  animation-delay: -9s;
}
.f5 {
  left: 58%;
  top: 84%;
  animation-duration: 14s;
  animation-delay: -2s;
}
.f6 {
  left: 64%;
  top: 72%;
  animation-delay: -7.5s;
}
.f7 {
  left: 81%;
  top: 86%;
  animation-duration: 12.5s;
  animation-delay: -4.5s;
}
.f8 {
  left: 90%;
  top: 74%;
  animation-duration: 10.5s;
  animation-delay: -8s;
}

@keyframes drift {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  15% {
    opacity: 1;
  }
  35% {
    transform: translate(1.5cqw, -20cqh);
  }
  65% {
    transform: translate(-1.2cqw, -40cqh);
  }
  85% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(0.8cqw, -58cqh);
  }
}

/* The bar at the foot of the hero: the intro, a gold rule and Meet Lumo. */
.bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: calc(var(--fs) * 0.12);
  padding: 0 calc(var(--fs) * 0.27) calc(var(--fs) * 0.14);
}

.intro {
  flex: none;
  width: max(220px, calc(var(--fs) * 1.42));
  margin: 0;
  font-size: max(12px, calc(var(--fs) * 0.066));
  line-height: 1.45;
  color: var(--lavender);
}

.intro::first-letter {
  float: left;
  margin: 0.08em 0.07em 0 0;
  font-size: 2.35em;
  font-weight: 600;
  line-height: 0.8;
  color: var(--cream);
}

.bar-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: calc(var(--fs) * 0.12);
}

.rule {
  flex: 1;
  height: 1px;
  background: var(--gold-muted);
}

.meet {
  flex: none;
  padding: 0.75em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-size: max(13px, calc(var(--fs) * 0.08));
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 200, 61, 0.25);
}

.meet:hover {
  background: #ffd45e;
}

/* ------------------------------------------------------------- phone */
@media (max-width: 720px) {
  :root {
    --fs: min(34vw, 16.5vh);
  }

  .nav {
    padding: 16px 20px 0;
    font-size: 12.5px;
  }

  .nav li + li::before {
    padding: 0 0.45em;
  }

  /* Only the language switch stays on the right, on a line of its own if it must. */
  .nav {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .nav .nav-right {
    margin-left: auto;
  }

  .nav .nav-right li:not(.lang) {
    display: none;
  }

  .nav li.lang {
    margin-left: 0;
  }

  .nav li {
    white-space: nowrap;
  }

  .word {
    top: 47%;
    flex-direction: column;
    gap: 0.1em;
  }

  .pill {
    width: calc(100vw - 40px);
    height: calc((100vw - 40px) / 1.85);
  }

  .icon-star {
    left: 0.14em;
  }

  .icon-speaker {
    right: 0.14em;
  }

  .bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0 20px 20px;
  }

  .intro {
    width: auto;
    font-size: 13px;
    line-height: 1.5;
  }

  .bar-row {
    gap: 14px;
  }

  .meet {
    height: 38px;
    padding: 0 18px;
    font-size: 14px;
  }
}

/* ------------------------------------------- the hero's link and pill (D-184) */
/* Meet Lumo is a plain link to How it works; clicking the pill replays the reveal. At rest both
   look exactly as before. */

.meet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background-color 0.2s,
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.meet:hover {
  box-shadow: 0 6px 24px rgba(255, 200, 61, 0.4);
}

.meet:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.08s;
}

.js .pill {
  cursor: pointer;
}

/* The floating nav pill (site.css), here once the hero's own nav has scrolled away. The sentinel
   is the top of the page, as tall as that nav: landing.js watches it leave. */
.top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 88px;
  pointer-events: none;
}

.site-nav.is-floating {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 30;
  width: calc(100% - 24px);
  translate: -50% calc(-100% - 24px);
  opacity: 0;
  visibility: hidden;
  transition:
    translate 0.55s var(--ease),
    opacity 0.3s,
    visibility 0s linear 0.55s;
}

.site-nav.is-floating.is-shown {
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
  transition:
    translate 0.55s var(--ease),
    opacity 0.3s,
    visibility 0s;
}

/* -------------------------------------------------------- below the hero */
/* One night from the hero to the footer: the same sky, its stars thinning out, the hero's indigo
   glow carried over the edge, deeper bands between sections and gold light where something
   glows in the art. Motion comes from landing.js adding `.in`, `.is-active` and `.is-lit`; without
   the script, or with reduced motion, everything is simply there. */

main {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--night-light);
}

/* The star field: two tiles of different sizes, so no pattern repeats on screen. */
main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 7% 12%, rgba(255, 244, 194, 0.75) 50%, transparent),
    radial-gradient(1px 1px at 23% 41%, rgba(255, 255, 255, 0.6) 50%, transparent),
    radial-gradient(1px 1px at 38% 7%, rgba(255, 255, 255, 0.5) 50%, transparent),
    radial-gradient(1.5px 1.5px at 52% 63%, rgba(255, 244, 194, 0.55) 50%, transparent),
    radial-gradient(1px 1px at 66% 28%, rgba(255, 255, 255, 0.55) 50%, transparent),
    radial-gradient(1px 1px at 79% 84%, rgba(255, 255, 255, 0.45) 50%, transparent),
    radial-gradient(1.5px 1.5px at 91% 47%, rgba(255, 244, 194, 0.6) 50%, transparent),
    radial-gradient(1px 1px at 14% 76%, rgba(255, 255, 255, 0.4) 50%, transparent),
    radial-gradient(1px 1px at 46% 92%, rgba(255, 255, 255, 0.45) 50%, transparent),
    radial-gradient(1px 1px at 84% 9%, rgba(255, 255, 255, 0.5) 50%, transparent);
  background-size:
    1180px 940px,
    1630px 1270px;
}

/* The hero's indigo glow, carried on over the edge. */
main::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 900px;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(74, 63, 143, 0.5), transparent 72%);
}

.section {
  position: relative;
  padding: var(--section) 0;
}

.section h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.125rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--cream);
  text-wrap: balance;
}

.section h3 {
  margin: 0 0 0.45rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}

.section p,
.section li,
.section dd {
  color: var(--lavender);
}

.lede {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* A small gold label beside a title, such as "Coming soon": unused since D-185, kept to put back. */
.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--pill);
  background: rgba(255, 200, 61, 0.08);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 200, 61, 0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s;
}

.text-link::after {
  content: '→' / '';
  transition: translate 0.3s var(--ease);
}

.text-link:hover {
  text-decoration-color: var(--gold);
}

.text-link:hover::after {
  translate: 4px 0;
}

/* ------------------------------------------------------------- scroll reveals */
/* Each `.reveal` fades up once, the first time it comes into view; siblings follow one another in
   reading order. Only with the script: without it, nothing waits to be revealed. */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease) var(--delay, 0s),
    transform 0.9s var(--ease) var(--delay, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.reveal:nth-child(2) {
  --delay: 0.09s;
}
.reveal:nth-child(3) {
  --delay: 0.18s;
}
.reveal:nth-child(4) {
  --delay: 0.27s;
}
.reveal:nth-child(5) {
  --delay: 0.36s;
}
.reveal:nth-child(6) {
  --delay: 0.45s;
}

/* ------------------------------------------------- 1. how it works: the phone */
/* The phone stays put while the four steps scroll past it, each one swapping its screen. */

.how-head {
  max-width: 44rem;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: start;
}

.how-phone {
  position: sticky;
  top: 96px;
  justify-self: center;
  /* The whole phone always fits under the nav pill: its screen is 480 x 993, its frame 9px. */
  width: min(100%, calc((100vh - 154px) * 0.4834 + 18px));
}

/* A warm light behind the phone. */
.how-phone::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: -1;
  width: 170%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 61, 0.16), rgba(255, 200, 61, 0));
  pointer-events: none;
}

.phone {
  padding: 9px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #262b6e, #12153d 60%);
  box-shadow:
    var(--highlight),
    0 40px 80px -24px var(--shadow-tint);
}

.phone-screens {
  position: relative;
  aspect-ratio: 480 / 993;
  overflow: hidden;
  border-radius: calc(var(--radius) - 9px);
  background: var(--night);
}

.phone-screens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.6s var(--ease),
    transform 1s var(--ease);
}

.phone-screens img.is-active {
  opacity: 1;
  transform: none;
}

.how-steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A thin line joins the four numbers. */
.how-steps::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.4rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(46vh, 440px);
  padding: 24px 0 24px 4.75rem;
}

.js .how-step {
  opacity: 0.42;
  transition: opacity 0.5s var(--ease);
}

.js .how-step.is-active {
  opacity: 1;
}

.section .how-step h3 {
  position: relative;
  margin: 0 0 0.7rem;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.how-step p {
  max-width: 28rem;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

.num {
  position: absolute;
  top: 50%;
  left: -4.75rem;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  translate: 0 -50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--night);
  box-shadow: var(--highlight);
  color: var(--cream);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    background-color 0.4s,
    color 0.4s,
    box-shadow 0.4s,
    border-color 0.4s;
}

.how-step.is-active .num,
html:not(.js) .num {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  box-shadow:
    0 0 0 6px rgba(255, 200, 61, 0.14),
    0 0 26px rgba(255, 200, 61, 0.45);
}

/* Each step carries its own screen for narrow screens; wide ones show the phone instead. */
.step-shot {
  display: none;
}

/* ------------------------------------------------------------------ 2. stories */
/* A real line from a real story, read aloud the way the app reads it. */

.stories {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(14, 17, 52, 0.55) 22%,
    rgba(14, 17, 52, 0.55) 78%,
    transparent
  );
}

.stories-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.stories-text > p {
  max-width: 34rem;
  font-size: 1.125rem;
}

.ticks {
  display: grid;
  gap: 0.85rem;
  max-width: 34rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 2rem;
}

.ticks li::before {
  content: '';
  position: absolute;
  top: 0.5em;
  left: 0.15rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 4px rgba(255, 200, 61, 0.12),
    0 0 14px rgba(255, 200, 61, 0.55);
}

.story-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
  aspect-ratio: 0.78;
}

.story-stage::before {
  content: '';
  position: absolute;
  inset: 6% -6% 0 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 61, 0.16), rgba(255, 200, 61, 0));
}

.story-shot {
  position: absolute;
  top: 2%;
  left: 5%;
  width: 62%;
  height: auto;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: var(--radius);
  background: var(--night);
  box-shadow:
    var(--highlight),
    0 34px 70px -22px var(--shadow-tint);
  rotate: -5deg;
}

.story-card {
  position: absolute;
  right: 0;
  bottom: 9%;
  z-index: 1;
  width: 64%;
  padding: 22px 24px 18px;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow:
    inset 0 1px 0 #fff,
    0 30px 60px -18px var(--shadow-tint);
  rotate: 3deg;
}

.section .story-card p {
  color: var(--ink);
}

.section .story-card .story-title {
  margin: 0 0 0.6rem;
  color: rgba(27, 31, 75, 0.55);
  font-size: 0.875rem;
  font-weight: 600;
}

.story-line {
  margin: 0;
  font-size: clamp(1.375rem, 2.3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.5;
}

/* Each word lights up in turn, as the app's read-aloud lights them. */
.w {
  position: relative;
  display: inline-block;
}

.w::before {
  content: '';
  position: absolute;
  inset: 0.04em -0.14em 0;
  z-index: -1;
  border-radius: 0.3em;
  background: var(--gold);
  box-shadow: 0 6px 16px -6px rgba(255, 170, 0, 0.8);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.w.is-lit::before {
  opacity: 1;
}

.section .story-card .story-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.9rem 0 0;
  color: rgba(27, 31, 75, 0.6);
  font-size: 0.875rem;
  font-weight: 600;
}

.story-dot {
  position: relative;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
}

.story-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Pip peeks in from the bottom-left once the stage has arrived. */
.story-pip {
  position: absolute;
  bottom: 3%;
  left: -2%;
  z-index: 2;
  width: 23%;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(6, 8, 30, 0.5));
}

.js .story-stage .story-pip {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 0.6s var(--ease) 0.5s,
    translate 0.8s var(--ease) 0.5s;
}

.js .story-stage.in .story-pip {
  opacity: 1;
  translate: 0 0;
}

/* ----------------------------------------------------------------- 3. parents */
/* Four tiles of different sizes, each with something real from the app in it. */

.parents h2 {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-areas:
    'jar kids gate'
    'jar moment moment';
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(46, 47, 120, 0.55), rgba(27, 31, 75, 0.82));
  box-shadow: var(--highlight), var(--shadow-small);
  transition:
    translate 0.5s var(--ease),
    border-color 0.3s;
}

.js .tile.reveal {
  transition:
    opacity 0.9s var(--ease) var(--delay, 0s),
    transform 0.9s var(--ease) var(--delay, 0s),
    translate 0.5s var(--ease),
    border-color 0.3s;
}

.tile:hover {
  translate: 0 -4px;
  border-color: rgba(255, 200, 61, 0.3);
}

.section .tile h3 {
  margin-bottom: 0.5rem;
}

.tile p {
  margin: 0;
  line-height: 1.55;
}

/* The Keepsake Jar: the jar in a pool of gold light, four of its charms drifting round it. */
.tile-jar {
  grid-area: jar;
  min-height: 620px;
  background:
    radial-gradient(ellipse 75% 50% at 50% 38%, rgba(255, 200, 61, 0.26), transparent 72%),
    linear-gradient(180deg, rgba(46, 47, 120, 0.5), rgba(27, 31, 75, 0.88));
}

.jar-art {
  position: relative;
  flex: 1;
  min-height: 320px;
}

.jar-art::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  width: 70%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 220, 130, 0.35), rgba(255, 200, 61, 0));
  animation: glow 4.8s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    opacity: 0.55;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

.jar {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 44%;
  max-width: 220px;
  height: auto;
  translate: -50% -50%;
  filter: drop-shadow(0 24px 30px rgba(6, 8, 30, 0.55));
}

.charm {
  position: absolute;
  width: 21%;
  max-width: 100px;
  height: auto;
  filter: drop-shadow(0 12px 16px rgba(6, 8, 30, 0.45));
  animation: bob 6.5s ease-in-out infinite;
}

.c1 {
  top: 8%;
  left: 7%;
}

.c2 {
  top: 3%;
  right: 7%;
  animation-duration: 7.5s;
  animation-delay: -2s;
}

.c3 {
  bottom: 6%;
  left: 10%;
  animation-duration: 7s;
  animation-delay: -4.5s;
}

.c4 {
  right: 6%;
  bottom: 12%;
  animation-duration: 8s;
  animation-delay: -1s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

/* Up to 4 children: four of the app's own pictures, side by side. */
.tile-kids {
  grid-area: kids;
}

.avatars {
  display: flex;
  margin-bottom: auto;
}

.avatars img {
  width: 76px;
  height: 76px;
  margin-left: -14px;
  border: 3px solid #23286a;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 22px -8px var(--shadow-tint);
  transition:
    translate 0.45s var(--ease),
    rotate 0.45s var(--ease);
}

.avatars img:first-child {
  margin-left: 0;
  background: #ffe2a6;
}
.avatars img:nth-child(2) {
  background: #d6d2f0;
}
.avatars img:nth-child(3) {
  background: #c5e8d6;
}
.avatars img:nth-child(4) {
  background: #ffd4c8;
}

.tile-kids:hover .avatars img:nth-child(1) {
  translate: -6px -4px;
  rotate: -6deg;
}
.tile-kids:hover .avatars img:nth-child(2) {
  translate: -2px -9px;
  rotate: -2deg;
}
.tile-kids:hover .avatars img:nth-child(3) {
  translate: 2px -9px;
  rotate: 3deg;
}
.tile-kids:hover .avatars img:nth-child(4) {
  translate: 6px -4px;
  rotate: 7deg;
}

/* The parent gate: its question, written in words, and the answer only a grown-up gives. */
.tile-gate {
  grid-area: gate;
  background:
    radial-gradient(ellipse 90% 70% at 15% 0%, rgba(196, 192, 222, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(46, 47, 120, 0.55), rgba(27, 31, 75, 0.82));
}

.section .gate-sum {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0 0 auto;
}

.gate-q {
  color: var(--lavender);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
}

.gate-a {
  padding: 0 0.12em 0.04em;
  border-bottom: 3px solid var(--gold);
  color: var(--gold);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 28px rgba(255, 200, 61, 0.45);
}

/* Tonight's 2-minute moment: the moon, out on the right, never over the words. */
.tile-moment {
  grid-area: moment;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 260px;
  background:
    radial-gradient(circle at 86% 50%, rgba(255, 244, 194, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(46, 47, 120, 0.55), rgba(27, 31, 75, 0.82));
}

.tile-moment .tile-text {
  max-width: 30rem;
}

.moment-moon {
  flex: none;
  width: 112px;
  height: auto;
  margin-right: 3%;
  filter: drop-shadow(0 0 26px rgba(255, 236, 170, 0.45));
}

/* ------------------------------------------------------------------ 4. privacy */
/* The lantern stays in view beside five plain promises. */

.private {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(14, 17, 52, 0.6) 20%,
    rgba(14, 17, 52, 0.6) 80%,
    transparent
  );
}

.private-grid {
  display: grid;
  grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.private-lantern {
  position: sticky;
  top: 112px;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.private-lantern img {
  position: relative;
  width: min(66%, 210px);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(6, 8, 30, 0.55));
}

.private-glow {
  position: absolute;
  top: 36%;
  left: 50%;
  width: 160%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 200, 61, 0.36),
    rgba(255, 200, 61, 0.12) 45%,
    rgba(255, 200, 61, 0)
  );
  animation: flicker 3.2s linear infinite;
}

.section .private-intro {
  max-width: 34rem;
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
  margin: clamp(32px, 4vw, 48px) 0 clamp(28px, 4vw, 40px);
}

.promise {
  padding: 22px 0 26px;
  border-top: 1px solid var(--gold-line);
}

/* Five promises: the last one across both columns. */
.promise:last-child {
  grid-column: 1 / -1;
}

.promise dt {
  margin: 0 0 0.35rem;
  color: var(--cream);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.promise dd {
  margin: 0;
  line-height: 1.55;
}

/* ------------------------------------------------------------------- 5. get lumo */

.get {
  padding-bottom: clamp(88px, 9vw, 120px);
  background:
    radial-gradient(ellipse 50% 60% at 26% 50%, rgba(255, 186, 73, 0.12), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--deep));
}

.get-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.get-lumo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.get-lumo img {
  position: relative;
  width: 240px;
  height: auto;
  animation: hover-y 5.2s ease-in-out infinite;
}

@keyframes hover-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.get-glow {
  position: absolute;
  top: 54%;
  left: 50%;
  width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 220, 140, 0.42),
    rgba(255, 186, 73, 0.16) 52%,
    rgba(255, 186, 73, 0)
  );
  animation: pulse 2.6s ease-in-out infinite alternate;
}

.get-text .lede {
  margin-bottom: 2rem;
}

/* The store links to come: in the shape of the badges that will replace them. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store {
  display: inline-flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  min-width: 200px;
  min-height: 64px;
  padding: 10px 28px;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: var(--pill);
  background: rgba(255, 248, 236, 0.06);
  box-shadow:
    var(--highlight),
    0 14px 30px -16px var(--shadow-tint);
  color: var(--cream);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: default;
}

.store-live {
  border-color: rgba(255, 248, 236, 0.34);
  background: rgba(255, 248, 236, 0.12);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.store-live:hover,
.store-live:focus-visible {
  border-color: rgba(255, 248, 236, 0.6);
  background: rgba(255, 248, 236, 0.18);
}

.store small {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- narrower screens */

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas:
      'jar kids'
      'jar gate'
      'moment moment';
  }

  .tile-jar {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  /* How it works: no phone to pin; the steps become a row to swipe, each with its own screen. */
  .how-grid {
    display: block;
  }

  .how-phone {
    display: none;
  }

  .how-steps {
    display: flex;
    gap: 16px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .how-steps::-webkit-scrollbar {
    display: none;
  }

  .how-steps::before {
    display: none;
  }

  .how-step,
  .js .how-step {
    flex: 0 0 min(68%, 280px);
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    opacity: 1;
    scroll-snap-align: start;
  }

  .step-shot {
    display: block;
    order: -1;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 248, 236, 0.14);
    border-radius: var(--radius);
    background: var(--night);
    box-shadow: var(--highlight), var(--shadow-small);
  }

  .section .how-step h3 {
    position: static;
    margin-bottom: 0.4rem;
    font-size: 1.375rem;
  }

  .how-step p {
    font-size: 1rem;
  }

  .num,
  .how-step.is-active .num {
    top: 14px;
    left: 14px;
    width: 2.5rem;
    height: 2.5rem;
    translate: none;
    border-color: var(--gold);
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 6px 16px -4px var(--shadow-tint);
  }

  .stories-grid,
  .private-grid,
  .get-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-stage {
    width: min(100%, 440px);
    margin-top: 8px;
  }

  .private-lantern {
    position: relative;
    top: auto;
    justify-items: start;
    padding: 0;
  }

  .private-lantern img {
    width: 92px;
  }

  .private-glow {
    left: 46px;
    width: 300px;
  }

  .get-grid {
    text-align: center;
  }

  .get-lumo {
    min-height: 300px;
  }

  .get-lumo img {
    width: 200px;
  }

  .get-glow {
    width: 320px;
  }

  .get-text .lede {
    margin-inline: auto;
  }

  .stores {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'jar'
      'kids'
      'gate'
      'moment';
    gap: 16px;
  }

  .tile {
    min-height: 0;
    padding: 24px;
  }

  .jar-art {
    min-height: 280px;
  }

  .jar {
    width: 46%;
  }

  .charm {
    width: 20%;
  }

  .avatars img {
    width: 68px;
    height: 68px;
  }

  .gate-a {
    font-size: 3rem;
  }

  /* The moon above the words, on the right, never over them. */
  .tile-moment {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .moment-moon {
    align-self: flex-end;
    width: 72px;
    margin: 0;
  }

  .promises {
    grid-template-columns: minmax(0, 1fr);
  }

  .store {
    min-width: 0;
    flex: 1 1 150px;
    padding-inline: 22px;
  }
}

@media print {
  .js .reveal,
  .js .story-stage .story-pip {
    opacity: 1;
    transform: none;
    translate: none;
  }

  .site-nav.is-floating {
    display: none;
  }
}

/* The narrowest phones: the four links still on one line, in French too (D-180). */
@media (max-width: 359px) {
  .nav {
    font-size: 11px;
  }

  .nav li + li::before {
    padding: 0 0.35em;
  }
}

/* Reduced motion: the finished hero, the scene still; below it, everything in place at once, the
   charms, glows and Lumo at rest, and the story's third word lit. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scene *,
  .scene *::before {
    animation: none !important;
  }

  .ff {
    opacity: 0.8;
  }

  .js .pill {
    cursor: auto;
  }

  .js .reveal,
  .js .story-stage .story-pip {
    opacity: 1;
    transform: none;
    translate: none;
    transition: none;
  }

  .jar-art::before,
  .charm,
  .private-glow,
  .get-glow,
  .get-lumo img,
  .story-dot::after {
    animation: none;
  }

  .meet,
  .site-nav.is-floating,
  .js .how-step,
  .num,
  .phone-screens img,
  .tile,
  .js .tile.reveal,
  .avatars img,
  .w::before,
  .text-link::after {
    transition: none;
  }

  .tile:hover {
    translate: none;
  }
}
