:root {
  --ink: #14211f;
  --ink-soft: #4a5a57;
  --paper: #fbf8f2;
  --paper-alt: #f1ece1;
  --line: #ddd5c6;
  --teal: #0f3d3e;
  --teal-mid: #1f6f6b;
  --sun: #f2b544;
  --sun-soft: #fbe6b8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 31, 0.06), 0 8px 24px rgba(20, 33, 31, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-mid); }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.25rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav a.btn { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8em 1.4em; border-radius: 999px; border: 2px solid var(--teal);
  background: var(--teal); color: var(--white); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--teal-mid); border-color: var(--teal-mid); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-small { padding: 0.5em 1em; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--paper-alt); color: var(--teal); }
.btn-light { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-light:hover { background: #f6c66a; border-color: #f6c66a; }
.link-btn { background: none; border: 0; color: var(--ink-soft); font: inherit; text-decoration: underline; cursor: pointer; padding: 0.4em 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Hero */
.hero { padding: 72px 0 64px; background:
  radial-gradient(circle at 85% 20%, var(--sun-soft) 0, transparent 40%),
  radial-gradient(circle at 10% 90%, #d8e8e4 0, transparent 45%); }
.hero-inner { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 600; color: var(--teal-mid); margin-bottom: 1em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.5em 0 1em; }
.fineprint { font-size: 0.85rem; color: var(--ink-soft); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--teal); color: var(--white); }
.section-dark a { color: var(--sun); }

.steps { list-style: none; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun-soft); font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 1.5em; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--ink-soft); margin: 0; }

/* Quiz */
.quiz-card, section[id] { scroll-margin-top: 80px; }
.quiz-card { background: var(--white); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; margin-top: 1.5em; min-height: 280px; }
.progress { height: 6px; background: var(--paper-alt); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.progress-bar { height: 100%; width: 0; background: var(--teal-mid); transition: width 0.25s ease; }
.q-count { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.25em; }
.q-prompt { font-weight: 600; font-size: 1.1rem; }
.choices { display: grid; gap: 12px; margin: 1em 0; }
.choice {
  text-align: left; font: inherit; padding: 16px 18px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: var(--teal-mid); background: #f4faf8; }
.choice.unsure { background: transparent; border-style: dashed; color: var(--ink-soft); text-align: center; }

.issues { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0 1.5em; }
.issue {
  font: inherit; font-size: 0.95rem; padding: 0.55em 1em; border-radius: 999px;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}
.issue[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }

.tag-name { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--teal); }
.result-issues ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0.25em 0 1.25em; }
.result-issues li { background: var(--sun-soft); border-radius: 999px; padding: 0.3em 0.9em; font-size: 0.9rem; font-weight: 500; }
.axes { display: grid; gap: 10px; margin: 0 0 1.25em; }
.axis-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-soft); }
.axis-track { position: relative; height: 8px; background: var(--paper-alt); border-radius: 999px; }
.axis-dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-mid); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--teal-mid); transform: translate(-50%, -50%); }
.axis-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }

/* Waitlist */
.waitlist { display: grid; gap: 16px; margin-top: 1.5em; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; opacity: 0.75; }
.field input {
  font: inherit; padding: 0.8em 1em; border-radius: 10px; border: 2px solid transparent;
  background: var(--white); color: var(--ink);
}
.field input:focus { border-color: var(--sun); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.check input { margin-top: 0.3em; width: 18px; height: 18px; accent-color: var(--sun); }
.waitlist .btn { justify-self: start; }
.form-status { min-height: 1.5em; font-weight: 500; margin: 0; }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner p { margin: 0.25em 0; }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .section { padding: 56px 0; }
  .quiz-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .progress-bar { transition: none; }
}
