:root {
  --paper: #f6f1e8;
  --paper-2: #fffaf1;
  --ink: #1b1b18;
  --muted: #656158;
  --rule: #d8cfbf;
  --green: #0f4a35;
  --green-dark: #092f24;
  --clay: #a86448;
  --sand: #d8b880;
  --code: #101713;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
a { color: inherit; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
  background: rgba(246, 241, 232, .96);
  position: sticky;
  top: 0;
  z-index: 10;
}
.wordmark {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.1;
}
.wordmark span { display: block; color: var(--clay); }
.wordmark strong { display: block; font-size: 16px; color: var(--ink); }
.top-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}
.top-nav a, .guide-strip a, .site-footer a {
  text-decoration: none;
  color: inherit;
}
.top-nav a:hover, .guide-strip a:hover, .site-footer a:hover { color: var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: clamp(24px, 5vw, 68px);
  padding: clamp(36px, 6vw, 78px) clamp(18px, 4vw, 56px) 28px;
  border-bottom: 1px solid var(--rule);
}
.hero-copy { align-self: end; max-width: 800px; }
.eyebrow, .section-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: .98;
}
h1 { font-size: clamp(46px, 6.4vw, 86px); max-width: 900px; }
h2 { font-size: clamp(34px, 5vw, 68px); }
h3 {
  margin: 18px 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}
.lede {
  max-width: 720px;
  font-size: clamp(18px, 2vw, 23px);
  color: #34332f;
}
.meta-line {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  color: var(--muted);
  font-size: 14px;
}
.hero-figure { margin: 0; }
.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.hero-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.guide-strip {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  white-space: nowrap;
  background: var(--paper-2);
}
.guide-strip span {
  color: var(--clay);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}
.guide-strip a { color: #37352f; font-size: 14px; }

.section {
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.intro-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 34px;
}
.section-text p, .context-copy p {
  max-width: 920px;
  font-size: 18px;
  color: #34332f;
}
.flow {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(9, auto);
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  border-top: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  color: var(--green-dark);
  font-size: 14px;
}
.flow span {
  padding: 10px 12px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}

.methods-section {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) 1.25fr;
  gap: 44px;
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.method-grid article {
  min-height: 260px;
  padding: 24px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.method-grid span {
  color: var(--clay);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
}
.method-grid p { color: #3d3b36; }

.matrix-section { background: var(--paper-2); }
.matrix-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 520px);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}
.matrix-heading p { color: var(--muted); }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: #fffdf7;
}
table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
}
thead th {
  background: var(--green);
  color: #f8f2e7;
  font-weight: 700;
}
tbody th { width: 190px; font-weight: 700; }
.guidance-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 22px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.guidance-columns p {
  margin: 0;
  padding: 18px;
  background: var(--paper);
  color: #3a3833;
}

.settlement-section {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) 1.3fr;
  gap: 54px;
  padding: clamp(48px, 8vw, 100px) clamp(18px, 4vw, 56px);
  background: var(--green-dark);
  color: #f9f1e4;
}
.settlement-section .eyebrow { color: var(--sand); }
.sequence {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.25);
}
.sequence li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
}
.sequence span { color: var(--sand); font-family: var(--serif); font-size: 30px; }
.sequence strong { font-size: 21px; }
.sequence p {
  grid-column: 2;
  margin: -8px 0 0;
  color: rgba(249,241,228,.78);
}

.checklist-section {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: start;
}
.sticky-note {
  position: sticky;
  top: 96px;
}
.checklist {
  columns: 2;
  column-gap: 28px;
}
.checklist p {
  break-inside: avoid;
  margin: 0 0 12px;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.checklist p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--green);
}

.integration-section {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr);
  gap: 42px;
  background: #eee6d8;
}
.code-panel {
  background: var(--code);
  color: #d6eadb;
  border: 1px solid #31453a;
  padding: 24px;
  align-self: start;
  overflow-x: auto;
}
pre { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.65; }
.integration-section p { color: #383630; }

.context-section {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) 1.2fr;
  gap: 48px;
}
.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) 1.25fr;
  gap: 44px;
  background: var(--paper-2);
}
details {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
details:last-child { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 24px;
}
details p {
  max-width: 820px;
  color: #3b3934;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, .65fr);
  gap: 34px;
  padding: 46px clamp(18px, 4vw, 56px);
  background: #171713;
  color: #f5ead8;
}
.site-footer h2, .site-footer h3 { margin: 0 0 14px; }
.site-footer h2 { font-size: 34px; }
.site-footer h3 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; color: var(--sand); }
.site-footer a { display: block; color: rgba(245,234,216,.78); margin: 8px 0; }
.footer-brand p { max-width: 520px; color: rgba(245,234,216,.78); }
.footer-brand .disclaimer {
  color: #fff7e8;
  border-left: 3px solid var(--sand);
  padding-left: 14px;
}
.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 18px;
}

.simple-page {
  max-width: 920px;
  padding: clamp(44px, 8vw, 92px) clamp(18px, 4vw, 56px);
}
.simple-page h1 { font-size: clamp(42px, 7vw, 76px); }
.simple-page p, .simple-page li { font-size: 18px; color: #36342f; }
.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  max-width: 620px;
}
.contact-form label { font-weight: 700; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
}
.contact-form button {
  width: fit-content;
  border: 0;
  background: var(--green);
  color: #fff8ea;
  padding: 13px 18px;
  font: inherit;
  cursor: pointer;
}
.form-status { min-height: 24px; color: var(--green); font-weight: 700; }

@media (max-width: 980px) {
  .site-header, .hero, .intro-section, .methods-section, .matrix-heading, .settlement-section, .checklist-section, .integration-section, .context-section, .faq-section, .site-footer {
    grid-template-columns: 1fr;
  }
  .site-header { align-items: flex-start; }
  .top-nav { flex-wrap: wrap; gap: 12px 18px; }
  .flow { grid-column: 1; grid-template-columns: 1fr; }
  .flow b { transform: rotate(90deg); justify-self: center; }
  .method-grid { grid-template-columns: 1fr; }
  .guidance-columns { grid-template-columns: 1fr 1fr; }
  .sticky-note { position: static; }
}

@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .guidance-columns { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .sequence li { grid-template-columns: 48px 1fr; }
  .footer-legal { flex-direction: column; gap: 4px; }
}
