:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #1a73e8;
  --accent-soft: #e8f0fe;
  --code-bg: #f1f3f5;
  --ill-bg: #eef2f8;
  --ill-line: #d5dbe5;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --text: #e6e8eb;
    --muted: #9aa1ac;
    --border: #2c3038;
    --accent: #6ea8ff;
    --accent-soft: #1e2b44;
    --code-bg: #262a32;
    --ill-bg: #15181d;
    --ill-line: #353a44;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { font: 13px ui-monospace, Menlo, monospace; background: var(--code-bg); padding: 2px 6px; border-radius: 5px; }

main, .nav, .foot { width: min(880px, 100% - 32px); margin: 0 auto; }

.nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.nav-link { font-weight: 600; }

.hero { padding: 48px 0 32px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 16px; max-width: 18ch; letter-spacing: -0.02em; }
.lead { font-size: 17px; color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px clamp(16px, 4vw, 28px); margin-bottom: 16px; }
.panel h2 { font-size: 20px; margin: 0 0 6px; }
.panel > p { margin: 0 0 16px; }

.steps { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.step:first-child { border-top: 0; }
.step > div::before {
  content: counter(step);
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px;
}
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 10px; }
}

/* Step illustrations (inline SVG, themed by the variables above) */
.ill { margin: 0; }
.ill svg { display: block; width: 100%; height: auto; }
.ill-bg { fill: var(--ill-bg); }
.ill-card { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; }
.ill-field { fill: var(--code-bg); }
.ill-tab { fill: var(--code-bg); }
.ill-line { fill: var(--ill-line); }
.ill-dot { fill: var(--ill-line); }
.ill-accent { fill: var(--accent); }
.ill-accent-stroke { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill-focus { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; opacity: .8; }
.ill-folder { fill: #f4b400; }
.ill-knob { fill: #fff; }
.ill-icon { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; }
.ill-pin { fill: var(--accent); stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ill-button { fill: var(--surface); stroke: var(--border); }
.ill-button-on { fill: var(--accent-soft); stroke: var(--accent); }
.ill-label, .ill-label-strong, .ill-title, .ill-mono, .ill-button-text, .ill-badge { font-family: system-ui, -apple-system, sans-serif; }
.ill-label { fill: var(--muted); font-size: 9.5px; }
.ill-label-strong { fill: var(--text); font-size: 10px; font-weight: 600; }
.ill-title { fill: var(--text); font-size: 13px; font-weight: 700; }
.ill-mono { fill: var(--text); font: 11px ui-monospace, Menlo, monospace; }
.ill-button-text { fill: var(--accent); font-size: 9.5px; font-weight: 700; }
.ill-badge { fill: #fff; font-size: 10px; font-weight: 800; }

.copy-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 4px; }
.copy { padding: 2px 9px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: 12px system-ui, sans-serif; cursor: pointer; }
.copy:hover { color: var(--accent); border-color: var(--accent); }

.connect { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; align-items: baseline; }
.connect dt { font-weight: 600; }
.connect dd { margin: 0; }
.connect dd.copy-row { margin: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 28px 0 16px; }
.feature { padding: 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.feature h3 { font-size: 15px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.foot { padding: 24px 0 40px; text-align: center; }

@media (max-width: 520px) {
  .connect { grid-template-columns: 1fr; gap: 4px; }
  .connect dd { margin-bottom: 10px; }
}
