:root {
  --ink: #15211e;
  --forest: #17382f;
  --moss: #355d4c;
  --paper: #f7f3ea;
  --paper-deep: #e8e0d2;
  --white: #fffdf8;
  --coral: #d96f56;
  --coral-deep: #a84b39;
  --line: rgba(21, 33, 30, 0.18);
  --muted: #53635d;
  --page-width: 1160px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }

button,
input { font: inherit; }

button { cursor: pointer; }

button:disabled { cursor: not-allowed; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.page-width {
  width: min(calc(100% - 48px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 234, 0.96);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 22px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 22px;
}

.nav-links a,
.site-footer a {
  font-size: 14px;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.nav-links a:hover,
.site-footer a:hover { color: var(--coral-deep); }

.nav-toggle { display: none; }

.button,
.text-button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button:hover:not(:disabled),
.text-button:hover:not(:disabled) { transform: translateY(-2px); }

.button:disabled {
  color: #617069;
  border-color: #c8c1b6;
  background: #ded8ce;
  transform: none;
}

.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: var(--forest); }
.button-coral { color: #28140e; background: var(--coral); }
.button-coral:hover { background: #e98b73; }
.button-light { color: var(--ink); background: var(--white); }
.button-light:hover { background: #f4eadc; }
.button-quiet { color: var(--ink); border-color: var(--line); background: transparent; }
.button-quiet:hover { border-color: var(--ink); background: var(--white); }

.text-link,
.text-button {
  min-height: auto;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  font-weight: 750;
  text-decoration: none;
}

.text-button { color: var(--ink); }
.text-link-light { color: var(--white); }

.hero { padding: clamp(66px, 10vw, 140px) 0 82px; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(42px, 9vw, 122px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 { margin-top: 0; line-height: 1.04; }

h1,
h2,
h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.05em; }

h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(3.3rem, 7vw, 6.8rem); }
h2 { max-width: 680px; margin-bottom: 0; font-size: clamp(2.35rem, 4.8vw, 4.45rem); }
h3 { margin-bottom: 16px; font-size: clamp(1.85rem, 3.4vw, 2.9rem); }
h4 { margin-bottom: 10px; font-size: 1.22rem; }

.hero-lead,
.section-lead,
.section-heading > p:not(.eyebrow) { max-width: 640px; margin: 0; color: var(--muted); font-size: clamp(1.12rem, 1.8vw, 1.35rem); }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 34px; }

.hero-panel {
  padding: 30px;
  border-top: 6px solid var(--coral);
  color: var(--white);
  background: var(--forest);
}

.hero-panel p { margin: 0; font-size: 1.1rem; }
.hero-panel .panel-label { margin-bottom: 46px; color: #f5b5a3; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-panel ol { display: grid; gap: 12px; margin: 35px 0 0; padding: 0; list-style: none; }
.hero-panel li { padding-top: 12px; border-top: 1px solid rgba(255, 253, 248, 0.3); }

.section { padding: clamp(72px, 10vw, 132px) 0; }

.problem-section { color: var(--white); background: var(--ink); }
.problem-section .eyebrow { color: #f5b5a3; }
.problem-section .section-lead { color: rgba(255, 253, 248, 0.75); }

.split-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 9vw, 135px); }

.section-heading { max-width: 760px; }
.section-heading > h2 { margin-bottom: 22px; }
.narrow-heading { max-width: 800px; }

.mode-section { background: var(--paper-deep); }

.mode-chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }

.mode-card {
  display: flex;
  min-height: 265px;
  flex-direction: column;
  align-items: flex-start;
  padding: 31px;
  border: 1px solid var(--line);
  background: var(--white);
}

.mode-card h3 { margin-bottom: 14px; font-family: var(--sans); font-size: 1.65rem; letter-spacing: -0.035em; }
.mode-card p { max-width: 430px; margin: 0 0 28px; color: var(--muted); }
.mode-card .button { margin-top: auto; }
.mode-card.is-selected { border-color: var(--coral); box-shadow: 8px 8px 0 var(--coral); }

.privacy-note {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.assessment-shell {
  max-width: 860px;
  margin-top: 36px;
  padding: clamp(25px, 5vw, 48px);
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 16px 16px 0 var(--forest);
}

.assessment-shell[hidden],
.assessment-intro[hidden],
.assessment-form[hidden],
.assessment-result[hidden] { display: none; }

.assessment-intro > p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1.08rem; }

.nickname-field { max-width: 570px; margin: 28px 0; }
.nickname-field[hidden] { display: none; }
.nickname-field label { display: block; margin-bottom: 8px; font-weight: 750; }
.nickname-field input { width: 100%; padding: 12px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--white); }
.nickname-field p { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }

.assessment-progress { margin-bottom: 32px; }
.assessment-progress p { margin: 0 0 8px; color: var(--muted); font-weight: 750; }
.assessment-progress progress { width: 100%; height: 9px; overflow: hidden; border: 0; border-radius: 0; background: var(--paper-deep); }
.assessment-progress progress::-webkit-progress-bar { background: var(--paper-deep); }
.assessment-progress progress::-webkit-progress-value { background: var(--coral); }
.assessment-progress progress::-moz-progress-bar { background: var(--coral); }

.question-category { margin: 0 0 8px; color: var(--coral-deep); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

legend { max-width: 720px; padding: 0; font-family: var(--serif); font-size: clamp(1.65rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.08; }

.answer-list { display: grid; gap: 10px; margin-top: 26px; }

.answer-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.answer-option:hover { border-color: var(--coral-deep); }
.answer-option:focus-within { outline: 3px solid var(--coral); outline-offset: 3px; }
.answer-option:has(input:checked) { border-color: var(--ink); background: #f7eee1; }
.answer-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); }

.form-message { min-height: 1.5em; margin: 16px 0 0; color: var(--coral-deep); font-weight: 650; }

.assessment-actions,
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 26px; }

.score-row { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 8px; }
.score-row strong { color: var(--coral-deep); font-family: var(--serif); font-size: clamp(4.3rem, 9vw, 7rem); letter-spacing: -0.075em; line-height: 0.8; }
.score-row span { color: var(--muted); font-weight: 700; }
.result-framing { margin: 0; color: var(--muted); }
.assessment-result > p:not(.eyebrow):not(.result-framing) { max-width: 710px; color: var(--muted); font-size: 1.08rem; }

.result-section { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.result-section > p { max-width: 720px; color: var(--muted); }

.recommendation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.recommendation-card { padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.recommendation-card h5 { margin: 0 0 9px; font-size: 1.05rem; }
.recommendation-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.rollout-outline { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.rollout-outline li { padding-left: 21px; border-left: 3px solid var(--coral); }
.rollout-outline strong { display: block; margin-bottom: 3px; }
.rollout-outline span { color: var(--muted); }

.no-js-message { max-width: 720px; margin-top: 36px; padding: 28px; border: 1px solid var(--ink); background: var(--white); }
.no-js-message h3 { font-family: var(--sans); font-size: 1.4rem; letter-spacing: -0.03em; }

.deliverables-section { background: var(--white); }

.deliverable-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.deliverable-list li {
  min-height: 124px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  font-weight: 700;
}

.boundary-note { max-width: 790px; margin: 22px 0 0; color: var(--muted); font-size: 0.94rem; }

.process-section { color: var(--white); background: var(--forest); }
.process-section .eyebrow { color: #f7b5a3; }

.process-list { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid rgba(255, 253, 248, 0.28); list-style: none; }
.process-list li { padding: 20px 0 20px 48px; border-bottom: 1px solid rgba(255, 253, 248, 0.28); font-size: 1.15rem; font-weight: 700; }
.process-list li::marker { color: #f7b5a3; font-family: var(--serif); font-size: 1.3rem; }

.partner-section { background: #d9e8df; }
.partner-section .button { margin-top: 26px; }
.credibility-section { background: var(--paper); }

.faq-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(36px, 9vw, 135px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 38px 22px 0; font-size: 1.12rem; font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 5px; content: "+"; color: var(--coral-deep); font-size: 1.7rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p { max-width: 720px; margin: 0 0 22px; color: var(--muted); }

.final-cta { color: var(--white); background: var(--coral-deep); }
.final-layout { display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.final-cta h2 { max-width: 740px; }
.final-cta p:not(.eyebrow) { max-width: 600px; margin: 19px 0 0; color: rgba(255, 253, 248, 0.82); font-size: 1.13rem; }
.light-eyebrow { color: #ffe2d7; }
.final-cta .button-row { margin: 0; }

.site-footer { padding: 39px 0; color: var(--white); background: #0d1815; }
.footer-layout { display: flex; justify-content: space-between; gap: 35px; align-items: start; }
.site-footer .wordmark { color: var(--white); }
.site-footer div:last-child { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px 20px; }
.site-footer a:hover { color: #f5b5a3; }

@media (max-width: 890px) {
  .site-nav { position: relative; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; padding: 8px 0; border: 0; background: transparent; font-weight: 800; }
  .nav-cta { display: none; }
  .js-enabled .nav-links { display: none; width: 100%; padding: 4px 0 19px; justify-content: start; flex-wrap: wrap; }
  .js-enabled .nav-links.is-open { display: flex; }
  .hero-layout,
  .split-layout,
  .faq-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 48px; }
  .final-layout { display: grid; }
  .final-cta .button-row { margin-top: 8px; }
}

@media (max-width: 640px) {
  .page-width { width: min(calc(100% - 34px), var(--page-width)); }
  .site-nav { min-height: 64px; }
  .wordmark { font-size: 22px; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(3.2rem, 14vw, 4.7rem); }
  h2 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
  .button-row,
  .assessment-actions,
  .result-actions { align-items: stretch; }
  .button-row .button,
  .assessment-actions .button,
  .result-actions .button { width: 100%; }
  .button-row .text-link,
  .result-actions .text-link { width: fit-content; }
  .hero-panel { padding: 25px; }
  .mode-chooser,
  .recommendation-grid,
  .deliverable-list { grid-template-columns: 1fr; }
  .mode-card { min-height: 0; }
  .assessment-shell { padding: 25px 20px; box-shadow: 9px 9px 0 var(--forest); }
  legend { font-size: 1.8rem; }
  .answer-option { grid-template-columns: 20px 1fr; padding: 14px; }
  .deliverable-list { border-left: 0; }
  .deliverable-list li { min-height: 0; padding: 21px 0; border-right: 0; }
  .footer-layout { display: grid; }
  .site-footer div:last-child { justify-content: start; }
}

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

@media print {
  @page { margin: 0.55in; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .print-result .site-header,
  .print-result .skip-link,
  .print-result .hero,
  .print-result .problem-section,
  .print-result .mode-chooser,
  .print-result .privacy-note,
  .print-result .assessment-intro,
  .print-result .assessment-form,
  .print-result .deliverables-section,
  .print-result .process-section,
  .print-result .partner-section,
  .print-result .credibility-section,
  .print-result .faq-section,
  .print-result .final-cta,
  .print-result .site-footer,
  .print-result .result-actions { display: none !important; }
  .print-result .mode-section { padding: 0; background: #fff; }
  .print-result .page-width { width: 100%; }
  .print-result .assessment-shell { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .print-result .assessment-result { display: block !important; }
  .print-result .score-row strong { color: #000; }
  .print-result .recommendation-grid { break-inside: avoid; }
  .print-result .result-section { break-inside: avoid; }
}
