/* Nodstep website: ink on cool grey, matching the web app. */

:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #f0f2f4;
  --text: #1f2328;
  --muted: #59636e;
  --line: #e1e4e8;
  --line-strong: #c9ced4;
  --accent: #1f2328;
  --accent-hover: #3d444d;
  --accent-text: #ffffff;
  --success: #1a6b3c;
  --success-bg: #dff3e6;
  --warning: #7a5300;
  --warning-bg: #fbefd0;
  --warning-line: #d4a72c;

  --dark-bg: #1f2328;
  --dark-surface: #2a2f36;
  --dark-text: #e6e8eb;
  --dark-muted: #a3abb4;
  --dark-line: #3d444d;

  --shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.06);
  --shadow-pop: 0 18px 48px rgba(31, 35, 40, 0.12), 0 2px 6px rgba(31, 35, 40, 0.06);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --surface: #171a1e;
    --surface-2: #1b1f24;
    --text: #e6e8eb;
    --muted: #9198a1;
    --line: #2a2f36;
    --line-strong: #3d444d;
    --accent: #e6e8eb;
    --accent-hover: #c5cad0;
    --accent-text: #0f1114;
    --success: #7fd6a2;
    --success-bg: #163223;
    --warning: #e8c26a;
    --warning-bg: #382c12;
    --warning-line: #b8892a;

    --dark-bg: #171a1e;
    --dark-surface: #1f2329;
    --dark-line: #2a2f36;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-pop: 0 18px 48px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
code { font-family: var(--mono); font-size: 0.9em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: -48px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-text); z-index: 20;
}
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-text);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-small { padding: 7px 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn .gh { width: 16px; height: 16px; fill: currentColor; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav > a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav > a:not(.btn):hover { color: var(--text); }

@media (max-width: 760px) {
  .nav > a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(36px, 5.2vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
h1 .line { display: block; }
@media (max-width: 640px) { h1 .line { display: inline; } }
.lead { margin-top: 24px; font-size: 19px; color: var(--muted); max-width: 34em; }
.note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* Job card (a picture of the product, not a working UI) */

.job {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 22px 22px 10px;
  font-size: 15px;
}
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job-title { font-weight: 700; }
.job-msg {
  margin: 16px 0 18px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--text);
}
.job-from { display: block; margin-bottom: 4px; font-style: normal; font-size: 13px; color: var(--muted); }

.pill {
  display: inline-block; flex: none;
  padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap;
}
.pill-done { background: var(--success-bg); color: var(--success); }
.pill-wait { background: var(--warning-bg); color: var(--warning); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start;
  padding: 0 0 18px;
}
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; left: 6px; top: 18px; bottom: 2px;
  width: 2px; background: var(--line);
}
.timeline .dot {
  width: 14px; height: 14px; margin-top: 4px;
  border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface);
  position: relative; z-index: 1;
}
.timeline .done .dot { background: var(--accent); border-color: var(--accent); }
.timeline .now .dot { border-color: var(--warning-line); background: var(--warning-bg); box-shadow: 0 0 0 4px var(--warning-bg); }
.timeline strong { display: block; font-weight: 600; }
.timeline .meta { display: block; font-size: 13px; color: var(--muted); }
.timeline .next strong { color: var(--muted); font-weight: 500; }

.fake-actions { display: flex; gap: 8px; margin-top: 10px; }
.fake-btn {
  padding: 4px 14px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font-size: 13px; font-weight: 600;
}
.fake-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }

/* ---------- Sections ---------- */

