:root {
  /* Tone — soft off-white with cool navy ink */
  --bg:        oklch(0.985 0.004 240);
  --bg-alt:    oklch(0.965 0.006 240);
  --surface:   oklch(1 0 0);
  --ink:       oklch(0.22 0.035 250);     /* deep navy */
  --ink-2:     oklch(0.40 0.028 250);     /* slate */
  --ink-3:     oklch(0.58 0.018 250);     /* mid slate */
  --line:      oklch(0.92 0.008 240);
  --line-2:    oklch(0.86 0.010 240);
  --accent:    oklch(0.55 0.085 240);     /* soft blue */
  --accent-2:  oklch(0.92 0.030 235);     /* tint */
  --accent-ink: oklch(0.35 0.080 245);
  --warn:      oklch(0.55 0.110 35);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 0 rgba(20,30,55,0.04), 0 1px 2px rgba(20,30,55,0.04);
  --shadow:    0 1px 0 rgba(20,30,55,0.04), 0 8px 24px -10px rgba(20,30,55,0.10);
  --shadow-lg: 0 1px 0 rgba(20,30,55,0.04), 0 20px 50px -20px rgba(20,30,55,0.18);

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button { font-family: inherit; }

::selection { background: var(--accent-2); color: var(--ink); }

/* Type ramp */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent-ink); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: oklch(0.98 0.004 240);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 6px 18px -8px rgba(20,30,55,0.45);
}
.btn-primary:hover { background: oklch(0.30 0.040 250); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: oklch(0.78 0.012 240); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* Container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--ink) 0%, oklch(0.32 0.045 245) 100%);
}
.brand-mark svg { display: block; }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.header-cta { margin-left: 14px; }
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
@media (max-width: 880px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6.2vw, 78px);
  margin: 18px 0 22px;
}
.hero .lede { font-size: clamp(17px, 1.4vw, 19px); }
.hero-actions {
  margin-top: 32px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.hero-secondary {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 13.5px;
  font-family: var(--mono);
}
.hero-secondary .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.65 0.12 150);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px oklch(0.65 0.12 150 / 0.18);
}

/* Hero visual — abstract spinal column rendered as a stack of vertebra plates */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 80% 0%, oklch(0.96 0.020 235) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hv-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  opacity: 0.45;
  mask-image: radial-gradient(120% 80% at 50% 50%, black 50%, transparent 100%);
}
.hv-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.hv-card .label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.hv-card.report {
  top: 6%; left: 6%;
  width: 56%;
}
.hv-card.review {
  bottom: 8%; right: 6%;
  width: 60%;
}
.hv-line {
  height: 7px;
  border-radius: 3px;
  background: oklch(0.93 0.010 240);
  margin: 6px 0;
}
.hv-line.short { width: 60%; }
.hv-line.med { width: 80%; }
.hv-line.hi { background: var(--accent-2); }
.hv-spine {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  pointer-events: none;
}
.hv-vert {
  height: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  margin: 4px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.hv-vert::before {
  content: "";
  position: absolute;
  left: -8px; right: -8px; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.hv-vert.focus {
  background: var(--accent-2);
  border-color: var(--accent);
}

@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 5/4; max-height: 460px; }
}

