/* ============================================================
   Animallo — marketing site
   Light, friendly, kid-flavoured design system
   ============================================================ */

:root {
  --cream: #FFF9EF;
  --cream-2: #FFF3DC;
  --sky-1: #BDE8FF;
  --sky-2: #E3F6FF;
  --green: #6FBF5A;
  --green-dark: #4E9E3C;
  --green-soft: #E4F4DC;
  --orange: #F49B33;
  --orange-soft: #FDEBD2;
  --pink: #F27DA5;
  --pink-soft: #FDE4ED;
  --purple: #9B7EDE;
  --purple-soft: #ECE4FB;
  --blue: #56B7E6;
  --blue-soft: #DFF1FB;
  --yellow: #FFD44D;
  --ink: #4A4237;
  --muted: #8B7F6C;
  --card: #FFFFFF;
  --line: rgba(74, 66, 55, 0.10);
  --footer-bg: #D8EECC;
  --radius: 28px;
  --shadow-card: 0 10px 30px rgba(74, 66, 55, 0.10);
  --shadow-pop: 0 16px 44px rgba(74, 66, 55, 0.16);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pad: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Comic Sans MS', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.12; }

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

/* ---------- scroll progress rainbow ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 200;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange), var(--pink), var(--purple), var(--blue));
  transform: scaleX(0); transform-origin: left;
  border-radius: 0 4px 4px 0;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 249, 239, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(74, 66, 55, 0.08);
}
.nav__logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.35rem; font-weight: 900;
}
.nav__logo img { border-radius: 12px; }
.nav__links { display: flex; gap: clamp(0.8rem, 2vw, 1.6rem); margin-left: auto; }
.nav__links a {
  font-weight: 800; font-size: 1rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-bounce);
}
.nav__links a:hover { background: var(--green-soft); color: var(--green-dark); transform: rotate(-2deg) scale(1.06); }
.nav__cta {
  display: inline-block; background: var(--orange); color: #fff; white-space: nowrap;
  font-weight: 900; padding: 0.6rem 1.3rem; border-radius: 999px;
  box-shadow: 0 5px 0 #d17f1c;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s ease;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #d17f1c; }
.nav__cta:active { transform: translateY(3px); box-shadow: 0 2px 0 #d17f1c; }
.nav__lang {
  display: inline-block; white-space: nowrap;
  background: #fff; border: 2px solid var(--line);
  font-weight: 900; font-size: 0.9rem; padding: 0.45rem 0.9rem; border-radius: 999px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-bounce), border-color 0.25s ease;
}
.nav__lang:hover { transform: rotate(-2deg) scale(1.08); border-color: var(--green); }
.nav__burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--cream-2) 100%);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 12vh, 8rem) var(--pad) 6rem;
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; top: 6%; right: 8%; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, #FFE38A 0%, var(--yellow) 60%);
  box-shadow: 0 0 60px 20px rgba(255, 212, 77, 0.55);
  animation: sunPulse 5s ease-in-out infinite;
}
@keyframes sunPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px 20px rgba(255,212,77,0.55); }
  50% { transform: scale(1.07); box-shadow: 0 0 80px 30px rgba(255,212,77,0.7); }
}
.cloud {
  position: absolute; background: #fff; border-radius: 999px; opacity: 0.9;
  animation: cloudDrift linear infinite;
}
.cloud::before, .cloud::after {
  content: ''; position: absolute; background: #fff; border-radius: 50%;
}
.cloud--1 { top: 12%; left: -140px; width: 140px; height: 44px; animation-duration: 55s; }
.cloud--1::before { width: 60px; height: 60px; top: -28px; left: 22px; }
.cloud--1::after { width: 44px; height: 44px; top: -18px; left: 68px; }
.cloud--2 { top: 26%; left: -220px; width: 190px; height: 56px; animation-duration: 75s; animation-delay: -30s; opacity: 0.75; }
.cloud--2::before { width: 80px; height: 80px; top: -36px; left: 30px; }
.cloud--2::after { width: 56px; height: 56px; top: -24px; left: 95px; }
.cloud--3 { top: 6%; left: -100px; width: 110px; height: 36px; animation-duration: 48s; animation-delay: -12s; opacity: 0.65; }
.cloud--3::before { width: 48px; height: 48px; top: -22px; left: 18px; }
.cloud--3::after { width: 34px; height: 34px; top: -14px; left: 55px; }
.cloud--4 { top: 42%; left: -160px; width: 150px; height: 46px; animation-duration: 65s; animation-delay: -50s; opacity: 0.55; }
.cloud--4::before { width: 62px; height: 62px; top: -28px; left: 24px; }
.cloud--4::after { width: 46px; height: 46px; top: -20px; left: 72px; }
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 260px)); }
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center; max-width: 1200px; margin: 0 auto; width: 100%;
}
.hero__eyebrow {
  display: inline-block; background: #fff; border: 2px solid var(--line);
  padding: 0.4rem 1.1rem; border-radius: 999px;
  font-weight: 800; color: var(--green-dark); margin-bottom: 1.2rem;
  box-shadow: var(--shadow-card);
}
.hero__title {
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .char { display: inline-block; }
.hero__title .char:nth-child(5n+1) { color: var(--green); }
.hero__title .char:nth-child(5n+2) { color: var(--orange); }
.hero__title .char:nth-child(5n+3) { color: var(--blue); }
.hero__title .char:nth-child(5n+4) { color: var(--pink); }
.hero__title .char:nth-child(5n+5) { color: var(--purple); }
.hero__sub {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem); font-weight: 600;
  color: var(--ink); max-width: 32rem; margin-bottom: 1.8rem;
}
.hero__sub strong { color: var(--green-dark); }
.hero__note { margin-top: 1rem; font-weight: 700; color: var(--muted); font-size: 0.95rem; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--ink); color: #fff;
  padding: 0.65rem 1.3rem; border-radius: 18px;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22);
  will-change: transform;
}
.store-btn:hover { transform: translateY(-3px) scale(1.03); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 800; font-size: 1.05rem; }
.store-btn span small { font-size: 0.68rem; font-weight: 600; opacity: 0.8; }
.store-btn--apple { background: #1d1d1f; }
.store-btn--play { background: var(--green-dark); box-shadow: 0 6px 0 #3a7a2c; }

.hero__art { position: relative; justify-self: center; }
.hero__phone {
  width: clamp(230px, 24vw, 320px);
  border-radius: 34px; overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-pop);
  transform: rotate(3deg);
  background: #fff;
}
.hero__phone img { width: 100%; height: auto; }

.floaty { position: absolute; font-size: clamp(1.6rem, 2.6vw, 2.4rem); animation: floatBob 4s ease-in-out infinite; z-index: 3; }
.floaty--note1 { top: -6%; left: -12%; animation-delay: -1s; }
.floaty--note2 { top: 18%; right: -14%; animation-delay: -2.4s; }
.floaty--paw { bottom: 6%; left: -16%; animation-delay: -0.6s; }
.floaty--carrot { bottom: -5%; right: -8%; animation-delay: -3.2s; }
.floaty--butterfly { top: -10%; right: 14%; animation-delay: -1.8s; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

.hero__scrollhint {
  position: relative; z-index: 2; margin: 3rem auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-weight: 700; color: var(--muted); font-size: 0.85rem;
}
.hero__mouse {
  width: 26px; height: 42px; border: 3px solid var(--muted); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 7px;
}
.hero__wheel {
  width: 4px; height: 8px; background: var(--muted); border-radius: 4px;
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.wave { display: block; width: 100%; height: clamp(40px, 7vw, 90px); }
.wave--hero { position: absolute; bottom: -1px; left: 0; z-index: 4; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) var(--pad); }
.section__head { max-width: 780px; margin: 0 auto 3rem; text-align: center; }
.section__eyebrow {
  display: inline-block; font-weight: 800; color: var(--green-dark);
  background: var(--green-soft); padding: 0.35rem 1rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.section__title { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.section__title .line { display: block; overflow: hidden; }
.section__title .line > span { display: block; }
.section__sub { margin-top: 1rem; font-size: 1.1rem; font-weight: 600; color: var(--muted); }

/* ---------- stats ---------- */
.stats { padding: clamp(2.5rem, 6vw, 4rem) var(--pad); }
.stats__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
}
.stat {
  background: var(--card); border-radius: var(--radius);
  border: 3px dashed var(--line);
  padding: 1.6rem 1rem; text-align: center;
  transition: transform 0.3s var(--ease-bounce), border-color 0.3s ease;
}
.stat:hover { transform: translateY(-6px) rotate(-1.5deg); border-color: var(--green); }
.stat__num {
  display: block; font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900;
  color: var(--green-dark);
}
.stat:nth-child(2) .stat__num { color: var(--orange); }
.stat:nth-child(3) .stat__num { color: var(--blue); }
.stat:nth-child(4) .stat__num { color: var(--pink); }
.stat__label { font-weight: 700; color: var(--muted); }

