/* ==========================================================================
   NickInflável — styles.css
   1. Fontes e tokens   2. Base   3. Layout   4. Botões e componentes
   5. Cabeçalho e menu  6. Seções (hero → rodapé)   7. Lightbox
   8. Animações         9. Responsivo   10. Movimento reduzido
   ========================================================================== */

/* ---------- 1. Fontes e tokens ---------- */
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka-latin-wght.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito-latin-wght.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #2588ff;
  --blue-600: #1470e6;
  --blue-700: #0f59bd;
  --blue-100: #dcebff;
  --blue-50: #eef6ff;
  --yellow: #ffd93d;
  --yellow-edge: #e0a800;
  --yellow-100: #fff3c4;
  --pink: #ff65a3;
  --pink-edge: #d93b80;
  --pink-100: #ffe0ee;
  --orange: #ff914d;
  --orange-edge: #d9692a;
  --orange-100: #ffe5d3;
  --green: #55d98b;
  --green-edge: #2fa860;
  --green-100: #d7f7e4;
  --purple: #9565f5;
  --purple-600: #7745e0;
  --purple-edge: #5e2fc4;
  --purple-100: #eadfff;
  --ink: #1f1d4d;
  --ink-soft: #4a4880;
  --wa: #25d366;
  --wa-edge: #128c4a;

  --font-display: 'Fredoka', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 4.5vw, 40px);
  --maxw: 1180px;
  --header-h: 68px;
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;

  --shadow-1: 0 2px 6px rgba(31, 29, 77, 0.06), 0 12px 26px -12px rgba(31, 29, 77, 0.2);
  --shadow-2: 0 4px 10px rgba(31, 29, 77, 0.08), 0 26px 44px -18px rgba(31, 29, 77, 0.34);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 0.7em 1.2em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- 3. Layout ---------- */
.container {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

/* Enfeites decorativos podem passar da borda da tela; o clip evita rolagem horizontal sem criar um container de scroll. */
main { overflow-x: clip; }

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 120px);
}

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}

.section-head h2,
.exp__copy h2 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
}

.section-lead {
  margin-top: 18px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 0.38em 1.1em;
  border-radius: 999px;
  font: 700 0.85rem/1.2 var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow--blue { background: var(--blue-100); color: var(--blue-700); }
.eyebrow--pink { background: var(--pink-100); color: #b01f5f; }
.eyebrow--green { background: var(--green-100); color: #0e6b3c; }
.eyebrow--purple { background: var(--purple-100); color: #5b2bc0; }
.eyebrow--orange { background: var(--orange-100); color: #9a3f08; }

/* Bordas "nuvem" no topo das seções coloridas */
.section--experience,
.section--steps,
.section--gallery {
  background: var(--sec-bg);
  margin-top: 40px;
}

.section--experience::before,
.section--steps::before,
.section--gallery::before,
.footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  height: 40px;
  background: radial-gradient(circle at 50% 100%, var(--sec-bg) 0 37px, transparent 38px) 0 0 / 76px 40px repeat-x;
  pointer-events: none;
}

.section--experience { --sec-bg: rgba(255, 243, 196, 0.82); }
.section--steps { --sec-bg: rgba(220, 235, 255, 0.78); }
.section--gallery { --sec-bg: rgba(234, 223, 255, 0.72); }

/* ---------- 4. Botões e componentes ---------- */
.btn {
  --btn-bg: var(--yellow);
  --btn-edge: var(--yellow-edge);
  --btn-fg: var(--ink);
  --wa-glyph: var(--btn-bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.8em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 1.05rem/1.1 var(--font-display);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 5px 0 var(--btn-edge), 0 14px 22px -8px rgba(31, 29, 77, 0.38);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s var(--ease-out);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.6) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-out);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 0 var(--btn-edge), 0 20px 26px -10px rgba(31, 29, 77, 0.4);
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn:active {
  transform: translateY(4px) scale(0.99);
  box-shadow: 0 1px 0 var(--btn-edge), 0 6px 12px -6px rgba(31, 29, 77, 0.4);
}

.btn .icon { width: 1.3em; height: 1.3em; }

.btn--sm { min-height: 44px; padding: 0.6em 1.2em; font-size: 0.98rem; }
.btn--lg { min-height: 60px; padding: 0.9em 1.8em; font-size: 1.15rem; }
.btn--xl { min-height: 76px; padding: 1em 2.4em; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.7rem); text-transform: uppercase; letter-spacing: 0.02em; }

.btn--ghost {
  --btn-bg: #fff;
  --btn-edge: var(--blue-100);
  --btn-fg: var(--blue-700);
  box-shadow: 0 5px 0 var(--btn-edge), 0 14px 22px -10px rgba(31, 29, 77, 0.22), inset 0 0 0 3px var(--blue-600);
}

.btn--dark { --btn-bg: var(--ink); --btn-edge: #0e0d2d; --btn-fg: #fff; }
.btn--wa { --btn-bg: var(--wa); --btn-edge: var(--wa-edge); --btn-fg: var(--ink); }
.btn--ig {
  --btn-bg: var(--ink);
  --btn-edge: #0e0d2d;
  --btn-fg: #fff;
}
.btn--accent { --btn-bg: var(--accent); --btn-edge: var(--accent-edge); --btn-fg: var(--ink); width: 100%; }

.icon-btn {
  --wa-glyph: var(--ink);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: transform 0.2s var(--ease-bounce), background 0.2s;
}

.icon-btn:hover { transform: translateY(-3px) rotate(-6deg); background: rgba(255, 255, 255, 0.24); }
.icon-btn .icon { width: 24px; height: 24px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 22px;
  padding: 0.45em 1.1em 0.45em 0.8em;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-1);
  font: 600 0.98rem/1.2 var(--font-display);
  color: var(--blue-700);
}

.badge .icon { width: 1.4em; height: 1.4em; color: var(--yellow); }

.hide-sm { display: block; }

/* ---------- 5. Cabeçalho e menu ---------- */
.site-header {
  position: fixed;
  inset: max(12px, env(safe-area-inset-top)) 0 auto;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  pointer-events: none;
}

.site-header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(var(--maxw), 100%);
  height: var(--header-h);
  padding: 0 12px 0 18px;
  border: 1px solid rgba(31, 29, 77, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-1);
  transition: background 0.3s, box-shadow 0.3s;
}

.is-scrolled .site-header__bar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-2);
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  margin-block: -14px;
}

