/* Newton landing page, "Daisy Days" (the launch video's look).
   Cream ground, pastel bands, white sticker cards. Every raised shape gets a 3px charcoal outline and a hard
   offset shadow (6px cards, 4px small things), never a blur. Fredoka for display, Quicksand for reading.
   Coral is only ever a small marker. Dark mode keeps the stickers and dims the ground and bands to dusk. */

@font-face { font-family: "Fredoka"; src: url("assets/fonts/Fredoka-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Quicksand"; src: url("assets/fonts/Quicksand-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  /* Palette */
  --cream: #F5F0E6; --turquoise: #7ECDC0; --pink: #F7C8D4; --butter: #FDE68A; --mint: #A8E6CF;
  --lavender: #D4A5E8; --peach: #FFCBA4; --sky: #A8D8F0; --coral: #F8635F;
  --ink: #2D2D2D; --muted: #6B6B6B; --white: #FFFFFF;

  /* Roles: dark mode swaps these, the palette stays put */
  --ground: var(--cream);
  --on-ground: var(--ink);
  --on-band: var(--ink);            /* text sitting straight on a pastel band */
  --line: var(--ink);               /* outlines */
  --drop: var(--ink);               /* hard shadows */
  --focus: var(--ink);
  --band-hero: var(--turquoise);
  --band-features: var(--butter);
  --band-companion: var(--lavender);
  --band-footer: var(--pink);
  --cell-cast: var(--sky); --cell-phone: var(--mint); --cell-clip: var(--peach); --cell-safe: var(--lavender);

  --edge: 3px solid var(--line);
  --sh: 6px 6px 0 var(--drop);
  --sh-sm: 4px 4px 0 var(--drop);
  --r: 20px; --r-lg: 28px; --r-pill: 50px;
  --gutter: max(24px, calc((100% - 1152px) / 2));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --display: "Fredoka", "Fredoka One", ui-rounded, system-ui, sans-serif;
  --body: "Quicksand", ui-rounded, system-ui, -apple-system, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --night: #211F2B;
    --ground: var(--night);
    --on-ground: var(--cream);
    --on-band: var(--cream);
    --drop: #0C0B11;
    --focus: var(--butter);
    --band-hero: color-mix(in oklab, var(--turquoise) 40%, var(--night));
    --band-features: color-mix(in oklab, var(--butter) 34%, #2E2026);   /* warm night, so butter dims to amber, not olive */
    --band-companion: color-mix(in oklab, var(--lavender) 36%, var(--night));
    --band-footer: color-mix(in oklab, var(--pink) 32%, var(--night));
    --cell-cast: color-mix(in oklab, var(--sky) 34%, var(--night));
    --cell-phone: color-mix(in oklab, var(--mint) 32%, var(--night));
    --cell-clip: color-mix(in oklab, var(--peach) 30%, var(--night));
    --cell-safe: color-mix(in oklab, var(--lavender) 34%, var(--night));
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--on-ground);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.01em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 12px; }

section { position: relative; overflow: clip; padding: 100px var(--gutter); }
section > :not(.orn), .footer > :not(.orn) { position: relative; z-index: 1; }
.section-title { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; max-width: 18ch; }

/* Fredoka on a coloured band: white letters with a charcoal outline and a hard drop, like the video's titles. */
.outlined {
  --o: 3px; --od: 5px;
  color: var(--white);
  text-shadow:
    var(--o) 0 0 var(--line), calc(var(--o) * -1) 0 0 var(--line), 0 var(--o) 0 var(--line), 0 calc(var(--o) * -1) 0 var(--line),
    calc(var(--o) * 0.72) calc(var(--o) * 0.72) 0 var(--line), calc(var(--o) * -0.72) calc(var(--o) * -0.72) 0 var(--line),
    calc(var(--o) * 0.72) calc(var(--o) * -0.72) 0 var(--line), calc(var(--o) * -0.72) calc(var(--o) * 0.72) 0 var(--line),
    var(--od) var(--od) 0 var(--line);
}

/* ---------- Ornaments ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.orn {
  position: absolute; z-index: 0; width: calc(var(--w, 120px) * var(--k, 1)); height: auto; overflow: visible;
  fill: none; stroke: var(--line); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
  rotate: var(--r, 0deg); pointer-events: none;
}
.spin { animation: orn-spin var(--t, 48s) linear infinite; }
.sway { animation: orn-sway 7s ease-in-out infinite; }
.twinkle { animation: orn-twinkle 3.4s ease-in-out infinite; }
.drift { animation: orn-drift 12s ease-in-out infinite; }
@keyframes orn-spin { to { transform: rotate(360deg); } }
@keyframes orn-sway { 50% { transform: rotate(12deg); } }
@keyframes orn-twinkle { 50% { transform: scale(0.7) rotate(20deg); } }
@keyframes orn-drift { 50% { transform: translateX(16px); } }

/* ---------- Nav: a floating sticker pill ---------- */
.nav-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.nav {
  position: sticky; top: 12px; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  width: min(1152px, calc(100% - 32px)); height: 64px; margin: 12px auto 0; padding: 0 8px 0 12px;
  background: var(--white); color: var(--ink); border: var(--edge); border-radius: var(--r-pill); box-shadow: var(--sh-sm);
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-scrolled { box-shadow: var(--sh); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px var(--display); letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; transition: transform 0.5s var(--spring); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 15px; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 3px;
  background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Buttons: butter pills that press like stickers ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 12px 22px; border-radius: var(--r-pill); font: 600 17px var(--display); letter-spacing: 0.02em; text-decoration: none;
  background: var(--butter); color: var(--ink); border: var(--edge); box-shadow: var(--sh-sm); cursor: pointer;
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--spring), background 0.2s;
}
.btn i { font-size: 18px; }
.btn-sm { padding: 7px 16px; font-size: 16px; box-shadow: 3px 3px 0 var(--drop); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--drop); }
.btn:hover i { animation: nudge 0.7s var(--ease); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--drop); transition-duration: 0.08s; }
@keyframes nudge { 40% { transform: translateY(3px); } }

