:root {
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── Page intro ─────────────────────────────────────── */

.intro {
  padding: 56px 0 48px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

main h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 20px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 64px;
  line-height: 1.55;
}

/* ── Steps ───────────────────────────────────────────── */
.step {
  margin: 0 0 72px;
  border-top: 1px solid var(--border);
}

.step-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 28px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-body p {
  max-width: 680px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.65;
}

.step-body p code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--surface-2, rgba(0, 0, 0, .05));
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── pre / code blocks ───────────────────────────────── */
.step-body pre {
  background: var(--code-bg, #1d1d1b);
  color: var(--code-fg, #f1efe9);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  border-radius: 8px;
  padding: 20px 22px;
  overflow-x: auto;
  margin: 0 0 28px;
  white-space: pre;
}

/* ── Field definitions ───────────────────────────────── */
.field-list {
  margin: 0 0 28px;
  display: grid;
  gap: 16px;
}

.field-list dt {
  font-weight: 600;
  font-family: var(--mono);
  font-size: 14px;
  margin: 0 0 4px;
}

.field-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 640px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
}

/* ── Result summary box ──────────────────────────────── */
.result-box {
  background: var(--surface, #f5f4f0);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 0 0 24px;
  font-variant-numeric: tabular-nums;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-model {
  font-weight: 600;
  font-family: var(--mono);
  font-size: 13px;
  min-width: 220px;
}

.result-stat {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.bad {
  color: var(--bad, #b23a3a);
}

.badge.ok {
  color: var(--ok, #2f7d4f);
}

.badge.warn {
  color: var(--warn, #b7791f);
}

.result-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ── CTA link ────────────────────────────────────────── */
.cta-link {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .15s;
}

.cta-link:hover {
  opacity: .88;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .lead {
    font-size: 16px;
    margin-bottom: 48px;
  }

  .step {
    padding-top: 40px;
    margin-bottom: 48px;
  }

  .result-model {
    min-width: unset;
    width: 100%;
  }

  .result-stat {
    width: 100%;
  }
}