/* TruthTrail site. The page is a file in an editor: tabs on top, a line gutter down the side, a status bar at the end.
   The memorable thing is the blame gutter in the hero: every line of code can show the decision behind it. */
:root {
  --bg: #fbfbfc; --panel: #f3f4f6; --panel2: #eceef2; --line: #e3e5ea; --line2: #d3d6dd;
  --ink: #16181d; --mut: #5e6470; --dim: #9aa0ab;
  --b: #2563eb; --b-ink: #1d4ed8; --b-soft: rgba(37,99,235,.08); --b-edge: rgba(37,99,235,.35);
  --ok: #15803d; --wait: #b45309; --bad: #dc2626;
  --code-bg: #ffffff; --kw: #7c3aed; --fn: #1d4ed8; --str: #047857; --cm: #8a919c; --num: #b45309;
  --m1: #5c5c5c; --m2: #1f1f1f; --mb: #1d4ed8;
  --shadow: 0 1px 0 rgba(0,0,0,.02), 0 30px 60px -30px rgba(22,24,29,.25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0d; --panel: #111317; --panel2: #1a1d22; --line: #22252b; --line2: #2e3239;
    --ink: #ececee; --mut: #a0a5ae; --dim: #5d626b;
    --b-ink: #7aa2f7; --b-soft: rgba(37,99,235,.14); --b-edge: rgba(74,128,240,.45);
    --ok: #4ade80; --wait: #fbbf24; --bad: #f87171;
    --code-bg: #0e1013; --kw: #c4a7ff; --fn: #7aa2f7; --str: #6ee7b7; --cm: #5d626b; --num: #fbbf24;
    --m1: #ffffff; --m2: #a3a3a3; --mb: #2563eb;
    --shadow: 0 30px 80px -30px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.6 "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, .mono, pre { font-family: "Geist Mono", ui-monospace, monospace; }
:focus-visible { outline: 2px solid var(--b); outline-offset: 2px; border-radius: 4px; }
.w { max-width: 1120px; margin: 0 auto; padding: 0 32px 0 88px; position: relative; }
@media (max-width: 900px) { .w { padding: 0 16px; } }

/* ---------- editor chrome: tabs ---------- */
.tabsbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tabsbar .in { max-width: 1120px; margin: 0 auto; padding: 0 32px 0 24px; display: flex; align-items: stretch; height: 52px; }
@media (max-width: 900px) { .tabsbar .in { padding: 0 12px; } }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; padding-right: 22px; margin-right: 6px; border-right: 1px solid var(--line); }
.brand svg { width: 22px; height: 22px; }
.ftab { display: flex; align-items: center; gap: 8px; padding: 0 16px; font: 450 13.5px "Geist Mono", monospace; color: var(--mut); border-right: 1px solid var(--line); position: relative; }
.ftab:hover { color: var(--ink); background: var(--panel); }
.ftab.on { color: var(--ink); }
.ftab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--b); }
.tabsbar .sp { flex: 1; }
.tlink { display: flex; align-items: center; padding: 0 12px; font-size: 14px; color: var(--mut); }
.tlink:hover { color: var(--ink); }
@media (max-width: 760px) { .tlink { display: none; } .brand { padding-right: 12px; margin-right: 0; } .ftab { padding: 0 10px; font-size: 12.5px; } }
@media (max-width: 560px) { .brand .bn { display: none; } }

