/* ------------------------------------------------------------------ */
/*  BuddyJax landing — tokens                                          */
/* ------------------------------------------------------------------ */

:root {
  --night: #1b1340;
  --night-deep: #0d0926;
  --night-soft: #2a1f5e;
  --dusk: #4a2f7e;
  --cream: #fff8ee;
  --cream-soft: #ffefd9;
  --ink: #1e1b2e;
  --ink-soft: #5c566f;
  --sun: #ffc857;
  --coral: #ff7a6b;
  --mint: #5fd3a6;
  --sky: #5ab6ff;
  --grape: #a77bff;
  --bubblegum: #ff8ac9;
  --fox: #ef8a3c;
  --fox-deep: #d86a24;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);

  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --gutter: clamp(20px, 5vw, 72px);
  --content: 1240px;

  /* Written by main.js */
  --scroll: 0;
  --hero: 0;
  --mx: 0;
  --my: 0;
}

/* ------------------------------------------------------------------ */
/*  Base                                                               */
/* ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

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

/* ------------------------------------------------------------------ */
/*  Typography                                                         */
/* ------------------------------------------------------------------ */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 60;
  font-size: clamp(2.6rem, 5.7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--sun);
}

.display--sm {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
  opacity: 0.85;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow:
    0 0 0 4px rgb(255 200 87 / 0.22),
    0 0 18px var(--sun);
  animation: pulse 2.6s ease-in-out infinite;
}

.lede {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.65;
  color: rgb(255 248 238 / 0.86);
  text-wrap: pretty;
}

.section-head {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-head .lede {
  max-width: 620px;
}

/* ------------------------------------------------------------------ */
/*  Buttons                                                            */
/* ------------------------------------------------------------------ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.5s var(--ease-spring),
    box-shadow 0.4s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
  will-change: transform;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease-spring);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--big {
  padding: 18px 30px;
  font-size: 1.05rem;
}

.btn--small {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, #ffd76f 0%, var(--sun) 45%, #ffb347 100%);
  box-shadow:
    0 10px 30px -10px rgb(255 200 87 / 0.7),
    inset 0 1px 0 rgb(255 255 255 / 0.5);
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgb(255 255 255 / 0.55) 48%,
    rgb(255 255 255 / 0.1) 52%,
    transparent 70%
  );
  transform: translateX(-70%) rotate(8deg);
  transition: transform 0.9s var(--ease-smooth);
  pointer-events: none;
}

.btn--primary:hover::after {
  transform: translateX(70%) rotate(8deg);
}

.btn--primary:hover {
  box-shadow:
    0 18px 40px -12px rgb(255 200 87 / 0.85),
    inset 0 1px 0 rgb(255 255 255 / 0.6);
}

.btn--ghost {
  color: var(--cream);
  background: rgb(255 248 238 / 0.08);
  border-color: rgb(255 248 238 / 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgb(255 248 238 / 0.14);
  border-color: rgb(255 248 238 / 0.35);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.cta-row--center {
  justify-content: center;
}

/* ------------------------------------------------------------------ */
/*  Curtain                                                            */
/* ------------------------------------------------------------------ */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--night);
  transition:
    clip-path 1.1s var(--ease-smooth),
    visibility 0s linear 1.1s;
  clip-path: inset(0 0 0 0);
}

.curtain__mark {
  display: grid;
  justify-items: center;
  gap: 18px;
  transition:
    opacity 0.4s ease,
    transform 0.6s var(--ease-out);
}

.curtain__mark img {
  border-radius: 18px;
  box-shadow: 0 20px 60px -20px rgb(255 200 87 / 0.5);
  animation: breathe 1.6s ease-in-out infinite;
}

.curtain__paws {
  display: flex;
  gap: 8px;
}

.curtain__paws i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0.3;
  animation: paw 1.2s ease-in-out infinite;
}

.curtain__paws i:nth-child(2) {
  animation-delay: 0.15s;
}

.curtain__paws i:nth-child(3) {
  animation-delay: 0.3s;
}

body.is-ready .curtain {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}

body.is-ready .curtain__mark {
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
}