.brand img {
  width: auto;
  height: calc(var(--header-h) + 26px);
  filter: drop-shadow(0 6px 8px rgba(31, 29, 77, 0.28));
  transition: transform 0.4s var(--ease-bounce);
}

.brand:hover img { transform: rotate(-5deg) scale(1.06); }

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  padding: 0.5em 0.95em;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font-display);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover { background: var(--blue-50); }
.nav a[aria-current='true'] { background: var(--blue-100); color: var(--blue-700); }

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue-50);
  cursor: pointer;
}

.menu-toggle__bars {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 5px;
}

.menu-toggle__bars i {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-bounce), opacity 0.2s;
}

.menu-open .menu-toggle__bars i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle__bars i:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.menu-open .menu-toggle__bars i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: calc(var(--header-h) + 44px + env(safe-area-inset-top, 0px)) var(--gutter) 40px;
  background: linear-gradient(165deg, #1470e6 0%, #7745e0 62%, #c42f8c 120%);
  color: #fff;
  clip-path: circle(0 at calc(100% - 52px) 46px);
  transition: clip-path 0.65s var(--ease-out);
}

.mobile-menu[hidden] { display: none; }
.menu-open .mobile-menu { clip-path: circle(160% at calc(100% - 52px) 46px); }

.mobile-menu__nav { display: grid; gap: 4px; }

.mobile-menu__link,
.mobile-menu__cta {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.mobile-menu__link {
  display: block;
  padding: 0.18em 0;
  font: 700 clamp(2rem, 9vw, 2.8rem)/1.15 var(--font-display);
  text-decoration: none;
}

.menu-open .mobile-menu__link,
.menu-open .mobile-menu__cta {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.22s + var(--i) * 0.06s);
}

.mobile-menu__cta { align-self: flex-start; }

