/* ──────────────────────────────────────────────────────────────────────────
   stackplay docs — compact, technical, single bright accent.
   System fonts only. Light theme only.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Inter", Arial, sans-serif;
  --mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --ink: #0d0d0d;
  --ink-soft: #1c1c1c;
  --muted: #57534e;
  --faint: #a8a29e;

  --paper: #ffffff;
  --paper-soft: #fafaf9;
  --paper-soft-2: #f5f5f4;
  --line: #e7e5e0;
  --line-soft: #efece6;

  --accent: #b6f54f;
  --accent-deep: #76b015;
  --accent-ink: #0c1a02;

  --code-bg: #0c0c0a;
  --code-ink: #ebe7d8;

  --status-ok: #16a34a;
  --status-warn: #d97706;
  --status-err: #dc2626;
  --status-idle: #94a3b8;

  --container: 640px;
  --container-wide: 1120px;
  --radius: 6px;
  --radius-lg: 14px;
  --easing: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

::selection { background: var(--accent); color: var(--accent-ink); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 2.5px;
  transition: text-decoration-color 0.15s var(--easing);
}
a:hover { text-decoration-color: var(--muted); }

code, pre, .num, .tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
code {
  font-family: var(--mono);
  font-size: 0.875em;
  padding: 1px 5px;
  background: var(--paper-soft-2);
  border-radius: 4px;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 1024px) {
  .topbar-inner { padding: 16px 40px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-slash {
  display: inline-block;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent-deep);
  margin-right: 1px;
  line-height: 1;
}
.brand-name { letter-spacing: -0.01em; }
.brand-ver {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.04em;
  margin-left: 2px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (min-width: 640px) {
  .topbar-links { gap: 24px; }
}
.topbar-nav {
  display: none;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
@media (min-width: 640px) {
  .topbar-nav { display: inline-flex; }
}
.topbar-nav a {
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 2.5px;
}
.topbar-nav a:hover { text-decoration-color: var(--muted); }
.topbar-nav a svg {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  vertical-align: baseline;
}

/* ── main column ────────────────────────────────────────────────────────── */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 20px 80px;
  padding-top: 96px;
}
@media (min-width: 1024px) {
  main {
    padding: 40px 40px 128px;
    padding-top: 128px;
  }
}

/* ── intro ──────────────────────────────────────────────────────────────── */
.intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── audience tabs ──────────────────────────────────────────────────────── */
.audience {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-self: flex-start;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  isolation: isolate;
}
.audience-tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.18s var(--easing);
  white-space: nowrap;
  text-align: center;
}
.audience-tab:hover { color: var(--ink); }
.audience-tab[aria-selected="true"] {
  color: var(--accent-ink);
}
.audience-tab:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}
/* Sliding pill — uses grid track widths via container queries trick.
   Position it under whichever tab is selected by clipping to that tab's box. */
.audience-thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: var(--thumb-w, 50%);
  background: var(--accent);
  border-radius: 999px;
  transform: translateX(var(--thumb-x, 0));
  transition: transform 0.28s var(--easing), width 0.28s var(--easing);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .audience-thumb { transition: none; }
}

/* ── audience panels ────────────────────────────────────────────────────── */
.audience-panels {
  display: grid;
  grid-template-columns: 1fr;
}
/* Both panels stack in the same grid cell so the layout below doesn't jump
   when toggling. Hidden panel is fully removed from the a11y tree. */
.audience-panel {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  animation: panel-fade 0.32s var(--easing) both;
}
.audience-panel[hidden] {
  display: none;
}
@keyframes panel-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .audience-panel { animation: none; }
}

/* ── numbered install steps ─────────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.step-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 25%, transparent);
  margin-top: 4px;
  transition: opacity 0.18s var(--easing), filter 0.18s var(--easing);
}
.step-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.step-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.step .copy-pill--hero {
  max-width: 100%;
}

/* Dim step 2 when the dev tab is active — still discoverable, not pushy */
.steps[data-audience-state="dev"] .step--secondary {
  opacity: 0.55;
  transition: opacity 0.28s var(--easing);
}
.steps[data-audience-state="dev"] .step--secondary:hover,
.steps[data-audience-state="dev"] .step--secondary:focus-within {
  opacity: 1;
}
.steps[data-audience-state="dev"] .step--secondary .step-num {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.steps[data-audience-state="ai"] .step--secondary {
  opacity: 1;
}

/* ── meta seam (lives between mockup and How it works) ──────────────────── */
.meta--seam {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--faint);
}
.meta--seam a {
  color: var(--muted);
  text-decoration-color: var(--faint);
}
.meta--seam a:hover { color: var(--ink); }
@media (min-width: 1024px) {
  .meta--seam { padding: 0 40px; }
}