/* ------------------------------------------------------------------ */
/*  Backdrop (fixed sky)                                               */
/* ------------------------------------------------------------------ */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.backdrop__painting {
  position: absolute;
  inset: 0;
  opacity: calc(1 - var(--hero));
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--hero) * -8vh + var(--my) * -6px), 0)
    scale(calc(1.08 + var(--hero) * 0.08));
  transform-origin: 50% 70%;
  will-change: transform, opacity;
}

.backdrop__painting img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  animation: kenburns 28s ease-in-out infinite alternate;
}

.backdrop__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 110%, var(--dusk) 0%, transparent 60%),
    linear-gradient(180deg, var(--night-deep) 0%, var(--night) 40%, #241a52 100%);
  opacity: calc(0.15 + var(--hero) * 0.85);
}

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

.backdrop__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 90% at 50% 50%, transparent 55%, rgb(13 9 38 / 0.55) 100%);
}

/* ------------------------------------------------------------------ */
/*  Nav                                                                */
/* ------------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition:
    background-color 0.4s ease,
    padding 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.5s var(--ease-out);
  transform: translateY(-110%);
}

body.is-ready .nav {
  transform: translateY(0);
  transition-delay: 0.6s;
}

.nav.is-scrolled {
  padding: 10px var(--gutter);
  background: rgb(27 19 64 / 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgb(255 248 238 / 0.08);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__brand img {
  border-radius: 10px;
}

.nav__brand em,
.footer__brand em {
  font-style: normal;
  color: var(--sun);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav__links a {
  position: relative;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav__links a:hover {
  opacity: 1;
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

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

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  padding: calc(72px + 6vh) var(--gutter) 12vh;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  overflow: visible;
}

.hero__scene {
  position: absolute;
  inset: 0 50% 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.clouds {
  position: absolute;
  inset: 0;
}

.cloud {
  position: absolute;
  width: 46vw;
  height: 16vw;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(255 236 220 / 0.75),
    rgb(255 220 205 / 0.35) 55%,
    transparent
  );
  filter: blur(22px);
  opacity: 0.8;
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--mx) * var(--depth, 1) * -18px), 0, 0);
}

.cloud--1 {
  --depth: 1.4;
  top: 10%;
  left: -8%;
  animation: drift 60s linear infinite;
}

.cloud--2 {
  --depth: 0.8;
  top: 24%;
  left: 55%;
  width: 34vw;
  height: 12vw;
  animation: drift 85s linear infinite reverse;
}

.cloud--3 {
  --depth: 1.1;
  top: 42%;
  left: 20%;
  width: 28vw;
  height: 9vw;
  opacity: 0.5;
  animation: drift 70s linear infinite;
}

.hills {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -2px;
  width: 104%;
  height: 32vh;
  min-height: 180px;
}

.hills--far {
  fill: #3c2d6e;
  opacity: 0.85;
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--hero) * 10vh), 0);
}

.hills--near {
  fill: #2b1f58;
  transform: translate3d(calc(var(--mx) * -26px), calc(var(--hero) * 22vh), 0);
}

.grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10vh;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 4vw;
  transform: translate3d(calc(var(--mx) * -34px), calc(var(--hero) * 30vh), 0);
}

.grass i {
  width: 3px;
  height: calc(28px + (var(--i, 0) * 1px));
  background: linear-gradient(to top, #2b1f58, #5a3f9d);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: sway 3.4s ease-in-out infinite;
}

.grass i:nth-child(odd) {
  height: 46px;
  animation-delay: -1.2s;
  animation-duration: 4.1s;
}

.grass i:nth-child(3n) {
  height: 36px;
  animation-delay: -2.2s;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

/* Soft indigo halo so the copy stays legible over the bright painted clouds. */
.hero__copy::before {
  content: "";
  position: absolute;
  inset: -12% -18% -14% -22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(27 19 64 / 0.72),
    rgb(27 19 64 / 0.45) 55%,
    transparent 100%
  );
  filter: blur(18px);
  pointer-events: none;
}

.hero__copy .display {
  margin-top: 6px;
  text-shadow: 0 2px 30px rgb(13 9 38 / 0.6);
}

.hero__copy .lede {
  color: rgb(255 248 238 / 0.94);
  text-shadow: 0 1px 12px rgb(13 9 38 / 0.6);
}

