/* O que é do site por cima do tequemedia.css, com o prefixo tm-. */
html { scroll-padding-top: 16px; }
[hidden] { display: none !important; }

/* cabeçalho com menu curto */
.tm-topo__logo img { display: block; width: 100%; height: auto; }
.tm-nav { display: flex; align-items: center; gap: 4px; }
.tm-nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tm-nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; text-decoration: none; border-radius: var(--tq-raio-p); transition: color var(--tq-t-rotina) var(--tq-chegada); }
.tm-nav__links a:hover { color: var(--tq-tinta-2); text-decoration: underline; text-decoration-color: var(--tq-laranja); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.tm-nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tq-laranja); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.tm-nav .tq-botao { margin-left: 10px; }
.tm-menu { display: none; position: relative; }
.tm-menu > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--tq-branco); border: var(--tq-traco) solid var(--tq-borda); border-radius: var(--tq-raio-p); box-shadow: var(--tq-sombra-c); cursor: pointer; }
.tm-menu > summary::-webkit-details-marker { display: none; }
.tm-menu__painel { position: absolute; right: 0; top: calc(100% + 12px); z-index: 20; width: min(260px, calc(100vw - 32px)); padding: 8px; background: var(--tq-branco); border: var(--tq-traco) solid var(--tq-borda); border-radius: var(--tq-raio); box-shadow: var(--tq-sombra); }
.tm-menu__painel ul { list-style: none; margin: 0; padding: 0; }
.tm-menu__painel a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; text-decoration: none; border-top: 2px solid var(--tq-casca); }
.tm-menu__painel li:first-child a { border-top: 0; }
@media (max-width: 900px) {
  .tm-nav { display: none; }
  .tm-menu { display: block; }
}

/* herói */
.tm-heroi {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(20px, 4vw, 56px) var(--tq-secao);
}
.tm-heroi__texto { display: grid; gap: clamp(14px, 2vw, 20px); justify-items: start; min-width: 0; }
.tm-heroi__texto .tq-heroi { max-width: 14em; }
.tm-palco { min-width: 0; }
.tm-form { display: grid; gap: 14px; }
.tm-aceite { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px; align-items: center; font-size: var(--tq-t-pequeno); line-height: 1.4; cursor: pointer; margin-left: -10px; }
/* caixa de 26 px desenhada dentro de um alvo de toque de 44 px */
.tm-aceite input {
  appearance: none; -webkit-appearance: none; width: 44px; height: 44px; margin: 0; font-size: 16px; cursor: pointer;
  background: center / 26px 26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='1.5' y='1.5' width='23' height='23' rx='5' fill='%23fff' stroke='%23000' stroke-width='3'/%3E%3C/svg%3E");
}
.tm-aceite input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='1.5' y='1.5' width='23' height='23' rx='5' fill='%23fe5b18' stroke='%23000' stroke-width='3'/%3E%3Cpath d='M7.5 13.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E"); }
.tm-aceite input:focus-visible { outline-offset: -6px; }
.tm-letra { font-size: var(--tq-t-rotulo); color: var(--tq-tinta-2); }
.tm-letra a { text-decoration-color: var(--tq-laranja); text-underline-offset: 3px; }
.tm-sucesso { display: grid; gap: 10px; }
.tm-sucesso:focus { outline: none; }
.tm-form button[aria-busy="true"] { cursor: progress; }
@media (max-width: 860px) {
  .tm-heroi { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 12px; }
  .tm-heroi__texto { gap: 12px; }
  .tm-form { gap: 10px; }
  .tm-palco .tq-janela__corpo { padding-top: 16px; }
}

/* seções */
.tm-secao-titulo { display: grid; gap: 10px; margin-bottom: clamp(20px, 3vw, 32px); }
.tm-pilha { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); }
.tm-cartoes-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tm-cartoes-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tm-fecho { margin-top: clamp(20px, 3vw, 28px); max-width: var(--tq-medida-leitura); font-weight: 700; }

.tm-autoridade { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 44px); justify-items: center; text-align: center; }
.tm-autoridade__titulo { font-size: clamp(2.125rem, 1.2rem + 4.4vw, 4rem); max-width: 15ch; }
.tm-autoridade .tq-prova { width: 100%; max-width: 920px; }
@media (max-width: 480px) { .tm-autoridade .tq-botao { width: 100%; } }

