/* WAU Play — soft, bouncy, colour-blocked. Gluten (display) + Lexend (text), both SIL OFL, self-hosted. */
@font-face { font-family: Gluten; src: url(/fonts/Gluten.woff2) format('woff2'); font-weight: 500 900; font-display: swap; }
@font-face { font-family: Lexend; src: url(/fonts/Lexend.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --marsh: #fff4f8;   /* marshmallow: page */
  --gum: #ff5d8f;     /* bubblegum: actions */
  --mint: #9fe7d2;
  --sky: #b9d4ff;
  --butter: #ffe08a;
  --lilac: #e3d2ff;
  --plum: #3b2142;    /* ink */
  --plum-soft: #6e4d74;
  --display: Gluten, ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: Lexend, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--marsh); }
body { margin: 0; color: var(--plum); font: 400 18px/1.65 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--gum); outline-offset: 4px; border-radius: 12px; }

h1, h2, h3, .logo { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; line-height: .95; margin: 0; }
h1 { font-size: clamp(64px, 13vw, 168px); }
h2 { font-size: clamp(44px, 7vw, 84px); }
h3 { font-size: 30px; line-height: 1.05; }
p { margin: 0; max-width: 34em; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 5vw, 56px); position: relative; z-index: 3; }
.logo { font-size: 34px; text-decoration: none; display: inline-flex; align-items: baseline; gap: 2px; }
.logo b { color: var(--gum); font-weight: 900; }
.top nav { display: flex; gap: 6px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 14px; border-radius: 999px; }
.top nav a:hover { background: #fff; }

.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--text); text-decoration: none;
  background: var(--plum); color: #fff; padding: 18px 26px; border-radius: 22px; box-shadow: 0 6px 0 #1e0f23; transition: transform .12s, box-shadow .12s; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #1e0f23; }
