:root {
  --ink: #1e2528;
  --muted: #5b6468;
  --line: #d8dedd;
  --paper: #f7f8f6;
  --panel: #ffffff;
  --mint: #e8eef2;
  --teal: #2f4858;
  --forest: #2f4858;
  --gold: #b86b3c;
  --blue: #e8eef2;
  --hero-start: rgba(224, 231, 236, 0.82);
  --hero-end: rgba(242, 245, 247, 0.74);
  --shadow: 0 18px 50px rgba(30, 37, 40, 0.09);
}

body.theme-graphite {
  --ink: #252623;
  --muted: #62645c;
  --line: #d7d5c8;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --mint: #eeede4;
  --teal: #5f6f52;
  --forest: #5f6f52;
  --gold: #c47a3a;
  --blue: #eeede4;
  --hero-start: rgba(232, 230, 218, 0.82);
  --hero-end: rgba(247, 246, 239, 0.74);
  --shadow: 0 18px 50px rgba(37, 38, 35, 0.09);
}

body.theme-navy {
  --ink: #17212b;
  --muted: #54616d;
  --line: #d8e1e8;
  --paper: #fbfcfd;
  --panel: #ffffff;
  --mint: #eef4f8;
  --teal: #23395b;
  --forest: #23395b;
  --gold: #c98c32;
  --blue: #f0f5f8;
  --hero-start: rgba(233, 240, 246, 0.92);
  --hero-end: rgba(250, 252, 253, 0.9);
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 250, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(120deg, var(--hero-start), var(--hero-end)),
    var(--paper);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 920px;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-text {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.cn-line {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.deliverables,
.steps {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--forest);
  color: #fff;
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--forest);
}

.button.full {
  width: 100%;
}

.button.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.result-path {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--forest);
  font-weight: 760;
}

.result-actions {
  display: grid;
  gap: 10px;
}

.hero-panel,
.hero-visual,
.quiz-card,
.result-card,
.purchase-card,
.worksheet-card,
.worksheet-result,
.steps > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel,
.hero-visual,
.purchase-card,
.result-card {
  padding: 28px;
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(
      0deg,
      rgba(35, 57, 91, 0.07) 0,
      rgba(35, 57, 91, 0.07) 1px,
      transparent 1px,
      transparent 34px
    ),
    var(--blue);
}

.kit-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  width: 100%;
  border: 1px dashed color-mix(in srgb, var(--forest) 35%, var(--line));
  border-radius: 8px;
  color: var(--muted);
  font-weight: 740;
  background: rgba(255, 255, 255, 0.55);
}

.dashboard-mockup {
  width: min(100%, 520px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(23, 33, 43, 0.12);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 251, 0.9);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--forest) 24%, var(--line));
}

.browser-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  padding: 18px;
}

.metric-card,
.income-map,
.mini-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-card {
  padding: 14px;
}

.metric-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.metric-card strong {
  color: var(--ink);
  font-size: 24px;
}

.main-metric {
  grid-row: span 2;
  display: grid;
  align-content: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72)),
    var(--blue);
}

.main-metric strong {
  color: var(--forest);
  font-size: 42px;
}

.income-map {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.9fr 0.45fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.source-stack {
  display: grid;
  gap: 8px;
}

.source-stack span,
.paycheck-box,
.mini-table div {
  border-radius: 8px;
  background: var(--blue);
}

.source-stack span {
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 760;
  color: var(--forest);
}

.map-lines {
  display: grid;
  gap: 14px;
}

.map-lines i {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), var(--gold));
}

.paycheck-box {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.18)),
    var(--forest);
  color: #fff;
}

.paycheck-box small {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 720;
}

.paycheck-box strong {
  margin-top: 4px;
  font-size: 20px;
}

.mini-table {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
}

.mini-table div {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.mini-table span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
}

.mini-table strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
}

.kit-preview {
  min-height: 150px;
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.54)),
    var(--blue);
}

.kit-cover {
  width: 82%;
  min-height: 118px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.1);
}

.cover-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.kit-cover strong {
  display: block;
  margin-bottom: 6px;
  color: var(--forest);
  font-size: 24px;
}