/* ——— Section frame ——— */
section.block {
  padding: 96px 0;
  position: relative;
}
section.block.tight { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(34px, 3.6vw, 50px);
  margin: 12px 0 0;
}
.section-head p { margin: 0; }
@media (max-width: 880px) {
  section.block { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
}

/* ——— Question grid (Problem) ——— */
.qgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.qcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  min-height: 116px;
}
.qcard:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.qcard .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-top: 4px;
  min-width: 22px;
}
.qcard .q {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
@media (max-width: 880px) { .qgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .qgrid { grid-template-columns: 1fr; } }

/* ——— Steps (Solution) ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--accent-ink);
}
.step-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
}
.step h3 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.step .future {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 5px 10px;
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  text-transform: uppercase;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* ——— Receive / checklist ——— */
.receive-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.checklist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow);
}
.checklist-item {
  display: flex; gap: 14px;
  padding: 18px 18px;
  border-radius: 12px;
  align-items: flex-start;
  transition: background .15s ease;
}
.checklist-item + .checklist-item { border-top: 1px solid var(--line); }
.checklist-item:hover { background: var(--bg-alt); }
.checklist-icon {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--accent-2);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-top: 2px;
}
.checklist-text {
  color: var(--ink); font-size: 15.5px; line-height: 1.5;
}
.receive-aside h3 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  margin: 8px 0 14px;
  letter-spacing: -0.01em;
}
.receive-aside p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 42ch; }
.receive-meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.receive-meta .pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.receive-meta .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.receive-meta .v {
  font-family: var(--serif);
  font-size: 22px;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
@media (max-width: 880px) {
  .receive-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ——— About ——— */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}
.headshot-frame {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.headshot-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.credentials {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.credential {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 6px;
}
.about p { color: var(--ink-2); font-size: 16px; line-height: 1.65; max-width: 56ch; }
.about p + p { margin-top: 14px; }
.about h2 { margin-bottom: 22px; }
.state-list {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.state-pill {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--accent-2);
  border-radius: 999px;
  padding: 6px 12px;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .headshot-frame { max-width: 360px; }
}

/* ——— What This Is / Is Not ——— */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.scope-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.scope-card.warn {
  background: oklch(0.985 0.014 50);
  border-color: oklch(0.88 0.040 50);
}
.scope-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.scope-card.warn .scope-tag { color: var(--warn); }
.scope-tag .swatch {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent);
}
.scope-card.warn .scope-tag .swatch { background: var(--warn); }
.scope-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.scope-card p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0; }
@media (max-width: 880px) { .scope-grid { grid-template-columns: 1fr; } }

/* ——— Waitlist Form ——— */
.waitlist {
  background: var(--ink);
  color: oklch(0.97 0.006 240);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.waitlist::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, oklch(0.30 0.060 245) 0%, transparent 60%),
    radial-gradient(40% 60% at 0% 100%, oklch(0.28 0.040 250) 0%, transparent 60%);
  pointer-events: none;
}
.waitlist .container { position: relative; }
.waitlist-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.waitlist h2 {
  color: oklch(0.98 0.005 240);
  font-size: clamp(36px, 4vw, 54px);
  margin: 16px 0 18px;
}
.waitlist .lede { color: oklch(0.84 0.012 240); }
.waitlist .eyebrow { color: oklch(0.72 0.020 235); }

.form-card {
  position: relative;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) {
  .form-row.cols-2 { grid-template-columns: 1fr; }
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.field .req { color: var(--warn); margin-left: 4px; }
.input, .select, .textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--warn);
  background: oklch(0.99 0.014 40);
}
.field-error {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--warn);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23425066' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-submit-row {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.form-submit-row .small {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.btn-submit {
  background: var(--ink);
  color: oklch(0.98 0.004 240);
}
.btn-submit:hover { background: oklch(0.30 0.040 250); }
.btn-submit:disabled {
  opacity: 0.6; cursor: not-allowed;
}

.success {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  text-align: left;
  color: var(--ink);
}
.success-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: oklch(0.94 0.060 150);
  color: oklch(0.35 0.090 150);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.success h3 {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.success p { color: var(--ink-2); margin: 0 0 22px; }
.success .next {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
  display: grid; gap: 10px;
}
.success .next-item {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
}
.success .next-item .pos {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 2px;
  min-width: 28px; text-align: center;
}

@media (max-width: 880px) {
  .waitlist-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ——— Footer ——— */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-disclaimer {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 65ch;
}
.footer-meta {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-meta a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13px;
}
.footer-meta a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { justify-content: flex-start; }
}

/* Mobile menu (very lightweight) */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 0;
}
.mobile-menu.open { display: block; }
.mobile-menu .container { display: grid; gap: 4px; }
.mobile-menu a {
  text-decoration: none;
  color: var(--ink);
  padding: 12px 4px;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 12px; align-self: stretch; }

/* Subtle reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Tweaks data attrs */
[data-density="comfortable"] section.block { padding: 84px 0; }
[data-density="airy"] section.block { padding: 112px 0; }

