/* Wonder Why Lab: the website, dressed like the app.
   Colours, tiles, buttons, stickers and backdrops follow WonderKit (Theme, HomeTile, ChunkyButtonStyle,
   StickerBadge, Backdrop). Tile and button shades use the app's own shade() maths. */

/* ---------- Fonts (self-hosted, SIL Open Font License; see /fonts) ---------- */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/lexend-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light; /* The app is light-only; so is its site. */

  --ink: #1e2b4a;
  --ink-soft: #51607e;
  --cream: #fff8ec;
  --paper: #fffdf8;

  /* Palette.party */
  --sun: #ffc83d;
  --orange: #ff9f43;
  --coral: #ff6b5b;
  --pink: #ff5d8f;
  --grape: #8b5cf6;
  --sky: #3b8cff;
  --teal: #14b8a6;
  --mint: #34c47c;
  --good: #2dbe6c;

  /* Deeper party colours where white text sits on them (shade 0.15, for contrast). */
  --sky-deep: #2c73d9;
  --coral-deep: #d95648;
  --teal-deep: #0c9c8d;
  --grape-deep: #7349d1;
  --pink-deep: #c25b8b;

  --display: "Fredoka", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --header-h: 84px;

  /* A spring: overshoots a little, then settles (like the app's .spring(response: 0.2, dampingFraction: 0.6)). */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ink-line: rgb(30 43 74 / 0.88);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 600; }

a { color: var(--sky-deep); font-weight: 500; text-underline-offset: 0.18em; text-decoration-thickness: 0.09em; }
a:hover { color: var(--grape-deep); }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 10px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; color: #fff; }

