@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --cream: #f6eee4;
  --paper: #fbf6ef;
  --wood: #e9cfa6;
  --ink: #3b2f2a;
  --ink-soft: #6b5a50;
  --coral: #ef6f61;
  --sky: #7fb6e8;
  --sun: #f5c55a;
  --mint: #a9d98f;
  --night: #1b1650;
  --bg: var(--cream);
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: clip;
  transition: background-color .6s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
kbd { font: inherit; background: #fff; border: 1px solid #e2d4c3; border-bottom-width: 3px; border-radius: 6px; padding: 0 .35em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.eyebrow { font-size: .95rem; font-weight: 500; color: var(--coral); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 36em; margin-top: 20px; }

/* ---------- topo ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease);
}
.top.solid { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(59,47,42,.08); }
.top.dark { color: #fff; background: rgba(20, 16, 60, .55); box-shadow: none; }
.top.hide { transform: translateY(-110%); }
.brand { font-size: 1.9rem; font-weight: 600; color: var(--coral); text-decoration: none; letter-spacing: -.02em; }
.top.dark .brand { color: #ffb3a9; }
.brand.small { font-size: 1.5rem; }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-nav a { text-decoration: none; font-weight: 500; opacity: .8; }
.top-nav a:hover { opacity: 1; }
.sound { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.7); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.top.dark .sound { background: rgba(255,255,255,.15); color: #fff; }
.sound svg { width: 22px; height: 22px; }
.sound .wave { display: none; }
.sound[aria-pressed="true"] .wave { display: block; }
.sound[aria-pressed="true"] .mute { display: none; }
@media (max-width: 640px) { .top-nav { display: none; } .sound { margin-left: auto; } }

/* ---------- abertura ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-content: center; justify-items: center;
  text-align: center; padding: 120px 24px 80px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #fff8ee 0%, var(--cream) 55%, #f0e2d0 100%);
}
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; width: 220px; height: 70px; background: #fff; border-radius: 999px; opacity: .75; filter: blur(.5px); animation: drift 38s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 90px; height: 90px; left: 34px; top: -44px; }
.cloud::after { width: 120px; height: 120px; left: 92px; top: -62px; }
.c1 { top: 18%; left: -10%; }
.c2 { top: 62%; left: 70%; transform: scale(.7); animation-duration: 52s; animation-delay: -20s; }
.c3 { top: 30%; left: 40%; transform: scale(.5); opacity: .5; animation-duration: 64s; animation-delay: -40s; }
@keyframes drift { from { translate: -30vw 0; } to { translate: 120vw 0; } }

.wordmark { font-size: clamp(6rem, 22vw, 17rem); color: var(--coral); font-weight: 600; letter-spacing: -.04em; line-height: .9; display: flex; }
.wordmark span { display: inline-block; animation: pop-in 1s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.wordmark span:hover { animation: wobble .6s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(40%) scale(.6) rotate(-8deg); } }
@keyframes wobble { 30% { transform: translateY(-14%) rotate(-6deg); } 60% { transform: translateY(2%) rotate(4deg); } }
.hero-sub { font-size: clamp(1.2rem, 2.6vw, 1.8rem); color: var(--ink-soft); margin-top: 18px; animation: fade-up 1s var(--ease) .8s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
.hero-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font-size: .95rem; color: var(--ink-soft); animation: fade-up 1s var(--ease) 1.4s both; }
.hero-hint i { width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 14px; position: relative; opacity: .7; }
.hero-hint i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* passarinhos de feltro */
.flock { display: flex; gap: clamp(10px, 3vw, 34px); margin-top: 42px; align-items: flex-end; }
.flock.small { justify-content: center; margin-top: 36px; }
.bird { width: clamp(70px, 11vw, 120px); aspect-ratio: 1; cursor: pointer; border: 0; padding: 0; background: none; animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); -webkit-tap-highlight-color: transparent; }
.flock.small .bird { width: 64px; }
.bird svg { width: 100%; height: 100%; overflow: visible; transition: transform .35s var(--ease); }
.bird.hop svg { animation: hop .55s var(--ease); }
.bird:hover svg { transform: rotate(-6deg) scale(1.05); }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes hop { 35% { transform: translateY(-38%) scaleY(1.06) rotate(-8deg); } 70% { transform: translateY(0) scaleY(.9) scaleX(1.08); } }
.bird .pupil { transition: transform .12s linear; }
.bird.blink .eye-lid { transform: scaleY(1); }
.eye-lid { transform: scaleY(0); transform-box: fill-box; transform-origin: center top; transition: transform .08s; }

