:root {
  --paper: #f4f0e8;
  --paper-deep: #e9e2d5;
  --ink: #1f2826;
  --muted: #66706c;
  --forest: #234a41;
  --forest-deep: #17342e;
  --sage: #aab8a5;
  --terracotta: #c2674c;
  --terracotta-soft: #ecd3c8;
  --line: rgba(31, 40, 38, 0.16);
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(44, 51, 46, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(194, 103, 76, 0.10), transparent 24rem),
    radial-gradient(circle at 92% 32%, rgba(35, 74, 65, 0.09), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(194, 103, 76, 0.45); outline-offset: 3px; }
.is-hidden { display: none !important; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--forest); border-radius: 50%; color: var(--forest); font-family: Georgia, serif; font-size: 12px; }
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12px; }
.privacy-pill span { color: var(--forest); font-size: 9px; }

main { overflow: hidden; }
.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 710px;
  margin: 0 auto;
  padding: 86px 0 96px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}
.eyebrow { margin: 0 0 18px; color: var(--terracotta); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.045em; line-height: 1.04; }
h1 { max-width: 720px; margin: 0; font-size: clamp(52px, 7vw, 86px); }
h1 em { color: var(--forest); font-weight: 400; }
.lede { max-width: 640px; margin: 30px 0 0; color: var(--muted); font-size: 19px; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button { min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; font-weight: 750; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .36; transform: none; }
.button.primary { color: var(--white); background: var(--forest); }
.button.primary:not(:disabled):hover { background: var(--forest-deep); }
.button.secondary { color: var(--ink); border-color: var(--line); background: transparent; }
.duration { color: var(--muted); font-size: 13px; }

.comparison { position: relative; display: grid; gap: 14px; }
.comparison::before { content: ""; position: absolute; inset: -45px 18% auto auto; width: 180px; height: 180px; border: 1px solid rgba(35, 74, 65, .2); border-radius: 50%; z-index: -1; }
.compare-card { min-height: 230px; padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; gap: 20px; border: 1px solid var(--line); background: rgba(255, 253, 248, .65); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.compare-card.crisis { margin-left: 42px; background: var(--forest); color: var(--white); }
.card-index { font-family: Georgia, serif; color: var(--terracotta); font-size: 14px; }
.compare-card h2 { margin: 3px 0 13px; font-size: 31px; }
.compare-card p { margin: 0; color: var(--muted); }
.compare-card.crisis p { color: rgba(255, 255, 255, .7); }
.signal { grid-column: 2; justify-self: start; margin-top: 8px; padding-top: 10px; border-top: 1px solid currentColor; color: var(--terracotta); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.compass-shell {
  width: min(970px, calc(100% - 40px));
  min-height: 650px;
  margin: 36px auto 110px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.progress-wrap { margin-bottom: 62px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.progress-track { height: 3px; margin-top: 12px; overflow: hidden; background: var(--paper-deep); }
.progress-track span { display: block; width: 16.666%; height: 100%; background: var(--terracotta); transition: width .28s ease; }
.question-view { animation: reveal .3s ease both; }
.question-kicker, .panel-label { margin: 0 0 12px; color: var(--terracotta); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.question-view h2, .result-heading h2 { max-width: 720px; margin: 0; font-size: clamp(39px, 5vw, 60px); }
.question-help { margin: 16px 0 30px; color: var(--muted); }
.answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.answer-option { min-height: 86px; padding: 17px 18px; display: flex; gap: 14px; align-items: flex-start; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; background: transparent; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.answer-option:hover { border-color: var(--forest); transform: translateY(-1px); }
.answer-option.is-selected { border-color: var(--forest); background: rgba(170, 184, 165, .19); }
.answer-marker { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; margin-top: 1px; border: 1px solid var(--sage); border-radius: 50%; color: transparent; font-size: 12px; }
.answer-option.is-selected .answer-marker { color: white; border-color: var(--forest); background: var(--forest); }
.answer-copy strong { display: block; margin-bottom: 3px; }
.answer-copy small { display: block; color: var(--muted); line-height: 1.4; }
.question-nav { margin-top: 42px; display: flex; justify-content: space-between; align-items: center; }
.text-button { padding: 10px 0; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.text-button:disabled { opacity: 0; pointer-events: none; }

.result-view { animation: reveal .4s ease both; }
.result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.result-code { flex: 0 0 auto; padding: 8px 10px; color: var(--forest); border: 1px solid var(--sage); border-radius: 99px; font-family: Georgia, serif; font-size: 13px; }
.result-summary { max-width: 780px; margin: 22px 0 38px; color: var(--muted); font-size: 18px; }
.spectrum { margin: 0 0 34px; padding: 22px 24px; background: var(--paper); }
.spectrum-labels { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.spectrum-line { position: relative; height: 5px; margin: 18px 5px 14px; border-radius: 5px; background: linear-gradient(90deg, var(--sage), var(--terracotta)); }
#spectrum-marker { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); border: 3px solid var(--white); border-radius: 50%; background: var(--forest); box-shadow: 0 2px 10px rgba(31,40,38,.25); transition: left .6s cubic-bezier(.2,.8,.2,1); }
#spectrum-caption { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-panel { min-height: 265px; padding: 25px; border: 1px solid var(--line); }
.accent-panel { color: var(--white); border-color: var(--forest); background: var(--forest); }
.accent-panel .panel-label { color: #eab3a1; }
.result-panel ul, .result-panel ol { margin: 0; padding: 0; list-style: none; }
.result-panel li { position: relative; margin: 0; padding: 13px 0 13px 29px; border-bottom: 1px solid var(--line); }
.accent-panel li { border-color: rgba(255,255,255,.15); }
.result-panel li:last-child { border-bottom: 0; }
.result-panel ul li::before { content: "—"; position: absolute; left: 0; color: var(--terracotta); }
.result-panel ol { counter-reset: steps; }
.result-panel ol li { counter-increment: steps; }
.result-panel ol li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; color: #eab3a1; font: 12px Georgia, serif; }
.reflection { margin-top: 14px; padding: 22px 25px; display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line); background: rgba(170,184,165,.13); }
.reflection > span { color: var(--terracotta); font-size: 22px; }
.reflection p { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.reflection blockquote { margin: 0; font-family: Georgia, serif; font-size: 20px; }
.support-note { margin-top: 14px; padding: 20px 22px; color: #56281e; border-left: 4px solid var(--terracotta); background: var(--terracotta-soft); }
.support-note p { margin: 6px 0 0; }
.result-actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

.principles { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 105px 0; border-top: 1px solid var(--line); }
.principles h2 { max-width: 820px; margin: 0; font-size: clamp(40px, 5vw, 62px); }
.principle-grid { margin-top: 55px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle-grid p { margin: 0; padding: 26px 30px 26px 0; color: var(--muted); border-right: 1px solid var(--line); }
.principle-grid p + p { padding-left: 30px; }
.principle-grid p:last-child { border-right: 0; }
.principle-grid span { display: block; margin-bottom: 22px; color: var(--terracotta); font: 13px Georgia, serif; }
.principle-grid strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.disclaimer { max-width: 720px; margin: 48px 0 0; color: var(--muted); font-size: 12px; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0 40px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 820px) {
  .hero { min-height: auto; padding: 66px 0 78px; grid-template-columns: 1fr; }
  .comparison { max-width: 600px; }
  .compare-card.crisis { margin-left: 20px; }
  .answers, .result-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid p, .principle-grid p + p { padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-grid p:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .site-header { width: min(100% - 28px, 1180px); padding: 18px 0; }
  .wordmark > span:last-child { display: none; }
  .hero, .principles { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 52px; }
  h1 { font-size: 48px; }
  .lede { font-size: 17px; }
  .compare-card { min-height: 0; padding: 23px 20px; }
  .compare-card.crisis { margin-left: 0; }
  .compass-shell { width: 100%; margin: 16px 0 76px; padding: 28px 18px 36px; border-left: 0; border-right: 0; }
  .progress-wrap { margin-bottom: 44px; }
  .question-view h2, .result-heading h2 { font-size: 39px; }
  .answer-option { min-height: 78px; }
  .result-heading { flex-direction: column-reverse; }
  .spectrum { padding: 20px 14px; }
  .spectrum-labels { font-size: 9px; }
  footer { width: min(100% - 28px, 1180px); flex-direction: column; }
}