[data-radius="sharp"] {
  --radius-sm: 4px; --radius: 8px; --radius-lg: 12px;
}
[data-radius="soft"] {
  --radius-sm: 10px; --radius: 16px; --radius-lg: 22px;
}
[data-radius="round"] {
  --radius-sm: 14px; --radius: 22px; --radius-lg: 30px;
}

[data-accent="blue"]  { --accent: oklch(0.55 0.085 240); --accent-2: oklch(0.92 0.030 235); --accent-ink: oklch(0.35 0.080 245); }
[data-accent="teal"]  { --accent: oklch(0.55 0.075 200); --accent-2: oklch(0.92 0.030 195); --accent-ink: oklch(0.35 0.075 200); }
[data-accent="sage"]  { --accent: oklch(0.55 0.060 160); --accent-2: oklch(0.93 0.030 155); --accent-ink: oklch(0.36 0.065 160); }
[data-accent="warm"]  { --accent: oklch(0.58 0.075 60);  --accent-2: oklch(0.94 0.030 70);  --accent-ink: oklch(0.40 0.080 55); }

[data-display="serif"] { --serif: "Instrument Serif", Georgia, serif; }
[data-display="sans"]  { --serif: "Geist", system-ui, sans-serif; }

/* ——— Term card (homepage: featured article categories) ——— */
.term-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .term-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .term-grid { grid-template-columns: 1fr; } }
.term-card {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.term-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.term-card .term {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.term-card .gloss {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ——— FAQ (homepage) ——— */
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  gap: 16px;
  letter-spacing: -0.005em;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item .chev {
  width: 11px; height: 11px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex: 0 0 auto;
  margin-right: 4px;
}
.faq-item[open] .chev { transform: rotate(-135deg); }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 70ch;
}

/* ——— Hero translation card (homepage) ——— */
.translate-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 18px;
}
.translate-card .row {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.translate-card .row.translation {
  background: color-mix(in oklab, var(--accent-2) 70%, var(--surface));
  border-color: color-mix(in oklab, var(--accent) 25%, var(--line));
}
.translate-card .row .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.translate-card .row .v {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.translate-card .arrow {
  display: grid;
  place-items: center;
  color: var(--ink-3);
}

/* ——— Offers grid (3 cards on homepage) ——— */
.offer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.offer-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.18;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}
.offer-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.offer-card .offer-link {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.offer-card .offer-link:hover { text-decoration: underline; }

/* ——— Centered CTA section (homepage final) ——— */
.cta-center {
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-center h2 { margin: 0; }
.cta-center .lede { margin: 0 auto; }
.cta-center .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ——— Surgeon-voice quote (homepage Why-it-matters) ——— */
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  max-width: 60ch;
  margin: 28px 0 0;
  letter-spacing: -0.005em;
}

/* ——— "MRI review service" two-column section (homepage) ——— */
.service-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
.service-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.service-aside .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.safety-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--warn);
  background: oklch(0.985 0.014 50);
  border: 1px solid oklch(0.88 0.040 50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
@media (max-width: 880px) {
  .service-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ——— Three-point row (Why surgeon review matters) ——— */
.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.point {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.point .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.point h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.point p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 880px) { .points { grid-template-columns: 1fr; } }

/* ——— Quick-link chips (Start here section) ——— */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.chip:hover {
  background: var(--accent-2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ——— Optional-service block (demoted MRI review) ——— */
.optional-service {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.optional-service .eyebrow { display: block; margin-bottom: 8px; }
.optional-service h3 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.optional-service p {
  margin: 0 auto 18px;
  color: var(--ink-2);
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.6;
}
.optional-service .text-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.optional-service .text-link:hover { color: var(--ink); }

/* ——— Wayfinder cards (closing section) ——— */
.wayfinder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.wayfinder a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.wayfinder a:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.wayfinder a .way-arrow {
  color: var(--ink-3);
  flex: 0 0 auto;
}
@media (max-width: 880px) { .wayfinder { grid-template-columns: 1fr; } }

/* ============================================================
   Homepage overrides — resource-hub mode (v3)
   Two-column hero with a real client-side term finder card,
   wider container, larger readable type, 3-up library cards,
   one continuous background. Scoped to <body class="homepage">.
   ============================================================ */

/* Container */
.homepage .container { max-width: 1120px; padding: 0 32px; }
@media (max-width: 640px) { .homepage .container { padding: 0 20px; } }

/* Body type baseline */
.homepage { font-size: 17px; }

/* ——— Hero — two-column, mobile reorders via grid-template-areas ——— */
.homepage .hero { padding: 64px 0 80px; overflow: visible; }
.homepage .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
  grid-template-areas:
    "intro   finder"
    "actions finder";
  column-gap: 64px;
  row-gap: 28px;
  align-items: start;
}
.homepage .hero-intro { grid-area: intro; }
.homepage .hero-finder { grid-area: finder; align-self: start; }
.homepage .hero-actions-block { grid-area: actions; }
.homepage .hero h1 {
  font-size: clamp(38px, 4.4vw, 52px);
  margin: 14px 0 18px;
  letter-spacing: -0.018em;
  max-width: 18ch;
}
.homepage .hero .lede {
  font-size: 19px;
  line-height: 1.5;
  max-width: 56ch;
  color: var(--ink-2);
}
.homepage .hero-actions { margin-top: 0; }
.homepage .hero-byline {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 56ch;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .homepage .hero { padding: 40px 0 48px; }
  .homepage .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "finder"
      "actions";
    row-gap: 28px;
  }
  .homepage .hero h1 {
    font-size: clamp(32px, 6vw, 38px);
    max-width: none;
  }
  .homepage .hero .lede { font-size: 17px; }
}

/* ——— Term finder card (hero right) ——— */
.term-finder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: grid;
  gap: 14px;
  position: relative;
}
.term-finder .eyebrow { display: block; }
.term-finder h2 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.term-finder .finder-input { position: relative; }
.term-finder .finder-input .input {
  font-size: 15px;
  height: 44px;
  background: var(--bg);
}
.term-finder .finder-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 2px;
  max-height: 240px;
  overflow-y: auto;
}
.term-finder .finder-list li { margin: 0; }
.term-finder .finder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
}
.term-finder .finder-row:hover,
.term-finder .finder-row:focus-visible {
  background: var(--accent-2);
  outline: none;
}
.term-finder .finder-text { display: grid; gap: 2px; min-width: 0; }
.term-finder .finder-term {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.term-finder .finder-gloss {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
}
.term-finder .finder-row svg { color: var(--ink-3); flex: 0 0 auto; }
.term-finder .finder-row:hover svg { color: var(--accent-ink); }
.term-finder .finder-empty {
  padding: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  background: var(--bg);
  border-radius: var(--radius-sm);
  text-align: center;
}
.term-finder .finder-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
  gap: 12px;
  flex-wrap: wrap;
}
.term-finder .finder-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.term-finder .finder-all {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  text-decoration: none;
}
.term-finder .finder-all:hover { text-decoration: underline; }

/* Mobile — tighter, denser; cap visible rows so the card doesn't dominate */
@media (max-width: 880px) {
  .term-finder { padding: 18px; gap: 10px; }
  .term-finder h2 { font-size: 19px; }
  .term-finder .finder-input .input { height: 40px; font-size: 14px; }
  .term-finder .finder-list { max-height: 220px; gap: 2px; }
  .term-finder .finder-row { padding: 8px 10px; }
  .term-finder .finder-term { font-size: 15px; }
  .term-finder .finder-gloss { font-size: 12.5px; }
  .term-finder .finder-foot { padding-top: 10px; gap: 8px; }
}

/* ——— Sections — one continuous bg, thin rules, calm rhythm ——— */
.homepage section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.homepage section.alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 0; }
@media (max-width: 880px) { .homepage section.block { padding: 48px 0; } }

/* Single-column section heads */
.homepage .section-head {
  display: block;
  margin-bottom: 32px;
  max-width: 800px;
}
.homepage .section-head h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  margin: 6px 0 12px;
  letter-spacing: -0.014em;
}
.homepage .section-head p,
.homepage .section-head .lede {
  font-size: 18px;
  line-height: 1.55;
  max-width: 64ch;
  color: var(--ink-2);
  margin: 0;
}

