:root {
  --paper: #f4f4f1;
  --white: #ffffff;
  --ink: #101010;
  --muted: #686864;
  --line: #c9c9c3;
  --soft: #e8e8e3;
  --max-width: 1180px;
  --radius: 10px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

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

.nav-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-weight: 760;
  text-decoration: none;
}

.wordmark-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  font-size: 14px;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: #3d3d3a;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-nav-mobile-only {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--white);
}

.section {
  padding: clamp(80px, 10vw, 144px) 0;
  border-bottom: 1px solid var(--line);
}

.section-muted {
  background: var(--soft);
}

.section-dark {
  border-color: #30302e;
  background: var(--ink);
  color: var(--white);
}

.hero {
  padding-top: clamp(84px, 10vw, 140px);
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.045em;
  line-height: 1.08;
}

h1 {
  max-width: 790px;
  margin-bottom: 30px;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 850;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 820;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 730px;
  margin-bottom: 20px;
  color: #323230;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.6;
}

.hero-note,
.section-lead,
.section-heading > p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-diagram {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(var(--soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft) 1px, transparent 1px),
    var(--white);
  background-size: 24px 24px;
  box-shadow: var(--shadow);
}

.diagram-label {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.diagram-node {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
}

.diagram-node > span {
  grid-row: 1 / 3;
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.diagram-node strong {
  font-size: 22px;
}

.diagram-node small {
  color: var(--muted);
}

.dark-node {
  background: var(--ink);
  color: var(--white);
}

.dark-node > span {
  border-color: #50504d;
  color: #b9b9b4;
}

.dark-node small {
  color: #cfcfca;
}

.diagram-arrow {
  display: block;
  margin: 7px 0;
  text-align: center;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 52px;
}

.heading-on-dark .eyebrow,
.heading-on-dark > p:last-child {
  color: #b9b9b4;
}

.sticky-copy {
  align-self: start;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.matrix-cell {
  min-height: 230px;
  padding: 26px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--white);
}

.matrix-cell > span {
  display: block;
  margin-bottom: 50px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.matrix-cell p {
  margin-bottom: 0;
  color: var(--muted);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 60px;
  border-top: 1px solid #50504d;
  border-left: 1px solid #50504d;
}

.check-grid article {
  min-height: 275px;
  padding: 22px;
  border-right: 1px solid #50504d;
  border-bottom: 1px solid #50504d;
}

.check-grid article > span {
  display: block;
  margin-bottom: 84px;
  color: #90908b;
  font-size: 12px;
  font-weight: 800;
}

.check-grid article p {
  margin-bottom: 0;
  color: #b9b9b4;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.outline-card {
  min-height: 255px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.outline-card p {
  margin: 0;
  color: var(--muted);
}

.card-number {
  display: block;
  margin-bottom: 50px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 36px;
  border: 1px solid var(--ink);
}

.boundary-grid > div {
  min-height: 220px;
  padding: 30px;
}

.boundary-grid > div + div {
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.boundary-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.boundary-grid > div + div span,
.boundary-grid > div + div p {
  color: #b9b9b4;
}

.boundary-grid strong {
  display: block;
  max-width: 430px;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.35;
}

.boundary-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.fit-scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: stretch;
}

.scenario-list {
  border-top: 1px solid var(--ink);
}

.scenario-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-list article > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.scenario-list p {
  margin: 0;
  color: var(--muted);
}

.fit-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
}

.panel-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 0;
  margin: 28px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list li {
  position: relative;
  padding: 16px 0 16px 34px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  left: 4px;
  content: "✓";
  font-weight: 900;
}

.fit-note {
  margin: 0;
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  min-height: 270px;
  padding: 24px 22px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--line);
}

.process-list li:last-child {
  border-right: 0;
}

.process-list li::before {
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.process-list span {
  display: block;
  margin-bottom: 80px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-intake {
  background: #deded8;
}

.intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.intake-copy > p:not(.eyebrow) {
  color: #3e3e3b;
  font-size: 18px;
}

.paid-boundary {
  margin-top: 34px;
  padding: 24px 0 0;
  border-top: 1px solid #969690;
}

.paid-boundary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.paid-boundary p {
  margin: 0;
  color: var(--muted);
}

.diagnosis-form {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.form-field label {
  font-weight: 750;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 4px;
  background: transparent;
  color: var(--ink);
}

.form-field textarea {
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #858580;
}

.form-button {
  width: 100%;
  margin-top: 8px;
}

.form-status {
  min-height: 27px;
  margin: 16px 0 0;
  padding: 0 4px;
  color: #292927;
  font-weight: 700;
}

.faq-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(40px, 7vw, 90px);
  margin-top: clamp(80px, 10vw, 130px);
  padding-top: clamp(64px, 8vw, 100px);
  border-top: 1px solid #969690;
}

.faq-heading {
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid #aaa9a3;
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  padding: 18px 0;
  background: transparent;
  color: var(--ink);
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.faq-item button span {
  font-size: 28px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.faq-item button[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.faq-answer {
  max-width: 710px;
  padding: 0 48px 22px 0;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

.site-footer {
  padding: 32px 0;
  background: var(--ink);
  color: #b9b9b4;
  font-size: 13px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  margin: 0;
}

@media (max-width: 1100px) {
  .delivery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding-block: 12px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .site-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    padding: 8px 10px;
    text-align: center;
    white-space: normal;
  }

  .site-nav-mobile-only {
    display: flex;
  }

  .nav-wrap > .button-small {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .intake-grid,
  .faq-panel {
    grid-template-columns: 1fr;
  }

  .hero-diagram {
    max-width: 620px;
  }

  .check-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list li:nth-child(2),
  .process-list li:nth-child(4) {
    border-right: 0;
  }

  .process-list li:nth-child(n + 3) {
    border-top-color: var(--line);
  }

  .faq-panel {
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .nav-wrap {
    min-height: 64px;
    gap: 12px;
  }

  .wordmark {
    font-size: 13px;
  }

  .wordmark-mark {
    width: 29px;
    height: 29px;
  }

  .button-small {
    min-height: 38px;
    padding-inline: 13px;
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    padding-top: 74px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 61px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero-lead {
    font-size: 18px;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .diagram-node {
    grid-template-columns: 58px 1fr;
    padding: 16px;
  }

  .matrix-grid,
  .check-grid,
  .delivery-grid,
  .boundary-grid,
  .fit-scenario-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .matrix-cell,
  .check-grid article,
  .outline-card,
  .process-list li {
    min-height: 0;
  }

  .matrix-cell > span,
  .check-grid article > span,
  .card-number,
  .process-list span {
    margin-bottom: 32px;
  }

  .boundary-grid > div + div {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .process-list li,
  .process-list li:nth-child(2),
  .process-list li:nth-child(4),
  .process-list li:nth-child(n + 3) {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 4px 16px;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-list li::before {
    display: none;
  }

  .process-list span {
    grid-row: 1 / 3;
    margin: 4px 0 0;
  }

  .intake-grid {
    gap: 42px;
  }

  .diagnosis-form {
    padding: 24px 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