.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- 6. Seções ---------- */

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + 64px + env(safe-area-inset-top, 0px)) 0 clamp(96px, 10vw, 150px);
  background:
    radial-gradient(55% 48% at 88% 8%, rgba(255, 217, 61, 0.38), transparent 70%),
    radial-gradient(48% 44% at 4% 74%, rgba(255, 101, 163, 0.2), transparent 70%),
    linear-gradient(180deg, #d3e8ff 0%, #e9f4ff 48%, #fff 100%);
  overflow: hidden;
  overflow: clip;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: 44px;
  background: radial-gradient(circle at 50% 100%, #fff 0 37px, transparent 38px) 0 0 / 76px 44px repeat-x;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.hero__title {
  font-size: clamp(2.6rem, 1.3rem + 4.8vw, 4.9rem);
  line-height: 1.02;
}

.hl { position: relative; }

.hl--squiggle {
  padding-bottom: 0.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6Q10-2 20 6T40 6' fill='none' stroke='%23FF65A3' stroke-width='4.500' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 40px 0.32em repeat-x;
}

.hl--rainbow {
  background: linear-gradient(90deg, var(--blue-600), var(--purple-600) 55%, #e8408c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__lead {
  max-width: 34ch;
  margin-top: 22px;
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.4rem);
  color: var(--ink-soft);
}

.hero__actions .btn { padding-inline: 1.15em; font-size: 1.05rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 16px;
  margin-top: 34px;
}

.hero__facts {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.hero__facts li { display: flex; align-items: center; gap: 0.6em; }
.hero__facts .icon { color: var(--blue-600); }
.hero__facts li:first-child .icon { color: #17a24d; --wa-glyph: #eaf4ff; }

.hero__visual {
  --arch: 13px;
  --nx: 0;
  --ny: 0;
  position: relative;
  display: grid;
  width: min(100%, 470px);
  margin-inline: auto;
  padding: calc(var(--arch) * 5) calc(var(--arch) * 5) 0;
}

.rainbow,
.hero__tilt {
  grid-area: 1 / 1;
  transform: perspective(1100px) rotateY(calc(var(--nx) * 7deg)) rotateX(calc(var(--ny) * -6deg));
  transition: transform 0.25s ease-out;
}

.rainbow { position: relative; pointer-events: none; }

.rainbow i {
  position: absolute;
  inset: calc(var(--i) * var(--arch) * -1) calc(var(--i) * var(--arch) * -1) 0;
  border-radius: 999px 999px 0 0;
  background: var(--c);
}

.hero__tilt { position: relative; }

.hero__photo {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: #cfe3ff;
  box-shadow: 0 30px 50px -20px rgba(31, 29, 77, 0.5);
}

.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.hero__sticker {
  position: absolute;
  left: -14%;
  bottom: 27%;
  z-index: 3;
  max-width: 11em;
  padding: 0.6em 1em;
  border-radius: 16px;
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--yellow-edge), 0 14px 20px -8px rgba(31, 29, 77, 0.4);
  font: 700 0.95rem/1.15 var(--font-display);
  transform: rotate(-6deg);
}

.hero__seal {
  position: absolute;
  top: calc(var(--arch) * 5 + 8%);
  right: -2%;
  z-index: 5;
  width: clamp(92px, 9vw, 124px);
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(31, 29, 77, 0.25));
  transform: translate3d(var(--mx, 0), calc(var(--my, 0px) + var(--py, 0px)), 0);
}

.hero__seal-text {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 22s linear infinite;
}

/* Balões */
.hb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 4;
  width: var(--s);
  color: var(--c);
  cursor: pointer;
  transform: translate3d(var(--mx, 0), calc(var(--my, 0px) + var(--py, 0px)), 0);
  -webkit-tap-highlight-color: transparent;
}

.hb__rise {
  display: block;
  animation: rise 2.8s var(--ease-out) var(--d) both;
}

.hb__svg {
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: 50% 8%;
  filter: drop-shadow(0 10px 10px rgba(31, 29, 77, 0.18));
  animation: sway calc(4.5s + var(--d) * 4) ease-in-out calc(var(--d) + 2.6s) infinite alternate;
}

.hb.is-popped .hb__rise {
  animation: none;
  opacity: 0;
  transform: scale(1.6);
  transition: opacity 0.18s, transform 0.18s;
}

/* Nuvens, estrelas e confetes decorativos */
.cloud {
  position: absolute;
  color: #fff;
  filter: drop-shadow(0 12px 14px rgba(37, 136, 255, 0.16));
}

.cloud--a { left: -60px; top: 14%; width: 260px; height: 118px; animation: drift 60s ease-in-out infinite alternate; }
.cloud--b { right: 6%; top: 8%; width: 190px; height: 86px; opacity: 0.9; animation: drift 80s ease-in-out -20s infinite alternate-reverse; }
.cloud--c { left: 38%; bottom: 6%; width: 210px; height: 96px; opacity: 0.85; animation: drift 70s ease-in-out -35s infinite alternate; }
.cloud--base-l,
.cloud--base-r { z-index: 4; height: auto; }
.cloud--base-l { left: 2%; bottom: -28px; width: 46%; max-width: 210px; }
.cloud--base-r { right: 4%; bottom: -34px; width: 38%; max-width: 170px; }

