:root {
  color-scheme: dark;
  --bg: #0d1117;
  --surface: #151b24;
  --surface-2: #1c2430;
  --text: #e8ecf2;
  --muted: #97a3b6;
  --border: #263041;
  --accent: #5b8cff;
  --accent-ink: #0b1020;
  --accent-soft: #1a2747;
  --good: #4cc38a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --radius: 14px;
  --maxw: 1080px;
}

/* Dark is the default. The toggle (theme.js) sets data-theme on <html> and remembers the choice. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #11151c;
  --muted: #566074;
  --border: #dde2ea;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-soft: #e4ecff;
  --good: #0f7b4f;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav.main a:hover { color: var(--text); }
nav.main a.btn-primary, nav.main a.btn-primary:hover { color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* Hero */
.hero { padding: 84px 0 56px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.1; margin: 18px auto 16px; max-width: 18ch; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: .88rem; margin-top: 14px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--surface-2); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); max-width: 62ch; margin: 0 0 36px; font-size: 1.08rem; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }
.tag {
  display: inline-block; margin-top: 12px; padding: 2px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good);
}
.tag.paid { background: var(--accent-soft); color: var(--accent); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }

/* Pricing */
.price-card h3 { font-size: 1.15rem; }
.price-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.price-card li { margin: 4px 0; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Final CTA */
.cta-band { text-align: center; }
.cta-band .card { padding: 48px 24px; }

footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* Legal / simple pages */
.doc { padding: 56px 0; max-width: 760px; }
.doc h1 { font-size: 2rem; margin: 0 0 8px; }
.doc h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 820px) {
  .grid.cols-3, .steps { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  nav.main a.hide-sm { display: none; }
  .hero { padding-top: 56px; }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Production additions */
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 20; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.tight { margin-top: 28px; }
.narrow { max-width: 760px; }
.cta-logo { margin: 0 auto 12px; }
.card-soft { background: transparent; border-style: dashed; box-shadow: none; }
code { font: .88em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.note { text-align: left; background: var(--accent-soft); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 18px 0; color: var(--text); font-size: .95rem; }
.facts { text-align: left; margin: 26px auto 0; max-width: 700px; border-top: 1px solid var(--border); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.doc h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.doc ul { padding-left: 20px; }
.doc { margin-left: auto; margin-right: auto; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 10px; border: 1px solid var(--border); background: transparent;
  color: var(--text); cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* Layout fixes */
.cta-band .section-lead { margin: 0 auto 22px; text-align: center; }
.grid.cols-3 .card-soft { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 820px) { .grid.cols-3 .card-soft { grid-column: auto; } }
