:root {
  --bg: #f4f5f7;
  --bg-alt: #ffffff;
  --bg-dark: #14141f;
  --surface: #ffffff;
  --border: #e3e5ea;
  --border-dark: #2a2a3a;
  --text: #15161c;
  --text-muted: #5b5e6b;
  --text-faint: #8b8e9a;
  --accent: #5b4ff5;
  --accent-dark: #4a3fe0;
  --accent-tint: #eeecfe;
  --warn-bg: #fff4e8;
  --warn-border: #f3c98e;
  --warn-text: #8a4a0a;
  --code-bg: #15161f;
  --code-text: #d7d9e4;
  --radius: 10px;
  --radius-sm: 6px;
  --max-w: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--accent-tint);
  color: var(--accent-dark);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}
.eyebrow-light { color: #b9b4ff; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand svg { color: var(--accent); }

.topnav {
  display: flex;
  gap: 24px;
  flex: 1;
  min-width: 0;
}
.topnav a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.topnav a:hover { color: var(--text); }

.topbar-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.progress-track {
  width: 90px;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}
#progress-label {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
}
.topnav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--border);
}
.topnav-mobile a {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.topnav-mobile.open { display: flex; }

@media (max-width: 860px) {
  .topnav { display: none; }
  .nav-toggle { display: block; }
  .topbar-progress { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-faint); }

.btn-reset {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 8px 14px;
}
.btn-reset:hover { color: var(--text); border-color: var(--text-faint); }

.btn-mark {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1px solid var(--accent-tint);
  font-size: 13px;
  padding: 8px 16px;
}
.btn-mark:hover { background: var(--accent-tint); }
.btn-mark.is-done {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-mark-dark {
  background: transparent;
  border-color: var(--border-dark);
  color: #cfcdfc;
}
.btn-mark-dark:hover { background: rgba(255,255,255,0.06); }
.btn-mark-dark.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 56px;
}
.hero-inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.6;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ---------- Checklist card ---------- */
.checklist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04);
}
.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.checklist-head h2 { font-size: 1.3rem; }
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 760px) {
  .checklist-grid { grid-template-columns: 1fr; }
  .checklist-head { flex-direction: column; }
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checklist-item:hover { border-color: var(--text-faint); }
.checklist-item.is-done {
  background: var(--accent-tint);
  border-color: #c9c3fb;
}
.checklist-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1.5px solid var(--text-faint);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist-item.is-done .checklist-checkbox {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.checklist-checkbox svg { display: none; width: 12px; height: 12px; }
.checklist-item.is-done .checklist-checkbox svg { display: block; }
.checklist-text { flex: 1; min-width: 0; }
.checklist-step-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.checklist-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }

/* ---------- Step sections ---------- */
.step { padding: 72px 0; border-top: 1px solid var(--border); }
.step-alt { background: var(--bg-alt); }
.step-dark { background: var(--bg-dark); color: #e9e9f2; border-top-color: var(--border-dark); }
.step-dark .lede { color: #b2b1c4; }
.step-dark h3 { color: #fff; }
.step-dark p { color: #c6c5d6; }

.step-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.step h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; max-width: 24ch; }
.lede { font-size: 16px; color: var(--text-muted); max-width: 62ch; margin-bottom: 36px; line-height: 1.6; }

/* ---------- Fact grid ---------- */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.fact-grid-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.fact-grid-4 { grid-template-columns: repeat(4, 1fr); margin-top: 32px; margin-bottom: 0; }
@media (max-width: 900px) {
  .fact-grid, .fact-grid-3, .fact-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fact-grid, .fact-grid-3, .fact-grid-4 { grid-template-columns: 1fr; }
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.fact-card-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}
.fact-card-warn .fact-tag,
.fact-card-warn .fact-title { color: var(--warn-text); }
.fact-card-wide { margin: 20px 0 28px; max-width: 100%; }
.fact-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.fact-title { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; line-height: 1.35; }
.fact-body { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Loop ---------- */
.loop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
}
.loop-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.loop-step {
  flex: 1 1 160px;
  min-width: 150px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.loop-step-accent { background: var(--accent-tint); }
.loop-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.loop-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.loop-body { font-size: 12.5px; color: var(--text-muted); }
.loop-step-accent .loop-body { color: var(--accent-dark); }
.loop-arrow {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  font-size: 18px;
}
@media (max-width: 760px) {
  .loop-row { flex-direction: column; }
  .loop-arrow { transform: rotate(90deg); justify-content: center; padding: 2px 0; }
}

/* ---------- Two col info ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.info-card h3 { font-size: 15px; margin-bottom: 10px; }
.info-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.55; }
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.info-card li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.info-footnote { font-size: 12.5px; color: var(--text-faint); margin-bottom: 0; }

/* ---------- Wizard (Step 1) ---------- */
.wizard {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .wizard { grid-template-columns: 1fr; } }

.wizard-q { margin-bottom: 26px; }
.wizard-q:last-child { margin-bottom: 0; }
.wizard-q-title { font-weight: 700; font-size: 14.5px; margin-bottom: 12px; }
.wizard-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) { .wizard-options { grid-template-columns: 1fr; } }

.wizard-option {
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wizard-option:hover { border-color: var(--text-faint); }
.wizard-option.is-selected {
  border-color: var(--accent);
  background: var(--accent-tint);
}
.wizard-option-title { font-weight: 600; font-size: 14px; }
.wizard-option-sub { font-size: 12px; color: var(--text-faint); }
.wizard-option.is-selected .wizard-option-sub { color: var(--accent-dark); }

.wizard-extras {
  margin-top: 14px;
  background: var(--accent-tint);
  border: 1px solid #c9c3fb;
  border-radius: var(--radius-sm);
  padding: 18px;
}
.wizard-extras-title { font-weight: 700; font-size: 13.5px; margin-bottom: 12px; color: var(--accent-dark); }
.wizard-extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 560px) { .wizard-extras-grid { grid-template-columns: 1fr; } }
.wizard-extras-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wizard-extras-name { font-weight: 600; font-size: 13px; }
.wizard-extras-desc { font-size: 12px; color: var(--text-muted); }
.wizard-extras-note {
  font-size: 12.5px;
  color: var(--accent-dark);
  line-height: 1.55;
  margin-top: 8px;
}
.wizard-extras-note:first-of-type { margin-top: 0; }

.wizard-result {
  position: sticky;
  top: 88px;
  background: var(--bg-dark);
  color: #e9e9f2;
  border-radius: var(--radius);
  padding: 24px;
}
.result-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9492ad;
  margin-top: 18px;
  margin-bottom: 6px;
}
.result-label:first-of-type { margin-top: 0; }
.result-value { font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1.25; }
.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.result-stat {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.result-stat-label { font-size: 11px; color: #9492ad; margin-bottom: 4px; }
.result-stat-value { font-weight: 700; font-size: 15px; color: #fff; }
.result-text { font-size: 13.5px; color: #c6c5d6; line-height: 1.55; }
.result-list { list-style: decimal; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.result-list li { font-size: 13.5px; color: #c6c5d6; line-height: 1.5; }

/* ---------- Compare grid (Step 2) ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.compare-card-recommended { border-color: var(--accent); }
.compare-card-discouraged { opacity: 0.82; }
.compare-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.compare-card-head h3 { font-size: 16px; }
.badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-muted {
  background: var(--border);
  color: var(--text-muted);
}
.compare-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.compare-card li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
}
.compare-card-recommended li::before { background: var(--accent); }

.pipeline-card {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
}
.pipeline-card .eyebrow { color: #b9b4ff; }
.pipeline-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pipeline-step {
  flex: 1 1 180px;
  min-width: 160px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
}
.pipeline-step-accent { background: var(--accent); }
.pipeline-label { font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 6px; }
.pipeline-desc { font-size: 12.5px; color: #c6c5d6; line-height: 1.5; }
.pipeline-step-accent .pipeline-desc,
.pipeline-step-accent .pipeline-label { color: #fff; }
.pipeline-step-accent code { background: rgba(255,255,255,0.18); color: #fff; }
@media (max-width: 760px) {
  .pipeline-row { flex-direction: column; }
}

.section-note {
  font-size: 13.5px;
  color: var(--text-faint);
  margin: 16px 0 28px;
  max-width: 70ch;
  line-height: 1.55;
}

/* ---------- Code blocks ---------- */
.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 860px) { .code-grid { grid-template-columns: 1fr; } }

.code-card {
  background: var(--code-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}
.code-card-head {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #9492ad;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-dark);
  line-height: 1.5;
}
.code-card-head .muted { color: #6f6d84; font-weight: 400; }
.code-card-head .filename { color: #c6c5d6; }
.code-card pre {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
}
.code-card code {
  background: none;
  color: var(--code-text);
  padding: 0;
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre;
}
.code-card-handoff pre { padding: 20px; }

.code-card-annotated { margin-bottom: 20px; }
.annotated-lines { padding: 6px 0; }
.aline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 7px 18px;
  align-items: start;
}
.aline-gap { margin-top: 10px; }
.aline code {
  background: none;
  color: var(--code-text);
  padding: 0;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}
.anote {
  font-size: 12.5px;
  color: #a7a5c0;
  line-height: 1.55;
  font-family: var(--font-sans);
}
.anote code { color: #c6c5d6; font-size: 11.5px; }
@media (max-width: 760px) {
  .aline { grid-template-columns: 1fr; gap: 4px; }
}

.subheading { font-size: 1.1rem; margin: 36px 0 8px; }
.lede-sm { font-size: 14px; margin-bottom: 20px; }

/* ---------- Test step ---------- */
.test-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) { .test-grid { grid-template-columns: 1fr; } }

.test-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 22px; }
.test-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
}
.test-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.test-step-title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.test-step-body { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

.test-side { display: flex; flex-direction: column; gap: 16px; }

.ready-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.ready-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.ready-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ready-card li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
  line-height: 1.45;
}
.ready-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent-tint);
  border: 1.5px solid var(--accent);
}

/* ---------- Hand off ---------- */
.handoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) { .handoff-grid { grid-template-columns: 1fr; } }

.handoff-notes { display: flex; flex-direction: column; gap: 16px; }
.handoff-note {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 18px;
}
.handoff-note h3 { font-size: 14px; margin-bottom: 8px; }
.handoff-note p { font-size: 13.5px; line-height: 1.55; margin-bottom: 10px; }
.handoff-note p:last-child { margin-bottom: 0; }
.inline-key {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0 0 10px;
  overflow-x: auto;
}
.inline-key code {
  background: none;
  color: #d7d9e4;
  font-size: 11.5px;
  padding: 0;
  white-space: pre;
}

/* ---------- Glossary ---------- */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
}
@media (max-width: 860px) { .glossary-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .glossary-grid { grid-template-columns: 1fr; } }

.glossary-card { padding-top: 16px; border-top: 1px solid var(--border); }
.glossary-card h3 { font-size: 14.5px; margin-bottom: 8px; }
.glossary-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-faint);
}
.site-footer-inner a { text-decoration: underline; }
@media (max-width: 560px) {
  .site-footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}