/* ── callouts strip beneath sub ─────────────────────────────────────────── */
.callouts {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 60ch;
}
.callouts li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.callouts li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-deep);
  font-size: 14px;
}
.callouts strong {
  color: var(--ink);
  font-weight: 600;
}
.callouts code {
  font-size: 12.5px;
}

.lede {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.lede em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent-deep);
}
@media (min-width: 720px) {
  .lede { font-size: 34px; letter-spacing: -0.025em; }
}
@media (min-width: 1024px) {
  .lede { font-size: 38px; letter-spacing: -0.025em; }
}
.sub {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.55;
}
@media (min-width: 720px) {
  .sub { font-size: 16px; }
}
.sub .num {
  color: var(--ink);
  font-weight: 600;
}

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--paper-soft-2);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s var(--easing);
}
.copy-pill:hover { background: #ebe9e3; }

.copy-pill-text {
  flex: 1 1 auto;
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: left;
}

/* Fixed-width state slot: icon by default, "copied"/"err" word swaps in
   without expanding the pill or wrapping the command text. */
.copy-pill-state {
  flex: 0 0 auto;
  width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}
.copy-pill-icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.12s var(--easing);
}
.copy-pill-label {
  font-variant-numeric: tabular-nums;
}

.copy-pill[data-state="copied"] {
  background: color-mix(in oklab, var(--accent) 60%, var(--paper-soft-2));
}
.copy-pill[data-state="copied"] .copy-pill-icon { color: var(--accent-deep); }
.copy-pill[data-state="copied"] .copy-pill-state { color: var(--accent-deep); }
.copy-pill[data-state="copied"] .copy-pill-icon { display: none; }
.copy-pill[data-state="copied"] .copy-pill-label::before { content: "copied"; }

.copy-pill[data-state="err"] .copy-pill-state { color: var(--status-err); }
.copy-pill[data-state="err"] .copy-pill-icon { display: none; }
.copy-pill[data-state="err"] .copy-pill-label::before { content: "err"; }

/* Block variant — full width, used in the AI agent skill row */
.copy-pill--block {
  display: flex;
  width: 100%;
  margin-top: 4px;
}

/* Hero variant — wider, prominent, terminal-prompt feel */
.copy-pill--hero {
  font-size: 14px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 520px;
}
.copy-pill--hero:hover { background: var(--paper-soft); }
.copy-pill--hero .copy-pill-text::before {
  content: "$ ";
  color: var(--faint);
}

/* Alt variant — small inline brew button */
.copy-pill--alt {
  font-size: 12px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--line);
}
.copy-pill--alt .copy-pill-state { width: auto; }

/* Section flash — highlights a section briefly when scrolled to via #anchor.
   Uses :target so it triggers naturally when the URL hash matches. */
@keyframes section-flash {
  0%   { background: color-mix(in oklab, var(--accent) 35%, transparent); box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 20%, transparent); }
  100% { background: transparent; box-shadow: 0 0 0 8px transparent; }
}
.block:target {
  animation: section-flash 1.8s var(--easing) 1;
  border-radius: var(--radius);
}

.block {
  scroll-margin-top: 96px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .block:target { animation: none; }
}