.hero__copy .eyebrow {
  text-shadow: 0 1px 10px rgb(13 9 38 / 0.7);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.line__inner {
  display: block;
  transform: translateY(110%) rotate(2deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease-out);
}

body.is-ready .line__inner {
  transform: translateY(0) rotate(0);
}

body.is-ready .line:nth-child(1) .line__inner {
  transition-delay: 0.55s;
}

body.is-ready .line:nth-child(2) .line__inner {
  transition-delay: 0.68s;
}

body.is-ready .line:nth-child(3) .line__inner {
  transition-delay: 0.81s;
}

[data-hero-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s ease,
    transform 1s var(--ease-out);
}

body.is-ready [data-hero-reveal] {
  opacity: 1;
  transform: none;
}

body.is-ready .eyebrow[data-hero-reveal] {
  transition-delay: 0.45s;
}

body.is-ready .lede[data-hero-reveal] {
  transition-delay: 1s;
}

body.is-ready .cta-row[data-hero-reveal] {
  transition-delay: 1.15s;
}

body.is-ready .hero__facts[data-hero-reveal] {
  transition-delay: 1.35s;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgb(255 248 238 / 0.75);
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.hero__stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 60vh;
  perspective: 1200px;
}

.hero__glow {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(255 200 87 / 0.5),
    rgb(255 138 107 / 0.22) 45%,
    transparent 72%
  );
  filter: blur(30px);
  animation: breathe 5s ease-in-out infinite;
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 10px), 0);
}

.hero__jax {
  position: relative;
  margin: 0;
  width: min(78%, 520px);
  transform-style: preserve-3d;
  transform: translate3d(calc(var(--mx) * 22px), calc(var(--my) * 14px), 0)
    rotateY(calc(var(--mx) * 6deg)) rotateX(calc(var(--my) * -4deg));
  transition: transform 0.15s linear;
  opacity: 0;
  animation: none;
}

body.is-ready .hero__jax {
  opacity: 1;
  animation: enter-jax 1.4s var(--ease-out) 0.3s both;
}

.hero__jax img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgb(13 9 38 / 0.45));
  animation: float 6s ease-in-out infinite;
}

.hero__shadow {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 60%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(13 9 38 / 0.5), transparent);
  transform: translateX(-50%);
  animation: shadow 6s ease-in-out infinite;
}

.chips {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  background: rgb(255 248 238 / 0.92);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 16px 40px -16px rgb(13 9 38 / 0.7);
  opacity: 0;
  transform: translate3d(calc(var(--mx) * var(--depth, 1) * 30px), calc(var(--my) * 16px), 0);
}

.chip b {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--sun);
  font-weight: 900;
}

.chip i {
  font-style: normal;
}

body.is-ready .chip {
  animation: chip-pop 7.5s var(--ease-out) var(--delay, 0s) infinite;
}

.chip--1 {
  --depth: 1.6;
  --delay: 1.6s;
  top: 16%;
  left: -4%;
}

.chip--2 {
  --depth: -1.2;
  --delay: 4.1s;
  top: 30%;
  right: -6%;
}

.chip--3 {
  --depth: 1;
  --delay: 6.6s;
  bottom: 18%;
  left: 2%;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgb(255 248 238 / 0.6);
  opacity: calc(1 - var(--hero) * 3);
  transition: color 0.3s ease;
}

.scroll-cue span {
  width: 22px;
  height: 36px;
  border: 2px solid rgb(255 248 238 / 0.45);
  border-radius: 12px;
  position: relative;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 7px;
  border-radius: 2px;
  background: var(--sun);
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}

.scroll-cue:hover {
  color: var(--cream);
}

/* ------------------------------------------------------------------ */
/*  How it works (sticky scrollytelling)                               */
/* ------------------------------------------------------------------ */

.how {
  position: relative;
  padding: 10vh 0 6vh;
}

.how__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.how__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
}

.how__blob {
  position: absolute;
  width: min(80%, 560px);
  aspect-ratio: 1;
  border-radius: 48% 52% 55% 45% / 50% 45% 55% 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgb(167 123 255 / 0.5),
    rgb(90 182 255 / 0.18) 50%,
    transparent 75%
  );
  filter: blur(26px);
  animation: morph 14s ease-in-out infinite;
  transition: background 1s ease;
}

