/* ==========================================================================
   Sorrivê · Odontologia Infantil — Landing page
   Estrutura: 1. Tokens  2. Base  3. Componentes  4. Navegação
              5. Seções (hero → rodapé)  6. Animações  7. Responsivo  8. Movimento reduzido
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Marca */
  --cyan: #00C8FF;
  --cyan-600: #00A8E0;
  --cyan-700: #0079A8;        /* texto ciano sobre fundo claro (AA) */
  --cyan-100: #CCF2FF;
  --cyan-50: #EAF9FF;
  --yellow: #FFC400;
  --yellow-600: #E5A600;
  --yellow-50: #FFF7D9;
  --navy: #142A61;
  --navy-900: #0C1C45;
  --white: #FFFFFF;

  /* Apoio — só variações da marca: azul (ciano e azul-escuro), amarelo e branco */
  --ink: #142A61;
  --ink-soft: #4A5B85;
  --line: #E3ECF7;
  --navy-600: #2A4380;
  --navy-100: #D9E2F3;
  --navy-50: #EEF3FB;
  --yellow-700: #8A5E00;     /* texto amarelo-escuro sobre fundo claro (AA) */
  --yellow-100: #FFEDA8;
  --cream: #FFFBF0;          /* branco levemente amarelado */
  --sky-50: #EEF9FF;

  /* Tipografia */
  --font-display: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(2.7rem, 1.35rem + 5.4vw, 6rem);
  --fs-h2: clamp(2.05rem, 1.3rem + 2.9vw, 3.7rem);
  --fs-h3: clamp(1.2rem, 1.06rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.06rem, .98rem + .38vw, 1.3rem);
  --fs-body: clamp(1rem, .97rem + .12vw, 1.07rem);
  --fs-small: .9rem;

  /* Espaço e forma */
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1240px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Sombras (tingidas de azul-marinho, nunca cinza puro) */
  --shadow-sm: 0 1px 2px rgba(20, 42, 97, .05), 0 10px 26px -14px rgba(20, 42, 97, .22);
  --shadow-md: 0 2px 6px rgba(20, 42, 97, .05), 0 24px 50px -24px rgba(20, 42, 97, .34);
  --shadow-lg: 0 4px 10px rgba(20, 42, 97, .06), 0 40px 80px -36px rgba(20, 42, 97, .45);

  --ease-out: cubic-bezier(.2, .75, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Profundidade do hero (scroll fixo) */
  --bank: 150px;

  interpolate-size: allow-keywords;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--cyan-600); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
@media (max-width: 760px) { .hide-sm { display: none; } }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: .7rem 1rem; border-radius: var(--r-pill);
  background: var(--navy); color: #fff; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* 3. COMPONENTES ----------------------------------------------------------- */
