@font-face {
  font-family: Fraunces;
  src: url("../fonts/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("../fonts/Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe6;
  --paper-2: #f7f3ea;
  --paper-deep: #e7e0d2;
  --ink: #1c1915;
  --ink-soft: #3a342c;
  --muted: #4f483f;
  --rule: #d5ccbe;
  --pine: #1e3d36;
  --pine-soft: #e5eee9;
  --copper: #b85a24;
  --copper-deep: #8a3e12;
  --clay: #8c3a32;
  --serif: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --measure: 40rem;
  --page: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  font-optical-sizing: auto;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 0;
}

#app { position: relative; z-index: 1; }

::selection { background: #efd3b6; color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--copper-deep);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 0.6rem; }

.stripe { display: flex; height: 8px; position: relative; z-index: 1; }
.stripe-a { flex: 2.4; background: var(--pine); }
.stripe-b { flex: 1; background: var(--copper); }

.shell { width: min(var(--page), calc(100% - 2.5rem)); margin: 0 auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

p { margin: 0 0 0.9rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--copper-deep); text-underline-offset: 0.18em; }
button, input, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 1.15rem 0 0.4rem;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
}
.mark { width: 28px; height: 28px; display: block; }

.nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.15rem;
  padding: 0.35rem 0 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0.35rem 0;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.98rem;
}
.link-btn:hover { color: var(--ink); }

.header-cta { grid-area: cta; justify-self: end; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
}
.btn-primary { background: var(--pine); border-color: var(--pine); color: #f6f1e7; }
.btn-primary:hover { background: #16312b; }
.btn-line { background: transparent; }
.btn-line:hover { background: rgba(30, 61, 54, 0.05); }
.btn-demo { border-style: dashed; border-color: var(--copper-deep); color: var(--copper-deep); background: transparent; }
.btn-demo:hover { background: rgba(184, 90, 36, 0.06); }
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn .tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 0.12rem 0.35rem;
}

.hero { padding: 3.2rem 0 1.2rem; }
.eyebrow, .sec-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin: 0 0 0.9rem;
}
.hero h1 {
  font-size: clamp(3.3rem, 7.4vw, 6.35rem);
  max-width: 11ch;
  margin-bottom: 1.25rem;
}
.lede { font-size: 1.18rem; max-width: 38rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.5rem 0 2rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.stats div { padding: 1rem 1rem 1.05rem 0; }
.stats div + div { border-left: 1px solid var(--rule); padding-left: 1rem; }
.stats dt {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.35rem;
}
.stats dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

section.block { padding: 4.2rem 0 0; }
section.block h2 { font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 0.8rem; max-width: 16ch; }
.prose { max-width: var(--measure); color: var(--ink-soft); }

.path { list-style: none; margin: 1.8rem 0 0; padding: 0 0 0 0.2rem; border-left: 1px solid var(--rule); }
.path li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.4rem 1rem;
  padding: 0 0 1.7rem 1.25rem;
  position: relative;
}
.path li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--copper);
  position: absolute;
  left: -5px;
  top: 0.35rem;
}
.path h3 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.path p { color: var(--ink-soft); max-width: 38rem; }
.path-num {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--copper-deep);
}