.twinkle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  color: var(--c);
  animation: twinkle 3.2s ease-in-out var(--d) infinite;
}

.bit {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 14px;
  height: 22px;
  border-radius: 4px;
  background: var(--c);
  transform: rotate(var(--r));
  animation: bit-float 6s ease-in-out var(--d) infinite alternate;
}

.bit--round { width: 14px; height: 14px; border-radius: 50%; }

.bit--squiggle {
  width: 38px;
  height: 12px;
  border-radius: 0;
  background: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 12'%3E%3Cpath d='M2 6Q7 0 12 6T22 6T32 6' fill='none' stroke='black' stroke-width='3.500' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 12'%3E%3Cpath d='M2 6Q7 0 12 6T22 6T32 6' fill='none' stroke='black' stroke-width='3.500' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: var(--c);
}

/* Camada de balões do fundo da página (criada via JS) */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__balloon {
  position: absolute;
  left: var(--x);
  bottom: 0;
  width: var(--s);
  color: var(--c);
  opacity: var(--o, 0.55);
  filter: blur(var(--blur, 0));
  animation: ambient-rise var(--dur) linear var(--delay) infinite;
  will-change: transform;
}

.ambient__balloon svg {
  width: 100%;
  height: auto;
  overflow: visible;
  animation: sway 5s ease-in-out infinite alternate;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Brinquedos */
.section--toys { padding-top: clamp(56px, 7vw, 90px); }

.toy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 24px;
}

.toy-card {
  --accent: var(--blue);
  --accent-edge: #1269d6;
  --accent-soft: var(--blue-100);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 22px;
  border: 1px solid rgba(31, 29, 77, 0.06);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease-out);
}

.toy-card--pink { --accent: var(--pink); --accent-edge: var(--pink-edge); --accent-soft: var(--pink-100); }
.toy-card--orange { --accent: var(--orange); --accent-edge: var(--orange-edge); --accent-soft: var(--orange-100); }
.toy-card--green { --accent: var(--green); --accent-edge: var(--green-edge); --accent-soft: var(--green-100); }
.toy-card--purple { --accent: var(--purple); --accent-edge: var(--purple-edge); --accent-soft: var(--purple-100); }

.toy-card:hover {
  transform: translateY(-10px) rotate(-0.8deg);
  box-shadow: var(--shadow-2);
}

.toy-card:nth-child(even):hover { transform: translateY(-10px) rotate(0.8deg); }

.toy-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: var(--accent-soft);
  overflow: hidden;
}

.toy-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.toy-card:hover .toy-card__media img { transform: scale(1.07); }

.toy-card__tag,
.toy-card__size {
  position: absolute;
  z-index: 2;
  font: 700 0.85rem/1 var(--font-display);
  border-radius: 999px;
}

.toy-card__tag {
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.95em;
  background: #fff;
  box-shadow: 0 4px 10px rgba(31, 29, 77, 0.18);
}

.toy-card__tag::before {
  content: '';
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--accent);
}

.toy-card__size {
  left: 12px;
  bottom: 12px;
  padding: 0.6em 1em;
  background: var(--accent);
  box-shadow: 0 4px 0 var(--accent-edge);
  transform: rotate(-3deg);
  transition: transform 0.4s var(--ease-bounce);
}

.toy-card:hover .toy-card__size { transform: rotate(2deg) scale(1.08); }

.toy-card__star {
  position: absolute;
  right: -10px;
  top: -14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  color: var(--yellow);
  transform: scale(0) rotate(-40deg);
  transition: transform 0.45s var(--ease-bounce);
}

.toy-card:hover .toy-card__star { transform: scale(1) rotate(12deg); }

.toy-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 12px 0;
}

.toy-card__title { font-size: 1.45rem; }
.toy-card__text { font-size: 0.98rem; color: var(--ink-soft); }

.toy-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 2px 0 8px;
  font-size: 0.92rem;
}

.toy-card__specs div { display: flex; gap: 0.4em; }
.toy-card__specs dt { color: var(--ink-soft); }
.toy-card__specs dd { margin: 0; font-weight: 800; }
.toy-card__specs .is-pending dd { font-weight: 600; color: var(--ink-soft); }
.toy-card__price { align-self: flex-start; padding: 0.3em 0.8em; border-radius: 999px; background: var(--accent-soft); font: 700 0.95rem var(--font-display); }
.toy-card .btn { margin-top: auto; }

