:root {
  --ink: #14231d;
  --muted: #5b6d64;
  --paper: #f4f1e8;
  --surface: #fffdf7;
  --line: #d7d9cb;
  --green: #176b4b;
  --green-dark: #0f4e36;
  --lime: #c9f06a;
  --code: #17241f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  color: var(--surface); background: var(--green); font-family: Georgia, serif; font-size: 22px;
}
nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--green); }

.hero, .section, footer { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.hero { padding: 104px 0 72px; }
.eyebrow, .kicker { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow span { width: 8px; height: 8px; background: var(--lime); border: 2px solid var(--green); border-radius: 50%; }
h1 { max-width: 920px; margin: 20px 0 24px; font: 700 clamp(50px, 8vw, 94px)/.96 Georgia, serif; letter-spacing: -.055em; }
.hero-copy { max-width: 700px; color: var(--muted); font-size: clamp(18px, 2.2vw, 23px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--green); border-radius: 8px; font-weight: 750; text-decoration: none; }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { color: var(--green); }
.button.secondary:hover { background: #e8eddf; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 76px 0 0; border-block: 1px solid var(--line); }
.facts div { padding: 22px 24px; border-right: 1px solid var(--line); }
.facts div:first-child { padding-left: 0; }
.facts div:last-child { border-right: 0; }
.facts dt { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 5px 0 0; font-weight: 700; }

.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: .65fr 1fr; gap: 0 48px; align-items: start; }
.section-heading .kicker { grid-row: span 2; }
h2 { margin: 0; font: 700 clamp(36px, 5vw, 58px)/1.02 Georgia, serif; letter-spacing: -.035em; }
.section-heading > p:last-child { max-width: 620px; color: var(--muted); font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0; margin: 64px 0 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.steps li { min-height: 270px; padding: 26px; background: var(--surface); }
.steps span, .control-number { color: var(--green); font: 700 13px/1 monospace; }
.steps h3, .controls h3, .detail-grid h3 { margin: 64px 0 10px; font-size: 18px; }
.steps p, .controls p, .detail-grid p { color: var(--muted); }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.split > pre { align-self: end; }
pre { overflow-x: auto; padding: 20px; border-radius: 10px; color: #e8f4ed; background: var(--code); font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.detail-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.detail-grid div { padding: 28px; background: var(--surface); }
.detail-grid h3 { margin: 0 0 8px; }
.detail-grid p { margin: 0; }

.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.controls article { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.controls h3 { margin: 26px 0 2px; }
.controls pre { margin-top: auto; font-size: 12px; }
.contact-card { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 18px; padding: 44px; border-radius: 12px; background: var(--lime); }
.contact-card p { max-width: 650px; }
.contact-card .button { flex: 0 0 auto; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 44px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 800px) {
  nav a:not(:last-child) { display: none; }
  .hero { padding-top: 72px; }
  .facts, .steps, .controls, .detail-grid { grid-template-columns: 1fr; }
  .facts div { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
  .section { padding: 72px 0; }
  .section-heading, .split { grid-template-columns: 1fr; }
  .section-heading .kicker { grid-row: auto; }
  .steps li { min-height: auto; }
  .steps h3 { margin-top: 30px; }
  .contact-card, footer { align-items: stretch; flex-direction: column; }
  .contact-card .button { width: 100%; overflow-wrap: anywhere; }
}

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