/* Teste gratuito do visitante (13/11/2026). Usa os tokens da página inicial (home.css). */
.tg { background: var(--h-fundo); }
.home .h-botao-contorno-escuro { border: 1px solid var(--h-marinho); color: var(--h-marinho); background: transparent; }
.home .h-botao-contorno-escuro:hover { background: rgba(6, 26, 48, .06); }
.tg-cabeca { padding: 40px 0 36px; }
.tg-cabeca h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 14px 0 10px; }
.tg-cabeca h1 em { color: var(--h-ciano); font-style: normal; }
.tg-cabeca p { color: #C9D6E6; max-width: 760px; margin: 0; }
.tg-corpo { padding-top: 28px; padding-bottom: 56px; max-width: 900px; }

/* questões */
.tg-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.tg-q { background: #fff; border: 1px solid var(--h-borda); border-radius: var(--h-raio); padding: 20px 22px; box-shadow: 0 2px 8px rgba(6, 26, 48, .04); }
.tg-q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tg-q-cabeca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; padding: 0; font-size: .85rem; color: var(--h-texto-2); width: 100%; }
.tg-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--h-marinho); color: #fff; font-weight: 700; font-size: .85rem; }
.tg-materia { font-weight: 600; }
.tg-selo { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.tg-selo .icone { width: 18px; height: 18px; }
.tg-certo .tg-selo { color: #147a3d; } .tg-errado .tg-selo { color: #b42318; } .tg-branco .tg-selo { color: #8a6100; }
.tg-certo { border-left: 5px solid #1f9d55; } .tg-errado { border-left: 5px solid #d92d20; } .tg-branco { border-left: 5px solid #e0a100; }
.tg-apoio { margin: 0 0 12px; padding: 12px 16px; background: var(--h-fundo); border-left: 3px solid var(--h-ciano); border-radius: 6px; font-size: .95rem; }
.tg-enunciado { margin: 0 0 12px; font-weight: 500; color: var(--h-texto); }
.tg-alts { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tg-alt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--h-borda); border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.tg-alt:hover { border-color: var(--h-ciano); }
.tg-alt input { position: absolute; opacity: 0; pointer-events: none; }
.tg-alt b, .tg-alts-corrigidas b { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--h-borda); font-size: .8rem; }
.tg-alt:has(input:checked) { border-color: var(--h-marinho); background: var(--h-ciano-claro); }
.tg-alt:has(input:checked) b { background: var(--h-marinho); color: #fff; border-color: var(--h-marinho); }
.tg-alt:has(input:focus-visible) { outline: 3px solid var(--h-ciano); outline-offset: 2px; }
.tg-alts-corrigidas li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--h-borda); border-radius: 8px; }
.tg-alts-corrigidas em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.tg-alt-correta { background: #e7f6ec; border-color: #1f9d55 !important; } .tg-alt-correta b { background: #1f9d55; color: #fff; border-color: #1f9d55 !important; } .tg-alt-correta em { color: #147a3d; }
.tg-alt-marcada-errada { background: #fdecea; border-color: #d92d20 !important; } .tg-alt-marcada-errada b { background: #d92d20; color: #fff; border-color: #d92d20 !important; } .tg-alt-marcada-errada em { color: #b42318; }
.tg-sua { margin: 10px 0 0; font-size: .9rem; color: var(--h-texto-2); }
.tg-comentario { margin-top: 12px; padding: 12px 16px; background: #f3f8fc; border-radius: 8px; }
.tg-comentario strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--h-marinho-2); margin-bottom: 4px; }
.tg-comentario p { margin: 0; font-size: .95rem; }

/* barra de progresso e envio */
.tg-progresso { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; background: rgba(245, 247, 250, .96); padding: 10px 0 12px; margin-bottom: 8px; font-size: .9rem; color: var(--h-texto-2); }
.tg-progresso i { flex: 1; height: 8px; border-radius: 99px; background: var(--h-borda); overflow: hidden; }
.tg-progresso em { display: block; height: 100%; width: 0; background: var(--h-ciano); transition: width .25s; }
.tg-enviar { margin-top: 24px; text-align: center; }
.tg-aviso { color: #8a6100; background: #fff7e0; border-radius: 8px; padding: 10px 14px; }
.tg-botao-enviar { min-width: 260px; }

/* resumo e convite */
.tg-resumo { display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; background: #fff; border: 1px solid var(--h-borda); border-radius: var(--h-raio); padding: 24px; margin-bottom: 28px; box-shadow: var(--h-sombra); }
.tg-resumo-nota { display: grid; place-items: center; align-content: center; width: 132px; height: 132px; border-radius: 50%; border: 8px solid var(--tg-cor); text-align: center; }
.tg-resumo-nota strong { font-size: 2rem; line-height: 1; color: var(--h-marinho); }
.tg-resumo-nota span { font-size: .72rem; color: var(--h-texto-2); max-width: 90px; }
.tg-resumo-texto h2 { margin: 0 0 6px; font-size: 1.3rem; color: var(--h-marinho); }
.tg-resumo-texto p { margin: 0 0 14px; color: var(--h-texto-2); }
.tg-materias { grid-column: 1 / -1; list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--h-borda); display: flex; flex-wrap: wrap; gap: 8px; }
.tg-materias li { display: flex; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--h-fundo); font-size: .82rem; }
.tg-acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Botões sempre coloridos (regra do professor; auditoria 16/11/2026, item 29): o antigo link sublinhado virou botão */
.tg-link { display: inline-flex; align-items: center; gap: 6px; background: #E3ECF7; border: 2px solid var(--h-marinho-2); color: var(--h-marinho-2); text-decoration: none; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; padding: 8px 14px; border-radius: 999px; }
.tg-link:hover, .tg-link:focus-visible { background: var(--h-marinho-2); color: #fff; }
/* Mini cards das Missões no resultado (16/11/2026) */
.tg-missoes { margin: 28px 0; }
.tg-missoes h2 { margin: 0 0 12px; text-align: center; }
.tg-missoes-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tg-missao { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--h-raio); background: #fff; border: 2px solid #D6E2F0; border-top: 6px solid var(--h-marinho-2); }
.tg-missao-guiada { border-top-color: #2B8A3E; } .tg-missao-tropa { border-top-color: #1971C2; } .tg-missao-comando { border-top-color: #862E9C; }
.tg-missao h3 { margin: 0; font-size: 1.1rem; } .tg-missao p { margin: 0; }
.tg-missao-preco { font-size: 1.3rem; font-weight: 800; } .tg-missao-preco small { font-size: .8rem; font-weight: 600; }
.tg-missao-producao { font-size: .75rem; background: #F1F3F5; border: 1px dashed #ADB5BD; border-radius: 999px; padding: 1px 8px; }
.tg-missao-botao { margin-top: auto; justify-content: center; }
.tg-missoes-nota { text-align: center; font-size: .85rem; margin: 12px 0 0; }
.tg-titulo-correcao { font-size: 1.3rem; color: var(--h-marinho); margin: 0 0 14px; }
.tg-convite { margin-top: 32px; border-radius: var(--h-raio); padding: 28px; text-align: center; }
.tg-convite h2 { margin: 0 0 8px; } .tg-convite p { color: #C9D6E6; max-width: 640px; margin: 0 auto 18px; }
.tg-convite .tg-acoes { justify-content: center; }

/* cores por faixa */
.tg-f-estudar { --tg-cor: #d92d20; } .tg-f-atencao { --tg-cor: #f08c00; } .tg-f-media { --tg-cor: #e0a100; }
.tg-f-bom { --tg-cor: #00a3c4; } .tg-f-muito_bom { --tg-cor: #1f9d55; } .tg-f-excelente { --tg-cor: #12824a; }
.tg-f-perfeito { --tg-cor: #c9a227; }

/* janela fechável */
.tg-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.tg-modal[hidden] { display: none; }
.tg-modal-fundo { position: absolute; inset: 0; background: rgba(1, 15, 39, .62); animation: tg-aparece .3s ease-out; }
.tg-modal-caixa { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; padding: 30px 26px 18px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: tg-sobe .45s cubic-bezier(.2, .9, .3, 1.2); border-top: 6px solid var(--tg-cor); }
.tg-modal-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--h-fundo); cursor: pointer; display: grid; place-items: center; }
.tg-modal-x .icone { width: 20px; height: 20px; }
.tg-anel { position: relative; width: 170px; height: 170px; margin: 4px auto 12px; }
.tg-anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tg-anel circle { fill: none; stroke-width: 10; }
.tg-anel-fundo { stroke: var(--h-borda); }
.tg-anel-barra { stroke: var(--tg-cor); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: var(--tg-offset, 326.73); transition: stroke-dashoffset 1.6s cubic-bezier(.25, .8, .25, 1); }
.tg-anel-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; color: var(--h-marinho); }
.tg-anel-num b { font-size: 2.6rem; line-height: 1; }
.tg-anel-num { grid-auto-flow: column; align-content: center; justify-content: center; }
.tg-modal-acertos { margin: 0; font-size: .9rem; color: var(--h-texto-2); }
.tg-modal-caixa h2 { margin: 8px 0 8px; font-size: 1.35rem; color: var(--h-marinho); }
.tg-modal-texto { margin: 0 0 16px; color: var(--h-texto-2); font-size: .95rem; }
.tg-acoes-modal { justify-content: center; margin-bottom: 4px; }
.tg-acoes-modal .h-botao { flex: 1 1 200px; }
.tg-modal-caixa h2, .tg-modal-texto, .tg-acoes-modal { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.tg-modal.tg-revela .tg-modal-caixa h2, .tg-modal.tg-revela .tg-modal-texto, .tg-modal.tg-revela .tg-acoes-modal { opacity: 1; transform: none; }
.tg-modal.tg-revela .tg-modal-texto { transition-delay: .12s; } .tg-modal.tg-revela .tg-acoes-modal { transition-delay: .24s; }
.tg-confete { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 18px; }
.tg-confete i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: tg-confete 2.4s ease-in 1.2s forwards; }
.tg-confete i:nth-child(3n) { background: var(--h-ciano); } .tg-confete i:nth-child(3n+1) { background: var(--h-dourado); } .tg-confete i:nth-child(3n+2) { background: #1f9d55; }
.tg-confete i:nth-child(1) { left: 5%; animation-delay: 1.2s } .tg-confete i:nth-child(2) { left: 11%; animation-delay: 1.5s } .tg-confete i:nth-child(3) { left: 17%; animation-delay: 1.3s }
.tg-confete i:nth-child(4) { left: 23%; animation-delay: 1.7s } .tg-confete i:nth-child(5) { left: 29%; animation-delay: 1.25s } .tg-confete i:nth-child(6) { left: 35%; animation-delay: 1.6s }
.tg-confete i:nth-child(7) { left: 41%; animation-delay: 1.35s } .tg-confete i:nth-child(8) { left: 47%; animation-delay: 1.8s } .tg-confete i:nth-child(9) { left: 53%; animation-delay: 1.2s }
.tg-confete i:nth-child(10) { left: 59%; animation-delay: 1.55s } .tg-confete i:nth-child(11) { left: 65%; animation-delay: 1.4s } .tg-confete i:nth-child(12) { left: 71%; animation-delay: 1.75s }
.tg-confete i:nth-child(13) { left: 77%; animation-delay: 1.3s } .tg-confete i:nth-child(14) { left: 83%; animation-delay: 1.65s } .tg-confete i:nth-child(15) { left: 89%; animation-delay: 1.45s }
.tg-confete i:nth-child(16) { left: 95%; animation-delay: 1.9s } .tg-confete i:nth-child(17) { left: 14%; animation-delay: 2s } .tg-confete i:nth-child(18) { left: 74%; animation-delay: 2.1s }
@keyframes tg-confete { 0% { opacity: 1; transform: translateY(0) rotate(0) } 100% { opacity: 0; transform: translateY(460px) rotate(540deg) } }
@keyframes tg-aparece { from { opacity: 0 } }
@keyframes tg-sobe { from { opacity: 0; transform: translateY(40px) scale(.94) } }
body.tg-travado { overflow: hidden; }

/* faixa da página inicial: cores FORA do padrão da Mentoria, de propósito (pedido de 13/11/2026: destacar e piscar) */
/* separadas (não agrupadas): cada faixa é um bloco próprio, com respiro entre elas */
.h-testes-gratis { display: grid; gap: 14px; padding: 14px 0; background: var(--h-fundo, #F2F4F7); }
.h-teste-gratis { position: relative; overflow: hidden; color: #1A1200;
  background: linear-gradient(100deg, #FFC400 0%, #FF7A00 50%, #F0302A 100%); background-size: 200% 100%;
  animation: tg-faixa-cor 6s ease-in-out infinite; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.h-teste-gratis::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,.07) 0 14px, transparent 14px 28px); }
.h-teste-gratis::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; left: -160px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg);
  animation: tg-faixa-brilho 3.2s ease-in-out infinite; }
.h-teste-gratis-link { display: block; color: inherit; text-decoration: none; position: relative; z-index: 1; }
.h-teste-gratis-linha { display: flex; align-items: center; gap: 22px; padding-top: 34px; padding-bottom: 34px; }
.h-teste-gratis-selo { flex: none; font-weight: 900; font-size: .95rem; letter-spacing: .08em; color: #fff; background: #E0004D;
  padding: 6px 10px; border-radius: 6px; transform: rotate(-4deg); box-shadow: 0 2px 0 rgba(0,0,0,.25);
  animation: tg-pisca 1.1s steps(2, jump-none) infinite; }
.h-teste-gratis-icone { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: #1A1200; color: #FFE600; animation: tg-pulso 1.6s ease-out infinite; }
.h-teste-gratis-icone .icone { width: 36px; height: 36px; }
.h-teste-gratis-texto { flex: 1; line-height: 1.35; }
.h-teste-gratis-texto strong { display: block; font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 900; line-height: 1.2; color: #1A1200; margin-bottom: 6px; }
.h-teste-gratis-texto span { font-size: 1rem; font-weight: 600; color: #3A2A00; max-width: 720px; display: block; }
.h-teste-gratis-botao { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 16px 26px; font-size: 1.05rem; border-radius: 999px;
  background: #1A1200; color: #FFE600; font-weight: 800; box-shadow: 0 0 0 0 rgba(224,0,77,.7);
  animation: tg-botao 1.6s ease-out infinite; transition: transform .15s; }
.h-teste-gratis-botao .icone { width: 18px; height: 18px; }
.h-teste-gratis-link:hover .h-teste-gratis-botao, .h-teste-gratis-link:focus-visible .h-teste-gratis-botao { transform: scale(1.06); background: #E0004D; color: #fff; }
.h-teste-gratis-link:focus-visible { outline: 3px solid #1A1200; outline-offset: -3px; }
@keyframes tg-faixa-cor { 0%, 100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }
@keyframes tg-faixa-brilho { 0% { left: -160px } 60%, 100% { left: 110% } }
@keyframes tg-pisca { 0% { opacity: 1 } 50% { opacity: .25 } }
@keyframes tg-pulso { 0% { box-shadow: 0 0 0 0 rgba(26,18,0,.55) } 100% { box-shadow: 0 0 0 16px rgba(26,18,0,0) } }
@keyframes tg-botao { 0% { box-shadow: 0 0 0 0 rgba(224,0,77,.7) } 100% { box-shadow: 0 0 0 14px rgba(224,0,77,0) } }

/* tonalidades: CFSD laranja-avermelhado; CHOE vermelho mais fechado (mesma família, só o tom muda) */
.h-teste-gratis-choe { background-image: linear-gradient(100deg, #FF8A00 0%, #F0302A 50%, #B5121B 100%); color: #fff; }
.h-teste-gratis-choe .h-teste-gratis-texto strong { color: #fff; }
.h-teste-gratis-choe .h-teste-gratis-texto span { color: #FFE3D6; }
.h-teste-gratis-choe .h-teste-gratis-selo { background: #FFE600; color: #8A0010; }
.h-teste-gratis-choe .h-teste-gratis-icone { background: #FFE600; color: #8A0010; }
.h-teste-gratis-choe .h-teste-gratis-botao { background: #FFE600; color: #5A0008; }
.h-teste-gratis-choe .h-teste-gratis-link:focus-visible { outline-color: #FFE600; }
.h-teste-gratis-curso { display: inline-block; font-style: normal; font-weight: 900; font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; margin-bottom: 8px; border-radius: 999px; background: #1A1200; color: #FFE600; }
.h-teste-gratis-choe .h-teste-gratis-curso { background: #FFE600; color: #8A0010; }

/* selo redondo no retrato do topo: leva aos testes */
.h-selo-teste { position: absolute; left: 2%; top: 6%; z-index: 3; width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; color: #1A1200;
  background: radial-gradient(circle at 35% 30%, #FFE600 0%, #FF9A00 55%, #F0302A 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.35); animation: tg-pulso-selo 1.8s ease-out infinite; transition: transform .2s; }
.h-selo-teste:hover, .h-selo-teste:focus-visible { transform: scale(1.08) rotate(-4deg); }
.h-selo-teste:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.h-selo-teste-anel { position: absolute; inset: 7px; border-radius: 50%; border: 2px dashed rgba(26,18,0,.55);
  animation: tg-gira 12s linear infinite; }
.h-selo-teste-miolo { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.05; transform: rotate(-8deg); }
.h-selo-teste-miolo b { font-size: 1.25rem; font-weight: 900; letter-spacing: .02em; }
.h-selo-teste-miolo small { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 2px 0; }
.h-selo-teste-miolo small:last-child { background: #1A1200; color: #FFE600; padding: 2px 6px; border-radius: 999px; margin-top: 4px; animation: tg-pisca 1.1s steps(2, jump-none) infinite; }
@keyframes tg-gira { to { transform: rotate(360deg) } }
@keyframes tg-pulso-selo { 0% { box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 0 rgba(255,154,0,.75) } 100% { box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 0 0 22px rgba(255,154,0,0) } }

/* volta à página inicial (teste gratuito) */
.tg-inicio .icone { width: 18px; height: 18px; }
.tg-modal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 6px 0 0; }
.tg-enviar .tg-link .icone { width: 16px; height: 16px; vertical-align: -3px; }

@media (max-width: 700px) {
  .tg-resumo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tg-resumo .tg-acoes { justify-content: center; }
  .tg-q { padding: 16px; }
  .h-teste-gratis-linha { flex-wrap: wrap; gap: 12px; }
  .h-teste-gratis-linha { padding-top: 24px; padding-bottom: 24px; }
  .h-teste-gratis-texto { flex-basis: 100%; }
  .h-teste-gratis-botao { width: 100%; justify-content: center; }
  .tg-inicio span { display: none; }
  .h-selo-teste { width: 104px; height: 104px; left: 0; top: 2%; }
  .h-selo-teste-miolo b { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tg-modal-fundo, .tg-modal-caixa, .tg-confete i, .h-teste-gratis, .h-teste-gratis::after,
  .h-teste-gratis-selo, .h-teste-gratis-icone, .h-teste-gratis-botao, .h-selo-teste, .h-selo-teste-anel,
  .h-selo-teste-miolo small:last-child { animation: none; }
  .h-teste-gratis::after { display: none; }
  .tg-anel-barra { transition: none; }
}
