/*
 * makerhandle's site and editor tokens. Warm neutrals with a terracotta accent
 * (Claude's orange); radii, controls and the wordmark treatment follow Mokxi's
 * `web/src/site/site.css`. Dark first; light follows the OS or the stored toggle.
 */
:root {
  --bg: #1a1918;
  --bg-panel: #201f1d;
  --bg-raised: #262624;
  --bg-input: #1c1b1a;
  --bg-hover: #2e2d2a;
  --bg-active: #363532;
  --line: #383733;
  --line-strong: #4a4843;
  --line-control: #43413c;
  --text: #f0eee6;
  --text-dim: #b5b2a8;
  --text-faint: #8f8c84;
  --accent: #d97757;
  --accent-ink: #1a1918;
  --accent-hover: #e48b6d;
  --accent-soft: rgba(217, 119, 87, 0.16);
  --cta: #b8532f;
  --cta-hover: #c6613f;
  --cta-ink: #ffffff;
  --stop: #d94a45;
  --danger-fg: #ff9a95;
  --chip-ok-fg: #8ee0a1;
  --chip-ok-line: #2d5b3c;
  --chip-ok-bg: #16271c;
  --chip-warn-fg: #e6c77a;
  --chip-warn-line: #5c4c24;
  --chip-warn-bg: #262013;
  --chip-info-fg: #e9a98f;
  --chip-info-line: #6b3a28;
  --chip-info-bg: #2c1d17;
  --chip-bad-fg: #ff9a95;
  --chip-bad-line: #6b2e2b;
  --chip-bad-bg: #2a1514;
  --site-dot: color-mix(in srgb, #d6cfc2 14%, transparent);
  --shadow-menu: 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-sheet: 0 26px 64px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(32, 31, 29, 0.9);
  --site-max: 1160px;
  --gutter: 32px;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f5f4ee; --bg-panel: #faf9f5; --bg-raised: #ffffff; --bg-input: #ffffff; --bg-hover: #efede5; --bg-active: #e8e5dc;
    --line: #e3e0d6; --line-strong: #cfcbbf; --line-control: #dcd8cd;
    --text: #1f1e1d; --text-dim: #5e5b53; --text-faint: #6f6c64;
    --accent: #ae4f2c; --accent-ink: #ffffff; --accent-hover: #9a4425; --accent-soft: rgba(174, 79, 44, 0.1);
    --cta: #b8532f; --cta-hover: #a3482a; --stop: #d03a34; --danger-fg: #b3261e;
    --chip-ok-fg: #1c7a45; --chip-ok-line: #a9d9bd; --chip-ok-bg: #e6f5ec;
    --chip-warn-fg: #8a6516; --chip-warn-line: #e2cd98; --chip-warn-bg: #fbf3df;
    --chip-info-fg: #a3482a; --chip-info-line: #efc6b5; --chip-info-bg: #fbede6;
    --chip-bad-fg: #b3261e; --chip-bad-line: #eab4b0; --chip-bad-bg: #fdecea;
    --site-dot: color-mix(in srgb, #cfc8b8 32%, transparent);
    --shadow-menu: 0 10px 24px rgba(28, 40, 60, 0.16); --shadow-sheet: 0 24px 60px rgba(28, 40, 60, 0.24);
    --header-bg: rgba(250, 249, 245, 0.9);
    color-scheme: light;
  }
}
:root[data-theme='light'] {
  --bg: #f5f4ee; --bg-panel: #faf9f5; --bg-raised: #ffffff; --bg-input: #ffffff; --bg-hover: #efede5; --bg-active: #e8e5dc;
  --line: #e3e0d6; --line-strong: #cfcbbf; --line-control: #dcd8cd;
  --text: #1f1e1d; --text-dim: #5e5b53; --text-faint: #6f6c64;
  --accent: #ae4f2c; --accent-ink: #ffffff; --accent-hover: #9a4425; --accent-soft: rgba(174, 79, 44, 0.1);
  --cta: #b8532f; --cta-hover: #a3482a; --stop: #d03a34; --danger-fg: #b3261e;
  --chip-ok-fg: #1c7a45; --chip-ok-line: #a9d9bd; --chip-ok-bg: #e6f5ec;
  --chip-warn-fg: #8a6516; --chip-warn-line: #e2cd98; --chip-warn-bg: #fbf3df;
  --chip-info-fg: #a3482a; --chip-info-line: #efc6b5; --chip-info-bg: #fbede6;
  --chip-bad-fg: #b3261e; --chip-bad-line: #eab4b0; --chip-bad-bg: #fdecea;
  --site-dot: color-mix(in srgb, #cfc8b8 32%, transparent);
  --shadow-menu: 0 10px 24px rgba(28, 40, 60, 0.16); --shadow-sheet: 0 24px 60px rgba(28, 40, 60, 0.24);
  --header-bg: rgba(250, 249, 245, 0.9);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; } }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
svg { flex-shrink: 0; }

.dim { color: var(--text-dim); }
.small { font-size: 13px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.dotted { background-image: radial-gradient(circle, var(--site-dot) 1px, transparent 1px); background-size: 22px 22px; }

.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; letter-spacing: 0.06em; color: var(--text); user-select: none; text-decoration: none; }
.wordmark .mark { width: 26px; height: 26px; flex-shrink: 0; }
.wordmark:hover { text-decoration: none; }
.wordmark .wm-text span { color: var(--accent); }

/* Controls, after Mokxi's `ui/controls.css`: one button, four colors per look. */
.btn {
  --btn-bg: var(--bg-raised); --btn-fg: var(--text); --btn-line: var(--line-control); --btn-bg-hover: var(--bg-hover);
  --btn-h: 40px; --btn-fs: 15px; --btn-px: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: var(--btn-h); margin: 0; padding: 4px var(--btn-px);
  font: inherit; font-size: var(--btn-fs); font-weight: 600; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-line); border-radius: 8px;
  cursor: pointer; text-decoration: none; white-space: nowrap; touch-action: manipulation;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--line-strong); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { --btn-bg: var(--cta); --btn-fg: var(--cta-ink); --btn-line: transparent; --btn-bg-hover: var(--cta-hover); }
