/*
 * Gitable site.
 * Follows the OS colour scheme (no toggle): light tokens by default, dark navy
 * tokens under prefers-color-scheme. Gitable blue accent. Plain CSS, no build step.
 */

:root {
  color-scheme: light;

  /* Brand */
  --accent: #0b6fc0;
  --accent-hover: #085a9e;
  --accent-ink: #ffffff;
  --accent-soft: rgba(11, 111, 192, 0.12);
  --accent-softer: rgba(11, 111, 192, 0.06);
  --accent-line: rgba(11, 111, 192, 0.32);

  /* Surfaces */
  --bg: #f7fafd;
  --surface: #ffffff;
  --surface-2: #f0f5fa;
  --surface-3: #e8f0f8;
  --code-bg: #f3f7fb;
  --topbar: rgba(247, 250, 253, 0.86);
  --dot: #cdd8e3;
  --hero-glow: rgba(31, 156, 240, 0.12);

  /* Text */
  --ink: #0f1c28;
  --text: #253442;
  --muted: #5b6b7c;
  --faint: #8494a5;

  /* Lines */
  --border: #d9e4ee;
  --border-strong: #bccfe0;

  /* Git status (same palette as the extension, light-retuned) */
  --st-modified: #9a6700;
  --st-added: #1a7f37;
  --st-deleted: #cf222e;
  --st-incoming: #0969da;
  --sev-high: #bc4c00;
  --sev-medium: #9a6700;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 40, 0.05);
  --shadow: 0 1px 2px rgba(15, 28, 40, 0.04), 0 8px 24px -12px rgba(15, 28, 40, 0.14);
  --shadow-lg: 0 2px 4px rgba(15, 28, 40, 0.04), 0 24px 48px -20px rgba(15, 28, 40, 0.24);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --accent: #1f9cf0;
    --accent-hover: #5cb6f5;
    --accent-ink: #0d1117;
    --accent-soft: rgba(31, 156, 240, 0.14);
    --accent-softer: rgba(31, 156, 240, 0.07);
    --accent-line: rgba(31, 156, 240, 0.34);

    --bg: #0d1117;
    --surface: #121923;
    --surface-2: #0f1620;
    --surface-3: #141e36;
    --code-bg: #0b1119;
    --topbar: rgba(13, 17, 23, 0.82);
    --dot: #263347;
    --hero-glow: rgba(31, 156, 240, 0.14);

    --ink: #f6f8fb;
    --text: #d7dfea;
    --muted: #a4aab3;
    --faint: #5d6b7e;

    --border: rgba(31, 156, 240, 0.16);
    --border-strong: rgba(31, 156, 240, 0.34);

    --st-modified: #e7bd57;
    --st-added: #62d39a;
    --st-deleted: #e5534b;
    --st-incoming: #3794ff;
    --sev-high: #ff9a3c;
    --sev-medium: #e7bd57;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 28px 56px -24px rgba(0, 0, 0, 0.75);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: color-mix(in srgb, var(--accent) 60%, transparent) var(--bg);
  scrollbar-width: thin;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
b { color: var(--ink); font-weight: 600; }
code, pre, kbd { font-family: var(--mono); font-variant-ligatures: none; }
:not(pre) > code {
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  word-break: break-word;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }

.ic {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }

/* ── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: var(--radius);
  color: var(--text); font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-softer); }
.nav .nav-gh { margin-left: 8px; border: 1px solid var(--border); background: var(--surface); }
.nav .nav-gh:hover { border-color: var(--border-strong); }
.nav-toggle {
  display: none; margin-left: auto;
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .ic { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.topbar.open .nav-toggle .i-menu { display: none; }
.topbar.open .nav-toggle .i-close { display: block; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 600 15px/1.2 var(--font); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--accent) 30%, transparent), 0 8px 24px -12px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--border-strong); color: var(--ink); background: var(--surface-3); }
.btn .ic { width: 17px; height: 17px; }
.btn-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.15; }
.btn-stack small { color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.2; }
.btn-primary .btn-stack small { color: inherit; opacity: 0.75; }

/* ── Type helpers ────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-sm);
}
.pill b { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section.tint { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, var(--hero-glow), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-top: 20px; font-size: clamp(36px, 5.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text); max-width: 540px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks .ic { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.4; }

/* ── Product mock ────────────────────────────────────────── */
.mock {
  position: relative;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: 12.5px; color: var(--text);
  min-width: 0;
}
.mock-chrome {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px;
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.mock-address {
  flex: 1; max-width: 300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 24px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg);
  color: var(--muted); font: 500 11.5px var(--mono);
  white-space: nowrap; overflow: hidden; min-width: 0; padding: 0 8px;
}
.mock-address .ic { width: 12px; height: 12px; color: var(--accent); }
.mock-body { display: grid; grid-template-columns: 40px minmax(240px, 300px) minmax(0, 1fr); min-height: 430px; }

.mock-activity {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 12px 0; background: var(--code-bg); border-right: 1px solid var(--border);
  color: var(--faint);
}
.mock-activity img { width: 20px; height: 20px; }
.mock-activity .on { box-shadow: -10px 0 0 -8px var(--accent); }
.mock-activity .ic { width: 18px; height: 18px; }

.mock-panel { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-right: 1px solid var(--border); min-width: 0; background: var(--surface); }
/* Grid/flex children default to min-width:auto and would push past the column. */
.mock-panel > *, .mp-commit > * { min-width: 0; }
.mp-repo { display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-weight: 700; }
.mp-repo > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.mp-repo img { width: 14px; height: 14px; }
.mp-hdr { display: inline-flex; gap: 8px; color: var(--muted); }
.mp-hdr .ic { width: 13px; height: 13px; }
.mp-branch { display: flex; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.mp-branch-name {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px; color: var(--ink); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-branch .ic { width: 13px; height: 13px; color: var(--accent); }
.mp-sync { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-left: 1px solid var(--border); font: 700 11px var(--mono); }
.mp-sync.in { color: var(--st-incoming); }
.mp-sync.out { color: var(--st-added); }
.mp-sync .ic { color: inherit; }
.mp-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.mp-tabs span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 0 7px; color: var(--muted); }
.mp-tabs .on { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); font-weight: 600; }
.mp-tabs .ic { width: 12px; height: 12px; }
.mp-subtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 7px; background: rgba(128, 128, 128, 0.06); }
.mp-subtabs span { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 0; border-radius: 5px; color: var(--muted); font-size: 11.5px; border: 1px solid transparent; }
.mp-subtabs .on { color: var(--accent); background: var(--accent-softer); border-color: var(--accent-line); font-weight: 600; }
.mp-subtabs b { min-width: 16px; padding: 0 5px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 9.5px; text-align: center; }
.mp-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.mp-files li { display: flex; align-items: center; gap: 7px; height: 25px; padding: 0 4px; border-radius: 5px; min-width: 0; }
.mp-files li:hover { background: rgba(128, 128, 128, 0.08); }
.mp-files .p { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: left; }
.chk { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 3px; background: var(--accent); position: relative; }
.chk::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3px; height: 6px; border: solid var(--accent-ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.ft { width: 10px; height: 12px; flex: 0 0 auto; border-radius: 2px; }
.ft-ts { background: #4a9bd8; }
.ft-css { background: #56a3df; }
.ft-js { background: #e7bd57; }
.ft-md { background: #9aa7b2; }
.st { flex: 0 0 auto; width: 12px; text-align: center; font: 700 12px var(--mono); }
.st.m::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--st-modified); vertical-align: middle; }
.st.a { color: var(--st-added); }

.mp-commit { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 9px; border: 1px solid var(--border); border-radius: 8px; background: rgba(128, 128, 128, 0.05); }
.mp-input { display: flex; align-items: center; min-height: 30px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg); }
.mp-summary { flex: 1; min-width: 0; padding: 0 8px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-summary.typing::after { content: ""; display: inline-block; width: 1px; height: 13px; margin-left: 1px; background: var(--accent); vertical-align: -2px; animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.mp-gen { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-left: 1px solid var(--border); background: none; color: var(--accent); cursor: pointer; }
.mp-gen .ic { width: 15px; height: 15px; }
.mp-gen:disabled { opacity: 0.5; cursor: progress; }
.mp-desc { min-height: 44px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.mp-commit-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 700; white-space: nowrap; overflow: hidden; padding: 0 8px; }
.mp-commit-btn span { overflow: hidden; text-overflow: ellipsis; }
.mp-commit-btn .ic { width: 14px; height: 14px; }

.mock-editor { display: flex; flex-direction: column; min-width: 0; background: var(--code-bg); }
.me-tab { display: flex; align-items: center; gap: 7px; align-self: flex-start; max-width: 100%; padding: 8px 12px; border-right: 1px solid var(--border); background: var(--surface); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 1px 0 var(--accent); }
.me-tab em { font-style: normal; color: var(--muted); }
.diff { margin: 0; padding: 12px 0; font: 11.5px/1.75 var(--mono); color: var(--text); white-space: pre; overflow: hidden; }
.diff .ln { display: inline-block; width: 38px; padding-right: 10px; color: var(--faint); text-align: right; user-select: none; }
.diff .add { color: var(--st-added); }
.diff .del { color: var(--st-deleted); }

.peek {
  position: absolute; left: 140px; top: 400px; z-index: 3;
  width: 230px; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-3);
  box-shadow: var(--shadow-lg); font-size: 12px; color: var(--text);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.peek b { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12.5px; }
.peek b .ic { width: 13px; height: 13px; color: var(--accent); }
.peek small { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font: 500 11px var(--mono); }
.peek small i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mock.peeking .peek { opacity: 1; transform: none; }

/* ── Command blocks ──────────────────────────────────────── */
.cmd {
  position: relative;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--code-bg);
  min-width: 0;
}
.cmd pre {
  flex: 1; min-width: 0; margin: 0;
  padding: 13px 0 13px 14px;
  font-size: 13.5px; line-height: 1.65; color: var(--ink);
}
.cmd pre code { white-space: pre-wrap; overflow-wrap: break-word; }
.cmd .prompt { color: var(--accent); user-select: none; -webkit-user-select: none; }
.copy-btn {
  flex: 0 0 auto; margin: 7px 7px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  border-radius: 6px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: 600 12.5px var(--font); cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.copy-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.copy-btn .ic { width: 15px; height: 15px; }
.copy-btn .i-check { display: none; }
.copy-btn.done { color: var(--accent); border-color: var(--accent-line); background: var(--accent-softer); }
.copy-btn.done .i-copy { display: none; }
.copy-btn.done .i-check { display: block; stroke-width: 2.4; }

/* ── Steps ───────────────────────────────────────────────── */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 18px;
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  grid-row: span 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin-top: 4px; }
.step .cmd { margin-top: 14px; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.note { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.note h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.note h3 .ic { color: var(--accent); }
.note p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ── Features ────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .icon {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.card .icon .ic { width: 20px; height: 20px; }
.card h3 { margin-top: 16px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.providers { display: flex; gap: 6px; }
.providers span {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: #f6f8fb; border: 1px solid var(--border);
}
.providers img { width: 20px; height: 20px; }

/* ── Workflow split ──────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split .section-head { margin-bottom: 0; }
.bullets { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets .ic { margin-top: 4px; color: var(--accent); stroke-width: 2.4; width: 16px; height: 16px; }

.review { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.review-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
  font-size: 13.5px; color: var(--muted);
}
.review-head .ic { width: 16px; height: 16px; color: var(--accent); }
.review-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-count { padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 11.5px var(--mono); }
.review-body { display: grid; gap: 10px; padding: 14px; }
.finding { padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--sev, var(--border)); border-radius: 8px; background: var(--code-bg); }
.finding.sev-high { --sev: var(--sev-high); }
.finding.sev-medium { --sev: var(--sev-medium); }
.finding-top { display: flex; align-items: center; gap: 8px; }
.sev { padding: 1px 7px; border-radius: 4px; background: color-mix(in srgb, var(--sev) 18%, transparent); color: var(--sev); font: 700 10.5px var(--mono); letter-spacing: 0.04em; }
.cat { color: var(--muted); font-size: 12.5px; }
.finding h4 { margin-top: 8px; font-size: 14.5px; letter-spacing: -0.01em; }
.finding p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }

/* ── Privacy ─────────────────────────────────────────────── */
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* ── CTA ─────────────────────────────────────────────────── */
.section-cta { padding-top: clamp(48px, 6vw, 80px); }
.cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent) 3%, transparent)), var(--surface);
}
.cta h2 { font-size: clamp(24px, 3vw, 32px); }
.cta p { margin-top: 8px; color: var(--muted); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 40px 0; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer .brand { font-size: 16px; }
.footer .brand img { width: 24px; height: 24px; }
.footer p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 380px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.footer-links a:hover { color: var(--accent); }
.footer-links .ic { width: 15px; height: 15px; color: var(--muted); }

/* ── Inner pages ─────────────────────────────────────────── */
.page-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.page-hero h1 { margin-top: 12px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; }
.page-hero p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 640px; }
.page-body { padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 96px); }
.narrow { max-width: 820px; }
.prose-card { padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.prose-card + .prose-card { margin-top: 16px; }
.prose-card h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.prose-card h2 .ic { color: var(--accent); width: 20px; height: 20px; }
.prose-card p { margin-top: 10px; color: var(--text); }
.prose-card.callout { border-color: var(--accent-line); background: linear-gradient(var(--accent-softer), var(--accent-softer)), var(--surface); }

/* ── Not found ───────────────────────────────────────────── */
.notfound { min-height: calc(100vh - 64px - 140px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .code404 { font: 700 clamp(72px, 14vw, 128px)/1 var(--mono); color: var(--accent); letter-spacing: -0.04em; font-variant-ligatures: none; }
.notfound h1 { margin-top: 12px; font-size: clamp(24px, 4vw, 32px); }
.notfound p { margin: 10px 0 0; color: var(--muted); }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

.hidden, [hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── Reveal ──────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero .lede { max-width: 640px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .topbar.open .nav { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .nav-gh { margin: 6px 0 0; justify-content: center; }
  .mock-body { grid-template-columns: 40px minmax(0, 1fr); min-height: 0; }
  .mock-panel { border-right: 0; }
  .mock-editor { display: none; }
  .peek { left: 60px; }
  .notes, .privacy-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .hero .actions .btn, .cta .actions .btn { flex: 1 1 auto; }
  .step { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .step::before { grid-row: auto; }
  .mock-activity { display: none; }
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .copy-btn span { display: none; }
  .copy-btn { padding: 0 8px; }
  .prose-card { padding: 20px 18px; }
}
