/* Layout: one left-aligned 1160px column; the hero splits copy / a live Discord client,
   sections stack under `// code-comment` eyebrows with hairline separators. Dark-first. */
:root {
  --bg: #0b0912;
  --bg-raised: #110e1b;
  --surface: #171327;
  --line: #241e37;
  --line-strong: #383052;
  --fg: #f1edff;
  --muted: #a49dbf;
  --faint: #716a92;
  --brand: #8b5cf6;
  --brand-ink: #c4b5fd;
  --accent: #22d3ee;
  --accent-ink: #67e8f9;
  --on-brand: #ffffff;
  --grid: rgba(196, 181, 253, 0.05);
  --glow: rgba(139, 92, 246, 0.28);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

  /* Discord client (dark) */
  --dc-bg: #313338;
  --dc-chrome: #2b2d31;
  --dc-card: #2b2d31;
  --dc-line: #3f4147;
  --dc-text: #dbdee1;
  --dc-head: #f2f3f5;
  --dc-muted: #949ba4;
  --dc-input: #383a40;
  --dc-select: #1e1f22;
  --dc-btn: #4e5058;
  --dc-btn-hover: #6d6f78;
  --dc-btn-text: #ffffff;
  --dc-mention-bg: rgba(88, 101, 242, 0.3);
  --dc-mention: #c9cdfb;
  --dc-tag: #5865f2;
  --dc-green: #23a55a;
  --dc-hover: rgba(78, 80, 88, 0.3);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.6rem);
  --step-4: clamp(2.5rem, 5.4vw, 4.5rem);
  --radius: 12px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f5fc;
    --bg-raised: #efebf8;
    --surface: #ffffff;
    --line: #e4def2;
    --line-strong: #cdc4e6;
    --fg: #17122a;
    --muted: #574f72;
    --faint: #857e9f;
    --brand: #7c3aed;
    --brand-ink: #6d28d9;
    --accent: #0891b2;
    --accent-ink: #0e7490;
    --on-brand: #ffffff;
    --grid: rgba(76, 29, 149, 0.06);
    --glow: rgba(139, 92, 246, 0.16);
    --shadow: 0 30px 70px -34px rgba(46, 16, 101, 0.35);
    --dc-bg: #ffffff;
    --dc-chrome: #f2f3f5;
    --dc-card: #f2f3f5;
    --dc-line: #e1e2e4;
    --dc-text: #313338;
    --dc-head: #060607;
    --dc-muted: #5c5e66;
    --dc-input: #ebedef;
    --dc-select: #ffffff;
    --dc-btn: #6d6f78;
    --dc-btn-hover: #4e5058;
    --dc-btn-text: #ffffff;
    --dc-mention-bg: rgba(88, 101, 242, 0.15);
    --dc-mention: #4752c4;
    --dc-tag: #5865f2;
    --dc-green: #1a8a4a;
    --dc-hover: rgba(116, 127, 141, 0.12);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #f7f5fc;
  --bg-raised: #efebf8;
  --surface: #ffffff;
  --line: #e4def2;
  --line-strong: #cdc4e6;
  --fg: #17122a;
  --muted: #574f72;
  --faint: #857e9f;
  --brand: #7c3aed;
  --brand-ink: #6d28d9;
  --accent: #0891b2;
  --accent-ink: #0e7490;
  --on-brand: #ffffff;
  --grid: rgba(76, 29, 149, 0.06);
  --glow: rgba(139, 92, 246, 0.16);
  --shadow: 0 30px 70px -34px rgba(46, 16, 101, 0.35);
  --dc-bg: #ffffff;
  --dc-chrome: #f2f3f5;
  --dc-card: #f2f3f5;
  --dc-line: #e1e2e4;
  --dc-text: #313338;
  --dc-head: #060607;
  --dc-muted: #5c5e66;
  --dc-input: #ebedef;
  --dc-select: #ffffff;
  --dc-btn: #6d6f78;
  --dc-btn-hover: #4e5058;
  --dc-btn-text: #ffffff;
  --dc-mention-bg: rgba(88, 101, 242, 0.15);
  --dc-mention: #4752c4;
  --dc-tag: #5865f2;
  --dc-green: #1a8a4a;
  --dc-hover: rgba(116, 127, 141, 0.12);
  color-scheme: light;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code, kbd { font-family: var(--font-mono); font-size: 0.92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--on-brand); }

