/* copied from the inline styles in /index.html. the homepage keeps its own copy for now. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --oatmeal:    #F0EBE1;
  --deep-blue:  #2A4A6B;
  --dusty-blue: #7BAFD4;
  --near-black: #2A1C1E;
  --warm-grey:  #5C5450;
  --ash:        #A09890;
  --card:       #FBF8F2;
  --line:       rgba(42,28,30,0.10);
}
html { scroll-behavior: smooth; }
body {
  background: var(--oatmeal);
  font-family: 'DM Sans', sans-serif;
  color: var(--near-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
a { color: inherit; }
em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--dusty-blue);
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(240,235,225,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-size: 24px; font-weight: 500;
  letter-spacing: 0.18em; color: var(--near-black);
  text-decoration: none;
}
.nav-mid { display: flex; gap: 30px; }
.nav-mid a {
  font-size: 16px; color: var(--warm-grey);
  text-decoration: none; letter-spacing: 0.02em;
  transition: color 180ms ease;
}
.nav-mid a:hover { color: var(--near-black); }
.nav-cta {
  background: var(--deep-blue); color: var(--oatmeal);
  text-decoration: none; font-size: 15px; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 11px 26px; border-radius: 100px;
  transition: background 180ms ease;
}
.nav-cta:hover { background: #22405d; }

/* LAYOUT */
.section { padding: 96px 48px; scroll-margin-top: 76px; }
.wrap { max-width: 720px; margin: 0 auto; }
.section:nth-child(even) { background: rgba(255,255,255,0.28); }

h1 {
  font-size: 84px; font-weight: 500; line-height: 0.98;
  letter-spacing: -0.03em; color: var(--near-black);
  margin-bottom: 26px;
}
h2 {
  font-size: 46px; font-weight: 500; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--near-black);
  margin-bottom: 22px;
}
.body {
  font-size: 21px; color: var(--warm-grey);
  line-height: 1.7; max-width: 640px;
}
.body + .body { margin-top: 18px; }

/* CARDS */
.kicker {
  font-size: 15px; letter-spacing: 0.18em;
  color: var(--dusty-blue); font-weight: 500;
  margin-bottom: 36px;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 24px;
}
.card-num {
  font-size: 13px; letter-spacing: 0.14em;
  color: var(--dusty-blue); font-weight: 500;
}
.card h3 {
  font-size: 22px; font-weight: 500; color: var(--near-black);
  margin: 12px 0 10px; letter-spacing: -0.01em;
}
.card p { font-size: 17px; color: var(--warm-grey); line-height: 1.65; }