/* ---------- Header: glassy pills over the sky, like the app's top bar ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding-block: 16px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.glass {
  background: rgb(255 255 255 / 0.72);
  border: 1.5px solid rgb(255 255 255 / 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px -10px rgb(30 43 74 / 0.45);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 22.5%;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-pill {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.35s var(--spring);
}
.nav-pill:hover { color: var(--ink); transform: translateY(-2px) rotate(-2deg); }
@media (max-width: 900px) {
  .nav-pill { display: none; }
}
@media (max-width: 380px) {
  .brand { padding-right: 6px; }
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Chunky buttons (ChunkyButtonStyle): gradient face, gloss, raised edge that presses in ---------- */
.chunky {
  --c-top: #9970f8;   /* grape shade(-0.18) */
  --c: var(--grape);
  --c-edge: #5936a7;  /* grape shade(0.32) */
  --depth: 7px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 28px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--c-top), var(--c));
  box-shadow: 0 var(--depth) 0 var(--c-edge), 0 calc(var(--depth) + 10px) 22px -12px rgb(30 43 74 / 0.6);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  text-decoration: none;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.14);
  cursor: pointer;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
}
.chunky::before { /* the gloss */
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 5px;
  height: 40%;
  border-radius: 18px 18px 12px 12px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.32), rgb(255 255 255 / 0));
  pointer-events: none;
}
.chunky:hover { color: #fff; transform: translateY(2px) scale(1.02); box-shadow: 0 calc(var(--depth) - 2px) 0 var(--c-edge), 0 14px 22px -12px rgb(30 43 74 / 0.6); }
.chunky:active {
  transform: translateY(var(--depth)) scale(0.98);
  box-shadow: 0 0 0 var(--c-edge), 0 4px 10px -6px rgb(30 43 74 / 0.6);
  transition-duration: 0.08s;
}
.chunky small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  opacity: 0.92;
  text-shadow: none;
}
.chunky .label { display: block; text-align: left; }
.chunky svg { flex: none; }
.chunky.sm { min-height: 44px; padding: 10px 18px; font-size: 1.02rem; border-radius: 18px; --depth: 5px; white-space: nowrap; }
.chunky.sm::before { border-radius: 14px 14px 8px 8px; left: 8px; right: 8px; top: 4px; }
.chunky.green { --c-top: #43ca7e; --c: #22a85c; --c-edge: #178145; }
.chunky.sky { --c-top: #549aff; --c: var(--sky-deep); --c-edge: #1d59ad; }
@media (max-width: 380px) {
  .chunky.sm { padding: 9px 14px; font-size: 0.95rem; }
}

/* ---------- Pip (drawn from WonderKit/UI/Pip.swift) ---------- */
.pip-btn {
  position: relative;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
}
.pip-float { display: block; animation: float 3s ease-in-out infinite; }
.pip {
  display: block;
  width: var(--pip, 180px);
  height: auto;
  overflow: visible;
  transform-origin: 50% 100%;
  animation: breathe 2.86s ease-in-out infinite;
}
.pip .wing { transform-box: fill-box; transform-origin: 50% 0; }
.pip .wing-l { transform: rotate(20deg); animation: flap-l 3.9s ease-in-out infinite; }
.pip .wing-r { transform: rotate(-20deg); animation: flap-r 3.9s ease-in-out infinite; }
.pip .eye { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 4.3s infinite; }
.pip .happy { display: none; }
.pip-btn:hover .pupil, .is-happy .pupil { display: none; }
.pip-btn:hover .happy, .is-happy .happy { display: inline; }
.pip-btn:hover .wing-l, .is-happy .wing-l { animation: flap-fast-l 0.14s ease-in-out infinite alternate; }
.pip-btn:hover .wing-r, .is-happy .wing-r { animation: flap-fast-r 0.14s ease-in-out infinite alternate; }
.is-happy .pip { animation: hop 0.55s var(--spring); }
.pip.thinking { transform: rotate(-9deg); animation: none; }
.pip.thinking .pupil { transform: translateY(-3px); }

@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes breathe { 50% { transform: scale(0.982, 1.018); } }
@keyframes flap-l { 50% { transform: rotate(23deg); } }
@keyframes flap-r { 50% { transform: rotate(-23deg); } }
@keyframes flap-fast-l { from { transform: rotate(4deg); } to { transform: rotate(40deg); } }
@keyframes flap-fast-r { from { transform: rotate(-4deg); } to { transform: rotate(-40deg); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(0.1); } }
@keyframes hop { 0% { transform: translateY(0); } 35% { transform: translateY(-22%) scale(1.04, 0.97); } 70% { transform: translateY(0) scale(1.05, 0.94); } 100% { transform: none; } }

/* Speech bubble (PipSays): white, ink outline, a tail pointing at Pip. */
.bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  max-width: 340px;
  background: #fff;
  border: 3px solid var(--ink-line);
  border-radius: 28px;
  box-shadow: 0 6px 0 rgb(30 43 74 / 0.12);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  line-height: 1.2;
  text-align: left;
}
.bubble::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #fff;
  border-left: 3px solid var(--ink-line);
  border-bottom: 3px solid var(--ink-line);
  border-bottom-left-radius: 5px;
  transform: translateY(-50%) rotate(45deg);
}
.bubble svg { flex: none; width: 24px; height: 24px; color: var(--sky); }
.bubble.pop { animation: bubble-pop 0.45s var(--spring); }
@keyframes bubble-pop { from { transform: scale(0.6); opacity: 0.4; } }

