/* Nubi — trynubi.com
   One page = one night: deep sky at the top, dawn in the middle, a soft morning at the bottom.
   Sticker look: lilac fills, thick indigo outlines, a white die-cut ring, chunky offset shadows. */

:root {
  /* Nubi palette (from the mascot) */
  --lilac: #ece8fa;
  --shade: #b9ace6;
  --cap: #3f3a96;
  --ink: #2e2a78;
  --moon: #f8c75c;
  --moon-deep: #e9a92e;
  --blush: #f6a8b6;

  /* Sky */
  --night-0: #0e0c2e;
  --night-1: #15123f;
  --night-2: #1f1b5a;
  --night-3: #2c2672;
  --dusk: #6f62b8;
  --dawn-1: #b7a3e0;
  --dawn-2: #f3bfcb;
  --dawn-3: #ffe2cf;
  --cream: #fff7ee;
  --paper: #fffdf9;

  /* Text */
  --on-night: #f4f1ff;
  --on-night-dim: #c9c2f0;
  --on-day: #221e5c;
  --on-day-dim: #4f4a86;

  --ring: 0 0 0 5px rgba(255, 255, 255, 0.92);
  --radius: 28px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --max: 1160px;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Be Vietnam Pro", "Avenir Next", "Segoe UI", sans-serif;
  --font-hand: "Pangolin", "Chalkboard SE", "Comic Sans MS", cursive;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-night);
  background: var(--night-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

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

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--moon); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 700;
  border: 3px solid var(--ink); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 9.4vw, 4.75rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 6.4vw, 3.4rem); line-height: 1.05; }
h3 { font-size: clamp(1.35rem, 3.6vw, 1.6rem); line-height: 1.15; letter-spacing: -0.01em; }
:lang(vi) h1, :lang(vi) h2 { line-height: 1.16; }
:lang(vi) h3 { line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }

em.moon {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--moon);
  position: relative;
  white-space: nowrap;
}
em.moon::after {
  /* a little hand-drawn squiggle under the word */
  content: "";
  position: absolute; left: 2%; right: 2%; bottom: -0.12em; height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 14 2, 24 2, 34 7 S 56 12, 68 6 S 92 1, 104 6 S 116 9, 118 6' fill='none' stroke='%23f8c75c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0.85;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  line-height: 1.2;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(236, 232, 250, 0.1);
  border: 1.5px solid rgba(236, 232, 250, 0.28);
  color: var(--on-night);
}
.eyebrow .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--moon);
  box-shadow: 0 0 0 4px rgba(248, 199, 92, 0.22);
  flex: none;
}

.kicker {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--moon);
  margin-bottom: 10px;
  display: block;
}
.day .kicker { color: var(--cap); }

.lede { font-size: clamp(1.08rem, 2.6vw, 1.25rem); color: var(--on-night-dim); max-width: 34em; }
.day .lede { color: var(--on-day-dim); }

/* ---------- Sky backgrounds ---------- */

.sky { position: relative; isolation: isolate; }

.stars::before,
.stars::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
}
.stars::before {
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 120px 80px, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 190px 150px, #fff7d6 50%, transparent 52%),
    radial-gradient(1px 1px at 60px 190px, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 250px 40px, #e3ddff 50%, transparent 52%),
    radial-gradient(1px 1px at 300px 230px, #fff 50%, transparent 52%);
  background-size: 320px 260px;
  opacity: 0.75;
}
.stars::after {
  background-image:
    radial-gradient(2px 2px at 80px 60px, #fff 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 330px 210px, #fff3c4 50%, transparent 55%),
    radial-gradient(1.8px 1.8px at 470px 90px, #fff 50%, transparent 55%);
  background-size: 540px 380px;
  animation: twinkle 5.5s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.25; }
  to { opacity: 0.95; }
}

.sparkle {
  position: absolute;
  width: 18px; height: 18px;
  color: var(--moon);
  animation: sparkle 3.6s ease-in-out infinite;
  pointer-events: none;
}
.sparkle svg { width: 100%; height: 100%; }
@keyframes sparkle {
  0%, 100% { transform: scale(0.7) rotate(0deg); opacity: 0.45; }
  50% { transform: scale(1.1) rotate(20deg); opacity: 1; }
}

/* cloud edge between sections: a row of soft bumps in the colour of the next section */
.cloud-edge {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 46px;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, var(--edge) 34px, transparent 35px) 0 18px / 72px 46px repeat-x,
    radial-gradient(circle at 50% 100%, var(--edge) 26px, transparent 27px) 36px 22px / 72px 46px repeat-x;
}
.cloud-edge::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--edge);
}

