/* Animaverso — base comum (LP, área do aluno, admin). Identidade: desenho animado com contorno grosso,
   tinta + roxo + amarelo + vermelho + papel. Fontes: Lilita One (títulos) e Rubik (texto), OFL, servidas daqui. */
@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one-latin.woff2?v=1") format("woff2"); font-display: swap; font-weight: 400; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin.woff2?v=1") format("woff2"); font-display: swap; font-weight: 300 900; }

:root {
  --tinta: #1E1433; --noite: #2C2050; --roxo: #5B45A8; --lilas: #C9BEF2; --sol: #FFC93C; --sol-claro: #FFE29A;
  --tomate: #F0483E; --papel: #FFF4DF; --papel-2: #FBE8C5; --branco: #fff; --suave: #5c5470; --verde-wpp: #25D366;
  --borda: 3px solid var(--tinta); --sombra: 6px 6px 0 var(--tinta); --sombra-p: 4px 4px 0 var(--tinta);
  --raio: 22px; --fonte-t: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif; --fonte: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1); --topo: 76px; color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-width: thin; scrollbar-color: var(--roxo) var(--papel); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--papel); }
::-webkit-scrollbar-thumb { background: var(--roxo); border-radius: 9px; border: 2px solid var(--papel); }
body { margin: 0; font-family: var(--fonte); font-size: 17px; line-height: 1.6; color: var(--tinta); background: var(--papel); overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--fonte-t); font-weight: 400; line-height: 1.06; margin: 0; letter-spacing: .3px; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; border-radius: 8px; }
.envolve { width: min(1180px, 100% - 40px); margin-inline: auto; }
.pular { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--sol); border: var(--borda); border-radius: 12px; padding: 8px 14px; font-weight: 700; text-decoration: none; }
.pular:focus { top: 12px; }

/* ---------- botões ---------- */
.botao { --bg: var(--sol); --cor: var(--tinta); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border: var(--borda); border-radius: 999px; background: var(--bg); color: var(--cor);
  font-family: var(--fonte-t); font-size: 19px; letter-spacing: .4px; text-decoration: none; cursor: pointer; box-shadow: var(--sombra-p);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s; white-space: nowrap; overflow: hidden; isolation: isolate; }
