/* Quiz ConversionAI — estilos fiéis ao design (Stitch standalone).
   Fonte: Plus Jakarta Sans auto-hospedada (mesmos arquivos do Google Fonts). */

/* ---------- Fontes ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-400-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-500-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-600-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-700-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-800-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f5f6fa;
}

a { color: #2563eb; text-decoration: none; }
a:hover { color: #15347e; text-decoration: underline; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

.tnum { font-variant-numeric: tabular-nums; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f5f6fa;
  color: #0f1222;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.header {
  background: #fff;
  border-bottom: 1px solid #eceef3;
  padding: 14px 20px;
  display: flex;
  justify-content: center;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  display: grid;
  place-items: center;
  height: 36px;
  width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7cb3ff, #4f8cff);
  box-shadow: 0 4px 12px rgba(15, 42, 102, 0.22);
}

.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Main ---------- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 56px;
}

.container { width: 100%; max-width: 560px; }

.screen { animation: fadeUp 0.4s ease both; }
.screen-quiz, .screen-loading { animation-duration: 0.35s; }
.screen[hidden] { display: none; }

/* ---------- Tela: introdução ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 52%, #15347e 100%);
  color: #fff;
  padding: 36px 28px 32px;
  box-shadow: 0 12px 32px rgba(21, 52, 126, 0.25);
}

.hero-glow {
  position: absolute;
  right: -70px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-title {
  margin: 0;
  font-size: clamp(25px, 7vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.btn-start {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  background: #fff;
  color: #15347e;
  padding: 16px 26px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(8, 20, 60, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(8, 20, 60, 0.4);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
  font-size: 13px;
  color: #6b7180;
  font-weight: 600;
}

.trust-item { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Tela: quiz ---------- */
.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.quiz-step {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9aa0ad;
  white-space: nowrap;
}

.quiz-progress-label { font-size: 12px; font-weight: 800; color: #2563eb; }

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #eceef3;
  overflow: hidden;
  margin-bottom: 26px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f8cff, #2563eb);
  transition: width 0.35s ease;
}

.quiz-title {
  margin: 0 0 20px;
  font-size: clamp(20px, 6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 2px solid #eceef3;
  border-radius: 14px;
  background: #fff;
  color: #0f1222;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 18, 34, 0.05);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quiz-option:hover {
  border-color: #2563eb;
  background: #f0f5ff;
}

.quiz-option-icon {
  display: grid;
  place-items: center;
  height: 38px;
  width: 38px;
  flex: none;
  border-radius: 10px;
  background: #f0f5ff;
  color: #2563eb;
}

.btn-back {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #6b7180;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-back:hover { color: #2563eb; }

/* ---------- Tela: analisando ---------- */
.screen-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 0;
}

.screen-loading[hidden] { display: none; }

.spinner {
  height: 56px;
  width: 56px;
  border-radius: 999px;
  border: 5px solid #eceef3;
  border-top-color: #2563eb;
  animation: spin 0.9s linear infinite;
}

.loading-title {
  margin: 26px 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.loading-step { margin: 0; font-size: 15px; color: #6b7180; }

/* ---------- Tela: resultado / captura ---------- */
.result-check-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: -30px;
  position: relative;
  z-index: 2;
}

.result-check {
  display: grid;
  place-items: center;
  height: 60px;
  width: 60px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
  border: 4px solid #f5f6fa;
}

.result-card {
  border-radius: 20px;
  border: 1px solid #eceef3;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 18, 34, 0.1);
  overflow: hidden;
}

.result-card-head {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 52%, #15347e 100%);
  color: #fff;
  text-align: center;
  padding: 44px 28px 24px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-title {
  margin: 14px 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.result-text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.result-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #0f1222;
}

.field input {
  border: 2px solid #eceef3;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #0f1222;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus { border-color: #2563eb; }

.field input::placeholder { color: #9aa0ad; font-weight: 500; }

.form-error {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #ef4444;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  background: #16a34a;
  color: #fff;
  padding: 16px 26px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
  transition: background 0.15s ease;
}

.btn-submit:hover { background: #128a3f; }

.form-note {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #9aa0ad;
}

/* ---------- Tela: enviado ---------- */
.screen-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 0;
}

.screen-sent[hidden] { display: none; }

.sent-mark {
  display: grid;
  place-items: center;
  height: 72px;
  width: 72px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.sent-title {
  margin: 24px 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.sent-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #6b7180;
  max-width: 400px;
}

.sent-text strong { color: #0f1222; }

.btn-restart {
  margin-top: 24px;
  border: none;
  background: transparent;
  color: #9aa0ad;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.btn-restart:hover { color: #2563eb; }

/* ---------- Footer ---------- */
.footer {
  background: #0f1222;
  color: #9aa0ad;
  padding: 36px 24px 44px;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.footer-brand { display: flex; align-items: center; gap: 9px; color: #fff; }

.footer-mark {
  display: grid;
  place-items: center;
  height: 30px;
  width: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7cb3ff, #4f8cff);
}

.footer-name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }

.footer-links { display: flex; gap: 22px; font-size: 13px; font-weight: 700; }

.footer-link { color: #c9cdd6; }
.footer-link:hover { color: #c9cdd6; text-decoration: underline; }

.footer-legal {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: #6b7180;
}

.footer-contact { margin: 0; font-size: 11.5px; color: #6b7180; }
