/* ============================================================
   WonderNap — Landing Design System
   Tokens mirror WonderNap/DESIGN_SYSTEM.md v0.2 (soft dark)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg-base: #0e1119;
  --bg-elevated: #161a26;
  --bg-elevated-hi: #1f2433;
  --stroke: #262c3d;
  --stroke-soft: rgba(236, 234, 227, 0.08);

  /* Text */
  --text-primary: #eceae3;
  --text-secondary: #9ca3b4;
  --text-tertiary: #646b7e;
  --text-on-accent: #1a1206;

  /* Brand */
  --honey: #f2c879;
  --honey-hi: #ffdd93;
  --honey-dim: #d9a954;
  --periwinkle: #9dabea;
  --sage: #7fc9a0;
  --coral: #e8a07f;

  /* Gradients */
  --grad-honey: linear-gradient(135deg, var(--honey-hi) 0%, var(--honey) 55%, var(--honey-dim) 100%);
  --grad-night: linear-gradient(180deg, #131829 0%, var(--bg-base) 60%);

  /* Spacing scale (4/8 rhythm) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radii */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;

  /* Elevation */
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.36);
  --shadow-3: 0 28px 64px rgba(0, 0, 0, 0.48);
  --glow-honey: 0 0 60px rgba(242, 200, 121, 0.22);
  --glow-sleep: 0 0 60px rgba(157, 171, 234, 0.20);

  /* Motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-in: cubic-bezier(0.4, 0, 1, 1);
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 380ms;

  /* Layout */
  --container: 1160px;
  --header-h: 68px;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }

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

::selection { background: rgba(242, 200, 121, 0.28); color: var(--text-primary); }

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--honey);
  color: var(--text-on-accent);
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--t-base) var(--e-out);
}
.skip-link:focus { top: 16px; }

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

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.section { padding-block: var(--s-9); position: relative; }
.section--tight { padding-block: var(--s-8); }

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--stroke);
  background: rgba(242, 200, 121, 0.07);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--honey);
  margin-bottom: var(--s-4);
}
.eyebrow svg { width: 15px; height: 15px; }

.section-title {
  font-size: clamp(30px, 4.6vw, 46px);
  margin-bottom: var(--s-4);
  text-wrap: balance;
}
.section-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 62ch;
  text-wrap: pretty;
}
.section-head--center .section-sub { margin-inline: auto; }

.text-honey { color: var(--honey); }
.text-peri { color: var(--periwinkle); }
.text-sage { color: var(--sage); }

.grad-text {
  background: var(--grad-honey);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  transition: transform var(--t-fast) var(--e-out),
              box-shadow var(--t-base) var(--e-out),
              background-color var(--t-base) var(--e-out),
              border-color var(--t-base) var(--e-out),
              color var(--t-base) var(--e-out);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--primary {
  background: var(--grad-honey);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-2), var(--glow-honey);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-3), 0 0 76px rgba(242, 200, 121, 0.34); }
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: rgba(236, 234, 227, 0.04);
  border-color: var(--stroke);
  color: var(--text-primary);
}
.btn--ghost:hover { background: rgba(236, 234, 227, 0.09); border-color: var(--honey-dim); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0) scale(0.98); }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- 5. Header ---------- */
.scroll-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  height: 3px; z-index: 120;
  background: var(--grad-honey);
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

.header {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color var(--t-slow) var(--e-out),
              border-color var(--t-slow) var(--e-out),
              backdrop-filter var(--t-slow) var(--e-out);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(14, 17, 25, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--stroke);
}
.header .container { display: flex; align-items: center; gap: var(--s-5); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-1); }

.nav { display: flex; align-items: center; gap: var(--s-1); margin-inline-start: auto; }
.nav a {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; color: var(--text-secondary);
  transition: color var(--t-fast) var(--e-out), background-color var(--t-fast) var(--e-out);
}
.nav a:hover { color: var(--text-primary); background: rgba(236, 234, 227, 0.06); }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }

