/* Quiz do plano de treino (Forja): tela escura, uma pergunta por vez, títulos
   itálicos em caixa alta, opções em cartões que ficam amarelos ao escolher,
   seletor de dias, prova social, montagem do plano animada, captura de e-mail
   e o plano resumido no fim. Feito para o celular primeiro. */
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; min-height: 100vh; font-family: var(--fonte-texto); font-size: 1rem; line-height: 1.5; color: var(--cor-texto); background: var(--cor-fundo); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cor-acento); }
h1, h2 { margin: 0; font-family: var(--fonte-titulo); font-style: italic; font-weight: 800; line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase; text-align: center; }
p { margin: 0; }
.icone { width: 20px; height: 20px; flex: none; }

.quiz { display: flex; flex-direction: column; max-width: 480px; min-height: 100svh; margin: 0 auto; padding: 0 16px 24px; }

/* Topo: logo, voltar, barra curta e pular. */
.quiz__topo { position: sticky; top: 0; z-index: 3; display: grid; gap: 14px; padding: 16px 0 10px; background: var(--cor-fundo); }
.quiz__logo { justify-self: center; width: 118px; height: auto; }
.quiz__linha { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.quiz__voltar { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--cor-texto); cursor: pointer; transition: background-color 0.15s ease; }
.quiz__voltar:hover { background: var(--cor-superficie); }
.quiz__voltar .icone { width: 22px; height: 22px; }
.quiz__voltar[hidden] { display: grid; visibility: hidden; }
.quiz__barra { justify-self: center; width: min(120px, 100%); height: 4px; overflow: hidden; border-radius: 2px; background: var(--cor-trilho); }
.quiz__barra i { display: block; width: var(--pct, 0%); height: 100%; border-radius: 2px; background: var(--cor-acento); transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.quiz__pular { justify-self: end; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--cor-texto); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.quiz__pular:hover { color: var(--cor-acento); }
.quiz__pular[hidden] { display: block; visibility: hidden; }

/* Etapas: coluna com o botão no pé. */
.quiz__etapa { display: none; flex: 1; flex-direction: column; gap: 18px; padding-top: 10px; }
.quiz__etapa > * { min-width: 0; }
.quiz__etapa--ativa { display: flex; animation: entrar 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.quiz__etapa h1, .quiz__etapa h2 { font-size: clamp(1.9rem, 8.4vw, 2.35rem); outline: none; }
.quiz__sub { margin-top: -4px; color: var(--cor-texto); font-size: 0.95rem; text-align: center; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Opções: cartão escuro que vira amarelo. */
.quiz__opcoes { display: grid; gap: 10px; }
.resposta { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 18px; border: 0; border-radius: var(--raio); background: var(--cor-superficie); color: var(--cor-texto); font: inherit; font-size: 1.05rem; font-weight: 700; text-align: left; line-height: 1.25; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease; }
.resposta:hover { background: #222834; }
.resposta:active { transform: scale(0.985); }
.resposta:focus-visible { outline: 2px solid var(--cor-acento); outline-offset: 2px; }
.resposta img { width: 30px; height: 30px; flex: none; }
.resposta small { display: block; margin-top: 3px; color: var(--cor-texto-2); font-size: 0.8rem; font-weight: 500; line-height: 1.35; }
.resposta__selo { display: inline-flex; align-items: center; gap: 4px; }
.resposta__selo .icone { width: 16px; height: 16px; color: var(--cor-acento); }
.resposta--escolhida, .resposta--escolhida:hover { background: var(--cor-acento); color: var(--cor-acento-texto); }
.resposta--escolhida small { color: #3d3a22; }
.resposta--escolhida .resposta__selo .icone { color: var(--cor-acento-texto); }

/* Botão principal: amarelo com base mais funda, afunda no clique. */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin-top: auto; margin-bottom: 4px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--cor-acento); color: var(--cor-acento-texto); font: inherit; font-size: 1rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 var(--cor-acento-escuro); transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease; }
.botao:hover { filter: brightness(1.05); }
.botao:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cor-acento-escuro); }
.botao:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.botao:disabled { background: #5a6272; color: #c4cad4; box-shadow: 0 4px 0 #444b58; cursor: not-allowed; transform: none; filter: none; }
.botao .icone { width: 20px; height: 20px; }

/* Seletor de dias. */
.dias { display: grid; gap: 10px; margin-top: 4px; }
.dias__rotulo { font-size: 0.95rem; }
.dias input { width: 100%; height: 28px; margin: 0; background: none; accent-color: var(--cor-acento); appearance: none; -webkit-appearance: none; cursor: pointer; }
.dias input::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--cor-acento) var(--pct, 33%), #e7eaef var(--pct, 33%)); }
.dias input::-moz-range-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--cor-acento) var(--pct, 33%), #e7eaef var(--pct, 33%)); }
.dias input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8.5px; border: 0; border-radius: 50%; background: var(--cor-acento); }
.dias input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--cor-acento); }
.dias input:focus-visible { outline: 2px solid var(--cor-acento); outline-offset: 4px; }
.dias__escala { position: relative; display: flex; justify-content: space-between; min-height: 42px; font-size: 0.95rem; }
.dias__valor { position: absolute; top: 0; left: var(--pos, 33%); display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 6px; background: var(--cor-acento); color: var(--cor-acento-texto); font-weight: 800; transform: translateX(-50%); }
.dias__nota { color: var(--cor-texto-2); font-size: 0.85rem; text-align: center; }