.kit-cover small {
  display: block;
  color: var(--muted);
  font-weight: 650;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.cover-grid i {
  display: block;
  height: 28px;
  border-radius: 6px;
  background: var(--blue);
}

.price {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 42px;
  font-weight: 820;
  line-height: 1;
}

.check-list,
.plain-list,
.credential-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li,
.credential-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 24px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

.plain-list li::before,
.credential-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.section {
  padding: clamp(48px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 640px;
  margin-bottom: 22px;
}

.section-heading p,
.split p,
.image-band p,
.about p,
.disclosure p {
  color: var(--muted);
  font-size: 17px;
}

.intro-band {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature-grid p {
  color: var(--muted);
}

.system-map-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) 100px minmax(260px, 1.1fr) 100px minmax(210px, 0.9fr);
  gap: 18px;
  align-items: center;
  min-height: 360px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
    var(--blue);
  box-shadow: var(--shadow);
}

.system-column,
.system-center {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(23, 33, 43, 0.08);
}

.system-column {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.system-column p,
.system-center p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.system-column span {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--forest);
  font-size: 14px;
  font-weight: 760;
}

.system-center {
  display: grid;
  align-content: center;
  min-height: 230px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.16)),
    var(--forest);
  color: #fff;
}

.system-center p,
.system-center small {
  color: rgba(255, 255, 255, 0.75);
}

.system-center strong {
  display: block;
  max-width: 320px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.04;
}

.system-center small {
  display: block;
  margin-top: 16px;
  font-weight: 700;
}

.system-arrow {
  display: grid;
  gap: 16px;
}

.system-arrow i {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), var(--gold));
}

.system-arrow i:nth-child(2) {
  transform: translateX(12px);
}

.system-arrow i:nth-child(3) {
  transform: translateX(24px);
}

.mini-visual {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin-bottom: 22px;
  border: 1px dashed color-mix(in srgb, var(--forest) 32%, var(--line));
  border-radius: 8px;
  background: var(--blue);
  color: var(--muted);
  font-weight: 760;
}

.source-visual {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px;
}

.source-visual span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--forest);
}

.gap-visual {
  padding: 18px;
  align-content: center;
  gap: 12px;
  text-align: left;
}

.gap-visual strong,
.gap-visual small {
  width: 100%;
}

.gap-bar {
  width: 100%;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.gap-bar i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.plan-visual {
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  padding: 16px;
}

.plan-visual span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: var(--forest);
}

.plan-visual b {
  height: 2px;
  width: 100%;
  background: var(--gold);
}

.image-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 34px;
  align-items: center;
  background: var(--paper);
}

.wide-image-placeholder {
  position: relative;
  min-height: 360px;
  border: 1px dashed color-mix(in srgb, var(--forest) 34%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42)),
    var(--blue);
  color: var(--muted);
  font-weight: 760;
}

.workbook-stack {
  overflow: hidden;
}

.sheet {
  position: absolute;
  width: min(58%, 360px);
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(23, 33, 43, 0.12);
}

.sheet h3 {
  font-size: 18px;
}

.sheet p {
  display: block;
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--blue);
}

.sheet table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 12px;
}

.sheet td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.sheet td:last-child {
  color: var(--forest);
  font-weight: 760;
  text-align: right;
}

.sheet-one {
  left: 7%;
  top: 22%;
  transform: rotate(-4deg);
}

.sheet-two {
  right: 8%;
  top: 14%;
  transform: rotate(3deg);
}

.sheet-three {
  left: 30%;
  bottom: 10%;
}

.mini-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 18px;
}

.mini-flow span {
  position: relative;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--forest);
}

.mini-flow span:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -8px;
  width: 2px;
  height: 8px;
  background: var(--gold);
}

.donut {
  width: 96px;
  height: 96px;
  margin-top: 16px;
  border-radius: 50%;
  background: conic-gradient(var(--forest) 0 62%, var(--gold) 62% 82%, var(--blue) 82% 100%);
  box-shadow: inset 0 0 0 24px #fff;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.intake-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(240, 245, 248, 0.92)),
    var(--blue);
}

.intake-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.15fr) minmax(280px, 0.78fr);
  gap: 22px;
  align-items: start;
}

.starter-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.starter-preview-grid article,
.starter-access-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.starter-preview-grid article {
  min-height: 220px;
  padding: 24px;
}

.starter-preview-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--forest);
  font-weight: 820;
}

.starter-preview-grid p,
.starter-access-note p {
  color: var(--muted);
}

.starter-access-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 24px;
}

.magic-card,
.chat-intake-card,
.case-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.magic-card,
.case-summary-card {
  padding: 24px;
}