.how[data-step="2"] .how__blob {
  background: radial-gradient(
    circle at 60% 40%,
    rgb(255 200 87 / 0.45),
    rgb(255 122 107 / 0.18) 50%,
    transparent 75%
  );
}

.how[data-step="3"] .how__blob {
  background: radial-gradient(
    circle at 50% 60%,
    rgb(95 211 166 / 0.5),
    rgb(255 138 201 / 0.2) 50%,
    transparent 75%
  );
}

.how__poses {
  position: relative;
  width: min(66%, 420px);
  aspect-ratio: 3 / 4;
}

.pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  transition:
    opacity 0.7s ease,
    transform 0.9s var(--ease-out);
  filter: drop-shadow(0 30px 40px rgb(13 9 38 / 0.5));
}

.how[data-step="1"] .pose--1,
.how[data-step="2"] .pose--2,
.how[data-step="3"] .pose--3 {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: float 6s ease-in-out infinite;
}

.how[data-step="3"] .pose--3 {
  animation: bounce 1.6s var(--ease-spring) infinite;
}

.mock {
  position: absolute;
  opacity: 0;
  transform: translateY(26px) scale(0.94);
  transition:
    opacity 0.6s ease,
    transform 0.9s var(--ease-out);
  pointer-events: none;
}

.how[data-step="1"] .mock--1,
.how[data-step="2"] .mock--2,
.how[data-step="3"] .mock--3 {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
}

.mock--1 {
  right: -6%;
  top: 12%;
  width: min(300px, 48%);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgb(13 9 38 / 0.9);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--cream-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.mock__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5d7c2;
}

.mock__bar span {
  margin-left: auto;
}

.mock__body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.mock__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.mock__meta,
.mock__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mock__hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.mock__btn {
  margin-top: 4px;
  padding: 11px;
  border-radius: 12px;
  text-align: center;
  background: var(--grape);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe7f7;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.tag--sun {
  background: var(--sun);
  color: var(--ink);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  border: 2px solid var(--cream);
}

.avatar--coral {
  background: var(--coral);
}

.avatar--sky {
  background: var(--sky);
  margin-left: -12px;
}

.avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
}

.mock--2 {
  left: -4%;
  bottom: 14%;
  width: min(320px, 52%);
}

.ipad {
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(145deg, #3a3350, #171329);
  box-shadow:
    0 40px 80px -30px rgb(13 9 38 / 0.95),
    inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.ipad__screen {
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
  padding: 14px;
  aspect-ratio: 4 / 3;
  display: grid;
  align-content: start;
}

.kidcard__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kidcard__head b {
  display: block;
  font-size: 1rem;
}

.kidcard__head small {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.72rem;
}

.kidcard__quest {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px -10px rgb(30 27 46 / 0.3);
  font-weight: 800;
  font-size: 0.9rem;
}

.kidcard__done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.8rem;
}

.kidcard__done i,
.approve__check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
}

.kidcard__done i::after,
.approve__check::after,
.quest__check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.how[data-step="2"] .kidcard__done {
  animation: tap 1.6s var(--ease-spring) 0.8s both;
}

.mock--3 {
  right: 2%;
  bottom: 12%;
  width: min(340px, 56%);
}

.approve {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgb(13 9 38 / 0.9);
}

.approve__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.approve__check {
  width: 28px;
  height: 28px;
  background: var(--mint);
  flex: none;
}

.approve__check::after {
  left: 10px;
  top: 6px;
  width: 6px;
  height: 12px;
  border-color: var(--ink);
}

.approve__row > div {
  flex: 1;
  min-width: 0;
}

.approve__row b {
  display: block;
  font-size: 0.95rem;
}

.approve__row small {
  display: block;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.approve__pts {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sun);
  font-weight: 900;
}

.how[data-step="3"] .approve__pts {
  animation: pop 0.8s var(--ease-spring) 0.6s both;
}

.reward {
  display: grid;
  gap: 8px;
}

.reward__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 800;
}