/* ---------- game modes ---------- */
.modes__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem;
}
.mode-card {
  --mx: 50%; --my: 50%;
  position: relative; background: var(--card); border-radius: var(--radius);
  padding: 2.2rem 2rem 2rem; box-shadow: var(--shadow-card);
  border: 3px solid transparent; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.mode-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 212, 77, 0.25), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.mode-card:hover::before { opacity: 1; }
.mode-card:hover { box-shadow: var(--shadow-pop); }
.mode-card--blue:hover { border-color: var(--blue); }
.mode-card--orange:hover { border-color: var(--orange); }
.mode-card--green:hover { border-color: var(--green); }
.mode-card--purple:hover { border-color: var(--purple); }
.mode-card__icon {
  width: 84px; height: 84px; border-radius: 24px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  transition: transform 0.35s var(--ease-bounce);
}
.mode-card:hover .mode-card__icon { transform: rotate(-8deg) scale(1.12); }
.mode-card--blue .mode-card__icon { background: var(--blue-soft); }
.mode-card--orange .mode-card__icon { background: var(--orange-soft); }
.mode-card--green .mode-card__icon { background: var(--green-soft); }
.mode-card--purple .mode-card__icon { background: var(--purple-soft); }
.mode-card__icon img { width: 62px; height: 62px; object-fit: contain; }
.mode-card h3 { font-size: 1.45rem; margin-bottom: 0.5rem; }
.mode-card p { color: var(--muted); font-weight: 600; }

