/* Àwọ̀ Doodle — the landing page.
 *
 * Design's mock is in site/ (kept locally, not in the repo). This is that design, built to ship:
 * fonts self-hosted, icons inlined, nothing fetched from a third party.
 *
 * The tokens below are the app's own, lifted from Theme.kt / Doodle.swift. Keep them in step.
 */

/* ---------- Fonts ----------
 * Fredoka for display, Nunito for body. Both Open Font Licence, both variable, so one file per
 * subset covers every weight: Fredoka 300–700, Nunito 200–1000.
 *
 * Self-hosted on purpose. A page whose whole argument is "nothing leaves the device" should not
 * send every visitor's IP to Google to fetch a font; a German court has already found that
 * hotlinking Google Fonts breaches the GDPR.
 *
 * Two things that bite:
 *   1. Fredoka has NO weight above 700. Asking for 800+ gets a faked, smeared bold. Cap it.
 *   2. Fredoka has NO `ọ` (U+1ECD) — 320 glyphs, no Vietnamese coverage. So the app's name can
 *      never be set in it. Here the wordmark is outlined SVG, which sidesteps the whole problem;
 *      if you ever set "Àwọ̀ Doodle" as live text, use Nunito, whose vietnamese subset has it.
 */
@font-face{font-family:'Fredoka';font-style:normal;font-weight:300 700;font-display:swap;
  src:url('../assets/fonts/fredoka-latin.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:300 700;font-display:swap;
  src:url('../assets/fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:200 1000;font-display:swap;
  src:url('../assets/fonts/nunito-latin.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:'Nunito';font-style:normal;font-weight:200 1000;font-display:swap;
  src:url('../assets/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:200 1000;font-display:swap;
  src:url('../assets/fonts/nunito-vietnamese.woff2') format('woff2');
  unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}

:root{
  --paper:#FDF8F0;--card:#FFFFFF;--ink:#2B2724;--soft:#7A7066;--line:#E7DCC9;
  --coral:#F0603A;--teal:#12A3AE;--sun:#F7C13B;--tray:#F2E9DA;--glow:#FFF1D6;
  --muted:#B9B2A9;--muted-fg:#A39C93;
  --font-display:"Fredoka",ui-rounded,"SF Pro Rounded","Hiragino Maru Gothic ProN","PingFang SC",system-ui,sans-serif;
  --font-body:"Nunito",ui-rounded,"SF Pro Rounded","Hiragino Maru Gothic ProN","PingFang SC",system-ui,sans-serif;
  --stroke:3px;
  --ease-press:cubic-bezier(.3,.7,.4,1);
  --ease-pop:cubic-bezier(.34,1.56,.64,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:600 16px/1.5 var(--font-body);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:var(--ink);text-decoration-thickness:2px;text-underline-offset:3px}
a:hover{color:var(--coral)}
h1,h2,h3,p,ul,ol{margin:0}
ul,ol{list-style:none;padding:0}
button{font:inherit;color:inherit}
[hidden]{display:none!important}

/* Keyboard users get a ring that reads against both the paper and the coral. */
:focus-visible{outline:3px solid var(--teal);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:-9999px;top:10px;z-index:9;padding:12px 18px;background:var(--card);border:var(--stroke) solid var(--ink);border-radius:18px;font:700 16px/1 var(--font-body);text-decoration:none}
.skip:focus{left:22px}

.wrap{max-width:1180px;margin:0 auto;padding-left:22px;padding-right:22px}
.block{padding-top:clamp(80px,12vw,140px)}
h2{font:700 clamp(32px,7vw,52px)/1.05 var(--font-display);max-width:18ch;text-wrap:balance;margin-bottom:12px}
h3{font:700 28px/1.1 var(--font-display)}
.intro{font-size:18px;max-width:46ch;text-wrap:pretty;margin-bottom:36px}
.quiet{font-size:15px;line-height:1.4;color:var(--soft)}
.center{text-align:center}

/* ---------- Icons ----------
 * The app's own glyphs, inlined as a <symbol> sprite — see the <svg class="sprite"> at the top of the
 * body. Material Symbols was a fifth request to Google for five pictures, and three of those
 * five were already drawn by hand in DoodleIcons.kt at the app's stroke weight.
 */
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:26px;height:26px;flex:none;display:block;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.icon.fill{fill:currentColor;stroke:none}

/* Hero */
.hero{padding-top:28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:40px 56px;align-items:center}
.hero-copy{display:flex;flex-direction:column;gap:22px;padding-top:12px}
.mark{position:relative;width:120px;aspect-ratio:572/520}
.mark img{position:absolute;inset:0;width:100%;height:100%}
.mark .phase{opacity:0;transition:opacity .2s}
.mark .phase.on{opacity:1}
.wordmark{line-height:0}
.wordmark img{height:clamp(56px,13vw,76px);width:auto}
.lede{font:700 clamp(26px,6.4vw,40px)/1.12 var(--font-display);max-width:16ch;text-wrap:balance}
.promise{font:700 19px/1.4 var(--font-body);max-width:30ch;text-wrap:pretty}
.hero-phone{display:flex;flex-direction:column;align-items:center;gap:14px}

/* Store buttons */
.stores{display:flex;flex-wrap:wrap;gap:14px;padding-top:6px}
.store{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:190px;height:62px;padding:0 26px;margin-bottom:5px;background:var(--coral);color:#fff;border:var(--stroke) solid var(--ink);border-radius:31px;box-shadow:0 5px 0 var(--ink);text-decoration:none;transition:transform 90ms var(--ease-press),box-shadow 90ms var(--ease-press)}
.store:hover{color:#fff}
.store:active{transform:translateY(4px);box-shadow:0 1px 0 var(--ink)}
.store small{font:700 12px/1 var(--font-body);letter-spacing:.02em}
.store span{font:700 22px/1 var(--font-display)}
/* Fredoka has no `ọ`. Any live "Àwọ̀ Doodle" goes through Nunito Black, as the app does. */
.store span.brand{font-family:var(--font-body);font-weight:900}
/* Nothing is published yet, so main.js turns the buttons off rather than leaving them
 * pointing at "#". A dead link that looks live is worse than a button that says not yet. */
.store[aria-disabled="true"]{background:var(--muted);border-color:var(--muted-fg);box-shadow:0 5px 0 var(--muted-fg);cursor:default}
.store[aria-disabled="true"]:active{transform:none;box-shadow:0 5px 0 var(--muted-fg)}

/* Phone + app chrome */
.phone{width:300px;height:616px;border:9px solid var(--ink);border-radius:42px;background:var(--paper);overflow:hidden;box-shadow:0 8px 0 var(--line);position:relative}
.screen{position:absolute;inset:0;display:flex;flex-direction:column}
.phone .screen{padding-top:22px}
.toolbar{display:flex;gap:8px;align-items:flex-start;padding:4px 14px 0}
.toolbar.end{justify-content:flex-end;padding:18px 18px 0}
.spacer{flex:1}
.tool{width:48px;height:48px;padding:0;display:grid;place-items:center;background:var(--card);border:var(--stroke) solid var(--ink);border-radius:17px;box-shadow:0 5px 0 var(--ink);margin-bottom:5px;cursor:pointer;transition:transform 90ms var(--ease-press),box-shadow 90ms var(--ease-press)}
.tool .icon{width:23px;height:23px}
.tool:disabled{border-color:var(--muted);box-shadow:0 5px 0 var(--muted);color:var(--muted-fg);cursor:default}
.play{height:52px;display:inline-flex;align-items:center;gap:8px;padding:0 18px 0 14px;background:var(--coral);color:#fff;border:var(--stroke) solid var(--ink);border-radius:31px;box-shadow:0 5px 0 var(--ink);margin-bottom:5px;font:700 21px/1 var(--font-display);cursor:pointer;transition:transform 90ms var(--ease-press),box-shadow 90ms var(--ease-press)}
.play .icon{width:22px;height:22px}
.tool:not(:disabled):active,.play:active,.play.pressed,.round:active{transform:translateY(4px);box-shadow:0 1px 0 var(--ink)}
.art{flex:1;min-height:0;padding:12px 10px}
.art svg{display:block;width:100%;height:100%}
.art[data-tappable] path[id^="region-"]{cursor:pointer}
.art path[id^="region-"]{transition:fill .2s ease-out}
.tray{background:var(--tray);border-top:var(--stroke) solid var(--ink);padding:18px 12px 18px;display:grid;grid-template-columns:repeat(5,1fr);row-gap:16px;column-gap:8px;justify-items:center}
.swatch{width:46px;height:46px;padding:0;border:var(--stroke) solid var(--ink);border-radius:15px;cursor:pointer;transition:transform .26s var(--ease-pop),box-shadow .26s}
.swatch[aria-pressed="true"]{transform:translateY(-8px);box-shadow:0 0 0 2px var(--paper),0 0 0 5px var(--ink)}

/* Celebration */
.stage{flex:1;min-height:0;position:relative}
.glow{position:absolute;inset:0;display:grid;place-items:center;background:radial-gradient(closest-side,var(--glow),rgba(255,241,214,0) 100%)}
.bounce{width:88%;height:78%;transform-origin:50% 92%;animation:awo-play 1.7s var(--ease-pop) infinite}
.bounce .art{padding:0;height:100%}
.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.confetti i{position:absolute;border:var(--stroke) solid var(--ink);animation:awo-fall linear infinite}
.end-buttons{display:flex;gap:22px;justify-content:center;align-items:center;padding:0 0 34px;position:relative;z-index:2;animation:awo-fadein .5s .5s ease-out both}
.round{width:68px;height:68px;border-radius:50%;padding:0;display:grid;place-items:center;background:var(--card);border:var(--stroke) solid var(--ink);box-shadow:0 5px 0 var(--ink);margin-bottom:5px;cursor:pointer;transition:transform 90ms var(--ease-press),box-shadow 90ms var(--ease-press)}
.round .icon{width:32px;height:32px}
.round-lg{width:90px;height:90px;background:var(--coral);color:#fff}
.round-lg .icon{width:40px;height:40px}
@keyframes awo-play{0%{transform:translateY(0) scale(1,1) rotate(0)}14%{transform:translateY(3%) scale(1.07,.93)}32%{transform:translateY(-11%) scale(.95,1.06) rotate(-4deg)}50%{transform:translateY(0) scale(1.05,.95) rotate(0)}64%{transform:translateY(-4%) scale(1,1) rotate(3deg)}80%{transform:translateY(0) rotate(-2deg)}100%{transform:translateY(0) scale(1,1) rotate(0)}}
@keyframes awo-fall{from{transform:translateY(-120%) rotate(0)}to{transform:translateY(900%) rotate(200deg)}}
@keyframes awo-fadein{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* How it works */
.how{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:32px 56px;align-items:center}
.clip{position:relative;height:560px;max-width:460px;width:100%;justify-self:center;background:var(--card);border:var(--stroke) solid var(--line);border-radius:30px;box-shadow:0 5px 0 var(--line);overflow:hidden}
.clip .play{cursor:default}
.clip .swatch{cursor:default}
.steps{display:flex;flex-direction:column;gap:22px}
.steps li{display:flex;gap:18px;align-items:flex-start}
.steps h3{margin:4px 0 6px}
.steps p{font-size:17px;line-height:1.45;max-width:34ch}
.num{flex:none;width:58px;height:58px;display:grid;place-items:center;border:var(--stroke) solid var(--ink);border-radius:18px;background:var(--card);font:700 26px/1 var(--font-display);transition:background .2s}
.num.on{background:var(--sun)}

/* Reassurance */
.nos{display:flex;flex-wrap:wrap;gap:19px}
.nos li{flex:1 1 300px;background:var(--card);border:var(--stroke) solid var(--line);border-radius:30px;box-shadow:0 5px 0 var(--line);padding:26px 24px 28px;display:flex;flex-direction:column;gap:12px}
.nos p{font-size:17px;line-height:1.45;max-width:52ch}
.dot{flex:none;width:30px;height:30px;border:var(--stroke) solid var(--ink);border-radius:50%}
.dot.sq{border-radius:6px}

/* Animals */
.shelves{display:flex;flex-direction:column;gap:40px}
.shelf{display:flex;flex-direction:column;gap:18px}
.shelf h3{display:flex;align-items:center;gap:12px;font-size:24px}
.shelf h3 .dot{width:26px;height:26px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:19px}
.card{aspect-ratio:173/181;padding:14px 14px 10px;display:flex;flex-direction:column;align-items:center;background:var(--card);border:var(--stroke) solid var(--line);border-radius:30px;box-shadow:0 5px 0 var(--line)}
.card img{flex:1;min-height:0;width:100%;object-fit:contain}
.card span{font:700 21px/1.15 var(--font-display);margin-top:2px;text-align:center}

/* Prose, languages, footer */
.prose{max-width:640px;display:flex;flex-direction:column;gap:18px}
.prose h2{margin-bottom:6px}
.prose p{font-size:19px;line-height:1.6;text-wrap:pretty}
.languages{padding-top:clamp(64px,9vw,100px)}
.languages p{padding-top:28px;border-top:var(--stroke) solid var(--line);font-size:16px;line-height:1.7;color:var(--soft);text-wrap:pretty}
.footer{padding-top:clamp(64px,9vw,100px);padding-bottom:56px;display:flex;flex-direction:column;gap:28px}
.brand{display:flex;align-items:center;gap:14px}
.brand .wm{height:34px;width:auto}
.links{display:flex;flex-wrap:wrap;gap:8px 28px;font:700 17px/1 var(--font-body)}

/* Social links — the only way to reach us, so they are a row of real buttons rather than a line
 * of small print. Same chunky disc as the app's end buttons, at thumb size. */
.socials{display:flex;flex-wrap:wrap;gap:14px}
.socials a{width:54px;height:54px;display:grid;place-items:center;background:var(--card);border:var(--stroke) solid var(--ink);border-radius:50%;box-shadow:0 5px 0 var(--ink);margin-bottom:5px;color:var(--ink);transition:transform 90ms var(--ease-press),box-shadow 90ms var(--ease-press),background 120ms}
.socials a:hover{background:var(--sun);color:var(--ink)}
.socials a:active{transform:translateY(4px);box-shadow:0 1px 0 var(--ink)}
.socials .icon{width:26px;height:26px}
.doc .note .socials{margin-top:20px}
.links a{padding:12px 0}

/* ---------- The written pages: privacy, support, 404 ---------- */
.topbar{padding-top:26px;padding-bottom:10px}
.topbar a{display:inline-flex;align-items:center;gap:12px;text-decoration:none}
.topbar img.m{width:52px;height:auto}
.topbar img.wm{height:30px;width:auto}
.doc{max-width:720px;padding-top:clamp(40px,7vw,72px);padding-bottom:64px}
.doc h1{font:700 clamp(34px,7vw,50px)/1.06 var(--font-display);text-wrap:balance;margin-bottom:10px}
.doc .dateline{font-size:15px;color:var(--soft);margin-bottom:38px}
.doc h2{font-size:clamp(24px,4.4vw,30px);max-width:26ch;margin:46px 0 14px}
.doc p,.doc li{font-size:18px;line-height:1.62;text-wrap:pretty;max-width:62ch}
.doc p+p{margin-top:14px}
.doc ul:not(.socials){margin:16px 0 0;display:flex;flex-direction:column;gap:12px}
.doc ul:not(.socials) li{position:relative;padding-left:30px}
.doc ul:not(.socials) li::before{content:"";position:absolute;left:0;top:.55em;width:13px;height:13px;border:var(--stroke) solid var(--ink);border-radius:50%}
.doc .lead{font:700 20px/1.5 var(--font-body);margin-bottom:34px;max-width:52ch}
.doc .note{margin-top:34px;background:var(--card);border:var(--stroke) solid var(--line);border-radius:26px;box-shadow:0 5px 0 var(--line);padding:24px 26px 26px}
.doc .note h2{margin-top:0;font-size:24px}
.doc .contact{font:700 20px/1.4 var(--font-body);word-break:break-word}
.doc .back{margin-top:52px;font:700 17px/1 var(--font-body)}

.oops{min-height:62vh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:20px;padding-bottom:64px}
.oops h1{font:700 clamp(38px,9vw,64px)/1.04 var(--font-display)}
.oops p{font-size:19px;line-height:1.55;max-width:40ch}

@media (min-width:420px){.phone{width:320px;height:656px}}
@media (prefers-reduced-motion:reduce){
  .bounce,.confetti i,.end-buttons{animation:none}
  .mark .phase{opacity:1;transition:none}
}