/* Prova social. */
.prova { display: grid; justify-items: center; gap: 18px; margin-top: 10px; text-align: center; }
.prova__estrelas { display: flex; gap: 4px; color: var(--cor-acento); }
.prova__estrelas svg { width: 24px; height: 24px; }
.prova blockquote { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.45; }
.prova__autor { color: var(--cor-texto-2); font-size: 0.85rem; }
.prova__selos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.selo { display: flex; align-items: center; gap: 2px; }
.selo svg { width: 22px; height: 48px; color: #d7dbe2; }
.selo svg:last-child { transform: scaleX(-1); }
.selo span { display: grid; justify-items: center; line-height: 1.1; }
.selo strong { font-family: var(--fonte-titulo); font-style: italic; font-size: 1.9rem; }
.selo small { color: var(--cor-texto-2); font-size: 0.72rem; font-weight: 600; }

/* Montagem do plano. */
.montagem { display: grid; gap: 22px; margin: 6px 0 0; padding: 0; list-style: none; }
.montagem li { display: flex; align-items: center; gap: 14px; font-weight: 700; opacity: 0.4; transition: opacity 0.3s ease; }
.montagem li.montagem--agora, .montagem li.montagem--feito { opacity: 1; }
.montagem__icone { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1.5px solid var(--cor-texto-2); border-radius: 10px; color: var(--cor-acento); }
.montagem__icone .icone { width: 22px; height: 22px; }
.montagem--feito .montagem__icone { border-color: var(--cor-acento); background: var(--cor-acento); color: var(--cor-acento-texto); }
.montagem--agora .montagem__icone::after { content: ""; position: absolute; inset: -5px; border: 2px solid transparent; border-top-color: var(--cor-acento); border-radius: 13px; animation: girar 0.9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Captura. */
.pronto { justify-self: center; align-self: center; width: 116px; height: 116px; margin: 6px 0; color: var(--cor-acento); }
.pronto circle, .pronto path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pronto path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.quiz__etapa--ativa .pronto path { animation: marcar 0.5s 0.25s ease forwards; }
@keyframes marcar { to { stroke-dashoffset: 0; } }
.formulario { display: grid; gap: 12px; }
.campo { display: grid; gap: 8px; }
.campo__rotulo { font-weight: 700; }
.campo input { width: 100%; height: 52px; padding: 0 14px; border: 1.5px solid #5a6272; border-radius: 10px; background: var(--cor-superficie); color: var(--cor-texto); font: inherit; font-size: 1rem; }
.campo input::placeholder { color: #8d95a3; }
.campo input:focus { outline: none; border-color: var(--cor-acento); }
.campo__ajuda { color: var(--cor-texto-2); font-size: 0.78rem; }
.quiz__armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quiz__consentimento { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; color: var(--cor-texto-2); font-size: 0.8rem; line-height: 1.45; cursor: pointer; }
.quiz__consentimento input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--cor-acento); }
.formulario__confianca { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--cor-texto-2); font-size: 0.78rem; text-align: center; }
.formulario__confianca .icone { width: 14px; height: 14px; }
.quiz__aviso { padding: 10px 12px; border-radius: 10px; background: rgba(247, 213, 17, 0.14); color: var(--cor-acento); font-size: 0.85rem; font-weight: 600; }
.quiz__aviso:empty { display: none; }

/* Resultado: o plano resumido e a semana. */
.plano { display: grid; gap: 0; border-radius: 14px; background: var(--cor-superficie); }
.plano div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--cor-borda); font-size: 0.92rem; }
.plano div:last-child { border-bottom: 0; }
.plano dt { color: var(--cor-texto-2); }
.plano dd { margin: 0; font-weight: 700; text-align: right; }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.semana span { display: grid; place-items: center; height: 46px; border-radius: 10px; background: var(--cor-superficie); color: var(--cor-texto-2); font-size: 0.78rem; font-weight: 700; }
.semana span.semana--treino { background: var(--cor-acento); color: var(--cor-acento-texto); }
.semana__nota { color: var(--cor-texto-2); font-size: 0.85rem; text-align: center; }

.rodape { padding: 8px 20px 26px; color: var(--cor-texto-2); font-size: 0.76rem; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .quiz__etapa--ativa, .montagem--agora .montagem__icone::after { animation: none; }
  .quiz__barra i, .resposta, .botao { transition: none; }
  .pronto path { stroke-dashoffset: 0; }
  .quiz__etapa--ativa .pronto path { animation: none; }
}