/* ---------- Hero: the cover frame ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  min-height: min(100dvh, 940px); margin-top: -76px; padding-top: 136px; padding-bottom: 84px;
  background: var(--band-hero); color: var(--on-band); border-bottom: var(--edge);
}
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 16px 6px 12px; border-radius: var(--r-pill);
  background: var(--butter); color: var(--ink); border: var(--edge); box-shadow: var(--sh-sm);
  font: 600 16px var(--display); letter-spacing: 0.02em; white-space: nowrap;
}
.dot { flex: none; width: 13px; height: 13px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); }
.hero h1 { --o: 3.5px; --od: 6px; font-size: clamp(44px, 5.4vw, 78px); line-height: 1.06; margin: 28px 0 22px; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--butter); white-space: nowrap; }
.lede { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stage { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 560px; justify-self: end; }
/* The butter sun Newton sits on (was a soft halo). */
.halo {
  position: absolute; left: 1%; top: 22%; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: var(--butter); border: var(--edge); box-shadow: var(--sh);
}
.hero-shot {
  position: absolute; width: 50%; right: 0; top: 0; padding: 7px;
  background: var(--white); border: var(--edge); border-radius: 26px; box-shadow: var(--sh);
  transform: rotate(5deg) translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 0.6s var(--ease);
}
.pet-button {
  position: absolute; left: -3%; bottom: 0; width: 72%;
  background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform: translate3d(calc(var(--px, 0) * -0.6), calc(var(--py, 0) * -0.6), 0);
  transition: transform 0.6s var(--ease);
}
.pet-button:focus-visible { border-radius: 50%; }
.hero-pet { width: 100%; transform-origin: 50% 92%; }
.hero-pet.hop { animation: hop 0.6s var(--spring); }
.bubble {
  position: absolute; left: 30%; bottom: 74%;
  background: var(--white); color: var(--ink); padding: 8px 18px; border-radius: var(--r-pill);
  border: var(--edge); box-shadow: var(--sh-sm);
  font: 600 16px var(--display); letter-spacing: 0.01em; white-space: nowrap;
  transform-origin: 20% 100%; transition: transform 0.45s var(--spring), opacity 0.3s;
}
.bubble.pop { animation: bubble-pop 0.5s var(--spring); }
.heart {
  position: absolute; z-index: 3; pointer-events: none; font-size: 22px; left: var(--x); top: var(--y);
  animation: float-heart 1.1s var(--ease) forwards;
}
@keyframes hop { 30% { transform: translateY(-14%) scale(1.03, 0.97); } 55% { transform: translateY(0) scale(1.06, 0.92); } 75% { transform: scale(0.98, 1.02); } }
@keyframes bubble-pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes float-heart { 0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), -120px) scale(1.15); opacity: 0; } }

