:root {
  --bg: #f4f4f5;
  --fg: #292929;
  --muted: #7c7c7c;
  --line: #e6e6e8;
  --accent: #00bd7e;
  --accent-fg: #fff;
  --box: #ffffff;
  --btn-bg: #17181a;
  --btn-fg: #ffffff;
  --danger: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0f11; --fg: #e8e8ea; --muted: #9a9aa0; --line: #26272b; --box: #17181a; --btn-bg: #ffffff; --btn-fg: #17181a; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.6 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* guard against scrollbar-width slack from 100vw full-bleed; unlike hidden, keeps position:sticky working */
}
h1, h2, h3, .brandname, .hero h1 { font-family: "Plus Jakarta Sans", "Manrope", sans-serif; letter-spacing: -0.01em; }
a { color: var(--accent); }
.top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.top nav a { color: var(--fg); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .logo { display: block; border-radius: 8px; }
.brandname { font-weight: 800; font-size: 18px; color: var(--fg); letter-spacing: -0.02em; }
main { max-width: 880px; margin: 0 auto; padding: 32px 24px; }
.narrow { max-width: 420px; }
h1 { font-size: 26px; margin: 0 0 6px; }
h3 { font-size: 15px; margin: 18px 0 6px; }
.hero { padding: 48px 0; }
.hero h1 { font-size: 34px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
form.row { flex-direction: row; }
form.inline { display: inline; margin: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
input[type=text], input[type=email], input[type=url] {
  font: inherit; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--box); color: var(--fg); width: 100%;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.btn {
  display: inline-block; font: inherit; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
  align-self: flex-start; transition: transform .05s ease, opacity .15s ease;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.big { padding: 13px 26px; font-size: 16px; }
.btn.approve { background: var(--accent); color: #fff; }
.top nav .btn { color: var(--btn-fg); }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--fg); cursor: pointer; }
button.link.danger { color: var(--danger); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.list { list-style: none; padding: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--box); }
.list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a { text-decoration: none; font-weight: 500; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }
.empty { border: 1px dashed var(--line); border-radius: 8px; padding: 28px; margin-top: 18px; background: var(--box); }
.empty .btn { margin-top: 8px; }
.box { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--box); margin: 18px 0; }
.box.highlight { border-color: var(--accent); }
.flash { padding: 10px 14px; border-radius: 6px; margin: 0 0 18px; }
.flash.error { background: #fdecea; color: var(--danger); }
pre {
  padding: 12px 14px; margin: 8px 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--box);
  overflow-x: auto; font-size: 13px;
}
.repo-title { font-weight: 600; }

/* Repository pages */
.repo-head { margin-bottom: 18px; }
.repo-title a { color: var(--fg); text-decoration: none; }
.tabs { display: flex; gap: 4px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 12px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--fg); border-bottom-color: var(--accent); font-weight: 500; }
.refbar { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.ref { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--box); color: var(--fg); text-decoration: none; }
.crumbs a { text-decoration: none; font-weight: 500; }
.files li { padding: 9px 16px; }
.files .file { text-decoration: none; color: var(--fg); }
.files .dir { font-weight: 500; }
.doc { border: 1px solid var(--line); border-radius: 8px; padding: 8px 24px 24px; background: var(--box); margin: 18px 0; line-height: 1.6; }
.doc-title { color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.doc pre { background: var(--bg); }
.doc code { font-size: 13px; }
.doc img { max-width: 100%; }
.doc table { border-collapse: collapse; }
.doc td, .doc th { border: 1px solid var(--line); padding: 4px 10px; }
.box.small { padding: 10px 16px; font-size: 13px; }
.box.small code { margin-left: 8px; }
.filehead { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 8px 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--box); }
.code { border: 1px solid var(--line); border-radius: 0 0 8px 8px; overflow-x: auto; background: var(--box); }
.code pre { border: 0; margin: 0; padding: 12px 0; font-size: 13px; line-height: 1.5; background: transparent; }
.code .chroma { background: transparent !important; }
.code .lntable { width: 100%; }
.code .lnt, .code .ln { color: var(--muted) !important; padding: 0 12px !important; text-align: right; user-select: none; }
.code .lntd:last-child { width: 100%; }
.commits .subject { display: block; text-decoration: none; color: var(--fg); font-weight: 500; }
.sha { font-size: 12px; color: var(--muted); }
.commit h2 { font-size: 18px; margin: 0 0 8px; }
.commit .body { background: var(--bg); white-space: pre-wrap; }
.diff { border: 1px solid var(--line); border-radius: 8px; margin: 14px 0; overflow: hidden; background: var(--box); }
.diffhead { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; }
.diffhead .path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.add { color: #1a7f37; } .del { color: #cf222e; }
.pad { padding: 8px 12px; }
.hunk { width: 100%; border-collapse: collapse; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.hunk td { padding: 0 8px; white-space: pre-wrap; word-break: break-all; vertical-align: top; }
.hunk .no { width: 1%; min-width: 40px; text-align: right; color: var(--muted); user-select: none; background: var(--bg); }
.hunk .sign { display: inline-block; width: 12px; color: var(--muted); }
.hunk .hunkhead td { background: #eef3fb; color: var(--muted); padding: 4px 12px; }
.hunk tr.add td { background: #e6ffec; } .hunk tr.add .no { background: #ccffd8; }
.hunk tr.del td { background: #ffebe9; } .hunk tr.del .no { background: #ffd7d5; }
@media (prefers-color-scheme: dark) {
  .hunk .hunkhead td { background: #1c2230; }
  .hunk tr.add td { background: #12261e; } .hunk tr.add .no { background: #0f3320; }
  .hunk tr.del td { background: #2c1618; } .hunk tr.del .no { background: #3d1a1c; }
  .add { color: #3fb950; } .del { color: #f85149; }
}

.tag.ai { color: var(--accent); border-color: var(--accent); }

/* Pull requests */
.count { font-size: 11px; background: var(--line); color: var(--fg); border-radius: 999px; padding: 0 7px; }
.listhead { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; }
.subtabs { display: flex; gap: 16px; }
.subtabs a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.subtabs a.active { color: var(--fg); font-weight: 600; border-bottom: 2px solid var(--accent); }
.prstate { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.prstate.open { background: #dafbe1; color: #1a7f37; }
.prstate.merged { background: #f3e8ff; color: #8250df; }
.prstate.closed { background: #ffebe9; color: #cf222e; }
.compare-picker { align-items: end; gap: 10px; }
.inline-label { flex-direction: column; align-items: flex-start; font-size: 13px; color: var(--muted); }
select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--box); color: var(--fg); }
textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--box); color: var(--fg); width: 100%; resize: vertical; }
.prhead h1 { margin-bottom: 6px; }
.prmeta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.doc.pad, .pad { padding: 12px 16px; }
@media (prefers-color-scheme: dark) {
  .prstate.open { background: #12261e; color: #3fb950; }
  .prstate.merged { background: #2a1a3d; color: #c297ff; }
  .prstate.closed { background: #2c1618; color: #f85149; }
}

.mergebox { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin: 16px 0; background: var(--box); }
.mergebox.ready { border-color: #1a7f37; }
.mergebox.conflict { border-color: #cf222e; }
.mergebox p { margin: 0 0 10px; }
.mergebox .row { align-items: center; }

/* Review */
.timeline { margin: 14px 0; }
.tcomment, .lc { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 8px 0; background: var(--box); }
.tbody, .lc div { margin-top: 4px; white-space: pre-wrap; }
.commentbox { margin: 16px 0; }
.approvals { margin: 12px 0; }
.approved { color: #1a7f37; font-weight: 600; font-size: 13px; margin-right: 12px; }
.btn.approve { background: #1a7f37; }
details.addc { display: inline; }
details.addc > summary { display: inline-block; width: 16px; height: 16px; line-height: 15px; text-align: center; color: var(--accent-fg); background: var(--accent); border-radius: 4px; cursor: pointer; font-size: 12px; margin-right: 6px; list-style: none; user-select: none; }
details.addc > summary::-webkit-details-marker { display: none; }
details.addc form { margin: 8px 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); max-width: 480px; white-space: normal; }
tr.linecomment td { background: var(--bg); padding: 4px 12px; }
tr.linecomment .lc { margin: 6px 0; }
@media (prefers-color-scheme: dark) { .approved { color: #3fb950; } }

/* AI summary */
.aisummary { border: 1px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin: 16px 0; background: var(--box); }
.aihead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ailabel { color: var(--accent); font-weight: 600; font-size: 13px; }
.aibody { line-height: 1.55; }
.aibody :first-child { margin-top: 0; }
.aibody :last-child { margin-bottom: 0; }
.flash.warn { background: #fff4e5; color: #8a5a00; }
@media (prefers-color-scheme: dark) { .flash.warn { background: #2b2110; color: #e2b158; } }

/* Risk lanes */
.riskpanel { border: 1px solid #d1a000; border-radius: 8px; padding: 12px 16px; margin: 16px 0; background: var(--box); }
.riskhead { font-weight: 600; color: #8a5a00; margin-bottom: 8px; }
.risklane { margin: 6px 0; }
.rlane { display: inline-block; font-size: 12px; font-weight: 600; color: #8a2b00; background: #ffe8d6; border-radius: 999px; padding: 2px 10px; margin-right: 8px; }
.rlane.size { color: #6a3a00; background: #ffeab0; }
.riskfiles { margin-top: 3px; }
.riskfiles code { font-size: 12px; margin-right: 6px; color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .riskpanel { border-color: #6a5210; }
  .riskhead { color: #e2b158; }
  .rlane { color: #ffb38a; background: #3a2113; }
  .rlane.size { color: #e2c07a; background: #3a3113; }
}

/* AI review findings */
.aisummary.review { border-color: #8250df; }
.aisummary.review .ailabel { color: #8250df; }
.findinglist { list-style: none; padding: 0; margin: 8px 0 0; }
.findinglist li { padding: 4px 0; }
.sev { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.sev.high { background: #ffebe9; color: #cf222e; }
.sev.medium { background: #fff4e5; color: #8a5a00; }
.sev.low { background: #eef; color: #4b4bd6; }
tr.finding td { padding: 4px 12px; }
tr.finding .fc { border-left: 3px solid #8250df; background: var(--bg); border-radius: 0 6px 6px 0; padding: 8px 12px; margin: 6px 0; }
tr.finding .fc div { margin-top: 4px; white-space: pre-wrap; }
tr.finding.high .fc { border-left-color: #cf222e; }
@media (prefers-color-scheme: dark) {
  .sev.high { background: #2c1618; color: #f85149; }
  .sev.medium { background: #2b2110; color: #e2b158; }
  .sev.low { background: #1a1a2e; color: #9a9aff; }
}

.aisummary.config { border-color: #0969da; }
.aisummary.config .ailabel { color: #0969da; }

/* Issues */
.label { display: inline-block; font-size: 11px; background: var(--line); color: var(--fg); border-radius: 999px; padding: 1px 9px; }
.issuegrid { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: start; }
.issueside .sidebox { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; background: var(--box); }
.sidelabel { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.issueside form input { margin-bottom: 8px; }
@media (max-width: 720px) { .issuegrid { grid-template-columns: 1fr; } }

.foot { max-width: 880px; margin: 40px auto 24px; padding: 16px 24px 0; border-top: 1px solid var(--line); font-size: 13px; }
.foot a { color: var(--muted); }

/* Audit */
.tablewrap { overflow-x: auto; }
table.audit { width: 100%; border-collapse: collapse; font-size: 13px; }
table.audit th, table.audit td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.audit th { color: var(--muted); font-weight: 600; }
table.audit tr.denied td { background: #fdecea; }
table.audit .tgt { font-family: ui-monospace, monospace; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-color-scheme: dark) { table.audit tr.denied td { background: #2c1618; } }


/* Brand / marketing */
.eyebrow { display: inline-block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); padding: 5px 13px; border-radius: 999px; margin-bottom: 22px; }

.hero { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 64px 0 52px; }
.hero::before { content: ""; position: absolute; inset: -40px -50vw 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px; opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 75%); }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.05; margin: 0 0 20px; }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 28px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--fg); opacity: 1; }
.hero-agents { margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.hero-agents strong { color: var(--fg); font-weight: 600; }

/* Hero product panel */
.hero-panel { perspective: 1400px; }
.mock { border: 1px solid var(--line); border-radius: 16px; background: var(--box); overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0,0,0,.35), 0 4px 14px -6px rgba(0,0,0,.2); transform: rotateY(-4deg) rotateX(2deg); }
.mock-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); background: color-mix(in srgb, var(--fg) 3%, var(--box)); }
.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.mock-body { padding: 18px; }
.mock-title { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 17px; }
.mnum { color: var(--muted); font-weight: 500; }
.mock-meta { font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.mock-meta code { font-size: 12px; }
.mbadge.ai { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 999px; padding: 1px 9px; font-weight: 600; font-size: 12px; }
.mock-finding { border: 1px solid var(--line); border-left: 3px solid #cf222e; border-radius: 0 10px 10px 0; padding: 11px 14px; margin-bottom: 14px; background: color-mix(in srgb, #cf222e 5%, var(--box)); }
.mfhead { font-size: 13.5px; font-weight: 600; }
.msev { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #cf222e; background: color-mix(in srgb, #cf222e 14%, transparent); border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.mfbody { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.mock-gate { display: flex; gap: 11px; align-items: flex-start; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 10px; padding: 12px 14px; background: color-mix(in srgb, var(--accent) 7%, var(--box)); }
.glock { color: var(--accent); font-size: 14px; margin-top: 1px; }
.mock-gate strong { font-size: 13.5px; }
.gmuted { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.mock-actions { display: flex; gap: 10px; margin-top: 14px; }
.mock-approve { font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 7px 16px; }
.mock-merge { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 12px 0 48px; }
.pillar { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--box); }
.picon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font-size: 16px; margin-bottom: 14px; }
.pillar h3 { margin: 0 0 8px; font-size: 17px; }
.pillar p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; }
  .hero h1 { font-size: 38px; }
  .hero-panel { order: 2; }
  .mock { transform: none; }
  .pillars { grid-template-columns: 1fr; }
}

/* rounder cards to match QuantaOps */
.list, .empty, .box, .aisummary, .riskpanel, .mergebox, .diff { border-radius: 14px; }
.top { background: var(--box); }

/* ===== Landing page ===== */
.landing { width: min(1120px, 100vw - 48px); margin-left: calc(50% - min(560px, 50vw - 24px)); }
.landing .hero { padding-top: 56px; }
.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band-head { max-width: 720px; margin-bottom: 32px; }
.band-head h2, .band h2 { font-size: 34px; font-weight: 800; line-height: 1.12; margin: 0 0 10px; }
.band-head p { font-size: 17px; color: var(--muted); margin: 0; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tools span { font-weight: 600; font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--box); }
.tools span.muted { font-weight: 500; border-style: dashed; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--box); min-width: 0; }
.stepno { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-fg); font-weight: 800; font-size: 13px; margin-bottom: 12px; }
.step h4 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.step pre { margin: 0; font-size: 12px; line-height: 1.5; background: color-mix(in srgb, var(--fg) 4%, var(--box)); overflow-x: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--box); }
.feature h4 { margin: 0 0 8px; font-size: 15.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feature code { font-size: 12.5px; }
.simple-grid, .story-grid, .beta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding: 6px 0 6px 28px; position: relative; font-size: 15px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.simple-tabs { display: flex; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--box); justify-content: center; flex-wrap: wrap; }
.stab { padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.stab.active { color: var(--fg); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.stab b { font-size: 11px; background: var(--line); color: var(--fg); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--box); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
table.cmp th, table.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
table.cmp td:first-child, table.cmp th:first-child { text-align: left; }
table.cmp th { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 700; color: var(--muted); }
table.cmp th.us { color: var(--fg); }
table.cmp td.us { color: var(--accent); font-weight: 800; font-size: 16px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
table.cmp td:not(.us):not(:first-child) { color: var(--muted); }
table.cmp tr:last-child td { border-bottom: 0; }
.story-grid { grid-template-columns: 96px 1fr; align-items: start; }
.story-grid .logo { width: 84px; height: 84px; }
.story p { font-size: 16px; line-height: 1.65; color: var(--fg); margin: 0 0 14px; max-width: 700px; }
.story .sig { color: var(--muted); font-style: italic; }
.beta { background: color-mix(in srgb, var(--accent) 5%, var(--bg)); border-radius: 24px; padding: 56px 40px; margin: 24px 0 40px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.betaform { background: var(--box); border: 1px solid var(--line); border-radius: 16px; padding: 24px; gap: 12px; margin: 0; }
/* Honeypot: hidden from people but present for bots, without the off-screen
   left offset that used to create a page-wide horizontal scroll. */
.betaform .hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.betaform label { font-size: 14px; }
.betaform fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.betaform legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.betaform .check { font-size: 14px; }
@media (max-width: 900px) {
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .simple-grid, .beta-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-grid { grid-template-columns: 1fr; }
  .band-head h2, .band h2 { font-size: 28px; }
  .beta { padding: 36px 20px; }
}
@media (max-width: 600px) { .feature-grid, .steps { grid-template-columns: 1fr; } }

/* Orgs */
.org-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.org-head h1 { margin: 0; }
.list.tight li { padding: 8px 12px; }
.tight-form { display: flex; gap: 6px; margin-top: 10px; }
.tight-form input { flex: 1; min-width: 0; }
.tight-form select { max-width: 96px; }

.rule-form { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--box); }
.inline-num { flex-direction: row; align-items: center; gap: 8px; }
.inline-num input { width: 70px; }

.dochead { margin-bottom: 14px; }
.dochead h1, .dochead h3 { margin: 0 0 4px; }

/* CI / checks (ADR-003) */
.ci-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--muted); text-decoration: none; vertical-align: middle; }
.ci-badge.success { background: #1a7f37; }
.ci-badge.failure, .ci-badge.error { background: #cf222e; }
.ci-badge.running { background: #bf8700; }
.ci-badge.queued { background: var(--muted); }
.ci-runs .subject { margin: 0 8px; }
.ci-job { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; background: var(--box); overflow: hidden; }
.ci-job-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.ci-log { margin: 0; border-top: 1px solid var(--line); border-radius: 0; background: #0e0f11; color: #e8e8ea; padding: 12px 14px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 480px; overflow: auto; }
.ci-example { background: var(--box); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 8px; font-size: 13px; }
.mergebox.checks { display: flex; align-items: center; gap: 8px; }
.mergebox.checks.success { border-color: #1a7f37; }
.mergebox.checks.failure, .mergebox.checks.error { border-color: #cf222e; }

/* CI setup */
.ci-templates { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.ci-tmpl { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--fg); font-size: 14px; background: var(--box); }
.ci-tmpl.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.ci-editor { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--box); color: var(--fg); resize: vertical; }
.ci-actions { align-items: center; gap: 10px; margin: 12px 0 6px; }
.btn.secondary { background: var(--box); color: var(--fg); border: 1px solid var(--line); }
.ci-ai { margin: 6px 0 14px; }
.ci-ai-row { align-items: center; gap: 8px; margin-top: 6px; }
.ci-ai-row input { flex: 1; }
.ci-imports { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 14px; }
.ci-notes { border: 1px solid var(--line); border-left: 3px solid #bf8700; border-radius: 8px; padding: 10px 14px; margin: 12px 0; background: var(--box); }
.ci-notes ul { margin: 6px 0 0; padding-left: 18px; }
.ci-badge.canceled { background: var(--muted); }
.commit-right { display: inline-flex; align-items: center; gap: 8px; }
.ci-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.qr { margin: 14px 0; }
.qr img, .qr canvas { border: 8px solid #fff; border-radius: 8px; background: #fff; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.codes code { font-size: 15px; letter-spacing: 0.5px; }
.search-form { display: flex; gap: 8px; margin: 14px 0; }
.search-form input[type=search] { flex: 1; }
.code-result { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; background: var(--box); overflow: hidden; }
.code-result-repo { padding: 8px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.code-hits { list-style: none; margin: 0; padding: 0; }
.code-hits li { padding: 8px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.code-hits li:last-child { border-bottom: 0; }
.hit-path { font-size: 13px; text-decoration: none; }
.hit-text { font-size: 13px; white-space: pre-wrap; word-break: break-word; background: transparent; color: var(--fg); }

/* Documentation & Learn Git guides */
.content-intro { margin: 8px 0 24px; }
.content-intro h1 { font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.content-intro .lede { font-size: 17px; color: var(--muted); margin: 0; line-height: 1.55; max-width: 640px; }
.content-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.content-card { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--box); color: var(--fg); text-decoration: none; transition: border-color .12s, transform .12s; }
.content-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.content-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.content-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.content-layout { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
.content-side { position: sticky; top: 20px; font-size: 14px; }
.content-side .side-crumb { display: block; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.content-side ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.content-side li { margin: 0; }
.content-side li a { display: block; padding: 6px 12px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; line-height: 1.35; }
.content-side li a:hover { color: var(--fg); }
.content-side li.active a { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.content-body { margin: 0; }
.content-body h1 { font-size: 28px; font-weight: 800; margin: 4px 0 14px; }
.content-body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; padding-top: 6px; }
.content-body h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.content-body p, .content-body li { line-height: 1.65; }
.content-body pre { padding: 12px 14px; border-radius: 8px; overflow-x: auto; border: 1px solid var(--line); }
.content-body blockquote { border-left: 3px solid var(--accent); margin: 14px 0; padding: 2px 16px; color: var(--muted); background: color-mix(in srgb, var(--accent) 5%, transparent); border-radius: 0 6px 6px 0; }
.content-body table { width: 100%; margin: 14px 0; }
@media (max-width: 760px) {
  .content-cards { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .content-side { position: static; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
  .content-side ul { border-left: none; display: flex; flex-wrap: wrap; gap: 4px 2px; }
  .content-side li.active a { border-left: none; }
}
