/* Self hosted fonts (OFL) */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Product recreation fonts */
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* =========================================================
   Page system, modelled on a dark editorial case study:
   one centred reading column, mono section labels,
   a chapter list that tracks where you are, numbered cards.
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --card: #121214;
  --card-2: #18181b;
  --line: #27272a;
  --ink: #fafafa;
  --body: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent: #60a5fa;

  --said: #a1a1aa;
  --called: #60a5fa;
  --confirmed: #4ade80;
  --approved: #fbbf24;
  --live: #fafafa;

  --font: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --sans: var(--font);
  --mid: var(--muted);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --text: 640px;
  --wide: 960px;
  --gut: 24px;
  --nav: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 32px); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(96, 165, 250, .25); color: var(--ink); }
a { color: var(--ink); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: calc(var(--wide) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.col, section.col, .hero { max-width: var(--text); margin-left: auto; margin-right: auto; }
section > .col { max-width: var(--text); margin-left: auto; margin-right: auto; }

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav);
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut);
  background: rgba(10, 10, 10, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 500;
}
.top a:last-child { color: var(--muted); transition: color .2s ease; }
.top a:last-child:hover { color: var(--ink); }

/* ---------- Labels ---------- */
.eyebrow, .back, .facts dt, .short-h, .tl-h, .toc li a, .toc-pill, .months, .n {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); margin: 0 0 12px; }
.back { display: inline-block; color: var(--muted); margin-bottom: 40px; transition: color .2s ease; }
.back:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; }
.hero h1, .hero.v2 h1 {
  font-weight: 500; color: var(--ink);
  font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.025em;
  margin: 0 0 20px; max-width: none;
}
.hero .lede, .hero.v2 .lede { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0 0 40px; max-width: none; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; margin: 0; }
.facts dt { color: var(--faint); }
.facts dd { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); }

.short { margin-top: 40px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-lg); padding: 24px; }
.short-h { color: var(--muted); margin: 0 0 20px; }
.short-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 0; }
.short-grid dt { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.short-grid dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 96px 0 0; position: relative; }
h2 { font-weight: 500; color: var(--ink); font-size: 26px; line-height: 1.3; letter-spacing: -0.016em; margin: 0 0 20px; max-width: none; }
h3 { font-weight: 500; color: var(--ink); font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; margin: 48px 0 8px; }
h3.tight { margin-top: 0; }
.eyebrow + h3 { margin-top: 0; }
p + .eyebrow, ol + .eyebrow, .col > .eyebrow:not(:first-child) { margin-top: 48px; }
h4 { font-weight: 500; color: var(--ink); font-size: 15.5px; line-height: 1.4; margin: 0 0 4px; }
p { margin: 0 0 18px; }
.quiet { color: var(--muted); }
b { color: var(--ink); font-weight: 500; }
.pull {
  color: var(--ink); font-weight: 400;
  font-size: 21px; line-height: 1.5; letter-spacing: -0.012em;
  margin: 40px 0; padding: 0; border: 0; max-width: none;
}

