/* ==========================================================================
   SwimSafe — Public Landing Page
   Built on the SwimSafe Design System (tokens in swoom-theme.css).
   Naming: ll- (landing) prefix, BEM-ish. Mobile-first.
   Motion is ported from the original learntoswimsafe.com page and mapped
   onto the SwimSafe motion tokens (--dur-*, --ease-*).
   Levels tabs + dialogs live in public-landing-levels.css.
   ========================================================================== */

/* Full-bleed: the landing brings its own header/footer, so drop the
   shared .swoom-page constraints and hide the shared nav. */
main.swoom-page:has(.ll),
main.swoom-page.public-landing-page {
  max-width: none;
  padding: 0;
}

.ll {
  --ll-header-h: 64px;
  color: var(--ink-900);
  font-family: var(--font-body);
  line-height: var(--leading-normal);
  /* Reveal transforms (translateX ±40px) must never create horizontal
     scroll. clip (unlike hidden) keeps position: sticky working. */
  overflow-x: clip;
}

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

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

.ll-container {
  width: min(100% - 2 * var(--space-3), 1200px);
  margin-inline: auto;
}
.ll-container--narrow { width: min(100% - 2 * var(--space-3), 760px); }

.ll-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0);
}

html { scroll-behavior: smooth; }
html.ll-lock { overflow: hidden; }

/* ==========================================================================
   Scroll reveals — fail-open.
   Hidden start-states exist ONLY under html.ll-js (set by landing.js the
   moment it runs). Without JS everything is fully visible.
   Values ported from framer-motion: y:18→0 / x:∓40→0 / scale .9→1,
   ease [0.22,1,0.36,1] (== --ease-out).
   ========================================================================== */
.ll-reveal, .ll-stagger > * { --reveal-delay: 0ms; }

html.ll-js .ll .ll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-enter) var(--ease-out) var(--reveal-delay),
    transform var(--dur-enter) var(--ease-out) var(--reveal-delay);
}
html.ll-js .ll .ll-reveal--left  { transform: translateX(-40px); }
html.ll-js .ll .ll-reveal--right { transform: translateX(40px); }
html.ll-js .ll .ll-reveal--scale { transform: scale(.9); }
html.ll-js .ll .ll-reveal.is-in  { opacity: 1; transform: none; }

/* Stagger group: parent .ll-stagger reveals children in sequence. */
html.ll-js .ll .ll-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-enter) var(--ease-out) var(--reveal-delay),
    transform var(--dur-enter) var(--ease-out) var(--reveal-delay);
}
html.ll-js .ll .ll-stagger.is-in > * { opacity: 1; transform: none; }
.ll-stagger > :nth-child(2) { --reveal-delay: calc(1 * var(--stagger)); }
.ll-stagger > :nth-child(3) { --reveal-delay: calc(2 * var(--stagger)); }
.ll-stagger > :nth-child(4) { --reveal-delay: calc(3 * var(--stagger)); }
.ll-stagger > :nth-child(5) { --reveal-delay: calc(4 * var(--stagger)); }
.ll-stagger > :nth-child(6) { --reveal-delay: calc(5 * var(--stagger)); }
.ll-stagger > :nth-child(7) { --reveal-delay: calc(6 * var(--stagger)); }
.ll-stagger > :nth-child(8) { --reveal-delay: calc(7 * var(--stagger)); }
.ll-stagger > :nth-child(n+9) { --reveal-delay: calc(8 * var(--stagger)); }