/* ---------- worlds ---------- */
.worlds { background: linear-gradient(180deg, var(--cream) 0%, var(--sky-2) 100%); }
.worlds__pin {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.5rem, 3vh, 2.5rem) 0; overflow: hidden;
}
.section__head--worlds { margin-bottom: 2rem; padding: 0 var(--pad); }
@media (min-width: 981px) {
  /* clear the fixed nav while the section is pinned at the viewport top */
  .section__head--worlds { padding-top: 4rem; }
}
.worlds__progress {
  /* a trail of little seeds for the carrot to hop along */
  margin: 1.6rem auto 0; width: min(320px, 70%); height: 24px; position: relative;
  background-image: radial-gradient(circle, #C9E2BA 3.5px, transparent 4px);
  background-size: 22px 10px; background-repeat: repeat-x; background-position: left center;
}
.worlds__progress::after {
  content: '🥕'; position: absolute; right: -14px; top: 50%;
  transform: translateY(-52%) rotate(20deg); font-size: 1.4rem;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-bounce);
}
/* the bunny ate it */
.worlds__progress.is-eaten::after {
  opacity: 0; transform: translateY(-52%) rotate(20deg) scale(0.1);
}
.worlds__progress span {
  position: absolute; top: 50%; left: 0;
  font-size: 1.7rem; will-change: left; filter: drop-shadow(0 3px 3px rgba(74, 66, 55, 0.25));
  animation: trailHop 0.85s ease-in-out infinite;
}
@keyframes trailHop {
  0%, 100% { transform: translate(-50%, -50%) scaleY(1); }
  50% { transform: translate(-50%, -80%) scaleY(1.05); }
}
.worlds__track {
  display: flex; gap: clamp(1.2rem, 2.5vw, 2rem);
  padding: 1rem var(--pad) 2rem; width: max-content;
}
.world-card {
  width: clamp(240px, 26vw, 320px); flex-shrink: 0;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-bounce), box-shadow 0.35s ease;
}
.world-card:hover { transform: translateY(-10px) rotate(1.5deg) scale(1.02); box-shadow: var(--shadow-pop); }
.world-card img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.world-card h3 { font-size: 1.3rem; padding: 1rem 1.3rem 0; }
.world-card p { padding: 0.2rem 1.3rem 1.3rem; color: var(--muted); font-weight: 600; font-size: 0.98rem; }
@media (min-width: 981px) {
  /* the pinned section fills the screen, so cards must fit the viewport height too */
  .world-card { width: min(26vw, 320px, max(210px, calc((100svh - 490px) / 1.15))); }
}