.install-tail {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.install-tail code {
  font-size: 12px;
}

.outro-line {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.meta a {
  color: var(--muted);
  text-decoration-color: var(--faint);
}
.meta a:hover { color: var(--ink); }
.meta .num {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ── hero mockup, breaking out of the column ────────────────────────────── */
.mockup-bleed {
  margin: 32px 0 8px;
  margin-left: calc(50% - 50vw);
  width: 100vw;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}
@media (min-width: 1024px) {
  .mockup-bleed { padding: 0 40px; margin: 40px 0 16px; margin-left: calc(50% - 50vw); }
}
.mockup {
  width: 100%;
  max-width: 1080px;
}
.mockup-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fefefe;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 20px 50px -16px rgba(15, 23, 42, 0.18),
    0 6px 18px -10px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s var(--easing);
}
.mockup-frame:hover {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 30px 70px -18px rgba(15, 23, 42, 0.25),
    0 8px 22px -10px rgba(15, 23, 42, 0.12);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fafaf9;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
}
.mockup-prompt {
  color: var(--accent-deep);
  font-weight: 600;
}
.mockup-title {
  color: var(--ink);
  font-weight: 500;
}
.mockup-path {
  color: var(--muted);
}
.mockup-spacer { flex: 1; }
.mockup-tag {
  color: var(--muted);
  font-size: 10.5px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.mockup-body {
  background: var(--code-bg);
  padding: 0;
  height: clamp(420px, 56vw, 620px);
}

/* ── TUI mockup ─────────────────────────────────────────────────────────── */
.tui {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--code-ink);
}
.tui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #1c1c18;
  background: #0a0a08;
}
.tui-header-left {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.tui-brand {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tui-sep, .tui-path {
  color: var(--muted);
}
.tui-path { color: #c8c4b6; }
.tui-header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
}
.tui-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #1c1c18;
  background: #11110e;
  color: var(--code-ink);
  font-size: 11px;
}
.tui-pill--ok { color: #d3f7a6; border-color: #1f3008; }
.tui-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}
.tui-dot--ok {
  background: var(--accent);
  box-shadow: 0 0 6px color-mix(in oklab, var(--accent) 70%, transparent);
}
.tui-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  background: #16160f;
  border: 1px solid #1c1c18;
  color: #a8a290;
  font-size: 10.5px;
  font-family: var(--mono);
}
.tui-kbd--inline {
  margin-right: 6px;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
}

.tui-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  flex: 1;
  min-height: 0;
}
@media (max-width: 720px) {
  .tui-grid { grid-template-columns: 150px 1fr; }
}
@media (max-width: 540px) {
  .tui-grid { grid-template-columns: 110px 1fr; }
}
.tui-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tui-col--list {
  border-right: 1px solid #1c1c18;
  background: #08080660;
}
.tui-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #6b6757;
}
.tui-col-head--sub { padding-top: 18px; }
.tui-col-title { font-weight: 500; }
.tui-col-meta { color: #6b6757; font-size: 10.5px; }
.tui-col-head--detail {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid #1c1c18;
  background: #0a0a08;
}
.tui-detail-name {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tui-detail-cmd {
  color: #c8c4b6;
  font-size: 11.5px;
}
.tui-detail-meta {
  color: #6b6757;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.tui-list {
  list-style: none;
  margin: 0;
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tui-list--filters { padding-bottom: 12px; }
.tui-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  grid-template-areas: "status name port" "status name uptime";
  align-items: center;
  column-gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #c8c4b6;
}
.tui-row--active {
  background: #131310;
  color: var(--code-ink);
  outline: 1px solid #2a2a23;
}
.tui-row--idle .tui-name,
.tui-row--idle .tui-uptime { color: #6b6757; }
.tui-status {
  grid-area: status;
  width: 6px;
  height: 6px;
  border-radius: 999px;
}
.tui-status--ok {
  background: var(--accent);
  box-shadow: 0 0 5px color-mix(in oklab, var(--accent) 60%, transparent);
}
.tui-status--idle { background: #4d4a3f; }
.tui-name {
  grid-area: name;
  font-weight: 500;
}
.tui-port {
  grid-area: port;
  color: #8a8674;
  font-size: 11px;
}
.tui-uptime {
  grid-area: uptime;
  color: #6b6757;
  font-size: 10.5px;
  text-align: right;
  grid-column: 3;
  grid-row: 2;
}
.tui-row--active .tui-port { color: #c8c4b6; }
.tui-row--active .tui-uptime { color: #a8a290; }

.tui-filter {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 11px;
  color: #8a8674;
}

.tui-col--detail {
  background: #050503;
}
.tui-logs {
  flex: 1;
  overflow: hidden;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11.5px;
  line-height: 1.7;
}
.tui-log {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 10px;
}
.tui-log-time {
  color: #4d4a3f;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.tui-log-level {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: pre;
}
.tui-log-level--info { color: #8a8674; }
.tui-log-level--ok { color: var(--accent-deep); }
.tui-log-level--warn { color: #d4a64a; }
.tui-log-level--err { color: #e87f6e; }
.tui-log-msg { color: #c8c4b6; }
.tui-log--hl {
  background: #14140d;
  margin: 0 -14px;
  padding: 0 14px;
}
.tui-link {
  color: #9ec6e8;
  text-decoration: underline;
  text-decoration-color: #2a3a4a;
}
.tui-cursor {
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -1px;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

.tui-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  border-top: 1px solid #1c1c18;
  background: #0a0a08;
  font-size: 10.5px;
  color: #6b6757;
}
.tui-statusbar-left, .tui-statusbar-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.tui-statusbar-left { flex-wrap: wrap; }
.tui-dim { color: #4d4a3f; }

@media (max-width: 540px) {
  .tui-detail-cmd, .tui-detail-meta { display: none; }
  .tui-uptime, .tui-port { display: none; }
  .tui-row {
    grid-template-columns: 8px 1fr;
    grid-template-areas: "status name";
  }
  .tui-statusbar-right { display: none; }
  .tui-logs { padding: 8px 10px 10px; }
  .tui-log--hl { margin: 0 -10px; padding: 0 10px; }
}

/* ── content blocks ─────────────────────────────────────────────────────── */
.block {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.block h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.block h2::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent-deep);
}
.block p { margin: 0; }
.block-sub { color: var(--muted); }

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bullets li {
  position: relative;
  padding-left: 18px;
}
.bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-deep);
  font-size: 12px;
  line-height: 1.7;
}
.bullets strong {
  font-weight: 600;
  color: var(--ink);
}
.bullets .num {
  font-weight: 500;
  color: var(--ink-soft);
}

/* ── command grid — terminal-style $ prompt rows ────────────────────────── */
.cmd-grid {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmd-grid li {
  display: grid;
  grid-template-columns: 14px auto auto 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13.5px;
}
.cmd-grid li:last-child { border-bottom: 0; }
.cmd-prompt {
  color: var(--accent-deep);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
}
.cmd-line {
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}
.cmd-em {
  color: var(--faint);
  font-family: var(--mono);
}
.cmd-desc { color: var(--muted); }
@media (max-width: 540px) {
  .cmd-grid li {
    grid-template-columns: 14px 1fr;
    grid-template-areas: "prompt line" ". desc";
    row-gap: 2px;
  }
  .cmd-grid .cmd-prompt { grid-area: prompt; }
  .cmd-grid .cmd-line { grid-area: line; white-space: normal; word-break: break-word; }
  .cmd-grid .cmd-em { display: none; }
  .cmd-grid .cmd-desc { grid-area: desc; font-size: 13px; }
}

/* ── code block ─────────────────────────────────────────────────────────── */
.code-block {
  position: relative;
  margin: 4px 0 0;
  padding: 36px 16px 16px;
  background: var(--code-bg);
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--code-ink);
}
.cb-tag {
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #6b6757;
}
.code-block code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.code-block .kw { color: #d6c98a; }
.code-block .str { color: var(--accent); }
.code-block .bool { color: #e8a878; }
.code-block .num { color: #d4a64a; }

/* ── faq (details) ──────────────────────────────────────────────────────── */
.faq {
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary code {
  font-weight: 400;
}
.faq .chev {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s var(--easing);
}
.faq details[open] .chev { transform: rotate(180deg); }
.faq p {
  margin: 0;
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

/* ── outro ──────────────────────────────────────────────────────────────── */
.block--outro {
  margin-top: 56px;
  align-items: flex-start;
  gap: 16px;
}
.block--outro p {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ── footer ─────────────────────────────────────────────────────────────── */
footer {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 1024px) {
  footer { padding: 0 40px 56px; }
}
footer a {
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 2.5px;
  color: var(--muted);
}
footer a:hover {
  color: var(--ink);
  text-decoration-color: var(--muted);
}

/* ── reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .tui-cursor { animation: none; }
}