/* ---------- Brand ---------- */
.ll-brand {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 1.25rem; color: var(--ocean-800); text-decoration: none;
}
.ll-brand__mark { width: 40px; height: 40px; object-fit: contain; }
.ll-brand--light { color: #fff; }

/* ---------- Buttons ---------- */
.ll-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  padding: 12px 22px; border: 0; border-radius: var(--radius-lg);
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: var(--text-body-lg); line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.ll-btn--primary { background: var(--grad-cta); color: #fff !important; text-decoration: none !important; box-shadow: var(--shadow-cta-ocean); }
.ll-btn--primary:active { transform: translateY(1px) scale(.985); }
.ll-btn--primary:focus-visible { outline: 3px solid rgba(127,233,223,.9); outline-offset: 3px; }
.ll-btn--ghost { background: transparent; color: var(--ocean-600); box-shadow: inset 0 0 0 2px var(--ocean-100); }
.ll-btn--lg { padding: 15px 28px; font-size: 1.15rem; }
.ll-btn--sm { padding: 9px 16px; font-size: var(--text-body); border-radius: var(--radius-md); }
.ll-btn--block { width: 100%; }
.ll-btn__icon { font-size: 1.1em; }
.ll-btn:disabled { opacity: .45; cursor: default; pointer-events: none; }

@media (hover: hover) {
  .ll-btn--primary:hover {
    background: var(--grad-cta-hover);
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta-ocean-hover);
  }

  .ll-btn--ghost:hover {
    background: var(--tint-ocean);
    color: var(--ocean-800);
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 2px var(--ocean-200), var(--shadow-card);
  }
}

/* ---------- Header ---------- */
.ll-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 249, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.ll-header.is-scrolled { box-shadow: var(--shadow-card); }
.ll-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  height: var(--ll-header-h);
}
.ll-nav { display: none; align-items: center; gap: var(--space-3); }
.ll-nav__link {
  position: relative;
  font-weight: var(--weight-bold); font-size: var(--text-body); color: var(--ink-600);
  text-decoration: none; transition: color var(--dur-fast) var(--ease-out);
}
.ll-nav__link:hover { color: var(--ocean-600); }
.ll-nav__link.is-current { color: var(--ocean-600); }
.ll-nav__link.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  border-radius: 3px; background: var(--grad-aqua);
}

.ll-header__actions { display: flex; align-items: center; gap: var(--space-1); }
.ll-header__login { display: none; }

/* Sheet-only links (login + CTA) live inside the nav for the mobile menu;
   hidden until the burger sheet is open. */
.ll-nav__sheet-only { display: none; }

/* ---------- Language dropdown (compact, native <details>) ---------- */
.ll-lang { position: relative; }
.ll-lang__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer;
  list-style: none; color: var(--ink-600);
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-sm);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.ll-lang__toggle::-webkit-details-marker { display: none; }
.ll-lang__toggle:hover { background: var(--tint-ocean); color: var(--ocean-600); }
.ll-lang__toggle:focus-visible { outline: 3px solid var(--ocean-200); outline-offset: 2px; }
.ll-lang__toggle .ll-icon { width: 17px; height: 17px; }
.ll-lang__current { text-transform: uppercase; letter-spacing: .02em; }
.ll-lang__caret { display: inline-flex; }
.ll-lang__caret .ll-icon { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-out); }
.ll-lang[open] .ll-lang__caret .ll-icon { transform: rotate(180deg); }

.ll-lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow-hover);
}
.ll-lang__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--ink-600); text-decoration: none; font-size: var(--text-body);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.ll-lang__item:hover { background: var(--tint-ocean); color: var(--ocean-600); }
.ll-lang__item.is-active { color: var(--ocean-600); font-weight: var(--weight-bold); }
.ll-lang__code {
  flex: 0 0 auto; min-width: 30px; padding: 2px 6px; text-align: center;
  border-radius: var(--radius-sm); background: var(--bg-soft);
  font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase;
}
.ll-lang__item.is-active .ll-lang__code { background: var(--ocean-600); color: #fff; }
.ll-lang__label { flex: 1 1 auto; }

.ll-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm); background: var(--card); cursor: pointer;
}

/* Small screens: brand + language + burger only; login & CTA move into the
   burger sheet. Everything must fit 360px-wide phones. */
@media (max-width: 979px) {
  .ll-header__cta { display: none; }
}
@media (max-width: 599px) {
  .ll-brand { font-size: 1.1rem; }
  .ll-brand__mark { width: 34px; height: 34px; }
  .ll-lang__toggle { padding: 7px 8px; }
}
.ll-menu-btn__lines, .ll-menu-btn__lines::before, .ll-menu-btn__lines::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ocean-800);
  position: relative;
}
.ll-menu-btn__lines::before, .ll-menu-btn__lines::after { content: ""; position: absolute; left: 0; }
.ll-menu-btn__lines::before { top: -6px; }
.ll-menu-btn__lines::after { top: 6px; }