.wrap {
  width: 100%;
  max-width: 1192px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font: 500 var(--step--1)/1.4 var(--font-mono);
  color: var(--accent-ink);
  letter-spacing: 0.02em;
}
.lede { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 34em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 var(--step-0)/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 30px -12px var(--brand); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--brand-ink); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: var(--step--1); }

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem/1 var(--font-display); letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; }
.nav a:hover { color: var(--fg); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 2px;
  font: 500 var(--step--1)/1 var(--font-mono);
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--fg); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 520px) { .header-actions .btn { display: none; } }

/* ───────── Hero ───────── */
/* `clip` (not `hidden`) so focus() / scrollIntoView can never scroll the hero sideways. */
.hero { position: relative; overflow: hidden; overflow: clip; border-bottom: 1px solid var(--line); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -180px;
  top: -320px;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--step-4); line-height: 1.02; font-weight: 750; }
.hero h1 .slash { color: var(--accent-ink); font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.04em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 8px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font: 500 var(--step--1)/1.4 var(--font-mono);
  color: var(--muted);
}
.facts strong { color: var(--fg); font-weight: 600; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── Discord client mock ───────── */
.dc {
  min-width: 0;
  background: var(--dc-bg);
  color: var(--dc-text);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font: 400 0.9375rem/1.375 var(--font-body);
  overflow: hidden;
  overflow: clip;
}
.dc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 46px;
  background: var(--dc-bg);
  border-bottom: 1px solid var(--dc-line);
  color: var(--dc-head);
  font-weight: 600;
}
.dc-top > span:not(.topic) { white-space: nowrap; }
.dc-top .hash { color: var(--dc-muted); font-size: 1.3rem; font-weight: 400; }
@media (max-width: 480px) {
  .dc-top .topic { display: none; }
  .dc-body { padding-inline: 12px; }
  .dc-msg { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .dc-avatar { width: 32px; height: 32px; }
  .dc-reply { padding-left: 42px; }
  .dc-reply::before { left: 14px; width: 24px; }
  .v2 { padding: 12px 12px 12px 16px; }
  .v2-section { grid-template-columns: minmax(0, 1fr) 56px; }
  .v2-thumb { width: 56px; height: 56px; }
}
.dc-top .topic { color: var(--dc-muted); font-weight: 400; font-size: 0.85rem; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--dc-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-body { padding: 16px 16px 8px; display: grid; gap: 4px; }
.dc-reply { display: flex; align-items: center; gap: 6px; padding-left: 56px; font-size: 0.8125rem; color: var(--dc-muted); position: relative; }
.dc-reply::before { content: ""; position: absolute; left: 20px; top: 8px; width: 30px; height: 10px; border: 2px solid var(--dc-line); border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.dc-reply .who { color: var(--dc-head); font-weight: 500; }
.dc-reply code { color: var(--dc-mention); }
.dc-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.dc-avatar svg { width: 100%; height: 100%; }
.dc-meta { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dc-name { color: var(--dc-head); font-weight: 600; }
.dc-tag { background: var(--dc-tag); color: #fff; font-size: 0.625rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; position: relative; top: -1px; letter-spacing: 0.02em; }
.dc-time { color: var(--dc-muted); font-size: 0.75rem; }
.dc-content { min-width: 0; margin-top: 4px; }

.v2 {
  position: relative;
  max-width: 520px;
  background: var(--dc-card);
  border: 1px solid var(--dc-line);
  border-radius: 8px;
  padding: 16px 16px 14px 20px;
  display: grid;
  gap: 8px;
}
.v2::before { content: ""; position: absolute; inset: -1px auto -1px -1px; width: 4px; border-radius: 8px 0 0 8px; background: var(--v2-accent, #8b5cf6); }
.v2-section { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; align-items: start; }
.v2-thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; }
.v2-thumb svg { width: 100%; height: 100%; }
.v2 h4 { margin: 0; font: 700 1.5rem/1.25 var(--font-body); color: var(--dc-head); letter-spacing: -0.01em; }
.v2 h5 { margin: 0; font: 700 1.25rem/1.3 var(--font-body); color: var(--dc-head); }
.v2 p { margin: 0; }
.v2 .sub { font-size: 0.75rem; color: var(--dc-muted); }
.v2 strong { color: var(--dc-head); font-weight: 600; }
.v2 .count { font-family: var(--font-mono); font-size: 0.8em; background: var(--dc-select); border-radius: 4px; padding: 1px 4px; }
.v2-sep { height: 1px; background: var(--dc-line); margin: 4px 0; }
.v2-list { display: grid; gap: 6px; }
.v2-list .row { display: grid; gap: 0; }
.mention { background: var(--dc-mention-bg); color: var(--dc-mention); border-radius: 3px; padding: 0 3px; font-weight: 500; white-space: nowrap; }

.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: var(--dc-btn);
  color: var(--dc-btn-text);
  font: 500 0.875rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.dc-btn:hover { background: var(--dc-btn-hover); }
.dc-btn.success { background: var(--dc-green); }
.dc-btn svg { width: 14px; height: 14px; }

.dc-select { position: relative; }
.dc-select > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--dc-line);
  background: var(--dc-select);
  color: var(--dc-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dc-select > button .chev { margin-left: auto; transition: transform 0.15s ease; }
.dc-select > button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dc-options {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 4px);
  z-index: 5;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--dc-select);
  border: 1px solid var(--dc-line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  max-height: 300px;
  overflow-y: auto;
}
.dc-options.down { bottom: auto; top: calc(100% + 4px); }
.dc-options li button {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dc-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dc-options li button:hover, .dc-options li button:focus-visible { background: var(--dc-hover); }
.dc-options .opt-desc { grid-column: 2; font-size: 0.75rem; color: var(--dc-muted); }

.dc-composer { padding: 0 16px 16px; }
.dc-input {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--dc-input);
  color: var(--dc-muted);
  font-size: 0.9375rem;
}
.dc-input .plus { width: 22px; height: 22px; border-radius: 50%; background: var(--dc-muted); color: var(--dc-input); display: grid; place-items: center; font-weight: 700; font-size: 16px; line-height: 1; }
.dc-input .typed { color: var(--dc-text); font-family: var(--font-mono); font-size: 0.875rem; }
.dc-input .caret { display: inline-block; width: 1px; height: 18px; background: var(--dc-text); margin-left: 1px; animation: blink 1s steps(1) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }

/* ───────── Sections ───────── */
.section { border-bottom: 1px solid var(--line); }
.section > .wrap { padding-block: clamp(64px, 9vw, 112px); display: grid; gap: clamp(32px, 4vw, 48px); }
.section-head { display: grid; gap: 14px; max-width: 46rem; }
.section-head h2 { font-size: var(--step-3); line-height: 1.08; font-weight: 700; }

/* Features */
.features { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.features .section-head { position: sticky; top: 104px; }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-list .icon { grid-row: span 3; font-size: 1.5rem; line-height: 1.2; }
.feature-list h3 { font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; }
.feature-list p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  font: 500 0.78rem/1 var(--font-mono);
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-radius: 6px;
  padding: 6px 8px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .features .section-head { position: static; }
}

/* Code images */
.showcase { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.showcase-copy { display: grid; gap: 22px; min-width: 0; }
.showcase-copy h2 { font-size: var(--step-3); line-height: 1.08; font-weight: 700; }
#arayuz > .wrap { gap: clamp(72px, 10vw, 128px); }
.v2-gallery img { width: 100%; border-radius: 4px; }
@media (max-width: 900px) { .showcase { grid-template-columns: minmax(0, 1fr); } }
.showcase.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.showcase.flip > :first-child { order: 2; }
.showcase > .dc { width: 100%; max-width: 560px; justify-self: center; }
@media (max-width: 900px) {
  .showcase.flip { grid-template-columns: minmax(0, 1fr); }
  .showcase.flip > :first-child { order: 0; }
}
.dc-ephemeral { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.75rem; color: var(--dc-muted); }
.dc-ephemeral a { color: var(--dc-mention); text-decoration: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.cards figure.wide { grid-column: 1 / -1; }
.cards img { border-radius: 14px; width: 100%; }
.cards figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; color: var(--muted); font-size: 0.94rem; }
.cards figcaption code { color: var(--fg); }
@media (max-width: 700px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Setup panel */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .dc { max-width: 560px; justify-self: end; width: 100%; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.checklist li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.checklist li::before { content: ""; width: 8px; height: 8px; margin: 9px 0 0 4px; border-radius: 2px; background: var(--accent); }
.status-on { color: var(--dc-green); font-weight: 600; }
.status-off { color: var(--dc-muted); font-weight: 600; }
.v2-section.button-acc { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .dc { justify-self: stretch; }
}

/* Command reference */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}
.search:focus-within { border-color: var(--brand-ink); }
.search svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 400 var(--step-0)/1 var(--font-body); outline: none; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: 500 0.84rem/1 var(--font-body);
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cmd-count { font: 500 var(--step--1)/1 var(--font-mono); color: var(--faint); }
.cmd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cmd-list li {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cmd-name { font: 500 0.92rem/1.5 var(--font-mono); color: var(--fg); overflow-wrap: anywhere; }
.cmd-name .opt { color: var(--faint); }
.cmd-desc { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.badge { font: 500 0.72rem/1 var(--font-mono); padding: 5px 7px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.badge.anywhere { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.empty { padding: 28px 0; color: var(--muted); }
@media (max-width: 760px) {
  .cmd-list li { grid-template-columns: minmax(0, 1fr); }
  .badges { justify-content: flex-start; }
}

/* Start steps */
.start { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: start; }
.start li {
  counter-increment: start;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.start li::before { content: "0" counter(start); font: 500 var(--step--1)/1 var(--font-mono); color: var(--accent-ink); }
.start h3 { font-size: var(--step-1); font-weight: 650; }
.start p { color: var(--muted); }
.start code { color: var(--fg); }
.start .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 860px) { .start { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font: 600 var(--step-1)/1.35 var(--font-display);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 400 1.4rem/1 var(--font-mono); color: var(--faint); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); display: grid; gap: 10px; max-width: 62ch; }
.faq .answer code { color: var(--fg); }
.perm-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.perm-table td { padding: 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.perm-table td:first-child { color: var(--fg); padding-right: 16px; white-space: nowrap; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* CTA band */
.cta-band .wrap { padding-block: clamp(56px, 8vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: var(--step-3); line-height: 1.08; max-width: 18em; }

/* Footer */
.site-footer .wrap { padding-block: 40px 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--fg); }
.fineprint { grid-column: 1 / -1; color: var(--faint); font-size: var(--step--1); }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ───────── Legal pages ───────── */
.legal .wrap { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 6vw, 80px); align-items: start; }
.legal-head { grid-column: 1 / -1; display: grid; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: var(--step-3); font-weight: 700; }
.toc { position: sticky; top: 96px; display: grid; gap: 4px; font-size: 0.92rem; }
.toc a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--fg); }
.prose { max-width: 68ch; display: grid; gap: 16px; min-width: 0; }
.prose h2 { font-size: var(--step-2); font-weight: 650; margin-top: 20px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--fg); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--brand-ink); }
.note { font: 400 var(--step--1)/1.5 var(--font-mono); color: var(--faint); border-left: 2px solid var(--line-strong); padding-left: 12px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font: 500 var(--step--1)/1.3 var(--font-mono); color: var(--faint); background: var(--bg-raised); }
.data-table td { color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }
.placeholder { color: var(--accent-ink); font-family: var(--font-mono); font-size: 0.9em; }
@media (max-width: 860px) {
  .legal .wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; grid-auto-flow: row; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