/* Primary CTA lives in the header on desktop; it re-appears inside the open mobile menu. */
.nav__cta { display: none; }

.lang-toggle {
  display: flex; gap: 2px; padding: 3px;
  background: rgba(236, 234, 227, 0.05);
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
}
.lang-toggle button {
  min-width: 44px; min-height: 34px;
  padding: 6px 12px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--text-secondary);
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out);
}
.lang-toggle button:hover { color: var(--text-primary); }
.lang-toggle button[aria-pressed="true"] { background: var(--honey); color: var(--text-on-accent); }

.menu-btn {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: rgba(236, 234, 227, 0.05);
  border: 1px solid var(--stroke); border-radius: var(--r-sm);
  color: var(--text-primary); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + var(--s-8)) var(--s-8);
  overflow: hidden;
  background: var(--grad-night);
}

.hero__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }

/* SVG moon — the disc is 76/100 of the viewBox, the rest is halo. */
.hero__moon {
  position: absolute;
  inset-block-start: 9%; inset-inline-end: 6%;
  width: clamp(126px, 14.5vw, 196px);
  height: auto;
  overflow: visible;
  opacity: 0.92;
  filter: drop-shadow(0 0 30px rgba(242, 200, 121, 0.26));
  will-change: transform;
}
.hero__moon-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathe 7s ease-in-out infinite;
}

.hero__glow {
  position: absolute; inset-block-start: -20%; inset-inline-start: 50%;
  width: 120vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(157, 171, 234, 0.14) 0%, transparent 62%);
}

.hero__clouds { position: absolute; inset-inline: 0; inset-block-end: 0; height: 46%; }
.cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(31, 36, 51, 0.9) 0%, rgba(22, 26, 38, 0) 70%);
  filter: blur(6px);
  will-change: transform;
}
.cloud--1 { width: 60vw; height: 220px; inset-inline-start: -12vw; inset-block-end: -60px; }
.cloud--2 { width: 48vw; height: 180px; inset-inline-end: -10vw; inset-block-end: 20px; opacity: 0.72; }
.cloud--3 { width: 36vw; height: 140px; inset-inline-start: 34vw; inset-block-end: 70px; opacity: 0.5; }

.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s-8);
  align-items: center;
}

.hero__title {
  font-size: clamp(38px, 6.4vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }

.hero__sub {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--text-secondary);
  max-width: 54ch;
  margin-bottom: var(--s-6);
  text-wrap: pretty;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  font-size: 14px; color: var(--text-tertiary);
}
.hero__trust li { display: flex; align-items: center; gap: 7px; list-style: none; }
.hero__trust svg { width: 16px; height: 16px; color: var(--sage); flex-shrink: 0; }

.scroll-cue {
  position: absolute; inset-block-end: var(--s-5); inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-tertiary); z-index: 2;
}
.scroll-cue__track {
  width: 26px; height: 42px;
  border: 2px solid var(--stroke); border-radius: var(--r-pill);
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-cue__dot {
  width: 4px; height: 8px; border-radius: 2px; background: var(--honey);
  animation: cue 1.9s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0.15; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.09); opacity: 1; }
}