/* ---------- Header ---------- */

.site-header {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-right: auto;
}
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

.nav-links { display: none; gap: 22px; font-weight: 500; font-size: 0.98rem; }
.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

.lang-switch {
  display: inline-flex;
  border: 1.5px solid rgba(236, 232, 250, 0.35);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch a, .lang-switch span {
  padding: 5px 10px; border-radius: 999px; text-decoration: none; line-height: 1.2;
}
.lang-switch [aria-current] { background: var(--lilac); color: var(--ink); }
.lang-switch a:hover { background: rgba(236, 232, 250, 0.16); }

.btn {
  --btn-bg: var(--moon);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { background: #ffd470; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled] { cursor: progress; opacity: 0.85; }
.btn-sm { min-height: 40px; padding: 7px 16px; font-size: 0.92rem; box-shadow: 0 3px 0 var(--ink); border-width: 2.5px; }
.site-header .btn-sm { display: none; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(124, 108, 214, 0.32), transparent 70%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 55%, var(--night-2) 100%);
  padding: 96px 0 92px;
  --edge: var(--night-2);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 8px;
  align-items: center;
}
.hero-copy { display: grid; gap: 20px; justify-items: start; position: relative; z-index: 2; }
.hero-copy h1 { margin-top: 4px; }
.hero-note {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 0.92rem; color: var(--on-night-dim);
  list-style: none; padding: 0; margin: 0;
}
.hero-note li { display: inline-flex; align-items: center; gap: 6px; }
.hero-note li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--shade);
}

