:root {
  --lagoa: #052D2B;
  --verde: #073D32;
  --acao: #51B96C;
  --sapo: #B7D86A;
  --ouro: #F9CF65;
  --creme: #FCF8EB;
  --superficie: #E9F1DC;
  --suave: #55736C;
  --folha: #2E7D48;
  --raio: 22px;
  --display: 'M PLUS Rounded 1c', ui-rounded, system-ui, sans-serif;
  --texto: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--texto);
  color: var(--verde);
  background: var(--creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--folha); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }

.miolo { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; background: rgba(252, 248, 235, .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(7, 61, 50, .08); }
.topo .miolo { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.marca { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--verde); text-decoration: none; }
.marca img { width: 38px; height: 38px; border-radius: 11px; }
.topo nav { display: flex; gap: 22px; }
.topo nav a { color: var(--verde); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topo nav a:hover { color: var(--folha); }

/* Botões */
.botao { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-family: var(--display); font-size: 1.05rem; border: 3px solid var(--verde); box-shadow: 0 5px 0 var(--verde); transition: transform .15s, box-shadow .15s; }
.botao:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--verde); }
.botao.principal { background: var(--acao); color: #fff; }
.botao.secundario { background: #fff; color: var(--verde); }

/* Herói */
.heroi { padding: 64px 0 40px; }
.heroi .miolo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.selo { display: inline-block; background: var(--superficie); color: var(--folha); font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.heroi h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
.heroi h1 em { font-style: normal; color: var(--folha); }
.heroi p.lead { font-size: 1.15rem; color: var(--suave); max-width: 34em; margin: 0 0 28px; }
.acoes { display: flex; flex-wrap: wrap; gap: 14px; }
.nota { font-size: .85rem; color: var(--suave); margin-top: 14px; }
.palco { position: relative; aspect-ratio: 1; display: grid; place-items: end center; isolation: isolate; }
.palco::before { content: ""; position: absolute; inset: 6% 6% 10%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #D9EEA4 0 30%, var(--superficie) 60%, rgba(233,241,220,0) 72%); z-index: -2; }
.palco::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 7%; height: 16%; border-radius: 50%; background: radial-gradient(ellipse at center, #8FCB7A 0 45%, #6FB565 46% 60%, rgba(111,181,101,0) 62%); z-index: -1; }
.palco img.mascote { width: 72%; margin-bottom: 9%; filter: drop-shadow(0 14px 14px rgba(5, 45, 43, .16)); animation: entra .9s cubic-bezier(.2,1.4,.4,1) both; }
.balao { position: absolute; z-index: 2; top: 2%; right: -2%; background: #fff; border: 3px solid var(--verde); border-radius: 22px 22px 22px 6px; padding: 10px 16px; font-family: var(--display); font-weight: 700; box-shadow: 0 4px 0 var(--verde); max-width: 230px; animation: balao 1s .6s cubic-bezier(.2,1.5,.4,1) both, boia 4s 1.6s ease-in-out infinite; transform-origin: bottom left; }
.vaga { position: absolute; width: 34px; height: 34px; background: url(/img/vagalume.svg) center/contain no-repeat; z-index: 1; animation: voa 7s ease-in-out infinite, pisca 2.2s ease-in-out infinite; }
.v1 { top: 18%; left: 6%; } .v2 { top: 52%; left: 0; width: 24px; height: 24px; animation-delay: -2s, -1s; } .v3 { top: 30%; right: 4%; width: 26px; height: 26px; animation-delay: -4s, -.5s; } .v4 { bottom: 20%; right: 10%; width: 20px; height: 20px; animation-delay: -1s, -1.6s; }
.folha { position: absolute; width: 70px; height: 34px; border-radius: 70px 0; background: linear-gradient(135deg, #A7D057, #51B96C); z-index: -1; opacity: .85; }
.f1 { bottom: 12%; left: 8%; transform: rotate(-20deg); } .f2 { bottom: 14%; right: 6%; transform: rotate(200deg) scale(.8); }
@keyframes entra { from { opacity: 0; transform: translateY(30px) scale(.9); } }
@keyframes balao { from { opacity: 0; transform: scale(.4) rotate(-8deg); } }
@keyframes boia { 50% { transform: translateY(-6px); } }
@keyframes voa { 0%, 100% { translate: 0 0; } 25% { translate: 14px -18px; } 50% { translate: -6px -30px; } 75% { translate: -16px -10px; } }
@keyframes pisca { 50% { opacity: .35; } }

/* Sprites animados (9 quadros) */
.sprite { position: relative; display: inline-block; overflow: hidden; line-height: 0; width: 100%; }
.sprite .tira { position: absolute; top: 0; left: 0; width: 900%; height: 100%; max-width: none; animation: quadros 1.44s steps(9) infinite; }
.sprite .parado { display: none; width: 100%; height: 100%; }
.sprite.lendo { aspect-ratio: 408 / 349; }
.sprite.comemorando { aspect-ratio: 761 / 716; }
.sprite.apaixonado { aspect-ratio: 417 / 366; }
.sprite.lendo .tira { animation-duration: 1.44s; }
.sprite.apaixonado .tira { animation-duration: 1.6s; }
@keyframes quadros { to { transform: translateX(-100%); } }
.moldura { width: 160px; height: 160px; margin: 0 auto 14px; border-radius: 50%; background: radial-gradient(circle, #fff 0 55%, var(--superficie) 56%); display: grid; place-items: center; padding: 14px; }
.moldura img, .moldura .sprite { width: 100%; height: auto; }
.icone.duplo { display: flex; align-items: center; justify-content: center; gap: 2px; }
.icone.duplo img { width: 22px; }

.icone.duplo img:first-child { animation: pisca 2.2s ease-in-out infinite; }

/* Revelar ao rolar (navegadores com suporte) */
@supports (animation-timeline: view()) {
  .revela { animation: sobe linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes sobe { from { opacity: 0; transform: translateY(40px); } }
}

/* Números */
.numeros { padding: 8px 0 48px; }
.numeros .miolo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.numero { background: #fff; border-radius: var(--raio); padding: 22px; text-align: center; border: 2px solid rgba(7, 61, 50, .08); }
.numero strong { display: block; font-family: var(--display); font-size: 2.1rem; color: var(--folha); }
.numero span { color: var(--suave); font-size: .92rem; }

/* Seções */
section.bloco { padding: 64px 0; }
section.bloco.claro { background: var(--superficie); }
.titulo-secao { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.titulo-secao h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.titulo-secao p { color: var(--suave); margin: 0; }

.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cartao { background: #fff; border-radius: var(--raio); padding: 26px; border: 2px solid rgba(7, 61, 50, .08); }
.cartao .icone { font-size: 1.9rem; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--superficie); margin-bottom: 14px; }
.cartao h3 { font-size: 1.2rem; }
.cartao p { margin: 0; color: var(--suave); }

.niveis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nivel { border-radius: var(--raio); padding: 28px; color: var(--verde); }
.nivel:nth-child(1) { background: #EAF6D6; }
.nivel:nth-child(2) { background: #FFF2C9; }
.nivel:nth-child(3) { background: #DCEFE3; }
.nivel h3 { font-size: 1.35rem; }
.nivel p { margin: 0; }

.materias { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.materias span { background: #fff; border: 2px solid var(--verde); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-family: var(--display); }

.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: passo; }
.passo { text-align: center; }

.passo h3::before { counter-increment: passo; content: counter(passo) ". "; color: var(--folha); }
.passo p { color: var(--suave); margin: 0; }

.chamada { background: var(--verde); color: var(--creme); border-radius: 32px; padding: 48px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.chamada .sprite { width: 150px; }
.chamada h2 { color: #fff; font-size: 2rem; }
.chamada p { margin: 0; color: #CFE3D4; }

/* FAQ */
details { background: #fff; border-radius: 18px; padding: 18px 22px; margin-bottom: 12px; border: 2px solid rgba(7, 61, 50, .08); }
details summary { cursor: pointer; font-weight: 700; font-family: var(--display); font-size: 1.05rem; }
details p { margin: 10px 0 0; color: var(--suave); }

/* Páginas de texto */
.documento { padding: 48px 0 72px; }
.documento .miolo { max-width: 760px; }
.documento h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.documento h2 { font-size: 1.35rem; margin-top: 2em; }
.documento .atualizado { color: var(--suave); font-size: .92rem; }
.documento .resumo { background: var(--superficie); border-radius: var(--raio); padding: 20px 24px; margin: 24px 0; }
.documento .resumo ul { margin: 0; padding-left: 20px; }
.documento table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.documento th, .documento td { text-align: left; padding: 10px; border-bottom: 1px solid rgba(7, 61, 50, .12); vertical-align: top; }
.documento ol li, .documento ul li { margin-bottom: 6px; }
.caixa-email { background: #fff; border: 2px dashed var(--folha); border-radius: 18px; padding: 18px 22px; margin: 16px 0; }

/* Rodapé */
footer { background: var(--lagoa); color: #CFE3D4; padding: 40px 0; font-size: .92rem; }
footer .miolo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer a { color: #fff; text-decoration: none; margin-right: 18px; }
footer a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .topo nav { display: none; }
  .heroi .miolo, .grade, .niveis, .passos { grid-template-columns: 1fr; }
  .heroi { padding-top: 36px; }
  .palco { max-width: 340px; margin: 0 auto; }
  .balao { top: -4%; right: -2%; font-size: .9rem; padding: 8px 12px; max-width: 180px; }
  .numeros .miolo { grid-template-columns: repeat(2, 1fr); }
  .chamada { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .chamada .sprite { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .sprite .tira { display: none; } .sprite .parado { display: block; }
  html { scroll-behavior: auto; }
}

.estreito { max-width: 760px; }
.centro { text-align: center; }
.mascote-404 { margin: 0 auto 16px; width: 200px; }

.cartao { transition: transform .2s, box-shadow .2s; }
.cartao:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(7, 61, 50, .08); }