.botao::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); z-index: -1; transition: left .55s var(--ease); }
.botao:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tinta); }
.botao:hover::after { left: 130%; }
.botao:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); transition-duration: .08s; }
.botao svg { width: 20px; height: 20px; flex: none; }
.botao.vermelho { --bg: var(--tomate); --cor: #fff; }
.botao.roxo { --bg: var(--roxo); --cor: #fff; }
.botao.branco { --bg: #fff; }
.botao.claro { --bg: transparent; box-shadow: none; }
.botao.claro:hover { background: rgba(255,255,255,.12); box-shadow: none; transform: none; }
.botao.pequeno { min-height: 42px; padding: 8px 18px; font-size: 16px; }
.botao.cheio { width: 100%; }
.botao[disabled], .botao.carregando { opacity: .7; pointer-events: none; }
.botao.carregando::before { content: ""; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(1turn); } }

/* ---------- topo (o mesmo em todas as páginas: montado por site.js) ---------- */
.topo { position: fixed; inset: 14px 0 auto; z-index: 100; pointer-events: none; }
.topo .barra { pointer-events: auto; width: min(1180px, 100% - 24px); margin-inline: auto; height: 62px; display: flex; align-items: center; gap: 18px;
  padding: 0 10px 0 22px; border-radius: 999px; border: 2px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s; }
.topo.rolou .barra, .topo.solido .barra { background: rgba(30, 20, 51, .86); border-color: rgba(255,255,255,.12); backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 10px 30px rgba(30,20,51,.25); }
.topo .marca { display: flex; align-items: center; flex: none; }
.topo .marca img { height: 36px; width: auto; }
.topo nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topo nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 8px 14px; border-radius: 999px; transition: background-color .18s; }
.topo nav a:hover { background: rgba(255,255,255,.12); }
.topo .acoes { display: flex; gap: 8px; align-items: center; }
.topo .acoes .botao { min-height: 44px; font-size: 16px; padding: 8px 20px; }
.topo .acoes .entrar { color: #fff; border-color: rgba(255,255,255,.55); }
.topo .menu-bt { display: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; place-items: center; }
.topo .menu-bt svg { width: 22px; height: 22px; }
@media (max-width: 920px) {
  .topo nav, .topo .acoes .entrar { display: none; }
  .topo .acoes { margin-left: auto; }
  .topo .menu-bt { display: grid; }
  .topo .barra { padding: 0 8px 0 18px; }
}
@media (max-width: 420px) { .topo .acoes .quero { display: none; } .topo .marca img { height: 32px; } }

/* menu do celular: painel inteiro na cor da marca */
.menu { position: fixed; inset: 0; z-index: 150; background: var(--roxo); color: #fff; display: flex; flex-direction: column; padding: 18px 20px 28px;
  clip-path: circle(0 at calc(100% - 44px) 44px); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s; overflow-y: auto; }
.menu.aberto { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path .55s var(--ease), visibility 0s; }
.menu .cab { display: flex; align-items: center; justify-content: space-between; height: 62px; padding-left: 6px; }
.menu .cab img { height: 34px; }
.menu .fechar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.menu .fechar svg { width: 22px; height: 22px; }
.menu ol { list-style: none; margin: 26px 0 0; padding: 0; counter-reset: m; }
.menu li { counter-increment: m; border-bottom: 2px solid rgba(255,255,255,.16); opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .45s var(--ease); }
.menu.aberto li { opacity: 1; transform: none; }
.menu.aberto li:nth-child(2) { transition-delay: .06s; } .menu.aberto li:nth-child(3) { transition-delay: .12s; } .menu.aberto li:nth-child(4) { transition-delay: .18s; }
.menu li a { display: flex; align-items: baseline; gap: 14px; padding: 18px 6px; font-family: var(--fonte-t); font-size: 34px; text-decoration: none; }
.menu li a::before { content: "0" counter(m); font-family: var(--fonte); font-size: 14px; font-weight: 700; color: var(--sol); }
.menu .rodape-menu { margin-top: auto; padding-top: 26px; display: grid; gap: 12px; }
.menu .rodape-menu .botao { width: 100%; }

/* ---------- preloader e cortina ---------- */
.cortina { position: fixed; inset: 0; z-index: 400; background: var(--roxo); display: grid; place-items: center; pointer-events: none;
  transform: translateY(0); transition: transform .6s var(--ease); }
.cortina.some { transform: translateY(-101%); }
.cortina.desce { transform: translateY(0); transition: transform .45s cubic-bezier(.6, 0, .4, 1); }
.cortina.entra { transform: translateY(101%); transition: none; }
.cortina svg { width: 104px; height: 104px; }
.cortina .traco { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: desenha .7s var(--ease) forwards, aparece-sai .25s .68s reverse forwards; }
@keyframes aparece-sai { from { opacity: 0; } to { opacity: 1; } }
.cortina .preenche { opacity: 0; animation: aparece .3s .55s forwards; }
.cortina.rapida .traco { display: none; }
.cortina.rapida .preenche { animation: none; opacity: 1; }
@keyframes desenha { to { stroke-dashoffset: 0; } }
@keyframes aparece { to { opacity: 1; } }
html.sem-js .cortina { display: none; }

/* ---------- revelar ao rolar ---------- */
.r { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--atraso, 0s); }
.r.vis { opacity: 1; transform: none; }
.mascara { display: block; overflow: hidden; padding-bottom: .08em; }
.mascara > span { display: block; transform: translateY(105%); transition: transform .85s var(--ease); transition-delay: var(--atraso, 0s); }
.vis .mascara > span, .mascara.vis > span { transform: none; }
html.sem-js .r { opacity: 1; transform: none; }
html.sem-js .mascara > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r, .mascara > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cortina { display: none; }
  .botao, .botao::after, .menu, .menu li { transition: none !important; }
  .faixa .trilho { animation: none !important; }
}