/* ---------- the page gutter: line numbers down the left ---------- */
.pagewrap { position: relative; max-width: 1120px; margin: 0 auto; }
.gutter { position: absolute; top: 0; left: 0; width: 56px; bottom: 0; z-index: 0; pointer-events: none; border-right: 1px solid var(--line); font: 400 11.5px/28px "Geist Mono", monospace; color: var(--dim); text-align: right; padding-right: 12px; overflow: hidden; user-select: none; }
.gutter span { display: block; height: 28px; opacity: .7; }
.gutter span.on { color: var(--b-ink); opacity: 1; }
@media (max-width: 900px) { .gutter { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 8px; font-weight: 550; font-size: 15px; border: 1px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn.p { background: var(--b); color: #fff; }
.btn.p:hover { background: #1d4ed8; }
.btn.o { border-color: var(--line2); background: var(--bg); }
.btn.o:hover { border-color: var(--ink); }
.cmd { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 16px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); font: 500 14.5px "Geist Mono", monospace; }
.cmd .pr { color: var(--dim); }
.cmd .cp { height: 32px; padding: 0 11px; border-radius: 6px; font: 500 12.5px "Geist", sans-serif; color: var(--mut); display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--bg); }
.cmd:hover .cp { color: var(--ink); border-color: var(--line2); }
.cmd.done .cp { color: var(--ok); border-color: var(--ok); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 30px; position: relative; z-index: 1; }
.hero .path { font: 450 13px "Geist Mono", monospace; color: var(--dim); }
.hero h1 { font: 650 clamp(40px, 6vw, 78px)/1.0 "Geist", sans-serif; letter-spacing: -.045em; margin-top: 20px; max-width: 900px; }
.hero h1 .g { color: var(--dim); }
.hero .sub { font-size: 19px; line-height: 1.55; color: var(--mut); max-width: 660px; margin-top: 24px; }
.hero .sub strong { color: var(--ink); font-weight: 550; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* the editor */
.ed { margin-top: 52px; border: 1px solid var(--line2); border-radius: 12px; background: var(--code-bg); box-shadow: var(--shadow); overflow: hidden; }
.ed-top { display: flex; align-items: center; height: 40px; border-bottom: 1px solid var(--line); background: var(--panel); font: 450 12.5px "Geist Mono", monospace; color: var(--mut); }
.ed-top .t { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--code-bg); border-right: 1px solid var(--line); color: var(--ink); }
.ed-top .t i { width: 8px; height: 8px; border-radius: 2px; background: #3178c6; }
.ed-top .hint { margin-left: auto; padding: 0 14px; color: var(--dim); }
@media (max-width: 640px) { .ed-top .hint { display: none; } }
.code { font: 400 13.5px/26px "Geist Mono", monospace; padding: 10px 0; overflow-x: auto; }
.ln { display: grid; grid-template-columns: 236px 40px 1fr; min-width: 680px; position: relative; }
@media (max-width: 640px) { .ln { grid-template-columns: 118px 30px 1fr; min-width: 600px; } }
.bl { padding: 0 12px 0 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; border-right: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.nr { text-align: right; padding-right: 12px; color: var(--dim); font-size: 12px; }
.src { white-space: pre; padding-right: 20px; }
.k1 { color: var(--kw); } .k2 { color: var(--fn); } .k3 { color: var(--str); } .k4 { color: var(--cm); font-style: italic; } .k5 { color: var(--num); }
/* lines that carry a decision */
.ln.d { cursor: pointer; }
.ln.d::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.ln.d .bl { color: var(--ink); }
.ln.d.cont .bl > * { visibility: hidden; }
.ln.d:hover, .ln.d.sel { background: var(--b-soft); }
.ln[data-s="waiting"] { --c: var(--wait); } .ln[data-s="confirmed"] { --c: var(--ok); } .ln[data-s="rejected"] { --c: var(--bad); }
.pill { font: 500 10.5px/1 "Geist Mono", monospace; padding: 4px 6px; border-radius: 4px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); flex: none; }
.bl .who { color: var(--mut); overflow: hidden; text-overflow: ellipsis; }

/* inline decision card, under the selected block */
.card { display: none; margin: 6px 20px 10px 290px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); font: 400 14px/1.55 "Geist", sans-serif; overflow: hidden; max-width: 620px; }
@media (max-width: 760px) { .card { margin: 6px 12px 10px; } }
.card.on { display: block; animation: open .28s cubic-bezier(.2,.7,.2,1); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }
.card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--mut); }
.card-h b { font: 600 13px "Geist Mono", monospace; color: var(--ink); }
.card-h .tk { font-family: "Geist Mono", monospace; color: var(--b-ink); margin-left: auto; }
.card-b { padding: 14px; display: grid; gap: 6px; }
.card-b .q { font-size: 15.5px; font-weight: 550; }
.card-b .a { color: var(--mut); }
.card-b .a b { color: var(--ink); font-weight: 550; }
.card-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px dashed var(--line2); min-height: 52px; }
.card-f .as { font-size: 13px; color: var(--mut); margin-right: auto; }
.card-f button { height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line2); font: 500 13px "Geist Mono", monospace; background: var(--bg); }
.card-f button.y:hover { border-color: var(--ok); color: var(--ok); }
.card-f button.n:hover { border-color: var(--bad); color: var(--bad); }
.card-f .done { font-size: 13.5px; color: var(--mut); margin-right: auto; }
.card-f .done b { color: var(--c); font-weight: 550; }
.card-f button.undo { border: 0; height: auto; padding: 0; color: var(--b-ink); font: 13px "Geist", sans-serif; text-decoration: underline; text-underline-offset: 3px; }

