:root {
    --bg: #07141D;
    --surface: transparent;
    --text: white;
    --muted: #AAA;
    --line: transparent;
    --accent: #9CAC0F;
    --accent-contrast: #07141D;
    --amarelo: #F4E713;
}

* { box-sizing: border-box; font-family: "Saira"; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
body { font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
button { font: inherit; }

*[hidden] { display: none !important; }

.quiz-app { min-height: 100vh; display: flex; flex-direction: column; }
.quiz-header, .quiz-shell, .result-view { width: min(1280px, calc(100dvw - 64px)); margin: 0 auto; padding: 32px 24px; }
.quiz-header { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 24px; }
.brand-placeholder { width: 120px; height: 40px; border: 1px dashed var(--line); border-radius: 8px; }
.intro-copy { max-width: 720px; }
h1 { font-size: clamp(32px, 6vw, 40px); line-height: .95; margin: 0 0 14px; }
h2 { line-height: 1.1; }
.intro-copy h2 { margin: 0 0 14px; font-size: 20px; }
p { line-height: 1.6; }
.start-button, .nav-button { border: 0; cursor: pointer; border-radius: 999px; padding: 14px 24px; }
.start-button, .nav-button.primary { background: var(--amarelo); color: var(--accent-contrast); }
.nav-button.secondary { background: var(--amarelo); color: var(--accent-contrast); }
button:disabled { opacity: .4; cursor: not-allowed; }

.quiz-shell { min-height: 100vh; display: flex; flex-direction: column; }
.progress-wrap { padding: 8px 0 24px; }
.progress-track { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 10%; background: var(--accent); transition: width .35s ease; }
.progress-pips { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pip { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #ccc; padding: 0; cursor: pointer; transition: transform .2s, background .2s; }
.pip.is-complete { background: #888; }
.pip.is-active { background: var(--accent); transform: scale(1.35); }

.treadmill { position: relative; flex: 1; min-height: 580px; overflow: hidden; }
.question-slide { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px 0 120px; transform: translateX(110%); opacity: 0; transition: transform .42s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
.question-slide.is-active { transform: translateX(0); opacity: 1; }
.question-slide.is-before { transform: translateX(-110%); }
.question-inner { width: min(760px, 100%); }
.question-number { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.question-inner h2 { font-size: clamp(20px, 3vw, 30px); margin: 0 0 32px; color: #9CAC0F; }
.answers { display: grid; gap: 12px; }
.answer-button { color: white; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; cursor: pointer; transition: border .2s, transform .2s, background .2s; }
.answer-button.is-selected { color: black; background: #9CAC0F; }
.answer-letter { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); flex: 0 0 34px; font-weight: 700; background-color: white; color: black; }

.quiz-footer { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 0; background: linear-gradient(transparent, var(--bg) 25%); }
.quiz-footer .primary { justify-self: end; }
.quiz-footer .secondary { justify-self: start; }
.footer-status { font-size: 13px; color: var(--muted); }

.result-view { min-height: 100vh; display: grid; place-items: center; }
.result-card { width: min(1280px, calc(100dvw - 64px)); background: var(--surface); padding: clamp(28px, 6vw, 64px); border-radius: 24px; text-align: center; }
.result-eyebrow { font-size: 30px; font-weight: 700; background: var(--amarelo); color: #07141D; margin-bottom: 32px; }
.result-card h2 { font-size: clamp(20px, 4vw, 30px); margin: 10px 0; color: #9CAC0F }
.result-area { color: var(--muted); font-weight: 700; }

.result-single-grid { display: grid; grid-gap: 32px; grid-template-columns: max-content 1fr; text-align: left; }

.result_grid_inferior { display: grid; grid-column: span 2; grid-template-columns: repeat(3, 1fr); grid-gap: 16px; text-align: center; font-weight: 600; }
.result_grid_inferior .caracteristicas_titulo { font-size: 22px; grid-column: span 3; }
.result_grid_inferior .uma_caracteristica { box-sizing: border-box; width: 100%; background-color: var(--accent); color: black; font-size: 18px; padding: 8px; border-radius: 100px; margin-bottom: 32px; }
.result_grid_inferior .caracteristicas_mobile { grid-column: span 3; font-size: 18px; color: var(--muted); display: none; }

.needs-answer .question-inner { animation: shake .45s ease; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }

@media (max-width: 640px) {
    .quiz-header, .quiz-shell, .result-view { padding-left: 18px; padding-right: 18px; }
    .treadmill { min-height: calc(100dvh - 160px); }
    .quiz-footer { grid-template-columns: auto 1fr auto; }
    .quiz-shell, .result-view { width: 100%; }
    .result-view { padding: 0; overflow: scroll; }
    .question-slide { padding: unset; }
    .answer-button { padding: 8px 0; }
    .footer-status { text-align: center; }

    .result-single-grid { display: flex; flex-direction: column; gap: 16px; }
    .result-eyebrow { margin-bottom: 0; }
    .result_grid_inferior { grid-gap: 8px; }
    .result_grid_inferior .uma_caracteristica { display: none; }
    .result_grid_inferior .caracteristicas_mobile { display: block; margin-bottom: 32px; }
}