/* LeadForge site — one stylesheet, no build step. */
:root {
  --bg: #f6f7fc;
  --surface: #ffffff;
  --text: #171a2e;
  --muted: #5b6079;
  --line: #e3e6f2;
  --accent: #5b55f0;
  --accent-2: #8b5cf6;
  --good: #128a4f;
  --hero-a: #171a3a;
  --hero-b: #2a2f7a;
  --hero-c: #5b3fd6;
  --shadow: 0 18px 50px rgba(23, 26, 58, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1020;
    --surface: #171a2e;
    --text: #eceefb;
    --muted: #a3a8c6;
    --line: #2a2e4a;
    --accent: #8f8bff;
    --accent-2: #b197fc;
    --good: #4ade80;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- top bar ---- */
.nav { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: inherit; text-decoration: none; }
.nav__brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav__links { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
.nav__links a { color: inherit; text-decoration: none; opacity: 0.85; }
.nav__links a:hover { opacity: 1; text-decoration: underline; }

/* ---- hero ---- */
.hero {
  background: radial-gradient(700px 420px at 85% 0%, rgba(140, 120, 255, 0.45), transparent 70%),
    linear-gradient(135deg, var(--hero-a), var(--hero-b) 55%, var(--hero-c));
  color: #fff;
  padding-bottom: 72px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 44px 0 16px; letter-spacing: -0.02em; max-width: 18ch; }
.hero p.lede { font-size: clamp(17px, 2.2vw, 20px); color: #d6d9ff; max-width: 56ch; margin: 0 0 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; padding: 0; list-style: none; }
.pills li { border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #eef0ff; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 600; text-decoration: none;
  background: #fff; color: #23265e;
}
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); margin-left: 10px; }
.hero__shot { margin-top: 48px; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.16); }

/* ---- sections ---- */
section { padding: 64px 0; }
h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.sub { color: var(--muted); max-width: 62ch; margin: 0 0 36px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.shots { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shots figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.shots figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }

.note { border-left: 4px solid var(--accent); background: var(--surface); padding: 16px 18px; border-radius: 0 12px 12px 0; color: var(--muted); }

/* ---- policy page ---- */
.doc { max-width: 780px; padding-top: 12px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 28px 0 6px; letter-spacing: -0.02em; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc li { margin-bottom: 8px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
code { background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

/* ---- guide page ---- */
.doc--wide { max-width: 860px; }
.doc .lede { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.doc h2 { scroll-margin-top: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; padding: 0; }
.toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 12px 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.doc figure { margin: 22px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.doc figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }
kbd {
  display: inline-block; min-width: 24px; padding: 1px 7px; border-radius: 6px; text-align: center;
  font: 600 13px/1.6 ui-monospace, Consolas, monospace; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px;
}
.doc details { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.doc details summary { cursor: pointer; font-weight: 600; }
.doc details p { margin: 8px 0 2px; color: var(--muted); }
.nav__links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---- how it works (home) ---- */
.how { counter-reset: how; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 0; margin: 0 0 24px; list-style: none; }
.how li { counter-increment: how; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.how li::before {
  content: counter(how); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.how h3 { margin: 0 0 6px; font-size: 18px; }
.how p { margin: 0; color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: inherit; }

@media (max-width: 560px) {
  .btn--ghost { margin: 10px 0 0; }
  .nav__links { gap: 14px; font-size: 14px; }
  section { padding: 48px 0; }
}