/* ---------- Sections ---------- */
.ll-section { padding: clamp(48px, 8vw, 96px) 0; scroll-margin-top: var(--ll-header-h); }
.ll-section--muted { background: var(--bg-soft); }
.ll-section__head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.ll-section__title {
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: var(--leading-snug); margin: 0;
}
.ll-section__intro { margin: var(--space-2) auto 0; color: var(--ink-400); font-size: var(--text-body-lg); }

.ll-eyebrow {
  display: block; font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: var(--text-xs); letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--ocean-600);
}

/* ---------- Icons (inline SVG) ---------- */
.ll-icon { width: 1em; height: 1em; display: inline-block; flex: 0 0 auto; }

/* ---------- Grids ---------- */
.ll-grid { display: grid; gap: var(--space-2); }
.ll-grid--2 { grid-template-columns: 1fr; }
.ll-grid--3 { grid-template-columns: 1fr; }

/* ---------- Cards ---------- */
.ll-card {
  background: var(--card); border: 1px solid var(--ink-100); border-radius: var(--radius-xl);
  padding: var(--space-3); box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.ll-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--ocean-200); }
.ll-card__title { font-family: var(--font-display); font-size: var(--text-h3); margin: 0 0 6px; }
.ll-card__text { margin: 0; color: var(--ink-400); }

.ll-qcard { display: flex; gap: var(--space-2); align-items: flex-start; }
.ll-qcard__icon {
  flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--tint-ocean); color: var(--ocean-600);
}
.ll-qcard__icon .ll-icon { width: 22px; height: 22px; }

/* ---------- Chips ---------- */
.ll-chip {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--tint-aqua); color: var(--aqua-600);
  font-size: var(--text-sm); font-weight: var(--weight-bold);
}
.ll-chip--accent { background: var(--tint-ocean); color: var(--ocean-600); }
.ll-chip--sun { background: var(--tint-sun); color: var(--sun-800); }
.ll-chip--lavender { background: var(--tint-lavender); color: var(--color-new); }

/* ---------- Checklist ---------- */
.ll-checklist { list-style: none; margin: var(--space-1) 0 0; padding: 0; display: grid; gap: 8px; }
.ll-checklist li { position: relative; padding-left: 24px; color: var(--ink-600); font-size: var(--text-body); }
.ll-checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--aqua-600); font-weight: var(--weight-bold);
}

/* ---------- Quote cards ---------- */
.ll-quote {
  display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 0;
  padding: var(--space-2); border-radius: var(--radius-xl);
  background: var(--card); border: 1px solid var(--ink-100); box-shadow: var(--shadow-card);
}
.ll-quote blockquote { margin: 0; font-style: italic; color: var(--ink-600); font-size: var(--text-body); }
.ll-quote__avatar { width: 48px; height: 48px; border-radius: var(--radius-pill); object-fit: cover; flex: 0 0 auto; }
.ll-quote__avatar--sm { width: 40px; height: 40px; object-fit: contain; border-radius: 0; }
.ll-quote--center { max-width: 620px; margin-inline: auto; justify-content: center; text-align: left; }
.ll-quote--sun { background: var(--tint-sun); border-color: var(--sun-100); }
.ll-quote--inline { box-shadow: none; background: var(--bg-soft); }
.ll-quote--goal { background: var(--tint-lavender); border-color: var(--tint-lavender); }
.ll-quote--bare { background: none; border: 0; box-shadow: none; margin-top: var(--space-2); padding: 0; }

/* ---------- Hero ---------- */
.ll-hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.ll-hero__grid { display: grid; gap: var(--space-4); align-items: center; }
.ll-hero__title {
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: var(--leading-tight); margin: 0 0 var(--space-2);
}

/* Rotating word: enter y:20 blur(8px) → 0.5s ease-out;
   exit y:-20 blur(8px) → 0.3s ease-in. One colour per word. */
