:root {
  --p-bg: #f3f5f8; --p-surface: #ffffff; --p-ink: #0e1420; --p-muted: #5a6474;
  --p-accent: #0874dc; --p-accent-ink: #ffffff; --p-action: #0874dc; --p-action-ink: #ffffff;
  --p-inv-bg: #0e1420; --p-inv-surface: #1b212d; --p-inv-ink: #f3f5f8; --p-inv-muted: #92979f;
  --p-inv-accent: #0874dc; --p-inv-accent-ink: #ffffff; --p-inv-action: #0874dc; --p-inv-action-ink: #ffffff;
  --font-display: "Familjen Grotesk", system-ui, sans-serif;
  --font-text: "Familjen Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
}

/* every button one shape: the 10px corner of the header after React Bits (Alex) */
html[data-radius] { --r-btn: 10px; }

/* ---- page CSS: only what sits inside the hero's visual (system.md) ---- */

/* the hero: the page ground (the kit's photo hero is dark), the ASCII robot as its layer over one soft blue light */
.hero--photo { background: var(--p-bg); }
.hero--photo h1 { letter-spacing: var(--display-tracking-xl); }
.hero__facts dd { font-family: var(--font-mono); font-size: 14px; }

/* Klinr's bounty window (from the kit's layout demo, in Klinr's own colours) */
.k-win { background: #fff; color: var(--p-ink); border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(14 20 32 / .08), 0 30px 70px -34px rgb(14 20 32 / .45); }
.k-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(14 20 32 / .07); font-size: 13px; color: var(--p-muted); }
.k-win__dots { display: flex; gap: 6px; } .k-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe4; }
.k-win__body { display: grid; grid-template-columns: 150px 1fr; }
.k-side { padding: 14px 10px; border-right: 1px solid rgb(14 20 32 / .07); display: grid; align-content: start; gap: 2px; font-size: 13px; color: #4d5563; }
.k-side > span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; }
.k-side > span.is-on { background: rgb(8 116 220 / .08); color: var(--p-action); font-weight: 500; }
.k-side > span i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .3; flex: none; }
.k-side .k-side__label { color: #8a909b; height: 26px; margin-top: 8px; }
.k-main { padding: 16px 18px 20px; display: grid; align-content: start; gap: 12px; min-width: 0; padding-right: var(--ly-cut-room, 48px); }
.k-main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.k-main__head h4 { font: 600 16px/1.2 var(--font-text); letter-spacing: -0.01em; margin: 0; }
.k-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--p-action); color: #fff; font-size: 13px; font-weight: 500; }
.k-tabs { display: flex; gap: 4px; font-size: 13px; } .k-tabs span { padding: 4px 10px; border-radius: 99px; color: #6b7280; }
.k-tabs span.is-on { background: rgb(14 20 32 / .06); color: var(--p-ink); font-weight: 500; }
.k-rows { display: grid; border-top: 1px solid rgb(14 20 32 / .07); }
.k-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 40px 92px; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid rgb(14 20 32 / .07); font-size: 13px; }
.k-flag { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: #eef4fb; color: var(--p-action); font: 500 15px/1 var(--font-mono); }
.k-row b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-row small { display: block; color: #6b7280; font: 400 13px/1.4 var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-row .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.k-chip { justify-self: end; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #e6f1fd; color: #0a5fb4; white-space: nowrap; }
.k-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.k-chip--open { background: #eef0f3; color: #4d5563; }
.k-card { background: #fff; color: var(--p-ink); border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(14 20 32 / .08), 0 18px 40px -20px rgb(14 20 32 / .4); }
.k-card h5 { margin: 0; font: 600 14px/1.3 var(--font-text); }
.k-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.k-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4452; border-top: 1px solid rgb(14 20 32 / .06); }
.k-line:first-of-type { border-top: 0; }
.k-line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e6f1fd; color: #0a5fb4; font-style: normal; font-size: 12px; font-weight: 700; }
.k-line b { font-weight: 500; color: var(--p-ink); }
@media (max-width: 1279px) { .k-btn { display: none; } }
@media (max-width: 639px) {
  .k-row:nth-of-type(3) { display: none; } .k-row b { white-space: normal; }
  .k-win__body { grid-template-columns: 1fr; } .k-side { display: none; }
  .k-row { grid-template-columns: 36px minmax(0, 1fr) 92px; } .k-row .num { display: none; }
}

/* ---- the header, after React Bits (Alex's ask), light mode ---- */
.nav--bits { background: rgb(243 245 248 / .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 0; }
.nav--bits .nav__bar { gap: var(--s-4); }
.nav--bits .nav__logo { font-size: 19px; font-weight: 500; gap: 8px; }
.nav--bits .nav__logo img { height: 24px; }
.nav__sep { color: var(--p-muted); font: 300 20px/1 var(--font-display); margin: 0 2px; }
.nav--bits .nav__links { gap: var(--s-1); margin-right: auto; }
.nav--bits .nav__link { font-size: 14px; font-weight: 500; color: var(--p-muted); padding: 8px 10px; border-radius: 8px; transition: color var(--m-in, 150ms) var(--ease), background-color var(--m-in, 150ms) var(--ease); }
.nav--bits .nav__link:hover { color: var(--p-ink); background: rgb(14 20 32 / .045); }
.nav--bits .nav__actions { display: flex; align-items: center; gap: var(--s-3); }
.nav--bits .nav__actions .btn { --btn-h: 36px; height: 36px; padding: 0 16px; font-size: 14px; }
@media (max-width: 1023px) { .nav__sep { display: none; } }

/* ---- #how: four step cards; the ASCII picture is not boxed: it sits absolute in the card's lower part,
   running to the card's edges, the words above it (Alex's ask) ---- */
#how .steps > .card { position: relative; overflow: hidden; min-height: 500px; background: var(--p-bg); border-color: transparent; }
#how .step-art { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none; }
#how .step-art .ascii, #how .step-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#how .step-num { display: block; font: 500 13px/1 var(--font-mono); color: var(--p-muted); margin-bottom: var(--s-6); }
#how .steps > .card > h3, #how .steps > .card > p { position: relative; z-index: 1; }
@media (min-width: 1024px) and (max-width: 1279px) { #how .steps > .card { min-height: 440px; } }
@media (max-width: 1023px) { #how .steps > .card { grid-column: auto / span 6; min-height: 420px; } }
@media (max-width: 639px) { #how .steps > .card { grid-column: 1 / -1; min-height: 300px; } #how .step-art { height: 46%; } }

/* the hero's one pill above the h1 (layout-v4.md: a notice or a pill), moved from the header on Alex's ask */
.hero--photo .hero__text > .hero__badge { display: inline-flex; align-items: center; gap: 8px; height: 34px; margin: 0 0 var(--s-5);
  padding: 0 12px 0 5px; border-radius: 10px; background: rgb(14 20 32 / .05); font: 500 14px/1 var(--font-display); color: var(--p-ink); width: fit-content; }
.hero__badge > .hero__badge-mark { width: 24px; height: 24px; padding: 5px 7px; border-radius: 7px; background: #0e1420; box-sizing: border-box; object-fit: contain; }
@media (max-width: 639px) { .hero--photo .hero__text > .hero__badge { display: none; } }
/* the step number as a quiet mono label, not the kit's ringed digit */
#how .steps > .card > .step-num { width: auto; height: auto; border: 0; border-radius: 0; background: none; display: block; padding: 0; }

/* the hero as tall as its content (Alex's ask), not the kit's one full screen; the robot layer fills it */
main > .hero.hero--photo { height: auto; min-height: 0; padding: calc(var(--nav) + 96px) 0 120px; }
main > .hero.hero--photo > .wrap { height: auto; }
.hero__proof { margin-top: var(--s-5); font-size: var(--t-small); color: var(--p-ink); }
@media (max-width: 639px) { main > .hero.hero--photo { min-height: 0; padding: calc(var(--nav) + 48px) 0 64px; } }

/* ---- #sponsors: split-text-left; the words and four points left, the post-a-bounty window right ---- */
#sponsors h2 { font-size: var(--t-h2); }
#sponsors .sp-text { display: flex; flex-direction: column; gap: var(--s-5); }
#sponsors .sp-lead { margin: 0; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 44ch; }
/* the points: a list, each row closed by a 1px rule inside the content edges (layout-v4: a list may) */
#sponsors .sp-points { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
#sponsors .sp-points li { display: grid; align-content: start; gap: var(--s-1); padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--line); font-size: 16px; line-height: 24px; }
#sponsors .sp-points b { font-weight: 500; color: var(--ink); }
#sponsors .sp-points span { color: color-mix(in oklab, var(--ink) 84%, var(--bg)); }
#sponsors .sp-text > .link { align-self: flex-start; }
/* the frame: the page's lit ground (sage) behind the window, no border */
#sponsors .sp-frame { background: var(--ground-bg); border-color: transparent; }
/* the window runs 72px past the frame's right edge, under the fade; its form stops short of that edge */
#sponsors .sp-win-slot { --ax: 48px; --ay: 48px; width: calc(100% - var(--ax) + 72px); }
#sponsors .sp-win { height: 100%; }
#sponsors .sp-win .k-win__body { height: calc(100% - 40px); grid-template-columns: 168px 1fr; }
#sponsors .sp-win .k-side { padding-top: 18px; }
#sponsors .sp-win .k-side .k-side__label { color: #5f6775; margin-top: 0; }
#sponsors .k-side > span.is-done { color: var(--p-ink); }
#sponsors .k-side > span.is-done i { opacity: 1; background: #1f9d55; border-radius: 50%; }
#sponsors .sp-main { gap: 14px; padding: 18px calc(72px + 20px) 18px 20px; }
#sponsors .sp-head h4 { margin: 0 0 4px; font: 500 16px/1.25 var(--font-text); letter-spacing: -0.01em; }
#sponsors .sp-head p { margin: 0; font-size: 13px; line-height: 1.45; color: #5a6474; max-width: 46ch; }
#sponsors .sp-head code { font: 500 12.5px/1 var(--font-mono); color: var(--p-ink); background: rgb(14 20 32 / .05); padding: 2px 5px; border-radius: 4px; }
#sponsors .sp-image { border: 1px solid rgb(14 20 32 / .09); border-radius: 10px; padding: 12px 14px 14px; display: grid; gap: 10px; }
#sponsors .sp-image__title { margin: 0; font-size: 13px; font-weight: 500; display: flex; gap: 8px; align-items: baseline; }
#sponsors .sp-image__title span { font: 400 12px/1 var(--font-mono); color: #5f6775; }
#sponsors .sp-fields { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; }
#sponsors .sp-fields--two { grid-template-columns: 1fr 1fr; }
#sponsors .sp-field { display: grid; gap: 5px; min-width: 0; }
#sponsors .sp-label { font-size: 12px; font-weight: 500; color: #4d5563; }
#sponsors .sp-input { display: flex; align-items: center; height: 34px; padding: 0 10px; border: 1px solid rgb(14 20 32 / .14); border-radius: 8px; background: #fff; font-size: 13px; color: var(--p-ink); white-space: nowrap; overflow: hidden; }
#sponsors .sp-input--mono { font: 400 12.5px/1 var(--font-mono); }
/* a digest wraps inside its field, so the pin shows whole */
#sponsors .sp-input--ref { font-size: 12px; display: block; height: auto; padding: 8px 10px; white-space: normal; word-break: break-all; line-height: 1.45; }
#sponsors .sp-input--select { justify-content: space-between; }
#sponsors .sp-input--select::after { content: ""; width: 7px; height: 7px; border: solid #6b7280; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); flex: none; margin-left: 8px; }
/* over the window's lower-right edge, cut by the frame's foot (split-text-left: --by -40px) */
#sponsors .sp-review-slot { --bx: 24px; --by: -40px; width: 320px; }
#sponsors .sp-review .k-chip { background: #fff4e0; color: #8a5a00; }
#sponsors .sp-review .k-line { margin: 0; }
#sponsors .sp-review .k-line b { font-weight: 500; }
#sponsors .sp-review .k-line i { font-weight: 500; }
#sponsors .sp-review__open i { width: 22px; height: 18px; border-radius: 9px; font: 500 11px/1 var(--font-mono); background: var(--p-action); color: #fff; }
/* where the .at-over card is hidden (under 1280), the window carries the review note the app itself shows */
#sponsors .sp-note { display: none; margin: 0; padding: 10px 12px; border-radius: 8px; background: #eef4fb; color: #1d3a5c; font-size: 13px; line-height: 1.45; }
#sponsors .sp-note b { font-weight: 500; color: var(--p-ink); }
@media (max-width: 1279px) {
  #sponsors .sp-note { display: block; order: -1; }
  #sponsors .sp-head { order: -2; }
  /* the kit shows .at-over on a tablet, where it would lie over the window's first rows: the note carries it */
  #sponsors .sp-frame > .stage > .at-over { display: none; }
  #sponsors .sp-win-slot { --ax: 32px; --ay: 32px; }
  #sponsors .sp-points li { padding-bottom: var(--s-3); margin-bottom: var(--s-3); }
}
/* 1024-1279: the frame is about 420 wide, so the window drops its sidebar, fits inside the frame, fades only below */
@media (min-width: 1024px) and (max-width: 1279px) {
  #sponsors .sp-win .k-win__body { grid-template-columns: 1fr; }
  #sponsors .sp-win .k-side { display: none; }
  #sponsors .sp-win-slot { width: auto; right: 32px; }
  #sponsors .sp-main { padding-right: 20px; }
  #sponsors .sp-fields:not(.sp-fields--two) { grid-template-columns: 64px minmax(0, 1fr); }
  #sponsors .sp-frame > .stage { -webkit-mask: linear-gradient(to bottom, #000 calc(100% - var(--fade-h)), transparent calc(100% - 4px)); mask: linear-gradient(to bottom, #000 calc(100% - var(--fade-h)), transparent calc(100% - 4px)); }
}
/* a tablet: the four points two by two, so the window keeps a real share of the screen */
@media (min-width: 640px) and (max-width: 1023px) { #sponsors .sp-points { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-5); } }
@media (max-width: 639px) {
  /* two phone screens (.g2m): the words on the first, the window on the second */
  #sponsors .sp-grid { display: contents; }
  #sponsors .sp-frame { height: auto; align-self: stretch; }
  #sponsors .sp-win-slot { width: auto; }
  #sponsors .sp-win .k-win__body { grid-template-columns: 1fr; }
  #sponsors .sp-main { padding: 16px; }
  #sponsors .sp-fields--two { grid-template-columns: 1fr; }
  #sponsors .sp-field--flags { display: none; }
}

/* ---- #kinds: the two kinds side by side from 1280 (6 + 6), each its words over a stage where the ASCII picture
   stands unboxed on the ground (right) and a piece of Klinr's UI for that kind sits on the left line, in front.
   Below 1280 each kind takes a screen of its own (two rows, as the system's .g2), its stage a 7 + 5 split. ---- */
#kinds { --h: 1; }
#kinds .wrap { height: 100%; }
#kinds .section-head { max-width: none; }
#kinds .kinds__group { display: flex; flex-direction: column; min-height: 0; }
#kinds .kind { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
#kinds .kind > h3 { margin: 0; font-family: var(--font-text); font-weight: 500; font-size: var(--t-card); line-height: 1.3; letter-spacing: -0.01em; }
#kinds .kind > p { margin: var(--s-3) 0 0; max-width: 46ch; color: var(--ink); font-size: 16px; line-height: 26px; }
#kinds .kind__stage { position: relative; flex: 1 1 auto; min-height: 300px; margin-top: var(--s-6); }
#kinds .kind__art { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; pointer-events: none; }
#kinds .kind__art .ascii, #kinds .kind__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#kinds .kind__ui { position: absolute; left: 0; bottom: 0; width: min(424px, 72%); min-height: 358px; z-index: 1; display: flex; flex-direction: column; }
#kinds .kind__ui > .kind__body { flex: 1 1 auto; align-content: start; }
#kinds .kind__tag { margin-left: auto; font: 500 12px/1 var(--font-mono); color: #4d5563; padding: 5px 8px; border-radius: 6px; background: rgb(14 20 32 / .05); }
#kinds .kind__body { padding: 14px 18px 16px; display: grid; gap: 10px; }
#kinds .kind__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
#kinds .kind__head b { font-weight: 500; }
#kinds .kind__score { color: #4d5563; font-size: 13px; }
#kinds .kind__score .num { color: var(--p-ink); font: 500 13px/1 var(--font-mono); }
#kinds .k-row { transition: background-color var(--m-in, 150ms) var(--ease); border-radius: 6px; }
#kinds .k-row:hover { background: rgb(8 116 220 / .04); }
#kinds .k-row .k-flag svg { display: block; }
#kinds .k-row small { color: #4d5563; }
/* the request log and the diff: red out, green in, the line numbers in their own gutter */
#kinds .kind__diff { margin: 0; padding: 4px 0; display: grid; font: 400 12px/22px var(--font-mono); color: #2b3240; border-radius: 8px; overflow: hidden; background: #f7f8fa; box-shadow: inset 0 0 0 1px rgb(14 20 32 / .06); }
#kinds .kind__diff > span { display: block; padding: 0 12px 0 0; white-space: pre; }
#kinds .kind__diff i { display: inline-block; width: 34px; padding-right: 10px; text-align: right; font-style: normal; color: #5a6474; }
#kinds .kind__diff .d-hunk { color: #4d5563; padding-left: 12px; }
#kinds .kind__diff .d-del { background: #fdecec; color: #8e1f1f; }
#kinds .kind__diff .d-add { background: #e7f6ec; color: #145c2e; }
#kinds .kind__diff .d-del i { color: #9b2c2c; } #kinds .kind__diff .d-add i { color: #1d6b3a; }
#kinds .kind__log > span { display: flex; gap: 12px; padding-left: 12px; }
#kinds .kind__log em { margin-left: auto; font-style: normal; font-weight: 500; }
#kinds .kind__log em.ok { color: #187a3c; } #kinds .kind__log em.no { color: #b42323; }
#kinds .kind__checks { display: grid; }
#kinds .kind__check { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; min-height: 37px; padding: 0 2px; font-size: 13px; border-top: 1px solid rgb(14 20 32 / .07); }
#kinds .kind__check:first-child { border-top: 0; }
#kinds .kind__check i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--font-text); font-style: normal; }
#kinds .kind__check--fail i { background: #fdecec; color: #b42323; }
#kinds .kind__check--pass i { background: #e2f4e8; color: #187a3c; }
#kinds .kind__check--result i { background: #e6f1fd; color: #0a5fb4; }
#kinds .kind__check--result span:first-of-type { font-weight: 500; }
#kinds .kind__state { font-weight: 500; }
#kinds .kind__check--fail .kind__state { color: #b42323; }
#kinds .kind__check--pass .kind__state { color: #187a3c; }

@media (min-width: 1280px) {
  #kinds .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); column-gap: var(--gutter); }
  #kinds .kinds__group:first-child { display: contents; }
  #kinds .section-head { grid-column: 1 / -1; grid-row: 1; }
  #kinds .kinds__group:first-child > .kind { grid-column: 1 / span 6; grid-row: 2; }
  #kinds .kinds__group:last-child { grid-column: 7 / span 6; grid-row: 2; }
}
@media (max-width: 1279px) {
  #kinds .wrap { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb) + var(--bar)); }
}
@media (min-width: 640px) and (max-width: 1279px) {
  #kinds { --h: 2; }
  /* the stage as a split on the page's columns: the window on 7, the picture on 5 */
  #kinds .kind__stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  #kinds .kind__ui { position: relative; grid-column: 1 / span 7; grid-row: 1; width: auto; min-height: 0; }
  #kinds .kind__art { position: relative; grid-column: 8 / span 5; grid-row: 1; width: auto; height: 100%; align-self: stretch; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #kinds .kind__stage { grid-template-columns: 1fr; align-items: stretch; }
  #kinds .kind__ui { grid-column: 1; align-self: end; }
  #kinds .kind__art { grid-column: 1; grid-row: 1; align-self: start; height: 46%; }
}
@media (max-width: 639px) {
  #kinds .kind__stage { min-height: 300px; }
  #kinds .kind__art { width: 100%; bottom: 200px; }
  #kinds .kind__log { display: none; }
  #kinds .kind__ui { width: 100%; min-height: 0; }
  #kinds .kind__diff { font-size: 11px; overflow: visible; }
  #kinds .kind__diff > span { white-space: pre-wrap; }
  #kinds .kind__diff i { display: none; }
  #kinds .kind__diff > span { padding-left: 10px; }
  #kinds .k-row:nth-of-type(3) { display: grid; }
  #kinds .k-row { grid-template-columns: minmax(0, 1fr) 32px 84px; gap: 8px; }
  #kinds .k-row .num { display: block; }
  #kinds .k-row .k-flag { display: none; }
  #kinds .k-row small { font-size: 12px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  /* a 768px-tall screen: the window without its request log, so each kind holds one screen */
  #kinds .kind__stage { min-height: 0; }
  #kinds .kind__log { display: none; }
}
/* ---- #agents: for agent builders. A bento of light cards (Alex's reference): a big title top left, the visual
   bleeding off the card's lower edge, one row lifted. The prompt is the chip at the centre of a board ---- */
#agents > .wrap { display: flex; flex-direction: column; gap: var(--s-5); }   /* Alex: the two rows sit one gap apart, not a screen apart */
#agents .agents-row { row-gap: var(--s-5); }
#agents .bx { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 500px; padding: 40px;
  border-radius: 14px; border: 1px solid rgb(14 20 32 / .08); background: #fbfcfd; }
main > section#agents.section { height: auto; min-height: 0; }   /* Alex: content height, the rows one gap apart */
#agents .bx__field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, transparent 90px, #000 220px); mask: linear-gradient(180deg, transparent 90px, #000 220px); }
#agents .bx--claim .bx__field, #agents .bx--pick .bx__field { -webkit-mask: none; mask: none; }
#agents .bx__text { position: relative; z-index: 2; }
#agents .bx h3 { font-size: 20px; line-height: 1.25; color: var(--ink); }
#agents .bx p { margin-top: 10px; max-width: 36ch; font-size: 17px; line-height: 1.5; color: #3f4856; }
#agents .bx__art { position: absolute; inset: 150px 0 0 0; }

/* the board: traces out of the chip, pulses running outward */
#agents .bx__board { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask: radial-gradient(70% 80% at 50% 45%, #000 45%, transparent 100%); mask: radial-gradient(70% 80% at 50% 45%, #000 45%, transparent 100%); }
#agents .tr path { fill: none; stroke: rgb(14 20 32 / .14); stroke-width: 1.2; }
#agents .tr-dot circle { fill: #fbfcfd; stroke: rgb(14 20 32 / .22); stroke-width: 1.2; }
#agents .tr-pulse path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 10 110; stroke-dashoffset: 10;
  animation: tr-pulse 3.2s linear var(--d, 0s) infinite; }
@keyframes tr-pulse { from { stroke-dashoffset: 10; } to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { #agents .tr-pulse { display: none; } }
#agents .prompt { position: absolute; z-index: 2; left: 50%; top: 74%; transform: translate(-50%, -50%);
  width: min(470px, calc(100% - 48px)); padding: 16px 18px 20px; border-radius: 10px; background: #111823; color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / .08) inset, 0 24px 48px -20px rgb(14 20 32 / .55); }
#agents .prompt::before, #agents .prompt::after { content: ""; position: absolute; left: 18px; right: 18px; height: 7px;
  background: repeating-linear-gradient(90deg, #c7ced8 0 8px, transparent 8px 30px); }
#agents .prompt::before { top: -7px; border-radius: 2px 2px 0 0; }
#agents .prompt::after { bottom: -7px; }
#agents .prompt__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#agents .prompt__label { font: 500 12px/1 var(--font-mono); color: rgb(255 255 255 / .6); text-transform: uppercase; letter-spacing: .08em; }
#agents .prompt__copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; border: 0; cursor: pointer;
  font: 500 13px/1 var(--font-text); color: #fff; background: rgb(255 255 255 / .1); transition: background-color .15s ease, transform .1s ease; }
#agents .prompt__copy:hover { background: rgb(255 255 255 / .18); }
#agents .prompt__copy:active { transform: scale(.97); }
#agents .prompt__copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#agents .prompt__glyph { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#agents .prompt__glyph--done { display: none; }
#agents .prompt.is-copied .prompt__glyph--copy { display: none; }
#agents .prompt.is-copied .prompt__glyph--done { display: block; color: #6fd39a; }
#agents .prompt__line { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 15px/1.5 var(--font-mono); color: #fff; }
#agents .prompt__caret { color: #5fb0ff; margin-right: .6ch; user-select: none; }

/* the feed: rows stacked, the scored one lifted, the list running off the card */
#agents .feed { position: absolute; left: 50%; top: 24px; width: min(400px, calc(100% - 56px)); transform: translateX(-50%); display: grid; gap: 12px; }
#agents .feed__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 12px; background: #fff; border: 1px solid rgb(14 20 32 / .08); font-size: 14px; }
#agents .feed__row b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
#agents .feed__row small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#agents .feed__row.is-up { margin-inline: -20px; padding-inline: 20px; box-shadow: 0 18px 40px -18px rgb(14 20 32 / .35); position: relative; z-index: 1; }
#agents .feed__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #f1f3f6; box-shadow: inset 0 0 0 1px rgb(14 20 32 / .08); }
#agents .feed__ic img { width: 40px; height: 40px; }
#agents .feed__ic--n { font: 500 13px/1 var(--font-mono); color: var(--ink); }
#agents .feed__chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 500;
  color: var(--muted); background: #f1f3f6; box-shadow: inset 0 0 0 1px rgb(14 20 32 / .1); }
#agents .feed__chip--ok { color: #12753f; background: #eaf8f0; box-shadow: inset 0 0 0 1px #bfe6cf; }
#agents .feed__chip i { font-style: normal; font-size: 11px; font-weight: 700; }

/* the picker: a column of robots, the chosen one in a band across the panel */
#agents .bx--pick .bx__art { inset: 150px 0 0 0; }
#agents .pick__ghost { position: absolute; left: 32px; bottom: -20px; width: 150px; height: 190px; border-radius: 10px; border: 1px solid rgb(14 20 32 / .07);
  background: rgb(255 255 255 / .6); padding: 34px 14px; display: grid; gap: 12px; align-content: start; }
#agents .pick__ghost i { display: block; height: 9px; border-radius: 5px; background: rgb(14 20 32 / .06); }
#agents .pick__ghost i:nth-child(2) { width: 70%; } #agents .pick__ghost i:nth-child(4) { width: 50%; }
#agents .pick { position: absolute; right: 36px; left: 44%; bottom: -24px; height: calc(100% + 24px); border-radius: 12px 12px 0 0; background: #fff;
  border: 1px solid rgb(14 20 32 / .08); box-shadow: 0 24px 48px -24px rgb(14 20 32 / .3); display: flex; flex-direction: column; justify-content: center; }
#agents .pick__col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#agents .pick__col--up { -webkit-mask: linear-gradient(transparent, #000 85%); mask: linear-gradient(transparent, #000 85%); }
#agents .pick__col--down { -webkit-mask: linear-gradient(#000 15%, transparent); mask: linear-gradient(#000 15%, transparent); }
#agents .pick__col img { width: 44px; height: 44px; border-radius: 50%; }
#agents .pick__sel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 10px 0; padding: 10px 20px;
  border-block: 1px solid rgb(14 20 32 / .08); background: #f8f9fb; }
#agents .pick__sel b { justify-self: start; }
#agents .pick__as { justify-self: start; font-size: 15px; font-weight: 500; color: var(--ink); }
#agents .pick__sel img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--accent); }
#agents .pick__sel b { font: 600 17px/1 var(--font-text); color: var(--ink); }

/* the claim: words and a checklist left, the claim card off the lower right */
#agents .bx__list { margin-top: 32px; display: grid; gap: 14px; font-size: 17px; color: var(--ink); }
#agents .bx__list li { display: flex; align-items: center; gap: 12px; }
#agents .bx__list li::before { content: ""; width: 16px; height: 9px; margin-top: -5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); flex: none; }
#agents .bx--claim .bx__text { max-width: 46%; }
#agents .bx--claim .bx__art { inset: auto 40px 0 auto; width: min(330px, 46%); }
#agents .seg { display: flex; gap: 4px; width: max-content; margin: 0 auto 20px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid rgb(14 20 32 / .1); font-size: 14px; font-weight: 500; }
#agents .seg span { padding: 7px 16px; border-radius: 999px; color: var(--muted); }
#agents .seg .is-on { color: var(--ink); background: #f1f3f6; box-shadow: inset 0 0 0 1px rgb(14 20 32 / .1), 0 2px 6px -2px rgb(14 20 32 / .2); }
#agents .claim { padding: 22px 20px 30px; border-radius: 12px 12px 0 0; background: #fff; border: 1px solid rgb(14 20 32 / .08); border-bottom: 0;
  box-shadow: 0 24px 48px -24px rgb(14 20 32 / .3); display: grid; gap: 14px; }
#agents .claim__title { font: 600 18px/1.2 var(--font-text); color: var(--ink); margin-bottom: 4px; }
#agents .claim__kv { display: grid; gap: 5px; padding-bottom: 12px; border-bottom: 1px solid rgb(14 20 32 / .07); font-size: 14px; color: var(--ink); }
#agents .claim__kv small { font: 500 11px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#agents .claim__amt { font: 500 24px/1.1 var(--font-mono); letter-spacing: -0.02em; }
#agents .claim__amt em { font-style: normal; font-size: 14px; color: var(--muted); }
#agents .claim__who { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
#agents .claim__who img { width: 20px; height: 20px; border-radius: 6px; }
#agents .claim__who code { font: 400 12px/1 var(--font-mono); color: var(--muted); }
#agents .claim__btn { display: flex; align-items: center; justify-content: center; height: 40px; margin-top: 4px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; }
#agents .claim__chain { background: #0e1420; padding: 4px 5px; box-sizing: border-box; object-fit: contain; }

@media (max-width: 1023px) {
  #agents .agents-row > .bx { grid-column: 1 / -1; }
  #agents > .wrap > .grid:last-child { align-self: stretch; }
}
@media (min-width: 640px) and (max-width: 1023px) { #agents .bx { min-height: 380px; } }
@media (max-width: 639px) {
  #agents .section-head--row > .btn { width: 100%; }
  #agents .bx { min-height: 0; padding: 28px 24px 0; }
  #agents .bx__art, #agents .bx--pick .bx__art, #agents .bx--claim .bx__art { position: relative; inset: auto; width: auto; height: 280px; margin: 24px -24px 0; }
  #agents .bx--chip { min-height: 440px; }
  #agents .prompt { top: 66%; }
  #agents .bx--claim .bx__text { max-width: none; }
  #agents .bx--claim .bx__art { margin-inline: 0; }
  #agents .pick { left: 24px; right: 24px; }
  #agents .pick__ghost { display: none; }
  #agents .prompt__copy { height: 44px; min-width: 44px; }
  #agents .pick__col { padding-left: 0; }
  #agents .feed__row.is-up { margin-inline: -10px; padding-inline: 18px; }
}

/* footer (the closing section removed on Alex's ask): links, the name set large in brand dots, the legal row */
.footer--klinr { padding-block: var(--section) var(--s-6); }
.footer--klinr > .wrap { container-type: inline-size; }
.footer--klinr .footer__top { row-gap: var(--s-7); }
.footer--klinr .footer__lede { font-size: var(--t-lead); max-width: 28ch; }
.footer--klinr .stack-5 > .btn { justify-self: start; width: max-content; }
.footer__word {
  margin-top: var(--s-8); font: 600 calc(100cqi / 1.66)/1 var(--font-display); letter-spacing: -0.06em;
  white-space: nowrap; user-select: none; margin-bottom: -0.16em;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: radial-gradient(circle at center, var(--accent) 1.3px, transparent 1.7px);
  background-size: 7px 7px;
}
.footer--klinr .footer__legal { margin-top: var(--s-6); }
.footer__chain { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
@media (max-width: 1023px) { .footer--klinr .footer__top > .span-5 { grid-column: 1 / -1; } .footer--klinr .footer__col { grid-column: auto / span 4; } }
@media (max-width: 639px) { .footer--klinr .footer__col { grid-column: auto / span 6; } .footer__word { margin-top: var(--s-7); background-size: 5px 5px; background-image: radial-gradient(circle at center, var(--accent) 1px, transparent 1.4px); } .footer--klinr .footer__legal { justify-content: flex-start; } }

/* the coming-soon note (Alex: no link leads to the app yet) */
.soon { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0;
  display: grid; gap: 2px; width: min(420px, calc(100% - 32px)); padding: 14px 18px; border-radius: 12px;
  background: #111823; color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 24px 48px -20px rgb(14 20 32 / .55);
  transition: opacity .2s ease, transform .2s ease; }
.soon b { font-weight: 600; }
.soon span { color: rgb(255 255 255 / .75); }
.soon.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .soon { transition: none; } }