/* ---------- 7. Phone mockup ---------- */
.phone {
  position: relative;
  width: min(320px, 100%);
  margin-inline: auto;
  aspect-ratio: 320 / 660;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(155deg, #333a4d 0%, #1b2030 40%, #0b0e16 100%);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(236, 234, 227, 0.07), var(--glow-sleep);
  will-change: transform;
}
.phone::before {
  content: ""; position: absolute; z-index: 3;
  inset-block-start: 20px; inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 86px; height: 26px; border-radius: var(--r-pill);
  background: #05070c;
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 36px;
  background: var(--bg-base);
  display: flex; flex-direction: column;
  padding: 52px 18px 18px;
}

.screen {
  position: absolute; inset: 0;
  padding: 52px 18px 18px;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; visibility: hidden;
  transform: scale(0.97);
  transition: opacity var(--t-slow) var(--e-out),
              transform var(--t-slow) var(--e-out),
              visibility var(--t-slow);
}
.screen.is-active { opacity: 1; visibility: visible; transform: scale(1); }

.screen__top { display: flex; align-items: center; justify-content: space-between; }
.screen__baby { display: flex; align-items: center; gap: 9px; }
.screen__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-elevated-hi); overflow: hidden;
  border: 1px solid var(--stroke);
}
.screen__name { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.screen__meta { font-size: 10px; color: var(--text-tertiary); }
.screen__pill {
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700;
  background: rgba(157, 171, 234, 0.16); color: var(--periwinkle);
}

/* Wake-window ring */
.ring-wrap { position: relative; display: grid; place-items: center; padding-block: 6px; }
.ring { width: 100%; max-width: 210px; aspect-ratio: 1; transform: rotate(0deg); }
.ring__track { fill: none; stroke: var(--bg-elevated-hi); stroke-width: 12; stroke-linecap: round; }
.ring__fill {
  fill: none; stroke: url(#ringGrad); stroke-width: 12; stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(242, 200, 121, 0.4));
  transition: stroke-dashoffset 900ms var(--e-out);
}
.ring__center {
  position: absolute; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.ring__label { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); }
.ring__time {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: var(--honey);
}
.ring__hint { font-size: 10px; color: var(--text-secondary); }

/* Duty chips */
.duty-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.duty-card {
  padding: 10px; border-radius: var(--r-md);
  background: var(--bg-elevated); border: 1px solid var(--stroke);
  display: flex; align-items: center; gap: 8px;
  transition: border-color var(--t-base) var(--e-out), background-color var(--t-base) var(--e-out);
}
.duty-card img { width: 28px; height: 28px; border-radius: 50%; }
.duty-card__t { font-size: 11px; font-weight: 700; }
.duty-card__s { font-size: 9px; color: var(--text-tertiary); }
.duty-card.is-onduty { border-color: rgba(242, 200, 121, 0.5); background: rgba(242, 200, 121, 0.08); }
.duty-card.is-onduty .duty-card__s { color: var(--honey); }
.duty-card.is-resting .duty-card__s { color: var(--periwinkle); }

.screen__cta {
  margin-top: auto;
  min-height: 46px; border-radius: var(--r-pill);
  background: var(--grad-honey); color: var(--text-on-accent);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0.02em;
  box-shadow: var(--glow-honey);
}

/* Timeline rows */
.tl { display: flex; flex-direction: column; gap: 8px; }
.tl__row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: var(--r-md);
  background: var(--bg-elevated); border: 1px solid var(--stroke);
}
.tl__ico {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(157, 171, 234, 0.14); color: var(--periwinkle);
}
.tl__ico svg { width: 14px; height: 14px; }
.tl__ico--sage { background: rgba(127, 201, 160, 0.14); color: var(--sage); }
.tl__ico--honey { background: rgba(242, 200, 121, 0.14); color: var(--honey); }
.tl__t { font-size: 11px; font-weight: 700; }
.tl__s { font-size: 9px; color: var(--text-tertiary); }
.tl__time { margin-inline-start: auto; font-size: 10px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* Mini bar chart */
.bars { display: flex; align-items: flex-end; gap: 7px; height: 130px; padding: 12px;
        background: var(--bg-elevated); border: 1px solid var(--stroke); border-radius: var(--r-md); }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars__bar {
  width: 100%; border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, var(--periwinkle) 0%, rgba(157, 171, 234, 0.35) 100%);
  transform-origin: 50% 100%;
}
.bars__bar--peak { background: var(--grad-honey); }
.bars__lbl { font-size: 8px; color: var(--text-tertiary); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-cell {
  padding: 9px 11px; border-radius: var(--r-md);
  background: var(--bg-elevated); border: 1px solid var(--stroke);
}
.stat-cell__v { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-cell__l { font-size: 9px; color: var(--text-tertiary); }
.stat-cell__d { font-size: 9px; font-weight: 700; color: var(--sage); }

/* ---------- 8. Logo/trust marquee ---------- */
.strip {
  border-block: 1px solid var(--stroke);
  background: var(--bg-elevated);
  padding-block: var(--s-4);
  overflow: hidden;
}
.strip__track {
  display: flex; gap: var(--s-7); width: max-content;
  animation: marquee 34s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  white-space: nowrap;
}
.strip__item svg { width: 18px; height: 18px; color: var(--honey-dim); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 9. Story (sticky scroll) ---------- */
.story { position: relative; padding-block: var(--s-8) var(--s-9); }
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-8);
  align-items: start;
}
.story__stage {
  position: sticky;
  inset-block-start: calc(var(--header-h) + var(--s-6));
  display: grid; place-items: center;
}
.story__panels { display: flex; flex-direction: column; gap: 0; }

.panel {
  min-height: 76vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: var(--s-6);
  opacity: 0.32;
  transition: opacity var(--t-slow) var(--e-out);
}
.panel.is-active { opacity: 1; }

.panel__num {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: var(--bg-elevated);
  font-size: 15px; font-weight: 800; color: var(--honey);
  transition: background-color var(--t-slow) var(--e-out),
              border-color var(--t-slow) var(--e-out),
              color var(--t-slow) var(--e-out);
}
.panel.is-active .panel__num {
  background: var(--grad-honey); border-color: transparent; color: var(--text-on-accent);
  box-shadow: var(--glow-honey);
}
.panel__title { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: var(--s-3); }
.panel__body { color: var(--text-secondary); max-width: 52ch; margin-bottom: var(--s-4); }
.panel__list { display: flex; flex-direction: column; gap: 10px; }
.panel__list li { display: flex; align-items: flex-start; gap: 10px; list-style: none; font-size: 15px; color: var(--text-secondary); }
.panel__list svg { width: 18px; height: 18px; color: var(--honey); flex-shrink: 0; margin-top: 3px; }

/* ---------- 10. Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: var(--s-4);
}
.card {
  position: relative;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  overflow: hidden;
  transition: transform var(--t-base) var(--e-out),
              border-color var(--t-base) var(--e-out),
              box-shadow var(--t-base) var(--e-out);
}
.card::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 200, 121, 0.5), transparent);
  opacity: 0; transition: opacity var(--t-base) var(--e-out);
}
.card:hover { transform: translateY(-4px); border-color: rgba(242, 200, 121, 0.28); box-shadow: var(--shadow-2); }
.card:hover::after { opacity: 1; }

.card__ico {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(242, 200, 121, 0.1);
  color: var(--honey);
  margin-bottom: var(--s-4);
}
.card__ico svg { width: 24px; height: 24px; }
.card__ico--peri { background: rgba(157, 171, 234, 0.12); color: var(--periwinkle); }
.card__ico--sage { background: rgba(127, 201, 160, 0.12); color: var(--sage); }
.card__ico--coral { background: rgba(232, 160, 127, 0.12); color: var(--coral); }

.card__title { font-size: 19px; margin-bottom: var(--s-2); }
.card__body { font-size: 15px; color: var(--text-secondary); }

.badge {
  display: inline-block; margin-inline-start: 8px;
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  vertical-align: middle;
}
.badge--premium { background: rgba(242, 200, 121, 0.16); color: var(--honey); }
.badge--pro { background: rgba(157, 171, 234, 0.16); color: var(--periwinkle); }

/* ---------- 11. Duty handoff showcase ---------- */
.handoff {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
  padding: clamp(24px, 4vw, 52px);
  overflow: hidden;
}
.handoff__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-7); align-items: center;
}
.handoff__stage {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: var(--s-3); align-items: center;
}
.parent {
  text-align: center;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  transition: border-color var(--t-slow) var(--e-out),
              background-color var(--t-slow) var(--e-out),
              transform var(--t-slow) var(--e-out);
}
.parent img { width: 74px; height: 74px; margin-inline: auto; border-radius: 50%; }
.parent__name { font-size: 15px; font-weight: 700; margin-top: 10px; }
.parent__state { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.parent.is-onduty {
  border-color: rgba(242, 200, 121, 0.5);
  background: rgba(242, 200, 121, 0.07);
  transform: translateY(-4px);
  box-shadow: var(--glow-honey);
}
.parent.is-onduty .parent__state { color: var(--honey); font-weight: 700; }
.parent.is-resting { opacity: 0.62; }
.parent.is-resting .parent__state { color: var(--periwinkle); }

.handoff__beam {
  position: relative; width: 56px; height: 2px;
  background: var(--stroke); border-radius: 2px;
}
.handoff__pulse {
  position: absolute; inset-block-start: -4px; inset-inline-start: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 14px var(--honey);
  animation: beam 2.6s var(--e-out) infinite;
}
@keyframes beam {
  0%, 12% { inset-inline-start: 0; opacity: 0; transform: scale(0.6); }
  22% { opacity: 1; transform: scale(1); }
  78% { inset-inline-start: calc(100% - 10px); opacity: 1; transform: scale(1); }
  92%, 100% { inset-inline-start: calc(100% - 10px); opacity: 0; transform: scale(0.6); }
}

.notif {
  margin-top: var(--s-5);
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: var(--bg-elevated-hi);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
}
.notif__ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--grad-honey); color: var(--text-on-accent);
}
.notif__ico svg { width: 18px; height: 18px; }
.notif__t { font-size: 14px; font-weight: 700; }
.notif__s { font-size: 12px; color: var(--text-secondary); }