.ll-hero__rotator { position: relative; display: inline-grid; vertical-align: bottom; }
.ll-hero__word {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(20px); filter: blur(8px);
  font-weight: var(--weight-extrabold);
  transition: opacity .3s ease-in, transform .3s ease-in, filter .3s ease-in;
}
.ll-hero__word.is-active {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), filter .5s var(--ease-out);
}
.ll-hero__word.is-leaving { opacity: 0; transform: translateY(-20px); filter: blur(8px); }
.ll-hero__word:nth-child(4n+1) { color: var(--ocean-600); }
.ll-hero__word:nth-child(4n+2) { color: var(--aqua-600); }
.ll-hero__word:nth-child(4n+3) { color: var(--sun-600); }
.ll-hero__word:nth-child(4n+4) { color: var(--color-new); }

.ll-hero__subtitle { color: var(--ink-400); font-size: var(--text-body-lg); max-width: 38rem; margin: 0 0 var(--space-3); }
.ll-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

.ll-hero__media { position: relative; display: flex; flex-direction: column; align-items: center; }
.ll-hero__mascot { max-height: clamp(280px, 42vw, 440px); width: auto; object-fit: contain; }
.ll-quote--floating { position: static; margin-top: var(--space-2); }

/* Aurora background glow (original: 20s ease-in-out loop, blur 100px) */
.ll-aurora::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw;
  max-width: 640px; max-height: 640px; z-index: -1; opacity: 0.5; filter: blur(90px);
  background: var(--grad-deep); border-radius: 50%;
  animation: ll-aurora 20s var(--ease-in-out) infinite;
}
.ll-aurora::after {
  content: ""; position: absolute; left: -18%; bottom: -30%; width: 50vw; height: 50vw;
  max-width: 520px; max-height: 520px; z-index: -1; opacity: 0.35; filter: blur(100px);
  background: var(--grad-aqua); border-radius: 50%;
  animation: ll-aurora 26s var(--ease-in-out) infinite reverse;
}

/* ---------- Trust badges ---------- */
.ll-trust {
  list-style: none; margin: clamp(24px, 4vw, 48px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-3);
}
.ll-trust__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--card); border: 1px solid var(--ink-100); box-shadow: var(--shadow-card);
  font-weight: var(--weight-bold); font-size: var(--text-sm);
}
.ll-trust__dot { width: 10px; height: 10px; border-radius: 50%; }
.ll-trust__dot--aqua { background: var(--aqua-400); }
.ll-trust__dot--ocean { background: var(--ocean-400); }
.ll-trust__dot--sun { background: var(--sun-400); }

/* ==========================================================================
   Learning path — waterline + islands (ported from the original)
   Phase colours: 1 aqua → 2 ocean → 3 deep ocean → 4 lavender.
   ========================================================================== */
.ll-path-wrap { position: relative; }

/* Start island */
.ll-island {
  position: relative;
  display: flex; align-items: center; gap: var(--space-2);
  max-width: 560px; margin: 0 auto var(--space-4);
  padding: var(--space-3); border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--tint-ocean), var(--tint-aqua));
  border: 2px solid var(--ocean-100); box-shadow: var(--shadow-hover);
  overflow: visible;
}
.ll-island::after {
  /* water reflection under the card */
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -12px; height: 18px;
  background: linear-gradient(to bottom, rgba(20, 99, 214, .18), transparent);
  border-radius: 50%; filter: blur(5px); pointer-events: none;
}
.ll-island__badge {
  flex: 0 0 auto; width: 60px; height: 60px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-cta-ocean);
}
.ll-island__badge .ll-icon { width: 30px; height: 30px; }
.ll-island__title { font-family: var(--font-display); font-size: var(--text-h3); margin: 2px 0; }
.ll-island__subtitle { margin: 0; color: var(--ink-400); font-size: var(--text-sm); }
.ll-island__olym {
  position: absolute; top: -22px; right: -10px; width: 56px; height: 56px; object-fit: contain;
  animation: ll-float-sm 3s var(--ease-in-out) infinite;
}