/* ——— Library — 3-up cards, navigation-system feel, no numbering ——— */
.homepage .steps { gap: 18px; }
.homepage .offer-card {
  padding: 28px;
  gap: 10px;
}
.homepage .offer-card > .eyebrow { display: none; } /* drop "0X / 03" numbering */
.homepage .offer-card h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
}
.homepage .offer-card p {
  font-size: 16px;
  line-height: 1.55;
}
.homepage .offer-card .offer-link { font-size: 12.5px; }

/* ——— Term grid — denser glossary ——— */
.homepage .term-grid { gap: 10px; }
.homepage .term-card {
  padding: 16px 20px;
  box-shadow: none;
}
.homepage .term-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.homepage .term-card .term {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.homepage .term-card .gloss { margin-top: 4px; font-size: 14px; line-height: 1.45; }

/* ——— Surgeon-thinking inline bullets ——— */
.homepage .surg-bullets {
  list-style: none; padding: 0;
  margin: 28px 0 0;
  display: grid; gap: 16px;
  max-width: 70ch;
}
.homepage .surg-bullets li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: baseline;
}
.homepage .surg-bullets .key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}
.homepage .surg-bullets .val {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.55;
}
.homepage .surg-bullets .val strong { font-weight: 500; }
@media (max-width: 600px) {
  .homepage .surg-bullets li { grid-template-columns: 1fr; gap: 4px; }
}