.rates { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.rates li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.rates li:last-child { border-bottom: 1px solid var(--rule); }
.rates h3 { font-size: 1.55rem; margin-bottom: 0.25rem; }
.rates p { color: var(--ink-soft); max-width: 36rem; }
.amount {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.when {
  display: block;
  margin-top: 0.3rem;
  text-align: right;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.payout, .fine { color: var(--ink-soft); font-size: 0.98rem; max-width: 40rem; }
.payout { margin-top: 1.1rem; }

.disciplines { margin-top: 1.2rem; }
.disciplines article {
  display: grid;
  grid-template-columns: 3.5rem minmax(9rem, 14rem) 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}
.disciplines article:last-child { border-bottom: 1px solid var(--rule); }
.idx { font-family: var(--serif); color: var(--copper-deep); font-size: 1.2rem; }
.disciplines h3 { font-size: 1.4rem; }
.disciplines p { color: var(--ink-soft); }

.share-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 2.5rem;
  align-items: start;
  margin-top: 1.2rem;
}
.specimens { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.specimen { width: 100%; height: auto; display: block; box-shadow: 8px 8px 0 rgba(30, 61, 54, 0.12); }
.specimens figcaption { margin-top: 0.45rem; color: var(--muted); font-size: 0.85rem; }

.scale { margin: 1.3rem 0 0.4rem; }
.scale-track {
  position: relative;
  display: flex;
  height: 10px;
  background: var(--paper-deep);
}
.zone-train { background: #ddd4c6; }
.zone-lumen { background: var(--pine); }
.zone-dist { background: var(--copper); }
.marker {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 20px;
  background: var(--ink);
  transform: translateX(-1px);
}
.marker::after {
  content: "";
  position: absolute;
  left: -4px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: var(--ink);
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.disclaimer-block {
  margin: 4rem 0 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink);
}
.disclaimer-block ul { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); max-width: 40rem; }
.disclaimer-block li + li { margin-top: 0.25rem; }

.site-footer { padding: 1rem 0 3rem; color: var(--muted); }
.site-footer .word { letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.demo-note { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); max-width: 40rem; }
.demo-note h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.demo-links { margin: 0.6rem 0 0; padding-left: 1.1rem; }
.demo-links li + li { margin-top: 0.2rem; }

.sample-banner {
  background: var(--ink);
  color: var(--paper);
}
.sample-banner .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-size: 0.95rem;
}
.sample-banner a { color: var(--paper); }

.quiz { padding-bottom: 3.5rem; }
.quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 1.2rem;
}
.q-progress { height: 3px; background: var(--paper-deep); margin-top: 0.7rem; }
.q-progress > span { display: block; height: 100%; background: var(--pine); }
.dots { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.9rem 0 1.4rem; }
.dot {
  width: 0.85rem;
  height: 0.85rem;
  padding: 0;
  border: 1px solid #b7ad9e;
  background: transparent;
  cursor: pointer;
}
.dot.is-answered { background: var(--pine); border-color: var(--pine); }
.dot.is-on { outline: 2px solid var(--copper); outline-offset: 1px; }

.q-kicker {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 0.75rem;
}
.q-text {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 22em;
}
.detail {
  max-width: 28rem;
  margin: 1rem 0;
  padding: 0.75rem 0 0.75rem 0.9rem;
  border-left: 3px solid var(--pine);
  font-variant-numeric: tabular-nums;
  white-space: pre-line;
}
.stimulus { margin: 1.1rem 0 0.4rem; }
.stimulus .fig, .option .fig { width: min(100%, 420px); height: auto; display: block; }
.seq, .steps { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; }
.seq .fig, .steps .fig { width: 120px; }
.seq figcaption, .steps figcaption {
  text-align: center;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.analogy { display: grid; gap: 1rem; }
.pair-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--pine);
  margin-bottom: 0.35rem;
}
.pair-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.6rem; }
.pair-row .fig { width: 124px; }
.glyph { width: 46px; height: auto; }
.qbox {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--ink);
  font-family: var(--serif);
  font-size: 2.4rem;
  background: var(--paper-2);
}

.choices { margin: 1.1rem 0 0.4rem; max-width: 42rem; }
.option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.4rem;
  border-top: 1px solid var(--rule);
  cursor: pointer;
}
.choices .option:last-child { border-bottom: 1px solid var(--rule); }
.option input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--pine); }
.letter { font-family: var(--serif); font-size: 1.2rem; color: var(--copper-deep); width: 1.2rem; }
.option:has(input:checked) { background: var(--pine-soft); box-shadow: inset 3px 0 0 var(--pine); }
.choices.visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 44rem;
}
.choices.visual .option {
  border: 1px solid var(--rule);
  align-items: start;
  padding: 0.7rem;
}
.choices.visual .option .fig { width: 100%; }

.form-error { color: var(--clay); margin: 0.4rem 0; }
.quiz-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 2rem; }