/* The mascot "window": a moonlit circle Nubi floats in */
.stage {
  position: relative;
  width: min(86vw, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
  order: -1;
}
.stage::before {
  content: "";
  position: absolute; inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 46%, rgba(236, 232, 250, 0.26), rgba(185, 172, 230, 0.12) 46%, rgba(63, 58, 150, 0.0) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(236, 232, 250, 0.16);
}
.mascot {
  position: absolute; inset: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 0; background: none; padding: 0; color: inherit;
}
.mascot .lottie, .mascot .still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.mascot .still {
  object-fit: contain;
  padding: 3%;
  transition: opacity 0.3s ease;
}
.mascot.is-live .still { opacity: 0; }
.stage .mascot { inset: 9%; }
.stage .shadow {
  position: absolute; left: 30%; right: 30%; bottom: 7%;
  height: 5%;
  border-radius: 50%;
  background: rgba(8, 6, 30, 0.55);
  filter: blur(6px);
}

.bubble {
  position: absolute;
  z-index: 3;
  max-width: 13.5em;
  padding: 10px 16px;
  font-family: var(--font-hand);
  font-size: clamp(1rem, 3.6vw, 1.18rem);
  line-height: 1.25;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.bubble::after {
  content: "";
  position: absolute; bottom: -13px; left: 30px;
  width: 20px; height: 20px;
  background: #fff;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg) skew(8deg, 8deg);
  border-bottom-right-radius: 4px;
}
.bubble.is-swapping { opacity: 0; transform: translateY(4px) scale(0.96); }
.stage .bubble { top: 2%; left: -2%; transform-origin: 20% 100%; }

/* ---------- Waitlist form ---------- */

.waitlist-form { width: 100%; max-width: 480px; }
.waitlist-form .row {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.waitlist-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--on-day);
  font-size: 1rem;
  box-shadow: inset 0 3px 0 rgba(46, 42, 120, 0.1);
}
.waitlist-form input[type="email"]::placeholder { color: #807bb0; }
.waitlist-form input[type="email"]:focus-visible { outline-offset: 2px; }
.waitlist-form .btn { flex: 1 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  min-height: 1.6em;
  margin-top: 12px;
  font-family: var(--font-hand);
  font-size: 1.08rem;
  line-height: 1.35;
}
.form-status:empty { display: none; }
.form-status[data-tone="ok"] { color: #b8f0c8; }
.form-status[data-tone="err"] { color: #ffc3cd; }
.form-fine {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--on-night-dim);
}
.form-fine a { text-underline-offset: 3px; }
.waitlist-form.is-done .row { display: none; }
.waitlist-form.is-done .form-status {
  display: flex; gap: 10px; align-items: center;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(236, 232, 250, 0.1);
  border: 2px dashed rgba(236, 232, 250, 0.4);
  margin-top: 0;
}

/* ---------- Night: how it works ---------- */

.night {
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night-3) 100%);
  padding: 56px 0 80px;
  --edge: var(--night-3);
}
.night .wrap { display: grid; gap: 44px; }
.section-head { display: grid; gap: 14px; max-width: 40rem; }

.night-grid { display: grid; gap: 40px; align-items: start; }

.window {
  position: relative;
  border-radius: 200px 200px 36px 36px;
  border: 3px solid var(--ink);
  box-shadow: var(--ring), 0 24px 60px rgba(5, 3, 30, 0.55);
  background:
    radial-gradient(circle at 74% 22%, rgba(248, 199, 92, 0.28) 0 8%, transparent 26%),
    linear-gradient(180deg, #120f3b 0%, #241f66 70%, #3a3390 100%);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.window::before {
  /* the moon */
  content: "";
  position: absolute; top: 12%; right: 17%;
  width: 15%; aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset -10px 6px 0 0 var(--moon);
  transform: rotate(-20deg);
}
.window .stars-in { position: absolute; inset: 0; }
.window .mascot { inset: auto 0 2% 0; height: 82%; cursor: default; }
.window .mascot .still { padding: 8%; }
.window .blanket {
  position: absolute; left: -6%; right: -6%; bottom: -8%;
  height: 26%;
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(46, 42, 120, 0.0) 0 22px, rgba(46, 42, 120, 0.12) 22px 44px),
    var(--shade);
  border-top: 3px solid var(--ink);
}
.zzz {
  position: absolute; top: 24%; left: 18%;
  z-index: 2;
  font-family: var(--font-hand);
  color: var(--moon);
  pointer-events: none;
}
.zzz span {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0;
  animation: zzz 4.2s ease-out infinite;
}
.zzz span:nth-child(2) { animation-delay: 1.4s; font-size: 1.7rem; }
.zzz span:nth-child(3) { animation-delay: 2.8s; font-size: 1.3rem; }
@keyframes zzz {
  0% { transform: translate(0, 20px) rotate(-8deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(-30px, -60px) rotate(8deg); opacity: 0; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; }
.steps::before {
  /* dotted path through the night */
  content: "";
  position: absolute; left: 31px; top: 30px; bottom: 30px;
  border-left: 3px dotted rgba(236, 232, 250, 0.35);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
}
.step .time {
  position: relative;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--lilac);
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 1.05rem;
  box-shadow: 0 0 0 4px var(--night-2);
}
.step:nth-child(3) .time { background: var(--moon); }
.step-body {
  padding: 4px 0 8px;
  display: grid; gap: 6px;
}
.step-body p { color: var(--on-night-dim); }
.step-body strong { color: var(--on-night); font-weight: 600; }

/* ---------- Different ---------- */

.different {
  background: linear-gradient(180deg, var(--night-3) 0%, #463d9a 55%, var(--dusk) 100%);
  padding: 40px 0 110px;
  --edge: var(--dusk);
}
.different .wrap { display: grid; gap: 40px; }

.vs {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; padding: 0; margin: 0;
}
.vs li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1.5px solid rgba(236, 232, 250, 0.3);
  color: var(--on-night-dim);
}
.vs li.no span { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(246, 168, 182, 0.85); }
.vs li.no::before { content: "×"; color: var(--blush); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.vs li.yes { background: var(--lilac); color: var(--ink); border-color: var(--ink); font-weight: 600; }
.vs li.yes::before { content: "✓"; font-weight: 700; }

.cards { display: grid; gap: 30px; list-style: none; padding: 0; margin: 0; }

.sticker {
  position: relative;
  background: var(--lilac);
  color: var(--on-day);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--ring), 0 8px 0 5px rgba(20, 16, 70, 0.45), 0 26px 50px rgba(10, 6, 40, 0.35);
  transition: transform 0.25s cubic-bezier(.3,1.6,.5,1);
}
.card {
  padding: 22px 22px 26px;
  display: grid; gap: 10px;
  transform: rotate(var(--tilt, 0deg));
}
.card:nth-child(1) { --tilt: -1.6deg; }
.card:nth-child(2) { --tilt: 1.2deg; }
.card:nth-child(3) { --tilt: -0.6deg; }
.card:hover { transform: rotate(0deg) translateY(-4px); }
.card::before {
  /* washi tape */
  content: "";
  position: absolute; top: -14px; left: 50%;
  width: 92px; height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(135deg, rgba(248, 199, 92, 0.8) 0 8px, rgba(255, 220, 140, 0.8) 8px 16px);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.card:nth-child(2)::before {
  background: repeating-linear-gradient(135deg, rgba(246, 168, 182, 0.85) 0 8px, rgba(255, 205, 214, 0.85) 8px 16px);
  transform: translateX(-50%) rotate(4deg);
}
.card:nth-child(3)::before {
  background: repeating-linear-gradient(135deg, rgba(185, 172, 230, 0.9) 0 8px, rgba(214, 205, 245, 0.9) 8px 16px);
}
.card .art {
  height: 150px;
  display: grid; place-items: center;
  margin: -4px 0 4px;
  position: relative;
}
.card .art img, .card .art .mascot-mini {
  width: 150px; height: 150px;
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 6px 8px rgba(46, 42, 120, 0.25));
}
.card .art .mascot-mini { position: relative; filter: none; }
.card .art .mascot-mini .mascot { cursor: default; }
.card .art .tag {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  line-height: 1.1;
  padding: 4px 10px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.card .art .tag.t1 { top: 6px; right: 6%; transform: rotate(6deg); }
.card .art .tag.t2 { top: 10px; left: 4%; transform: rotate(-5deg); }
.card .art .tag.t3 { bottom: 6px; right: 6%; transform: rotate(4deg); }
.card p { color: var(--on-day-dim); font-size: 1rem; }

/* ---------- Morning report (dawn) ---------- */

.morning {
  background: linear-gradient(180deg, var(--dusk) 0%, var(--dawn-1) 22%, var(--dawn-2) 62%, var(--dawn-3) 100%);
  color: var(--on-day);
  padding: 40px 0 110px;
  --edge: var(--cream);
  overflow: hidden;
}
.morning .wrap { display: grid; gap: 36px; align-items: center; }
.morning .kicker { color: var(--ink); }
.morning .lede { color: #3e397a; }
.sun {
  position: absolute; z-index: -1;
  width: 520px; height: 520px; border-radius: 50%;
  right: -160px; bottom: -120px;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.85) 0%, rgba(255, 214, 140, 0.0) 62%);
}

.report-scene { position: relative; display: grid; justify-items: center; gap: 0; }
.report-scene { padding-top: 64px; }
.report-scene .stage { order: 0; width: min(52vw, 230px); margin-bottom: -26px; z-index: 2; }
.report-scene .stage::before { display: none; }
.report-scene .bubble { top: -30%; left: 50%; right: auto; translate: -50% 0; width: max-content; max-width: min(15em, 84vw); text-align: center; }
.report-scene .bubble::after { left: calc(50% - 10px); }

.report {
  width: 100%; max-width: 380px;
  padding: 34px 22px 22px;
  background: var(--paper);
  display: grid; gap: 14px;
}
.report-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-family: var(--font-hand);
  color: var(--on-day-dim);
  font-size: 1rem;
}
.report-head b { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.01em; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stat {
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--lilac);
  border: 2px solid rgba(46, 42, 120, 0.18);
}
.stat.wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat dt { font-size: 0.82rem; color: var(--on-day-dim); font-weight: 500; }
.stat dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.stat dd small { font-size: 0.95rem; font-weight: 600; }
.streak { display: flex; gap: 5px; }
.streak i {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--moon); border: 2px solid var(--ink);
}
.streak i.off { background: transparent; border-style: dashed; opacity: 0.5; }
.unlock {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 2px dashed var(--ink);
  font-weight: 600; font-size: 0.95rem;
}
.swatch {
  flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: repeating-linear-gradient(90deg, #f6a8b6 0 7px, #fff 7px 14px);
}

/* ---------- Day sections ---------- */

.day { background: var(--cream); color: var(--on-day); color-scheme: light; }
.day a { color: var(--cap); }

.plus { padding: 40px 0 30px; }
.plus-card {
  padding: 28px 24px;
  display: grid; gap: 18px;
  background: var(--paper);
  box-shadow: 0 8px 0 0 var(--ink);
  transform: rotate(-0.6deg);
}
.plus-card h2 { font-size: clamp(1.8rem, 5.6vw, 2.8rem); }
.price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  font-family: var(--font-display);
}
.price b { font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.price span { font-family: var(--font-body); color: var(--on-day-dim); font-size: 1rem; }
.price .trial {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  background: var(--moon);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  transform: rotate(-3deg);
  display: inline-block;
}
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--on-day-dim); }
.ticks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%232e2a78' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 2px solid var(--ink);
}
.plus .fine { font-size: 0.88rem; color: var(--on-day-dim); }