/* Waterline (mobile: left rail / desktop: centered) — drawn on the wrap so it
   also runs behind the goal card, like the original. */
.ll-path { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.ll-path-wrap::before {
  content: ""; position: absolute; top: 0; bottom: 40px; left: 15px; width: 4px; border-radius: 4px;
  background: linear-gradient(to bottom,
    rgba(20, 99, 214, .6), rgba(20, 99, 214, .4) 60%, rgba(124, 92, 224, .35));
  transform: scaleY(0); transform-origin: top;
}
.ll-path-wrap.is-in::before { animation: ll-line-draw 1.5s ease-out both; }
html:not(.ll-js) .ll-path-wrap::before { transform: none; }

/* Bubbles on the waterline (scale 1→1.5→1, opacity .3→.6→.3, 2s, delay i*0.3s) */
.ll-path__bubbles { position: absolute; top: 0; bottom: 40px; left: 15px; width: 4px; pointer-events: none; }
.ll-path__bubble {
  position: absolute; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: rgba(20, 99, 214, .35);
  opacity: 0;
}
.ll-path-wrap.is-in .ll-path__bubble { animation: ll-bubble 2s var(--ease-in-out) infinite; }
.ll-path__bubble:nth-child(1) { top: 12%; animation-delay: 0s; }
.ll-path__bubble:nth-child(2) { top: 27%; animation-delay: .3s; }
.ll-path__bubble:nth-child(3) { top: 42%; animation-delay: .6s; }
.ll-path__bubble:nth-child(4) { top: 57%; animation-delay: .9s; }
.ll-path__bubble:nth-child(5) { top: 72%; animation-delay: 1.2s; }
.ll-path__bubble:nth-child(6) { top: 87%; animation-delay: 1.5s; }

/* Island cards along the line */
.ll-path__item { position: relative; margin-left: 44px; }
.ll-path__item::before {
  /* connection dot on the waterline */
  content: ""; position: absolute; top: 30px; left: -33px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--phase-solid, var(--ocean-600));
  border: 3px solid var(--bg-main); box-shadow: var(--shadow-card); z-index: 1;
}
.ll-path__item::after {
  /* short connector from line to card */
  content: ""; position: absolute; top: 35px; left: -24px; width: 24px; height: 2px;
  background: linear-gradient(to right, var(--phase-solid, var(--ocean-600)), transparent);
  opacity: .45;
}

.ll-phase {
  background: var(--card); border: 1px solid var(--ink-100); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); overflow: hidden; position: relative;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.ll-phase::before {
  /* phase-coloured top bar */
  content: ""; display: block; height: 8px; background: var(--phase-grad, var(--grad-cta));
}
.ll-phase:hover { box-shadow: var(--shadow-hover); }
.ll-phase[open], .ll-phase.is-open { box-shadow: var(--shadow-hover); border-color: var(--ocean-200); }

.ll-phase--1 { --phase-grad: var(--grad-aqua); --phase-solid: var(--aqua-500); }
.ll-phase--2 { --phase-grad: var(--grad-cta); --phase-solid: var(--ocean-400); }
.ll-phase--3 { --phase-grad: linear-gradient(135deg, var(--ocean-600), var(--ocean-900)); --phase-solid: var(--ocean-800); }
.ll-phase--4 { --phase-grad: linear-gradient(135deg, var(--color-new), var(--ocean-800)); --phase-solid: var(--color-new); }
.ll-path__item { --phase-solid: inherit; }
.ll-path__item:nth-child(1) { --phase-solid: var(--aqua-500); }
.ll-path__item:nth-child(2) { --phase-solid: var(--ocean-400); }
.ll-path__item:nth-child(3) { --phase-solid: var(--ocean-800); }
.ll-path__item:nth-child(4) { --phase-solid: var(--color-new); }