/* ——— Quote ——— */
.homepage .quote {
  font-size: 21px;
  line-height: 1.45;
  margin-top: 32px;
  padding: 6px 0 6px 22px;
  border-left-width: 3px;
  max-width: 64ch;
}

/* ——— About — readable, balanced ——— */
.homepage .about-grid {
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.homepage .about-grid .headshot-frame {
  max-width: 280px;
  border-radius: var(--radius);
}
.homepage .about p { font-size: 16.5px; max-width: 60ch; line-height: 1.6; }
.homepage .credentials { margin-top: 20px; }
.homepage .credential { font-size: 11.5px; padding: 5px 10px; }
@media (max-width: 880px) {
  .homepage .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .homepage .about-grid .headshot-frame { max-width: 240px; }
}

/* ——— Optional service — footnote in About ——— */
.homepage .optional-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 60ch;
}
.homepage .optional-note .eyebrow { display: block; margin-bottom: 8px; }
.homepage .optional-note p {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
}
.homepage .optional-note .text-link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.homepage .optional-note .text-link:hover { color: var(--ink); }

/* ——— FAQ ——— */
.homepage .faq-list { max-width: 800px; margin: 0; }
.homepage .faq-item { border-radius: var(--radius-sm); }
.homepage .faq-item > summary {
  font-size: 16.5px;
  padding: 18px 22px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0;
}
.homepage .faq-item .faq-body { padding: 0 22px 20px; font-size: 16px; line-height: 1.55; }

/* ——— Prose body for the "Why MRI reports are hard" section ——— */
.homepage .why-prose {
  display: grid;
  gap: 18px;
  max-width: 70ch;
}
.homepage .why-prose p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.homepage .why-prose .why-aside {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-2);
}
.homepage .why-prose .why-aside a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.homepage .why-prose .why-aside a:hover { color: var(--ink); }

/* ——— Urgent-symptoms callout (end of HowSurgeons) ——— */
.homepage .urgent-callout {
  margin-top: 36px;
  padding: 22px 24px;
  background: oklch(0.985 0.014 50);
  border: 1px solid oklch(0.88 0.040 50);
  border-radius: var(--radius);
  max-width: 70ch;
}
.homepage .urgent-callout .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--warn);
}
.homepage .urgent-callout p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.homepage .urgent-callout .text-link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--warn);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.homepage .urgent-callout .text-link:hover { color: var(--ink); }

/* ——— Wayfinder ——— */
.homepage .wayfinder-list {
  list-style: none; padding: 0; margin: 0;
  max-width: 64ch;
}
.homepage .wayfinder-list li { margin: 0; }
.homepage .wayfinder-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.homepage .wayfinder-list li:last-child a { border-bottom: 1px solid var(--line); }
.homepage .wayfinder-list a:hover { color: var(--accent-ink); }

/* ——— Footer ——— */
.homepage .site-footer { padding: 48px 0 32px; }
