:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5e6b78;
  --line: #d8dee6;
  --paper: #f6f5f0;
  --panel: #ffffff;
  --green: #276c5b;
  --red: #b33d35;
  --gold: #9a6b12;
  --blue: #245d90;
  --code: #111820;
}

* {
  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;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 245, 240, 0.94);
  backdrop-filter: blur(12px);
}

.topbar span,
.hero p,
.flow p,
.kit p {
  color: var(--muted);
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  max-width: 760px;
  padding: 64px 0 34px;
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 0 36px;
}

.flow article,
.choices article {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--panel);
}

.step {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.surface {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(420px, 1.1fr);
  gap: 24px;
  align-items: stretch;
  padding: 20px 0 48px;
  border-top: 1px solid var(--line);
}

.api,
.artifact {
  min-height: 520px;
  border: 1px solid #cbd3df;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(31, 42, 55, 0.12);
  overflow: hidden;
}

.api-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.api-bar span {
  color: var(--muted);
}

pre {
  margin: 18px;
  border-radius: 8px;
  padding: 18px;
  overflow: auto;
  background: var(--code);
  color: #d7f4e8;
  font-size: 14px;
  line-height: 1.55;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.browser {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #edf1f5;
}

.browser span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #94a3b8;
}

.browser code {
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
}

.report {
  padding: 40px;
}

.report-kicker {
  color: var(--gold);
  font-weight: 800;
}

.report h2 {
  max-width: 520px;
  font-size: 34px;
}

.finding {
  margin-top: 14px;
  border-left: 5px solid var(--line);
  padding: 16px 18px;
  background: #fbfcfd;
  font-weight: 700;
}

.finding.high {
  border-color: var(--red);
}

.finding.medium {
  border-color: var(--gold);
}

.finding.low {
  border-color: var(--blue);
}

.kit {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
  gap: 24px;
  padding: 42px 0 64px;
  border-top: 1px solid var(--line);
}

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

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 12px 16px;
  }

  h1 {
    font-size: 36px;
  }

  .flow,
  .surface,
  .kit,
  .choices {
    grid-template-columns: 1fr;
  }
}
