:root {
  --cream: #FAF3E8;
  --gold: #FFB44F;
  --maroon: #700000;
  --gold-deep: #D98324;
  --maroon-deep: #4A0000;
  --ink: #2A1B12;
  --ink-soft: #5C4A3D;
  --card-bg: #FFFFFF;
  --border: #EBDFCB;

  --rating-gap: #9E1B1B;
  --rating-awareness: #D98324;
  --rating-developing: #FFB44F;
  --rating-strength: #700000;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Lato', 'Segoe UI', -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 18px 60px;
  min-height: 100vh;
}

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.35s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 32px 26px;
  box-shadow: 0 8px 30px rgba(112, 0, 0, 0.06);
  margin-top: 24px;
}

.presented-by {
  text-align: center;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.wordmark {
  text-align: center;
  margin-bottom: 18px;
}
.wordmark-logo {
  width: 280px;
  max-width: 85%;
  height: auto;
  display: inline-block;
}
.dash-wordmark {
  margin-bottom: 0;
}
.dash-wordmark-logo {
  width: 150px;
}

.headline {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  font-size: 1.55rem;
  text-align: center;
  line-height: 1.3;
  margin: 0 0 6px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--maroon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--maroon);
}

.subhead {
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.kicker {
  text-align: center;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.discover-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.discover-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}
.discover-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--maroon));
}

.next-step-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255,180,79,0.14), rgba(112,0,0,0.06));
}
.next-step-card:last-child { margin-bottom: 0; }
.next-step-title {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  font-weight: 700;
  color: var(--maroon);
  font-size: 1.05rem;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.next-step-text {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  body { background: #fff; }
  .no-print { display: none !important; }
  .screen { display: none !important; }
  .screen.active { display: block !important; }
  .card { box-shadow: none; border: none; }
  .app-shell { max-width: 100%; padding: 0; }
}

.body-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 22px;
  text-align: justify;
}

.meta-line {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-bottom: 26px;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--maroon) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 6px 18px rgba(112, 0, 0, 0.25);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(112, 0, 0, 0.3); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  display: block;
  padding: 15px 22px;
  border: 1.5px solid var(--maroon);
  border-radius: 12px;
  background: transparent;
  color: var(--maroon);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.btn-secondary:disabled { opacity: 0.35; cursor: not-allowed; }

.lead-title {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  color: var(--maroon);
  margin: 0 0 6px;
  font-size: 1.4rem;
}
.lead-sub { color: var(--ink-soft); margin: 0 0 22px; font-size: 0.95rem; }

#lead-form label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 16px 0 6px;
}
#lead-form input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}
#lead-form input:focus {
  outline: none;
  border-color: var(--gold-deep);
}
#lead-form .btn-primary { margin-top: 26px; }

.progress-wrap { margin-bottom: 22px; }
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--cream);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--maroon) 100%);
  width: 0%;
  transition: width 0.3s ease;
}
.progress-label {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.question-text {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 22px;
}

.options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  transition: all 0.15s ease;
}
.option-card:hover { border-color: var(--gold); }
.option-card.selected {
  border-color: var(--maroon);
  background: linear-gradient(90deg, rgba(255,180,79,0.14) 0%, rgba(112,0,0,0.08) 100%);
}
.option-letter {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.option-card.selected .option-letter {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}
.option-text { font-size: 0.96rem; line-height: 1.45; color: var(--ink); padding-top: 3px; }

.quiz-nav { display: flex; gap: 12px; }
.quiz-nav .btn-secondary { flex: 0 0 auto; width: 110px; }
.quiz-nav .btn-primary { flex: 1; }

.dash-card-outer { padding: 20px 16px 26px; }

.dash-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--maroon);
}
.dash-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-title {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  font-weight: 700;
  color: var(--maroon);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: 0.3px;
}
.dash-tagline {
  font-size: 0.82rem;
  color: var(--gold-deep);
  font-weight: 700;
  margin: 2px 0 0;
}
.dash-info-box {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 240px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dash-info-box p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.6;
}
.dash-info-label {
  color: var(--ink);
  font-weight: 700;
}