.toys-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 3.5vw, 40px) clamp(24px, 4vw, 48px) clamp(24px, 3.5vw, 40px) clamp(88px, 9vw, 120px);
  border-radius: var(--r-lg);
  background: linear-gradient(110deg, var(--yellow-100), var(--pink-100) 70%, var(--purple-100));
}

.toys-more__star {
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  top: 50%;
  width: clamp(48px, 6vw, 70px);
  height: clamp(48px, 6vw, 70px);
  color: var(--yellow);
  filter: drop-shadow(0 6px 0 var(--yellow-edge));
  transform: translateY(-50%) rotate(-12deg);
  animation: wiggle 4s ease-in-out infinite;
}

.toys-more h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.toys-more p { margin-top: 6px; color: var(--ink-soft); }
.noscript-note { padding: 16px; text-align: center; }

/* Experiência */
.exp {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.exp__copy .btn { margin-top: 32px; }

.collage {
  --row: clamp(40px, 5.6vw, 64px);
  --gap: clamp(10px, 1.6vw, 18px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: var(--row);
  gap: var(--gap);
  margin: 14px 16px 22px 8px;
}

.collage__item {
  position: relative;
  margin: 0;
  box-shadow: 10px 10px 0 var(--shadow, var(--blue));
}

.collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: #fff;
}

.c1 { grid-area: 1 / 1 / 7 / 4; border-radius: 999px 999px 32px 32px; }
.c2 { grid-area: 1 / 4 / 4 / 7; border-radius: 40px; }
.c3 { grid-area: 4 / 4 / 10 / 7; border-radius: 32px 32px 110px 32px; }
.c4 { grid-area: 7 / 1 / 10 / 4; border-radius: 110px 32px 32px 32px; }

.c5 {
  position: absolute;
  left: 34%;
  top: 43%;
  z-index: 2;
  width: 31%;
  aspect-ratio: 1;
  border: 6px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 0 var(--purple), 0 18px 26px -10px rgba(31, 29, 77, 0.4);
}

.c5 img { object-position: 50% 70%; }

.sticker {
  position: absolute;
  z-index: 3;
  max-width: 11.5em;
  padding: 0.55em 0.95em;
  border-radius: 14px;
  font: 700 clamp(0.78rem, 0.62rem + 0.55vw, 1.02rem)/1.15 var(--font-display);
  box-shadow: 0 5px 0 rgba(31, 29, 77, 0.22), 0 12px 18px -8px rgba(31, 29, 77, 0.35);
  transform: rotate(var(--rot, 0deg));
}

.sticker--yellow { background: var(--yellow); color: var(--ink); }
.sticker--pink { background: var(--pink); color: var(--ink); }
.sticker--blue { background: var(--blue-600); color: #fff; }

.deco {
  position: absolute;
  pointer-events: none;
  transform: translate3d(0, var(--py, 0px), 0);
}

.deco--star { right: -22px; top: -20px; width: 54px; height: 54px; color: var(--c); }
.deco--star-2 { right: auto; left: -26px; top: 46%; width: 38px; height: 38px; }
.deco--ring { left: 46%; bottom: -26px; width: 58px; height: 58px; border: 8px solid var(--green); border-radius: 50%; }

/* Como funciona */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 44px;
}

.steps__path {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 150px;
  color: rgba(31, 29, 77, 0.28);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.8s var(--ease-out) 0.2s;
}

.steps.is-in .steps__path { clip-path: inset(0); }

.step { position: relative; text-align: center; }
.step:nth-of-type(odd) .step__icon { margin-top: 0; }
.step:nth-of-type(even) .step__icon { margin-top: 46px; }

.step__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 7px 0 var(--edge), 0 18px 24px -10px rgba(31, 29, 77, 0.35);
  transition: transform 0.4s var(--ease-bounce);
}

.step:hover .step__icon { transform: translateY(-6px) rotate(-6deg) scale(1.06); }
.step__icon .icon { width: 52px; height: 52px; color: var(--ink); }

.step__num {
  position: absolute;
  right: -4px;
  top: -4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  font: 700 1.05rem/1 var(--font-display);
}

.step h3 { font-size: 1.35rem; }
.step p { max-width: 22ch; margin: 8px auto 0; color: var(--ink-soft); }

/* Diferenciais */
.perks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.perk {
  --bg: var(--yellow);
  --fg: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 2;
  min-height: 250px;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease-out);
}

.perk::after {
  content: '';
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.6s var(--ease-out);
}

.perk:nth-child(4),
.perk:nth-child(5) { grid-column: span 3; min-height: 210px; }

