@font-face{font-family:"Rubik";src:url(../fonts/rubik.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Fredoka";src:url(../fonts/fredoka.woff2) format("woff2");font-weight:500 700;font-display:swap}
@font-face{font-family:"Playpen Sans Hebrew";src:url(../fonts/playpen.woff2) format("woff2");font-weight:500;font-display:swap}
:root{
  --plum-night:#3B1650;--plum:#5A2A78;--lilac:#F3ECF8;--cream:#FFF6E8;--caramel:#C0874F;--cocoa:#4A2E1C;
  --red:#C9382F;--leaf:#6F9A45;--mist:#EBDDF3;--muted:#BBA6CB;--ink:#1d1020;--focus:#FFC861;
  --gut:clamp(16px,5vw,72px);
  --clay:10px 14px 30px rgba(59,22,80,.20),inset -8px -10px 18px rgba(140,90,50,.16),inset 8px 8px 14px rgba(255,255,255,.95);
  --clay-plum:10px 14px 30px rgba(20,6,30,.35),inset -8px -10px 18px rgba(20,6,30,.35),inset 8px 8px 14px rgba(255,255,255,.18);
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --spring:cubic-bezier(.34,1.56,.64,1);
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--lilac);color:var(--cocoa);font:400 1.0625rem/1.6 "Rubik",system-ui,sans-serif;overflow-x:clip}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{text-wrap:balance}
h1,h2,h3,summary,.brand,.num,.fred{font-family:"Fredoka","Rubik",system-ui,sans-serif}
p{margin:0}
a{color:var(--plum)}a:hover{color:var(--plum-night)}
:focus-visible{outline:3px solid var(--plum);outline-offset:3px;border-radius:12px}
.dark :focus-visible,.dark:focus-visible{outline-color:var(--focus)}
.skip{position:absolute;inset-inline-start:16px;top:-80px;z-index:50;background:var(--cream);color:var(--plum-night);padding:12px 18px;border-radius:14px;font-weight:600}
.skip:focus{top:12px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:1440px;margin:0 auto;padding-inline:var(--gut)}

/* clay */
.clay{background:var(--cream) var(--grain);border-radius:32px;box-shadow:var(--clay)}
.clay-plum{background:var(--plum) var(--grain);border-radius:32px;box-shadow:var(--clay-plum);color:var(--cream)}
.press{transition:scale .3s var(--spring)}
.press:active{scale:.96}

/* placeholders: grep data-placeholder to find every one */
.ph-note{font-size:.875rem;color:#6E4D84}
.dark .ph-note{color:var(--muted)}

/* header + nav */
.hero{background:var(--plum-night);color:var(--cream);position:relative;overflow:hidden}
.hero-sm{padding-bottom:28px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:18px;position:relative;z-index:2}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--cream);font-weight:700;font-size:clamp(1.5rem,1.2rem + 1vw,1.875rem)}
.brand:hover{color:#fff}
.brand img{width:48px;height:48px;border-radius:14px;box-shadow:4px 6px 14px rgba(0,0,0,.35)}
.nav-end{display:flex;align-items:center;gap:12px}
.lang{min-height:48px;padding:0 18px;display:flex;align-items:center;gap:8px;color:var(--cream);text-decoration:none;font-size:1rem;font-weight:500;border-radius:999px}
.lang:hover{color:#fff}
.music{width:52px;height:52px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;padding:0}
.music svg{transition:rotate .3s}
.music[aria-pressed="true"] svg{animation:spin 3s linear infinite}
@keyframes spin{to{rotate:360deg}}
.bubble{position:absolute;border-radius:50%;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.5),rgba(255,255,255,.1) 60%,transparent 72%);pointer-events:none;animation:drift 14s ease-in-out infinite alternate}
@keyframes drift{to{translate:0 -24px}}

.hero-grid{display:grid;gap:28px;padding-block:20px 120px;position:relative;z-index:1;
  grid-template-columns:minmax(0,1fr);grid-template-areas:"text" "tablet" "stores"}