/* ---------- 12. Leaps timeline ---------- */
.leaps { position: relative; }
.leaps__track {
  position: relative;
  display: flex; gap: var(--s-4);
  overflow-x: auto;
  padding-block: var(--s-5) var(--s-4);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--stroke) transparent;
}
.leaps__track::-webkit-scrollbar { height: 6px; }
.leaps__track::-webkit-scrollbar-thumb { background: var(--stroke); border-radius: 3px; }
.leap {
  flex: 0 0 210px;
  scroll-snap-align: start;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  position: relative;
  transition: transform var(--t-base) var(--e-out), border-color var(--t-base) var(--e-out);
}
.leap:hover { transform: translateY(-4px); border-color: rgba(157, 171, 234, 0.4); }
.leap__wk {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--periwinkle); margin-bottom: 8px;
}
.leap__t { font-size: 16px; margin-bottom: 6px; }
.leap__s { font-size: 13px; color: var(--text-secondary); }
.leap__dot {
  position: absolute; inset-block-start: -5px; inset-inline-start: var(--s-4);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--periwinkle); box-shadow: 0 0 12px var(--periwinkle);
}

/* ---------- 13. Pricing ---------- */
/* Billing period selector */
.billing-wrap { text-align: center; margin-bottom: var(--s-6); }
.billing-toggle {
  display: inline-flex; gap: 4px; padding: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
}
.billing-toggle button {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 10px 22px;
  border: 0; border-radius: var(--r-pill);
  background: transparent;
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--text-secondary); cursor: pointer;
  transition: background-color var(--t-base) var(--e-out),
              color var(--t-base) var(--e-out);
}
.billing-toggle button:hover { color: var(--text-primary); }
.billing-toggle button.is-selected {
  background: var(--grad-honey);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-1);
}
.billing-toggle__save {
  padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(127, 201, 160, 0.18);
  color: var(--sage);
  font-size: 11px; font-weight: 800; letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background-color var(--t-base) var(--e-out), color var(--t-base) var(--e-out);
}
.billing-toggle button.is-selected .billing-toggle__save {
  background: rgba(26, 18, 6, 0.17);
  color: var(--text-on-accent);
}

