:root {
  --ink: #262433;
  --amarelo: #ffd23f;
  --verde: #1f9d5a;
  --roxo: #6442d8;
  --vermelho: #e5384f;
  --fundo: #1e1547;
  --papel: #fdfdf8;
  --suave: #f1edff;
  --sombra: 0 7px 0 rgba(10, 8, 30, .55);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fundo);
  background-image: radial-gradient(circle at 50% -10%, #4a31b8 0, var(--fundo) 55%);
  background-attachment: fixed;
  color: #fff; font-family: Inter, system-ui, sans-serif; font-weight: 500;
  min-height: 100vh; line-height: 1.5;
}
a { color: inherit; }
button { font: inherit; }

/* topo */
.topo {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; background: rgba(30, 21, 71, .92); backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--ink); flex-wrap: wrap;
}
.logo { text-decoration: none; font-weight: 900; font-size: 18px; letter-spacing: .5px; white-space: nowrap; }
.logo-selo { display: inline-block; background: var(--amarelo); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 2px 8px; transform: rotate(-3deg); margin-right: 4px; }
.topo nav { display: flex; gap: 6px; }
.topo nav a { text-decoration: none; font-weight: 800; font-size: 15px; padding: 7px 12px; border-radius: 40px; border: 3px solid transparent; }
.topo nav a.ativo { background: #fff; color: var(--ink); border-color: var(--ink); }

main { max-width: 860px; margin: 0 auto; padding: 24px 16px 40px; outline: none; }
.rodape { text-align: center; font-size: 13px; opacity: .7; padding: 10px 16px 40px; }

/* peças */
.selo {
  display: inline-block; font-weight: 900; line-height: 1.1; border: 5px solid var(--ink); border-radius: 18px;
  box-shadow: var(--sombra); padding: 8px 18px; transform: rotate(-2deg);
}
.s-am { background: var(--amarelo); color: var(--ink); }
.s-vd { background: var(--verde); color: #fff; transform: rotate(1.5deg); }
.s-rx { background: var(--roxo); color: #fff; }
.s-br { background: #fff; color: var(--ink); }
.contorno { color: #fff; -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 rgba(10,8,30,.5); }
.cartao {
  background: var(--papel); color: var(--ink); border: 5px solid var(--ink); border-radius: 24px;
  padding: 20px; box-shadow: var(--sombra);
}
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  font-weight: 900; font-size: 18px; padding: 14px 22px; border: 5px solid var(--ink); border-radius: 18px;
  background: var(--amarelo); color: var(--ink); box-shadow: 0 6px 0 var(--ink); transition: transform .08s;
}
.botao:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.botao.verde { background: var(--verde); color: #fff; }
.botao.branco { background: #fff; }
.botao.pequeno { font-size: 15px; padding: 8px 14px; border-width: 4px; box-shadow: 0 4px 0 var(--ink); }
.botao[disabled] { opacity: .5; cursor: not-allowed; }

/* início */
.heroi { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: center; margin-bottom: 28px; }
.heroi h1 { font-size: clamp(38px, 8vw, 64px); line-height: 1; margin: 18px 0 14px; font-weight: 900; }
.heroi p { font-size: 18px; font-weight: 700; margin: 0 0 20px; opacity: .95; }
.heroi-boneco svg { width: 100%; height: auto; display: block; }
.progresso { margin-bottom: 26px; }
.progresso-barra { height: 26px; border: 4px solid var(--ink); border-radius: 30px; background: #fff; overflow: hidden; }
.progresso-barra div { height: 100%; background: var(--verde); border-right: 4px solid var(--ink); transition: width .4s; }
.progresso-barra div[style*="width: 0%"] { border-right: 0; }
.progresso-texto { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; margin-top: 8px; }
.trilha { display: flex; flex-direction: column; gap: 14px; }
.aula-item {
  display: flex; gap: 16px; align-items: center; text-decoration: none;
  background: var(--papel); color: var(--ink); border: 5px solid var(--ink); border-radius: 22px; padding: 14px 16px;
  box-shadow: var(--sombra); transition: transform .1s;
}
.aula-item:hover { transform: translateY(-2px); }
.aula-num {
  flex: 0 0 54px; height: 54px; border-radius: 16px; border: 4px solid var(--ink); background: var(--amarelo);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 24px;
}
.aula-item.feita .aula-num { background: var(--verde); color: #fff; }
.aula-item h3 { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.2; }
.aula-item p { margin: 3px 0 0; font-size: 14px; opacity: .8; }
.aula-min { margin-left: auto; flex-shrink: 0; font-weight: 900; font-size: 13px; background: var(--suave); border: 3px solid var(--ink); border-radius: 30px; padding: 3px 10px; }
.atalhos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.atalho { text-decoration: none; }
.atalho h3 { margin: 8px 0 4px; font-size: 22px; font-weight: 900; }
.atalho p { margin: 0; font-size: 15px; }
.secao-titulo { margin: 34px 0 16px; }

/* aula */
.aula-topo { margin-bottom: 22px; }
.aula-topo h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.05; font-weight: 900; margin: 16px 0 6px; }
.aula-topo p { margin: 0; font-weight: 700; opacity: .9; }
.blocos { display: flex; flex-direction: column; gap: 18px; }
.bloco-texto p, .bloco-texto li { font-size: 17px; }
.bloco-texto h3 { font-size: 21px; font-weight: 900; margin: 6px 0 8px; }
.bloco-texto p:last-child { margin-bottom: 0; }
.bloco-texto a { color: var(--roxo); font-weight: 800; }
table { width: 100%; border-collapse: separate; border-spacing: 0; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; margin: 8px 0 14px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 2px solid #e6e4d8; }
th { background: var(--ink); color: var(--amarelo); font-weight: 900; }
tr:last-child td { border-bottom: 0; }
.comparar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comparar .lado { border: 4px solid var(--ink); border-radius: 18px; padding: 14px; background: #fff; }
.comparar .lado b.etq { display: inline-block; font-weight: 900; font-size: 14px; padding: 3px 10px; border-radius: 30px; border: 3px solid var(--ink); margin-bottom: 8px; }
.comparar .ruim b.etq { background: var(--vermelho); color: #fff; }
.comparar .bom b.etq { background: var(--verde); color: #fff; }
.comparar .lado p { margin: 0; font-size: 15px; font-family: ui-monospace, Menlo, monospace; white-space: pre-wrap; }
.comparar-porque { grid-column: 1 / -1; margin: 0; font-weight: 700; font-size: 15px; }
.modelo-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.modelo-topo h3 { margin: 0; font-size: 18px; font-weight: 900; }
pre.prompt {
  margin: 0; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, Menlo, monospace; font-size: 14px; line-height: 1.55;
  background: #191530; color: #f3f0ff; border: 4px solid var(--ink); border-radius: 16px; padding: 16px;
}
.dica { background: #fff2c8; border: 4px dashed var(--ink); border-radius: 18px; padding: 14px 16px; color: var(--ink); font-size: 16px; }
.dica a { color: var(--roxo); font-weight: 800; }
.craque { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.craque-peca { background: #fff; color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; padding: 12px; box-shadow: var(--sombra); }
.craque-letra { width: 50px; height: 50px; border-radius: 14px; border: 4px solid var(--ink); background: var(--roxo); color: #fff; font-weight: 900; font-size: 28px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.craque-peca:nth-child(2n) .craque-letra { background: var(--verde); }
.craque-peca:nth-child(3n) .craque-letra { background: var(--amarelo); color: var(--ink); }
.craque-peca h4 { margin: 0 0 4px; font-size: 17px; font-weight: 900; }
.craque-peca p { margin: 0; font-size: 14px; }
.craque-peca em { display: block; margin-top: 6px; font-size: 13px; opacity: .75; }
.quiz h3 { margin: 0 0 12px; font-size: 18px; font-weight: 900; }
.quiz-opcoes { display: flex; flex-direction: column; gap: 10px; }
.quiz-opcoes button {
  text-align: left; cursor: pointer; font-weight: 800; font-size: 16px; padding: 12px 14px;
  border: 4px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink);
}
.quiz-opcoes button.certa { background: var(--verde); color: #fff; }
.quiz-opcoes button.errada { background: var(--vermelho); color: #fff; }
.quiz-resposta { margin-top: 12px; font-weight: 700; font-size: 15px; }
.tarefas { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tarefas label { display: flex; gap: 12px; align-items: center; cursor: pointer; font-weight: 700; font-size: 16px; }
.tarefas input { width: 26px; height: 26px; accent-color: var(--verde); flex-shrink: 0; }
.aula-fim { display: flex; gap: 12px; justify-content: space-between; margin-top: 28px; flex-wrap: wrap; }

/* montador */
.abas { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.aba { cursor: pointer; font-weight: 900; font-size: 15px; padding: 8px 14px; border: 4px solid var(--ink); border-radius: 40px; background: #fff; color: var(--ink); }
.aba[aria-selected=true] { background: var(--amarelo); }
.campos { display: grid; gap: 14px; }
.campo label { display: block; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.campo small { display: block; font-weight: 600; opacity: .7; margin-top: 4px; font-size: 13px; }
.campo input, .campo textarea, .campo select {
  width: 100%; font: inherit; font-weight: 700; font-size: 16px; padding: 10px 12px; border: 4px solid var(--ink);
  border-radius: 14px; background: #fff; color: var(--ink);
}
.campo textarea { min-height: 80px; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: 4px solid var(--amarelo); outline-offset: 2px; }
.saida { margin-top: 18px; }

/* certificado */
.cert-area { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cert-area canvas { width: 100%; height: auto; border: 5px solid var(--ink); border-radius: 18px; box-shadow: var(--sombra); background: var(--roxo); }

.aviso-copiado { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--verde); color: #fff; font-weight: 900; padding: 10px 18px; border: 4px solid var(--ink); border-radius: 30px; box-shadow: var(--sombra); z-index: 20; }

@media (max-width: 720px) {
  .heroi { grid-template-columns: 1fr; text-align: center; }
  .heroi-boneco { max-width: 150px; margin: 0 auto; order: -1; }
  .heroi .selo { font-size: 13px; }
  .comparar, .atalhos, .cert-area { grid-template-columns: 1fr; }
  .craque { grid-template-columns: 1fr 1fr; }
  .aula-min { display: none; }
  .topo { justify-content: center; }
}

/* ===== animações ===== */
main > * { animation: sobe .55s cubic-bezier(.2, 1.2, .4, 1) backwards; }
main > *:nth-child(2) { animation-delay: .08s; } main > *:nth-child(3) { animation-delay: .16s; }
main > *:nth-child(4) { animation-delay: .24s; } main > *:nth-child(n+5) { animation-delay: .32s; }
@keyframes sobe { from { opacity: 0; transform: translateY(28px) scale(.97); } }
.revela { opacity: 0; transform: translateY(34px) scale(.97); transition: opacity .55s, transform .55s cubic-bezier(.2, 1.3, .4, 1); }
.revela.visivel { opacity: 1; transform: none; }
.selo { animation: seloEntra .6s cubic-bezier(.2, 1.6, .4, 1) backwards, balancinho 3.2s ease-in-out .6s infinite; }
@keyframes seloEntra { from { transform: scale(0) rotate(-20deg); } }
@keyframes balancinho { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(1.5deg); } }
.logo-selo { animation: balancinho 2.6s ease-in-out infinite; }
.heroi-boneco { position: relative; animation: quica 1.2s ease-in-out infinite; }
@keyframes quica { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.bola-heroi { position: absolute; right: 8%; top: 4%; font-size: 40px; animation: embaixadinha 1.2s cubic-bezier(.4, 0, .6, 1) infinite; z-index: 1; }
@keyframes embaixadinha { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-60px) rotate(200deg); } }
.heroi h1 { animation: sobe .6s cubic-bezier(.2, 1.2, .4, 1) .1s backwards; }
.botao { position: relative; overflow: hidden; }
.botao::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: reflexo 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes reflexo { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.heroi .botao { animation: pulsa 1.5s ease-in-out infinite; }
@keyframes pulsa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.progresso-barra div { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 12px, transparent 12px 24px); background-size: 34px 34px; animation: listras 1s linear infinite; }
@keyframes listras { to { background-position: 34px 0; } }
.aula-item { animation: entraLado .5s cubic-bezier(.2, 1.3, .4, 1) backwards; }
.trilha .aula-item:nth-child(1) { animation-delay: .1s; } .trilha .aula-item:nth-child(2) { animation-delay: .15s; } .trilha .aula-item:nth-child(3) { animation-delay: .2s; }
.trilha .aula-item:nth-child(4) { animation-delay: .25s; } .trilha .aula-item:nth-child(5) { animation-delay: .3s; } .trilha .aula-item:nth-child(6) { animation-delay: .35s; }
.trilha .aula-item:nth-child(n+7) { animation-delay: .4s; }
@keyframes entraLado { from { opacity: 0; transform: translateX(-50px) rotate(-2deg); } }
.aula-item:hover { transform: translateY(-4px) rotate(-.6deg); }
.aula-item:hover .aula-num { animation: gira .5s; }
@keyframes gira { 50% { transform: rotate(-14deg) scale(1.15); } }
.aula-item.feita .aula-num { animation: brilhaNum 2.4s ease-in-out infinite; }
@keyframes brilhaNum { 50% { box-shadow: 0 0 0 6px rgba(31,157,90,.35); } }
.cartao.atalho { transition: transform .2s; }
.cartao.atalho:hover { transform: translateY(-5px) rotate(.8deg); }
.craque-peca { animation: cai .6s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.craque-peca:nth-child(2) { animation-delay: .1s; } .craque-peca:nth-child(3) { animation-delay: .2s; } .craque-peca:nth-child(4) { animation-delay: .3s; } .craque-peca:nth-child(5) { animation-delay: .4s; } .craque-peca:nth-child(6) { animation-delay: .5s; }
@keyframes cai { from { opacity: 0; transform: translateY(-50px) scale(.4) rotate(-20deg); } }
.craque-letra { animation: flutua 2.4s ease-in-out infinite; }
@keyframes flutua { 50% { transform: translateY(-5px) rotate(-4deg); } }
.quiz-opcoes button { transition: transform .15s; }
.quiz-opcoes button:hover { transform: translateX(6px); }
.quiz-opcoes button.certa { animation: pula .5s; }
.quiz-opcoes button.errada { animation: treme .4s; }
@keyframes pula { 30% { transform: scale(1.05) rotate(-1deg); } 60% { transform: scale(.98); } }
@keyframes treme { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.quiz-resposta { animation: sobe .4s cubic-bezier(.2, 1.3, .4, 1); }
.aba { transition: transform .15s; }
.aba:hover { transform: translateY(-2px); }
.aba[aria-selected=true] { animation: pula .4s; }
pre.prompt { position: relative; }
.tarefas input:checked + * , .tarefas input:checked { animation: pula .4s; }
.som-bt { margin-left: 4px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; cursor: pointer; font-size: 15px; }
#confete { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.letreiro { position: fixed; left: 50%; top: 40%; z-index: 60; pointer-events: none; font-weight: 900; font-size: clamp(44px, 11vw, 72px); color: var(--amarelo); -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; white-space: nowrap; animation: letreiro 1.5s forwards; }
@keyframes letreiro { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-12deg); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15) rotate(-4deg); opacity: 1; } 75% { transform: translate(-50%, -50%) scale(1) rotate(-4deg); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(.9) rotate(-4deg); opacity: 0; } }
.aviso-copiado { animation: sobe .35s cubic-bezier(.2, 1.4, .4, 1); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .revela { opacity: 1; transform: none; } }

/* ===== entrada com o e-mail da compra ===== */
.entrar { max-width: 460px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.entrar-boneco { width: 170px; animation: quica 1.2s ease-in-out infinite; }
.entrar-boneco svg { width: 100%; height: auto; display: block; }
.entrar h1 { font-size: clamp(30px, 7vw, 42px); line-height: 1.05; margin: 16px 0 8px; font-weight: 900; }
.entrar-sub { font-weight: 700; font-size: 17px; margin: 0 0 18px; }
.entrar-form { width: 100%; text-align: left; }
.entrar-erro { margin-top: 12px; background: #ffe0e4; border: 4px solid var(--ink); border-radius: 14px; padding: 10px 12px; font-weight: 800; font-size: 15px; animation: treme .4s; }
.entrar-ajuda { font-size: 13px; margin: 14px 0 0; opacity: .8; }
.entrar-codigo { font-size: 30px !important; font-weight: 900; letter-spacing: 10px; text-align: center; }
.entrar-info { margin: 10px 0 0; font-weight: 700; font-size: 14px; background: #fff6cc; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 10px; }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--roxo); text-decoration: underline; cursor: pointer; }
[hidden] { display: none !important; }

.video-aula{padding:12px;text-align:center}
.video-aula video{display:block;width:100%;max-width:420px;aspect-ratio:9/16;margin:0 auto;border-radius:18px;background:#000;border:4px solid var(--ink,#262433)}
.video-dica{margin:10px 0 0;font-weight:800;font-size:14px;opacity:.8}