/* Breathing: a living pet, not a sticker. */
.breathe { animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.012, 1.028) translateY(-0.6%); } }

/* ---------- Moods: a row of sticker cards ---------- */
.moods .section-title { max-width: 22ch; margin-bottom: 30px; }
.mood-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 20px;
  list-style: none; padding: 10px 14px 28px 6px; margin: 0 -14px 0 -6px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: 6px;
  scrollbar-width: thin; scrollbar-color: var(--on-ground) transparent;
}
.mood {
  position: relative; container-type: inline-size; scroll-snap-align: start;
  background: var(--white); color: var(--ink); border: var(--edge); border-radius: var(--r); box-shadow: var(--sh);
  padding: 16px 14px 16px; transition: transform 0.45s var(--spring), box-shadow 0.45s var(--spring);
}
/* Pastel disc behind each pose. */
.mood::before {
  content: ""; position: absolute; left: calc(14px + 13cqi); top: calc(16px + 13cqi); width: 74cqi; aspect-ratio: 1; border-radius: 50%;
  background: var(--tint); border: var(--edge);
}
.mood img { position: relative; width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform 0.5s var(--spring); }
.mood span { position: relative; display: block; text-align: center; font: 600 17px var(--display); letter-spacing: 0.01em; margin-top: 8px; }
.mood:hover { transform: translate(-3px, -4px) rotate(-1deg); box-shadow: 9px 10px 0 var(--drop); }
.mood:hover img { transform: rotate(-5deg) scale(1.06); }

/* ---------- Features: butter band ---------- */
.features {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
  background: var(--band-features); color: var(--on-band); border-block: var(--edge);
}
.feature-list { position: relative; display: flex; flex-direction: column; gap: 6px; }
.feature-list .section-title { margin-bottom: 24px; }
.feature {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 8px 20px 8px 8px; border: 3px solid transparent; border-radius: var(--r-pill); background: transparent; color: inherit;
  font: 700 18px var(--body); cursor: pointer; transition: color 0.25s, transform 0.35s var(--spring);
}
.feature i {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--c, var(--mint)); color: var(--ink); border: var(--edge); font-size: 20px;
  transition: transform 0.45s var(--spring), box-shadow 0.3s var(--ease);
}
.feature:nth-of-type(1) { --c: var(--coral); }
.feature:nth-of-type(2) { --c: var(--sky); }
.feature:nth-of-type(3) { --c: var(--mint); }
.feature:nth-of-type(4) { --c: var(--peach); }
.feature:nth-of-type(5) { --c: var(--pink); }
.feature:nth-of-type(6) { --c: var(--lavender); }
.feature:hover { transform: translateX(4px); }
.feature.is-active { color: var(--ink); }
.feature.is-active i { transform: scale(1.08) rotate(-8deg); box-shadow: 2px 2px 0 var(--drop); }
.feature-marker {
  position: absolute; left: 0; right: 0; top: 0; height: var(--h, 64px); z-index: 0; border-radius: var(--r-pill);
  background: var(--white); border: var(--edge); box-shadow: var(--sh-sm);
  transform: translateY(var(--y, 0)); transition: transform 0.55s var(--spring), height 0.3s var(--ease);
}
.feature-stage {
  position: relative; display: grid; place-items: center; text-align: center; padding: 36px 32px 40px;
  background: var(--white); color: var(--ink); border: var(--edge); border-radius: var(--r-lg); box-shadow: var(--sh);
  min-height: 520px; overflow: hidden;
}
.stage-disc {
  position: absolute; width: 66%; aspect-ratio: 1; border-radius: 50%; top: 8%;
  background: var(--turquoise); border: var(--edge);
}
.stage-pet { position: relative; width: min(78%, 380px); }
.stage-pet.swap { animation: pose-swap 0.55s var(--spring); }
.stage-copy { position: relative; font-size: 19px; font-weight: 600; max-width: 34ch; margin-top: 12px; min-height: 3.2em; }
@keyframes pose-swap { 0% { transform: scale(0.82) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- Bento: one pastel per card ---------- */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.cell {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--r);
  color: var(--on-band); border: var(--edge); box-shadow: var(--sh);
}
.cell h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.cell p { margin-top: 10px; max-width: 40ch; }
.shot { padding: 6px; background: var(--white); border: var(--edge); border-radius: 22px; box-shadow: var(--sh-sm); }
.cell-cast { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 12px; background: var(--cell-cast); }
.cell-cast img { transition: transform 0.6s var(--spring); }
.cell-cast:hover img { transform: rotate(-4deg) scale(1.05); }
.cell-phone { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 22px; background: var(--cell-phone); }
.cell-phone img { width: 86%; margin: 0 auto; transition: transform 0.6s var(--ease); }
.cell-phone:hover img { transform: translateY(-8px) rotate(-1.5deg); }
.cell-clip { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 20px; background: var(--cell-clip); }
.cell-clip img { margin-top: auto; transition: transform 0.6s var(--ease); }
.cell-clip:hover img { transform: translateY(-8px) rotate(1.5deg); }
.cell-safe { grid-column: 1; grid-row: 2; background: var(--cell-safe); }
.big-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 50%;
  background: var(--white); color: var(--ink); border: var(--edge); box-shadow: var(--sh-sm); font-size: 30px;
  transition: transform 0.6s var(--spring);
}
.cell-safe:hover .big-icon { transform: rotate(-8deg) scale(1.1); }