/* ---------- títulos com cara de legenda (palavra destaque em amarelo, contorno tinta) ---------- */
.legenda { color: #fff; paint-order: stroke fill; -webkit-text-stroke: .14em var(--tinta); }
.legenda em, .grifo em { font-style: normal; color: var(--sol); }
.grifo em { color: inherit; background: linear-gradient(transparent 58%, var(--sol) 58%, var(--sol) 92%, transparent 92%); padding: 0 .08em; }
.etiqueta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border: 2px solid var(--tinta); border-radius: 999px; background: #fff; }
.etiqueta.escura { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }

/* ---------- rodapé ---------- */
.rodape { background: var(--tinta); color: #E9E3FF; padding: 64px 0 26px; margin-top: 0; }
.rodape .grade { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.rodape .logo img { height: 44px; width: auto; }
.rodape p { color: #CFC6EE; font-size: 15.5px; margin-top: 14px; max-width: 34ch; }
.rodape h3 { font-size: 20px; color: #fff; margin-bottom: 12px; }
.rodape ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rodape a { color: #E9E3FF; text-decoration: none; }
.rodape a:hover { color: var(--sol); }
.rodape .base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #B9AEDD; }
.rodape .izi { display: inline-flex; align-items: center; gap: 8px; }
.rodape .izi svg { width: 16px; height: 16px; }
.rodape details summary { list-style: none; }
.rodape details summary::-webkit-details-marker { display: none; }
@media (max-width: 760px) {
  .rodape { text-align: center; }
  .rodape .grade { grid-template-columns: 1fr; gap: 0; }
  .rodape .logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
  .rodape p { margin-inline: auto; }
  .rodape details { border-top: 1px solid rgba(255,255,255,.14); }
  .rodape details summary { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px 0; cursor: pointer; }
  .rodape details summary h3 { margin: 0; }
  .rodape details summary svg { width: 18px; height: 18px; transition: transform .25s; }
  .rodape details[open] summary svg { transform: rotate(180deg); }
  .rodape details ul { padding-bottom: 16px; }
  .rodape .base { justify-content: center; text-align: center; }
}
@media (min-width: 761px) { .rodape details summary { pointer-events: none; } .rodape details summary svg { display: none; } }

/* ---------- formulários e modais (checkout, área, admin) ---------- */
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 600; font-size: 15px; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 2.5px solid var(--tinta); border-radius: 14px; background: #fff; font-size: 16px;
  transition: box-shadow .15s, border-color .15s; }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--sol-claro); }
.campo .ajuda { font-size: 13.5px; color: var(--suave); }
.campo.erro input { border-color: var(--tomate); box-shadow: 0 0 0 4px rgba(240,72,62,.18); }
.aviso { padding: 12px 16px; border-radius: 14px; border: 2px solid var(--tinta); background: #FFE3E0; font-size: 15px; }
.aviso.ok { background: #DDF6E7; }
.aviso.info { background: #EEE9FF; }
.caixa-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.caixa-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--roxo); flex: none; }

dialog.modal { width: min(520px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: var(--borda); border-radius: 26px; box-shadow: 10px 10px 0 var(--tinta);
  background: var(--papel); color: var(--tinta); overflow: auto; }
dialog.modal::backdrop { background: rgba(30, 20, 51, .62); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: modal-entra .35s var(--ease); }
@keyframes modal-entra { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal .cab-modal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; background: var(--roxo); color: #fff; border-bottom: var(--borda); position: sticky; top: 0; z-index: 1; }
.modal .cab-modal h2 { font-size: 26px; }
.modal .x { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.modal .x svg { width: 20px; height: 20px; }
.modal form, .modal .corpo-modal { padding: 22px; display: grid; gap: 16px; }