/* ---------- cenas com scroll ---------- */
.scene { position: relative; }
.sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }

/* A sala se abre */
.reveal { height: 340svh; background: #f0e2d0; }
.reveal .sticky { background: #f0e2d0; }
.reveal-frame { position: absolute; inset: 0; clip-path: inset(var(--it, 30%) var(--il, 34%) round var(--ir, 40px)); will-change: clip-path; }
.reveal-frame img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(var(--px, 0), 0, 0) scale(var(--ps, 1.25)); transform-origin: 50% 50%; will-change: transform; }
.reveal-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44,34,29,0) 40%, rgba(44,34,29,.55) 100%); opacity: var(--shade, 0); }
.reveal-lines { position: absolute; inset: auto 0 12svh 0; display: grid; justify-items: center; pointer-events: none; }
.reveal-lines .line { grid-area: 1 / 1; color: #fff; font-size: clamp(1.7rem, 4.4vw, 3.4rem); font-weight: 600; text-align: center; padding: 0 24px; text-shadow: 0 2px 24px rgba(0,0,0,.35); opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-lines .line.big { font-size: clamp(3rem, 9vw, 7rem); }
.reveal-lines .line.on { opacity: 1; transform: none; }

/* Doze brinquedos */
.toys { height: calc(12 * 85svh + 100svh); }
.toys .sticky { transition: color .6s var(--ease); }
.toys.night .sticky { color: #fff; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.toys.night .stars { opacity: 1; }
.toys-kicker { position: absolute; top: 92px; left: clamp(24px, 6vw, 80px); font-size: 1rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--coral); }
.toys.night .toys-kicker { color: #ffb3a9; }
.toys-stage { position: absolute; inset: 0; }
.toy {
  position: absolute; inset: 0; display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 120px clamp(56px, 7vw, 110px) 80px clamp(24px, 6vw, 80px); pointer-events: none;
}
.toy.on { pointer-events: auto; }
.toy-copy > * { opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.toy.on .toy-copy > * { opacity: 1; transform: none; }
.toy.on .toy-copy > :nth-child(2) { transition-delay: .06s; }
.toy.on .toy-copy > :nth-child(3) { transition-delay: .12s; }
.toy.on .toy-copy > :nth-child(4) { transition-delay: .18s; }
.toy-num { font-size: clamp(4rem, 10vw, 8rem); font-weight: 600; line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
.toy h3 { font-size: clamp(2.2rem, 5vw, 4rem); margin-top: 8px; }
.toy-desc { font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin-top: 16px; max-width: 26em; color: color-mix(in srgb, currentColor 82%, transparent); }
.tag { display: inline-block; margin-top: 20px; font-size: .9rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.7); }
.tag.free { background: var(--accent); color: #fff; }
.toys.night .tag { background: rgba(255,255,255,.14); }
.toy-shot {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1854 / 1011;
  box-shadow: 0 30px 80px -20px rgba(59,47,42,.45), 0 0 0 10px rgba(255,255,255,.55);
  opacity: 0; transform: perspective(1400px) translate3d(0, 12%, 0) rotateX(14deg) scale(.88);
  transition: opacity .7s var(--ease), transform 1s var(--ease);
}
.toys.night .toy-shot { box-shadow: 0 30px 90px -10px rgba(0,0,0,.6), 0 0 0 10px rgba(255,255,255,.08); }
.toy.on .toy-shot { opacity: 1; transform: perspective(1400px) translate3d(0, var(--ty, 0), 0) rotateY(var(--ry, -4deg)) scale(1); }
.toy.past .toy-shot { opacity: 0; transform: perspective(1400px) translate3d(0, -14%, 0) rotateX(-10deg) scale(.92); }
.toy.past .toy-copy > * { opacity: 0; transform: translateY(-30px); }
.toy-shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zs, 1.06)); transition: transform 1.2s var(--ease); }
.toys-dots { position: absolute; right: clamp(14px, 2.4vw, 32px); top: 50%; translate: 0 -50%; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toys-dots li { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .2; transition: opacity .3s, transform .3s var(--ease); }
.toys-dots li.on { opacity: .9; transform: scale(1.5); }

@media (max-width: 820px) {
  .toy { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 24px; padding: 130px 22px 50px; }
  .toy-shot { order: -1; }
  .toy-num { font-size: 3.2rem; display: inline; margin-right: 10px; }
  .toy h3 { display: inline; font-size: 2.2rem; }
  .toy-desc { margin-top: 10px; }
  .tag { margin-top: 12px; }
  .toys-kicker { top: 80px; left: 22px; }
  .toys-dots { display: none; }
}

/* ---------- toque ---------- */
.play { padding: clamp(90px, 14vw, 170px) 0; background: var(--paper); text-align: center; }
.play .lede { margin-inline: auto; }
.xylo { --n: 8; display: flex; justify-content: center; align-items: center; gap: clamp(6px, 1.2vw, 14px); margin-top: 56px; touch-action: none; user-select: none; -webkit-user-select: none; }
.key {
  --h: 1; width: clamp(34px, 8vw, 84px); height: calc(clamp(150px, 28vw, 300px) * var(--h)); border: 0; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 30%, color-mix(in srgb, var(--c) 85%, #000) 100%);
  box-shadow: 0 10px 0 color-mix(in srgb, var(--c) 60%, #000), 0 18px 30px -8px rgba(59,47,42,.35);
  position: relative; transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.key::before, .key::after { content: ""; position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: rgba(255,255,255,.75); }
.key::before { top: 16px; } .key::after { bottom: 16px; }
.key.hit { transform: translateY(8px) scale(.98); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 60%, #000), 0 6px 14px -6px rgba(59,47,42,.35); }
.key .k { position: absolute; bottom: -38px; left: 0; right: 0; font-size: .85rem; color: var(--ink-soft); }
.xylo-note { min-height: 1.5em; margin-top: 60px; color: var(--ink-soft); }
.note-burst { position: fixed; pointer-events: none; z-index: 60; font-size: 26px; animation: burst 1s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--dx), -110px) rotate(var(--dr)); opacity: 0; } }
@media (hover: none) { .key .k { display: none; } }

/* ---------- cada criança ---------- */
.each { padding: clamp(90px, 12vw, 160px) 0; }
.each-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.counts { display: flex; gap: clamp(20px, 4vw, 48px); margin: 40px 0 0; }
.counts dt { order: 2; font-size: 1rem; color: var(--ink-soft); }
.counts div { display: flex; flex-direction: column; }
.counts dd { margin: 0; font-size: clamp(3rem, 7vw, 5rem); font-weight: 600; line-height: 1; color: var(--coral); font-variant-numeric: tabular-nums; }
.counts dd.zero { color: var(--mint); color: #5aa35a; }
.each-shots { position: relative; aspect-ratio: 1 / .9; }
.shot { position: absolute; margin: 0; width: 72%; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px -18px rgba(59,47,42,.45), 0 0 0 8px #fff; transform: translate3d(0, var(--y, 0), 0) rotate(var(--r, 0)); will-change: transform; }
.s1 { top: 0; left: 0; --r: -4deg; }
.s2 { top: 28%; right: 0; --r: 3deg; }
.s3 { bottom: 0; left: 12%; --r: -1deg; }
@media (max-width: 820px) { .each-grid { grid-template-columns: 1fr; } .each-shots { aspect-ratio: 1 / 1; } }

/* ---------- famílias ---------- */
.families { padding: clamp(90px, 12vw, 160px) 0; background: #fff7ec; }
.promises { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.promises li {
  background: #fff; border-radius: 24px; padding: 28px 26px; display: grid; gap: 8px; align-content: start; box-shadow: 0 1px 0 rgba(59,47,42,.06), 0 14px 34px -22px rgba(59,47,42,.4);
  opacity: 0; transform: translateY(40px) rotate(var(--r, 0deg)); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 70ms);
}
.promises li:nth-child(odd) { --r: -1.5deg; } .promises li:nth-child(even) { --r: 1.5deg; }
.promises.in li { opacity: 1; transform: none; }
.promises b { font-size: 1.3rem; font-weight: 600; }
.promises span { color: var(--ink-soft); }
.promises li::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: var(--dot); margin-bottom: 6px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.08); }
.promises li:nth-child(7n+1) { --dot: var(--coral); } .promises li:nth-child(7n+2) { --dot: var(--sky); } .promises li:nth-child(7n+3) { --dot: var(--sun); }
.promises li:nth-child(7n+4) { --dot: var(--mint); } .promises li:nth-child(7n+5) { --dot: #b9a6e6; } .promises li:nth-child(7n+6) { --dot: #f5a35b; } .promises li:nth-child(7n+7) { --dot: #5fc2b5; }

/* ---------- planos ---------- */
.plans { padding: clamp(90px, 12vw, 160px) 0; }
.plan-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; margin-top: 56px; align-items: stretch; }
.plan { border-radius: var(--radius); padding: 36px 32px; background: var(--paper); display: grid; gap: 12px; align-content: start; box-shadow: inset 0 0 0 2px #eadfce; }
.plan h3 { font-size: 1.5rem; }
.price { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; color: var(--coral); line-height: 1.1; }
.price small { font-size: 1.1rem; font-weight: 400; color: var(--ink-soft); }
.plan .alt { margin-top: -6px; }
.plan .fine { font-size: .92rem; color: var(--ink-soft); }
.plan.premium { background: linear-gradient(160deg, #fff4e3, #ffe7df); box-shadow: inset 0 0 0 2px #f6c9b8, 0 30px 60px -30px rgba(239,111,97,.5); }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- fim ---------- */
.end { padding: clamp(100px, 14vw, 180px) 0; text-align: center; background: radial-gradient(100% 90% at 50% 100%, #ffe1cf 0%, var(--cream) 70%); }
.end h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); color: var(--coral); }
.soon { display: inline-block; margin-top: 28px; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: 1.1rem; }
.foot { padding: 30px 0 40px; background: var(--cream); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); }

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { height: auto; }
  .reveal .sticky { position: relative; height: auto; }
  .reveal-frame { position: relative; clip-path: none; }
  .reveal-frame img { transform: none; height: auto; }
  .reveal-lines { position: relative; inset: auto; padding: 32px 0 60px; gap: 8px; background: #2c221d; }
  .reveal-lines .line { grid-area: auto; opacity: 1; transform: none; }
  .toys { height: auto; }
  .toys .sticky { position: relative; height: auto; overflow: visible; }
  .toys-stage { position: relative; }
  .toy { position: relative; padding-block: 40px; }
  .toy .toy-shot, .toy .toy-copy > * { opacity: 1; transform: none; }
  .toys-kicker { position: relative; top: 0; padding: 90px 24px 0; }
  .toys-dots, .stars { display: none; }
  .promises li { opacity: 1; transform: none; }
}