/* ---------- Companion: lavender band ---------- */
.companion {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: var(--band-companion); color: var(--on-band); border-block: var(--edge);
}
.companion .section-title { max-width: none; }
.sub { max-width: 46ch; }
.companion .sub { font-weight: 600; }
.switcher {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 12px; padding: 5px;
  background: var(--white); border: var(--edge); border-radius: var(--r-pill); box-shadow: var(--sh-sm);
}
.switcher button {
  position: relative; z-index: 1; border: 0; background: none; padding: 9px 28px; border-radius: var(--r-pill);
  font: 600 17px var(--display); letter-spacing: 0.02em; color: var(--ink); cursor: pointer;
}
.switch-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: var(--r-pill);
  background: var(--butter); border: var(--edge); transition: transform 0.5s var(--spring);
}
.switcher.mochi .switch-thumb { transform: translateX(100%); }
.flip { position: relative; perspective: 1200px; width: min(320px, 70vw); margin-top: 16px; }
.flip::before {
  content: ""; position: absolute; inset: 7% 7% 3%; border-radius: 50%;
  background: var(--white); border: var(--edge); box-shadow: var(--sh);
}
.flip-inner { position: relative; aspect-ratio: 1; transform-style: preserve-3d; transition: transform 0.8s var(--spring); }
.flip.mochi .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); }