.perk:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: var(--shadow-2); }
.perk:hover::after { transform: scale(1.5); }

.perk--yellow { --bg: var(--yellow); }
.perk--blue { --bg: var(--blue-600); --fg: #fff; }
.perk--pink { --bg: var(--pink); }
.perk--green { --bg: var(--green); }
.perk--purple { --bg: var(--purple-600); --fg: #fff; }

.perk__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(31, 29, 77, 0.2);
  transition: transform 0.5s var(--ease-bounce);
}

.perk:hover .perk__icon { transform: rotate(-10deg) scale(1.1); }
.perk__icon .icon { width: 38px; height: 38px; }
.perk h3 { font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.6rem); }
.perk p { position: relative; z-index: 1; font-weight: 600; opacity: 0.92; }

/* Galeria */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.chip {
  padding: 0.55em 1.2em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font: 600 1rem/1.1 var(--font-display);
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce), background 0.2s, color 0.2s;
}

.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; }

.gallery {
  --gallery-gap: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 8px;
  grid-auto-flow: row dense;
  column-gap: var(--gallery-gap);
}

/* A altura de cada item (grid-row-end) é calculada em gallery.js para formar o mosaico. */
.gallery__item { align-self: start; }

.gallery__item.is-entering { animation: pop-in 0.5s var(--ease-bounce) both; }

.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--ph, #dfe9fb);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-bounce);
}

.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31, 29, 77, 0.45));
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery__btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.gallery__btn:hover img { transform: scale(1.09); }
.gallery__btn:hover::after { opacity: 1; }

.gallery__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transform: scale(0) rotate(-30deg);
  transition: transform 0.4s var(--ease-bounce);
}

.gallery__btn:hover .gallery__zoom,
.gallery__btn:focus-visible .gallery__zoom { transform: scale(1) rotate(0); }
.gallery__zoom .icon { width: 26px; height: 26px; }

/* Chamada final */
.cta {
  position: relative;
  margin: clamp(36px, 5vw, 64px) clamp(8px, 2vw, 28px) 0;
  padding: clamp(72px, 9vw, 130px) 0;
  border-radius: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 217, 61, 0.28), transparent 38%),
    radial-gradient(circle at 90% 86%, rgba(255, 101, 163, 0.34), transparent 40%),
    linear-gradient(135deg, #1b67dd 0%, #6d3fe0 58%, #b5338b 120%);
  color: #fff;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  z-index: 1;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(rgba(255, 255, 255, 0.16) 2px, transparent 2.500px) 0 0 / 34px 34px;
  mask: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask: linear-gradient(180deg, #000, transparent 85%);
}

.cta__decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.cta__inner {
  position: relative;
  max-width: 760px;
  text-align: center;
}

.cta h2 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.4rem); text-shadow: 0 4px 0 rgba(31, 29, 77, 0.22); }
.cta p { max-width: 36ch; margin: 22px auto 40px; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); }

.cta__button { animation: glow 2.8s ease-in-out infinite; }

.cta__photo {
  position: absolute;
  top: 50%;
  width: clamp(150px, 16vw, 220px);
  padding: 8px 8px 8px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 40px -14px rgba(18, 16, 56, 0.55);
  transform: translate3d(0, calc(-50% + var(--py, 0px)), 0) rotate(var(--rot));
}

.cta__photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.cta__photo--l { --rot: -7deg; left: clamp(16px, 4vw, 64px); }
.cta__photo--r { --rot: 6deg; right: clamp(16px, 4vw, 64px); }

.cb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  color: var(--c);
  transform: translate3d(0, var(--py, 0px), 0);
}

.cb svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 12px rgba(18, 16, 56, 0.3)); animation: sway var(--dur) ease-in-out var(--d) infinite alternate; transform-origin: 50% 8%; }