.secure-badge,
#intakeStatusPill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--forest) 18%, var(--line));
  border-radius: 999px;
  background: var(--blue);
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.magic-card h3,
.case-summary-card h3 {
  margin-top: 18px;
}

.magic-card p,
.case-summary-card,
.chat-transcript {
  color: var(--muted);
}

.magic-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.magic-form label:not(.consent-row) {
  display: block;
  margin: 0;
  color: var(--ink);
  font-weight: 760;
}

.magic-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.consent-row {
  align-items: flex-start;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 13px;
}

.magic-message {
  margin: 16px 0;
  padding: 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 14%, #fff);
  color: var(--forest);
  font-weight: 720;
}

.chat-intake-card {
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-header h3 {
  margin-bottom: 0;
}

.intake-progress {
  padding: 18px 22px 0;
}

.intake-progress > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.chat-transcript {
  display: grid;
  gap: 12px;
  min-height: 300px;
  padding: 22px;
}

.chat-bubble {
  max-width: 86%;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
}

.chat-bubble.ai {
  justify-self: start;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.chat-bubble.user {
  justify-self: end;
  background: var(--forest);
  color: #fff;
}

.chat-response {
  padding: 0 22px 22px;
}

.intake-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.intake-choice-grid label {
  min-height: 58px;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
}

.intake-choice-grid label:has(input:checked) {
  border-color: color-mix(in srgb, var(--forest) 65%, var(--line));
  background: var(--blue);
}

#intakeTextAnswer {
  min-height: 120px;
  margin-top: 0;
  background: #fff;
}

.chat-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.case-summary-body {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.summary-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.summary-item strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.summary-item span {
  display: block;
  margin-top: 4px;
}

.privacy-note {
  margin-top: 18px;
  padding: 12px;
  border-left: 3px solid var(--gold);
  background: var(--blue);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.quiz-card {
  padding: 24px;
}

fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.quiz-progress {
  margin-bottom: 24px;
}

.quiz-progress span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue);
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--gold);
  transition: width 180ms ease;
}

.quiz-step {
  display: none;
  min-height: 280px;
}

.quiz-step.active {
  display: block;
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

#quizSubmit {
  display: none;
}

legend {
  margin-bottom: 12px;
  font-weight: 780;
}

label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-grid label {
  min-height: 70px;
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
}

.choice-grid label:has(input:checked) {
  border-color: color-mix(in srgb, var(--forest) 65%, var(--line));
  background: var(--blue);
}

.choice-grid span {
  display: block;
}

.choice-grid small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.field-help {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 15px;
}

textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--forest) 30%, transparent);
  border-color: var(--forest);
}

input[type="checkbox"],
input[type="radio"] {
  flex: 0 0 auto;
  margin-top: 4px;
  accent-color: var(--teal);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 32px;
  align-items: start;
  background: #fff;
}

.deliverables > div {
  flex: 1 1 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.fine-print {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.worksheet-section {
  background: var(--blue);
}

.worksheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
}

.worksheet-card,
.worksheet-result {
  padding: 24px;
}

.worksheet-card label {
  display: block;
  margin: 16px 0 7px;
  color: var(--ink);
  font-weight: 700;
}

.worksheet-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.gap-value {
  margin: 16px 0;
  color: var(--forest);
  font-size: 56px;
  font-weight: 850;
}

.steps > div {
  flex: 1 1 240px;
  padding: 24px;
  box-shadow: none;
}

.steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  font-weight: 820;
}

.about {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: 34px;
  align-items: center;
  background: #fff;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  width: 240px;
  aspect-ratio: 1;
  border: 1px dashed var(--teal);
  border-radius: 8px;
  background: var(--mint);
  color: var(--forest);
  font-weight: 780;
}

.disclosure {
  padding-top: 40px;
  padding-bottom: 40px;
}

.disclosure h2 {
  font-size: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero,
  .quiz-layout,
  .intake-shell,
  .starter-preview-grid,
  .split,
  .worksheet-grid,
  .about,
  .image-band,
  .feature-grid,
  .system-map-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 260px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .system-arrow {
    display: none;
  }

  .photo-placeholder {
    width: min(100%, 240px);
  }

  .site-footer {
    flex-direction: column;
  }

  .starter-access-note {
    align-items: flex-start;
    flex-direction: column;
  }
}