.hero-text{grid-area:text;display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.pill{background:var(--red);color:#fff;font-weight:600;font-size:1rem;padding:6px 16px;border-radius:999px;box-shadow:inset -3px -4px 8px rgba(80,10,10,.3)}
.hero h1{margin:0;font-weight:700;font-size:clamp(2.4rem,1.2rem + 3.4vw,4.25rem);line-height:1.06;color:var(--cream)}
.sub{font-size:clamp(1.0625rem,1rem + .4vw,1.375rem);color:var(--mist);max-width:36em}
.hand{font-family:"Playpen Sans Hebrew","Rubik",system-ui,sans-serif;font-weight:500;font-size:1.25rem;color:var(--cream);rotate:-4deg;display:inline-block}
.stores{grid-area:stores;display:flex;flex-direction:column;gap:10px;align-items:center}
.store-row{display:flex;gap:14px;flex-wrap:wrap;justify-content:center}
.store{display:inline-flex;align-items:center;gap:12px;min-height:58px;padding:8px 20px;border-radius:16px;background:var(--ink);color:#fff;box-shadow:6px 8px 18px rgba(20,6,30,.35);line-height:1.15}
.store small{display:block;font-size:.8rem;color:#E9DFEF}
.store b{display:block;font-size:1.15rem;font-weight:600}
.tablet-wrap{grid-area:tablet;position:relative;padding-top:34px;max-width:680px;width:100%;justify-self:center}
.tablet-wrap .hand{position:absolute;top:0;inset-inline-end:40px}
.tablet{display:block;width:100%;border:0;padding:14px;border-radius:32px;cursor:pointer;font:inherit;color:inherit;text-align:center}
.tablet .screen{border-radius:20px;overflow:hidden;aspect-ratio:16/9;box-shadow:inset 0 0 0 4px #E8D6BF;background:#E8D6BF}
.tablet{position:relative}
.tablet .screen img{width:100%;height:100%;object-fit:cover}
.tablet .screen{position:relative}
.tablet .screen video,.tablet .screen .pic{display:block;width:100%;height:100%;object-fit:cover}
.tablet .screen [hidden]{display:none}
.tablet .tap{position:absolute;inset:14px;border:0;border-radius:20px;background:none;cursor:pointer}
.tablet .snd{position:absolute;top:24px;inset-inline-start:24px;z-index:1;width:48px;height:48px;border:0;border-radius:50%;background:var(--plum);display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 0 #2A0F3A}
.tablet .snd[aria-pressed="true"]{background:var(--red)}
.peek{position:absolute;bottom:-44px;inset-inline-end:clamp(-60px,-4.5vw,-14px);width:clamp(84px,11vw,150px);filter:drop-shadow(6px 10px 10px rgba(20,6,30,.45));pointer-events:none}
[dir="ltr"] .peek{scale:-1 1}
.diag{height:clamp(60px,8vw,120px);margin-top:-1px;background:linear-gradient(176deg,var(--plum-night) 0 50%,var(--lilac) 50.4% 100%)}

/* sections */
section{scroll-margin-top:16px}
.sec{padding-block:clamp(48px,7vw,96px) 0}
.h2{margin:0;font-weight:700;font-size:clamp(2rem,1.4rem + 2.4vw,3rem);line-height:1.1;color:var(--plum)}
.lead{font-size:clamp(1.0625rem,1rem + .3vw,1.25rem);max-width:38em}
.head{display:flex;flex-direction:column;gap:12px;margin-bottom:clamp(28px,4vw,48px)}

.promise{margin-top:calc(clamp(60px,8vw,120px) * -.7);position:relative}
.promise ul{list-style:none;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:22px}
.promise li{display:flex;align-items:center;gap:12px;font-weight:600;font-size:clamp(1rem,.9rem + .5vw,1.3rem);line-height:1.3}
.promise svg{flex:none}

.learn{display:grid;grid-template-columns:minmax(0,1fr);gap:36px;align-items:start}
.frame{background:var(--cream) var(--grain);border-radius:28px;padding:14px 14px 22px;box-shadow:10px 14px 28px rgba(59,22,80,.24),inset -6px -8px 14px rgba(140,90,50,.18),inset 6px 6px 12px rgba(255,255,255,.95);display:flex;flex-direction:column;gap:12px;position:relative}
.frame h3{margin:0;font-weight:600;font-size:1.375rem;color:var(--plum);line-height:1.25}
.t1{rotate:-3deg}.t2{rotate:2.5deg}.t3{rotate:-2deg}.t4{rotate:3deg}
.shot{border-radius:18px;overflow:hidden;aspect-ratio:16/10;box-shadow:inset 0 0 0 4px #E8D6BF;background:repeating-linear-gradient(135deg,#EADCF1 0 14px,#F3ECF8 14px 28px);display:flex;align-items:center;justify-content:center;color:#5E3F72;font-size:.95rem;text-align:center;padding:8px}
.shot:has(img){padding:0}
.shot[data-placeholder]{flex-direction:column;gap:2px}
.ph-name{font-family:"Fredoka","Rubik",system-ui,sans-serif;font-weight:600;font-size:1.15rem;color:var(--plum);line-height:1.2}
.shot picture{display:block;flex:1;align-self:stretch;min-width:0}
.shot img{display:block;width:100%;height:100%;object-fit:cover}
/* a different game hedgehog pops up from behind each card's top edge; outer ones look toward the middle */
.learn-card{--pw:clamp(100px,9.5vw,128px);--pad:calc(var(--pw) * 1.04 - 12px);position:relative;padding-top:var(--pad)}
/* each pop's feet sit 12px behind the card's top edge, whatever its height, so all four show the same amount of body */
.learn-card .pop{position:absolute;bottom:calc(100% - var(--pad) - 12px);left:50%;translate:-50% 0;width:var(--pw);z-index:0;filter:drop-shadow(3px 6px 6px rgba(59,22,80,.25))}
.learn-card .frame{z-index:1}
[dir="ltr"] .p4 .pop,[dir="rtl"] .p1 .pop{scale:-1 1}

.steps{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.step{padding:28px;display:flex;flex-direction:column;gap:12px}
.num{width:60px;height:60px;border-radius:50%;background:var(--plum);color:var(--cream);display:grid;place-items:center;font-weight:700;font-size:1.875rem;box-shadow:inset -4px -5px 10px rgba(20,6,30,.35)}
.step h3{margin:0;font-weight:600;font-size:1.625rem;color:var(--plum)}

.meet{display:grid;grid-template-columns:minmax(0,1fr);gap:36px;align-items:center}
.meet-pic{position:relative;padding:18px;border-radius:40px;rotate:1.5deg}
.meet-pic>picture img{border-radius:24px}

.voice{padding:clamp(28px,5vw,64px);display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:center}
.voice .h2{color:var(--cream)}
.voice .lead{color:var(--mist)}
/* the voice sample: one button that plays the game's welcome line */
/* the voice card: the storybook "speaks" in a cream bubble with the play button and a sound wave; letter tiles in the corners.
   Phones and tablets: only the bubble, centred; wide screens: the book beside it, the bubble's tail pointing at it. */
.voice{position:relative;overflow:hidden}
.voice .head{position:relative;z-index:1}
.vs{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:18px}
.vs-book{display:none;width:200px;flex:none;rotate:-6deg;filter:drop-shadow(0 10px 14px rgba(20,6,30,.4))}
.vs-book img{display:block;width:100%;height:auto}
.bub{position:relative;display:flex;align-items:center;gap:16px;padding:16px 22px 16px 16px;border-radius:32px;background:var(--cream);box-shadow:0 6px 0 #2A0F3A}
[dir="rtl"] .bub{padding:16px 16px 16px 22px}
.bub h3{margin:0 0 8px;color:var(--plum-night);font-size:1.2rem;white-space:nowrap}
.wave{display:flex;gap:5px;align-items:center;height:44px}
.wave i{display:block;width:7px;height:var(--h);border-radius:4px}
.bub:has(.vs-play[aria-pressed="true"]) .wave i{animation:wave .9s ease-in-out infinite alternate}
@keyframes wave{from{height:8px}to{height:var(--h)}}
.vs-play{flex:none;width:68px;height:68px;border:0;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;background:var(--red);color:#fff;box-shadow:0 4px 0 #8E2620}
.vs-play:hover{filter:brightness(1.08)}
.vs-play .i-stop,.vs-play[aria-pressed="true"] .i-play{display:none}
.vs-play[aria-pressed="true"] .i-stop{display:block}
.vs-play[aria-pressed="true"]{background:var(--plum);box-shadow:0 4px 0 #2A0F3A}
.lt{position:absolute;z-index:0;width:40px;height:40px;border-radius:12px;display:none;place-items:center;font-weight:800;font-size:1.3rem;color:#fff;box-shadow:0 4px 0 rgba(0,0,0,.25);opacity:.9}
@media (min-width:960px){
  .vs{position:static;flex-direction:row;justify-content:center;gap:0}  /* the tiles then sit in the card's corners */
  .vs-book{display:block}
  .bub{margin-inline-start:22px}
  .bub::after{content:"";position:absolute;bottom:28px;inset-inline-start:-13px;border:14px solid transparent;border-inline-end-color:var(--cream);border-inline-start:0}
  .lt{width:54px;height:54px;border-radius:16px;font-size:1.8rem;box-shadow:0 5px 0 rgba(0,0,0,.25);display:grid}
  .lt0{top:22px;inset-inline-end:3%;rotate:-10deg}.lt1{bottom:26px;inset-inline-end:5%;rotate:8deg}
  .lt2{top:22px;inset-inline-end:22%;rotate:12deg}.lt3{bottom:22px;inset-inline-end:26%;rotate:-8deg}
}
.demo{padding:24px;display:flex;flex-direction:column;gap:16px;color:var(--cocoa);max-width:440px}
.demo-row{display:flex;align-items:center;gap:16px}
.play{width:64px;height:64px;flex:none;border:0;border-radius:50%;background:var(--red);display:grid;place-items:center;box-shadow:inset -4px -6px 10px rgba(80,10,10,.35),4px 6px 12px rgba(59,22,80,.25)}
.play[aria-disabled="true"]{cursor:not-allowed;opacity:.75}
.demo strong{display:block;font-weight:600;font-size:1.375rem}
.wave{display:flex;align-items:flex-end;gap:5px;height:44px}
.wave span{width:8px;border-radius:4px;background:var(--caramel)}

.worlds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
.world{padding:12px 12px 16px;display:flex;flex-direction:column;gap:8px;text-align:center}
.world .shot{border-radius:16px;font-size:.85rem}
.world h3{margin:0;font-weight:600;font-size:1.2rem;line-height:1.25;color:var(--plum)}
.world .ph-note{font-size:.8rem}

.faq{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.faq details{padding:20px 24px}
.faq summary{font-weight:600;font-size:1.25rem;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center;border-radius:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;width:32px;height:32px;border-radius:50%;background:var(--plum);color:var(--cream);display:grid;place-items:center;font-size:1.3rem;line-height:1;transition:rotate .3s}
.faq details[open] summary::after{rotate:45deg}
.faq details p{margin-top:10px;font-size:1.0625rem}

.download{padding:clamp(28px,5vw,64px);margin-top:110px;display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center}
.download .kip{width:clamp(120px,14vw,170px);margin-top:calc(clamp(28px,5vw,64px) * -1 - 90px);filter:drop-shadow(6px 10px 10px rgba(59,22,80,.3))}
.download .stores{align-items:center;align-self:center}.download .store-row{justify-content:center}

/* footer */
.foot{background:var(--plum-night);color:var(--mist);margin-top:clamp(64px,8vw,120px);padding-block:48px 28px}
.foot-grid{display:flex;flex-wrap:wrap;justify-content:space-between;gap:32px;align-items:flex-start}
.studio{display:flex;align-items:center;gap:20px;max-width:640px}
.studio img{width:120px;flex:none}
.studio b{display:block;font-weight:700;font-size:1.5rem;color:var(--cream);margin-bottom:6px}
.foot nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 24px}
.foot nav a{color:var(--cream);display:inline-block;padding-block:10px}
.foot nav a:hover{color:#fff}
.copy{color:var(--muted);font-size:.95rem;margin-top:24px}

/* legal and help pages */
.back{margin:0 0 14px;font-weight:600}
.back a{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.back-end{margin:28px 0 0}
[dir="rtl"] .back-arrow{scale:-1 1}
.doc{margin-top:-60px;position:relative;padding:clamp(24px,5vw,56px);max-width:860px;margin-inline:auto}
.doc h1{margin:0 0 6px;color:var(--plum);font-weight:700;font-size:clamp(2rem,1.5rem + 2vw,2.75rem);line-height:1.15}
.doc h2{margin:28px 0 8px;line-height:1.3;color:var(--plum);font-weight:600;font-size:1.375rem}
.doc p,.doc li{max-width:44em}
.doc p+p{margin-top:10px}
.doc ul{padding-inline-start:1.3em;margin:8px 0}
.doc .meta{color:#6E4D84}

/* walking hedgehog */
.walker{position:fixed;bottom:2px;left:0;width:clamp(40px,4.5vw,64px);aspect-ratio:160/184;z-index:40;pointer-events:none}
.walker img{position:absolute;inset:0;width:100%;height:100%;transition:opacity .4s ease}
.walker .front{opacity:0}
.walker.facing .front{opacity:1}
.walker.facing .side{opacity:0}
.walker.flip .side{scale:-1 1}
/* idle: the game's idle video as a 42-frame strip at 8 fps (tools/build_assets.py walker_idle), over the still front */
.walker .idle{position:absolute;inset:0;opacity:0;background:no-repeat 0 0/4200% 100%}
.walker.idling .idle{opacity:1;background-image:url(../img/walk-idle.webp);animation:idle 5.25s steps(41) forwards}
.walker.idling .front{opacity:0;transition:none}
@keyframes idle{to{background-position:100% 0}}

/* reveal once */
.js .reveal{translate:0 28px;transition:translate .5s ease-out}
.js .reveal.in{translate:0 0}

@media (min-width:640px){
  .promise ul{padding:26px 32px}
  .learn{grid-template-columns:repeat(2,minmax(0,1fr))}
  .worlds{grid-template-columns:repeat(3,minmax(0,1fr))}
  .faq{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:960px){
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"text tablet" "stores tablet";column-gap:56px;align-items:center;padding-block:28px 150px}
  .hero-text{align-self:end}.stores{align-self:start;align-items:flex-start}.stores .store-row{justify-content:flex-start}
  .promise ul{grid-template-columns:repeat(4,minmax(0,1fr))}
  .steps{grid-template-columns:repeat(3,minmax(0,1fr))}
  .meet{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:64px}
  .voice{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
}
@media (min-width:1200px){
  .learn{grid-template-columns:repeat(4,minmax(0,1fr))}
  .learn>:nth-child(even){margin-top:28px}
  .worlds{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .press:active{scale:none}
  .js .reveal{translate:none}
}
.hand.flat{rotate:none}
main:focus{outline:none}
.world .wline{font-size:.95rem;line-height:1.45;color:var(--cocoa)}

/* cookie notice (only when Google Analytics is set up): bottom card above the walker */
.ck{position:fixed;inset-inline:12px;bottom:12px;z-index:50;max-width:560px;margin-inline:auto;padding:16px 18px;border-radius:24px}
.ck p{margin:0 0 12px;font-size:.95rem}
.ck-row{display:flex;gap:10px;flex-wrap:wrap}
.ck-row button{font:inherit;font-weight:700;padding:10px 18px;border-radius:999px;border:0;cursor:pointer}
.ck-no{background:#EFE3D3;color:inherit}
.ck-open{font:inherit;color:inherit;background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}
.tablet .snd[hidden]{display:none}

/* store buttons side by side on every screen (owner 2026-11-30) */
.stores>.store-row,.stores{flex-wrap:nowrap}
.store{min-width:0;flex:0 1 auto}
@media (max-width:480px){.store{gap:7px;padding:7px 11px;min-height:52px}.store svg{width:20px;height:20px;flex:none}.store small{font-size:.66rem}.store b{font-size:.95rem;white-space:nowrap}}
