:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --error: #b91c1c;
  --error-bg: #fef2f2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.card {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.health-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.health-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

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

.endpoint-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.endpoint-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.endpoint-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f3f4f6;
}

.pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pill[data-state="ok"] {
  background: var(--ok-bg);
  color: var(--ok);
}

.pill[data-state="error"] {
  background: var(--error-bg);
  color: var(--error);
}

.pill[data-state="warn"] {
  background: var(--warn-bg);
  color: var(--warn);
}

.footer {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 480px) {
  .container {
    padding-top: 36px;
  }

  .card {
    padding: 18px;
  }
}