.plan__save {
  align-self: center;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(127, 201, 160, 0.16);
  color: var(--sage);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.is-invisible { visibility: hidden; }

.plan__note--tight { margin-bottom: 6px; }
.plan__compare {
  font-size: 13px; font-weight: 600; line-height: 1.45;
  color: var(--sage);
  margin-bottom: var(--s-5);
  min-height: 38px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s-6) var(--s-5) var(--s-5);
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  transition: transform var(--t-base) var(--e-out),
              border-color var(--t-base) var(--e-out),
              box-shadow var(--t-base) var(--e-out);
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.plan--featured {
  border-color: rgba(242, 200, 121, 0.55);
  background: linear-gradient(170deg, rgba(242, 200, 121, 0.09) 0%, var(--bg-elevated) 46%);
  box-shadow: var(--shadow-2), var(--glow-honey);
}
.plan--featured:hover { box-shadow: var(--shadow-3), 0 0 76px rgba(242, 200, 121, 0.26); }

.plan__flag {
  position: absolute; inset-block-start: -13px; inset-inline-start: 50%;
  transform: translateX(-50%);
  padding: 5px 16px; border-radius: var(--r-pill);
  background: var(--grad-honey); color: var(--text-on-accent);
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
}
.plan__name { font-size: 20px; margin-bottom: 4px; }
.plan__tag { font-size: 13px; color: var(--text-tertiary); margin-bottom: var(--s-4); min-height: 20px; }
.plan__price {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.plan__amt { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__per { font-size: 14px; color: var(--text-secondary); }
.plan__note { font-size: 13px; color: var(--honey-dim); font-weight: 600; margin-bottom: var(--s-5); min-height: 20px; }
.plan__feats { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--s-5); }
.plan__feats li { display: flex; align-items: flex-start; gap: 10px; list-style: none; font-size: 15px; color: var(--text-secondary); }
.plan__feats svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.plan__feats .yes { color: var(--sage); }
.plan__feats .no { color: var(--text-tertiary); }
.plan__feats .off { color: var(--text-tertiary); text-decoration: line-through; }
.plan__cta { margin-top: auto; }

.plan-legal {
  margin-top: var(--s-5);
  font-size: 13px; color: var(--text-tertiary);
  text-align: center; max-width: 66ch; margin-inline: auto;
}
.plan-legal a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.plan-legal a:hover { color: var(--honey); }

/* Comparison table */
.table-wrap {
  margin-top: var(--s-7);
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
}
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--stroke); }
table.cmp thead th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); background: var(--bg-elevated-hi); }
table.cmp thead th.is-featured { color: var(--honey); }
table.cmp th[scope="row"] { text-align: start; font-weight: 600; color: var(--text-primary); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody tr:hover { background: rgba(236, 234, 227, 0.03); }
table.cmp .yes { color: var(--sage); }
table.cmp .no { color: var(--text-tertiary); }
table.cmp .val { color: var(--honey); font-weight: 700; }
table.cmp svg { width: 19px; height: 19px; margin-inline: auto; }
.cmp-legend { padding: 12px 16px; font-size: 13px; color: var(--text-tertiary); }

/* ---------- 14. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: var(--s-3); max-width: 800px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color var(--t-base) var(--e-out);
}
.faq__item.is-open { border-color: rgba(242, 200, 121, 0.34); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 60px;
  padding: 16px 20px;
  background: transparent; border: 0;
  font-family: inherit; font-size: 16px; font-weight: 700; text-align: start;
  color: var(--text-primary); cursor: pointer;
  transition: color var(--t-fast) var(--e-out);
}
.faq__q:hover { color: var(--honey); }
.faq__q svg {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--honey);
  transition: transform var(--t-base) var(--e-out);
}
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--e-out);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 20px 18px; color: var(--text-secondary); font-size: 15px; }

/* ---------- 15. Final CTA ---------- */
.finale {
  position: relative;
  text-align: center;
  padding-block: var(--s-10);
  overflow: hidden;
}
.finale::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 50%;
  width: 120vw; height: 100%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 40%, rgba(242, 200, 121, 0.11) 0%, transparent 60%);
  pointer-events: none;
}
.finale .container { position: relative; }
.finale__icon {
  width: 84px; height: 84px; margin-inline: auto; margin-bottom: var(--s-5);
  border-radius: 22px;
  box-shadow: var(--shadow-3), var(--glow-honey);
}
.finale__title { font-size: clamp(32px, 5.4vw, 54px); margin-bottom: var(--s-4); text-wrap: balance; }
.finale__sub { font-size: 18px; color: var(--text-secondary); max-width: 52ch; margin: 0 auto var(--s-6); }
.finale__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* ---------- 16. Footer ---------- */
.footer {
  border-top: 1px solid var(--stroke);
  background: var(--bg-elevated);
  padding-block: var(--s-7) var(--s-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: var(--s-3); }
.footer__brand img { width: 34px; height: 34px; border-radius: 10px; }
.footer__desc { font-size: 14px; color: var(--text-secondary); max-width: 34ch; margin-bottom: var(--s-4); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(236, 234, 227, 0.05);
  border: 1px solid var(--stroke);
  color: var(--text-secondary);
  transition: color var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-out);
}
.footer__social a:hover { color: var(--honey); border-color: var(--honey-dim); transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }

