:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-warm: #fff8eb;
  --ink: #0f1b2d;
  --ink-soft: #283449;
  --muted: #617082;
  --line: #dfe6ef;
  --line-strong: #cbd6e4;
  --orange: #ff6a2b;
  --gold: #ffc247;
  --amber: #ff9f1c;
  --teal: #16a394;
  --blue: #3867d6;
  --green: #2f9e6d;
  --shadow: 0 20px 54px rgba(15, 27, 45, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 27, 45, 0.08);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 56%, #f8fafc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(223, 230, 239, 0.78);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  box-shadow: 0 10px 22px rgba(255, 106, 43, 0.24);
}

.brand-mark span {
  width: 13px;
  height: 8px;
  border-left: 3px solid #1d1407;
  border-bottom: 3px solid #1d1407;
  transform: rotate(-45deg) translate(1px, -1px);
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.header-nav a {
  transition: color 160ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #211605;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 13px 28px rgba(255, 106, 43, 0.24);
}

.btn-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 9px 22px rgba(15, 27, 45, 0.06);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(255, 106, 43, 0.42);
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.btn-small {
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.section-shell,
.content-section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 72px 0 46px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #a24617;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  display: inline-block;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  content: "";
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: 62px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-subhead {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.quiz-preview,
.quiz-card,
.result-card,
.final-dashboard {
  border: 1px solid rgba(223, 230, 239, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.quiz-preview {
  overflow: hidden;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 999px;
}

.status-dot.orange {
  background: var(--orange);
}

.status-dot.yellow {
  background: var(--gold);
}

.status-dot.teal {
  background: var(--teal);
}

.preview-progress {
  padding: 18px 20px 4px;
}

.progress-label,
.quiz-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress-label strong,
.quiz-progress-row strong {
  color: var(--ink);
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f8;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transition: width 220ms ease;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px 20px;
}

.preview-card {
  min-height: 136px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(246, 248, 251, 0.65), rgba(255, 255, 255, 0.96));
}

.preview-card.highlight {
  border-color: rgba(255, 106, 43, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 248, 235, 0.96), rgba(255, 255, 255, 0.98));
}

.preview-card.wide {
  grid-column: 1 / -1;
  min-height: 118px;
}

.preview-card span,
.card-index {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.preview-card h2 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.2;
}

.preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.content-section {
  padding: 80px 0;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.compact {
  max-width: 760px;
}

h2 {
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker),
.quiz-copy p,
.no-email-panel p,
.final-cta p {
  color: var(--muted);
  font-size: 17px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.tool-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.info-card h3,
.tool-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.22;
}

.info-card p,
.tool-card p {
  margin: 0;
  color: var(--muted);
}

.quiz-section {
  padding: 84px 20px;
  background:
    linear-gradient(180deg, #f8fafc 0%, #fff8eb 100%);
}

.quiz-layout {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 42px;
  align-items: center;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.quiz-copy {
  max-width: 520px;
}

.quiz-copy h2 {
  font-size: 42px;
}

.quiz-stat-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.quiz-stat-panel div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(223, 230, 239, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 9px 22px rgba(15, 27, 45, 0.06);
}

.quiz-stat-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.quiz-stat-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-card {
  padding: 28px;
}

.question-frame {
  min-height: 276px;
  padding-top: 26px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.question-frame.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.question-label {
  margin-bottom: 10px;
  color: #a24617;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-frame h3 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.24;
}

.answer-options {
  display: grid;
  gap: 12px;
}

.answer-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.answer-option:hover,
.answer-option:focus-visible {
  border-color: rgba(255, 106, 43, 0.42);
  box-shadow: 0 10px 22px rgba(15, 27, 45, 0.07);
  transform: translateY(-1px);
}

.answer-option.is-selected {
  border-color: rgba(255, 106, 43, 0.7);
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.98), #ffffff);
  box-shadow: 0 10px 22px rgba(255, 106, 43, 0.12);
}

.answer-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #1d1407;
  background: #eef3f8;
  font-size: 12px;
  font-weight: 900;
}

.answer-option.is-selected .answer-icon {
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.answer-copy strong {
  display: block;
  font-size: 15px;
}

.answer-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.answer-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.results-section {
  scroll-margin-top: 80px;
}

.result-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
  padding: 26px;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.result-card.is-active {
  border-color: rgba(255, 106, 43, 0.38);
  transform: translateY(-2px);
}

.result-score {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 210px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff8eb, #f6f8fb);
  text-align: center;
}

.result-score span {
  display: block;
  color: var(--ink);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.result-score small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.result-content {
  align-self: center;
}

.result-content h3 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.14;
}

.result-content p {
  max-width: 650px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 17px;
}

.matter-section {
  border-top: 1px solid #edf1f6;
}

.signal-diagram {
  display: grid;
  grid-template-columns: repeat(11, auto);
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.signal-diagram span {
  display: inline-grid;
  place-items: center;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid #e5ebf3;
  border-radius: 8px;
  color: var(--ink-soft);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.signal-diagram b {
  color: var(--orange);
  font-size: 20px;
}

.tools-section {
  background: linear-gradient(180deg, #fff8eb 0%, #ffffff 100%);
}

.tools-inner {
  padding-top: 84px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.tool-card {
  min-height: 208px;
}

.centered-cta {
  margin: 0 auto;
}

.no-email-section {
  padding-top: 70px;
}

.no-email-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.no-email-panel h2 {
  font-size: 36px;
}

.no-email-panel p {
  max-width: 760px;
  margin-bottom: 0;
}

.faq-section {
  max-width: 920px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 27, 45, 0.05);
}

summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--ink);
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 58px;
  padding: 62px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, #0f1b2d 0%, #273449 58%, #41506a 100%);
  box-shadow: var(--shadow);
}

.final-cta h2,
.final-cta .section-kicker,
.final-cta p {
  color: #ffffff;
}

.final-cta > div > p:not(.section-kicker):not(.affiliate-disclosure) {
  max-width: 660px;
  opacity: 0.84;
}

.final-cta .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.affiliate-disclosure {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.final-dashboard {
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
}

.final-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f6;
  color: var(--ink-soft);
}

.final-row:last-child {
  border-bottom: 0;
}

.final-row span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--gold));
}

.final-row strong {
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 26px 0 38px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-nav {
    display: none;
  }

  .hero,
  .quiz-layout,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 38px;
  }

  .review-grid,
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-copy {
    max-width: 760px;
  }

  .signal-diagram {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signal-diagram b {
    display: none;
  }

  .no-email-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 12px 16px;
    gap: 12px;
  }

  .brand {
    font-size: 14px;
  }

  .site-header .btn {
    width: 100%;
    min-height: 40px;
  }

  .section-shell,
  .content-section,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    padding: 44px 0 34px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  h2,
  .quiz-copy h2 {
    font-size: 30px;
  }

  .hero-subhead,
  .section-heading p:not(.section-kicker),
  .quiz-copy p,
  .no-email-panel p,
  .final-cta p {
    font-size: 16px;
  }

  .hero-actions,
  .quiz-controls {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .preview-grid,
  .review-grid,
  .quiz-stat-panel,
  .tool-grid,
  .result-card,
  .signal-diagram {
    grid-template-columns: 1fr;
  }

  .preview-card.wide {
    grid-column: auto;
  }

  .content-section,
  .quiz-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-heading {
    text-align: left;
  }

  .quiz-card {
    padding: 20px;
  }

  .question-frame {
    min-height: 330px;
  }

  .question-frame h3 {
    font-size: 22px;
  }

  .answer-option {
    grid-template-columns: auto 1fr;
  }

  .answer-value {
    grid-column: 2;
  }

  .result-score {
    min-height: 150px;
  }

  .result-content h3 {
    font-size: 24px;
  }

  .no-email-panel,
  .final-cta {
    padding: 26px 18px;
  }

  .final-cta {
    margin-bottom: 34px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 28px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 32px;
  }

  h2,
  .quiz-copy h2 {
    font-size: 28px;
  }

  .preview-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