.section { padding: 96px 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.kicker {
  margin-bottom: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 750; letter-spacing: -0.025em; }
.sub { margin-top: 16px; font-size: 18px; color: var(--muted); }
h3 { font-size: 17px; font-weight: 650; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section-alt .card { background: var(--bg); }
.card p, .feature p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.icon {
  width: 36px; height: 36px; margin-bottom: 16px; padding: 7px;
  border-radius: 9px; background: var(--surface-2);
  fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.feature { padding: 4px 0 8px; border-top: 2px solid var(--text); padding-top: 20px; }

/* How it works */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  counter-reset: none;
}
.steps li { position: relative; padding-right: 8px; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 17px; left: 46px; right: 0;
  height: 2px; background: var(--line);
}
.num {
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 50%; background: var(--accent); color: var(--accent-text);
  font-weight: 700; font-size: 15px;
}
.steps p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

.outcomes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 48px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.outcome { padding: 20px 24px; }
.outcome + .outcome { border-left: 1px solid var(--line); }
.outcome-when { display: block; font-size: 13px; color: var(--muted); }
.outcome-what { display: block; margin-top: 4px; font-weight: 650; }

.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.sources h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 14px;
}
.section-alt .tags li { background: var(--bg); }

/* Uses / who */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.split > *, .hero-grid > * { min-width: 0; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; }
.checks li {
  position: relative; padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--line);
}
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--text); border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}
.who { margin: 28px 0 0; }
.who dt { font-weight: 650; margin-top: 18px; }
.who dt:first-child { margin-top: 0; }
.who dd { margin: 2px 0 0; color: var(--muted); }
.tip {
  margin-top: 32px; padding: 16px 20px;
  border-left: 3px solid var(--text);
  background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
}

/* Get started (inverted band) */

.section-dark {
  background: var(--dark-bg); color: var(--dark-text);
  border-top-color: var(--dark-bg);
}
.section-dark .kicker, .section-dark p { color: var(--dark-muted); }
.section-dark h2, .section-dark strong { color: var(--dark-text); }
.section-dark p code { color: var(--dark-text); }
.section-dark h2 + p { margin-top: 16px; }

.btn-invert { background: var(--dark-text); color: var(--dark-bg); border-color: var(--dark-text); }
.btn-invert:hover { background: #ffffff; border-color: #ffffff; }
.btn-ghost-invert { background: transparent; color: var(--dark-text); border-color: var(--dark-line); }
.btn-ghost-invert:hover { border-color: var(--dark-text); background: transparent; }
.section-dark :focus-visible { outline-color: var(--dark-text); }

.code {
  margin-bottom: 16px;
  background: #0d1013;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--dark-line);
  font-size: 13px; color: var(--dark-muted);
}
.copy {
  font: inherit; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--dark-line); background: transparent; color: var(--dark-text);
  cursor: pointer;
}
.copy:hover { border-color: var(--dark-text); }
.code pre {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  color: #e6e8eb; font-size: 14px; line-height: 1.7;
}
.code code { font-size: inherit; }
.early {
  margin-top: 24px; padding: 14px 16px;
  border: 1px solid var(--dark-line); border-radius: var(--radius);
  font-size: 14px;
}

/* Contribute */

.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta > div:first-child { max-width: 620px; }
.cta .actions { margin-top: 0; flex: none; }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 32px; font-size: 15px; }
.foot-inner { display: flex; justify-content: space-between; gap: 48px; }
.foot-brand { max-width: 320px; }
.foot-brand img { height: 24px; width: auto; }
.foot-brand p { margin-top: 14px; color: var(--muted); }
.foot-links { display: flex; gap: 64px; }
.foot-links h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.foot-links a { display: block; text-decoration: none; padding: 3px 0; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-legal p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 404 ---------- */

.lost { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.lost h1 { font-size: clamp(32px, 5vw, 48px); }
.lost p { color: var(--muted); margin-top: 16px; }
.lost .actions { justify-content: center; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; padding: 0 0 24px; }
  .steps li .num { grid-row: span 2; margin: 0; }
  .steps li:not(:last-child)::after { top: 40px; bottom: 0; left: 17px; right: auto; width: 2px; height: auto; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 0; }
  .cta .actions { margin-top: 24px; }
  .foot-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .lead { font-size: 17px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .outcome + .outcome { border-left: 0; border-top: 1px solid var(--line); }
  .sources { grid-template-columns: 1fr; }
  .foot-links { flex-wrap: wrap; gap: 32px 48px; }
  .job { padding: 18px 16px 6px; }
  .timeline li { grid-template-columns: 22px 1fr; }
  .timeline li > .pill { grid-column: 2; justify-self: start; margin-top: -4px; }

}