.footer__col h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: var(--s-3); }
.footer__col li { list-style: none; margin-bottom: 10px; }
.footer__col a {
  font-size: 15px; color: var(--text-secondary);
  transition: color var(--t-fast) var(--e-out);
  display: inline-block; padding-block: 3px;
}
.footer__col a:hover { color: var(--honey); }

.footer__bottom {
  border-top: 1px solid var(--stroke);
  padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-tertiary);
}
.footer__disclaimer {
  margin-top: var(--s-4);
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(232, 160, 127, 0.07);
  border: 1px solid rgba(232, 160, 127, 0.2);
  font-size: 13px; color: var(--text-secondary);
  display: flex; gap: 10px; align-items: flex-start;
}
.footer__disclaimer svg { width: 18px; height: 18px; color: var(--coral); flex-shrink: 0; margin-top: 2px; }

/* ---------- 17. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--e-out), transform 600ms var(--e-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0; transform: scale(0.94);
  transition: opacity 620ms var(--e-out), transform 620ms var(--e-spring);
  transition-delay: var(--d, 0ms);
}
.reveal-scale.is-visible { opacity: 1; transform: none; }

/* ---------- 18. Legal pages ---------- */
.legal { padding-block: calc(var(--header-h) + var(--s-8)) var(--s-9); }
.legal__inner { max-width: 780px; margin-inline: auto; }
.legal__title { font-size: clamp(32px, 5vw, 46px); margin-bottom: var(--s-3); }
.legal__meta { font-size: 14px; color: var(--text-tertiary); margin-bottom: var(--s-6); }
.legal__toc {
  padding: var(--s-5);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  margin-bottom: var(--s-7);
}
.legal__toc h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: var(--s-3); }
.legal__toc ol { padding-inline-start: 20px; color: var(--text-secondary); }
.legal__toc li { margin-bottom: 8px; font-size: 15px; }
.legal__toc a { transition: color var(--t-fast) var(--e-out); }
.legal__toc a:hover { color: var(--honey); }

