:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --surface: #ffffff;
  --ink: #2d2a26;
  --muted: #625c51;
  --line: #d8d1c4;
  --green: #2f7d6a;
  --green-deep: #174f43;
  --gold: #d8a63a;
  --orange: #e56f4a;
  --blue: #405d8f;
  --shadow: 0 18px 50px rgba(45, 42, 38, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  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;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: rgba(247, 243, 234, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border: 1px solid rgba(23, 79, 67, 0.3);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
}

.nav a:focus-visible,
.nav a:hover {
  border-color: var(--line);
  color: var(--ink);
  outline: none;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(22px, 4vw, 52px) clamp(18px, 4vw, 56px) 56px;
}

.intro {
  align-items: center;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  min-height: calc(100vh - 176px);
}

.intro-copy {
  max-width: 620px;
}

.eyebrow {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: 56px;
  max-width: 620px;
}

h2 {
  font-size: 34px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  margin: 22px 0 0;
  max-width: 620px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 14px;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.button:focus-visible,
.button:hover {
  box-shadow: 0 0 0 4px rgba(47, 125, 106, 0.16);
  outline: none;
}

.flow-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  width: 100%;
}

.signal-row {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px 0 52px;
}

.signal-row div {
  background: rgba(255, 255, 255, 0.48);
  padding: 20px;
}

.signal-row span {
  color: var(--orange);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.signal-row strong {
  display: block;
  font-size: 16px;
}

.section {
  margin-top: 62px;
}

.section-heading {
  margin-bottom: 24px;
  max-width: 680px;
}

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

.resource-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  min-height: 156px;
  padding: 20px;
}

.resource-card:nth-child(2n) {
  border-left-color: var(--gold);
}

.resource-card:nth-child(3n) {
  border-left-color: var(--orange);
}

.resource-card span {
  color: var(--blue);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.resource-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.resource-card:focus-visible,
.resource-card:hover {
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 220px;
  padding: 20px;
}

.steps span {
  color: var(--orange);
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 20px;
}

.steps strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.steps p {
  color: var(--muted);
  margin: 14px 0 0;
}

.tracking-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr) auto;
  padding: 22px;
}

code {
  align-self: center;
  background: #eef4f1;
  border: 1px solid #c9ded7;
  border-radius: 8px;
  color: var(--green-deep);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
  padding: 14px;
}

.tracking-panel p {
  color: var(--muted);
  margin: 0;
}

.text-link {
  align-self: center;
  color: var(--green-deep);
  font-weight: 900;
  white-space: nowrap;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 28px 18px 36px;
}

.footer a {
  color: var(--green-deep);
  font-weight: 800;
}

@media (max-width: 920px) {
  .intro,
  .resource-grid,
  .steps,
  .tracking-panel,
  .signal-row {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .tracking-panel {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 17px;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .resource-card,
  .steps li,
  .tracking-panel {
    min-height: auto;
  }
}