/* ---------- animals marquee ---------- */
.animals { padding: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; }
.animals .section__head { padding: 0 var(--pad); }
.marquee { overflow: hidden; padding: 1.1rem 0; }
.marquee__track { display: flex; gap: 1.4rem; width: max-content; will-change: transform; }
.animal-chip {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--card); border-radius: 999px;
  padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-bounce);
}
.animal-chip:hover { transform: scale(1.08) rotate(-2deg); }
.animal-chip img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--yellow);
}
.marquee[data-marquee-dir="-1"] .animal-chip img { border-color: var(--pink); }
.animal-chip span { font-weight: 800; font-size: 1.05rem; }

/* ---------- screenshots fan ---------- */
.screens { background: var(--cream-2); border-radius: 60px 60px 0 0; }
.screens__fan {
  display: flex; justify-content: center; gap: clamp(0.6rem, 2vw, 1.6rem);
  max-width: 1100px; margin: 0 auto; perspective: 1200px;
}
.screen-shot {
  width: clamp(150px, 21vw, 240px); flex-shrink: 0;
  border-radius: 26px; overflow: hidden; border: 5px solid #fff;
  box-shadow: var(--shadow-pop); background: #fff;
  transition: transform 0.4s var(--ease-bounce), z-index 0s;
}
.screen-shot:nth-child(1) { transform: rotate(-5deg) translateY(14px); }
.screen-shot:nth-child(2) { transform: rotate(2deg); }
.screen-shot:nth-child(3) { transform: rotate(-2deg); }
.screen-shot:nth-child(4) { transform: rotate(5deg) translateY(14px); }
.screen-shot:hover { transform: rotate(0deg) translateY(-12px) scale(1.06); z-index: 5; }
.screen-shot img { width: 100%; height: auto; }

