:root {
  --black: #000000;
  --ink: #11100d;
  --gold: #e3cb61;
  --dark-gold: #ac7e28;
  --bright-gold: #fef37d;
  --mid-gold: #dabd57;
  --metallic-gold: #b7992c;
  --white: #ffffff;
  --cream: #f5f5dc;
  --khaki: #ae9e7e;
  --muted: #6d675c;
  --line: rgba(227, 203, 97, 0.28);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.18), 0 18px 50px rgba(0,0,0,.18);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 8%, rgba(183,153,44,.18), transparent 25rem),
    radial-gradient(circle at 8% 90%, rgba(172,126,40,.12), transparent 30rem),
    var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input { font: inherit; }
button { min-height: 48px; }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--bright-gold);
  outline-offset: 3px;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 50;
  color: var(--black); background: var(--bright-gold); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }
.site-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.brand-logo {
  width: 54px; height: 54px; display: block; flex: 0 0 54px;
  border-radius: 50%; object-fit: contain;
}
.eyebrow, .brand-subtitle { margin: 0; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.brand-subtitle { color: rgba(255,255,255,.72); font-size: .92rem; }
.app-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.view { padding: 70px 0 54px; }
[hidden] { display: none !important; }
.intro-view {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .7fr);
  gap: 58px;
  align-items: center;
}
.hero-copy { max-width: 720px; }
.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .78rem;
  font-weight: 850;
}
h1 {
  margin: 0;
  max-width: 18ch;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.65rem, 6vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero-text { max-width: 63ch; margin: 28px 0 0; color: rgba(255,255,255,.75); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.time-note { color: var(--khaki); font-size: .9rem; }
.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--black); background: var(--gold); border-color: var(--gold); }
.button-primary:hover { background: var(--bright-gold); border-color: var(--bright-gold); }
.button-secondary { color: var(--white); background: transparent; border-color: rgba(255,255,255,.34); }
.button-secondary:hover { border-color: var(--gold); }
.button-quiet { color: var(--gold); background: transparent; border-color: transparent; }
.promise-card {
  background: linear-gradient(145deg, rgba(245,245,220,.98), rgba(255,255,255,.96));
  color: var(--ink);
  padding: 30px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-label { margin: 0 0 18px; color: #6b531d; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.promise-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid rgba(0,0,0,.12); font-weight: 720; }
.promise-list span { color: #765817; font-size: .78rem; letter-spacing: .08em; }
.intro-disclaimer { grid-column: 1 / -1; color: rgba(255,255,255,.48); font-size: .82rem; margin: 0; max-width: 90ch; }
.quiz-view { max-width: 820px; margin: 0 auto; }
.progress-wrap { margin-bottom: 46px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--khaki); font-size: .82rem; font-weight: 750; letter-spacing: .04em; }
.progress-track { height: 5px; margin-top: 11px; background: rgba(255,255,255,.13); overflow: hidden; }
.progress-bar { height: 100%; width: 12.5%; background: var(--gold); transition: width .25s ease; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.025em;
  max-width: 24ch;
}
.question-help { color: rgba(255,255,255,.62); margin: 12px 0 24px; }
.options-grid { display: grid; gap: 12px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.option label::before {
  content: "";
  width: 19px; height: 19px; flex: 0 0 19px;
  border: 1.5px solid var(--khaki);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--black);
}
.option label:hover { border-color: rgba(227,203,97,.72); transform: translateX(2px); }
.option input:checked + label { color: var(--black); background: var(--gold); border-color: var(--gold); font-weight: 760; }
.option input:checked + label::before { background: var(--black); border-color: var(--black); box-shadow: inset 0 0 0 4px var(--gold); }
.option input:focus-visible + label { outline: 3px solid var(--bright-gold); outline-offset: 3px; }
.validation-message { color: #fff1b8; margin: 14px 0 0; }
.quiz-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.results-view { max-width: 1000px; margin: 0 auto; }
.results-header { max-width: 780px; }
.results-header h1 { font-size: clamp(2.45rem, 5vw, 4.8rem); }
.results-header > p:last-child { color: rgba(255,255,255,.68); max-width: 70ch; margin: 20px 0 0; }
.result-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 42px; }
.result-card {
  position: relative;
  min-width: 0;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(227,203,97,.85);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
}
.result-card:first-child { background: var(--white); transform: translateY(-8px); }
.rank { color: #70541a; font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.fit-badge { display: inline-flex; margin-top: 13px; color: var(--black); background: var(--gold); padding: 5px 9px; border-radius: 6px; font-size: .76rem; font-weight: 850; }
.result-card h2 { margin: 14px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.1; }
.family { margin: 0; color: #71591f; font-size: .82rem; font-weight: 800; }
.why { margin: 18px 0; color: #37332b; }
.result-meta { margin: 0; display: grid; gap: 10px; }
.result-meta div { display: block; border-top: 1px solid rgba(0,0,0,.12); padding-top: 10px; }
.result-meta dt { color: #5d584f; font-size: .76rem; text-transform: uppercase; letter-spacing: .045em; }
.result-meta dd { margin: 4px 0 0; font-size: .86rem; font-weight: 820; text-align: left; line-height: 1.4; }
.first-step { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.15); font-size: .88rem; }
.first-step strong { color: #6c5015; }
.route-card {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(227,203,97,.12), rgba(255,255,255,.035));
}
.route-card .kicker { margin-bottom: 8px; }
.route-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.route-card p { max-width: 72ch; color: rgba(255,255,255,.73); margin: 10px 0 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.methodology { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; color: rgba(255,255,255,.64); }
.methodology summary { color: var(--gold); cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.methodology p { max-width: 78ch; }
footer { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 42px; border-top: 1px solid var(--line); color: rgba(255,255,255,.48); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .8rem; }
footer p { margin: 0; } footer strong { color: var(--gold); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; color: var(--black); background: var(--bright-gold); padding: 13px 16px; border-radius: 8px; font-weight: 800; box-shadow: var(--shadow); }
@media (max-width: 800px) {
  .site-header, .app-shell, footer { width: min(100% - 32px, 680px); }
  .view { padding: 45px 0 40px; }
  .intro-view { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .intro-disclaimer { grid-column: 1; }
  .result-cards { grid-template-columns: 1fr; }
  .result-card:first-child { transform: none; }
  .quiz-actions .button { flex: 1; }
}
@media (max-width: 430px) {
  .site-header { padding-top: 18px; }
  .brand-logo { width: 46px; height: 46px; flex-basis: 46px; }
  .hero-actions, .result-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .result-actions .button { width: 100%; }
  .promise-card, .result-card, .route-card { padding: 21px; }
  .option label { padding: 13px 14px; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
