:root {
  --orange: #F96934;
  --blue: #527298;
  --blackish: #141415;
  --pale: #EDF0F2;
  --white: #FFFFFF;
  --font-headline: "Newsreader", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pale);
  color: var(--blackish);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.wrap-narrow { max-width: 560px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 1rem;
}

.subhook {
  font-size: 1.15rem;
  color: #3a3a3c;
}

.screen { display: none; min-height: 100vh; background: var(--white); }
.screen.active { display: block; }

/* ---------- Landing ---------- */
.benefit-bullets {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}
.benefit-bullets li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}
.benefit-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.credibility {
  background: var(--pale);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: #3a3a3c;
  margin: 1.5rem 0;
}

.time-expectation {
  font-size: 0.9rem;
  color: #6b6b6d;
  margin-bottom: 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1.75rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { opacity: 0.9; }
.btn-large { width: 100%; font-size: 1.05rem; padding: 1rem 1.75rem; }
.btn-ghost { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Quiz ---------- */
.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--pale);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-fill {
  height: 100%;
  background: var(--orange);
  width: 0%;
  transition: width 0.3s ease;
}
.progress-label {
  font-size: 0.8rem;
  color: #6b6b6d;
  margin-bottom: 2rem;
}

.question-text {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.reassurance-line {
  font-size: 0.85rem;
  color: #6b6b6d;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.options { display: flex; flex-direction: column; gap: 0.75rem; }
.option-btn {
  text-align: left;
  background: var(--pale);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-btn:hover { border-color: var(--blue); }
.option-btn.selected { border-color: var(--orange); background: #FDECE3; }

.quiz-nav { margin-top: 2rem; }

/* ---------- Lead form ---------- */
.field {
  display: block;
  margin-bottom: 1.25rem;
}
.field span { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.9rem; }
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--pale);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}
.field input[type="text"]:focus,
.field input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.field-checkbox input { margin-top: 0.25rem; flex-shrink: 0; }
.field-checkbox span { font-weight: 400; font-size: 0.9rem; margin: 0; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.small-print {
  font-size: 0.78rem;
  color: #6b6b6d;
  margin-bottom: 1.5rem;
}
.small-print a { color: var(--blue); }

.form-error {
  color: #b3261e;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* ---------- Results ---------- */
.scores-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.score-card {
  background: var(--pale);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
}
.score-card .label { font-size: 0.75rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.04em; }
.score-card .value { font-family: var(--font-headline); font-size: 1.75rem; margin-top: 0.25rem; }

.results-tier-blurb {
  font-size: 1.1rem;
  color: #3a3a3c;
  margin-bottom: 2rem;
}

.results-body h3 {
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.results-body .weakest-heading {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  margin: 1.5rem 0 1rem;
}
.results-body .one-liner {
  background: var(--pale);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.results-body .weakest-para {
  font-size: 1.02rem;
  margin-bottom: 1.1rem;
}

.scope-note {
  font-size: 0.8rem;
  color: #8a8a8c;
  font-style: italic;
  margin: 1.5rem 0;
}

.results-cta { margin: 1.5rem 0 1rem; }

#btn-save-pdf { margin-top: 0.5rem; }

@media (min-width: 640px) {
  .wrap { padding: 4.5rem 2rem 5rem; }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  html, body { background: #1c1c1e; color: #f2f2f3; }
  .screen { background: #232326; }
  .credibility, .option-btn, .score-card, .results-body .one-liner { background: #2c2c30; }
  .field input[type="text"], .field input[type="email"] { background: #2c2c30; border-color: #3a3a3e; color: #f2f2f3; }
  .subhook, .time-expectation, .small-print, .results-tier-blurb { color: #c7c7ca; }
}

/* ---------- Print (PDF export) ---------- */
@media print {
  body { background: var(--white); }
  .no-print, header, .btn { display: none !important; }
  .screen { display: none; min-height: 0; }
  .screen-results.active { display: block !important; }
  .wrap { max-width: 100%; padding: 0; }
  .scores-row { break-inside: avoid; }
  .results-body { break-inside: avoid-page; }
}