.pip-says {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* ---------- Backdrops (Backdrop.swift styles) ---------- */
.sky {
  position: relative;
  overflow: hidden;
  overflow: clip; /* clips without becoming a scroll container, so scroll-driven pop-ins track the page */
  background:
    radial-gradient(60% 50% at 80% 8%, rgb(255 255 255 / 0.45), transparent 70%),
    linear-gradient(180deg, #7cc8ff 0%, #9ad6ff 32%, #d6f0ff 64%, #eaf7ff 82%, #d9f2ff 100%);
}
.meadow {
  position: relative;
  background:
    radial-gradient(50% 40% at 15% 30%, rgb(255 255 255 / 0.18), transparent 70%),
    radial-gradient(40% 30% at 85% 75%, rgb(255 255 255 / 0.14), transparent 70%),
    linear-gradient(180deg, #8fdc80 0%, #7fd67a 55%, #95de84 100%);
}
.paper {
  position: relative;
  background:
    radial-gradient(70% 50% at 0% 0%, #fff4de, transparent 70%),
    radial-gradient(60% 50% at 100% 100%, #fbe6c8, transparent 70%),
    #fff8ec;
}
.sunset {
  position: relative;
  overflow: hidden;
  overflow: clip; /* clips without becoming a scroll container, so scroll-driven pop-ins track the page */
  background:
    radial-gradient(45% 22% at 0% 34%, #ffb36b, transparent 70%),
    radial-gradient(45% 22% at 100% 26%, #ff9fb0, transparent 70%),
    linear-gradient(180deg, #ffc2a0 0%, #ffd49a 30%, #ffdcc8 70%, #ffe9c2 100%);
}
.lab {
  position: relative;
  background:
    radial-gradient(50% 25% at 100% 30%, #c2ede3, transparent 70%),
    linear-gradient(180deg, #d4f5ee 0%, #f2fffb 55%, #cdf2ea 100%);
}
.sprinkles { /* party cream: candy sprinkles, for the pricing */
  position: relative;
  background-color: #fff8ec;
  background-image:
    radial-gradient(circle, #ffe39a 0 4px, transparent 5px),
    radial-gradient(circle, #ffb8cd 0 4px, transparent 5px),
    radial-gradient(circle, #b3d3ff 0 4px, transparent 5px),
    radial-gradient(circle, #b0ebc9 0 4px, transparent 5px),
    radial-gradient(circle, #d4c2ff 0 3px, transparent 4px);
  background-size: 150px 150px, 190px 190px, 170px 170px, 210px 210px, 130px 130px;
  background-position: 12px 24px, 90px 96px, 44px 130px, 140px 40px, 70px 10px;
}

/* Drifting clouds (three puffs, like the app's Canvas clouds). */
.cloud {
  position: absolute;
  z-index: 0;
  left: 0;
  width: 160px;
  height: 56px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.88);
  pointer-events: none;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 78px; height: 70px; left: 32px; top: -38px; }
.cloud::after { width: 62px; height: 56px; left: 88px; top: -26px; }
.cloud.c1 { top: 16%; --s: 1;    animation: drift 70s linear infinite -20s; }
.cloud.c2 { top: 30%; --s: 0.7;  animation: drift 95s linear infinite -64s; }
.cloud.c3 { top: 8%;  --s: 0.55; animation: drift 120s linear infinite -95s; }
.cloud.c4 { top: 44%; --s: 0.85; animation: drift 85s linear infinite -40s; }
@keyframes drift {
  from { transform: translateX(-220px) scale(var(--s)); }
  to { transform: translateX(calc(100vw + 60px)) scale(var(--s)); }
}

/* Twinkling four-point sparkles, like the stars on the app icon. */
.sparkle {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  background: #fff;
  clip-path: path("M11 0Q12.5 9.5 22 11Q12.5 12.5 11 22Q9.5 12.5 0 11Q9.5 9.5 11 0Z");
  animation: twinkle 2.8s ease-in-out infinite;
  pointer-events: none;
}
.sparkle.gold { background: var(--sun); }
.sparkle.pink { background: #ff8fb1; }
@keyframes twinkle { 50% { transform: scale(0.45) rotate(45deg); opacity: 0.55; } }

/* Hills and wavy section edges */
.hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: clamp(130px, 19vw, 280px);
  pointer-events: none;
}
.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(40px, 6vw, 90px);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(12px, 3vw, 36px)); }
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero .pip-says { --pip: clamp(124px, 27vw, 270px); }
.hero .bubble { font-size: clamp(1.05rem, 2.8vw, 1.6rem); max-width: 360px; }
.wordmark {
  margin-top: clamp(16px, 3vw, 28px);
  font-size: clamp(3rem, 10.5vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.wordmark span {
  display: inline-block;
  color: var(--c);
  text-shadow:
    3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff,
    2.2px 2.2px #fff, -2.2px 2.2px #fff, 2.2px -2.2px #fff, -2.2px -2.2px #fff,
    0 9px 0 var(--e);
  transition: transform 0.45s var(--spring);
}
.wordmark .w1 { --c: var(--sky); --e: #184d99; }
.wordmark .w2 { --c: var(--coral); --e: #99372d; transform: rotate(-4deg); }
.wordmark .w3 { --c: var(--grape); --e: #4d2e94; }
.wordmark span:hover { transform: translateY(-6px) rotate(-5deg) scale(1.06); }
.wordmark .w2:hover { transform: translateY(-6px) rotate(5deg) scale(1.08); }

.lead {
  margin: 22px auto 0;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}
.hero-cta { margin-top: 30px; }
.hero-note {
  display: inline-block;
  margin-top: 22px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}
.hero-note { max-width: 100%; }
.hero-note span { white-space: nowrap; }
.hero-note span:first-child { white-space: normal; }
@media (max-width: 360px) { .hero-note { font-size: 0.9rem; padding-inline: 14px; } }
.hero-note .dot { margin-inline: 8px 4px; color: var(--grape); }

.hero-shot {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

/* The iPad frame. Screenshots keep their own aspect ratio, so new ones of any size drop straight in. */
.ipad {
  position: relative;
  background: linear-gradient(160deg, #2c3448, #141926);
  border-radius: clamp(18px, 3vw, 38px);
  padding: clamp(7px, 1.3vw, 15px);
  box-shadow:
    0 0 0 1.5px #3c4766 inset,
    0 26px 50px -22px rgb(30 43 74 / 0.6),
    0 10px 20px -10px rgb(30 43 74 / 0.35);
  transition: transform 0.5s var(--spring);
}
.ipad img {
  width: 100%;
  border-radius: clamp(11px, 1.9vw, 24px);
  background: #fff;
}
.tilt-l { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.6deg); }
.tilt-l:hover, .tilt-r:hover { transform: rotate(0deg) scale(1.015); }

/* Stat stickers (StickerBadge): a coloured disc with a thick white border. */
.stat-stickers {
  list-style: none;
  margin: clamp(-64px, -6vw, -30px) 0 0;
  padding: 0;
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 26px);
}
.stat-stickers li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.8vw, 1.1rem);
  color: var(--ink);
}
.stat-stickers li:nth-child(odd) .disc { transform: rotate(-6deg); }
.stat-stickers li:nth-child(even) .disc { transform: rotate(5deg); }
.disc {
  display: grid;
  place-items: center;
  width: clamp(70px, 16vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(5px, 1vw, 7px) solid #fff;
  background: radial-gradient(circle at 30% 25%, var(--l), var(--c) 70%);
  box-shadow: 0 8px 16px -6px rgb(30 43 74 / 0.45);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  line-height: 1;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.18);
  transition: transform 0.45s var(--spring);
}
.disc:hover, .disc.wobble { animation: wobble 0.6s var(--spring); }
@keyframes wobble {
  0% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-12deg) scale(1.12); }
  50% { transform: rotate(9deg) scale(1.08); }
  75% { transform: rotate(-4deg) scale(1.03); }
  100% { transform: rotate(0) scale(1); }
}
.c-sky    { --c: var(--sky-deep);   --l: #6aa8ff; }
.c-grape  { --c: var(--grape-deep); --l: #a98af9; }
.c-coral  { --c: var(--coral-deep); --l: #ff8f83; }
.c-teal   { --c: var(--teal-deep);  --l: #48cdbf; }
.c-pink   { --c: var(--pink-deep);  --l: #ee93bd; }
.c-orange { --c: #e48a12;           --l: #ffbd5e; }
.c-sun    { --c: #f5b82e;           --l: #f8ca60; }
.c-mint   { --c: #34c47c;           --l: #60d99d; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 120px) clamp(96px, 13vw, 160px); }
.section-head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 4px 0 #ad851f;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transform: rotate(-2deg);
}
.section h2 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
.section-head p {
  margin-top: 16px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink);
}

/* Subject tiles (HomeTile): app gradients, thick white border, darker raised edge, springy press. */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px) clamp(12px, 2.4vw, 26px);
}
@media (min-width: 980px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tile {
  --edge-h: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(150px, 19vw, 220px);
  padding: clamp(14px, 2vw, 22px);
  border-radius: clamp(26px, 3vw, 38px);
  border: 4px solid rgb(255 255 255 / 0.92);
  background: linear-gradient(135deg, var(--light), var(--c) 55%, var(--deep));
  box-shadow: 0 var(--edge-h) 0 var(--edge), 0 calc(var(--edge-h) + 14px) 24px -14px rgb(30 43 74 / 0.5);
  color: #fff;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.45s var(--spring), box-shadow 0.45s var(--spring);
}
.tile:hover {
  transform: translateY(3px) scale(0.97);
  box-shadow: 0 5px 0 var(--edge), 0 12px 20px -14px rgb(30 43 74 / 0.5);
}
.tile:active {
  transform: translateY(8px) scale(0.95);
  box-shadow: 0 0 0 var(--edge), 0 6px 12px -10px rgb(30 43 74 / 0.5);
  transition-duration: 0.09s;
}
.tile .emo {
  display: block;
  width: max-content;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  filter: drop-shadow(0 5px 0 rgb(0 0 0 / 0.16));
  animation: float 3s ease-in-out infinite;
}
.tiles li:nth-child(2) .emo { animation-delay: -0.6s; }
.tiles li:nth-child(3) .emo { animation-delay: -1.3s; }
.tiles li:nth-child(4) .emo { animation-delay: -2.1s; }
.tiles li:nth-child(5) .emo { animation-delay: -0.9s; }
.tiles li:nth-child(6) .emo { animation-delay: -1.8s; }
.tiles li:nth-child(7) .emo { animation-delay: -2.5s; }
.tiles li:nth-child(8) .emo { animation-delay: -0.3s; }
.tile:hover .emo { animation: wobble 0.6s var(--spring); }
.tile h3 {
  margin-top: auto;
  padding-top: 12px;
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  line-height: 1.05;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.14);
}
.tile .count {
  margin-top: 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.16);
}
.tile .bar {
  margin-top: 10px;
  height: 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.32);
  overflow: hidden;
}
.tile .bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--p, 40%);
  border-radius: inherit;
  background: #fff;
  transition: width 0.7s var(--spring);
}
.tile:hover .bar::after { width: 100%; }
.tile-note {
  margin-top: 14px;
  padding-inline: 4px;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}
/* light = shade(-0.25), c = base, deep = darker end where the words sit, edge = shade(0.4). */
.t-math    { --light: #5da0ff; --c: #3b8cff; --deep: #2c73d9; --edge: #184d99; }
.t-reading { --light: #ff8578; --c: #ff6b5b; --deep: #d95648; --edge: #99372d; }
.t-science { --light: #35cab9; --c: #14b8a6; --deep: #0c9c8d; --edge: #026e63; }
.t-stories { --light: #f8b648; --c: #f5a623; --deep: #c98112; --edge: #935f08; }
.t-coding  { --light: #8576dc; --c: #6d5bd0; --deep: #594ab1; --edge: #3b307d; }
.t-world   { --light: #39bab2; --c: #1aa39a; --deep: #128b83; --edge: #07625c; }
.t-life    { --light: #eb87b6; --c: #e46fa6; --deep: #c25b8b; --edge: #893c60; }
.t-games   { --light: #9f78f8; --c: #8b5cf6; --deep: #7349d1; --edge: #4d2e94; }

.bands {
  margin-top: clamp(36px, 5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
}
.band {
  padding: 7px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.15);
  box-shadow: 0 5px 0 var(--e);
  transition: transform 0.4s var(--spring);
}
.band:hover { transform: translateY(-3px) rotate(-4deg); }
.band.b0 { background: var(--teal-deep); --e: #026e63; }
.band.b1 { background: var(--sky-deep); --e: #184d99; }
.band.b2 { background: var(--grape-deep); --e: #4d2e94; }
.band.b3 { background: var(--coral-deep); --e: #99372d; }

/* Chunky white cards with an ink outline and a coloured raised edge (TileButtonStyle). */
.card {
  --e: var(--sky);
  position: relative;
  background: #fff;
  border: 3px solid var(--ink-line);
  border-radius: 28px;
  box-shadow: 0 7px 0 var(--e);
  padding: clamp(22px, 3.4vw, 32px);
  transition: transform 0.45s var(--spring), box-shadow 0.45s var(--spring);
}
.card.hoverable:hover { transform: translateY(3px); box-shadow: 0 4px 0 var(--e); }

/* Lesson steps */
.steps {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 40px 18px;
}
.steps .card { height: 100%; padding: 22px 22px 24px; }
.steps .num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -48px 0 12px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--n);
  box-shadow: 0 5px 10px -4px rgb(30 43 74 / 0.45);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  transform: rotate(-6deg);
}
.steps li:nth-child(1) .card { --e: var(--grape); }
.steps li:nth-child(1) .num { --n: var(--grape-deep); }
.steps li:nth-child(2) .card { --e: var(--sky); }
.steps li:nth-child(2) .num { --n: var(--sky-deep); }
.steps li:nth-child(3) .card { --e: var(--teal); }
.steps li:nth-child(3) .num { --n: var(--teal-deep); }
.steps li:nth-child(4) .card { --e: var(--coral); }
.steps li:nth-child(4) .num { --n: var(--coral-deep); }
.steps h3 { font-size: 1.45rem; margin-bottom: 8px; }
.steps p { font-size: 1rem; color: var(--ink-soft); }

.gallery {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  gap: clamp(36px, 5vw, 48px) clamp(24px, 3vw, 36px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: min(100%, 560px); }
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery figure:nth-child(3) { grid-column: auto; width: auto; }
}
figure { margin: 0; }
figcaption {
  margin-top: 18px;
  text-align: center;
  font-size: 1rem;
  color: var(--ink);
}
figcaption b {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sun);
  font-family: var(--display);
  font-weight: 700;
}

/* Features: a screenshot beside some words */
.feature {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.feature + .feature { margin-top: clamp(64px, 9vw, 104px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
  .feature.flip { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
  .feature.flip > :first-child { order: 2; }
}
.feature h3 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); }
.feature p { margin-top: 14px; font-size: 1.08rem; }

.chips {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
}
.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 2.5px solid var(--c, var(--sky));
  box-shadow: 0 4px 0 var(--c, var(--sky));
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.4s var(--spring);
}
.chips li:hover { transform: translateY(-3px) rotate(-3deg); }
.chips li:nth-child(8n+1) { --c: var(--sky); }
.chips li:nth-child(8n+2) { --c: var(--coral); }
.chips li:nth-child(8n+3) { --c: var(--teal); }
.chips li:nth-child(8n+4) { --c: var(--grape); }
.chips li:nth-child(8n+5) { --c: var(--orange); }
.chips li:nth-child(8n+6) { --c: var(--pink); }
.chips li:nth-child(8n+7) { --c: var(--mint); }
.chips li:nth-child(8n+8) { --c: var(--sun); }

/* A sticker sheet (StickerBadge): tap one for a star burst. */
.sticker-sheet {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 10px;
}
.sticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
}
.sticker .disc { width: clamp(70px, 9vw, 88px); font-size: clamp(1.8rem, 3.6vw, 2.3rem); text-shadow: none; }
.sticker-sheet li:nth-child(3n+1) .disc { transform: rotate(-7deg); }
.sticker-sheet li:nth-child(3n+2) .disc { transform: rotate(4deg); }
.sticker-sheet li:nth-child(3n) .disc { transform: rotate(-2deg); }
.sticker:hover .disc { animation: wobble 0.6s var(--spring); }

/* Kids and grown-ups */
.pair {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pair .card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.pair .card h3 .emo { font-size: 2rem; }
.pair .kids { --e: var(--sky); }
.pair .grownups { --e: var(--grape); }
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ticks li {
  position: relative;
  padding-left: 38px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 5px -1px rgb(30 43 74 / 0.4);
  background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.promises-row {
  margin-top: clamp(52px, 7vw, 80px);
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .promises-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 16px;
  text-align: center;
}
.promises li { display: flex; flex-direction: column; align-items: center; }
.promises .disc { width: clamp(78px, 14vw, 104px); }
.promises .disc svg { width: 46%; height: 46%; }
.promises b {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
}
.promises span { margin-top: 4px; font-size: 0.95rem; color: var(--ink-soft); max-width: 22ch; }
.promises li:nth-child(odd) .disc { transform: rotate(-6deg); }
.promises li:nth-child(even) .disc { transform: rotate(6deg); }
.promises-note { margin-top: 28px; text-align: center; }

/* Pricing */
.price-wrap { position: relative; max-width: 600px; margin-inline: auto; }
.price-card {
  --e: var(--grape);
  text-align: center;
  border-radius: 38px;
  box-shadow: 0 10px 0 var(--e), 0 34px 60px -30px rgb(30 43 74 / 0.55);
  padding: clamp(40px, 6vw, 56px) clamp(20px, 5vw, 48px) clamp(28px, 5vw, 44px);
}
.price-card .free {
  position: absolute;
  top: -26px;
  left: 50%;
  translate: -50% 0;
  padding: 10px 22px;
  border-radius: 999px;
  border: 4px solid #fff;
  background: var(--sun);
  box-shadow: 0 6px 0 #ad851f, 0 14px 20px -12px rgb(30 43 74 / 0.5);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
  rotate: -4deg;
  animation: nudge 3.2s ease-in-out infinite;
}
@keyframes nudge { 50% { rotate: 3deg; scale: 1.05; } }
.price {
  margin-top: 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.6rem, 13vw, 5.4rem);
  line-height: 1;
  color: var(--ink);
}
.price .cur { font-size: 0.5em; vertical-align: 0.62em; margin-right: 2px; }
.price small { font-size: 0.3em; font-weight: 600; color: var(--ink-soft); margin-left: 6px; }
.price-sub { margin-top: 8px; color: var(--ink-soft); font-weight: 500; }
.price-card .ticks { text-align: left; max-width: 420px; margin: 28px auto 0; }
.price-card .chunky { margin-top: 34px; }
.fine {
  margin-top: 24px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.price-wrap .sparkle { z-index: 3; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 18px; }
.faq details {
  --e: var(--sky);
  background: #fff;
  border: 3px solid var(--ink-line);
  border-radius: 26px;
  box-shadow: 0 6px 0 var(--e);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
}
.faq details:nth-child(7n+2) { --e: var(--coral); }
.faq details:nth-child(7n+3) { --e: var(--teal); }
.faq details:nth-child(7n+4) { --e: var(--grape); }
.faq details:nth-child(7n+5) { --e: var(--orange); }
.faq details:nth-child(7n+6) { --e: var(--pink); }
.faq details:nth-child(7n+7) { --e: var(--mint); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px 18px 24px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 4px 0 #ad851f;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.4s var(--spring);
}
.faq details:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--e); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .answer { padding: 0 24px 22px; }
.faq .answer p + p { margin-top: 10px; }
.faq details[open] .answer { animation: drop-in 0.35s var(--spring); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } }

/* Closing */
.closing { padding-block: clamp(70px, 10vw, 120px) clamp(170px, 22vw, 300px); text-align: center; }
.closing .wrap { position: relative; z-index: 2; }
.closing .pip-says { --pip: clamp(120px, 22vw, 210px); }
.closing h2 { margin-top: 26px; font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
.closing p { margin-top: 12px; font-size: 1.15rem; }
.closing .chunky { margin-top: 30px; }

/* ---------- Footer: the ground under the meadow ---------- */
.site-footer {
  background: #2a7340;
  color: rgb(255 255 255 / 0.85);
  padding-block: 40px 44px;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: center;
}
.site-footer .brand { background: rgb(255 255 255 / 0.12); color: #fff; font-size: 1.15rem; }
.site-footer .brand img { width: 36px; height: 36px; }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.site-footer .legal-line {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.72);
  border-top: 1px solid rgb(255 255 255 / 0.18);
  padding-top: 20px;
}

/* ---------- Pop in as things scroll into view ----------
   CSS scroll-driven animations only: where they aren't supported (or motion is reduced), everything just shows. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-pop] {
      animation: pop-in both var(--spring);
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
  }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(34px) scale(0.92); } }

/* The hero arrives on load. */
.hero-inner > * { animation: rise 0.8s var(--spring) both; }
.hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.hero-inner > :nth-child(3) { animation-delay: 0.16s; }
.hero-inner > :nth-child(4) { animation-delay: 0.24s; }
.hero-inner > :nth-child(5) { animation-delay: 0.32s; }
.hero-shot .ipad { animation: rise 1s 0.3s var(--spring) both; }
.stat-stickers li { animation: sticker-in 0.7s var(--spring) both; }
.stat-stickers li:nth-child(1) { animation-delay: 0.7s; }
.stat-stickers li:nth-child(2) { animation-delay: 0.8s; }
.stat-stickers li:nth-child(3) { animation-delay: 0.9s; }
.stat-stickers li:nth-child(4) { animation-delay: 1s; }
.stat-stickers li:nth-child(5) { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes sticker-in { from { opacity: 0; transform: scale(0.3) rotate(-30deg); } }

/* Confetti canvas (created by app.js on the first burst). */
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
}

/* ---------- Legal pages ---------- */
.legal-hero { padding-top: calc(var(--header-h) + 8px); padding-bottom: clamp(110px, 14vw, 170px); }
.legal-hero .wrap { position: relative; z-index: 2; max-width: 820px; }
.legal-hero .pip-says { --pip: clamp(92px, 16vw, 130px); justify-content: flex-start; }
.legal-hero h1 { margin-top: 20px; font-size: clamp(2.5rem, 7vw, 4rem); }
.updated {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
}
.legal-body { padding-bottom: clamp(70px, 10vw, 110px); }
.legal {
  --e: #f1dcb6;
  max-width: 820px;
  margin: clamp(-40px, -4vw, -20px) auto 0;
  border: 3px solid #f0e2c8;
  font-size: 1.06rem;
  line-height: 1.72;
  padding: clamp(22px, 5vw, 52px);
}
.legal h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  margin-top: 44px;
  margin-bottom: 12px;
}
.legal h2::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--dot, var(--sky));
  background: var(--dot, var(--sky));
}
.legal h2:nth-of-type(6n+2) { --dot: var(--coral); }
.legal h2:nth-of-type(6n+3) { --dot: var(--teal); }
.legal h2:nth-of-type(6n+4) { --dot: var(--grape); }
.legal h2:nth-of-type(6n+5) { --dot: var(--orange); }
.legal h2:nth-of-type(6n+6) { --dot: var(--pink); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 1.3em; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--coral); font-size: 1.1em; }
.legal ul + p { margin-top: 14px; }
.legal .short {
  --e: #ad851f;
  background: #fff6d6;
  border-color: var(--ink-line);
  padding: clamp(20px, 4vw, 28px);
}
.legal .short h2 { margin-top: 0; }
.legal .short h2::before { display: none; }
.legal .intro { margin-top: 30px; }
.legal .caps { font-size: 0.92rem; letter-spacing: 0.01em; }

/* ---------- 404 ---------- */
.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.lost main {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 20px) 0 clamp(150px, 20vw, 240px);
  position: relative;
  z-index: 2;
}
.lost .pip-says { --pip: clamp(120px, 26vw, 190px); }
.lost h1 { margin-top: 18px; font-size: clamp(2.3rem, 7vw, 3.6rem); }
.lost p { margin-top: 10px; font-size: 1.12rem; }
.lost .chunky { margin-top: 28px; }

/* ---------- Reduced motion: keep everything still and visible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .cloud.c1 { transform: translateX(6vw) scale(1); }
  .cloud.c2 { transform: translateX(70vw) scale(0.7); }
  .cloud.c3 { transform: translateX(40vw) scale(0.55); }
  .cloud.c4 { transform: translateX(84vw) scale(0.85); }
}

/* ---------- Placement details ---------- */
.above { position: relative; z-index: 1; }
.sheet-card { --e: var(--orange); }

.hero .s1 { top: 18%; left: 7%; }
.hero .s2 { top: 30%; right: 9%; width: 30px; height: 30px; clip-path: path("M15 0Q17 13 30 15Q17 17 15 30Q13 17 0 15Q13 13 15 0Z"); animation-delay: -0.8s; }
.hero .s3 { top: 52%; left: 12%; animation-delay: -1.6s; }
.hero .s4 { top: 12%; right: 26%; animation-delay: -2.2s; }
.hero .s5 { top: 44%; right: 4%; animation-delay: -0.4s; }
.hero .s6 { top: 8%; left: 30%; width: 30px; height: 30px; clip-path: path("M15 0Q17 13 30 15Q17 17 15 30Q13 17 0 15Q13 13 15 0Z"); animation-delay: -1.2s; }
.closing .s3 { top: 18%; left: 12%; }
.closing .s5 { top: 30%; right: 12%; animation-delay: -1.1s; }
.price-wrap .s7 { top: -34px; left: 2%; width: 30px; height: 30px; clip-path: path("M15 0Q17 13 30 15Q17 17 15 30Q13 17 0 15Q13 13 15 0Z"); }
.price-wrap .s8 { top: 38%; right: -6px; animation-delay: -1s; }
.price-wrap .s9 { bottom: 16%; left: -4px; animation-delay: -1.9s; }
@media (max-width: 640px) {
  .hero .s3, .hero .s5 { display: none; }
}

/* The tiles' progress bars, a different length each, like a child's real progress. */
.tiles li:nth-child(1) .bar { --p: 72%; }
.tiles li:nth-child(2) .bar { --p: 48%; }
.tiles li:nth-child(3) .bar { --p: 60%; }
.tiles li:nth-child(4) .bar { --p: 35%; }
.tiles li:nth-child(5) .bar { --p: 55%; }
.tiles li:nth-child(6) .bar { --p: 25%; }
.tiles li:nth-child(7) .bar { --p: 40%; }
.tiles li:nth-child(8) .bar { --p: 82%; }

@media (min-width: 420px) {
  .sticker-sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* The tiles sit right under the hero's hills. */
#inside { padding-top: clamp(20px, 4vw, 48px); }
