/* ── VARIABLES ── */
:root {
  --white: #ffffff;
  --off-white: #faf7f2;
  --cream: #eee8df;
  --tan: #cdbdac;
  --blue-light: #b3d4df;
  --blue-mid: #abc3ca;
  --taupe: #bbaf9e;
  --charcoal: #4c4c4c;
  --black: #161111;
  --blue-accent: #abc3ca;
  --blue-hover: #93b5c0;
}

/* ── RESET ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── PROGRESS BAR ── */
.progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cream);
  z-index: 100;
}

.progress-bar-fill {
  height: 100%;
  background: var(--blue-mid);
  transition: width 0.4s ease;
  width: 0%;
}

/* ── SCREEN LAYOUT ── */
.screen {
  display: none;
  min-height: 100vh;
  padding: 60px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
  animation: fadeUp 0.4s ease forwards;
}

.screen.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--blue-light);
  margin: 28px 0;
}

/* ── INTRO ── */
.intro-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 20px;
}

.intro-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 12px;
}

.intro-title em {
  font-style: italic;
  color: var(--blue-mid);
}

.intro-subtitle {
  font-size: 1rem;
  color: var(--charcoal);
  max-width: 560px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.intro-meta {
  font-size: 0.8rem;
  color: var(--taupe);
  margin-bottom: 40px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--blue-mid);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  border-radius: 2px;
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 24px;
  border: 1.5px solid var(--tan);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  border-radius: 2px;
}

.btn-secondary:hover {
  border-color: var(--blue-mid);
  color: var(--blue-mid);
}

.back-btn {
  background: none;
  border: none;
  color: var(--taupe);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
  transition: color 0.2s;
}

.back-btn:hover {
  color: var(--charcoal);
}

/* ── QUESTION SCREEN ── */
.q-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 16px;
}

.q-text {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 36px;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1.5px solid var(--cream);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  border-radius: 2px;
  text-align: left;
}

.option:hover {
  border-color: var(--blue-light);
  background: #f4f9fb;
  transform: translateX(3px);
}

.option.selected {
  border-color: var(--blue-mid);
  background: #edf5f8;
}

.option-letter {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.option.selected .option-letter {
  background: var(--blue-mid);
  color: var(--white);
}

.option-text {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.55;
  padding-top: 3px;
  font-family:'DM Sans', sans-serif; 
}

.nav-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── EMAIL GATE ── */
.email-gate-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.email-gate-sub {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 32px;
  line-height: 1.65;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
}

.form-group input {
  padding: 14px 16px;
  border: 1.5px solid var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--blue-mid);
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--taupe);
  margin-top: 8px;
}

/* ── RESULTS ── */
.result-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 16px;
}

.result-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.result-label {
  display: inline-block;
  background: var(--blue-light);
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.result-body {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 28px;
}

.result-box {
  border-left: 3px solid var(--blue-mid);
  padding: 20px 24px;
  background: var(--off-white);
  margin-bottom: 20px;
  border-radius: 0 2px 2px 0;
}

.result-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 8px;
}

.result-box p {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.65;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 32px;
}

.score-item {
  padding: 14px 16px;
  background: var(--off-white);
  border-radius: 2px;
}

.score-item-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 4px;
}

.score-item-val {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  color: var(--black);
}

.score-item.highlight {
  background: var(--blue-light);
}

.score-item.highlight .score-item-label {
  color: var(--charcoal);
}

/* ── CTA BLOCK ── */
.cta-block {
  background: var(--black);
  color: var(--white);
  padding: 36px 32px;
  border-radius: 2px;
  margin-top: 32px;
  margin-bottom: 20px;
}

.cta-block h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.cta-block p {
  font-size: 0.88rem;
  color: #cccccc;
  margin-bottom: 24px;
  line-height: 1.65;
}

.btn-cta {
  display: inline-block;
  background: var(--blue-mid);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 30px;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-cta:hover {
  background: var(--blue-hover);
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── PRINT / PDF ── */
@media print {
  .progress-bar-wrap,
  .nav-row,
  .result-actions,
  .cta-block,
  .back-btn {
    display: none !important;
  }

  .screen {
    display: flex !important;
    animation: none;
  }

  #screen-intro,
  #screen-q1,
  #screen-q2,
  #screen-q3,
  #screen-q4,
  #screen-q5,
  #screen-q6,
  #screen-email {
    display: none !important;
  }

  body {
    background: white;
  }

  .result-box {
    border-left-color: #abc3ca;
    background: #f4f9fb;
  }
}