/* LINKS */
.textlink {
  display: inline-block; margin-top: 26px;
  font-size: 16px; font-weight: 500; color: var(--deep-blue);
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.textlink:hover { text-decoration-thickness: 2px; }

/* FINAL CTA */
.final { text-align: center; }
.final .wrap { max-width: 620px; }
.final .body { margin: 0 auto; max-width: 100%; color: var(--warm-grey); font-size: 21px; }
.text-cta {
  display: inline-block; margin-top: 30px;
  background: var(--deep-blue); color: var(--oatmeal);
  text-decoration: none; font-size: 16px; font-weight: 500;
  letter-spacing: 0.06em;
  padding: 16px 46px; border-radius: 100px;
  transition: background 180ms ease;
}
.text-cta:hover { background: #22405d; }

/* FOOTER */
footer {
  background: var(--deep-blue); color: var(--oatmeal);
  padding: 56px 48px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 18px;
}
.footer-logo { font-size: 20px; letter-spacing: 0.18em; font-weight: 500; }
.footer-tagline { font-size: 14px; color: rgba(240,235,225,0.7); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  font-size: 13px; color: rgba(240,235,225,0.75);
  letter-spacing: 0.06em; text-decoration: none;
  transition: color 180ms ease;
}
.footer-links a:hover { color: var(--oatmeal); }
.footer-address { font-size: 12px; color: rgba(240,235,225,0.55); letter-spacing: 0.04em; }
.footer-legal {
  font-size: 11px; color: rgba(240,235,225,0.42);
  line-height: 1.6; max-width: 640px; margin-top: 4px;
}

/* MOBILE */
@media (max-width: 860px) {
  h1 { font-size: 56px; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 22px; }
  .nav-mid { display: none; }
  .nav-logo { font-size: 20px; }
  .section { padding: 64px 24px; }
  h1 { font-size: 48px; }
  h2 { font-size: 34px; }
  .body, .final .body { font-size: 18px; }
  .card p { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  footer { padding: 44px 24px; }
}

/* QUIZ PAGES: everything below is new, built on the tokens above */
.nav-mid a[aria-current="page"] { color: var(--near-black); }
.footer-note { font-size: 12px; color: rgba(240,235,225,0.55); letter-spacing: 0.04em; max-width: 640px; }

.illos { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin-bottom: 28px; }
.illos img { height: 88px; width: auto; display: block; }

/* quizzes page */
.quiz-hero { text-align: center; }
.quiz-hero .body { margin: 0 auto; }
.quiz-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.quiz-card { display: flex; flex-direction: column; padding: 36px 28px; text-align: center; }
.quiz-card .illos { margin-bottom: 20px; }
.quiz-card h2 { font-size: 30px; margin-bottom: 14px; }
.quiz-card .meta { font-size: 14px; color: var(--ash); letter-spacing: 0.04em; margin-top: 16px; }
.quiz-card .text-cta { margin-top: auto; align-self: center; }
.quiz-card .card-line { margin-bottom: 26px; }

/* question pages */
.quiz-main { max-width: 640px; margin: 0 auto; padding: 40px 24px 96px; }
.quiz-top { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 100px; flex: 0 0 auto;
  color: var(--near-black); text-decoration: none;
  transition: background 180ms ease;
}
.back:hover { background: rgba(42,28,30,0.06); }
.progress { flex: 1; height: 6px; border-radius: 100px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--dusty-blue); border-radius: 100px; }
.count { font-size: 14px; color: var(--warm-grey); letter-spacing: 0.04em; white-space: nowrap; }
.question { font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 32px; }
.options { display: flex; flex-direction: column; gap: 12px; }
.option {
  width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 18px; color: var(--near-black); line-height: 1.45;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 22px;
  transition: border-color 180ms ease, background 180ms ease;
}
.option:hover { border-color: var(--dusty-blue); }
.option.is-selected { border-color: var(--deep-blue); background: var(--deep-blue); color: var(--oatmeal); }

/* result pages */
.result-main { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; text-align: center; }
.result-main .kicker { margin-bottom: 28px; }
.result-pre { font-size: 21px; color: var(--warm-grey); margin-bottom: 6px; }
.result-main h1 { font-size: 64px; }
.result-snapshot h1 { font-size: 46px; line-height: 1.1; }
.tagline { font-size: 21px; color: var(--near-black); margin-bottom: 14px; }
.result-main .body { margin: 0 auto; }
.result-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
.result-cards .card h3 { margin-top: 0; }
.move-card { margin-top: 20px; text-align: left; }
.move-card h3 { margin-top: 0; }
.result-note { font-size: 15px; color: var(--warm-grey); margin-top: 20px; }
.horizon { font-size: 17px; color: var(--warm-grey); margin-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
.chips li {
  font-size: 14px; color: var(--deep-blue);
  border: 1px solid rgba(42,74,107,0.25); border-radius: 100px;
  padding: 6px 14px;
}
.result-links { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 40px; }

/* download bar */
.has-dlbar { padding-bottom: 150px; }
.dlbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(240,235,225,0.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 14px 24px 18px; text-align: center;
}
.dlbar-step { font-size: 15px; color: var(--near-black); margin-bottom: 10px; }
.dlbar .text-cta { margin-top: 0; padding: 13px 40px; }
.dlbar-sub { font-size: 13px; color: var(--warm-grey); margin-top: 8px; }
.dlbar-sub[hidden] { display: none; }

@media (max-width: 640px) {
  .quiz-cards, .result-cards { grid-template-columns: 1fr; }
  .question { font-size: 28px; }
  .option { font-size: 17px; }
  .result-main h1 { font-size: 44px; }
  .result-snapshot h1 { font-size: 32px; }
  .illos img { height: 72px; }
}