.tm-resultados { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.tm-fonte { display: block; margin-top: 8px; font-size: var(--tq-t-rotulo); color: var(--tq-tinta-2); }

.tm-depoimentos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.tm-depo { margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.tm-depo blockquote { margin: 0; line-height: 1.5; }
.tm-depo figcaption { display: grid; gap: 2px; font-size: var(--tq-t-pequeno); color: var(--tq-tinta-2); border-top: 2px solid var(--tq-casca); padding-top: 12px; }
.tm-depo figcaption strong { color: var(--tq-tinta); }

.tm-lista-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px 32px; }

.tm-sobre { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.tm-sobre__foto { margin: 0; background: var(--tq-laranja); border: var(--tq-traco) solid var(--tq-borda); border-radius: var(--tq-raio); box-shadow: var(--tq-sombra); overflow: hidden; max-width: 420px; }
.tm-sobre__foto img { display: block; width: 100%; height: auto; }
.tm-sobre__texto { display: grid; gap: 16px; justify-items: start; }
.tm-sobre__texto p:not(.tq-balao) { max-width: var(--tq-medida-leitura); }
@media (max-width: 760px) { .tm-sobre { grid-template-columns: minmax(0, 1fr); } .tm-sobre__foto { max-width: 320px; } }

.tm-perguntas { display: grid; gap: 0; margin: 0; }
.tm-perguntas div { padding-block: 16px; border-top: 2px solid var(--tq-borda); }
.tm-perguntas div:first-child { border-top: 0; padding-top: 0; }
.tm-perguntas dt { font-weight: 700; }
.tm-perguntas dd { margin: 6px 0 0; color: var(--tq-tinta-2); max-width: var(--tq-medida-leitura); }

.tm-final { display: grid; gap: 16px; justify-items: center; text-align: center; }
.tm-final .tq-apoio { margin-inline: auto; }
@media (max-width: 480px) { .tm-final .tq-botao { width: 100%; } }

.tm-rodape__links a { text-decoration-color: var(--tq-laranja); text-underline-offset: 3px; }

/* momento autoral da vitrine. A janela do herói se abre por baixo da barra,
   uma vez, em 600 ms. Com movimento reduzido, só esmaece em 200 ms. */
.tm-palco .tq-janela__corpo { animation: tm-abre var(--tq-t-momento) var(--tq-chegada) both; }
@keyframes tm-abre { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tm-esmaece { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .tm-palco .tq-janela__corpo { animation: tm-esmaece 200ms var(--tq-chegada) both; }
}

/* quiz de aplicação. Sem JavaScript, todas as perguntas aparecem num formulário só. */
.tm-quiz { display: grid; gap: 14px; }
.tm-passo { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.tm-passo + .tm-passo { padding-top: 18px; border-top: 2px solid var(--tq-casca); }
.tm-passo legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.tm-passo legend + * { clear: both; }
.tm-opcao { position: relative; display: flex; align-items: center; min-height: 52px; padding: 10px 14px; background: var(--tq-branco); border: var(--tq-traco) solid var(--tq-borda); border-radius: var(--tq-raio-p); box-shadow: var(--tq-sombra-c); font-weight: 700; line-height: 1.25; cursor: pointer; transition: background-color var(--tq-t-rotina) var(--tq-chegada); }
/* o rádio cobre a opção inteira (alvo de toque); o círculo é desenhado no span */
.tm-opcao input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.tm-opcao span { display: flex; align-items: center; gap: 12px; }
.tm-opcao span::before { content: ""; flex: none; width: 22px; height: 22px; border: var(--tq-traco) solid var(--tq-borda); border-radius: 50%; background: var(--tq-branco); }
.tm-opcao:has(input:checked) span::before { background: var(--tq-laranja); box-shadow: inset 0 0 0 3px var(--tq-branco); }
.tm-opcao:hover { background: var(--tq-fumaca); }
.tm-opcao:has(input:checked) { background: var(--tq-casca); }
.tm-opcao:has(input:focus-visible) { outline: var(--tq-traco) solid var(--tq-noite); outline-offset: 3px; }
.tm-opcao input:focus-visible { outline: none; }
.tm-contato { gap: 12px; }
.tm-quiz__acoes { display: flex; gap: 12px; align-items: center; }
.tm-quiz__acoes .tq-botao--principal { flex: 1; }
.tm-passo-n { font-weight: 700; margin-left: 6px; }
.tm-quiz.tm-js .tm-passo { display: none; }
.tm-quiz.tm-js .tm-passo.tm-ativo { display: grid; padding-top: 0; border-top: 0; }
.tm-quiz.tm-js .tm-passo.tm-ativo { animation: tm-entra var(--tq-t-rotina) var(--tq-chegada); }
@keyframes tm-entra { from { opacity: 0; transform: translateX(calc(12px * var(--tq-k))); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .tm-passo { gap: 8px; }
  .tm-passo legend { margin-bottom: 6px; }
  .tm-opcao { min-height: 46px; padding-block: 8px; }
}

/* herói da home com foto no palco e a ação embaixo do texto */
.tm-heroi__acao { margin-top: 6px; }
@media (max-width: 480px) { .tm-heroi__acao { width: 100%; } }
.tm-palco__foto { margin: 0; padding: 0; display: grid; }
.tm-palco__foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tq-laranja); border-bottom: var(--tq-traco) solid var(--tq-borda); }
.tm-palco__foto figcaption { padding: 14px 18px 16px; font-size: var(--tq-t-pequeno); color: var(--tq-tinta-2); }
.tm-heroi:not(.tm-heroi--aplicar) .tm-palco { max-width: 400px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .tm-heroi:not(.tm-heroi--aplicar) .tm-palco { justify-self: start; max-width: 360px; } }
.tm-cta { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 40px); }
@media (max-width: 480px) { .tm-cta .tq-botao { width: 100%; } }
.tm-sobre--so-texto { grid-template-columns: minmax(0, 1fr); }