/* Contato */
.section--contact { padding-bottom: clamp(48px, 6vw, 80px); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin-inline: auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.contact-card--wa { background: linear-gradient(150deg, #d9f8e6, #effcf4); }
.contact-card--ig { background: linear-gradient(150deg, #ffe3f0, #eadfff); }

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 5px 0 rgba(31, 29, 77, 0.2);
}

.contact-card--wa .contact-card__icon { background: var(--wa); --wa-glyph: #25d366; }
.contact-card--ig .contact-card__icon { background: linear-gradient(135deg, #ff914d, #ff65a3 55%, #9565f5); }
.contact-card__icon .icon { width: 36px; height: 36px; }
.contact-card h3 { font-size: 1.45rem; }
.contact-card__value { font: 700 clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem)/1.1 var(--font-display); }
.contact-card__value a { text-decoration: none; }
.contact-card__value a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contact-card > p:not(.contact-card__value) { color: var(--ink-soft); }
.contact-card .btn { margin-top: auto; }

/* Rodapé */
.footer {
  --sec-bg: var(--ink);
  margin-top: 40px;
  padding: 56px 0 28px;
  background: var(--ink);
  color: #fff;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 24px clamp(24px, 5vw, 56px);
}

.footer__brand img { width: 120px; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.footer__title { font: 700 1.5rem var(--font-display); }
.footer__about p:last-child { margin-top: 6px; max-width: 42ch; color: rgba(255, 255, 255, 0.78); }
.footer__nav { display: grid; gap: 6px; font-weight: 700; }
.footer__nav a { text-decoration: none; opacity: 0.85; }
.footer__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.footer__social { display: flex; gap: 10px; }

.footer__copy {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* WhatsApp flutuante */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--wa-edge), 0 16px 28px -8px rgba(18, 140, 74, 0.65);
  transition: transform 0.25s var(--ease-bounce), opacity 0.3s;
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--wa);
  animation: pulse-ring 3.2s ease-out infinite;
}

.wa-float:hover { transform: translateY(-4px) scale(1.06); }
.wa-float:active { transform: translateY(2px) scale(0.97); }
.wa-float .icon { width: 36px; height: 36px; --wa-glyph: #25d366; }

.wa-float__label {
  position: absolute;
  right: 76px;
  padding: 0.55em 1em;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font: 600 0.95rem/1 var(--font-display);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease-out);
}

.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label { opacity: 1; transform: none; }

/* ---------- 7. Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}

.lightbox[open] { display: grid; }

.lightbox::backdrop {
  background: rgba(18, 16, 56, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox[open]::backdrop { animation: fade-in 0.3s ease-out; }
.lightbox.is-closing::backdrop { animation: fade-out 0.25s ease-in forwards; }

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 64px clamp(10px, 7vw, 110px) 76px;
  animation: lb-in 0.4s var(--ease-out);
}

.lightbox.is-closing .lightbox__stage { animation: lb-out 0.25s ease-in forwards; }

.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  touch-action: pan-y;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  width: auto;
  height: auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__img.is-next { animation: slide-next 0.4s var(--ease-out); }
.lightbox__img.is-prev { animation: slide-prev 0.4s var(--ease-out); }

.lightbox__caption {
  max-width: 60ch;
  font-size: 0.95rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: 22px;
  padding: 0.35em 1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font: 600 0.95rem var(--font-display);
  transform: translateX(-50%);
}

.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease-bounce);
}

.lightbox__btn:hover { transform: scale(1.1); }
.lightbox__btn .icon { width: 26px; height: 26px; }
.lightbox__close { right: clamp(12px, 3vw, 32px); top: 14px; }
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__nav--prev { left: clamp(8px, 2vw, 28px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 28px); }

/* ---------- 8. Animações ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s var(--ease-out) var(--d, 0ms), transform 0.9s var(--ease-out) var(--d, 0ms);
}

.js [data-reveal='pop'] { transform: scale(0.8) translate3d(0, 14px, 0); transition-timing-function: var(--ease-out), var(--ease-bounce); }
.js [data-reveal='left'] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal='right'] { transform: translate3d(40px, 0, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise {
  from { transform: translate3d(0, 115vh, 0) rotate(-8deg); }
  to { transform: translate3d(0, 0, 0) rotate(0); }
}

@keyframes sway {
  from { transform: rotate(-4deg) translateY(0); }
  to { transform: rotate(4deg) translateY(-10px); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(70px, 8px, 0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.75) rotate(-8deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(8deg); }
}

@keyframes bit-float {
  from { transform: translateY(0) rotate(var(--r)); }
  to { transform: translateY(-16px) rotate(calc(var(--r) + 40deg)); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes wiggle {
  0%, 100% { transform: translateY(-50%) rotate(-12deg); }
  50% { transform: translateY(-58%) rotate(8deg) scale(1.08); }
}

@keyframes ambient-rise {
  from { transform: translate3d(0, 20vh, 0); }
  to { transform: translate3d(0, -130vh, 0); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.45; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 5px 0 var(--btn-edge), 0 14px 22px -8px rgba(31, 29, 77, 0.38), 0 0 0 0 rgba(255, 217, 61, 0.5); }
  50% { box-shadow: 0 5px 0 var(--btn-edge), 0 14px 22px -8px rgba(31, 29, 77, 0.38), 0 0 0 16px rgba(255, 217, 61, 0); }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.88) translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes lb-in { from { opacity: 0; transform: scale(0.94) translateY(16px); } }
@keyframes lb-out { to { opacity: 0; transform: scale(0.94) translateY(16px); } }
@keyframes slide-next { from { opacity: 0; transform: translateX(48px) scale(0.97); } }
@keyframes slide-prev { from { opacity: 0; transform: translateX(-48px) scale(0.97); } }

/* ---------- 9. Responsivo ---------- */
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding-inline: 0.7em; }
  .cta__photo { width: clamp(120px, 14vw, 170px); }
}

@media (max-width: 960px) {
  :root { --header-h: 62px; }

  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__cta { margin-left: auto; }
  .brand img { height: calc(var(--header-h) + 22px); }

  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions,
  .hero__facts { justify-content: center; }
  .hero__facts li { justify-content: center; text-align: left; }
  .hero__visual { --arch: 11px; width: min(100%, 400px); }

  .exp { grid-template-columns: 1fr; }
  .exp__copy { text-align: center; }
  .collage { max-width: 640px; margin-inline: auto; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps__path { display: none; }
  .step:nth-of-type(even) .step__icon { margin-top: 0; }

  .perks { grid-template-columns: repeat(2, 1fr); }
  .perk,
  .perk:nth-child(4) { grid-column: span 1; }
  .perk:nth-child(5) { grid-column: span 2; }

  .cta__photo { display: none; }
  .footer__inner { grid-template-columns: auto 1fr; }
  .footer__nav,
  .footer__social { grid-column: 2; }
  .footer__nav { grid-template-columns: repeat(2, auto); justify-content: start; gap: 6px 24px; }
}

@media (max-width: 720px) {
  .hide-sm { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-header { inset: 8px 0 auto; padding-inline: 8px; }
  .site-header__bar { gap: 8px; padding: 0 8px 0 14px; }
  .site-header__cta span { display: inline; }

  .hero { padding-top: calc(var(--header-h) + 44px + env(safe-area-inset-top, 0px)); }
  .hero__actions .btn { width: 100%; }
  .hero__visual { --arch: 9px; width: min(100%, 330px); }
  .hero__sticker { left: -6%; font-size: 0.85rem; }
  .hb { width: calc(var(--s) * 0.78); }

  .section--experience,
  .section--steps,
  .section--gallery { margin-top: 28px; }

  .steps { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
  .step {
    display: grid;
    grid-template-columns: 84px 1fr;
    column-gap: 20px;
    align-items: center;
    padding-bottom: 34px;
    text-align: left;
  }
  .step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 41px;
    top: 84px;
    bottom: 0;
    border-left: 4px dotted rgba(31, 29, 77, 0.25);
  }
  .step__icon { width: 84px; height: 84px; margin: 0 !important; grid-row: span 2; }
  .step__icon .icon { width: 42px; height: 42px; }
  .step p { margin: 4px 0 0; }

  .perks { grid-template-columns: 1fr; }
  .perk,
  .perk:nth-child(4),
  .perk:nth-child(5) { grid-column: span 1; min-height: 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .toys-more { padding-left: clamp(24px, 4vw, 48px); padding-top: 84px; }
  .toys-more__star { left: 28px; top: 40px; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__nav,
  .footer__social { grid-column: auto; justify-content: center; }
  .footer__about p:last-child { margin-inline: auto; }

  .wa-float { width: 60px; height: 60px; }
  .wa-float__label { display: none; }
  .lightbox__stage { padding: 62px 8px 76px; }
  .lightbox__nav { top: auto; bottom: 14px; margin-top: 0; width: 48px; height: 48px; }
  .lightbox__nav--prev { left: calc(50% - 110px); }
  .lightbox__nav--next { right: calc(50% - 110px); }
}

@media (max-width: 460px) {
  .gallery { --gallery-gap: 12px; }
  .gallery__btn { border-radius: 18px; }
  .site-header__cta span { font-size: 0.92rem; }
  .brand img { height: calc(var(--header-h) + 14px); }
}

/* ---------- 10. Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .ambient,
  .confetti-canvas,
  .wa-float::before { display: none; }

  .js [data-reveal] { opacity: 1; transform: none; }
  .steps__path { clip-path: none; }
  .hb__rise { transform: none; }
}