.legal__body h2 {
  font-size: 24px;
  margin-top: var(--s-8); margin-bottom: var(--s-4);
  padding-top: var(--s-2);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal__body h3 { font-size: 18px; margin-top: var(--s-5); margin-bottom: var(--s-3); color: var(--honey); }
.legal__body p { margin-bottom: var(--s-4); color: var(--text-secondary); }
.legal__body ul { padding-inline-start: 22px; margin-bottom: var(--s-4); }
.legal__body li { margin-bottom: 10px; color: var(--text-secondary); list-style: disc; }
.legal__body li::marker { color: var(--honey-dim); }
.legal__body strong { color: var(--text-primary); font-weight: 700; }
.legal__body a { color: var(--honey); text-decoration: underline; text-underline-offset: 3px; }

.callout {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-inline-start: 3px solid var(--honey);
  margin-bottom: var(--s-5);
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-inline-start-color: var(--coral); background: rgba(232, 160, 127, 0.06); }

.legal__body table {
  width: 100%; border-collapse: collapse; margin-bottom: var(--s-5);
  font-size: 15px; border: 1px solid var(--stroke); border-radius: var(--r-md);
  overflow: hidden;
}
.legal__body th, .legal__body td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--stroke); }
.legal__body thead th { background: var(--bg-elevated-hi); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }
.legal__body td { color: var(--text-secondary); }