.btn-accent { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-line: transparent; --btn-bg-hover: var(--accent-hover); }
.btn-quiet { --btn-bg: transparent; --btn-line: transparent; --btn-bg-hover: var(--bg-hover); }
.btn-danger { --btn-fg: var(--danger-fg); }
.btn-danger-solid { --btn-bg: var(--stop); --btn-fg: #fff; --btn-line: transparent; --btn-bg-hover: var(--stop); }
.btn-sm { --btn-h: 34px; --btn-fs: 13px; --btn-px: 11px; }
.btn-lg { --btn-h: 48px; --btn-fs: 15.5px; --btn-px: 22px; }
.btn-block { width: 100%; }
.btn-icon { --btn-px: 0; width: var(--btn-h); }

input, select, textarea {
  font: inherit; color: var(--text); background: var(--bg-input);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 40px; width: 100%;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 720px) { input, select, textarea { font-size: 16px; min-height: 46px; } .btn { --btn-h: 46px; } .btn-sm { --btn-h: 44px; } }

.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field > input, .field > textarea, .field > select { font-weight: 400; }
.prefixed { display: flex; align-items: center; background: var(--bg-input); border: 1px solid var(--line); border-radius: 8px; padding-left: 10px; font-weight: 400; }
.prefixed:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prefixed input { border: 0; background: transparent; padding-left: 0; box-shadow: none !important; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.pill-ok { color: var(--chip-ok-fg); background: var(--chip-ok-bg); border-color: var(--chip-ok-line); }
.pill-warn { color: var(--chip-warn-fg); background: var(--chip-warn-bg); border-color: var(--chip-warn-line); }
.pill-info { color: var(--chip-info-fg); background: var(--chip-info-bg); border-color: var(--chip-info-line); }
.pill-bad { color: var(--chip-bad-fg); background: var(--chip-bad-bg); border-color: var(--chip-bad-line); }

/* ---- site chrome ---- */
.container { width: 100%; max-width: var(--site-max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
@media (max-width: 720px) { :root { --gutter: 16px; } }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 16px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { color: var(--text-dim); font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.nav-link:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
@media (max-width: 760px) { .nav-hide-sm { display: none; } }
@media (max-width: 560px) { .nav-link[href='/#features'], .nav-link[href='/blog'], .nav-link[href='/pricing'] { display: none; } }
.site-main { flex: 1 0 auto; display: flex; flex-direction: column; }
.site-main > .section:last-child { flex: 1 0 auto; }

.section { padding: 64px 0; }
.section-title { font-size: 18px; margin-bottom: 16px; }
.page-title { font-size: clamp(28px, 5vw, 40px); display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.page-title svg { color: var(--accent); }
.lede { font-size: 18px; color: var(--text-dim); margin-bottom: 28px; max-width: 60ch; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.prose p { margin-bottom: 1em; color: var(--text-dim); max-width: 65ch; }

.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-block: 72px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.025em; margin-bottom: 18px; }
.claim { display: flex; gap: 10px; margin-bottom: 10px; max-width: 520px; }
.claim-field { flex: 1; display: flex; align-items: center; padding-left: 12px; background: var(--bg-input); border: 1px solid var(--line-strong); border-radius: 8px; min-width: 0; }
.claim-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.claim-field input { border: 0; background: transparent; padding-left: 0; box-shadow: none !important; min-height: 46px; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding-block: 40px 56px; gap: 40px; } }
@media (max-width: 480px) { .claim { flex-direction: column; } }

.phone { width: 300px; margin: 0 auto; padding: 12px; background: #141312; border-radius: 40px; box-shadow: var(--shadow-sheet), 0 0 0 1px var(--line); }
.phone-screen { background: #1a1918; color: #f0eee6; border-radius: 30px; padding: 22px 16px; display: grid; gap: 10px; }
.demo-head { display: flex; gap: 12px; align-items: center; }
.demo-head > span:last-child { display: grid; }
.demo-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #d97757, #f2c79a); }
.demo-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #262624; border: 1px solid #383733; border-radius: 10px; font-size: 13.5px; }
.demo-row strong { flex: 1; }
.demo-logo { width: 18px; height: 18px; border-radius: 5px; background: #2d3446; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.feature svg { color: var(--accent); }
.feature h3 { font-size: 16px; }

.maker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.maker-card { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.maker-card:hover { border-color: var(--line-strong); text-decoration: none; background: var(--bg-raised); }
.maker-card > span { display: grid; font-size: 14px; }

.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-letter, .logo-letter { display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.logo { border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.logo-letter { font-size: 11px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.plan-pro { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.price { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.price span { font-size: 16px; font-weight: 500; }
.compare { width: 100%; border-collapse: collapse; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }

/* leaderboard */
.board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .board-cols { grid-template-columns: 1fr; } }
.board { list-style: none; margin: 0; padding: 0; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); }
.board li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.rank { font-family: var(--mono); color: var(--text-faint); width: 22px; text-align: right; }
.board-main { flex: 1; display: grid; min-width: 0; line-height: 1.3; }
.board-main a strong { color: var(--text); }
.mrr { font-family: var(--mono); font-weight: 600; }

/* auth */
.auth { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 16px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-menu); }
.auth-card h1 { font-size: 24px; }
.form-error { color: var(--danger-fg); font-size: 14px; min-height: 1em; }
.form-error:empty, .form-ok:empty { display: none; }
.form-ok { color: var(--chip-ok-fg); font-size: 14px; }

.verified { display: inline-grid; color: var(--accent); }
.board .rev { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.board-filter { margin: -12px 0 24px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--bg-input); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg a { color: var(--text-dim); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a[aria-pressed='true'] { background: var(--bg-active); color: var(--text); }


/* ---- homepage and marketing pages ---- */
.hero-note { display: flex; align-items: center; gap: 6px; }
.hero-note svg { color: var(--accent); }
.claim-prefix { color: var(--text-dim); white-space: nowrap; }
@media (max-width: 400px) { .claim-prefix { font-size: 14px; } }
.demo-head { position: relative; }
.demo-share { position: absolute; right: 0; top: 4px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #d97757; color: #fff; }
.demo-total { display: flex; align-items: center; gap: 5px; }
.demo-total strong { font-family: var(--mono); }
.demo-name { flex: 1; display: grid; line-height: 1.25; min-width: 0; }
.demo-rev { display: inline-flex; align-items: center; gap: 3px; font-family: var(--mono); font-size: 11.5px; color: #b5b2a8; }
.demo-row strong { flex: none; }
.demo-socials { display: flex; justify-content: center; gap: 16px; color: #b5b2a8; padding-top: 6px; border-top: 1px solid #383733; }
.phone .verified, .mock-card .verified, .demo-total .verified { color: #d97757; }

.band { border-block: 1px solid var(--line); background: var(--bg-panel); }
.audiences { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-block: 18px; }
.chip-link { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-control); color: var(--text); font-size: 14px; font-weight: 600; background: var(--bg-raised); }
.chip-link:hover { border-color: var(--accent); text-decoration: none; }

.section.alt { background: var(--bg-panel); border-block: 1px solid var(--line); }
.section-h { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.02em; margin-bottom: 14px; }
.eyebrow.center, .section-h.center { text-align: center; }
.section-h.center { max-width: 720px; margin-inline: auto; margin-bottom: 36px; }

.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps-grid li { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-family: var(--mono); }
.steps-grid h3 { font-size: 17px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 2; } }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks svg { color: var(--accent); }
.mock-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 18px; box-shadow: var(--shadow-menu); }
.mock-row { display: flex; align-items: center; gap: 12px; }
.mock-row .grow { flex: 1; display: grid; line-height: 1.3; }
.mock-row .demo-logo { width: 36px; height: 36px; border-radius: 9px; }
.mock-figures { display: flex; gap: 32px; }
.mock-figures div { display: grid; }
.mock-figures b { font-family: var(--mono); font-size: 26px; letter-spacing: -0.02em; }
.mock-foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.mock-foot span:last-child { display: grid; line-height: 1.35; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
a.feature { color: var(--text); transition: border-color .12s ease, transform .12s ease; }
a.feature:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }

.browser { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--bg-raised); box-shadow: var(--shadow-menu); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-panel); }
.browser .dots { display: flex; gap: 6px; }
.browser .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-url { flex: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--bg-input); font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.browser-url svg { color: var(--chip-ok-fg); }
.browser-body { padding: 24px; }
.mini-steps { display: grid; gap: 10px; }
.mini-step { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); font-size: 14.5px; }
.mini-step.done svg { color: var(--chip-ok-fg); }
.mini-step.live { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.mini-step.live svg { color: var(--accent); }

.plan h3 { font-size: 18px; }
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--text-dim); font-size: 14.5px; }
.plan-list li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-dim); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 16px; }

.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.row-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.post-card { display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.post-card:hover { border-color: var(--accent); text-decoration: none; }
.post-card h3 { font-size: 17px; line-height: 1.3; }
.post-card p { font-size: 14.5px; }

.cta-band { background: linear-gradient(180deg, var(--bg), var(--brand-band, var(--bg-panel))); border-top: 1px solid var(--line); }
.cta-band .claim { margin: 22px auto 0; }
.more-links { margin-top: 18px; }
.more-links a { color: var(--text-dim); }

.hero-sm { border-bottom: 1px solid var(--line); }
.hero-sm .container { padding-block: 56px 48px; }
.hero-sm h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.02em; margin-bottom: 14px; }
.crumbs { color: var(--text-faint); margin-bottom: 18px; }
.crumbs a { color: var(--text-dim); }

/* articles */
.article { max-width: 1040px; }
.article-head { max-width: 720px; margin-bottom: 28px; }
.article-head h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; margin-bottom: 12px; }
.tag { color: var(--accent); }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 84px; border-left: 1px solid var(--line); padding-left: 18px; font-size: 14px; }
.toc ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { color: var(--text-dim); }
.prose { font-size: 16.5px; line-height: 1.75; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1em; color: var(--text); max-width: 70ch; }
.prose .dim { color: var(--text-dim); }
.prose h2 { font-size: 24px; margin: 1.8em 0 .6em; letter-spacing: -0.01em; scroll-margin-top: 80px; }
.prose h3 { font-size: 19px; margin: 1.5em 0 .5em; }
.prose li { margin: .3em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-raised); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--text-dim); }
.prose a { text-decoration: underline; text-underline-offset: .15em; }
.landing-body h2:first-child { margin-top: 0; }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 48px; padding: 20px 22px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 12px; max-width: 720px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-panel); padding: 48px 0 28px; font-size: 14px; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-cta h2 { font-size: 22px; margin-bottom: 4px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-brand p { margin-top: 10px; max-width: 32ch; }
.footer-col h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: var(--text); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

.spark { flex-shrink: 0; overflow: visible; }
.spark polyline { fill: none; stroke: var(--chip-ok-fg); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark-down polyline { stroke: var(--text-faint); }
@media (max-width: 480px) { .board .spark { display: none; } }

.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
/* `hidden` wins over component display rules (.auth-card and .field are grids). */
[hidden] { display: none !important; }
