:root {
  --navy-deep: #0B1D44;
  --navy-card: #12285e;
  --navy-card-2: #16306e;
  --blue-primary: #2563FF;
  --blue-light: #4AAFFF;
  --white: #F5F8FF;
  --gray-text: #C7D2E8;
  --red-alert: #FF5468;
  --border-soft: rgba(255, 255, 255, 0.10);
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, #081430 100%);
  color: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.preview-ribbon {
  background: #FFB020;
  color: #241800;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.quiz-header {
  display: flex;
  justify-content: center;
  padding: 28px 20px 8px;
}

.logo {
  height: 56px;
  width: auto;
}

.quiz-main {
  flex: 1;
  padding: 8px 20px 60px;
}

.card {
  background: var(--navy-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.fade-in {
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-light);
  margin: 0 0 10px;
}

h1 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 14px;
  font-weight: 800;
}

h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 18px;
  font-weight: 700;
}

.question-text {
  font-size: 19px;
}

h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}

.body-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-text);
  margin: 0 0 14px;
}

.micro-text {
  font-size: 12.5px;
  color: var(--gray-text);
  opacity: 0.8;
  line-height: 1.5;
}

/* ── Progress bar ─────────────────────────────────────────────── */
.progress-wrap { margin-bottom: 18px; }
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
  border-radius: 3px;
  transition: width 0.3s ease;
}
.progress-label {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 6px;
}

/* ── Cargo screen ─────────────────────────────────────────────── */
.cargo-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.cargo-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.cargo-btn-title { font-size: 17px; font-weight: 700; }
.cargo-btn-sub { font-size: 13px; color: var(--gray-text); }

/* ── Options (perguntas) ──────────────────────────────────────── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--navy-card-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.option-btn:hover {
  border-color: var(--blue-primary);
  background: #1a3578;
}
.option-btn:active { transform: scale(0.99); }
.option-btn.selected {
  border-color: var(--blue-light);
  background: linear-gradient(135deg, #1a3578, #14295f);
}
.option-letter {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--blue-light);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-btn {
  background: none;
  border: none;
  color: var(--gray-text);
  font-size: 13px;
  margin-top: 16px;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { color: var(--white); }

/* ── Transition / spinner ─────────────────────────────────────── */
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--blue-light);
  animation: spin 0.9s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Teaser / score ───────────────────────────────────────────── */
.teaser-score {
  font-size: 56px;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.teaser-label {
  font-size: 14px;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 4px 0 20px;
}
.tension { font-size: 16px; color: var(--white); }

.cta-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  color: #071022;
  font-weight: 800;
  font-size: 15.5px;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37, 99, 255, 0.35);
  margin-top: 6px;
}
.cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cta-btn-wa { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 10px 30px rgba(22,163,74,0.35); }
.cta-btn-disabled { background: rgba(255,255,255,0.08); color: var(--gray-text); box-shadow: none; cursor: default; }

/* ── Form ─────────────────────────────────────────────────────── */
.lead-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.field-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 12px;
}
.input {
  background: #0d1f4a;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--blue-primary); }
.confirm-box {
  background: rgba(74,175,255,0.12);
  border: 1px solid rgba(74,175,255,0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--blue-light);
  font-weight: 600;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 10px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
}
.consent-row input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-primary);
}
.consent-label {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--gray-text);
}

.error-text { color: var(--red-alert); font-size: 13px; margin: 4px 0 0; }

.privacy-link {
  color: var(--blue-light);
  text-decoration: underline;
}
.privacy-link:hover { color: var(--white); }
.footer-privacy {
  text-align: center;
  margin-top: 20px;
}

/* ── Result screen ────────────────────────────────────────────── */
.alerts-wrap { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.alert-box {
  background: rgba(255, 84, 104, 0.12);
  border: 1px solid rgba(255, 84, 104, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #ffd7dc;
}

.dims-wrap { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 10px; }
.dim-card {
  background: var(--navy-card-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.dim-card-critical {
  border-color: var(--red-alert);
  background: linear-gradient(135deg, rgba(255,84,104,0.10), var(--navy-card-2));
}
.dim-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.dim-score-wrap { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.dim-score { font-weight: 800; font-size: 16px; color: var(--blue-light); }
.badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.10);
  color: var(--gray-text);
  white-space: nowrap;
}

.footer-compliance {
  font-size: 12px;
  color: var(--gray-text);
  opacity: 0.75;
  font-style: italic;
  margin-top: 16px;
  line-height: 1.5;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 28px 0;
}

.closing-list {
  padding-left: 18px;
  margin: 0 0 14px;
  color: var(--gray-text);
  font-size: 14.5px;
  line-height: 1.7;
}
.closing-list li { margin-bottom: 8px; }

.cta-block {
  margin-top: 24px;
  padding: 22px 20px;
  background: linear-gradient(135deg, rgba(37,99,255,0.14), rgba(74,175,255,0.06));
  border: 1px solid rgba(74,175,255,0.3);
  border-radius: var(--radius-lg);
  text-align: center;
}
.compliance-note { margin-top: 14px; text-align: left; }

/* ── Rodapé do controlador (identificação obrigatória) ──────────── */
.site-footer {
  text-align: center;
  padding: 16px 20px 24px;
  margin-top: auto;
}
.site-footer-text {
  opacity: 0.7;
}

/* ── Mobile tuning ────────────────────────────────────────────── */
@media (max-width: 420px) {
  .card { padding: 22px 18px 26px; border-radius: 14px; }
  .teaser-score { font-size: 46px; }
  h1 { font-size: 21px; }
  h2 { font-size: 18px; }
}