/* ---------- Waitlist form ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist { width: 100%; max-width: 520px; }
.field {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink); border: var(--edge); box-shadow: var(--sh);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--spring), background 0.3s;
}
.field > i { font-size: 20px; color: var(--muted); transition: color 0.25s, transform 0.4s var(--spring); }
.field:focus-within { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--drop); }
.field:focus-within > i { color: var(--ink); transform: rotate(-10deg) scale(1.1); }
.field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 600 16px var(--body); padding: 10px 0;
}
.field input::placeholder { color: var(--muted); font-weight: 500; opacity: 1; }
.field .btn { padding: 10px 20px; box-shadow: none; }
.field .btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--drop); }
.field .btn:active { transform: translate(1px, 1px); box-shadow: none; }
.field .btn .go { transition: transform 0.35s var(--spring); }
.field .btn:hover .go { animation: none; transform: translateX(3px); }
.waitlist.shake .field { animation: shake 0.42s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.waitlist.busy .btn { pointer-events: none; }
.waitlist.busy .go { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.waitlist.done .field { background: var(--mint); }
.waitlist.done .field > i { color: var(--ink); }
.waitlist.done .btn { background: var(--white); }
.waitlist.done .go { animation: tick 0.5s var(--spring); }
@keyframes tick { 0% { transform: scale(0.4) rotate(-30deg); } 100% { transform: none; } }
.form-msg { min-height: 1.6em; margin-top: 12px; padding-left: 18px; font-size: 15px; font-weight: 600; }
/* State is carried by a small marker dot (coral = problem, mint = done), the text stays readable. */
.form-msg.err::before, .form-msg.ok::before {
  content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 8px; vertical-align: -1px;
  border-radius: 50%; border: 2px solid var(--line); background: var(--coral);
}
.form-msg.ok { font-weight: 700; }
.form-msg.ok::before { background: var(--mint); }
.form-msg a { color: inherit; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Join: one big white card on cream ---------- */
.join { padding-block: 108px; }
.join-card {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center;
  padding: 48px 56px 48px 40px; background: var(--white); color: var(--ink);
  border: var(--edge); border-radius: var(--r-lg); box-shadow: var(--sh);
}
.join-art { position: relative; display: grid; place-items: center; }
.join-art::before {
  content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: var(--peach); border: var(--edge);
}
.join-pet { position: relative; width: 100%; max-width: 380px; transition: transform 0.6s var(--spring); }
.join-pet.cheer { animation: hop 0.6s var(--spring); }
.join .sub { color: var(--muted); margin: 14px 0 26px; }
.privacy { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 52ch; }
.privacy i { font-size: 17px; margin-top: 2px; }
.mini-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; max-width: 54ch; counter-reset: step; }
.mini-steps li {
  counter-increment: step; display: flex; gap: 14px; align-items: flex-start;
  padding: 10px 14px 10px 10px; border: 3px solid transparent; border-radius: var(--r);
  color: var(--muted); font-size: 15px; line-height: 1.5;
  transition: background 0.4s var(--ease), border-color 0.4s, color 0.4s, transform 0.5s var(--spring);
}
/* Numbered circle markers instead of glyph bullets. */
.mini-steps li::before {
  content: counter(step); flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -3px;
  border-radius: 50%; border: var(--edge); box-shadow: 2px 2px 0 var(--drop); background: var(--c, var(--coral));
  color: var(--ink); font: 600 16px/1 var(--display);
}
.mini-steps li:nth-child(2) { --c: var(--mint); }
.mini-steps li:nth-child(3) { --c: var(--sky); }
.mini-steps li b { color: var(--ink); }
/* After a successful signup the steps light up one by one. */
.mini-steps.go li { background: var(--butter); border-color: var(--line); color: var(--ink); animation: step-in 0.55s var(--spring) both; }
.mini-steps.go li:nth-child(2) { animation-delay: 0.12s; } .mini-steps.go li:nth-child(3) { animation-delay: 0.24s; }
@keyframes step-in { 0% { transform: translateY(8px) scale(0.98); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.req { color: var(--muted); margin-top: 18px; font-size: 15px; }

/* ---------- Footer: soft-pink closing band ---------- */
.footer {
  position: relative; overflow: clip;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 60px var(--gutter) 136px;   /* room for the walking Newton */
  background: var(--band-footer); color: var(--on-band); border-top: var(--edge);
}
.dedication { display: flex; align-items: center; gap: 22px; max-width: 600px; }
.real-newton { position: relative; flex: none; width: 116px; height: 116px; margin: 0; }
.real-newton .photo {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--white); box-shadow: 0 0 0 3px var(--line), 6px 6px 0 3px var(--drop);
  transition: transform 0.5s var(--spring);
}
.real-newton:hover .photo { transform: rotate(-4deg) scale(1.06); }
/* Cartoon Newton napping against the real one. */
.real-newton .peek { position: absolute; right: -34px; bottom: -12px; width: 68px; transition: transform 0.5s var(--spring); }
.real-newton:hover .peek { transform: translate(4px, -2px) rotate(6deg); }
.dedication-title { font: 600 23px var(--display); letter-spacing: 0.01em; margin-bottom: 4px; }
.dedication-copy { margin-left: 40px; }
.dedication-copy p:last-child { font-size: 15px; font-weight: 600; max-width: 44ch; }
.z { position: absolute; font: 600 15px var(--display); color: var(--on-band); top: 0; right: 0; opacity: 0; animation: snooze 3.6s ease-in-out infinite; }
.z2 { animation-delay: 1.2s; } .z3 { animation-delay: 2.4s; }
@keyframes snooze { 0% { transform: translate(0, 0) scale(0.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(18px, -34px) scale(1.2); opacity: 0; } }
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
/* Third-party badge, dressed as one more sticker: outlined, rounded, hard shadow. */
.tma-badge {
  display: block; width: 200px; border: var(--edge); border-radius: var(--r); box-shadow: var(--sh-sm); overflow: hidden;
  background: var(--white); transition: transform 0.3s var(--spring), box-shadow 0.3s var(--spring);
}
.tma-badge img { display: block; width: 100%; height: auto; }
.tma-badge:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--drop); }
.tma-badge:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--drop); transition-duration: 0.08s; }
.foot-links { display: flex; align-items: center; gap: 22px; }
.foot-links a { text-decoration: none; font-weight: 700; position: relative; }
.foot-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.foot-links a:hover::after { transform: scaleX(1); }
.copyright { font-size: 14px; font-weight: 600; }