.reward__bar {
  height: 10px;
  border-radius: 999px;
  background: #ece3d6;
  overflow: hidden;
}

.reward__bar i {
  display: block;
  height: 100%;
  width: 70%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--grape), var(--bubblegum));
  transition: width 1.4s var(--ease-out);
}

.how[data-step="3"] .mock--3 .reward__bar i {
  width: 86%;
  transition-delay: 0.9s;
}

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

.step {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vh 0;
}

.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--sun);
  letter-spacing: 0.1em;
}

.step h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings:
    "opsz" 96,
    "SOFT" 50;
}

.step p {
  margin: 20px 0 0;
  max-width: 460px;
  font-size: 1.1rem;
  color: rgb(255 248 238 / 0.82);
}

/* ------------------------------------------------------------------ */
/*  Try it (interactive board)                                         */
/* ------------------------------------------------------------------ */

.play {
  position: relative;
  padding: 14vh 0 10vh;
}

.board {
  position: relative;
  width: min(760px, 100% - 2 * var(--gutter));
  margin: 56px auto 0;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--cream);
  color: var(--ink);
  box-shadow:
    0 60px 120px -50px rgb(13 9 38 / 0.9),
    0 0 0 1px rgb(255 255 255 / 0.4) inset;
  isolation: isolate;
}

.board::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 50%, rgb(255 200 87 / 0.25), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.board__fx {
  position: absolute;
  inset: -120px;
  width: calc(100% + 240px);
  height: calc(100% + 240px);
  z-index: 5;
  pointer-events: none;
}

.board__kid {
  display: flex;
  align-items: center;
  gap: 14px;
}

.board__who b {
  display: block;
  font-size: 1.15rem;
}

.board__who small {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.points {
  margin-left: auto;
  text-align: right;
  display: grid;
  line-height: 1;
}

.points__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.points__num.is-bumping {
  animation: bump 0.6s var(--ease-spring);
}

.points__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.quests {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.quest {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px -18px rgb(30 27 46 / 0.4);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.quest:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgb(30 27 46 / 0.5);
}

.quest:active {
  transform: scale(0.98);
}

.quest__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cream-soft);
  font-size: 1.5rem;
}

.quest__text b {
  display: block;
  font-size: 1.02rem;
}

.quest__text small {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.78rem;
}

.quest__pts {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sun);
  font-weight: 900;
  font-size: 0.9rem;
}

.quest__check {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px dashed #d9cdb9;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.5s var(--ease-spring);
}

.quest__check::after {
  left: 9px;
  top: 4px;
  width: 6px;
  height: 12px;
  opacity: 0;
  transform: rotate(45deg) scale(0.4);
  transition:
    opacity 0.2s ease,
    transform 0.4s var(--ease-spring);
}

.quest.is-done {
  background: #eefbf5;
}

.quest.is-done .quest__text b {
  text-decoration: line-through;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
}

.quest.is-done .quest__check {
  background: var(--mint);
  border-color: var(--mint);
  border-style: solid;
  transform: scale(1.1) rotate(8deg);
}

.quest.is-done .quest__check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
  border-color: var(--ink);
}

.quest:disabled {
  cursor: default;
}

.quest:disabled:hover {
  transform: none;
}

.reward--board {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
}

.reward--board .reward__bar i {
  width: 84.2%;
}