/* Titled list (no numbers) */
ol.items { list-style: none; margin: 24px 0 8px; padding: 0; display: grid; gap: 20px; }
ol.items li { padding-left: 20px; border-left: 1px solid var(--line); }
ol.items p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Numbered card */
ol.cards { list-style: none; margin: 24px 0 8px; padding: 8px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
ol.cards li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
ol.cards li:first-child { border-top: 0; }
ol.cards .n { font-size: 20px; letter-spacing: 0; color: var(--faint); text-transform: none; line-height: 1.2; }
ol.cards p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* In short */
.tldr { position: static; width: auto; margin: 0 0 28px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14.5px; line-height: 1.55; }
.tl-h { color: var(--faint); margin: 0 0 10px; }
.tldr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tldr li { position: relative; padding-left: 16px; color: var(--body); }
.tldr li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 1px; background: var(--muted); }
.tl-metric { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.tl-metric b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Figures ---------- */
figure { margin: 40px auto; max-width: var(--wide); }
figcaption { font-size: 13px; color: var(--muted); margin: 12px auto 0; max-width: var(--text); line-height: 1.55; }
.stage { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(12px, 3vw, 40px); overflow: hidden; }
.stage.tight { padding: clamp(12px, 3vw, 40px); }
.stage .k { border-radius: var(--r-md); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px -20px rgba(0,0,0,.8); overflow: hidden; }
.stage:not(.tight) .k { padding: 28px; }
.pair { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pair > .stage { display: flex; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; margin: 0 0 12px; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.concept { color: var(--accent); background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.25); }
figure > .tag { margin-left: max(0px, calc((100% - var(--text)) / 2)); }

/* ---------- Diagrams ---------- */
.diagram { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 40px); }
.model { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.model h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; color: var(--muted); margin: 0 0 16px; }
.node { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; background: var(--card-2); font-size: 14.5px; color: var(--ink); }
.node small { display: block; color: var(--muted); font-size: 12.5px; }
.node.big { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; border-color: #52525b; background: #1c1c1f; }
.node.dim { color: var(--muted); background: transparent; }
.stack { display: grid; gap: 8px; }
.wire { height: 24px; width: 1px; background: #52525b; margin-left: 24px; }
.chans { display: flex; flex-wrap: wrap; gap: 8px; }
.chans span { border: 1px solid #52525b; border-radius: 99px; padding: 5px 14px; font-size: 13.5px; color: var(--ink); background: var(--card-2); }
.chans span.later { border-style: dashed; color: var(--muted); border-color: #3f3f46; background: transparent; }
.legend { font-size: 12.5px; color: var(--muted); margin-top: 16px; display: flex; gap: 20px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 22px; height: 0; border-top: 1px solid var(--ink); vertical-align: middle; margin-right: 6px; }
.legend i.d { border-top-style: dashed; border-color: var(--muted); }

/* ---------- Timeline ---------- */
.tenure { margin: 40px auto 8px; max-width: var(--wide); }
.months { display: grid; grid-template-columns: repeat(10, 1fr); color: var(--faint); border-bottom: 1px solid var(--line); padding-bottom: 8px; letter-spacing: .04em; }
.bands { position: relative; height: 156px; margin-top: 12px; }
.band { position: absolute; height: 46px; border-radius: var(--r-sm); background: #e4e4e7; color: #0a0a0a; font-size: 13px; line-height: 1.25; padding: 7px 10px; overflow: hidden; }
.band.alt { background: var(--card-2); color: var(--ink); border: 1px solid var(--line); }
.band b { font-family: var(--mono); font-weight: 400; font-size: 11px; color: inherit; opacity: .6; display: block; }
.pin { position: absolute; top: 110px; font-size: 12.5px; color: var(--ink); padding-left: 10px; border-left: 1px solid #52525b; line-height: 1.35; height: 42px; }
.pin span { color: var(--muted); display: block; }

/* ---------- Proof scale ---------- */
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 40px auto 16px; max-width: var(--wide); }
.rung { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.rung::before { content: ""; display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--c); margin-bottom: 14px; }
.rung b { display: block; font-weight: 500; font-size: 18px; line-height: 1.2; color: var(--c); }
.rung span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.r-said { --c: var(--said); } .r-called { --c: var(--called); } .r-confirmed { --c: var(--confirmed); } .r-approved { --c: var(--approved); } .r-live { --c: var(--live); }

/* ---------- Numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 32px auto; max-width: var(--wide); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.num { padding: 28px; border-bottom: 1px solid var(--line); }
.num:nth-child(odd) { border-right: 1px solid var(--line); }
.num:nth-last-child(-n+2) { border-bottom: 0; }
.num b { display: block; font-weight: 500; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.num > span { display: block; font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.45; }

/* ---------- Next and footer ---------- */
.next { padding-top: 96px; }
.next-link { display: inline-flex; gap: 10px; align-items: center; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.next-link span { transition: transform .2s ease; color: var(--muted); }
.next-link:hover span { transform: translateX(4px); color: var(--ink); }
footer { margin-top: 96px; padding: 28px 0 56px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
footer .col { max-width: var(--wide); }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

/* ---------- Chapter list (desktop) and section pill (phone) ---------- */
.toc { position: fixed; left: 24px; top: 50%; transform: translateY(-50%); z-index: 15; display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toc li a { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 10.5px; transition: color .2s ease; }
.toc li a::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .2s ease, background .2s ease; }
.toc li a:hover { color: var(--body); }
.toc li a[aria-current="true"] { color: var(--ink); }
.toc li a[aria-current="true"]::before { width: 24px; background: var(--accent); }

.toc-pill { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 15; display: none; align-items: center; justify-content: space-between; gap: 24px; min-width: 260px; max-width: calc(100vw - 40px); padding: 12px 20px; border-radius: 99px; border: 1px solid var(--line); background: rgba(24, 24, 27, .94); backdrop-filter: blur(8px); color: var(--ink); cursor: pointer; }
.toc-pill-n { color: var(--muted); }
.toc-pill-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc.open { display: block; left: 20px; right: 20px; top: auto; bottom: 76px; transform: none; padding: 20px; background: #18181b; border: 1px solid var(--line); border-radius: var(--r-lg); }
.toc.open li a { font-size: 12px; padding: 4px 0; }

@media (min-width: 1360px) { .toc { display: block; } }
@media (max-width: 1359px) { .toc-pill { display: inline-flex; } body { padding-bottom: 80px; } }

/* ---------- Scaled product screens ---------- */
.screen { position: relative; width: 100%; }
.screen > .k { transform-origin: top left; position: absolute; top: 0; left: 0; }

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .model { grid-template-columns: 1fr; gap: 28px; }
  .ladder { grid-template-columns: 1fr; gap: 6px; }
  .rung { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; }
  .rung::before { display: none; }
  .rung span { margin-top: 0; }
  .months { display: none; }
  .bands { height: auto; display: grid; gap: 8px; }
  .band { position: static; width: auto !important; height: auto; }
  .pin { position: static; height: auto; margin-top: 2px; }
  .stage:not(.tight) .k { padding: 20px; }
}
@media (max-width: 640px) {
  :root { --gut: 20px; --nav: 56px; }
  section { padding-top: 72px; }
  .hero { padding: 48px 0 32px; }
  .hero .lede, .hero.v2 .lede { font-size: 17px; }
  .short-grid { grid-template-columns: 1fr; }
  .stage, .stage.tight, .diagram { border-radius: var(--r-md); padding: 10px; }
  .stage .k { border-radius: var(--r-sm); }
  .nums { grid-template-columns: 1fr; }
  .num:nth-child(odd) { border-right: 0; }
  .num:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  ol.cards { padding: 4px 18px; }
  ol.cards li { grid-template-columns: 36px 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* =========================================================
   Kalcend product recreation. Matches the live UI, v3.1.0
   ========================================================= */
.k {
  --k-bg: #0a0908;
  --k-card: #212121;
  --k-card2: #1b1b1b;
  --k-line: #323232;
  --k-line2: #2a2a2a;
  --k-chip: #262626;
  --k-text: #ececec;
  --k-dim: #8e8e8e;
  --k-faint: #666;
  --k-green: #58a07c;
  --k-blue: #6f9be8;
  --k-red: #dd524c;
  --k-amber: #f0c044;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--k-text);
  background: var(--k-bg);
  -webkit-font-smoothing: antialiased;
  container-type: inline-size;
}
.k .depgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@container (max-width: 600px) {
  .k .depgrid { grid-template-columns: 1fr; }
  .k .stats { grid-template-columns: 1fr 1fr; }
  .k .stats > div:nth-child(2) { border-right: 0; }
  .k .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--k-line); }
  .k .plan .row { grid-template-columns: 96px 1fr auto; }
  .k .steps .ln { display: none; }
  .k .steps { justify-content: space-between; }
}
.k * { box-sizing: border-box; }
.k .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.k .chat { width: 100%; display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.k .say { font-size: 13.5px; line-height: 1.6; }
.k .me { align-self: flex-end; max-width: 480px; background: var(--k-card); border: 1px solid var(--k-line); border-radius: 12px; padding: 9px 14px; font-size: 13.5px; }
.k .card { background: var(--k-card); border: 1px solid var(--k-line); border-radius: 12px; }
.k .card.done { background: var(--k-card2); padding: 10px 14px; }
.k .card.done .h { color: var(--k-dim); font-size: 11.5px; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.k .card.done .q { color: var(--k-dim); font-size: 11.5px; line-height: 1.6; }
.k .card.done .q b { color: var(--k-text); font-weight: 400; }
.k .chk { color: var(--k-green); }
.k .ring { width: 10px; height: 10px; border: 1.2px solid var(--k-dim); border-radius: 50%; display: inline-block; }
.k .ask { padding: 14px 14px 0; position: relative; overflow: hidden; }
.k .ask .bar { position: absolute; top: 0; left: 6px; height: 2px; background: var(--k-green); border-radius: 2px; }
.k .ask h4 { margin: 0; font-weight: 400; font-size: 13.5px; }
.k .ask .sub { font-size: 11px; color: var(--k-dim); margin: 2px 0 10px; }
.k .chips { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; }
.k .chip { border: 1px solid var(--k-line); background: var(--k-chip); border-radius: 5px; padding: 4px 10px; font-size: 11.5px; color: #d8d8d8; display: inline-flex; align-items: center; gap: 6px; }
.k .chip.on { border-color: #4c7a62; color: var(--k-text); }
.k .chip.on.focus { border-color: #8fb3e6; box-shadow: 0 0 0 1px #8fb3e6 inset; }
.k .ask .foot { border-top: 1px solid var(--k-line); margin: 0 -14px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--k-dim); }
.k .btn { border: 1px solid var(--k-line); border-radius: 6px; padding: 5px 11px; font-size: 11.5px; color: var(--k-text); background: transparent; }
.k .btn.green { border-color: #3d6b53; background: #18241e; }
.k .btn.blue { border-color: #4a6aa0; color: #a9c2ec; background: #161d29; }
.k .btn.white { background: #f4f4f4; color: #111; border-color: #f4f4f4; font-weight: 500; }
.k .btn.off { opacity: .4; }

/* build progress */
.k .prog { overflow: hidden; }
.k .prog .hd { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.k .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.k .ico.blue { background: #263040; color: var(--k-blue); }
.k .ico.red { background: #3b2221; color: var(--k-red); }
.k .ico.amber { background: #3a3526; color: var(--k-amber); }
.k .ico.green { background: #1e3128; color: var(--k-green); }
.k .ico svg { width: 15px; height: 15px; }
.k .prog .t { font-size: 13px; }
.k .prog .s { font-size: 11px; color: var(--k-dim); }
.k .prog .time { margin-left: auto; text-align: right; font-size: 11px; color: var(--k-dim); }
.k .prog .time b { display: block; color: #cfcfcf; font-weight: 400; }
.k .track { height: 2px; background: #2c2c2c; }
.k .track i { display: block; height: 2px; background: var(--k-blue); }
.k .steps { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--k-line); font-size: 11.5px; color: var(--k-dim); gap: 8px; }
.k .steps .st { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.k .steps .st.now, .k .steps .st.ok { color: var(--k-text); }
.k .steps .ln { flex: 1; height: 1px; background: #3a3a3a; }
.k .spin { width: 10px; height: 10px; border: 1.3px solid var(--k-blue); border-right-color: transparent; border-radius: 50%; }
.k .prog .now-line { padding: 9px 14px; font-size: 11px; color: #cfcfcf; display: flex; align-items: center; gap: 8px; }
.k .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--k-blue); }

/* status cards */
.k .stat .hd { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.k .stat .hd .x { margin-left: auto; color: var(--k-red); font-size: 15px; }
.k .stat .bd { border-top: 1px solid var(--k-line); padding: 10px 14px; font-size: 11px; color: var(--k-dim); line-height: 1.6; overflow-wrap: anywhere; }
.k .amber { color: var(--k-amber); }
.k .lbl { font-size: 9.5px; letter-spacing: .06em; color: var(--k-dim); text-transform: uppercase; }
.k .json { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: #dcdcdc; margin-top: 4px; word-break: break-all; }
.k .redact { background: #2d2d2d; color: transparent; border-radius: 3px; user-select: none; }

/* composer */
.k .composer { border: 1px solid var(--k-line); background: #1d1d1d; border-radius: 10px; padding: 11px 12px 9px; margin-top: 6px; }
.k .composer .hint { color: var(--k-faint); font-size: 12.5px; }
.k .composer .row { display: flex; align-items: center; gap: 16px; margin-top: 14px; color: var(--k-dim); font-size: 11.5px; }
.k .composer .row .go { margin-left: auto; }

/* playground */
.k .pg { width: 100%; background: #0b0a09; }
.k .pg .bar { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--k-line2); }
.k .pg .bar b { font-weight: 500; font-size: 13.5px; }
.k .pg .sel { margin-left: auto; border: 1px solid var(--k-line); border-radius: 99px; padding: 5px 12px; font-size: 11.5px; color: #cfcfcf; }
.k .pg .body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.k .tool { display: flex; gap: 10px; }
.k .bot { width: 22px; height: 22px; border-radius: 50%; background: #262626; display: grid; place-items: center; flex: none; color: #cfcfcf; font-size: 10px; }
.k .tbox { flex: 1; border: 1px solid var(--k-line2); border-radius: 10px; background: #0d0c0b; }
.k .tbox .tt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-family: "JetBrains Mono", monospace; font-size: 11.5px; }
.k .real { margin-left: auto; font-family: "Poppins"; font-size: 9px; font-weight: 600; letter-spacing: .05em; color: #63c18e; border: 1px solid #2f5a43; background: #101914; padding: 2px 6px; border-radius: 4px; }
.k .ms { color: var(--k-dim); font-family: "Poppins"; font-size: 10.5px; }
.k .tbox .out { border-top: 1px solid var(--k-line2); padding: 8px 12px 10px; }
.k .tbox .out .json { background: #070707; border: 1px solid #1f1f1f; border-radius: 6px; padding: 8px; max-height: 92px; overflow: hidden; color: #cfcfcf; }
.k .reply { padding-left: 32px; font-size: 13px; line-height: 1.6; }
.k .reply .meta { font-size: 10.5px; color: var(--k-faint); margin-top: 10px; }

/* app shell (agent page) */
.k .app { width: 980px; display: grid; grid-template-columns: 200px 1fr; background: #1a1a1a; }
.k .side { background: #131313; padding: 16px 14px; font-size: 12.5px; color: #cfcfcf; display: flex; flex-direction: column; gap: 9px; }
.k .side .logo { font-weight: 600; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.k .side .sub { padding-left: 16px; color: #bdbdbd; }
.k .side .on { color: #fff; font-weight: 500; }
.k .main { padding: 18px 24px 24px; }
.k .crumb { font-size: 11.5px; color: var(--k-dim); margin-bottom: 14px; }
.k .crumb b { color: var(--k-text); font-weight: 400; }
.k .main h5 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.k .pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #cfcfcf; }
.k .pill .g { width: 6px; height: 6px; border-radius: 50%; background: #4cc38a; }
.k .stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--k-line); border-radius: 14px; margin-top: 18px; }
.k .stats > div { padding: 14px 16px; border-right: 1px solid var(--k-line); }
.k .stats > div:last-child { border-right: 0; }
.k .stats .n { font-family: "JetBrains Mono", monospace; font-size: 22px; margin: 4px 0; }
.k .stats .d { font-size: 11px; color: var(--k-dim); }

/* concept additions in product language */
.k .plan { overflow: hidden; }
.k .plan .hd { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--k-line); }
.k .plan .row { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--k-line2); font-size: 12px; }
.k .plan .row .l { color: var(--k-dim); font-size: 11.5px; }
.k .plan .row s { color: var(--k-faint); }
.k .plan .row .chg { display: block; font-size: 10.5px; color: var(--k-amber); margin-top: 2px; }
.k .plan .ft { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 11.5px; color: var(--k-dim); gap: 12px; }
.k .st-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--k-line); white-space: nowrap; }
.k .st-chip.ok { color: #7cc59f; border-color: #2f5a43; background: #101914; }
.k .st-chip.wait { color: #a9c2ec; border-color: #33486b; background: #121822; }
.k .st-chip.warn { color: var(--k-amber); border-color: #5a4a20; background: #1d1a10; }
.k .st-chip.bad { color: #ef8a85; border-color: #5c2b28; background: #1f1312; }
.k .st-chip.none { color: var(--k-dim); }
.k .dep { padding: 12px 14px; }
.k .dep .dtop { display: flex; align-items: center; gap: 10px; }
.k .dep .dtop .t { font-size: 12.5px; }
.k .dep .dtop .st-chip { margin-left: auto; }
.k .dep p { font-size: 11px; color: var(--k-dim); margin: 8px 0 10px; line-height: 1.55; }
.k .dep .acts { display: flex; gap: 6px; }
.k .lad { display: flex; gap: 0; padding: 10px 14px; border-bottom: 1px solid var(--k-line); }
.k .lad .s { flex: 1; font-size: 10.5px; color: var(--k-dim); display: flex; flex-direction: column; gap: 6px; }
.k .lad .s i { height: 3px; border-radius: 2px; background: #333; margin-right: 6px; }
.k .lad .s.ok i { background: var(--k-green); }
.k .lad .s.warn i { background: var(--k-amber); }
.k .lad .s.ok, .k .lad .s.warn { color: var(--k-text); }
.k .note { font-size: 10.5px; padding: 8px 12px; border-top: 1px solid var(--k-line2); display: flex; gap: 8px; align-items: center; color: #cfcfcf; }
.k .note.warn { color: var(--k-amber); background: #15130c; border-radius: 0 0 10px 10px; }
.k .note .lnk { margin-left: auto; color: var(--k-dim); text-decoration: underline; text-underline-offset: 2px; }
.k .esc { margin: 10px 0 0 32px; border: 1px solid #5a4a20; background: #15130c; border-radius: 10px; padding: 10px 12px; font-size: 11.5px; display: flex; gap: 10px; align-items: center; }
.k .esc .acts { margin-left: auto; display: flex; gap: 6px; }

/* =========================================================
   v2 additions: home, app shell, diagrams, tenure timeline
   ========================================================= */
.k .home { display: grid; grid-template-columns: 44px 1fr; min-height: 640px; width: 100%; }
.k .rail { border-right: 1px solid #1c1c1c; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 16px 0; color: #9a9a9a; }
.k .rail .lg { width: 22px; height: 22px; }
.k .rail .sp { flex: 1; }
.k .hm { padding: 18px 28px 22px; display: flex; flex-direction: column; }
.k .hm .tb { display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 11.5px; color: #cfcfcf; }
.k .bal { display: inline-flex; align-items: center; gap: 6px; background: #1d221f; border: 1px solid #2a2f2c; border-radius: 99px; padding: 3px 10px; font-size: 11.5px; color: #e6e6e6; }
.k .bal i { width: 6px; height: 6px; border-radius: 50%; background: #4cc38a; }
.k .hm h6 { margin: 34px 0 0; font-size: 40px; font-weight: 600; line-height: 1.1; color: #a9a9a9; letter-spacing: -0.01em; }
.k .hm .q2 { font-size: 27px; font-weight: 500; color: #7c7c7c; margin-top: 4px; }
.k .hm .intro { font-size: 12.5px; color: #a9a9a9; margin-top: 12px; max-width: 360px; }
.k .hm .lab { font-size: 10px; letter-spacing: .06em; color: #9a9a9a; margin: 44px 0 10px 2px; }
.k .tpls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.k .tpl { border: 1px solid #262626; border-radius: 12px; padding: 12px; background: #0d0c0b; }
.k .tpl .th { display: flex; gap: 9px; }
.k .tpl .ci { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #333; display: grid; place-items: center; color: #cfcfcf; flex: none; }
.k .tpl b { font-weight: 500; font-size: 12px; display: block; }
.k .tpl .d { font-size: 10.5px; color: #9a9a9a; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k .tpl .tg { display: flex; flex-wrap: wrap; gap: 5px; border-top: 1px solid #1f1f1f; margin-top: 10px; padding-top: 9px; }
.k .tpl .tg span { font-size: 9.5px; color: #a0a0a0; background: #1a1a1a; border-radius: 5px; padding: 2px 6px; }
.k .brands { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.k .brands i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.k .more { text-align: center; font-size: 11px; color: #9a9a9a; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.k .hm .composer { margin: auto auto 0; width: 520px; }

.k .shell { display: grid; grid-template-columns: 210px 1fr; width: 100%; background: #1a1a1a; min-height: 560px; }
.k .shell .side { gap: 0; padding: 14px 10px; }
.k .shell .side .it { padding: 6px 8px; border-radius: 6px; display: flex; gap: 9px; align-items: center; }
.k .shell .side .it.on { color: #fff; font-weight: 500; }
.k .shell .side .it.cur { background: #222; color: #fff; }
.k .shell .side .sb { padding: 5px 8px 5px 34px; color: #bdbdbd; font-size: 12px; }
.k .shell .side .g { color: #6f6f6f; font-size: 10px; margin: 6px 8px 0 34px; }
.k .shell .tb2 { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #222; font-size: 11.5px; color: #cfcfcf; }
.k .shell .tb2 .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#3aa6c9,#6cc08f); display: grid; place-items: center; color: #fff; font-size: 10px; }
.k .shell .mn { padding: 16px 22px; }
.k .scards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.k .scards > div { border: 1px solid #2c2c2c; border-radius: 6px; padding: 12px; }
.k .scards .n { font-family: "JetBrains Mono", monospace; font-size: 20px; margin: 4px 0 2px; }
.k .scards .d { font-size: 10.5px; color: #8e8e8e; }
.k .chart { border: 1px solid #2c2c2c; border-radius: 6px; margin-top: 12px; padding: 14px; }
.k .chart b { font-size: 11px; letter-spacing: .05em; font-weight: 600; }

.k .tbar { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 14px 18px; font-size: 12px; color: #cfcfcf; width: 100%; }
.k .spinwrap { color: #cfcfcf; font-size: 13px; padding: 10px 0; }
.k .spinwrap span { background: linear-gradient(90deg,#fff 0 40%, #777 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }



/* full width top bar, content aligned to the page column */
.top { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 max(var(--gut), calc(50vw - var(--wide) / 2)); }

/* =========================================================
   One column, as in the reference: everything shares one
   768px column and one left edge. Images fill the column,
   text wraps at 640px.
   ========================================================= */
:root { --col: 768px; --measure: 640px; }
.wrap > .hero, .wrap > figure, .wrap > section, section > .col, section.col,
figure, .tenure, .ladder, .nums, .next, footer .col {
  max-width: var(--col); margin-left: auto; margin-right: auto;
}
.wrap > figure { margin-top: 40px; margin-bottom: 40px; }
section > figure, section > .tenure, section > .ladder, section > .nums { margin-left: auto; margin-right: auto; }
p, h1, h2, h3, figcaption, ol.items, .pull, .hero .lede, .hero.v2 .lede { max-width: var(--measure); }
.tldr p, ol.cards p, .short-grid dd, .num > span { max-width: none; }
figcaption { margin-left: 0; }
figure > .tag { margin-left: 0; }
.months { grid-template-columns: repeat(7, 1fr); }

/* Image frames: 12px corners and a 1px border, as in the reference */
.stage, .stage.tight, .diagram { border-radius: 12px; border: 1px solid #262626; background: #171717; }
.stage .k { border-radius: 8px; }
.short, ol.cards, .nums, .rung, .tldr { border-radius: 12px; border-color: #262626; }

@media (max-width: 640px) {
  .stage, .stage.tight, .diagram { border-radius: 12px; }
  .stage .k { border-radius: 6px; }
}
.stage, .stage.tight { padding: clamp(10px, 2.5vw, 24px); }
.band { height: 56px; font-size: 12.5px; line-height: 1.2; }
.bands { height: 176px; }
.pin { top: 128px; }
@media (max-width: 860px) { .band { height: auto; } .bands { height: auto; } }

/* Hero: subtitle then a short summary, as in the reference */
.hero .lede, .hero.v2 .lede { margin-bottom: 20px; }
.hero .summary { font-size: 17px; line-height: 1.7; color: var(--body); margin: 0 0 40px; max-width: var(--measure); }

/* Results: three cards in one row */
.nums.three { grid-template-columns: repeat(3, 1fr); }
.nums.three .num { border-bottom: 0; border-right: 1px solid var(--line); }
.nums.three .num:last-child { border-right: 0; }
@media (max-width: 640px) {
  .nums.three { grid-template-columns: 1fr; }
  .nums.three .num { border-right: 0; border-bottom: 1px solid var(--line); }
  .nums.three .num:last-child { border-bottom: 0; }
}
.nums.three .num { padding: 24px; }
.nums.three .num b { font-size: clamp(30px, 3vw, 36px); white-space: nowrap; }

/* Iterations 1 and 2 side by side */
.fig-pair { max-width: var(--col); margin: 40px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.fig-pair > figure { width: auto; margin: 0; }
.fig-pair figcaption { font-size: 13px; }
@media (max-width: 640px) { .fig-pair { grid-template-columns: 1fr; gap: 28px; } }

/* Short plain list inside body text */
ul.plain { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; max-width: var(--measure); }
ul.plain li { position: relative; padding-left: 18px; color: var(--body); }
ul.plain li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--muted); }
.fig-pair .stage, .fig-pair .stage.tight { padding: 10px; }
