:root {
  color: #172b4d;
  background: #f7f8f9;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #172b4d;
  --muted: #626f86;
  --line: #dfe1e6;
  --line-strong: #b7bec9;
  --paper: #ffffff;
  --wash: #f7f8f9;
  --blue: #0c66e4;
  --blue-dark: #0055cc;
  --blue-wash: #e9f2ff;
  --green: #216e4e;
  --green-wash: #dcfff1;
  --orange: #974f0c;
  --orange-wash: #fff3eb;
  --code: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; line-height: 1.55; }

a { color: var(--blue-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--blue); }
a:focus-visible, summary:focus-visible { outline: 3px solid #85b8ff; outline-offset: 3px; }

code {
  padding: 0.12em 0.3em;
  border-radius: 3px;
  color: #44546f;
  background: #e9edf2;
  font-family: var(--code);
  font-size: 0.9em;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  min-height: 62px;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  place-items: center;
  color: var(--blue);
  font: 800 11px/1 var(--code);
  box-shadow: 4px 4px 0 var(--blue-wash);
}

.site-nav { display: flex; gap: 22px; font-size: 13px; font-weight: 650; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--blue-dark); }

main { min-height: calc(100vh - 190px); }

.hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent calc(50% - 560px), rgb(12 102 228 / 8%) calc(50% - 559px), transparent calc(50% - 558px)),
    var(--paper);
}

.hero-shell {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 70px;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font: 750 11px/1.2 var(--code);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.17; }
h1 { max-width: 770px; margin-bottom: 20px; font-size: clamp(2.5rem, 5.6vw, 4.9rem); letter-spacing: -0.045em; }
h2 { margin-bottom: 13px; font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -0.025em; }
h3 { margin-bottom: 8px; font-size: 1rem; }

.lede { max-width: 680px; margin: 0 0 26px; color: var(--muted); font-size: 1.12rem; }

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid #f5cd47;
  border-radius: 999px;
  color: var(--orange);
  background: var(--orange-wash);
  font: 700 11px/1.2 var(--code);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.formula-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--blue);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 8px 10px 0 var(--blue-wash);
}

.formula-card header { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 11px/1.2 var(--code); text-transform: uppercase; }
.formula-card ol { margin: 0; padding: 0; list-style: none; }
.formula-card li { display: grid; padding: 14px 16px; border-bottom: 1px solid var(--line); grid-template-columns: 32px 1fr; gap: 10px; align-items: baseline; }
.formula-card li:last-child { border-bottom: 0; }
.formula-card li span { color: var(--blue); font: 700 11px/1 var(--code); }
.formula-card code { overflow-wrap: anywhere; }

.section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: grid; margin-bottom: 30px; grid-template-columns: minmax(250px, 0.8fr) 1.2fr; gap: 70px; align-items: end; }
.section-heading p { margin: 0; color: var(--muted); }

.feature-grid { display: grid; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); grid-template-columns: repeat(3, 1fr); }
.feature { min-height: 190px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature:nth-child(3n) { border-right: 0; }
.feature:nth-last-child(-n + 3) { border-bottom: 0; }
.feature-number { display: block; margin-bottom: 34px; color: var(--blue); font: 750 11px/1 var(--code); }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.proof {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}
.proof-copy { position: sticky; top: 96px; }
.proof-copy p, .prose p, .prose li { color: var(--muted); }
.proof-list { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.proof-list li { display: flex; padding: 11px 0; border-bottom: 1px solid var(--line); justify-content: space-between; gap: 20px; font-size: 13px; }
.proof-list strong { color: var(--ink); font-family: var(--code); }
.proof figure { margin: 0; }
.proof img { display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper); box-shadow: 0 10px 28px rgb(9 30 66 / 10%); }
figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }

.callout { padding: 20px 22px; border-left: 4px solid var(--blue); background: var(--blue-wash); }
.callout p:last-child { margin-bottom: 0; }
.callout--plain { border-color: var(--line-strong); background: var(--paper); }

.page-heading { border-bottom: 1px solid var(--line); background: var(--paper); }
.page-heading .section { padding-top: 62px; padding-bottom: 52px; }
.page-heading h1 { max-width: 900px; font-size: clamp(2.3rem, 5vw, 4rem); }

.prose { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 80px; }
.prose h2 { margin-top: 52px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1.65rem; }
.prose h3 { margin-top: 30px; }
.prose li + li { margin-top: 8px; }
.prose .callout { margin: 26px 0; }
.recipe-list { margin: 20px 0; padding: 0; list-style: none; }
.recipe-list li { display: grid; padding: 11px 0; border-bottom: 1px solid var(--line); grid-template-columns: minmax(240px, 0.85fr) 1.15fr; gap: 22px; }
.recipe-list code { width: max-content; max-width: 100%; overflow-wrap: anywhere; }
.recipe-list span { font-size: 13px; }

.facts { width: 100%; border-collapse: collapse; margin: 22px 0; background: var(--paper); font-size: 14px; }
.facts th, .facts td { padding: 11px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts th { width: 31%; color: var(--ink); background: var(--wash); }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-shell { display: flex; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 780px) {
  .site-header { position: static; }
  .nav-shell, .footer-shell { align-items: flex-start; flex-direction: column; }
  .site-nav { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .hero-shell, .proof, .section-heading { grid-template-columns: 1fr; gap: 34px; }
  .hero-shell { padding: 55px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; border-right: 0; }
  .feature:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .feature-number { margin-bottom: 18px; }
  .proof-copy { position: static; }
  .recipe-list li { grid-template-columns: 1fr; gap: 7px; }
}

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

@media print {
  .site-header { position: static; }
  .site-nav { display: none; }
  .hero-shell, .proof { grid-template-columns: 1fr; }
  .proof-copy { position: static; }
}
