:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #16202e;
  --muted: #5b6676;
  --border: #dde3ec;
  --accent: #0a66d8;
  --accent-text: #ffffff;
  --hero-from: #0a3d8f;
  --hero-to: #0a66d8;
  --ok: #138a4b;
  --warn: #b25e00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141c;
    --surface: #161e29;
    --text: #e7edf5;
    --muted: #9aa7b8;
    --border: #2a3646;
    --accent: #4d9bff;
    --accent-text: #0b1420;
    --hero-from: #0b2a5c;
    --hero-to: #12408a;
    --ok: #4cc98a;
    --warn: #f0a24a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.5rem; margin-top: 2.5rem; }
h3 { font-size: 1.1rem; }

code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }

.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  padding: 72px 0 64px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; opacity: .85; margin: 0 0 .75rem; }
.lead { font-size: 1.15rem; max-width: 640px; opacity: .95; }

.btn {
  display: inline-block;
  background: #fff;
  color: var(--hero-from);
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin-top: .5rem;
}
.btn.small { background: var(--accent); color: var(--accent-text); padding: 8px 14px; margin: 0; }
.btn:disabled { opacity: .6; cursor: wait; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.muted { color: var(--muted); }

.live { margin-top: -32px; position: relative; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.live h2 { margin-top: 0; }
.live-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.grid div { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.grid dt { font-size: .8rem; color: var(--muted); }
.grid dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }

.note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 4px; }

.flow { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.flow li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.flow span {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  display: grid; place-items: center; font-weight: 700;
}
.flow p { margin: 0; }

.cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cols .muted { margin-top: -.5em; font-size: .9rem; }

.pros { padding-left: 1.2em; }
.pros li { margin-bottom: .4em; }

footer { padding: 48px 16px 32px; font-size: .9rem; }
