:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --ink: #17211d;
  --muted: #5c6762;
  --line: #d9ded5;
  --panel: #ffffff;
  --panel-alt: #edf2ef;
  --accent: #235c4a;
  --accent-strong: #123c31;
  --focus: #b8912f;
  --shadow: 0 18px 48px rgba(23, 33, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

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

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: center;
  min-height: 540px;
  padding: 36px 0 48px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 4.85rem;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 3.3rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 0;
}

.hero-subhead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-strong);
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--accent-strong);
  color: white;
}

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

.protocol-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel-line {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
}

.panel-line:last-child {
  border-bottom: 0;
}

.panel-line span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

.panel-line strong {
  font-size: 1.1rem;
}

.panel-line.muted {
  background: var(--panel-alt);
}

.section {
  padding: 82px 0;
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: start;
}

.section-grid p,
.feature-grid p,
.audience-grid p,
.site-footer p {
  color: var(--muted);
}

.section-grid p {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.feature-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.audience-grid article {
  min-height: 160px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
}

.feature-grid p,
.audience-grid p {
  margin-bottom: 0;
}

.flow-section {
  overflow: hidden;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--panel);
}

.flow-list li {
  position: relative;
  min-height: 112px;
  padding: 20px 18px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

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

.flow-list li::after {
  content: "->";
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.flow-list li:last-child::after {
  content: "";
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.65fr);
  gap: 44px;
  align-items: start;
}

.cta-links {
  display: grid;
  border: 1px solid var(--line);
  background: var(--panel);
}

.cta-links a {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.cta-links a:last-child {
  border-bottom: 0;
}

.cta-links a:hover {
  background: var(--panel-alt);
}

.site-footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    flex-wrap: wrap;
  }

  .hero,
  .section-grid,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .feature-grid,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-list li {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-list li:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-subhead {
    font-size: 1.05rem;
  }

  .protocol-panel {
    display: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .feature-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }
}
