:root {
  --navy: #0b1930;
  --navy-2: #142744;
  --gold: #d2ad61;
  --cream: #f7f4ee;
  --white: #ffffff;
  --ink: #172033;
  --muted: #6f7786;
  --line: #dfe4eb;
  --soft: #eef2f6;
  --shadow: 0 18px 50px rgba(11, 25, 48, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(210, 173, 97, 0.11), transparent 28rem),
    var(--cream);
}

button,
select {
  font: inherit;
}

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 36px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 10px;
  max-width: 720px;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.brand-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.card {
  padding: 28px;
  border: 1px solid rgba(11, 25, 48, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.intro-row,
.score-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.intro-row {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.intro-row h2,
.results h2 {
  margin-bottom: 8px;
  color: var(--navy);
}

.intro-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.secondary {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

.question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.question:last-child {
  border-bottom: 0;
}

.question-title {
  margin: 0 0 6px;
  color: var(--navy);
  font-weight: 750;
}

.question-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cad2dc;
  border-radius: 12px;
  color: var(--navy);
  background: var(--white);
}

.results {
  margin-top: 24px;
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

#score {
  color: var(--navy);
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.score-max {
  color: var(--muted);
  font-size: 1.1rem;
}

.grade {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 800;
}

.meter {
  overflow: hidden;
  height: 10px;
  margin: 24px 0;
  border-radius: 999px;
  background: #e7ebf0;
}

.meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transition: width 220ms ease;
}

.summary {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.insights > div {
  padding: 18px;
  border-radius: 16px;
  background: var(--soft);
}

.insights h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1rem;
}

.insights ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

footer {
  padding: 22px 8px 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1040px);
    padding-top: 28px;
  }

  .hero,
  .intro-row,
  .score-wrap {
    flex-direction: column;
  }

  .card {
    padding: 20px;
    border-radius: 18px;
  }

  .question {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .insights {
    grid-template-columns: 1fr;
  }

  .grade {
    align-self: flex-start;
  }
}
