:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1c1e21;
  --muted: #5f6368;
  --border: #e3e5e8;
  --accent: #1877f2;
  --accent-hover: #166fe5;
  --brand: #111827;
  --ok: #1a7f37;
  --err: #c62828;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #181b21;
    --text: #e8eaed;
    --muted: #a0a6ad;
    --border: #2a2f37;
    --brand: #f3f4f6;
    --ok: #4ade80;
    --err: #f87171;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.logo {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--brand); color: var(--card);
  font-weight: 700; font-size: 18px;
}
.wordmark { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--brand); }

.company { font-size: 21px; line-height: 1.3; margin: 0 0 6px; }
.lead { margin: 0 0 14px; color: var(--muted); }

.steps { margin: 0 0 20px; padding-left: 20px; color: var(--muted); }
.steps li { margin: 2px 0; }

.btn {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}
.btn:hover:not(:disabled) { background: var(--accent-hover); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: default; }

.status { min-height: 24px; margin: 12px 0 0; font-weight: 600; }
.status[data-kind="success"] { color: var(--ok); }
.status[data-kind="error"] { color: var(--err); }

.pages { margin: 8px 0 0; padding-left: 20px; }

.note { margin-top: 22px; font-size: 13px; color: var(--muted); }
.note a { color: var(--accent); }

body[data-state="invalid"] .steps,
body[data-state="invalid"] .lead,
body[data-state="done"] .steps { display: none; }