.faq { padding: 60px 0 40px; }
.faq .wrap { display: grid; gap: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq details {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--ink);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 20px;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 18px; top: 50%;
  width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2.5px 12px no-repeat,
    var(--lilac);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--moon);
}
.faq details > div { padding: 0 20px 20px; color: var(--on-day-dim); display: grid; gap: 10px; }

/* Final call: an indigo night-card on the morning paper */
.join { padding: 50px 0 70px; }
.join-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-night);
  background:
    radial-gradient(70% 90% at 90% 10%, rgba(124, 108, 214, 0.45), transparent 60%),
    linear-gradient(160deg, var(--night-1), var(--night-3));
  border: 3px solid var(--ink);
  border-radius: 36px;
  box-shadow: 0 10px 0 var(--ink), 0 30px 60px rgba(46, 42, 120, 0.25);
  padding: 34px 22px 30px;
  display: grid; gap: 22px;
  justify-items: start;
}
.join-card a { color: var(--on-night); }
.join-card .lede { color: var(--on-night-dim); }
.join-card .art {
  width: 150px; height: 150px;
  justify-self: center;
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff);
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
.join-card h2 { font-size: clamp(2rem, 6.6vw, 3.2rem); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 30px 0 46px;
  font-size: 0.93rem;
  color: var(--on-day-dim);
}
.site-footer .wrap {
  display: grid; gap: 18px;
  border-top: 2px dashed rgba(46, 42, 120, 0.25);
  padding-top: 28px;
}
.site-footer .brand { color: var(--ink); font-size: 1.5rem; }
.site-footer .brand img { width: 34px; height: 34px; filter: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
.site-footer .lang-switch { border-color: rgba(46, 42, 120, 0.3); justify-self: start; }
.site-footer .lang-switch [aria-current] { background: var(--ink); color: #fff; }
.site-footer .lang-switch a { color: var(--ink); }
.site-footer .lang-switch a:hover { background: rgba(46, 42, 120, 0.08); }
.site-footer .legal-note { font-size: 0.8rem; opacity: 0.85; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in { transform: rotate(var(--tilt, 0deg)); }
.js .card.reveal.in:hover { transform: rotate(0deg) translateY(-4px); }

.hero-copy > * { animation: rise 0.8s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.stage { animation: float-in 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Legal pages ---------- */

.legal-page { background: var(--cream); color: var(--on-day); color-scheme: light; }
.legal-top {
  background: linear-gradient(180deg, var(--night-0), var(--night-2));
  color: var(--on-night);
  padding: 0 0 70px;
  --edge: var(--cream);
}
.legal-top .site-header { position: relative; }
.legal-top h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin-top: 18px; }
.legal-top p { color: var(--on-night-dim); margin-top: 10px; }
.legal {
  max-width: 46rem;
  padding-top: 30px; padding-bottom: 40px;
}
.legal h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin: 38px 0 12px; }
.legal h3 { font-size: 1.15rem; margin: 22px 0 8px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.legal p, .legal li { color: #39346f; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.3em; display: grid; gap: 6px; }
.legal a { color: var(--cap); text-underline-offset: 3px; }
.legal .summary {
  margin-top: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--lilac);
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.legal .summary ul { margin: 8px 0 0; }

/* ---------- Larger screens ---------- */

@media (min-width: 560px) {
  .waitlist-form .btn { flex: 0 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 760px) {
  .site-header .btn-sm { display: inline-flex; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .plus-card { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 40px; gap: 30px; }
  .faq .wrap { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .faq .section-head { position: sticky; top: 30px; }
  .join-card { grid-template-columns: 1fr auto; padding: 50px 54px; align-items: center; }
  .join-card .art { grid-row: 1 / span 3; grid-column: 2; width: 210px; height: 210px; }
  .join-card > :not(.art) { grid-column: 1; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; margin-right: 18px; }
  .hero { padding: 120px 0 120px; min-height: min(100svh, 860px); display: flex; align-items: center; }
  .hero .wrap { grid-template-columns: 1.08fr 0.92fr; gap: 30px; }
  .stage { order: 0; width: 100%; max-width: 480px; }
  .stage .bubble { left: -10%; top: 6%; }
  .night-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
  .steps { gap: 30px; }
  .morning .wrap { grid-template-columns: 1fr 1fr; gap: 60px; }
  .report-scene { padding-top: 0; }
  .report-scene .stage { width: 280px; }
  .report-scene .bubble { top: 10%; left: auto; right: 86%; translate: none; width: max-content; max-width: 10.5em; text-align: left; }
  .report-scene .bubble::after { left: auto; right: -13px; bottom: 18px; transform: rotate(-45deg) skew(8deg, 8deg); }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .card.reveal { transform: rotate(var(--tilt, 0deg)); }
  .zzz span:first-child { opacity: 0.8; transform: translate(-10px, -20px); }
}