.ll-phase__summary {
  display: block; padding: var(--space-2) var(--space-3) var(--space-2);
  cursor: pointer; list-style: none;
}
.ll-phase__summary::-webkit-details-marker { display: none; }
.ll-phase__top { display: flex; align-items: flex-start; gap: var(--space-2); }
.ll-phase__icon {
  flex: 0 0 auto; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: var(--phase-grad, var(--grad-cta)); color: #fff;
  box-shadow: var(--shadow-card);
}
.ll-phase__icon .ll-icon { width: 24px; height: 24px; }
.ll-phase__head { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.ll-phase__title { font-family: var(--font-display); font-size: var(--text-h3); font-weight: var(--weight-semibold); }
.ll-phase__desc { margin: var(--space-1) 0 0; color: var(--ink-400); font-size: var(--text-sm); }
.ll-phase__safety {
  display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-1);
  padding: 7px 11px; border-radius: var(--radius-sm);
  background: var(--tint-ocean); color: var(--ocean-600); font-size: var(--text-xs); font-weight: var(--weight-bold);
}
.ll-phase__safety .ll-icon { width: 15px; height: 15px; }
.ll-phase__toggle {
  display: flex; align-items: center; gap: 8px; margin-top: var(--space-2); padding-top: var(--space-1);
  border-top: 1px solid var(--ink-50); color: var(--ocean-600);
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
}
.ll-phase__toggle .ll-icon { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.ll-phase[open] .ll-phase__toggle .ll-icon, .ll-phase.is-open .ll-phase__toggle .ll-icon { transform: rotate(180deg); }
.ll-phase__toggle-label--open, .ll-phase[open] .ll-phase__toggle-label--closed { display: none; }
.ll-phase[open] .ll-phase__toggle-label--open { display: inline; }

.ll-phase__body { overflow: hidden; transition: height var(--dur-slow) var(--ease-out); }
.ll-phase__body-inner {
  padding: var(--space-2) var(--space-3) var(--space-3); display: grid; gap: var(--space-2);
  border-top: 1px solid var(--ink-100);
}
.ll-phase__detail-title { font-family: var(--font-display); font-size: var(--text-body-lg); margin: 0; display: flex; align-items: center; gap: 8px; }
.ll-phase__detail-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--phase-solid, var(--aqua-400)); }

/* Goal card at the end of the line */
.ll-path-goal { position: relative; margin-top: var(--space-4); text-align: center; }
.ll-path-goal__dot {
  display: none; position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-new), var(--ocean-800));
  border: 4px solid var(--bg-main); box-shadow: var(--shadow-card);
  color: #fff; font-size: 12px; line-height: 20px; text-align: center;
}

/* ---------- Painpoints hand-off line ---------- */
.ll-handoff { text-align: center; margin-top: var(--space-3); }

/* ---------- Safety ---------- */
.ll-safety-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--tint-ocean); color: var(--ocean-600); margin-bottom: var(--space-1);
}
.ll-safety-card__icon .ll-icon { width: 24px; height: 24px; }

/* ---------- Purpose ---------- */
.ll-purpose { display: grid; gap: var(--space-4); align-items: start; }
.ll-prose {
  background: var(--card); border: 1px solid var(--ink-100); border-radius: var(--radius-xl);
  padding: var(--space-3); box-shadow: var(--shadow-card); display: grid; gap: var(--space-2);
}
.ll-prose p { margin: 0; color: var(--ink-600); line-height: var(--leading-loose); }
.ll-vision {
  margin: 0; padding: var(--space-1) 0 var(--space-1) var(--space-2);
  border-left: 4px solid var(--ocean-600); color: var(--ocean-600);
  font-family: var(--font-display); font-size: var(--text-h3); font-style: italic;
}
.ll-purpose__closing {
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-h2);
  color: var(--ocean-600); text-align: center; padding-top: var(--space-1);
}
.ll-purpose__media img { border-radius: var(--radius-2xl); box-shadow: var(--shadow-hover); }