/* Clipping window above the board: Jax rises out of it as if from behind the card. */
.board__peek {
  position: absolute;
  right: 4%;
  bottom: calc(100% - 1px);
  width: min(72%, 440px);
  height: 230px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.board__jax {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(130px, 44%, 190px);
  transform: translateY(104%);
  transition: transform 0.9s var(--ease-spring);
}

.board__jax img {
  width: 100%;
  height: auto;
  /* The cutout carries a sliver of transparent padding below the paws. */
  margin-bottom: -5%;
  filter: drop-shadow(0 -10px 20px rgb(13 9 38 / 0.35));
}

.board__jax.is-up {
  transform: translateY(0);
}

.bubble {
  position: absolute;
  right: 92%;
  top: 14%;
  width: max-content;
  max-width: 180px;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 14px 30px -14px rgb(13 9 38 / 0.6);
  opacity: 0;
  transform: translate(10px, 8px) scale(0.8);
  transform-origin: right bottom;
  transition:
    opacity 0.3s ease,
    transform 0.5s var(--ease-spring);
}

.board__jax.is-up .bubble {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

.board__complete {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: inherit;
  background: linear-gradient(160deg, #fff8ee 0%, #ffefd9 100%);
  animation: complete-in 0.8s var(--ease-out) both;
}

.board__complete[hidden] {
  display: none;
}

.board__complete img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: bounce 1.6s var(--ease-spring) infinite;
  filter: drop-shadow(0 30px 40px rgb(13 9 38 / 0.3));
}

.board__complete .eyebrow {
  color: var(--ink-soft);
}

.board__complete h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.board__complete p {
  margin: 10px 0 20px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/*  Promise                                                            */
/* ------------------------------------------------------------------ */

.promise {
  padding: 24vh var(--gutter);
  display: grid;
  place-items: center;
}

.promise__text {
  max-width: 1040px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings:
    "opsz" 144,
    "SOFT" 80;
  font-size: clamp(1.9rem, 4.4vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.promise__text .w {
  display: inline-block;
  opacity: 0.16;
  transition:
    opacity 0.25s linear,
    color 0.4s ease;
  will-change: opacity;
}

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

.promise__text .w--accent.is-lit {
  color: var(--sun);
}

/* ------------------------------------------------------------------ */
/*  Features (constellation)                                           */
/* ------------------------------------------------------------------ */

.features {
  position: relative;
  padding: 8vh 0 14vh;
}

.constellation {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--content);
  margin: 60px auto 0;
  padding: 0 var(--gutter);
}

.constellation__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgb(255 200 87 / 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  stroke-linecap: round;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 0.4s;
}

.constellation.in .constellation__lines {
  opacity: 1;
}

.constellation__lines path {
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  transition: stroke-dashoffset 3.2s var(--ease-smooth) 0.2s;
}

.constellation.in .constellation__lines path {
  stroke-dashoffset: 0;
}

.feat {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--radius-lg);
  background: rgb(255 248 238 / 0.05);
  border: 1px solid rgb(255 248 238 / 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.6s var(--ease-out),
    background-color 0.4s ease,
    border-color 0.4s ease,
    opacity 0.9s ease;
  opacity: 0;
  transform: translateY(26px);
}

.constellation.in .feat {
  opacity: 1;
  transform: none;
}

.constellation.in .feat--2 {
  transition-delay: 0.1s;
}

.constellation.in .feat--3 {
  transition-delay: 0.2s;
}

.constellation.in .feat--4 {
  transition-delay: 0.3s;
}

.constellation.in .feat--5 {
  transition-delay: 0.4s;
}

.constellation.in .feat--6 {
  transition-delay: 0.5s;
}

.feat:hover {
  transform: translateY(-6px);
  background: rgb(255 248 238 / 0.09);
  border-color: rgb(255 200 87 / 0.4);
}

.feat::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 14px var(--sun);
  animation: twinkle 3s ease-in-out infinite;
  animation-delay: calc(var(--n, 0) * 0.5s);
}

.feat--2::after {
  --n: 1;
}

.feat--3::after {
  --n: 2;
}

.feat--4::after {
  --n: 3;
}

.feat--5::after {
  --n: 4;
}

.feat--6::after {
  --n: 5;
}

.feat__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgb(255 200 87 / 0.25), rgb(255 122 107 / 0.15));
  border: 1px solid rgb(255 200 87 / 0.3);
}

.feat__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--sun);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat h3 {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.feat p {
  margin: 0;
  color: rgb(255 248 238 / 0.75);
  font-size: 0.98rem;
}

.feat--1 {
  grid-column: span 1;
}

.feat--2 {
  grid-column: span 2;
}

.feat--3,
.feat--4,
.feat--5 {
  grid-column: span 1;
}

.feat--6 {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  align-items: center;
}

.feat--6 h3 {
  margin-top: 0;
}

.feat--6 .feat__icon {
  grid-row: span 2;
}

/* ------------------------------------------------------------------ */
/*  Night CTA                                                          */
/* ------------------------------------------------------------------ */

.night {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 16vh var(--gutter) 34vh;
  overflow: hidden;
}

.night__moon {
  position: absolute;
  top: 10%;
  right: 12%;
  width: clamp(80px, 10vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9e6, #ffe9a8 60%, #f5d57a);
  box-shadow:
    0 0 60px 20px rgb(255 233 168 / 0.35),
    0 0 160px 60px rgb(255 233 168 / 0.12);
  animation: breathe 8s ease-in-out infinite;
}

.night__moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 30%, rgb(0 0 0 / 0.06) 0 8%, transparent 9%),
    radial-gradient(circle at 30% 65%, rgb(0 0 0 / 0.05) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 70%, rgb(0 0 0 / 0.05) 0 6%, transparent 7%);
}

