:root {
  --navy: #02193d;
  --blue: #0a89fc;
  --cyan: #00b8ff;
  --ink: #f4f8ff;
  --muted: #a6b9d0;
  --border: #466184;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--navy);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; padding: 48px 28px 36px; position: relative; background: radial-gradient(ellipse at 0 40%, #062c59 0, transparent 64%), var(--navy); border-top: 3px solid #0a89fc; }

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.brand-watermark { position: fixed; width: min(820px, 80vw); aspect-ratio: 1.835; overflow: hidden; right: -230px; top: 24%; opacity: .025; pointer-events: none; }
.brand-watermark img { position: absolute; width: 130.4%; height: auto; max-width: none; left: -15%; top: -8.2%; filter: saturate(.4); }
.site-header { position: relative; width: min(100%, 620px); display: flex; align-items: center; height: 74px; margin: 0 auto 34px; padding-bottom: 20px; border-bottom: 0; }
.logo { position: relative; display: block; width: 86px; height: 47px; overflow: hidden; transition: filter 180ms; }
.logo img { position: absolute; width: 130.4%; height: auto; max-width: none; left: -15%; top: -8.2%; }
.logo:hover { filter: drop-shadow(0 0 12px #0a89fc70); }
.quiz-card { position: relative; width: min(100%, 620px); margin: 0 auto; padding: 0; }
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stage-bar { position: relative; height: 4px; border-radius: 4px; background: #1d3658; overflow: hidden; }
.stage-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #0151dc, #0a89fc); transform: scaleX(0); transform-origin: left; transition: transform 430ms var(--ease-out); }
.stage.active .stage-bar { background: #2c4b72; }
.stage-name { display: flex; align-items: center; gap: 5px; min-width: 0; color: #7f97b5; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 180ms; }
.stage.active .stage-name { color: var(--ink); }
.stage.done .stage-name { color: #5cc7ff; }
.stage-check { display: none; }
.stage-check svg { width: 13px; height: 13px; stroke-width: 2.5; }
.stage.done .stage-check { display: inline-flex; }
.quiz-content { position: relative; margin-top: 25px; }
.question-screen { width: 100%; }
.question-screen.outgoing { position: absolute; inset: 0 auto auto 0; pointer-events: none; z-index: 2; background: transparent; }
.question-title { margin: 0 0 22px; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; max-width: 620px; outline: none; }
.question-title:focus-visible, .final-title:focus-visible { border-radius: 4px; outline: 2px solid #0a89fc; outline-offset: 6px; }
.question-hint { color: var(--muted); font-size: 14px; margin: -14px 0 24px; }
.time-emphasis { color: #00b8ff; }
.field input { width: 100%; height: 44px; border: 1px solid #b7cbe1; border-radius: 5px; padding: 0 13px; background: transparent; color: var(--ink); font-size: 16px; transition: border-color 180ms, box-shadow 180ms; }
.field input::placeholder { color: #a6b9d0; }
.field input:focus { outline: 0; border-color: #00b8ff; box-shadow: 0 0 0 2px #00b8ff1a; }
.field input[aria-invalid='true'] { border-color: #ff9eb0; }
.error { margin: 7px 0 0; font-size: 12px; color: #ffb8c4; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.options.single-column { grid-template-columns: 1fr; }
.option { position: relative; min-height: 56px; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 16px; text-align: left; background: #ffffff03; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.4; transition: background 180ms, border-color 180ms, box-shadow 180ms, transform 180ms; isolation: isolate; }
.option.wide { grid-column: 1 / -1; }
.option-text { flex: 1; overflow-wrap: anywhere; }
.option-check { width: 19px; height: 19px; border: 1.5px solid #7790b0; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background 150ms, border-color 150ms; }
.option-check svg { width: 13px; height: 13px; stroke-width: 2.5; opacity: 0; }
.option.selected { background: #0a89fc20; border-color: #0a89fc; box-shadow: none; }
.option.selected .option-check { background: #0879df; border-color: #0879df; color: #fff; }
.option.selected .option-check svg { opacity: 1; }
.option.selected .option-check path { stroke-dasharray: 20; stroke-dashoffset: 0; animation: draw-check 220ms var(--ease-out); }
.option:active { transform: scale(.98); }
.option:disabled { cursor: default; }
@media (hover: hover) { .option:hover:not(:disabled) { border-color: #68baff; background: #0a89fc0e; transform: translateY(-1px); } }
.option.limit-reached { animation: limit-feedback 250ms ease-out; }
.option-ripple { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: #0a89fc18; transform: translate(-50%, -50%); animation: ripple 400ms ease-out forwards; pointer-events: none; z-index: -1; }
.selection-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 22px; }
.selection-count { color: var(--muted); font-size: 13px; line-height: 1.4; }
.selection-count strong { color: #5cc7ff; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 46px; padding: 0 23px; text-decoration: none; background: linear-gradient(110deg, #0870d6, #0151dc); border: 0; border-radius: 6px; color: #fff; font-size: 14px; font-weight: 700; box-shadow: none; transition: transform 180ms var(--ease-out), box-shadow 180ms, opacity 180ms; }
.primary-button > svg { width: 19px; transition: transform 180ms var(--ease-out); }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 25px #0757d338; }
.primary-button:hover > svg { transform: translateX(3px); }
.primary-button:active { transform: scale(.98); }
.primary-button:disabled { opacity: .4; box-shadow: none; cursor: not-allowed; }
.contact-actions { margin-top: 48px; }
.contact-actions .primary-button { min-width: 124px; justify-content: space-between; }
.quiz-footer { display: flex; align-items: center; justify-content: space-between; min-height: 47px; margin-top: 23px; border-top: 0; padding-top: 9px; }
.consent-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.consent-note a { color: #8fd3ff; text-underline-offset: 3px; }
.consent-note a:hover { color: #c4e8ff; }
.back-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 6px 0 0; border: 0; color: #a6b9d0; background: none; font-size: 13px; font-weight: 600; transition: color 180ms; }
.back-button svg { width: 17px; }
.back-button:hover { color: #6bcfff; }
.back-button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #389df9; outline-offset: 4px; }
.secondary-button { min-height: 44px; background: none; border: none; color: #a6b9d0; font-size: 13px; font-weight: 600; padding: 0 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes draw-check { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(12); opacity: 0; } }
@keyframes limit-feedback { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-3px); } 65% { transform: translateX(3px); } }
@media (max-width: 620px) {
  body { padding: 26px 24px 28px; }
  .site-header { height: 64px; margin-bottom: 26px; padding-bottom: 16px; }
  .logo { width: 78px; height: 43px; }
  .quiz-card { padding: 0; }
  .quiz-content { margin-top: 29px; }
  .question-title { font-size: 16px; margin-bottom: 22px; }
  .question-hint { margin-top: -10px; margin-bottom: 21px; font-size: 13px; }
  .options { grid-template-columns: 1fr; gap: 9px; }
  .option { min-height: 59px; padding: 12px; font-size: 14px; }
  .selection-footer { align-items: stretch; flex-direction: column; gap: 15px; margin-top: 18px; }
  .primary-button { width: auto; min-width: 124px; }
  .quiz-footer { margin-top: 17px; }
  .secondary-button { margin: 0; }
}
@media (max-width: 360px) { .quiz-card { padding: 0; } .question-title { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .option:hover:not(:disabled), .primary-button:hover:not(:disabled), .option:active, .primary-button:active { transform: none; }
}

.greeting { margin: 0 0 36px; padding-left: 14px; border-left: 3px solid var(--cyan); font-size: 20px; line-height: 1.35; font-weight: 600; }
.quiz-intro { font-size: 17px; line-height: 1.55; font-weight: 400; margin: 0 0 18px; max-width: 580px; }
.selection-footer.single { justify-content: flex-start; }
.result-screen .stepper, .result-screen .quiz-footer { display: none; }
.result-screen .quiz-content { margin-top: 64px; }
.countdown-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; border: 1px solid #2679b0; border-radius: 12px; color: #6dd2ff; background: #0a89fc12; }
.countdown-badge svg { width: 18px; height: 18px; }
#countdown-label { font-size: 12px; }
#countdown-value { font-size: 17px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.final-title { font-size: clamp(28px, 3vw, 34px); line-height: 1.3; letter-spacing: -.025em; font-weight: 700; margin: 24px 0 20px; max-width: 590px; outline: none; text-wrap: balance; }
.final-description { font-size: 18px; color: var(--muted); line-height: 1.6; margin: 0 0 43px; max-width: 600px; }
.final-actions { display: flex; align-items: center; gap: 28px; }
.final-actions p { font-size: 14px; line-height: 1.5; margin: 0; }
.whatsapp-button { gap: 10px; min-height: 52px; min-width: 258px; font-size: 15px; font-weight: 600; }
.timer-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; }
.timer-controls p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.timer-controls .secondary-button { padding-left: 0; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.restart-button { margin-top: 10px; padding-left: 0; font-size: 12px; }
@media (max-width: 620px) {
  .greeting { margin-bottom: 31px; }
  .quiz-intro { font-size: 16px; }
  .selection-footer.single { align-items: flex-start; }
  .result-screen .quiz-content { margin-top: 38px; }
  .final-title { font-size: 28px; }
  .final-description { font-size: 16px; margin-bottom: 30px; }
  .final-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .whatsapp-button { min-width: 240px; }
}

/* Comfortable touch targets and fluid sizing without horizontal scrolling. */
html { scroll-padding-top: 20px; }
body { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
.greeting { overflow-wrap: anywhere; }
.field input { min-height: 50px; height: auto; padding-block: 13px; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 1000px var(--navy) inset; caret-color: var(--ink); }
.primary-button { max-width: 100%; padding-block: 12px; line-height: 1.4; }
.option-text, .final-actions > * { min-width: 0; }
.countdown-badge { max-width: 100%; flex-wrap: wrap; }
#countdown-value { white-space: nowrap; }
.quiz-footer { gap: 16px; }
@media (max-width: 620px) {
  body { padding: 22px max(20px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right)); }
  .site-header { margin-bottom: 22px; }
  .stepper { gap: 6px; }
  .stage-name { font-size: 12px; letter-spacing: 0; text-transform: none; }
  .quiz-content { margin-top: 24px; }
  .greeting { margin-bottom: 24px; }
  .option { min-height: 52px; font-size: 15px; }
  .contact-actions { margin-top: 28px; }
  .contact-actions .primary-button, .selection-footer .primary-button, .whatsapp-button { width: 100%; min-width: 0; min-height: 50px; }
  .selection-footer.single { align-items: stretch; }
  .selection-footer { gap: 12px; }
  .brand-watermark { right: -140px; }
  .result-screen .quiz-content { margin-top: 32px; }
}
@media (max-height: 500px) and (min-width: 621px) {
  body { padding-top: 20px; }
  .site-header { margin-bottom: 20px; }
  .greeting { margin-bottom: 20px; }
  .result-screen .quiz-content { margin-top: 28px; }
}

/* Termos de Uso e Política de Privacidade */
.legal { width: min(100%, 680px); margin: 0 auto; padding-bottom: 32px; line-height: 1.7; }
.legal h1 { margin: 6px 0 18px; font-size: clamp(26px, 4vw, 32px); line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.legal h2 { margin: 48px 0 8px; padding-top: 8px; font-size: 22px; color: #6dd2ff; scroll-margin-top: 20px; }
.legal h3 { margin: 28px 0 6px; font-size: 16px; }
.legal p, .legal li { color: #d3dfee; font-size: 15px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a:not(.primary-button) { color: #8fd3ff; text-underline-offset: 3px; }
.legal mark { background: #ffd54a26; color: #ffe08a; border-radius: 3px; padding: 0 3px; }
.legal-updated { color: var(--muted) !important; font-size: 13px !important; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 0; border-top: 1px solid #1d3658; border-bottom: 1px solid #1d3658; }
.legal-toc a { font-size: 14px; font-weight: 600; }
.legal-back { margin-top: 36px; }
.legal section { scroll-margin-top: 20px; }
.legal-page .site-header { width: min(100%, 680px); }