/* Hero pose change on click: a quick spin-and-pop into the next mood. */
.hero-pet.swap { animation: pose-swap 0.5s var(--spring); }

/* ---------- Walking Newton (bottom of the viewport) ---------- */
.walker {
  --size: 92px;
  position: fixed; left: 0; bottom: 6px; z-index: 5; width: var(--size); height: var(--size);
  pointer-events: none; transform: translate3d(var(--x, -120px), 0, 0); will-change: transform;
}
.walker-dog {
  position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  transform: scaleX(var(--dir, 1)); transition: transform 0.25s var(--ease); -webkit-tap-highlight-color: transparent;
}
.walker-sprite {
  position: absolute; inset: 0; background: url("assets/newton-walk.png") 0 0 / 400% 100% no-repeat;
  animation: walk-cycle 0.62s steps(4) infinite;
}
@keyframes walk-cycle { from { background-position: 0 0; } to { background-position: calc(var(--size) * -4) 0; } }
.walker-sit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.walker.resting .walker-sprite { opacity: 0; animation-play-state: paused; }
.walker.resting .walker-sit { opacity: 1; animation: breathe 4.2s ease-in-out infinite; transform-origin: 50% 92%; }
.walker.hidden { display: none; }
.walker-bubble {
  position: absolute; bottom: calc(100% - 4px); left: 50%; translate: -50% 0; white-space: nowrap;
  background: var(--white); color: var(--ink); padding: 5px 13px; border-radius: var(--r-pill);
  border: var(--edge); box-shadow: 3px 3px 0 var(--drop); font: 600 14px var(--display); letter-spacing: 0.01em;
  opacity: 0; scale: 0.7; transform-origin: 50% 100%;
  transition: opacity 0.25s, scale 0.4s var(--spring);
}
.walker-bubble.show { opacity: 1; scale: 1; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding-block: 76px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; gap: 28px; }
  .hero-stage { justify-self: center; max-width: 460px; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .feature-stage { min-height: 440px; }
  .join { padding-block: 84px; }
  .join-card { grid-template-columns: 1fr; gap: 12px; padding: 32px; }
  .join-art { max-width: 240px; margin: 0 auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-cast { grid-column: 1 / -1; grid-row: auto; }
  .cell-phone, .cell-clip { grid-column: auto; grid-row: auto; }
  .cell-safe { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  section { padding-block: 60px; }
  .orn { --k: 0.6; }
  .orn.opt { display: none; }
  .nav { top: 10px; height: 58px; width: calc(100% - 24px); margin-top: 10px; gap: 12px; padding: 0 6px 0 10px; }
  .brand { font-size: 20px; }
  .brand img { width: 32px; height: 32px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { margin-top: -68px; padding-top: 104px; padding-bottom: 64px; }
  .hero h1 { --o: 3px; --od: 5px; }
  .pill { font-size: 15px; }
  .bubble { left: 50%; translate: -50% 0; bottom: 76%; width: max-content; max-width: 96%; white-space: normal; text-align: center; font-size: 14px; border-radius: 22px; }
  .field { flex-wrap: wrap; border-radius: 26px; padding: 8px; }
  .field > i { display: none; }
  .field input { flex: 1 1 100%; padding: 10px 12px; }
  .field .btn { flex: 1 1 100%; justify-content: center; }
  .mood-row { grid-auto-columns: minmax(180px, 1fr); }
  .feature { font-size: 17px; }
  .feature-stage { min-height: 400px; padding: 28px 20px 32px; }
  .bento { grid-template-columns: 1fr; }
  .cell { padding: 24px; }
  .cell-cast { grid-template-columns: 1fr; }
  .cell-cast img { width: 70%; margin: 0 auto; }
  .join { padding-block: 64px; }
  .join-card { padding: 24px 18px 28px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 44px 16px 104px; }
  .dedication { gap: 16px; }
  .dedication-copy { margin-left: 30px; }
  .real-newton { width: 96px; height: 96px; }
  .real-newton .peek { width: 56px; right: -28px; }
  .foot-side { align-items: flex-start; }
  .foot-links { flex-wrap: wrap; }
  .walker { --size: 64px; bottom: 4px; }
}

/* Reduced motion: everything settles instantly, nothing loops. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .z { opacity: 0.8; }
  .walker { display: none; }
}