/* editor status bar: the PR check reacts to the visitor */
.sb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; min-height: 34px; padding: 6px 14px; border-top: 1px solid var(--line); background: var(--panel); font: 450 12.5px "Geist Mono", monospace; color: var(--mut); }
.sb .chk { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.sb .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); transition: background .3s; }
.sb .chk[data-s="neutral"] { --c: var(--wait); } .sb .chk[data-s="success"] { --c: var(--ok); } .sb .chk[data-s="failure"] { --c: var(--bad); }
.sb .chk.flash .dot { animation: ping .7s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.sb .r { margin-left: auto; color: var(--dim); }
.ex { font-size: 13px; color: var(--dim); margin-top: 12px; }

/* ---------- sections ---------- */
.sc { padding: 110px 0 10px; position: relative; z-index: 1; }
.hd { font: 450 13px "Geist Mono", monospace; color: var(--dim); margin-bottom: 18px; }
.hd b { color: var(--b-ink); font-weight: 450; }
h2.h { font: 650 clamp(32px, 4.2vw, 52px)/1.05 "Geist", sans-serif; letter-spacing: -.04em; max-width: 800px; }
h2.h .g { color: var(--dim); }
.lead { font-size: 18px; color: var(--mut); margin-top: 18px; max-width: 640px; }
.lead code { font-size: 15px; }
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rv.vis { opacity: 1; transform: none; }
.nojs .rv { opacity: 1; transform: none; }

/* the gap: the chat that ends vs the ticket that never changes */
.gap { margin-top: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .gap { grid-template-columns: 1fr; } }
.pane { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.pane-h { font: 450 12.5px "Geist Mono", monospace; color: var(--mut); padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.pane-h span:last-child { color: var(--dim); }
.pane-b { padding: 16px; display: grid; gap: 12px; font-size: 14.5px; }
.say { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.say .n { font: 450 12.5px/1.9 "Geist Mono", monospace; color: var(--dim); }
.say.end { color: var(--dim); font: 450 12.5px "Geist Mono", monospace; border-top: 1px dashed var(--line2); padding-top: 12px; display: block; }
.tkt .k { font: 600 12.5px "Geist Mono", monospace; color: var(--b-ink); }
.tkt h4 { font-size: 17px; font-weight: 600; margin: 6px 0 12px; }
.tkt .ac { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--mut); }
.tkt .ac b { display: block; color: var(--ink); font-weight: 550; margin-bottom: 4px; font-size: 13.5px; }
.tkt .miss { margin-top: 12px; font: 450 12.5px/1.7 "Geist Mono", monospace; color: var(--bad); }

/* how: a two-lane trail between code and ticket */
.trail { margin-top: 52px; display: grid; grid-template-columns: 1fr 140px 1fr; }
.trail .lane-h { font: 450 12.5px "Geist Mono", monospace; color: var(--dim); padding-bottom: 10px; }
.trail .lane-h.l { text-align: right; }
.trail .ev { padding: 14px 0; }
.trail .ev.l { text-align: right; grid-column: 1; }
.trail .ev.r { grid-column: 3; }
.trail .ev:nth-of-type(1) { grid-row: 2; }
.trail .ev:nth-of-type(2) { grid-row: 3; }
.trail .ev:nth-of-type(3) { grid-row: 4; }
.trail .ev:nth-of-type(4) { grid-row: 5; }
.trail .ev:nth-of-type(5) { grid-row: 6; }
.trail .ev:nth-of-type(6) { grid-row: 7; }
.trail .ev .who { font: 450 12.5px "Geist Mono", monospace; color: var(--dim); }
.trail .ev h3 { font-size: 17px; font-weight: 600; margin-top: 3px; }
.trail .ev p { font-size: 14.5px; color: var(--mut); margin-top: 4px; }
.trail .ev code { font-size: 13px; padding: 1px 6px; border-radius: 4px; background: var(--panel2); color: var(--ink); }
.trail svg.g { grid-column: 2; grid-row: 2 / 8; width: 140px; height: 100%; overflow: visible; }
.trail svg.g .rail { stroke: var(--line2); stroke-width: 1.5; fill: none; }
.trail svg.g .lit { stroke: var(--b); stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.4,0,.2,1); }
.trail.vis svg.g .lit { stroke-dashoffset: 0; }
.trail svg.g circle { fill: var(--bg); stroke: var(--b); stroke-width: 2; }
.trail svg.g circle.ok { fill: var(--ok); stroke: var(--ok); }
@media (max-width: 760px) {
  .trail { grid-template-columns: 1fr; }
  .trail .lane-h, .trail svg.g { display: none; }
  .trail .ev.l, .trail .ev.r { grid-column: 1; text-align: left; padding-left: 16px; border-left: 2px solid var(--line2); }
  .trail .ev.l { border-left-color: var(--b); }
}

/* works with: plain support matrix */
.mx { margin-top: 44px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mx table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mx th, .mx td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mx tr:last-child td { border-bottom: 0; }
.mx th { font: 450 12.5px "Geist Mono", monospace; color: var(--dim); background: var(--panel); font-weight: 400; }
.mx td:first-child { font-weight: 550; white-space: nowrap; width: 190px; }
.mx td .t { display: inline-block; margin: 0 6px 6px 0; padding: 3px 9px; border-radius: 5px; border: 1px solid var(--line2); font: 450 13px "Geist Mono", monospace; }
.mx td p { color: var(--mut); font-size: 14.5px; }
@media (max-width: 640px) { .mx td:first-child { width: auto; white-space: normal; } .mx th:nth-child(3), .mx td:nth-child(3) { display: none; } }

/* roles as flags */
.flags { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 8px; font: 450 14px "Geist Mono", monospace; }
.flags .pr { color: var(--dim); align-self: center; margin-right: 4px; }
.flag { height: 36px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line2); color: var(--mut); font: inherit; }
.flag:hover { color: var(--ink); }
.flag[aria-selected="true"] { color: var(--b-ink); border-color: var(--b-edge); background: var(--b-soft); }
.man { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 28px 30px; background: var(--panel); display: none; }
.man.on { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; animation: open .3s both; }
@media (max-width: 900px) { .man.on { grid-template-columns: 1fr; gap: 18px; } .man { padding: 22px; } }
.man h3 { font: 600 24px/1.2 "Geist", sans-serif; letter-spacing: -.02em; }
.man ul { display: grid; gap: 12px; }
.man li { position: relative; padding-left: 22px; font-size: 15.5px; }
.man li::before { position: absolute; left: 0; top: 0; content: "›"; color: var(--b-ink); font-family: "Geist Mono", monospace; }
.man code { font-size: 13.5px; padding: 1px 6px; border-radius: 4px; background: var(--panel2); }

/* data: the actual record */
.data { margin-top: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .data { grid-template-columns: 1fr; } }
.json { font: 400 13px/1.85 "Geist Mono", monospace; padding: 16px 18px; white-space: pre; overflow-x: auto; background: var(--code-bg); }
.json .c { color: var(--cm); } .json .s { color: var(--str); } .json .k { color: var(--fn); } .json .lock { color: var(--b-ink); }
.never { padding: 18px; display: grid; gap: 12px; background: var(--panel); }
.never li { position: relative; padding-left: 22px; font-size: 15px; }
.never li::before { position: absolute; left: 0; top: 0; content: "✕"; color: var(--dim); font-size: 12px; line-height: 1.9; }
.never p.note { color: var(--mut); font-size: 14px; padding-top: 12px; border-top: 1px dashed var(--line2); }
.never a, .lead a { color: var(--b-ink); text-decoration: underline; text-underline-offset: 3px; }

/* pricing: two columns */
.price { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } }
.pc { padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.pc + .pc { border-left: 1px solid var(--line); background: var(--b-soft); }
@media (max-width: 760px) { .pc + .pc { border-left: 0; border-top: 1px solid var(--line); } }
.pc .nm { font: 450 13px "Geist Mono", monospace; color: var(--mut); }
.pc .am { font: 650 38px/1.1 "Geist", sans-serif; letter-spacing: -.03em; }
.pc .am small { font-size: 15px; font-weight: 400; color: var(--mut); letter-spacing: 0; margin-left: 6px; }
.pc > p { color: var(--mut); font-size: 15px; }
.pc ul { margin: 14px 0 22px; display: grid; gap: 8px; }
.pc li { font-size: 15px; position: relative; padding-left: 20px; }
.pc li::before { position: absolute; left: 0; top: 0; content: "+"; font-family: "Geist Mono", monospace; color: var(--ok); }
.pc .btn { margin-top: auto; align-self: flex-start; }
.pc code { font-size: 13.5px; }

/* faq */
.faq { margin-top: 40px; border-top: 1px solid var(--line); max-width: 860px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 0; display: grid; grid-template-columns: 28px 1fr; font-size: 17px; font-weight: 550; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font: 450 16px/1.6 "Geist Mono", monospace; color: var(--dim); }
details[open] summary::before { content: "−"; color: var(--b-ink); }
details > div { padding: 0 0 20px 28px; color: var(--mut); font-size: 15.5px; max-width: 720px; }
details code { font-size: 13.5px; padding: 1px 5px; border-radius: 4px; background: var(--panel2); color: var(--ink); }

/* closing */
.end { padding: 120px 0 90px; position: relative; z-index: 1; }
.end h2 { font: 650 clamp(36px, 5vw, 64px)/1.02 "Geist", sans-serif; letter-spacing: -.045em; max-width: 820px; }
.end h2 .g { color: var(--dim); }
.adds { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--code-bg); max-width: 640px; overflow: hidden; }
.adds .pane-h { background: var(--panel); }
.adds ul { padding: 14px 18px; display: grid; gap: 4px; font: 400 13.5px/1.7 "Geist Mono", monospace; }
.adds li { position: relative; padding-left: 20px; }
.adds li::before { position: absolute; left: 0; top: 0; content: "+"; color: var(--ok); }
.adds li span { color: var(--dim); margin-left: 10px; }
.end .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* status bar footer */
.status { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--panel); font: 450 12.5px "Geist Mono", monospace; color: var(--mut); }
.status .in { max-width: 1120px; margin: 0 auto; padding: 0 32px 0 24px; min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
@media (max-width: 900px) { .status .in { padding: 8px 16px; } }
.status a:hover { color: var(--ink); }
.status .sp { flex: 1; }

/* ---------- legal page: privacy.md ---------- */
.doc { padding: 64px 0 100px; position: relative; z-index: 1; }
.doc .md { max-width: 740px; }
.doc .path { font: 450 13px "Geist Mono", monospace; color: var(--dim); }
.doc h1 { font: 650 clamp(36px, 5vw, 56px)/1.05 "Geist", sans-serif; letter-spacing: -.04em; margin-top: 18px; }
.doc h1::before, .doc h2::before { font-family: "Geist Mono", monospace; color: var(--dim); font-weight: 400; margin-right: .35em; }
.doc h1::before { content: "#"; }
.doc h2::before { content: "##"; font-size: .8em; }
.doc .upd { margin-top: 12px; color: var(--dim); font: 450 13px "Geist Mono", monospace; }
.doc .tldr { margin-top: 30px; border-left: 3px solid var(--b); padding: 4px 0 4px 18px; }
.doc .tldr p { color: var(--ink); font-size: 16.5px; }
.doc .tldr p + p { margin-top: 8px; }
.doc h2 { font: 600 23px/1.25 "Geist", sans-serif; letter-spacing: -.02em; margin: 50px 0 14px; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--mut); font-size: 16px; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul { margin-top: 10px; display: grid; gap: 8px; }
.doc li { position: relative; padding-left: 18px; }
.doc li::before { position: absolute; left: 0; top: 0; content: "-"; font-family: "Geist Mono", monospace; color: var(--dim); }
.doc li b, .doc p b { color: var(--ink); font-weight: 550; }
.doc a { color: var(--b-ink); text-decoration: underline; text-underline-offset: 3px; }
.doc code { font-size: 14px; padding: 1px 5px; border-radius: 4px; background: var(--panel2); color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--mut); }
.doc th { font: 450 12.5px "Geist Mono", monospace; color: var(--dim); font-weight: 400; }
.doc td:first-child { color: var(--ink); font-weight: 550; white-space: nowrap; padding-right: 18px; }
@media (max-width: 640px) { .doc td:first-child { white-space: normal; } }
.toc { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { font: 450 12.5px "Geist Mono", monospace; padding: 4px 9px; border-radius: 5px; border: 1px solid var(--line); color: var(--mut); text-decoration: none; }
.toc a:hover { color: var(--ink); border-color: var(--line2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .card.on, .man.on { animation: none; }
  .trail svg.g .lit { transition: none; stroke-dashoffset: 0; }
  .sb .chk.flash .dot { animation: none; }
}


/* hero: terminal -> Jira -> PR check */
.flowline { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--mut); }
.flowline li { display: flex; align-items: center; gap: 8px; }
.flowline li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 500 11.5px "Geist Mono", monospace; border: 1px solid var(--b-edge); color: var(--b-ink); background: var(--b-soft); }
.flowline + .ed { margin-top: 16px; }
.split { display: grid; grid-template-columns: 1fr 0 1fr; min-height: 420px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.side { display: flex; flex-direction: column; min-width: 0; }
.jira-side { border-left: 1px solid var(--line); }
@media (max-width: 860px) { .jira-side { border-left: 0; border-top: 1px solid var(--line); } }
.ed-top .sq { width: 8px; height: 8px; border-radius: 2px; background: var(--dim); }
.ed-top .sq.j { background: #2684ff; }
.ed-top .hint { font-size: 12px; }
.term { flex: 1; padding: 16px 18px; font: 400 13.5px/1.75 "Geist Mono", monospace; background: #0b0c0f; color: #d6d8dd; }
.term .tl { opacity: 1; }
.term.play .tl { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.term.play .tl.in { opacity: 1; transform: none; }
.term .tl + .tl { margin-top: 6px; }
.term .pr { color: #6b7280; }
.term .you { color: #fff; }
.term .ag { color: #c9cdd4; }
.term .ag::first-letter { color: #e8a87c; }
.term .opt { color: #8b919c; }
.term .tool { color: #9aa0ab; } .term .tool b { color: #7aa2f7; font-weight: 500; }
.term .ok { color: #4ade80; }
.bridge { position: relative; z-index: 2; }
.bridge span { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0; font: 500 11.5px "Geist Mono", monospace; padding: 5px 10px; border-radius: 999px; background: var(--b); color: #fff; white-space: nowrap; transition: opacity .35s, transform .35s; box-shadow: 0 0 0 4px var(--code-bg); }
.bridge.on span { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bridge.on span::after { content: " →"; }
@media (max-width: 860px) { .bridge { display: none; } }
.jira { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; background: var(--code-bg); }
.jk { font: 600 12.5px "Geist Mono", monospace; color: var(--b-ink); }
.jt { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.jd { color: var(--mut); }
.jc { margin-top: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--mut); }
.jira .cm { padding: 12px 0; --c: var(--wait); }
.jira .cm[data-s="confirmed"] { --c: var(--ok); } .jira .cm[data-s="rejected"] { --c: var(--bad); }
.jira .cm:not([hidden]) { animation: open .4s both; }
.jira .card-f { padding: 12px 0 0; border-top: 1px dashed var(--line2); margin-top: auto; }
.jira .card-f[hidden], .jira .cm[hidden] { display: none; }
.replay { margin-left: auto; color: var(--b-ink); font: 450 12.5px "Geist Mono", monospace; }
.replay:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ticket comments */
.cm { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.cm + .cm { border-top: 1px solid var(--line); }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 11px "Geist", sans-serif; color: #fff; background: #7c5cd6; }
.av.bot { background: #0f1115; border: 1px solid var(--line2); }
.av.bot svg { width: 14px; height: 14px; }
.cm-by { font-size: 13.5px; }
.cm-by span { color: var(--dim); margin-left: 4px; }
.cm-q { margin-top: 4px; font-size: 14.5px; }
.cm-q b { font-weight: 600; }
.cm-st { margin-top: 6px; font-size: 13.5px; color: var(--c); }
.cm-st b { font-weight: 600; }
.cm-cmd { margin-top: 4px; font: 450 13.5px "Geist Mono", monospace; }
.split { min-height: 380px; }

/* terminal transcript */
.term { font-size: 12.5px; line-height: 1.65; }
.term .tl + .tl { margin-top: 7px; }
.term .dim { color: #6b7280; }
.term .br { color: #7aa2f7; }
.term .prompt { color: #fff; padding: 6px 10px; border: 1px solid #2e3239; border-radius: 6px; }
.term .dot { color: #4ade80; }
.term b { color: #fff; font-weight: 500; }
.term .out { color: #9aa0ab; padding-left: 14px; }
.term .pick { color: #8b919c; padding-left: 14px; }
.term .pick .sel { color: #7aa2f7; }
.term .post { color: #c9cdd4; }

/* agent switcher */
.ed-top.agents { padding-left: 6px; }
.seg { display: flex; gap: 2px; }
.seg button { height: 28px; padding: 0 10px; border-radius: 6px; font: 500 12.5px "Geist", sans-serif; color: var(--mut); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--code-bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line2); }
/* Cursor / Copilot: chat panel instead of a terminal */
.term.chat { font: 400 13.5px/1.55 "Geist", sans-serif; background: #111318; color: #d6d8dd; }
.term.chat .tl + .tl { margin-top: 10px; }
.term.chat .u { justify-self: start; padding: 8px 12px; border-radius: 10px; background: #1e2128; color: #fff; border: 1px solid #2a2e36; }
.term.chat .a { color: #d6d8dd; }
.term.chat .tc { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #9aa0ab; padding: 7px 10px; border: 1px solid #262a31; border-radius: 8px; background: #0d0f13; }
.term.chat .tc b { color: #e6e8ec; font-weight: 500; font-family: "Geist Mono", monospace; font-size: 12px; }
.term.chat .tc .ck { color: #4ade80; }
.term.chat .res { font: 400 12px/1.6 "Geist Mono", monospace; color: #9aa0ab; padding: 6px 10px; border-left: 2px solid #262a31; margin-left: 10px; }
.term.chat .opt { display: flex; gap: 6px; flex-wrap: wrap; }
.term.chat .opt span { font-size: 12.5px; padding: 4px 10px; border-radius: 6px; border: 1px solid #2e3239; color: #9aa0ab; }
.term.chat .opt span.on { border-color: #4a80f0; color: #fff; background: rgba(37,99,235,.18); }
.term.chat .ed1 { font-size: 12.5px; color: #9aa0ab; } .term.chat .ed1 b { font-family: "Geist Mono", monospace; font-weight: 500; color: #e6e8ec; } .term.chat .ed1 i { font-style: normal; color: #4ade80; }
.term.copilot { background: #181a1f; }
.term.copilot .u { background: transparent; border: 0; padding: 0; }
.term.copilot .u::before { content: "You"; display: block; font-size: 12px; font-weight: 600; color: #9aa0ab; margin-bottom: 2px; }
.term.copilot .who { display: block; font-size: 12px; font-weight: 600; color: #9aa0ab; margin-bottom: 2px; }
.term.copilot .tc { border: 0; background: transparent; padding: 0; }
/* the reply bar on the Jira side */
.jira .card-f { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; }
.jira .card-f .as, .jira .card-f .done { grid-column: 1 / -1; margin: 0; }
.jira .card-f .undo { justify-self: start; }
.term.chat { display: flex; flex-direction: column; align-items: flex-start; } .term.chat .a, .term.chat .res { align-self: stretch; }
.bridge span { width: 26px; height: 26px; padding: 0; display: grid; place-items: center; font-size: 13px; top: 172px; }
.bridge.on span::after { content: none; }
.tlink .npm { width: 18px; height: 18px; border-radius: 3px; display: block; margin-right: 7px; transition: transform .15s; }
.tlink:hover .npm { transform: translateY(-1px); }
.fnpm { display: inline-flex; align-items: center; gap: 6px; }
.fnpm .npm { width: 14px; height: 14px; border-radius: 2px; }

/* mobile menu */
.menu { display: none; width: 40px; align-self: center; height: 36px; margin-left: auto; border: 1px solid var(--line2); border-radius: 8px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu i { width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.menu[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mnav { display: none; }
@media (max-width: 760px) {
  .menu { display: flex; }
  .tabsbar .sp { display: none; }
  .mnav:not([hidden]) { display: grid; border-top: 1px solid var(--line); padding: 6px 16px 14px; background: var(--bg); }
  .mnav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: flex; align-items: center; gap: 8px; }
  .mnav a:last-child { border-bottom: 0; }
  .mnav .npm { width: 16px; height: 16px; border-radius: 3px; }
}

/* service logos */
.ico { width: 16px; height: 16px; flex: none; }
.btn .ico { width: 17px; height: 17px; margin-right: -2px; }
.mx td .t { display: inline-flex; align-items: center; gap: 6px; }
.mx td .t .ico { width: 14px; height: 14px; }
.ed-top .t .ico { width: 13px; height: 13px; }

/* ---------- docs: sidebar + content, same width and gutter as the other pages ---------- */
.docs { padding: 0 0 80px; }
.docs .dgrid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; align-items: start; }
@media (max-width: 860px) { .docs .dgrid { grid-template-columns: minmax(0, 1fr); } }
.dnav { position: sticky; top: 52px; max-height: calc(100vh - 52px); overflow-y: auto; padding: 32px 18px 40px 0; border-right: 1px solid var(--line); display: block; font-size: 14px; }
.dnav-h { font: 600 13px "Geist", sans-serif; color: var(--ink); margin: 22px 0 6px; }
.dnav-h:first-child { margin-top: 0; }
.dnav a { display: block; padding: 5px 12px; margin: 1px 0; border-left: 2px solid var(--line); color: var(--mut); text-decoration: none; }
.dnav a:hover { color: var(--ink); border-left-color: var(--line2); }
.dnav a.on { color: var(--b-ink); border-left-color: var(--b); font-weight: 500; }
.dnav .sub { display: grid; margin: 2px 0 6px; }
.dnav .sub a { padding: 3px 12px 3px 24px; font-size: 13px; }
.dnav .sub a:hover, .dnav .sub a.on { color: var(--ink); }
@media (max-width: 860px) { .dnav { display: none; } }
.docs .md { max-width: 760px; padding: 40px 0 0 44px; }
@media (max-width: 860px) { .docs .md { padding: 28px 0 0; } }
.docs .crumb { font-size: 14px; font-weight: 500; color: var(--b-ink); }
.docs h1 { font: 650 clamp(30px, 4vw, 40px)/1.15 "Geist", sans-serif; letter-spacing: -.03em; margin-top: 8px; }
.docs h1::before, .docs h2::before { content: none; }
.docs .lede { margin-top: 14px; font-size: 18px; color: var(--mut); line-height: 1.6; }
.docs h2 { font: 650 26px/1.25 "Geist", sans-serif; letter-spacing: -.02em; margin: 56px 0 12px; padding-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 0; }
.docs h3 { font: 600 18px/1.35 "Geist", sans-serif; margin: 28px 0 8px; scroll-margin-top: 0; }
.docs p, .docs li { font-size: 16px; line-height: 1.75; }
.jump { display: none; }
@media (max-width: 860px) { .jump { display: grid; gap: 6px; margin-bottom: 20px; font-size: 13px; color: var(--mut); } .jump select { height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font: 500 15px "Geist", sans-serif; } }
/* role cards */
.roles4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 560px) { .roles4 { grid-template-columns: 1fr; } }
.doc .roles4 a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.doc .roles4 a:hover { border-color: var(--b-edge); box-shadow: 0 0 0 3px var(--b-soft); }
.roles4 b { color: var(--ink); font-weight: 600; }
.roles4 span { color: var(--mut); font-size: 14.5px; }
/* code blocks */
.cb { position: relative; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.cb pre { margin: 0; padding: 14px 16px; padding-right: 84px; overflow-x: auto; font: 400 13.5px/1.7 "Geist Mono", monospace; color: var(--ink); }
.cb button { position: absolute; top: 9px; right: 9px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg); font: 500 12.5px "Geist", sans-serif; color: var(--mut); }
.cb button:hover { color: var(--ink); }
.cb button.done { color: var(--ok); border-color: var(--ok); }
/* callout */
.doc p.note { margin-top: 14px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--wait) 35%, transparent); background: color-mix(in srgb, var(--wait) 7%, transparent); border-radius: 8px; color: var(--ink); font-size: 15px; }
.doc p.note::before { content: "Note: "; font-weight: 600; }
/* numbered steps */
ol.steps2 { counter-reset: s; margin-top: 14px; display: grid; gap: 16px; }
ol.steps2 li { counter-increment: s; position: relative; padding-left: 38px; color: var(--mut); }
ol.steps2 li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12.5px "Geist", sans-serif; background: var(--panel2); color: var(--ink); border: 1px solid var(--line2); }
ol.steps2 b { color: var(--ink); font-weight: 600; }
/* tables scroll on small screens instead of widening the page */
.docs table { display: block; overflow-x: auto; }
.docs td code { white-space: normal; word-break: break-word; }
/* troubleshooting */
dl.tb { margin-top: 12px; display: grid; gap: 10px; }
dl.tb dt { font-weight: 600; color: var(--ink); font-size: 15.5px; }
dl.tb dd { margin: -6px 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--mut); font-size: 15px; line-height: 1.7; }
@media (max-width: 400px) { .ftab { padding: 0 8px; font-size: 12px; } }
.dnav a.has-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dnav .car { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s; opacity: .7; flex: none; }
.dnav a.has-sub.on .car { transform: rotate(45deg); }
@media (max-width: 560px) { .ftab { padding: 0 10px; font-size: 12.5px; } .menu { flex: none; margin-left: auto; } .tabsbar .in { gap: 0; } }
@media (max-width: 360px) { .ftab { padding: 0 7px; font-size: 11.5px; } }
