/* Me conta que eu monto: quiz de telas. Mobile first (390px), escala em 640px+.
   Cores: preto e cinzas da BuildIA; verde apenas no WhatsApp. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/quiz/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/quiz/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/quiz/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/quiz/fonts/poppins-700.woff2") format("woff2"); }

:root {
  --navy: #111111;
  --blue: #111111;
  --blue-ink: #111111;    /* Texto de destaque. */
  --blue-soft: #EEEEEE;
  --green: #25D366;       /* WhatsApp. */
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --line: #DDDDDD;
  --muted: #666666;
  --off-bg: #E6E6E6;
  --off-text: #777777;
  --error: #B42318;
  color-scheme: light;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.shell { min-height: 100%; }
.quiz { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overflow-x: clip; background: var(--bg); }

/* cabeçalho */
.quiz-header { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--navy); color: #fff; }
.avatar { display: block; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid #fff; }
.brand { min-width: 0; }
.brand strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.brand span { display: block; color: #CCCCCC; font-size: 13px; line-height: 1.3; }
.test-badge { position: fixed; top: 8px; right: 8px; z-index: 5; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 500; }
.test-badge[hidden] { display: none; }

/* progresso e voltar */
.progress-row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 4px 8px 0 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; }
.back span { font-size: 24px; line-height: 1; margin-top: -2px; }
.back:hover { color: var(--navy); }
.count { padding-right: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.progress { height: 4px; margin: 0 16px; border-radius: 4px; background: #E5E5E5; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--blue); transition: width 300ms ease; }

/* tela */
.screen { flex: 1 1 auto; padding: 24px 16px 20px; padding-top: max(24px, env(safe-area-inset-top)); }
.lead, .title, .text { text-align: center; }
.screen.is-intro { display: flex; flex-direction: column; justify-content: center; }
.screen.enter { animation: screen-in 220ms ease-out both; }
@keyframes screen-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.screen.back-enter { animation: screen-back 220ms ease-out both; }
@keyframes screen-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

.lead { margin: 0 0 8px; color: var(--blue-ink); font-size: 15px; font-weight: 500; line-height: 1.5; }
.title { margin: 0 0 20px; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.title:focus { outline: none; }
.text { margin: 0 0 14px; font-size: 17px; line-height: 1.55; }

/* opções */
.cards { display: grid; gap: 10px; }
.card { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px 12px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--navy); font-size: 16px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background-color 150ms ease, border-color 150ms ease; }
.card:hover { border-color: #999999; }
.card .mark { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; }
.card .mark svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.card[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.card[aria-pressed="true"] .mark { border-color: var(--blue); background: var(--blue); }
.card[aria-pressed="true"] .mark svg { opacity: 1; }

/* campo de texto */
.field { display: grid; gap: 12px; margin-top: 16px; }
.field-label { margin: 0; color: var(--blue-ink); font-size: 15px; font-weight: 500; }
.input { width: 100%; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-size: 17px; }
.input::placeholder { color: #888888; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,0,0,.22); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 0 2px; color: var(--error); font-size: 14px; font-weight: 500; }

/* botões */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 12px 18px; border: 0; border-radius: 14px; font-size: 19px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active { transform: scale(.985); }
/* Branco sobre preto para as ações principais. */
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.28); }
.btn-primary:hover { background: #292929; }
.btn-primary:disabled { background: var(--off-bg); color: var(--off-text); box-shadow: none; cursor: default; transform: none; }
.btn-wa { background: var(--green); color: var(--navy); box-shadow: 0 6px 16px rgba(37,211,102,.3); }
.btn-wa:hover { background: #20C35D; }
.btn-wa svg { flex: 0 0 auto; width: 26px; height: 26px; }
.cta-note { margin: 10px 4px 0; color: var(--muted); font-size: 14px; text-align: center; }
.actions { margin-top: 24px; }

/* rodapé e privacidade */
.quiz-footer { flex: 0 0 auto; padding: 10px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.quiz-footer { text-align: center; }
.privacy-line { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.footer-link { text-align: center; }
.link { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; color: var(--blue-ink); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.footer-link .link { color: var(--muted); font-weight: 500; }

.privacy { width: min(92vw, 420px); max-height: 86dvh; padding: 22px 20px 18px; border: 0; border-radius: 18px; color: var(--navy); background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.privacy::backdrop { background: rgba(0,0,0,.55); }
.privacy h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
.privacy p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; }
.privacy b { font-weight: 600; }
.privacy .btn { margin-top: 8px; font-size: 19px; }

.noscript { padding: 24px; text-align: center; }

@media (min-width: 640px) {
  body { background: radial-gradient(circle at 20% 15%, rgba(0,0,0,.14), transparent 32rem), var(--bg); }
  .shell { display: grid; place-items: center; min-height: 100vh; padding: 28px; }
  .quiz { width: 100%; max-width: 480px; min-height: min(780px, calc(100vh - 56px)); overflow: hidden; border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 24px 70px rgba(0,0,0,.14); }
  .screen { padding: 28px 24px 20px; }
  .progress { margin: 0 24px; }
  .quiz-footer { padding: 10px 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* bloco do valor (11/11/2026) */
.price { white-space: pre-line; margin: 0 0 18px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--navy); font-size: 16px; line-height: 1.55; text-align: center; text-wrap: balance; }
.lead, .title, .text { text-wrap: balance; }
