:root {
  --navy: #2d2f3d;
  --navy-light: #3d3f52;
  --gray-txt: #5a5c69;
  --border: #e7e7ea;
  --bg-soft: #f5f5f7;
  --green: #1da34e;
  --yellow: #e8a22a;
  --red: #d9403a;
  --radius-pill: 999px;
  --radius-card: 16px;
  --shadow: 0 10px 30px rgba(45, 47, 61, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--navy);
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .heading {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

a { color: inherit; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.site-header img { height: 34px; display: block; }
.site-header .back-link {
  font-size: 14px;
  color: var(--gray-txt);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-header .back-link:hover { color: var(--navy); }

/* Progress bar */
.progress-wrap {
  height: 6px;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 8px 0 36px;
}
.progress-bar {
  height: 100%;
  background: var(--navy);
  border-radius: var(--radius-pill);
  transition: width .35s ease;
}
.progress-label {
  font-size: 13px;
  color: var(--gray-txt);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

/* Cards / steps */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .card { padding: 24px; border-radius: 12px; }
}

.step { display: none; }
.step.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.eyebrow {
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--gray-txt);
  margin: 0 0 10px;
}
.eyebrow.accent { color: var(--navy); }

.hero-title {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.hero-sub {
  font-size: 16px;
  color: var(--gray-txt);
  line-height: 1.6;
  margin: 0 0 28px;
}
.meta-row {
  display: flex;
  gap: 28px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}
.meta-item { font-size: 14px; color: var(--gray-txt); display: flex; align-items: center; gap: 8px; }
.meta-item strong { color: var(--navy); }

.question-topic {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-txt);
  margin: 0 0 8px;
}
.question-text {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 28px;
}

.answer-list { display: flex; flex-direction: column; gap: 12px; }
.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.answer-option:hover { border-color: var(--navy-light); background: #fafafb; }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.answer-option .letter {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--gray-txt);
}
.answer-option .text { font-size: 15.5px; line-height: 1.5; padding-top: 2px; }
.answer-option.selected {
  border-color: var(--navy);
  background: #f1f1f4;
}
.answer-option.selected .letter {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .1s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--gray-txt); }
.btn-ghost:hover { color: var(--navy); }
.btn-block { width: 100%; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 8px; }
.form-grid.single { grid-template-columns: 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
}
.field input:focus { outline: none; border-color: var(--navy); }
.field.full { grid-column: 1 / -1; }

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 4px;
  font-size: 13.5px;
  color: var(--gray-txt);
  line-height: 1.5;
}
.consent-row input { margin-top: 3px; }
.consent-row a { text-decoration: underline; }

.error-msg {
  color: var(--red);
  font-size: 13.5px;
  margin-top: 10px;
  display: none;
}
.error-msg.show { display: block; }

.benefit-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.benefit-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--gray-txt); }
.benefit-list .check {
  flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; margin-top: 1px;
}

.loading-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,.92);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  z-index: 50;
}
.loading-overlay.show { display: flex; }
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-shell { min-height: 100vh; padding-bottom: 60px; }

.footer-note {
  text-align: center;
  color: var(--gray-txt);
  font-size: 13px;
  margin-top: 40px;
}

/* Result page */
.result-hero { text-align: center; padding: 20px 0 8px; }
.download-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: #eafaf0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 4px 0 0;
}
.gauge-wrap { display: flex; justify-content: center; margin: 10px 0 6px; }
.gauge-score { font-size: 48px; font-weight: 700; font-family: 'Poppins', sans-serif; margin: 6px 0 2px; }
.gauge-band { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.gauge-legend { display: flex; justify-content: center; gap: 22px; font-size: 12.5px; color: var(--gray-txt); margin-top: 6px; }
.gauge-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.band-callout {
  border-radius: 14px;
  padding: 22px 24px;
  margin: 26px 0;
  background: var(--bg-soft);
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
  border-left: 5px solid var(--navy);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.result-list-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
}
.result-list-card h3 { font-size: 15px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.result-list-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.result-list-card li { font-size: 13.5px; line-height: 1.55; color: var(--gray-txt); padding-left: 16px; position: relative; }
.result-list-card li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
}
.result-list-card.strengths li::before { background: var(--green); }
.result-list-card.risks li::before { background: var(--red); }
.result-list-card li b { color: var(--navy); }

.cta-card {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  margin-top: 10px;
}
.cta-card h2 { color: #fff; font-size: 24px; margin: 0 0 10px; }
.cta-card p { color: rgba(255,255,255,.75); font-size: 15px; margin: 0 0 24px; line-height: 1.6; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eee; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; }