.btn svg { width: 22px; height: 22px; }
.btn.soon { background: #fff; color: var(--plum); box-shadow: 0 6px 0 #e7c9d6; cursor: default; }

/* squishies: press to squash, let go to wobble back */
.sq { cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; transform-origin: 50% 88%;
  transition: transform .14s cubic-bezier(.3, .7, .4, 1); filter: drop-shadow(0 26px 30px rgba(59, 33, 66, .14)); }
.sq.press { transform: scale(1.16, .78); cursor: grabbing; }
@keyframes boing { 0% { transform: scale(1.16, .78); } 30% { transform: scale(.9, 1.12); } 55% { transform: scale(1.05, .95); } 80% { transform: scale(.98, 1.02); } 100% { transform: none; } }

/* hero: a shelf of squishies under a huge headline */
.hero { position: relative; text-align: center; padding: 10px 20px 0; }
.hero h1 { position: relative; z-index: 2; }
.hero p { margin-left: auto; margin-right: auto; }
.hero .lead { margin: 22px auto 0; font-size: clamp(19px, 2.2vw, 23px); color: var(--plum-soft); }
.hero .hint { margin: 10px auto 0; font: 700 22px/1 var(--display); color: var(--gum); }
.stage { position: relative; height: clamp(250px, 36vw, 440px); max-width: 1180px; margin: 10px auto 0; }
.stage .sq { position: absolute; bottom: 0; }
.stage .s1 { width: 46%; left: 27%; z-index: 2; }
.stage .s2 { width: 27%; left: 2%; bottom: 6%; }
.stage .s3 { width: 27%; right: 2%; bottom: 8%; }
.stage .s4 { width: 17%; left: 12%; bottom: 66%; }
.stage .s5 { width: 17%; right: 12%; bottom: 70%; }
.floor { height: 90px; background: var(--mint); margin-top: -40px; border-radius: 50% 50% 0 0 / 70px 70px 0 0; }

/* one entrance: the squishies drop onto the shelf */
@media (prefers-reduced-motion: no-preference) {
  .stage .sq { animation: drop .9s cubic-bezier(.3, 1.5, .5, 1) both; }
  .stage .s2 { animation-delay: .12s; } .stage .s3 { animation-delay: .2s; } .stage .s4 { animation-delay: .3s; } .stage .s5 { animation-delay: .38s; }
}
/* after landing (or the first press) the entrance animation steps aside so press/boing can run */
.stage .sq.landed { animation: none; }
.sq.boing, .stage .sq.boing { animation: boing .7s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes drop { 0% { transform: translateY(-60vh) scale(.9, 1.15); opacity: 0; } 60% { transform: translateY(0) scale(1.15, .82); opacity: 1; } 80% { transform: scale(.95, 1.06); } 100% { transform: none; } }

/* colour bands */
.band { padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 72px); position: relative; }
.band > .in { max-width: 1120px; margin: 0 auto; }
.mint { background: var(--mint); }
.sky { background: var(--sky); }
.butter { background: var(--butter); }
.plum { background: var(--plum); color: var(--marsh); }
.plum .lead2 { color: #e9cfe9; }
.lead2 { font-size: 21px; margin-top: 18px; color: var(--plum-soft); }
.wave { display: block; width: 100%; height: 60px; }

/* the game feature */
.feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature .phones { position: relative; height: 640px; }
.feature .phones img { position: absolute; width: 56%; border-radius: 34px; box-shadow: 0 30px 60px rgba(59, 33, 66, .22); }
.feature .phones img:first-child { left: 0; top: 40px; transform: rotate(-6deg); }
.feature .phones img:last-child { right: 0; top: 0; transform: rotate(5deg); }
.icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 10px 24px rgba(59, 33, 66, .2); margin-bottom: 26px; }
.feature .btn { margin-top: 32px; }

/* how it works: four real steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 52px; list-style: none; padding: 0; }
.steps li { text-align: center; }
.steps img { height: 150px; width: auto; margin: 0 auto 14px; object-fit: contain; }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 16px; margin: 0 auto; }

/* promises to parents */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 48px; margin-top: 52px; padding: 0; list-style: none; }
.promises li { font-size: 17px; color: #e9cfe9; }
.promises b { display: block; font: 800 30px/1.05 var(--display); color: var(--butter); margin-bottom: 8px; }

/* hand mode strip */
.hand { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.hand img { width: 340px; }

/* long reading pages (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 30px 24px 90px; }
.doc h1 { font-size: clamp(54px, 9vw, 100px); margin: 20px 0 12px; }
.doc .date { color: var(--plum-soft); margin-bottom: 40px; }
.doc h2 { font-size: 36px; margin: 44px 0 10px; }
.doc p, .doc li { max-width: 38em; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc .say { background: var(--butter); border-radius: 28px 28px 28px 8px; padding: 26px 30px; font-size: 20px; }
.doc a { color: var(--gum); font-weight: 600; }
.doc .peek { width: 160px; margin: 0 0 -18px auto; }

footer { background: var(--plum); color: #e9cfe9; padding: 54px clamp(20px, 6vw, 72px) 64px; font-size: 15px; }
footer .in { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer .logo { color: #fff; font-size: 30px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: #e9cfe9; }

@media (max-width: 820px) {
  .feature, .hand { grid-template-columns: 1fr; }
  .feature .phones { height: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: 1fr 1fr; }
  .stage .s4, .stage .s5 { display: none; }
  .stage { height: 230px; }
  .stage .s1 { width: 70%; left: 15%; }
  .stage .s2, .stage .s3 { width: 36%; bottom: 2%; }
  .stage .s2 { left: -10%; } .stage .s3 { right: -10%; }
  .hand img { width: 180px; }
}
@media (max-width: 520px) {
  .top nav a { padding: 8px 8px; font-size: 15px; white-space: nowrap; }
  .logo { font-size: 28px; }
  .promises { grid-template-columns: 1fr; }
  .feature .phones { height: 420px; }
}
@media (prefers-reduced-motion: reduce) { .sq, .sq.press { transition: none; } .sq.boing, .stage .sq.boing { animation: none; } }
.doc h3 { margin: 30px 0 6px; }