.shooting {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shooting i {
  position: absolute;
  top: 12%;
  left: 20%;
  width: 180px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgb(255 248 238 / 0.9));
  transform: rotate(-24deg) translateX(0);
  opacity: 0;
  animation: shoot 9s linear infinite;
}

.shooting i:nth-child(2) {
  top: 30%;
  left: 60%;
  animation-delay: 3.5s;
  width: 120px;
}

.shooting i:nth-child(3) {
  top: 6%;
  left: 75%;
  animation-delay: 6.2s;
  width: 220px;
}

.night__hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 26vh;
  fill: var(--night-deep);
}

.cottage {
  position: absolute;
  bottom: 13vh;
  right: 16%;
  width: clamp(60px, 7vw, 100px);
  fill: #090620;
}

.cottage__window {
  fill: var(--sun);
  filter: drop-shadow(0 0 10px var(--sun));
  animation: flicker 4s ease-in-out infinite;
}

.night__copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.night__copy .display {
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
}

.night__jax {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  width: clamp(220px, 28vw, 400px);
  margin: 0;
  /* `translate` rather than `transform` so the data-reveal transition doesn't clobber it. */
  translate: -50% 0;
  z-index: 3;
}

.night__jax img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.5));
  animation: snooze 5s ease-in-out infinite;
  transform-origin: bottom center;
}

.zzz {
  position: absolute;
  top: 4%;
  left: 30%;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream-soft);
}

.zzz i {
  position: absolute;
  opacity: 0;
  font-size: 1.4rem;
  animation: zzz 4s ease-in-out infinite;
}

.zzz i:nth-child(2) {
  font-size: 1.9rem;
  animation-delay: 1.3s;
}

.zzz i:nth-child(3) {
  font-size: 2.5rem;
  animation-delay: 2.6s;
}

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

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px var(--gutter) 40px;
  background: var(--night-deep);
  border-top: 1px solid rgb(255 248 238 / 0.07);
  font-size: 0.88rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer__brand img {
  border-radius: 8px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-weight: 700;
  opacity: 0.8;
}

.footer__links a:hover {
  color: var(--sun);
}

.footer__fine {
  width: 100%;
  margin: 8px 0 0;
  color: rgb(255 248 238 / 0.5);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/*  Reveal helpers                                                     */
/* ------------------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 1s var(--ease-out);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ */
/*  Keyframes                                                          */
/* ------------------------------------------------------------------ */

@keyframes pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgb(255 200 87 / 0.22),
      0 0 18px var(--sun);
  }
  50% {
    box-shadow:
      0 0 0 7px rgb(255 200 87 / 0.1),
      0 0 28px var(--sun);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes paw {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1) translateX(0);
  }
  to {
    transform: scale(1.06) translateX(-1.5%);
  }
}

@keyframes drift {
  from {
    translate: -10vw 0;
  }
  to {
    translate: 110vw 0;
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
    rotate: -0.6deg;
  }
  50% {
    translate: 0 -18px;
    rotate: 0.8deg;
  }
}

@keyframes shadow {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateX(-50%) scale(0.82);
    opacity: 0.55;
  }
}