.report, .teaser, .training { padding-bottom: 3.5rem; }
.score-line { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: flex-end; }
.score-num {
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 8.2rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}
.score-meta { padding-bottom: 0.6rem; color: var(--ink-soft); max-width: 22rem; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 1rem 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.callout {
  margin: 1.6rem 0;
  padding: 1.2rem 0 1.2rem 1rem;
  border-left: 6px solid var(--copper);
}
.callout h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.55rem; max-width: 18ch; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.9rem 0; }

.cat-result { padding: 0.95rem 0; border-top: 1px solid var(--rule); }
.cat-result:last-child { border-bottom: 1px solid var(--rule); }
.cat-result header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.cat-result h3 { font-size: 1.35rem; }
.meter { height: 6px; background: var(--paper-deep); margin: 0.45rem 0; }
.meter span { display: block; height: 100%; background: var(--pine); }
.meter.is-best span { background: var(--copper); }
.cat-result p { color: var(--muted); font-size: 0.95rem; }

.review-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.7rem; align-items: end; margin-top: 2.4rem; }
.review-item { padding: 0.9rem 0 0.9rem 0.8rem; border-top: 1px solid var(--rule); }
.review-item.is-hit { box-shadow: inset 3px 0 0 var(--pine); }
.review-item.is-miss { box-shadow: inset 3px 0 0 var(--clay); }
.review-item h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin-bottom: 0.25rem; }
.review-item p { max-width: 42rem; }

.aside-note {
  margin-top: 1rem;
  max-width: var(--measure);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.35;
}

.name-field { margin: 0.8rem 0 1rem; max-width: 28rem; }
.name-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.name-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ink);
  background: transparent;
}

.cert-block { margin: 1.6rem 0 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.cert-block h3 { font-size: 1.8rem; margin-bottom: 0.35rem; }
.cert-stage {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  margin: 1rem 0;
}
.cert-square { width: min(100%, 420px); height: auto; box-shadow: 10px 10px 0 rgba(30, 61, 54, 0.12); background: var(--paper-2); }
.cert-alts { display: grid; gap: 0.8rem; }
.cert-story { width: min(100%, 180px); height: auto; box-shadow: 8px 8px 0 rgba(30, 61, 54, 0.12); }
.cert-print { width: min(100%, 460px); height: auto; box-shadow: 8px 8px 0 rgba(30, 61, 54, 0.12); }
.cert-stage figcaption, .cert-alts figcaption {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.caption {
  width: min(100%, 40rem);
  min-height: 6rem;
  margin: 0.4rem 0 0.6rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--rule);
  background: transparent;
  resize: vertical;
  line-height: 1.45;
}
.status { min-height: 1.4rem; color: var(--pine); margin-top: 0.5rem; }
.locked-tier { color: var(--ink-soft); max-width: 38rem; }

.chapter { padding: 1.4rem 0; border-top: 1px solid var(--rule); max-width: 42rem; }
.chapter h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0.2rem 0 0.7rem; }
.chapter .kicker { color: var(--copper-deep); font-family: var(--serif); font-size: 1.2rem; }
.example, .slip {
  margin: 1rem 0;
  padding: 0.9rem 0 0.9rem 0.9rem;
  border-left: 3px solid var(--pine);
  background: rgba(255, 255, 255, 0.28);
}
.slip h3, .example h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.worked { margin-top: 0.7rem; }

.locked {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}
.toc { margin: 0.8rem 0 0; padding-left: 1.1rem; }
.toc li + li { margin-top: 0.45rem; }

.boot { padding: 3rem 0; }

@media (max-width: 800px) {
  .shell { width: min(100% - 1.5rem, var(--page)); }
  .hero { padding-top: 2rem; }
  .hero h1 { max-width: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(3), .stats div:nth-child(4) { border-top: 1px solid var(--rule); }
  .disciplines article { grid-template-columns: 2.6rem 1fr; }
  .disciplines article p { grid-column: 2; }
  .share-grid, .cert-stage { grid-template-columns: 1fr; }
  .rates li { grid-template-columns: 1fr; gap: 0.3rem; }
  .amount, .when { text-align: left; }
  section.block { padding-top: 3rem; }
}

@media (max-width: 560px) {
  .choices.visual { grid-template-columns: 1fr; }
  .qbox, .seq .fig, .steps .fig, .pair-row .fig { width: 104px; }
  .qbox { height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