/* ---------- App teaser ---------- */
.ll-teaser { display: grid; gap: var(--space-4); align-items: center; max-width: 1000px; margin-inline: auto; }
.ll-phone { display: grid; justify-items: center; gap: var(--space-2); }
.ll-phone__frame { position: relative; width: clamp(220px, 60vw, 280px); background: var(--ink-900); border-radius: 40px; padding: 8px; box-shadow: var(--shadow-phone); }
.ll-phone__frame::before {
  /* soft glow behind the phone */
  content: ""; position: absolute; inset: -18px; z-index: -1; border-radius: 52px;
  background: var(--tint-ocean); filter: blur(28px); opacity: .9;
}
.ll-phone__notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: var(--ink-900); border-radius: 0 0 16px 16px; z-index: 2; }
.ll-phone__screen { position: relative; border-radius: 32px; overflow: hidden; background: var(--bg-main); }
.ll-phone__track { list-style: none; margin: 0; padding: 0; display: flex; transition: transform var(--dur-slow) var(--ease-out); touch-action: pan-y; }
.ll-phone__slide { flex: 0 0 100%; }
.ll-phone__slide img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.ll-phone__dots { display: flex; gap: 8px; }
.ll-phone__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--ocean-100); cursor: pointer; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.ll-phone__dot.is-active { background: var(--ocean-600); transform: scale(1.25); }

.ll-teaser__content { display: grid; gap: var(--space-3); }
.ll-teaser__preview h4 { font-family: var(--font-display); font-size: var(--text-body-lg); margin: 0 0 2px; }
.ll-teaser__preview p { margin: 0; color: var(--ink-400); font-size: var(--text-sm); }
.ll-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.ll-feature-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: var(--weight-medium); }
.ll-feature-list__check {
  flex: 0 0 auto; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--tint-aqua); color: var(--aqua-600); font-size: var(--text-sm); font-weight: var(--weight-bold);
}
.ll-teaser__cta { display: grid; gap: var(--space-1); justify-items: start; }

/* ---------- Lead / CTA ---------- */
.ll-lead {
  position: relative; overflow: hidden;
  max-width: 460px; margin-inline: auto; text-align: center;
  background: var(--card); border: 1px solid var(--ocean-100); border-radius: var(--radius-2xl);
  padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-hover);
}
.ll-lead--cta { max-width: 620px; background: linear-gradient(150deg, var(--tint-ocean), var(--tint-aqua)); border-color: var(--ocean-100); }
.ll-lead--cta .ll-lead__body { margin-bottom: var(--space-3); }
.ll-lead__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--card); color: var(--ocean-600);
  font-size: var(--text-sm); font-weight: var(--weight-bold); box-shadow: var(--shadow-card);
}
.ll-lead__title { font-family: var(--font-display); font-size: var(--text-h2); margin: var(--space-2) 0 6px; }
.ll-lead__body { color: var(--ink-600); font-size: var(--text-body); margin: 0 0 var(--space-2); }

/* ---------- FAQ ---------- */
.ll-faq { display: grid; gap: var(--space-1); }
.ll-faq__item { background: var(--card); border: 1px solid var(--ink-100); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.ll-faq__q {
  position: relative; cursor: pointer; list-style: none;
  padding: var(--space-2) calc(var(--space-3) + 16px) var(--space-2) var(--space-2);
  font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-body-lg);
}
.ll-faq__q::-webkit-details-marker { display: none; }
.ll-faq__q::after {
  content: "+"; position: absolute; right: var(--space-2); top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--tint-ocean); color: var(--ocean-600);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.ll-faq__item[open] .ll-faq__q::after { content: "–"; transform: translateY(-50%) rotate(180deg); }
.ll-faq__body { overflow: hidden; transition: height var(--dur-slow) var(--ease-out); }
.ll-faq__a { margin: 0; padding: 0 var(--space-2) var(--space-2); color: var(--ink-600); line-height: var(--leading-loose); }