[data-lang-block] { display: none; }
[data-lang-block].is-shown { display: block; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  /* Keep the moon clear of the centred eyebrow/headline once the hero stacks. */
  .hero__moon { inset-block-start: 5%; inset-inline-end: -4%; opacity: 0.62; }
  .story__grid { grid-template-columns: 1fr; }
  .story__stage { position: static; margin-bottom: var(--s-6); }
  .panel { min-height: auto; opacity: 1; padding-block: var(--s-5); }
  .handoff__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

@media (max-width: 768px) {
  :root { --s-9: 72px; --s-10: 88px; }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .header .container { gap: var(--s-3); }
  .header-actions { margin-inline-start: auto; }
  .header-actions .btn { display: none; }

  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; inset-block-start: var(--header-h); inset-inline: 0;
    padding: var(--s-4) var(--s-5) var(--s-6);
    background: rgba(14, 17, 25, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stroke);
    gap: var(--s-1);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open a { padding: 15px 14px; font-size: 17px; min-height: 48px; display: flex; align-items: center; }
  .nav.is-open .nav__cta {
    display: flex; justify-content: center;
    margin-top: var(--s-3); padding: 14px 26px;
    color: var(--text-on-accent);
  }

  .scroll-cue { display: none; }
  .story__stage { display: none; }
  .hero__moon { width: clamp(105px, 29vw, 138px); inset-block-start: 1%; inset-inline-end: -9%; opacity: 0.42; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
  .handoff__stage { grid-template-columns: 1fr; gap: var(--s-4); }
  .handoff__beam { width: 2px; height: 44px; margin-inline: auto; }
  .handoff__pulse { animation: beam-v 2.6s var(--e-out) infinite; inset-inline-start: -4px; }
  @keyframes beam-v {
    0%, 12% { inset-block-start: 0; opacity: 0; }
    22% { opacity: 1; }
    78% { inset-block-start: calc(100% - 10px); opacity: 1; }
    92%, 100% { inset-block-start: calc(100% - 10px); opacity: 0; }
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { padding-inline: var(--s-4); }
  .plan { padding: var(--s-5) var(--s-4) var(--s-4); }
  .btn { width: 100%; }
  .hero__cta { flex-direction: column; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-scale { opacity: 1 !important; transform: none !important; }
  .panel { opacity: 1 !important; }
  .strip__track { animation: none; }
  .hero__moon::after, .scroll-cue__dot, .handoff__pulse { animation: none; }
  .hero__stars { display: none; }
}

/* ---------- 21. Print ---------- */
@media print {
  .header, .footer__social, .scroll-progress, .hero__sky, .scroll-cue { display: none; }
  body { background: #fff; color: #000; }
  .legal__body p, .legal__body li { color: #222; }
}
