/* Tosta, jogos para crianças. Promo + legal pages. Shared styles. */

/* ---------- Fontes locais (offline) ---------- */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(assets/fonts/baloo2-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(assets/fonts/baloo2-700-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: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url(assets/fonts/baloo2-800-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url(assets/fonts/baloo2-800-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: 600;
  font-display: block;
  src: url(assets/fonts/nunito-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: block;
  src: url(assets/fonts/nunito-600-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: 700;
  font-display: block;
  src: url(assets/fonts/nunito-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url(assets/fonts/nunito-700-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: 800;
  font-display: block;
  src: url(assets/fonts/nunito-800-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url(assets/fonts/nunito-800-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;
}

:root{
  --ink:#2B2440; --muted:#6E6785; --line:#ECE8F5;
  --green:#34B95E; --blue:#028BDA; --gold:#FE9708; --pink:#F6326D;
  --card:#ffffff; --radius:24px;
  --shadow:0 18px 40px rgba(43,36,64,.10);
  --shadow-lg:0 30px 70px rgba(43,36,64,.18);
  --maxw:1080px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--ink);
  font-family:'Nunito',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  font-size:18px; line-height:1.6;
  background:linear-gradient(160deg,#CDEBFF 0%,#D9E4FF 30%,#EBE3FF 62%,#FFE6F2 100%);
  background-attachment:fixed;
  min-height:100vh; overflow-x:hidden;
}
/* triângulos da marca a flutuar no fundo (como no hub); fica atrás do conteúdo */
#bg-tris{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
h1,h2,h3,.brandmark{font-family:'Baloo 2','Nunito',cursive}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}

/* language toggle: both languages live in the DOM; CSS shows the active one.
   The .lang-en class is set on <html> by an inline <head> script BEFORE first paint
   (see each page's head) so the page never flashes PT before switching to EN. */
:root:not(.lang-en) .en{display:none}
:root.lang-en .pt{display:none}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}

/* header */
header.site{display:flex;align-items:center;gap:14px;padding:20px 22px;max-width:var(--maxw);margin:0 auto}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.logo img{width:44px;height:44px}
.brandmark{font-weight:800;font-size:28px;letter-spacing:.2px}
.spacer{flex:1}
.langtoggle{display:inline-flex;background:#fff;border-radius:999px;padding:4px;box-shadow:0 6px 14px rgba(43,36,64,.10)}
.langtoggle button{border:0;background:transparent;font-family:'Baloo 2',cursive;font-weight:700;font-size:14px;color:var(--muted);padding:6px 14px;border-radius:999px;cursor:pointer}
/* Active pill is driven by the <html>.lang-en class (set pre-paint) so it never flashes the
   wrong side. .active kept as a harmless no-op that lang.js still toggles. */
:root:not(.lang-en) .langtoggle [data-lang-btn="pt"],
:root.lang-en .langtoggle [data-lang-btn="en"]{background:var(--ink);color:#fff}

/* hero */
.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center;padding:26px 22px 20px;max-width:var(--maxw);margin:0 auto}
.hero h1{font-size:clamp(40px,6.4vw,68px);margin:.12em 0 .06em;line-height:1.02}
.hero .h1-wave{display:block;width:210px;max-width:62%;height:15px;margin:2px 0 6px;color:var(--pink)}
.hero h1 .swoosh{background:linear-gradient(92deg,var(--gold),var(--pink) 55%,var(--blue));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero .tag{font-size:clamp(19px,3vw,25px);font-weight:800;color:var(--ink);font-family:'Baloo 2',cursive;line-height:1.15}
.hero p.lede{max-width:520px;margin:14px 0 0;color:#4b445f;font-size:18px}
/* Store buttons: two equal-width columns, both sized to the WIDER button
   (inline-grid shrink-to-fit + 1fr 1fr equalises to the largest content). */
.store-btns{display:inline-grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
.store-btns .cta{justify-content:center}   /* grid items stretch to the equal 1fr cell */
.cta{display:inline-flex;align-items:center;gap:11px;background:var(--ink);color:#fff;font-family:'Baloo 2',cursive;font-weight:800;padding:14px 24px;border-radius:16px;box-shadow:var(--shadow)}
.cta:hover{text-decoration:none;transform:translateY(-1px)}
.cta small{display:block;font-weight:600;font-size:11px;opacity:.72;font-family:'Nunito',sans-serif;line-height:1.1}
.cta b{font-size:19px;line-height:1.1}
.cta .soon{font-size:12px;font-weight:800;color:var(--gold);font-family:'Baloo 2',cursive}
.hero .age{color:var(--muted);font-weight:700;font-size:14px}

/* HERO PHONE: a portrait phone cycling 6 vertical gameplay CLIPS. Each clip is a horizontal
   sprite strip where the camera follows the fun moment (burger growing, card landing, bubbles
   merging into a lion, cat's kiss...), advanced by steps() then held on the payoff cell. */
.phone-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}
/* game-name caption under the phone, cycled in sync with the reel */
.reel-caption{position:relative;height:1.5em;width:min(300px,80vw);margin-top:16px}
.reel-caption .cap{position:absolute;inset:0;text-align:center;opacity:0;font-family:'Baloo 2',cursive;font-weight:800;font-size:20px;color:var(--ink);animation:capfade 24s ease-in-out infinite}
.cap.cc1{animation-delay:0s}.cap.cc2{animation-delay:-12s}.cap.cc3{animation-delay:-16s}.cap.cc4{animation-delay:-20s}.cap.cc5{animation-delay:-8s}.cap.cc6{animation-delay:-4s}
@keyframes capfade{0%{opacity:0}3%{opacity:1}15%{opacity:1}18%{opacity:0}100%{opacity:0}}
.phone{width:min(300px,80vw);background:#1d1830;border-radius:40px;padding:12px;box-shadow:var(--shadow-lg);transform:rotate(2deg);position:relative}
.phone::before{content:"";position:absolute;top:16px;left:50%;transform:translateX(-50%);width:96px;height:8px;background:#000;border-radius:99px;opacity:.55;z-index:2}
.phone .screen{width:100%;aspect-ratio:460/885;border-radius:29px;overflow:hidden;background:#cdebff;position:relative}
.clip{position:absolute;inset:0;background-repeat:no-repeat;background-position:0 0;opacity:0;
  background-size:calc(var(--n)*100%) 100%;will-change:opacity,transform;
  animation:reelfade 24s ease-in-out infinite, flip 24s steps(8) infinite}
/* On-screen order (negative delays reverse the source order): the delay sets the slot in the
   24s loop. Ordered strongest-first: Cozinheiro, Pizzaria, Animais, Bingo, Sumos, Recicla. */
.clip.c1{animation-delay:0s,0s;animation-timing-function:ease-in-out,steps(9)}     /* cozinheiro -> pos1 */
.clip.c2{animation-delay:-12s,-12s;animation-timing-function:ease-in-out,steps(11)} /* bingo    -> pos4 */
.clip.c3{animation-delay:-16s,-16s;animation-timing-function:ease-in-out,steps(7)} /* animais    -> pos3 */
.clip.c4{animation-delay:-20s,-20s;animation-timing-function:ease-in-out,steps(7)} /* pizzaria   -> pos2 */
/* sumos (c5): normal flip (was flipFast) so the reel does NOT sit for ~2s on a full shaker; the
   fill still reaches the top on the last frame, then holds only briefly like every other clip */
.clip.c5{animation-delay:-8s,-8s;animation-timing-function:ease-in-out,steps(19)} /* sumos -> pos5 (20 frames = fast shake) */
.clip.c6{animation-delay:-4s,-4s;animation-timing-function:ease-in-out,steps(11)}  /* recicla    -> pos6 */
/* Crossfade: fade OUT (16.67-18.67%) overlaps the next clip's fade IN (0-2%), so the screen
   never dips through the blank background between games. */
@keyframes reelfade{0%{opacity:0;transform:scale(1.02)}2%{opacity:1}16.67%{opacity:1;transform:scale(1.05)}18.67%{opacity:0;transform:scale(1.055)}100%{opacity:0;transform:scale(1.02)}}
@keyframes flip{0%{background-position-x:0%}2%{background-position-x:0%}13%{background-position-x:100%}100%{background-position-x:100%}}
@keyframes flipFast{0%{background-position-x:0%}2%{background-position-x:0%}6.5%{background-position-x:100%}100%{background-position-x:100%}}
@media (prefers-reduced-motion: reduce){
  .clip{animation:none;opacity:0;background-position-x:100%}
  .clip.c1{opacity:1}
  .cap{animation:none;opacity:0}
  .cap.cc1{opacity:1}
}

/* section shell */
.section{max-width:var(--maxw);margin:0 auto;padding:26px 22px}
.section-head{text-align:center;max-width:640px;margin:0 auto 24px}
.section-head.left{text-align:left;margin-left:0;max-width:760px}
.section-head h2{font-size:clamp(27px,4.4vw,38px);margin:.1em 0 .2em}
.section-head p{color:#4b445f;margin:0}

/* parent trust cards — cor pastel a preencher o cartão, ícone grande e integrado */
.trust{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.tcard{
  position:relative; overflow:hidden;
  border-radius:26px; padding:28px 24px;
  box-shadow:var(--shadow);
  min-height:250px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
}
.tcard .ic{
  width:106px; height:106px; object-fit:contain; margin-bottom:14px;
  filter:drop-shadow(0 8px 12px rgba(43,36,64,.14));
}
.tcard .ic.ic-md{ width:124px; height:124px; margin-bottom:11px }
.tcard .ic.ic-lg{ width:142px; height:142px; margin-bottom:8px }
.tcard h3{ margin:0 0 .35em; font-size:21px; color:var(--ink) }
.tcard p{ margin:0; color:#5b5470; font-size:15px; line-height:1.5; max-width:36ch }
@media (max-width:520px){
  .tcard{min-height:220px; padding:24px 20px}
  .tcard .ic{width:92px; height:92px}
  .tcard .ic.ic-md{width:108px; height:108px}
  .tcard .ic.ic-lg{width:120px; height:120px}
}

/* games showcase */
.games{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:20px}
.game{background:#fff;border-radius:22px;overflow:hidden;box-shadow:var(--shadow);transition:transform .15s ease, box-shadow .15s ease}
.game:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.game .art{aspect-ratio:4/3;background-size:cover;background-position:center;display:grid;place-items:center}
.game .art.icon{background:linear-gradient(160deg,#EAF4FF,#FBEAF2)}
.game .art.icon img{width:56%;filter:drop-shadow(0 8px 14px rgba(43,36,64,.18))}
.game .body{padding:14px 16px 18px}
.game .gname{font-family:'Baloo 2',cursive;font-weight:800;font-size:18px}
.game .learn{display:inline-block;margin-top:6px;font-size:13px;font-weight:700;color:var(--muted)}
/* rodapés pastel a ciclar, para variar o tom (contraria os banners quentes/castanhos) */
/* jogos = cartões brancos (linguagem distinta dos cartões coloridos dos pais);
   só um filete de cor no topo do rodapé, a ciclar, para um toque de variedade */
.game .body{border-top:3px solid transparent}
.game:nth-child(4n+1) .body{border-top-color:#028BDA}
.game:nth-child(4n+2) .body{border-top-color:#34B95E}
.game:nth-child(4n+3) .body{border-top-color:#F6326D}
.game:nth-child(4n+4) .body{border-top-color:#7C5CD6}
/* cartão "Em breve" (8º jogo, teaser) */
.game.soon{position:relative}
.game.soon .soon-art{aspect-ratio:4/3;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;background:linear-gradient(160deg,#F2ECE1,#E7DBC9);overflow:hidden}
.game.soon .soon-icon{width:125px;height:auto;filter:drop-shadow(0 6px 10px rgba(43,36,64,.12))}
.game.soon .ribbon{position:absolute;top:13px;left:12px;z-index:3;transform:rotate(-6deg);background:var(--pink);color:#fff;font-family:'Baloo 2',cursive;font-weight:800;font-size:13px;padding:5px 14px;border-radius:11px;box-shadow:0 5px 12px rgba(43,36,64,.22)}

/* cta band */
.band{max-width:var(--maxw);margin:24px auto;padding:0 22px}
.band .inner{background:linear-gradient(135deg,#FFE9BE,#FFD79A);color:#3a2f14;border-radius:28px;padding:clamp(30px,5vw,48px);text-align:center;box-shadow:var(--shadow-lg)}
.band h2{color:#2B2440;font-size:clamp(26px,4.4vw,36px);margin:0 0 6px}
.band p{color:#7a6636;margin:0 0 20px}
.band .cta{background:#fff;color:var(--ink)}
.band .cta .soon{color:var(--pink)}

/* legal pages */
.legal{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(24px,5vw,48px);margin:16px auto 40px;max-width:820px}
.legal h1{font-size:clamp(30px,6vw,42px);margin:0 0 4px}
.legal .updated{color:var(--muted);font-size:15px;margin-bottom:22px}
.legal h2{font-size:22px;margin:28px 0 6px}
.legal p,.legal li{color:#443c5c}
.legal ul{padding-left:20px}
.legal .tldr{background:#F5FBF7;border:1px solid #D6F0E1;border-radius:16px;padding:16px 20px;margin:18px 0}
.legal .tldr b{color:#1E8A54}
.backlink{display:inline-block;margin-bottom:6px;font-family:'Baloo 2',cursive;font-weight:700}

/* waitlist / avisa-me quando sair */
.waitlist{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(24px,5vw,44px);max-width:620px;margin:16px auto 40px;text-align:center;position:relative}
.waitlist .emoji{font-size:46px;line-height:1}
.waitlist h1{font-size:clamp(28px,5vw,40px);margin:.15em 0 .1em}
.waitlist p.sub{color:#4b445f;margin:0 auto 22px;max-width:470px}
.wl-form{display:grid;gap:13px;max-width:390px;margin:0 auto;text-align:left}
.wl-form label{font-weight:800;font-size:14px;color:var(--ink);margin-bottom:-6px}
.wl-form input,.wl-form select{width:100%;padding:13px 15px;border:2px solid var(--line);border-radius:14px;font:inherit;background:#fff;color:var(--ink)}
.wl-form input:focus,.wl-form select:focus{outline:none;border-color:var(--blue)}
.wl-form button{margin-top:4px;border:0;cursor:pointer;justify-content:center;font-size:18px;width:100%}
.wl-note{font-size:13px;color:var(--muted);margin-top:18px;max-width:430px;margin-left:auto;margin-right:auto}
.wl-ok{display:none;background:#F5FBF7;border:1px solid #D6F0E1;border-radius:16px;padding:18px 20px;color:#1E8A54;font-weight:700;margin:6px auto 0;max-width:390px}
.wl-ok.show{display:block}

/* footer */
footer.site{border-top:1px solid rgba(43,36,64,.10);margin-top:20px;background:rgba(255,255,255,.4)}
footer.site .wrap{padding:26px 22px;display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;color:var(--muted);font-size:15px}
footer.site a{font-family:'Baloo 2',cursive;font-weight:700;color:var(--ink)}
footer.site .spacer{flex:1;min-width:20px}

@media (max-width:820px){
  .hero{grid-template-columns:1fr;text-align:center;gap:24px}
  .hero p.lede{margin-left:auto;margin-right:auto}
  .hero .h1-wave{margin-left:auto;margin-right:auto}
  .store-btns{grid-template-columns:1fr}
  .phone-wrap{order:-1}
  .phone{transform:rotate(0)}
}
@media (max-width:560px){
  header.site{flex-wrap:wrap}
  .brandmark{font-size:24px}
}
