:root {
  --primary: #1a2b3c;
  --accent: #c9a24b;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #2e7d32;
  --danger: #b3261e;
  --radius: 10px;
  --max-width: 640px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--muted);
}

.screen {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
  flex: 1;
}

/* Landing */
.brand-logo {
  font-weight: 700;
  color: var(--primary);
  padding: 20px 20px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.headline {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin: 16px 0 12px;
}

.subhead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 20px;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.benefit-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.credibility-block {
  background: #f7f5f0;
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: #333;
}

.testimonial {
  font-style: italic;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.testimonial cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

.time-expectation {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 20px 0 12px;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 16px 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover { background: #0f1c28; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover { background: #f0f0f0; }

/* Progress bar */
.progress-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 0;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease;
}

/* Question screen */
.question-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}

.question-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.reassurance-line {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
}

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

.option-btn {
  text-align: left;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option-btn:hover { border-color: var(--accent); }

.option-btn.selected {
  border-color: var(--primary);
  background: #f0f4f8;
  font-weight: 600;
}

.open-text {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  resize: vertical;
}

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

.nav-row .btn { width: auto; }
.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 8px;
}

/* Lead form */
.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-field input[type="text"],
.form-field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.consent-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 16px 0;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.consent-check input { margin-top: 3px; }

/* honeypot - hidden from humans, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.error-msg {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: -8px;
  margin-bottom: 12px;
}

.submit-status {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* Results */
.results-header {
  text-align: center;
  margin-bottom: 24px;
}

.tier-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.total-score {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 4px;
}

.tier-copy {
  background: #f7f5f0;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 28px;
  font-size: 1rem;
}

.category-scores {
  margin-bottom: 28px;
}

.category-row {
  margin-bottom: 14px;
}

.category-row-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-bar-track {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 5px;
}

.seesaw {
  margin-bottom: 28px;
}

.seesaw-item {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.seesaw-item.credit {
  background: #eaf6ec;
  border-left: 4px solid var(--success);
}

.seesaw-item.lever {
  background: #fdeeec;
  border-left: 4px solid var(--danger);
}

.seesaw-item strong { display: block; margin-bottom: 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

.cta-block {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.cta-block p { margin: 0 0 14px; }

.cta-block .btn {
  background: var(--accent);
  color: var(--primary);
}

.cta-block .btn:hover { background: #d8b562; }

.scope-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 20px 0;
  font-style: italic;
}

.results-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.print-only { display: none; }

@media (min-width: 480px) {
  .headline { font-size: 2.4rem; }
  .results-actions { flex-direction: row; }
  .nav-row .btn, .results-actions .btn { width: auto; flex: 1; }
}