/* Títulos */
.display {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-display); line-height: .98; letter-spacing: -.012em;
  color: var(--navy);
}
.h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.01em;
  color: var(--navy);
}
.h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h3); line-height: 1.2; color: var(--navy);
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); }
.t-cyan { color: var(--cyan-600); }
.t-mark { background: linear-gradient(transparent 62%, #FFE27A 62%, #FFE27A 92%, transparent 92%); padding: 0 .08em; } /* marca-texto amarelo */

/* Destaque com contorno branco (efeito "adesivo") + rabisco amarelo */
.hl {
  position: relative; display: inline-block;
  font-style: normal; color: var(--cyan);
  -webkit-text-stroke: .14em #fff; paint-order: stroke fill;
  text-shadow: 0 .06em .18em rgba(20, 42, 97, .18);
}
.hl::after {
  content: ""; position: absolute; left: 4%; right: 6%; bottom: -.32em; height: .3em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M4 20 C 60 6, 120 26, 180 12 S 270 8, 296 16' fill='none' stroke='%23FFC400' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: left; transform: scaleX(0);
  animation: draw 1s .9s var(--ease-out) forwards;
}

/* Etiqueta de seção */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem; border-radius: var(--r-pill);
  background: var(--cyan-50); color: var(--cyan-700);
  font: 800 .76rem/1.1 var(--font-body); letter-spacing: .09em; text-transform: uppercase;
}
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.eyebrow--glass {
  background: rgba(255, 255, 255, .74); color: var(--navy);
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 6px 20px -10px rgba(20, 42, 97, .35);
}
.eyebrow--white { background: #fff; box-shadow: var(--shadow-sm); }

/* Cabeçalho de seção */
.s-head { display: grid; gap: 1rem; justify-items: start; max-width: 720px; }
.s-head--center { justify-items: center; text-align: center; margin-inline: auto; }

/* Botões — pílula com "base" 3D que afunda ao clicar */
.btn {
  --btn-bg: #fff; --btn-fg: var(--navy); --btn-edge: rgba(20, 42, 97, .12);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .9rem 1.5rem;
  border: 0; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 800 1rem/1 var(--font-body); letter-spacing: .005em; white-space: nowrap;
  box-shadow: 0 5px 0 var(--btn-edge), 0 14px 26px -14px rgba(20, 42, 97, .45);
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-edge), 0 20px 30px -14px rgba(20, 42, 97, .5); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-edge), 0 6px 14px -10px rgba(20, 42, 97, .4); }
.btn--primary { --btn-bg: var(--yellow); --btn-edge: var(--yellow-600); }
.btn--primary:hover { --btn-bg: #FFCD1F; }
.btn--ghost { --btn-bg: #fff; --btn-edge: rgba(20, 42, 97, .14); box-shadow: inset 0 0 0 2px rgba(20, 42, 97, .1), 0 5px 0 var(--btn-edge); }
.btn--cyan { --btn-bg: var(--cyan); --btn-edge: var(--cyan-600); }
.btn--sm { min-height: 44px; padding: .7rem 1.15rem; font-size: .92rem; }
.btn--lg { min-height: 58px; padding: 1rem 1.7rem; font-size: 1.05rem; }

/* Tags e chips */
.tag {
  display: inline-block; padding: .35rem .75rem; border-radius: var(--r-pill);
  font: 800 .72rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
}
.tag--cyan { background: #fff; color: var(--cyan-700); }
.tag--navy { background: #fff; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--cyan-100);
  font-weight: 700; font-size: .9rem; color: var(--navy);
}
.chips li .icon { color: var(--cyan-600); width: 1.1em; height: 1.1em; }
.chips--navy li { border-color: var(--navy-100); }
.chips--navy li .icon { color: var(--navy-600); }

/* Ondas e divisórias */
.wave { position: absolute; left: 0; width: 100%; pointer-events: none; }
.wave--top { top: -1px; height: clamp(50px, 7vw, 110px); }

/* Seção padrão */
.section { position: relative; padding-block: var(--section-y); }

/* 4. NAVEGAÇÃO ------------------------------------------------------------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 60;
  padding-inline: var(--gutter);
  transition: transform .4s var(--ease-out);
}
.nav__bar {
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--container); height: 70px; margin-inline: auto;
  padding: 0 10px 0 24px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 34px -16px rgba(20, 42, 97, .35);
  transition: height .3s var(--ease-out), box-shadow .3s;
}
.nav.is-scrolled .nav__bar { height: 62px; box-shadow: 0 14px 40px -18px rgba(20, 42, 97, .45); }
.nav__brand img { width: auto; height: 42px; }
.nav__links { display: flex; gap: .2rem; margin-inline: auto; }
.nav__links a {
  padding: .55rem .95rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: .95rem; color: var(--navy);
  transition: background-color .2s, color .2s;
}
.nav__links a:hover { background: var(--cyan-50); color: var(--cyan-700); }
.nav__links a.is-active { background: var(--cyan-100); color: var(--navy); }
.nav__toggle {
  display: none; width: 48px; height: 48px; margin-left: .25rem;
  border: 0; border-radius: 50%; background: var(--cyan-50); cursor: pointer;
  place-content: center; gap: 6px;
}
.nav__toggle span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.nav__mobile {
  display: grid; gap: .25rem; max-width: var(--container); margin: .6rem auto 0;
  padding: .75rem; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-lg);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) { padding: .85rem 1rem; border-radius: var(--r-md); font-weight: 800; }
.nav__mobile a:not(.btn):hover { background: var(--cyan-50); }
.nav__mobile .btn { margin-top: .35rem; }

/* 5. SEÇÕES ---------------------------------------------------------------- */

/* 5.1 HERO — cena única (imagem com Dentinho, Cárie e clínica) ---------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  height: calc(max(100svh, 640px) + var(--bank)); /* a faixa extra fica abaixo da dobra, sob as nuvens */
  background: linear-gradient(#5DAEF6, #8EC8F9 40%, #A9D4FA calc(100% - var(--bank)), #6CC444 calc(100% - var(--bank)));
}
/* Desktop: a imagem SEMPRE cobre o hero inteiro (do topo até a faixa sob as nuvens), sem céu ou grama "soltos".
   Tela mais larga que 16:9: ocupa a largura e corta um pouco do céu (30%) e do chão (70%).
   Tela mais alta (zoom do navegador, monitor 16:10, tablet): ocupa a altura e corta as laterais,
   75% do corte na esquerda (árvore/céu), para manter o Dentinho e a Cárie inteiros. */
.hero { background: #2BA5FB; }
.hero__scene { position: absolute; inset: 0; container-type: size; }
.hero__scene img {
  --w: max(100cqw, 177.7cqh);
  --h: calc(var(--w) * 0.5628);
  position: absolute; width: var(--w); height: var(--h); max-width: none;
  left: calc((100cqw - var(--w)) * 0.75);
  top: calc((100cqh - var(--h)) * 0.3);
}
.hero__content {
  position: absolute; inset: 0 0 var(--bank); z-index: 5; display: flex; align-items: center;
  padding-top: 84px; padding-bottom: 48px;
  pointer-events: none;
}
.hero__content > .container { width: auto; margin: 0; padding-left: clamp(var(--gutter), 6vw, 140px); } /* texto no céu livre, à esquerda do Dentinho */
.hero__copy { position: relative; max-width: 780px; pointer-events: auto; }
.hero__copy::before { /* névoa clara atrás do texto: legibilidade sobre o céu */
  content: ""; position: absolute; inset: -18% -6% -14% -40%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45) 55%, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.hero__title { margin: 1.1rem 0 1.15rem; font-size: clamp(2.15rem, .3rem + 3.7vw, 5rem); }
.hero__title .line { display: block; white-space: nowrap; }
.hero__lead { max-width: min(470px, 32vw); color: #23396F; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero__hint {
  position: absolute; right: max(var(--gutter), (100% - var(--container)) / 2); bottom: calc(var(--bank) + 26px); z-index: 6;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem .6rem .55rem 1rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 800; font-size: .82rem; color: var(--navy); box-shadow: var(--shadow-sm);
}
.hero__hint i, .portal__hint i {
  position: relative; width: 22px; height: 32px; border: 2.5px solid currentColor; border-radius: 12px;
}
.hero__hint i::after, .portal__hint i::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px;
  border-radius: 2px; background: currentColor; animation: wheel 1.8s ease-in-out infinite;
}

/* 5.2 MUNDO BRANCO — entra por cima do hero como um banco de nuvens --------- */
.world {
  position: relative; z-index: 8; display: flow-root; /* evita a margem negativa do card "vazar" e subir a seção */
  background: #fff;
  padding-bottom: clamp(2rem, 1rem + 3vw, 4rem);
}
.cloudbank { position: absolute; left: 0; right: 0; bottom: 100%; height: var(--bank); margin-bottom: -2px; pointer-events: none; }
.cloudbank svg { width: 100%; height: 100%; }
.cloudbank .cb-back { fill: #E4F4FF; }
/* Mesmas nuvens da seção 2, espelhadas: a seção clara fica em cima e as nuvens descem sobre a cena */
.cloudbank-flip {
  position: absolute; top: -2px; left: 0; z-index: 7; width: 100%; height: var(--bank);
  transform: scaleY(-1); pointer-events: none; overflow: visible;
}
.cloudbank-flip .cb-back { fill: #E4F4FF; }
.portal__hang .cb-front { fill: #F3FBFF; }
.wave--cta .cb-front { fill: var(--sky-50); }

.cloudbank .cb-front { fill: #fff; }
.cloudbank svg { filter: drop-shadow(0 -6px 14px rgba(20, 42, 97, .10)); overflow: visible; }

/* Diferenciais */
.perks {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: -1.5rem; padding: 1.3rem;
  background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.perk { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; }
.perk + .perk { border-left: 1.5px dashed var(--line); }
.perk strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.perk span:not(.perk__icon) { display: block; margin-top: .2rem; font-size: .88rem; line-height: 1.4; color: var(--ink-soft); }
.perk__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; flex-shrink: 0; }
.perk__icon .icon { width: 28px; height: 28px; stroke-width: 2.3; }
.perk__icon--cyan { background: var(--cyan-50); color: var(--cyan-600); }
.perk__icon--yellow { background: var(--yellow-50); color: var(--yellow-600); }

/* Universo dos personagens */
.turma {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
}
.turma__copy { display: grid; gap: 1.1rem; justify-items: start; }
.note {
  display: flex; gap: .9rem; align-items: flex-start; margin-top: .6rem;
  padding: 1.1rem 1.2rem; border-radius: var(--r-md);
  background: var(--yellow-50); border: 1px solid #FFE9A3;
  font-size: .96rem; color: #3D4C74;
}
.note strong { color: var(--navy); }
.note__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--yellow-600); flex-shrink: 0; }

.turma__stage { position: relative; aspect-ratio: 1.12; transform-style: preserve-3d; transition: transform .5s var(--ease-out); }
.blob { position: absolute; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; animation: morph 14s ease-in-out infinite alternate; }
.blob--cyan { left: 2%; top: 8%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle at 35% 30%, #F2FCFF, #BDEEFF 70%, #A6E6FF); }
.blob--yellow { right: 0; top: 24%; width: 50%; aspect-ratio: 1; background: radial-gradient(circle at 40% 30%, #FFFCEB, #FFEDA8 70%, #FFE27A); animation-delay: -6s; }
.turma__sparks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spark { stroke: none; animation: twinkle 3s ease-in-out infinite; transform-box: view-box; } /* cada estrela pulsa no próprio centro (origem no HTML) */
.spark--y { fill: var(--yellow); }
.spark--c { fill: var(--cyan); animation-delay: -1.2s; }
.turma__dentinho { position: absolute; left: 0; bottom: 2%; width: 62%; filter: drop-shadow(0 26px 24px rgba(20, 42, 97, .2)); }
.turma__carie { position: absolute; right: 0; bottom: 8%; width: 43%; filter: drop-shadow(0 22px 20px rgba(60, 30, 110, .25)); }
.vs {
  position: absolute; left: 59%; top: 30%; z-index: 2;
  display: grid; place-items: center; width: clamp(54px, 5.5vw, 74px); aspect-ratio: 1;
  border-radius: 50%; background: var(--yellow); border: 5px solid #fff;
  font: 700 clamp(1.1rem, 1.6vw, 1.5rem)/1 var(--font-display); color: var(--navy); text-transform: uppercase;
  box-shadow: var(--shadow-md); rotate: -10deg;
  animation: bob 4s ease-in-out infinite;
}

.fichas { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.ficha {
  display: grid; gap: .9rem; align-content: start;
  padding: clamp(1.4rem, 2.5vw, 2rem); border-radius: var(--r-lg);
}
.ficha header { display: grid; gap: .6rem; justify-items: start; }
.ficha .h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.ficha > p:not(.ficha__label) { color: var(--ink-soft); }
.ficha__label { margin-top: .3rem; font: 800 .74rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); opacity: .75; }
.ficha--hero { background: linear-gradient(160deg, var(--cyan-50), #fff 80%); border: 1px solid var(--cyan-100); }
.ficha--villain { background: linear-gradient(160deg, var(--yellow-50), #fff 80%); border: 1px solid var(--yellow-100); }

/* 5.3 TRATAMENTOS ---------------------------------------------------------- */
.treatments { background: #fff; padding-top: clamp(2rem, 1rem + 3vw, 4rem); }
/* Cards com o mascote "escapando" da moldura pelo topo */
.treat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(1rem, 2.2vw, 1.75rem); row-gap: clamp(4.5rem, 6vw, 5.5rem);
  margin-top: clamp(5rem, 7vw, 6.5rem);
}
.treat {
  --tone: var(--cyan-50); --tone-ink: var(--cyan-700); --tone-deep: var(--cyan-100); --tone-edge: #9FE2FA;
  position: relative; isolation: isolate;
  display: grid; gap: .5rem; align-content: start; justify-items: center; text-align: center;
  padding: clamp(5.6rem, 7vw, 6.6rem) clamp(1.2rem, 2vw, 1.8rem) 1.7rem;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--tone-deep) 0%, var(--tone) 46%, #fff 100%);
  border: 2px solid var(--tone-edge);
  box-shadow: 0 6px 0 var(--tone-edge), var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.treat:hover { transform: translateY(-6px); box-shadow: 0 10px 0 var(--tone-edge), var(--shadow-md); }
.treat__art {
  position: absolute; left: 50%; top: 0; translate: -50% -52%;
  width: clamp(130px, 12vw, 168px); height: clamp(130px, 12vw, 168px); object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(20, 42, 97, .2));
  transition: transform .5s var(--ease-spring);
}
.treat:hover .treat__art { transform: translateY(-6px) rotate(-4deg) scale(1.05); }
.treat .h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.treat p { color: var(--ink-soft); font-size: .98rem; max-width: 30ch; }
.treat__tag {
  margin-top: .5rem; padding: .4rem .85rem; border-radius: var(--r-pill);
  background: #fff; color: var(--tone-ink); box-shadow: 0 2px 0 var(--tone-edge);
  font: 800 .72rem/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.treat--yellow { --tone: var(--yellow-50); --tone-ink: var(--yellow-700); --tone-deep: var(--yellow-100); --tone-edge: #FFD966; }
.treat--navy { --tone: var(--navy-50); --tone-ink: var(--navy); --tone-deep: var(--navy-100); --tone-edge: #B9C7E6; }

/* 5.4 A VISITA — trilha --------------------------------------------------- */
.visit {
  overflow: hidden;
  padding-top: calc(var(--section-y) + 3rem);
  padding-bottom: calc(var(--section-y) + 1rem);
  background: linear-gradient(180deg, #D8F2FF 0%, #E9F8FF 55%, #F3FBFF 100%);
}
.visit .container { position: relative; z-index: 2; }
.visit__tree { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 20px 20px rgba(20, 42, 97, .12)); }
.visit__tree--l { left: -9vw; bottom: -2%; width: clamp(160px, 17vw, 300px); }
.visit__tree--r { right: -6vw; top: 14%; width: clamp(150px, 16vw, 280px); scale: -1 1; opacity: .9; }

.trail { position: relative; margin-top: clamp(3rem, 5vw, 4.5rem); }
.trail__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.trail__line { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-dasharray: .1 20; }
.trail__done { fill: none; stroke: var(--yellow); stroke-width: 6; stroke-linecap: round; }
.trail__rider {
  position: absolute; left: 0; top: 0; z-index: 4; width: clamp(84px, 8vw, 124px);
  pointer-events: none; will-change: transform;
  filter: drop-shadow(0 14px 14px rgba(20, 42, 97, .22));
}
.steps { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.step {
  position: relative; display: grid; gap: .5rem; align-content: start; text-align: center;
  margin-top: 44px; padding: 3.6rem 1.3rem 1.6rem; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-sm);
  transition: box-shadow .4s, transform .4s var(--ease-out);
}
.step:nth-child(even) { margin-top: 116px; }
.step p { color: var(--ink-soft); font-size: .97rem; }
.step__badge {
  position: absolute; left: 50%; top: -40px; translate: -50% 0;
  display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%;
  background: #fff; border: 4px solid var(--cyan-100); color: var(--cyan-600);
  box-shadow: var(--shadow-sm);
  transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--ease-spring);
}
.step__badge .icon { width: 32px; height: 32px; }
.step__badge b {
  position: absolute; right: -4px; top: -4px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--navy);
  font: 700 .95rem/1 var(--font-display); border: 3px solid #fff;
}
.step.is-reached .step__badge { background: var(--cyan); color: #fff; border-color: #fff; transform: scale(1.08); }
.step.is-reached { box-shadow: var(--shadow-md); }

/* 5.5 O ESPAÇO — cena fixa com zoom pela porta ----------------------------- */
.portal { position: relative; height: 300vh; background: var(--cream); }
.portal__stage { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; background: #8FD0FA; }
.portal__scene { position: absolute; inset: 0; z-index: 1; transform-origin: 50% 58%; will-change: transform; }
.portal__facade { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 24%; }
.portal__scene::after { /* vinheta cinematográfica para o título */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12, 28, 69, .55), rgba(12, 28, 69, 0) 42%);
  opacity: var(--vignette, 1);
}
.portal__glow {
  position: absolute; left: 50%; top: 58%; translate: -50% -50%;
  width: 12%; aspect-ratio: .76; border-radius: 50% 50% 10% 10% / 38% 38% 6% 6%;
  background: radial-gradient(ellipse at 50% 62%, #FFFDF3 0%, #FFE9A6 38%, rgba(255, 205, 70, .6) 62%, rgba(255, 196, 0, 0) 78%);
  mix-blend-mode: screen; opacity: 0; filter: blur(4px);
}
.portal__intro {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding-bottom: clamp(2.5rem, 8vh, 5.5rem); color: #fff;
}
.portal__intro .container { display: grid; gap: 1rem; justify-items: start; }
.portal__title { color: #fff; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.4rem); text-shadow: 0 6px 30px rgba(12, 28, 69, .45); }
.portal__title .line { display: block; white-space: nowrap; }
.portal__hint { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; font-size: .95rem; text-shadow: 0 2px 10px rgba(12, 28, 69, .5); }
.portal__flash {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #FFF6DA 45%, var(--cream) 100%);
}
.portal__inside { position: absolute; inset: 0; z-index: 3; opacity: 0; visibility: hidden; }
.portal__interior { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 45%; transform-origin: 50% 45%; will-change: transform; }
.portal__panel { position: absolute; left: 0; right: 0; bottom: clamp(16px, 4vh, 44px); opacity: var(--pp, 0); transform: translateY(calc((1 - var(--pp, 0)) * 40px)); }
.panel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center;
  padding: clamp(1.3rem, 2.6vw, 2.2rem); border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-lg);
}
.panel__head { display: grid; gap: .7rem; }
.panel__head .h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); }
.panel__head p { color: var(--ink-soft); }
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.4rem; }
.rooms li { display: grid; grid-template-columns: 46px 1fr; column-gap: .8rem; align-items: center; }
.rooms strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.rooms span:not(.rooms__icon) { grid-column: 2; font-size: .9rem; line-height: 1.4; color: var(--ink-soft); }
.rooms__icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; }
.rooms__icon--yellow { background: var(--yellow-50); color: var(--yellow-600); }
.rooms__icon--cyan { background: var(--cyan-50); color: var(--cyan-600); }

/* 5.6 POR QUE A SORRIVÊ ---------------------------------------------------- */
.reasons { background: var(--cream); overflow: hidden; }
.reasons::before, .reasons::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.reasons::before { width: 520px; aspect-ratio: 1; left: -200px; top: 10%; background: radial-gradient(closest-side, rgba(0, 200, 255, .12), transparent); }
.reasons::after { width: 460px; aspect-ratio: 1; right: -160px; bottom: -80px; background: radial-gradient(closest-side, rgba(255, 196, 0, .16), transparent); }
.reasons__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.reasons__intro { display: grid; gap: 1.1rem; justify-items: start; }
.promise {
  display: flex; align-items: center; gap: 1rem; margin: 1rem 0 0;
  padding: 1.3rem 1.5rem; border-radius: var(--r-lg);
  background: var(--navy); color: #fff; box-shadow: var(--shadow-md);
}
.promise p { font: 600 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.3 var(--font-display); }
.promise__icon { width: 40px; height: 40px; color: var(--yellow); fill: var(--yellow); stroke: var(--yellow); flex-shrink: 0; }
.reasons__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.reason {
  display: grid; gap: .6rem; align-content: start;
  padding: 1.6rem; border-radius: var(--r-lg); background: #fff;
  border: 1px solid #F3E8C6; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.reason:nth-child(even) { translate: 0 28px; }
.reason:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.reason p { color: var(--ink-soft); font-size: .97rem; }
.reason__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; margin-bottom: .3rem; }
.reason__icon .icon { width: 26px; height: 26px; }
.reason__icon--cyan { background: var(--cyan-50); color: var(--cyan-600); }
.reason__icon--yellow { background: var(--yellow-50); color: var(--yellow-600); }

/* 5.7 DÚVIDAS -------------------------------------------------------------- */
.faq { background: linear-gradient(180deg, var(--cream) 0%, var(--sky-50) 22%); padding-bottom: calc(var(--section-y) + 4rem); }
/* A paisagem do CTA é uma camada própria (parallax); em posições fracionárias o recorte dela
   pode vazar 1px acima das nuvens. A seção de cima cobre os 3px iniciais do CTA e esconde a emenda. */
.faq { position: relative; z-index: 1; }
.faq + .cta { margin-top: -3px; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq__intro { position: sticky; top: 120px; display: grid; gap: 1.1rem; justify-items: start; }
.help {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem;
  padding: 1.1rem 1.3rem 1.1rem .6rem; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-sm);
}
.help__mascot { width: 116px; margin-top: -42px; flex-shrink: 0; }
.help strong { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.help p { margin: .15rem 0 .8rem; color: var(--ink-soft); font-size: .95rem; }
.faq__list { display: grid; gap: .8rem; }
.qa { border-radius: var(--r-md); background: #fff; border: 1px solid #DCEAF8; transition: box-shadow .3s, border-color .3s; }
.qa[open] { border-color: var(--cyan-100); box-shadow: var(--shadow-sm); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.3rem; cursor: pointer; list-style: none;
  font: 600 clamp(1.02rem, .98rem + .25vw, 1.15rem)/1.35 var(--font-display); color: var(--navy);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon {
  width: 34px; height: 34px; padding: 7px; border-radius: 50%;
  background: var(--cyan-50); color: var(--cyan-700); transition: transform .35s var(--ease-out), background-color .3s;
}
.qa[open] summary .icon { transform: rotate(45deg); background: var(--yellow); color: var(--navy); }
.qa__body { padding: 0 1.3rem 1.3rem; color: var(--ink-soft); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* 5.8 CTA FINAL ------------------------------------------------------------ */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(640px, 96vh, 900px);
  padding-block: clamp(7rem, 12vw, 10rem) clamp(4rem, 8vw, 6rem);
  background: #CDEBFF;
}
.cta__bg { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.cta__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 30% 62%; }
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); align-items: end; gap: 1rem; }
.cta__card {
  display: grid; gap: 1rem; justify-items: start;
  padding: clamp(1.5rem, 2.6vw, 2.4rem); border-radius: 36px;
  background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-lg);
}
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.cta__facts { display: grid; gap: .45rem; margin-top: .8rem; font-size: .93rem; color: var(--ink-soft); }
.cta__facts li { display: flex; align-items: center; gap: .55rem; }
.cta__facts .icon { color: var(--cyan-600); }
.cta__mascot { justify-self: center; width: clamp(300px, 38vw, 600px); margin-bottom: -4rem; filter: drop-shadow(0 30px 26px rgba(20, 42, 97, .25)); }
.cta__card .h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); }
.cta__card .h2 .line { display: block; white-space: nowrap; }
.cta__card .lead { font-size: 1.05rem; }

/* 5.9 RODAPÉ --------------------------------------------------------------- */
.footer {
  position: relative; z-index: 2; margin-top: -42px;
  padding: clamp(3.5rem, 6vw, 5rem) 0 1.6rem;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--navy); color: #C3D0EE; font-size: .95rem;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer__brand img { height: 58px; width: auto; }
.footer__brand p { margin: 1rem 0 1.1rem; max-width: 280px; }
.footer__title { margin-bottom: .7rem; font: 600 1.08rem/1.2 var(--font-display); color: #fff; }
.footer a:hover { color: var(--yellow); }
.footer__social { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; color: #fff; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem; color: #8FA0C9;
}
.footer__credit { display: inline-flex; align-items: center; gap: .6rem; }
.footer__credit img { height: 19px; width: auto; opacity: .9; }

/* 6. ANIMAÇÕES ------------------------------------------------------------- */
.float { animation: float 6s ease-in-out infinite; }
.float--alt { animation-duration: 5s; animation-delay: -2s; }

@keyframes float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -14px; rotate: -1.5deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes twinkle { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .55; scale: .82; } }
@keyframes morph {
  0% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  50% { border-radius: 58% 42% 44% 56% / 44% 58% 42% 56%; }
  100% { border-radius: 42% 58% 52% 48% / 58% 46% 54% 42%; }
}
@keyframes draw { to { transform: scaleX(1); } }
@keyframes wheel { 0% { opacity: 0; translate: 0 -2px; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 9px; } }
@keyframes peek {
  0%, 28% { transform: translateY(72%) rotate(0deg); }
  36%, 44% { transform: translateY(4%) rotate(-5deg); }
  50%, 60% { transform: translateY(6%) rotate(4deg); }
  70%, 100% { transform: translateY(72%) rotate(0deg); }
}
@keyframes caught {
  0% { transform: translateY(4%) scale(1); }
  35% { transform: translateY(-8%) scale(1.12, .9); }
  100% { transform: translateY(78%) scale(1); }
}

/* Revelação ao rolar (só com JS ativo) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Sem JS ou com movimento reduzido: o portal vira duas cenas empilhadas */
html:not(.js) .portal, .portal.is-static { height: auto; }
html:not(.js) .portal__stage, .portal.is-static .portal__stage { position: relative; height: auto; }
html:not(.js) .portal__scene, .portal.is-static .portal__scene { position: relative; height: 100svh; }
html:not(.js) .portal__inside, .portal.is-static .portal__inside { position: relative; opacity: 1; visibility: visible; height: 100svh; }
html:not(.js) .portal__panel, .portal.is-static .portal__panel { --pp: 1; }

/* 7. RESPONSIVO ------------------------------------------------------------ */
@media (max-width: 1120px) {
  .perks { grid-template-columns: repeat(2, 1fr); row-gap: .4rem; }
  .perk:nth-child(3) { border-left: 0; }
  .treat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: grid; }
  .turma { grid-template-columns: 1fr; }
  .turma__stage { max-width: 620px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 4rem; }
  .step:nth-child(even) { margin-top: 44px; }
  .panel { grid-template-columns: 1fr; }
  .reasons__grid, .faq__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .reason:nth-child(even) { translate: none; }
  .cta__inner { grid-template-columns: 1fr; justify-items: center; }
  .cta__mascot { order: -1; margin: 0 0 -2.5rem; width: clamp(180px, 40vw, 280px); }
}

@media (max-width: 760px) {
  :root { --bank: 96px; }
  .nav { top: 10px; }
  .nav__bar { height: 62px; padding-left: 16px; }
  .nav__brand img { height: 34px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }

  /* celular: imagem vertical própria (céu em cima para o texto, personagens embaixo) */
  /* altura mínima garante que os personagens (metade de baixo da imagem) fiquem abaixo dos botões */
  .hero__scene { top: 0; bottom: 0; height: auto; }
  .hero__scene img { top: auto; left: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 1024 / 1536; object-fit: fill; -webkit-mask-image: linear-gradient(transparent, #000 12%); mask-image: linear-gradient(transparent, #000 12%); }
  .hero { height: calc(max(100svh, 430px + 75vw) + var(--bank)); background: linear-gradient(#5DAEF6, #8EC8F9 40%, #A9D4FA); }
  .hero__content { align-items: flex-start; padding-top: 104px; }
  .hero__copy::before { inset: -10% -20% -6%; }
  .hero__title { margin: .9rem 0 .8rem; font-size: clamp(2.1rem, 10.8vw, 3rem); }
  .hero__lead { font-size: 1.02rem; max-width: 34ch; }
  .hero__content > .container { padding-left: var(--gutter); padding-right: var(--gutter); }
  .hero__actions { margin-top: 1.3rem; gap: .6rem; }
  .hero__actions .btn { min-height: 52px; padding: .8rem 1.25rem; font-size: .98rem; }
  .hero__hint { display: none; }

  .perks { grid-template-columns: 1fr; padding: .6rem; }
  .perk + .perk { border-left: 0; border-top: 1.5px dashed var(--line); }
  .fichas { grid-template-columns: 1fr; }
  .treat-grid { grid-template-columns: repeat(2, 1fr); column-gap: .8rem; row-gap: 3.6rem; margin-top: 4.5rem; }
  .treat { padding: 4.2rem .8rem 1.1rem; border-radius: var(--r-lg); }
  .treat__art { width: 104px; height: 104px; }
  .treat .h3 { font-size: 1.08rem; }
  .treat p { font-size: .84rem; line-height: 1.45; }
  .treat__tag { display: none; }

  .visit__tree--r { display: none; }
  .visit__tree--l { width: 150px; left: -60px; bottom: 1%; }
  .steps { grid-template-columns: 1fr; row-gap: 1.2rem; }
  .step, .step:nth-child(even) { margin: 0 0 0 0; padding: 1.3rem 1.2rem 1.3rem 6.2rem; text-align: left; }
  .step__badge { left: 1rem; top: 1.2rem; translate: none; width: 64px; height: 64px; }
  .step__badge .icon { width: 26px; height: 26px; }
  .trail__rider { width: 74px; }

  .portal__title { max-width: none; font-size: clamp(1.9rem, 8.6vw, 2.8rem); }
  .rooms { grid-template-columns: 1fr; gap: .7rem; }
  .rooms span:not(.rooms__icon) { display: none; }
  .rooms li { grid-template-columns: 40px 1fr; }
  .rooms__icon { width: 40px; height: 40px; grid-row: auto; }
  .panel__head p { font-size: .95rem; }

  .reasons__list { grid-template-columns: 1fr; }
  .help__mascot { width: 92px; }
  .cta__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Mobile leve: sem vidro fosco (backdrop-filter pesa muito no celular) e sem animações que redesenham */
@media (max-width: 760px) {
  .nav__bar, .eyebrow--glass, .hero__hint, .panel, .nav__mobile {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .nav__bar { background: rgba(255, 255, 255, .97); }
  .eyebrow--glass { background: rgba(255, 255, 255, .92); }
  .panel { background: rgba(255, 255, 255, .96); }
  .blob { animation: none; }
  .float, .float--alt { animation-duration: 7s; }
  .portal { height: 220vh; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .hero__hint { display: none; }
  .hero__title { margin: .8rem 0 .9rem; }
  .hero__lead { font-size: 1.06rem; }
  .hero__actions { margin-top: 1.3rem; }
}

/* 8. 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; }
  .hl::after { transform: scaleX(1); }
  .js [data-reveal] { opacity: 1; transform: none; }
}