.dash-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 18px;
  background: #fff;
}
.dash-card-title {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  color: var(--maroon);
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.dash-card-title-center { text-align: center; }

@media (min-width: 700px) {
  .headline { font-size: 1.8rem; }
}

/* ===== Rating scale (shared pattern, reused here for the 1-5 EQ Likert scale) ===== */
.situation-text {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 22px;
}

.rating-hint {
  font-size: 0.74rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.95;
  margin: -12px 0 14px;
}

.rating-scale-wrap { margin-bottom: 26px; }

.rating-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.rating-btn {
  min-height: 56px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.25;
  color: var(--ink-soft);
  padding: 8px 4px;
  transition: all 0.15s ease;
}
.rating-btn:hover { border-color: var(--gold); }
.rating-btn.selected {
  border-color: var(--maroon);
  background: linear-gradient(135deg, var(--gold) 0%, var(--maroon) 100%);
  color: #fff;
}

.scale-reference {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 20px 0 28px;
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.scale-ref-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scale-ref-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
}
.scale-ref-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

@media (max-width: 480px) {
  .scale-reference { grid-template-columns: 1fr; }
}

/* ===== IGNITE EQ: results page (5-domain bar chart + narrative) ===== */
.headline-card {
  background: linear-gradient(135deg, rgba(255,180,79,0.16) 0%, rgba(112,0,0,0.08) 100%);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 20px;
}
.headline-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 8px;
}
.headline-text {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  font-size: 1.0rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  text-align: justify;
}

.domain-bars-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 8px;
  margin-bottom: 20px;
}
.domain-bar-row { margin-bottom: 18px; }
.domain-bar-row:last-child { margin-bottom: 4px; }
.domain-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 10px;
}
.domain-bar-name {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
}
.domain-bar-pct {
  font-weight: 700;
  font-size: 0.96rem;
}
.domain-bar-track {
  height: 10px;
  border-radius: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  overflow: hidden;
}
.domain-bar-fill {
  height: 100%;
  border-radius: 6px;
}

.narrative-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 20px 22px;
  margin-bottom: 18px;
}
.narrative-card-title {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.narrative-card-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  text-align: justify;
}

.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.next-steps-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.next-steps-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.next-steps-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

.disclaimer-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.disclaimer-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.eq-footnote {
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .rating-btn { font-size: 0.68rem; min-height: 52px; }
}

/* ===== WLEIS v2: per-dimension result cards ===== */
.dimension-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 20px;
  margin-bottom: 16px;
}
.dimension-card-title {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}
.dimension-card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 12px;
  text-align: justify;
}
.dimension-suggestion {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--border);
}
.dimension-suggestion strong { color: var(--ink); }

/* ===== Listening assessment additions ===== */
.hidden { display: none !important; }

.rating-buttons-four { grid-template-columns: repeat(4, 1fr); }
.rating-buttons-four .rating-btn { min-height: 64px; }
.rating-num { display: block; font-size: 1.05rem; }
.rating-lbl { display: block; font-size: 0.72rem; font-weight: 600; margin-top: 3px; }

.score-card {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 20px 38px;
}
.score-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep, #D98324);
  margin: 0 0 8px;
}
.score-card-value {
  font-family: 'Palatino Linotype', 'Palatino', Georgia, serif;
  font-weight: 700;
  color: var(--maroon);
  margin: 0;
  line-height: 1;
}
#score-value { font-size: 4.4rem; }
.score-card-suffix { font-size: 1.6rem; color: var(--ink-soft); font-weight: 400; }

.lead-note { color: var(--maroon); font-weight: 700; margin: 0 0 22px; font-size: 1rem; text-align: center; }
.meta-line strong { font-weight: 700; }
.results-card .story-cta-wrap {
  margin: 24px auto 0; text-align: center;
  background: linear-gradient(135deg, rgba(255,180,79,0.22), rgba(112,0,0,0.12));
  border: 1px solid var(--gold); border-radius: 16px; padding: 24px 20px;
}
.results-card .story-cta-text { font-weight: 700; color: var(--ink); margin: 0 0 16px; line-height: 1.5; }
.results-card .btn-cta-book {
  display: inline-block; padding: 14px 32px; border-radius: 12px; color: #fff; font-weight: 700;
  text-decoration: none; background: linear-gradient(90deg, var(--gold) 0%, var(--maroon) 100%);
}