/* ---------- parents ---------- */
.parents {
  background: linear-gradient(180deg, var(--green-soft) 0%, #F0F8EA 100%);
  border-radius: 60px 60px 0 0; margin-top: -60px; position: relative; z-index: 2;
  color: var(--ink);
}
.parents__statement {
  max-width: 760px; margin: 0 auto 3rem; text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.5;
  color: var(--green-dark);
}
.parents__statement .word { opacity: 0.2; display: inline-block; white-space: pre; }
.parents__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.trust-card {
  --mx: 50%; --my: 50%;
  background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-card);
  will-change: transform; transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.trust-card:hover { border-color: var(--green); box-shadow: var(--shadow-pop); }
.trust-card__emoji { font-size: 2.2rem; display: inline-block; margin-bottom: 0.8rem; }
.trust-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.trust-card p { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.parents__policy { text-align: center; margin-top: 2.6rem; }
.btn-ghost {
  display: inline-block; font-weight: 900; color: var(--green-dark);
  border: 3px solid var(--green); border-radius: 999px;
  padding: 0.7rem 1.6rem; background: #fff;
  transition: background 0.25s ease, transform 0.25s var(--ease-bounce);
}
.btn-ghost:hover { background: var(--green-soft); transform: scale(1.05) rotate(-1deg); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(180deg, #F0F8EA 0%, var(--cream) 100%); padding-top: 0; margin-top: -2px; }
.cta__card {
  max-width: 900px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2));
  border-radius: 44px;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem) clamp(5rem, 9vw, 6.5rem);
  box-shadow: var(--shadow-pop);
  position: relative; overflow: hidden;
}
/* a little scene inside the card: clouds drift by, a meadow grows at the bottom */
.cta__card > *:not(.cta__scene) { position: relative; z-index: 1; }
.cta__scene { position: absolute; inset: 0; pointer-events: none; }
.cta-cloud {
  position: absolute; background: #fff; border-radius: 999px;
  animation: ctaDrift linear infinite;
}
.cta-cloud::before, .cta-cloud::after {
  content: ''; position: absolute; background: #fff; border-radius: 50%;
}
.cta-cloud--1 { top: 14%; width: 110px; height: 34px; opacity: 0.9; animation-duration: 42s; animation-delay: -8s; }
.cta-cloud--1::before { width: 46px; height: 46px; top: -22px; left: 18px; }
.cta-cloud--1::after { width: 34px; height: 34px; top: -14px; left: 54px; }
.cta-cloud--2 { top: 36%; width: 84px; height: 26px; opacity: 0.6; animation-duration: 58s; animation-delay: -34s; }
.cta-cloud--2::before { width: 36px; height: 36px; top: -17px; left: 14px; }
.cta-cloud--2::after { width: 26px; height: 26px; top: -11px; left: 42px; }
.cta-cloud--3 { top: 6%; width: 68px; height: 22px; opacity: 0.5; animation-duration: 34s; animation-delay: -20s; }
.cta-cloud--3::before { width: 30px; height: 30px; top: -14px; left: 11px; }
.cta-cloud--3::after { width: 22px; height: 22px; top: -9px; left: 34px; }
@keyframes ctaDrift {
  from { transform: translateX(-160px); }
  to { transform: translateX(1060px); }
}
.cta__hill {
  position: absolute; left: -12%; right: -12%; border-radius: 50% 50% 0 0;
}
.cta__hill--back { bottom: -46px; height: 120px; background: #CDEBBE; }
.cta__hill--front { bottom: -64px; height: 112px; background: #B9E2A4; }
.cta__flower {
  position: absolute; font-size: 1.5rem;
  transform-origin: bottom center;
  animation: flowerSway 3.4s ease-in-out infinite alternate;
}
.cta__flower--1 { left: 9%; bottom: 26px; }
.cta__flower--2 { right: 12%; bottom: 34px; animation-delay: -1.2s; }
.cta__flower--3 { right: 28%; bottom: 12px; font-size: 1.2rem; animation-delay: -2.3s; }
@keyframes flowerSway {
  from { transform: rotate(-8deg); }
  to { transform: rotate(9deg); }
}
.cta__bunny {
  font-size: 3.4rem; display: inline-block; margin-bottom: 0.6rem;
  animation: bunnyHop 2.2s var(--ease-bounce) infinite;
}
@keyframes bunnyHop {
  0%, 100% { transform: translateY(0) scaleY(1); }
  12% { transform: translateY(0) scaleY(0.92) scaleX(1.05); }
  38% { transform: translateY(-22px) scaleY(1.04); }
  62% { transform: translateY(0) scaleY(0.95); }
  72%, 100% { transform: translateY(0) scaleY(1); }
}
.cta__badges { justify-content: center; margin-top: 1.8rem; }
.cta .section__sub { color: var(--ink); opacity: 0.75; }

/* ---------- footer ---------- */
.footer { background: var(--footer-bg); color: var(--ink); }
.footer__inner {
  max-width: 1100px; margin: 0 auto; padding: 3rem var(--pad) 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center;
}
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; font-weight: 800; }
.footer__links a { transition: color 0.2s, transform 0.25s var(--ease-bounce); display: inline-block; }
.footer__links a:hover { color: var(--green-dark); transform: rotate(-2deg) scale(1.08); }
.footer__legal { font-size: 0.9rem; color: var(--muted); font-weight: 600; }

/* ---------- reveal defaults (progressive enhancement) ---------- */
.js [data-reveal],
.js .mode-card,
.js .trust-card,
.js .screen-shot,
.js .stat { visibility: visible; }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing__grid {
  max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem;
  align-items: stretch;
}
.price-card {
  background: var(--card); border-radius: var(--radius);
  border: 3px solid var(--line); box-shadow: var(--shadow-card);
  padding: 2.2rem 2rem; text-align: left; position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: var(--shadow-pop); }
.price-card--premium { border-color: var(--orange); }
.price-card__badge {
  position: absolute; top: -16px; right: 22px;
  background: var(--orange); color: #fff; font-weight: 900; font-size: 0.85rem;
  padding: 0.35rem 1rem; border-radius: 999px; box-shadow: 0 4px 0 #d17f1c;
  transform: rotate(3deg);
}
.price-card__emoji { font-size: 2.4rem; display: block; margin-bottom: 0.6rem; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.price-card__tag { font-weight: 800; color: var(--muted); margin-bottom: 1.2rem; }
.price-card--premium .price-card__tag { color: var(--orange); }
.price-card ul { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.5rem; }
.price-card li { font-weight: 700; padding-left: 2rem; position: relative; }
.price-card li::before { content: '🌱'; position: absolute; left: 0; }
.price-card--premium li::before { content: '🥕'; }
.price-card__note { margin-top: auto; font-weight: 700; color: var(--muted); font-size: 0.92rem; }

.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 1.2rem; }
.faq details {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 1.4rem 1.8rem;
  border: 3px solid transparent; transition: border-color 0.25s ease;
}
.faq details[open] { border-color: var(--green); }
.faq summary {
  font-weight: 900; font-size: 1.1rem; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '🥕'; transition: transform 0.3s var(--ease-bounce); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin-top: 0.8rem; font-weight: 600; color: var(--muted); }

@media (max-width: 700px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* ============================================================
   LEGAL / PRIVACY PAGE
   ============================================================ */
.legal-hero {
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2));
  padding: clamp(7rem, 14vh, 9rem) var(--pad) 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.legal-hero p { font-weight: 700; color: var(--muted); margin-top: 0.6rem; }
.legal-content {
  max-width: 800px; margin: 0 auto; padding: 3rem var(--pad) 5rem;
}
.legal-content section {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 1.8rem 2rem; margin-bottom: 1.4rem;
}
.legal-content h2 {
  font-size: 1.35rem; margin-bottom: 0.7rem; color: var(--green-dark);
}
.legal-content h3 { font-size: 1.05rem; margin: 1rem 0 0.4rem; }
.legal-content p { margin-bottom: 0.7rem; font-weight: 600; color: var(--ink); }
.legal-content ul { margin: 0.4rem 0 0.8rem 1.4rem; font-weight: 600; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content a { color: var(--green-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.legal-content table {
  width: 100%; border-collapse: collapse; margin: 0.8rem 0; font-weight: 600;
}
.legal-content th, .legal-content td {
  border: 2px solid var(--line); padding: 0.6rem 0.9rem; text-align: left;
}
.legal-content th { background: var(--green-soft); color: var(--green-dark); }
.legal-content tr:nth-child(even) td { background: var(--cream); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__art { margin-top: 1.5rem; }
  .parents__grid { grid-template-columns: repeat(2, 1fr); }
  .modes__grid { grid-template-columns: 1fr; max-width: 560px; }
  .worlds__pin { min-height: 0; }
  /* phones and tablets: a plain grid, so the page only ever scrolls vertically */
  .worlds__track {
    width: auto; display: grid; grid-template-columns: repeat(2, 1fr);
    max-width: 700px; margin: 0 auto;
  }
  .world-card { width: 100%; }
  .world-card h3 { font-size: 1.15rem; }
  .world-card p { font-size: 0.9rem; }
  .worlds__progress { display: none; }
  .screens__fan { flex-wrap: wrap; }
  .screen-shot { width: clamp(140px, 40vw, 220px); }
}

@media (max-width: 700px) {
  /* Positioned relative to the nav (not the viewport): the nav carries a
     transform and a backdrop-filter, which on Chrome/Android re-anchors
     position:fixed children to the nav box and clipped the open menu. */
  .nav__links {
    position: absolute; top: 0; left: 0; right: 0; margin: 0;
    height: 100vh; height: 100svh;
    background: var(--cream);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2rem; font-size: 1.5rem; z-index: 90;
    transform: translateY(-105%); visibility: hidden;
    transition: transform 0.45s var(--ease-bounce), visibility 0s 0.45s;
  }
  .nav__links.is-open {
    transform: translateY(0); visibility: visible;
    transition: transform 0.45s var(--ease-bounce), visibility 0s 0s;
  }
  .nav__links a { font-size: 1.5rem; }
  .nav { gap: 0.8rem; }
  .nav__logo { font-size: 1.1rem; gap: 0.45rem; }
  .nav__logo img { width: 34px; height: 34px; }
  .nav__cta { margin-left: auto; font-size: 0.85rem; padding: 0.5rem 1rem; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 5px; z-index: 95;
    background: none; border: none; padding: 0.5rem; cursor: pointer;
  }
  .nav__burger span {
    width: 26px; height: 3.5px; background: var(--ink); border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .parents__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .floaty--paw, .floaty--note1 { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}