/* ---------- Footer ---------- */
.ll-footer { background: var(--ocean-900); color: #fff; padding: clamp(40px, 6vw, 64px) 0 var(--space-3); }
.ll-footer__grid { display: grid; gap: var(--space-4); }
.ll-footer__about { color: rgba(255, 255, 255, 0.78); max-width: 32rem; margin: var(--space-2) 0 0; font-size: var(--text-sm); line-height: var(--leading-loose); }
.ll-footer__links { display: flex; flex-direction: column; gap: var(--space-1); }
.ll-footer__links a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: var(--weight-medium); }
.ll-footer__links a:hover { color: #fff; }
.ll-footer__bottom { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ll-footer__bottom p { margin: 0; color: rgba(255, 255, 255, 0.6); font-size: var(--text-xs); }

/* ---------- Mobile nav (open state) ---------- */
.ll-nav.is-open {
  position: absolute; top: calc(var(--ll-header-h) + 4px); left: var(--space-2); right: var(--space-2);
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  padding: var(--space-2); background: var(--card); border: 1px solid var(--ink-100);
  border-radius: var(--radius-md); box-shadow: var(--shadow-hover);
}
.ll-nav.is-open .ll-nav__link { padding: 12px 10px; border-radius: var(--radius-sm); }
.ll-nav.is-open .ll-nav__link:hover { background: var(--tint-ocean); }
.ll-nav.is-open .ll-nav__link.is-current::after { display: none; }
/* login + CTA appear at the bottom of the sheet, separated by a divider */
.ll-nav.is-open .ll-nav__sheet-only { display: flex; }
.ll-nav.is-open .ll-nav__sheet-only.ll-nav__link { margin-top: var(--space-1); border-top: 1px solid var(--ink-100); border-radius: 0; padding-top: var(--space-2); }
.ll-nav.is-open .ll-nav__sheet-cta { margin-top: var(--space-1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 720px) {
  .ll-grid--2 { grid-template-columns: 1fr 1fr; }
  .ll-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .ll-teaser__previews { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .ll-nav { display: flex; }
  .ll-menu-btn { display: none; }
  .ll-header__login { display: inline-flex; }
  .ll-hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .ll-purpose { grid-template-columns: 1fr 1fr; }
  .ll-purpose__media { position: sticky; top: calc(var(--ll-header-h) + var(--space-3)); }
  .ll-teaser { grid-template-columns: auto 1fr; }

  /* Learning path: centered waterline, alternating islands */
  .ll-path { gap: var(--space-6); }
  .ll-path-wrap::before, .ll-path__bubbles { left: calc(50% - 2px); }
  .ll-path__item { width: calc(50% - 2.5rem); margin-left: 0; }
  .ll-path__item:nth-child(odd) { margin-right: auto; }
  .ll-path__item:nth-child(even) { margin-left: auto; }
  .ll-path__item::before { top: 32px; }
  .ll-path__item:nth-child(odd)::before  { left: auto; right: calc(-2.5rem - 7px); }
  .ll-path__item:nth-child(even)::before { left: calc(-2.5rem - 6px); right: auto; }
  .ll-path__item:nth-child(odd)::after  { left: auto; right: calc(-2.5rem + 6px); width: calc(2.5rem - 6px); top: 37px;
    background: linear-gradient(to left, var(--phase-solid, var(--ocean-600)), transparent); }
  .ll-path__item:nth-child(even)::after { left: calc(-2.5rem + 7px); right: auto; width: calc(2.5rem - 6px); top: 37px; }
  .ll-path-goal__dot { display: block; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes ll-aurora {
  0%, 100% { transform: translate(-6%, -6%) rotate(0deg); }
  33% { transform: translate(4%, 4%) rotate(2deg); }
  66% { transform: translate(-3%, 7%) rotate(-2deg); }
}
@keyframes ll-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ll-float-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.ll-float { animation: ll-float 6s var(--ease-in-out) infinite; }

@keyframes ll-line-draw {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes ll-bubble {
  0%, 100% { transform: scale(1); opacity: .3; }
  50%      { transform: scale(1.5); opacity: .6; }
}
@keyframes ll-pop {
  0%   { transform: scale(.5); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Reduced motion — kill everything, keep every end state.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ll *, .ll *::before, .ll *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto !important; }
  html.ll-js .ll .ll-reveal,
  html.ll-js .ll .ll-stagger > * { opacity: 1 !important; transform: none !important; }
  .ll-path-wrap::before { transform: none !important; }
  .ll-path__bubble { opacity: .3 !important; }
}