@keyframes enter-jax {
  from {
    opacity: 0;
    translate: 0 60px;
    scale: 0.92;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes chip-pop {
  0% {
    opacity: 0;
    translate: 0 14px;
    scale: 0.8;
  }
  6% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  34% {
    opacity: 1;
    translate: 0 -6px;
  }
  40% {
    opacity: 0;
    translate: 0 -24px;
    scale: 0.9;
  }
  100% {
    opacity: 0;
  }
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  70% {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 48% 52% 55% 45% / 50% 45% 55% 50%;
    transform: rotate(0deg) scale(1);
  }
  33% {
    border-radius: 55% 45% 42% 58% / 45% 58% 42% 55%;
    transform: rotate(20deg) scale(1.05);
  }
  66% {
    border-radius: 42% 58% 60% 40% / 55% 40% 60% 45%;
    transform: rotate(-15deg) scale(0.97);
  }
}

@keyframes bounce {
  0%,
  100% {
    translate: 0 0;
  }
  40% {
    translate: 0 -26px;
  }
  60% {
    translate: 0 -22px;
  }
}

@keyframes tap {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(0.9);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.22);
    color: var(--fox-deep);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes complete-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes shoot {
  0%,
  88% {
    opacity: 0;
    transform: rotate(-24deg) translateX(0);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(-24deg) translateX(-50vw);
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  45% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.95;
  }
  55% {
    opacity: 0.75;
  }
}

@keyframes snooze {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.03);
  }
}

@keyframes zzz {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(28px, -70px) scale(1.2);
  }
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(72px + 4vh);
    padding-bottom: 14vh;
    gap: 8px;
  }

  .hero__stage {
    min-height: 0;
    order: -1;
    margin-top: 10px;
  }

  .hero__jax {
    width: min(60%, 360px);
  }

  .hero__copy {
    text-align: center;
    margin: 0 auto;
  }

  .hero__copy .lede,
  .hero__copy .cta-row,
  .hero__facts {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .how__inner {
    grid-template-columns: 1fr;
  }

  .how__stage {
    height: 46svh;
    top: 0;
    z-index: 2;
    background: linear-gradient(
      180deg,
      rgb(27 19 64 / 0.92) 0%,
      rgb(27 19 64 / 0.85) 70%,
      transparent 100%
    );
  }

  .how__poses {
    width: min(50%, 280px);
  }

  .mock {
    display: none;
  }

  .step {
    min-height: 60svh;
    padding: 6vh 0;
    text-align: center;
    align-items: center;
  }

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

  .feat--2,
  .feat--6 {
    grid-column: span 2;
  }

  .night__moon {
    right: 6%;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav__links {
    display: none;
  }

  .eyebrow {
    letter-spacing: 0.12em;
    font-size: 0.72rem;
  }

  .hero__copy::before {
    inset: -6% -10%;
  }

  .display {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .chip--2 {
    right: -2%;
  }

  .board {
    padding: 20px 16px;
    border-radius: 28px;
  }

  .board__fx {
    inset: -80px;
    width: calc(100% + 160px);
    height: calc(100% + 160px);
  }

  .quest {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 14px;
  }

  .quest__pts {
    display: none;
  }

  .board__complete {
    grid-template-columns: 1fr;
    text-align: center;
    overflow: auto;
    padding: 20px;
  }

  .board__complete img {
    max-height: 140px;
  }

  .constellation {
    grid-template-columns: 1fr;
  }

  .feat--2,
  .feat--6 {
    grid-column: span 1;
  }

  .feat--6 {
    grid-template-columns: 1fr;
  }

  .feat--6 .feat__icon {
    grid-row: auto;
  }

  .night {
    padding-bottom: 40vh;
  }

  .night__jax {
    width: 70vw;
  }

  .cottage {
    right: 6%;
  }
}

/* ------------------------------------------------------------------ */
/*  Reduced motion                                                     */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* The global kill-switch has to beat every component rule, hence !important. */
  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: reduced-motion override */
    animation-duration: 0.01ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: reduced-motion override */
    animation-iteration-count: 1 !important;
    /* biome-ignore lint/complexity/noImportantStyles: reduced-motion override */
    transition-duration: 0.01ms !important;
    /* biome-ignore lint/complexity/noImportantStyles: reduced-motion override */
    transition-delay: 0s !important;
  }

  .chip {
    opacity: 1;
  }

  .promise__text .w {
    opacity: 1;
  }

  .constellation__lines path {
    stroke-dashoffset: 0;
  }
}
