/* Mobile-first, no external requests. Tokens on :root, redefined for dark mode. */
:root {
  --bg: #ffffff;
  --fg: #1a1d21;
  --muted: #5b6470;
  --accent: #1f3a5f;
  --accent-fg: #ffffff;
  --line: #e3e7ec;
  --card: #f5f7fa;
  --code: #eef1f5;
  --focus: #7aa7e8;
  --max: 44rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216;
    --fg: #e7eaee;
    --muted: #a3acb8;
    --accent: #8fb4ec;
    --accent-fg: #0f1216;
    --line: #262c35;
    --card: #171c23;
    --code: #1e2530;
    --focus: #bcd3f5;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216;
  --fg: #e7eaee;
  --muted: #a3acb8;
  --accent: #8fb4ec;
  --accent-fg: #0f1216;
  --line: #262c35;
  --card: #171c23;
  --code: #1e2530;
  --focus: #bcd3f5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0 16px;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
header, main, footer { max-width: var(--max); margin: 0 auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.75rem, 5.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); margin-top: 2.5rem; }
h3 { font-size: 1.1rem; margin-top: 1.75rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
code { background: var(--code); padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.92em; }

.hero { padding: 2.5rem 0 1rem; }
.kicker { color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 1.5rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.button.secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.link { font-weight: 500; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1rem 1rem 3.25rem; position: relative; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 1rem; top: 1rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  font-weight: 700; font-size: 0.9rem; display: grid; place-items: center;
}
.steps strong { display: block; margin-bottom: 0.25rem; }
.steps span { color: var(--muted); }

.trust { padding-left: 1.2rem; margin: 0; display: grid; gap: 0.6rem; }
.trust li { padding-left: 0.2rem; }
/* Long repository names and addresses must wrap on narrow screens instead of widening the page. */
a, code { overflow-wrap: anywhere; }

figure { margin: 1.5rem 0; }
figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; display: block; background: var(--card); }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

.signup { display: grid; gap: 0.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; }
.signup label { font-weight: 600; margin-top: 0.5rem; }
.signup .optional { color: var(--muted); font-weight: 400; }
.signup input[type="email"], .signup input[type="text"] {
  width: 100%; font: inherit; padding: 0.65rem 0.75rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg);
}
.signup .button { margin-top: 0.75rem; justify-self: start; }
.hidden { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.95rem; }
footer p { margin: 0 0 0.35rem; }

@media (min-width: 640px) {
  body { padding: 0 24px; }
  .hero { padding-top: 4rem; }
}
