/* Bonsai site — palette lifted verbatim from the extension's dark theme
   (src/theme/tokens.ts) so the page and the product read as one thing. */
:root {
  --bg: #121314;
  --fg: #d4d4d4;
  --panel-bg: #1a1b1d;
  --panel-border: #2b2b2d;
  --panel-hover: #222426;
  --muted: #8a8d91;
  --accent: #007acc;
  --key: #9cdcfe;
  --string: #ce9178;
  --number: #b5cea8;
  --boolean: #569cd6;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  /* The options page's accent glow, anchored behind the hero. */
  background-image: radial-gradient(620px 420px at 50% 0%, rgba(0, 122, 204, 0.09), transparent 72%);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }

/* ---------- hero ---------- */
.hero { text-align: center; margin-bottom: 56px; }
.hero-mark { width: 96px; height: 96px; display: block; margin: 0 auto 20px; }
.hero h1 {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.tagline {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0 0 18px;
}
.lede { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ---------- buttons ---------- */
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 9px;
  border: 1px solid var(--panel-border);
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.15s cubic-bezier(0.2, 0, 0, 1), border-color 0.15s;
}
/* The site-wide `a:hover` rule (0,1,1) outranks `.btn`'s own colour (0,1,0),
   so every interactive state has to restate the text colour or the label
   turns blue — invisible on the primary button's blue fill. */
.btn:hover, .btn:active { color: var(--fg); }
.btn:hover { background: var(--panel-hover); }
.btn:active { background: var(--panel-border); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.btn-primary:hover, .btn-primary:active { color: #fff; }
.btn-primary:hover { background: #0a89dd; border-color: #0a89dd; }
.btn-primary:active { background: #0a6ba8; border-color: #0a6ba8; }
.btn[aria-disabled='true'] { opacity: 0.55; cursor: default; pointer-events: none; }

/* ---------- hero screenshot ---------- */
.hero-shot {
  margin: 40px 0 0;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 20px 22px;
}
.f-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1;
}
.f-icon.f-key { background: var(--key); }
.f-icon.f-string { background: var(--string); }
.f-icon.f-number { background: var(--number); }
.f-icon.f-bool { background: var(--boolean); }
.f-icon.f-accent { background: var(--accent); }
.feature-card h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: var(--fg); }
.feature-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ---------- keyboard shortcuts ---------- */
.shortcuts { display: flex; flex-direction: column; gap: 13px; }
.shortcut { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shortcut .keys { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.shortcut .desc { color: var(--muted); font-size: 13.5px; }
.shortcut em {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 1px;
}
kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg);
  background: var(--panel-hover);
  border: 1px solid var(--panel-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 6px;
}

/* ---------- content ---------- */
h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: 44px 0 16px;
}
.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 22px 26px;
}
.features { list-style: none; padding: 0; margin: 0; }
.features li { padding: 11px 0; border-bottom: 1px solid var(--panel-border); }
.features li:last-child { border-bottom: 0; }
.features strong { color: var(--fg); font-weight: 600; }
.features span { color: var(--muted); }

/* ---------- document pages (privacy, examples) ---------- */
.doc h1 { font-size: 28px; margin: 0 0 6px; font-family: var(--ui); font-weight: 600; }
.doc .date { color: var(--muted); font-size: 14px; margin: 0 0 36px; }
.doc h2 {
  font-size: 17px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--fg);
  margin: 34px 0 10px;
}
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 7px; }
.doc strong { color: #fff; }
.callout {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--number);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 28px;
}
.callout p { margin: 0; }
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--panel-hover);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--key);
}

/* ---------- examples page ---------- */
.examples { list-style: none; padding: 0; margin: 0; }
.examples li { padding: 15px 0; border-bottom: 1px solid var(--panel-border); }
.examples li:first-child { padding-top: 4px; }
.examples li:last-child { padding-bottom: 4px; border-bottom: 0; }
.ex-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  flex-wrap: wrap;
}
.ex-name { font-family: var(--mono); font-size: 15px; text-decoration: none; }
.ex-name:hover { text-decoration: underline; }
/* Sizes and counts read as data, not prose — same face as the filename. */
.ex-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.ex-desc { margin: 7px 0 0; color: var(--muted); }
.ex-desc strong { color: var(--fg); font-weight: 600; }

/* ---------- misc ---------- */
a { color: var(--accent); }
a:hover { color: #3aa0e0; }
.back { display: inline-block; margin-bottom: 28px; font-size: 14px; text-decoration: none; }
.back:hover { text-decoration: underline; }
footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }

@media (max-width: 560px) {
  .wrap { padding: 44px 18px 60px; }
  .hero h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
}
