/* agents.html — the AI Agents page (since 2026-10-19; the page it replaced is in backup/): build smarter AI agents,
 * spend less running them.
 *
 * One idea drawn throughout: each step of an agent's work becomes a model request, and Air Router sends it to the
 * model tier the step needs (or reuses a cached result). Designed in Telemetry (charcoal panels, hairlines, mono
 * labels, bracketed eyebrows, one amber signal: --tm-accent*) and drawn by this file in all five visitor themes, with
 * the same tokens as the Coding Tools page (coding-tools-page.css):
 *   Telemetry  html[data-final="telemetry"]                  the base tokens below
 *   Night      html:not([data-theme="studio"])               the live Final Dark look
 *   Day        html[data-theme="studio"] (data-final="light") the live Final Light look
 *   Cloud      html[data-final="cloud"]                      the soft app-store light (cloud.css)
 *   Cloud Dark html[data-final="cloud"][data-cloud="dark"]   Cloud on a charcoal ground (cloud-dark.css)
 * The <main> is marked data-st-own, so studio-icons.js and the theme layers' generic rules leave it alone. Every rule
 * is scoped under .ag; agents-page.js draws the hero's wires and runs the demos (without it, every diagram shows its
 * finished state). */

/* ── Tokens ─────────────────────────────────────────────────────────────────────────────────── */
.ag {
  --ag-ink: #eceef1; --ag-mid: #b7bdc6; --ag-muted: #9aa2ae; --ag-dim: #8a929e;
  --ag-line: #22262c; --ag-line2: #2c3138; --ag-line3: #3d444e;
  --ag-panel: #111316; --ag-panel2: #16191d; --ag-well: #08090b; --ag-band: #0e1013;
  --ag-acc: var(--tm-accent, #ffb020); --ag-acc-rgb: var(--tm-accent-rgb, 255 176 32);
  --ag-acc-hi: var(--tm-accent-hi, #ffc34d); --ag-acc-ink: var(--tm-accent-ink, #1a1100);
  --ag-ok: #4ade80; --ag-ok-rgb: 74 222 128;
  --ag-lights: #5b6470;
  --ag-sheen: inset 0 1px 0 rgb(255 255 255 / .035);
  --ag-shadow: inset 0 1px 0 rgb(255 255 255 / .035), 0 30px 60px -40px rgb(0 0 0 / .9);
  --ag-card-shadow: var(--ag-sheen);
  --ag-win-shadow: inset 0 1px 0 rgb(255 255 255 / .04), 0 0 0 1px rgb(0 0 0 / .45), 0 50px 90px -50px rgb(0 0 0 / .95);
  --ag-btn-bg: var(--ag-acc); --ag-btn-fg: var(--ag-acc-ink); --ag-btn-line: var(--ag-acc);
  --ag-btn-hi: var(--ag-acc-hi); --ag-btn-hi-line: var(--ag-acc-hi);
  --ag-btn-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 0 0 1px rgb(0 0 0 / .4), 0 10px 24px -14px rgb(var(--ag-acc-rgb) / .7);
  --ag-btn-font: var(--ag-mono); --ag-r-btn: 6px;
  --ag-mono: var(--ft-mono, 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace);
  --ag-display: var(--ft-display, 'Sora', 'Manrope', system-ui, sans-serif);
  --ag-sans: var(--ft-sans, 'Manrope', system-ui, sans-serif);
  --ag-r: 8px; --ag-r-sm: 6px; --ag-r-win: 10px;
  --ag-ease: cubic-bezier(.2, .8, .2, 1);
  display: block; position: relative; color: var(--ag-ink); font-family: var(--ag-sans);
  font-size: 16px; line-height: 1.6; letter-spacing: -.005em; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* Night: the live Final Dark look — black ground, cyan signal, blue → violet actions. */
html:not([data-theme="studio"]) .ag {
  --ag-ink: #ffffff; --ag-mid: #b4bbc6; --ag-muted: #9ca3af; --ag-dim: #8a93a2;
  --ag-line: rgb(255 255 255 / .08); --ag-line2: rgb(255 255 255 / .12); --ag-line3: rgb(255 255 255 / .2);
  --ag-panel: #0e0e10; --ag-panel2: #141417; --ag-well: #08080a; --ag-band: #0a0a0a;
  --ag-acc: #00f0ff; --ag-acc-rgb: 0 240 255; --ag-acc-hi: #5cf6ff; --ag-acc-ink: #00191c;
  --ag-ok: #4ade80; --ag-ok-rgb: 74 222 128;
  --ag-r: 16px; --ag-r-sm: 12px; --ag-r-win: 14px; --ag-r-btn: 999px; --ag-btn-font: var(--ag-sans);
  --ag-head-grad: linear-gradient(90deg, #3b82f6 0%, #8a2be2 50%, #00f0ff 100%);
  --ag-btn-bg: linear-gradient(90deg, #0055ff 0%, #8a2be2 100%); --ag-btn-fg: #ffffff; --ag-btn-line: transparent;
  --ag-btn-hi: linear-gradient(90deg, #1a66ff 0%, #9a40ee 100%); --ag-btn-hi-line: transparent;
  --ag-btn-shadow: 0 0 30px rgb(138 43 226 / .3), inset 0 1px 0 rgb(255 255 255 / .2);
  --ag-lights: rgb(255 255 255 / .28);
  --ag-sheen: inset 0 1px 0 rgb(255 255 255 / .04);
  --ag-shadow: inset 0 1px 0 rgb(255 255 255 / .04), 0 30px 60px -30px rgb(0 0 0 / .85);
  --ag-win-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 0 80px -30px rgb(0 240 255 / .14), 0 50px 90px -50px rgb(0 0 0 / .95);
}
/* Day: the live Final Light look — off-white ground, grey bands, teal signal, teal → navy actions.
   (Also what the hidden ?theme= previews get.) */
html[data-theme="studio"]:not([data-final="telemetry"]) .ag {
  --ag-ink: #0b1622; --ag-mid: #2e3b4a; --ag-muted: #4a5a6b; --ag-dim: #4a5a6b;
  --ag-line: rgb(11 22 34 / .11); --ag-line2: rgb(11 22 34 / .17); --ag-line3: rgb(11 22 34 / .26);
  --ag-panel: #ffffff; --ag-panel2: #f6f8fa; --ag-well: #eef1f5; --ag-band: #eef2f7;
  --ag-acc: #0c6a84; --ag-acc-rgb: 12 106 132; --ag-acc-hi: #155e75; --ag-acc-ink: #ffffff;
  --ag-ok: #036b4e; --ag-ok-rgb: 3 107 78;
  --ag-r: 16px; --ag-r-sm: 12px; --ag-r-win: 14px; --ag-r-btn: 999px; --ag-btn-font: var(--ag-sans);
  --ag-head-grad: linear-gradient(90deg, #0e7490 0%, #1e40af 100%);
  --ag-btn-bg: linear-gradient(90deg, #0e7490 0%, #1e40af 100%); --ag-btn-fg: #ffffff; --ag-btn-line: transparent;
  --ag-btn-hi: linear-gradient(90deg, #155e75 0%, #1e3a8a 100%); --ag-btn-hi-line: transparent;
  --ag-btn-shadow: 0 10px 26px -14px rgb(14 116 144 / .6);
  --ag-lights: rgb(11 22 34 / .3);
  --ag-sheen: 0 0 0 0 transparent;
  --ag-shadow: 0 1px 2px rgb(11 22 34 / .06), 0 10px 26px -18px rgb(11 22 34 / .45);
  --ag-card-shadow: 0 1px 2px rgb(11 22 34 / .05), 0 8px 22px -18px rgb(11 22 34 / .4);
  --ag-win-shadow: 0 1px 2px rgb(11 22 34 / .06), 0 40px 80px -40px rgb(11 22 34 / .38);
}
/* Cloud: the soft app-store light — lavender-grey ground, white cards with wide soft shadows, one action blue. */
html[data-theme="studio"][data-final="cloud"] .ag {
  --ag-ink: #090a0d; --ag-mid: #474a56; --ag-muted: #5f6270; --ag-dim: #5f6270;
  --ag-line: rgb(24 27 38 / .07); --ag-line2: rgb(24 27 38 / .12); --ag-line3: rgb(24 27 38 / .2);
  --ag-panel: #ffffff; --ag-panel2: #f7f8fb; --ag-well: #f1f2f7; --ag-band: #fafbfd;
  --ag-acc: #0060c4; --ag-acc-rgb: 0 96 196; --ag-acc-hi: #0058b0; --ag-acc-ink: #ffffff;
  --ag-ok: #006b4f; --ag-ok-rgb: 0 107 79;
  --ag-r: 24px; --ag-r-sm: 14px; --ag-r-win: 20px; --ag-r-btn: 16px; --ag-btn-font: var(--ag-sans);
  --ag-head-ink: #555864;
  --ag-btn-bg: #0071e3; --ag-btn-fg: #ffffff; --ag-btn-line: #0071e3;
  --ag-btn-hi: #0066d6; --ag-btn-hi-line: #0066d6;
  --ag-btn-shadow: 0 16px 34px rgb(10 132 255 / .22);
  --ag-lights: rgb(24 27 38 / .25);
  --ag-sheen: 0 0 0 0 transparent;
  --ag-shadow: 0 20px 55px rgb(70 72 105 / .07);
  --ag-card-shadow: 0 20px 55px rgb(70 72 105 / .07);
  --ag-win-shadow: 0 30px 80px rgb(70 72 105 / .13);
}
/* Cloud Dark: Cloud on Telemetry's charcoal lifted 10%; the same action blue. */
html[data-theme="studio"][data-final="cloud"][data-cloud="dark"] .ag {
  --ag-ink: #ffffff; --ag-mid: #cfd1d8; --ag-muted: #b4b7c0; --ag-dim: #a7abb5;
  --ag-line: rgb(255 255 255 / .07); --ag-line2: rgb(255 255 255 / .12); --ag-line3: rgb(255 255 255 / .2);
  --ag-panel: #2c2e32; --ag-panel2: #313338; --ag-well: #1c1d20; --ag-band: #27292c;
  --ag-acc: #9ccbff; --ag-acc-rgb: 156 203 255; --ag-acc-hi: #b8d9ff; --ag-acc-ink: #0a1a2e;
  --ag-ok: #7ee2b8; --ag-ok-rgb: 126 226 184;
  --ag-head-ink: #a9acb6;
  --ag-btn-shadow: 0 16px 34px rgb(10 132 255 / .3);
  --ag-lights: rgb(255 255 255 / .3);
  --ag-shadow: 0 20px 55px rgb(0 0 0 / .34);
  --ag-card-shadow: 0 20px 55px rgb(0 0 0 / .3);
  --ag-win-shadow: 0 30px 80px rgb(0 0 0 / .45);
}
.ag *, .ag *::before, .ag *::after { box-sizing: border-box; }
.ag :focus-visible { outline: 2px solid var(--ag-acc); outline-offset: 3px; border-radius: 4px; }
.ag a { color: inherit; text-decoration: none; }
.ag p, .ag h1, .ag .ag-headline, .ag h2, .ag h3, .ag ol, .ag ul, .ag dl, .ag dd, .ag figure, .ag pre { margin: 0; }
.ag ol, .ag ul { padding: 0; list-style: none; }
.ag button { font: inherit; color: inherit; }
.ag code { font: inherit; }
.ag [hidden] { display: none !important; }
.ag .ag-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ag .ag-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ag .ag-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.ag svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

/* ── Type ───────────────────────────────────────────────────────────────────────────────────── */
.ag .ag-headline, .ag h2, .ag h3 { font-family: var(--ag-display); color: var(--ag-ink); text-wrap: balance; }
.ag .ag-headline { font-size: clamp(2.1rem, 9.4vw, 4.6rem); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; }
.ag h2 { font-size: clamp(1.9rem, 3.7vw, 3.1rem); line-height: 1.06; font-weight: 600; letter-spacing: -.038em; }
.ag h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.ag .ag-acc { color: var(--ag-acc); }
.ag .ag-line { display: block; }
.ag .ag-eyebrow { display: inline-flex; gap: 8px; margin-bottom: 18px; font-family: var(--ag-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ag-acc); }
.ag .ag-eyebrow::before { content: "["; color: var(--ag-muted); letter-spacing: 0; }
.ag .ag-eyebrow::after { content: "]"; color: var(--ag-muted); letter-spacing: 0; }
.ag .ag-lede { margin-top: 20px; max-width: 62ch; font-size: clamp(1.02rem, 1.35vw, 1.13rem); line-height: 1.65; color: var(--ag-mid); text-wrap: pretty; }
.ag .ag-lede + .ag-lede { margin-top: 10px; }
.ag .ag-lede-strong { font-family: var(--ag-display); font-weight: 600; color: var(--ag-ink); letter-spacing: -.015em; }
/* Phones: a headline's accent half takes its own line, so the break never lands mid-phrase. */
@media (max-width: 639px) { .ag :is(h2, .ag-big) .ag-acc { display: block; } }
.ag .ag-big { margin-top: clamp(48px, 7vw, 80px); text-align: center; font-family: var(--ag-display); font-size: clamp(1.7rem, 3.4vw, 2.75rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -.035em; color: var(--ag-ink); text-wrap: balance; }

/* ── Sections ───────────────────────────────────────────────────────────────────────────────── */
.ag .ag-sec { position: relative; padding-block: clamp(76px, 9vw, 124px); }
.ag .ag-band { background: var(--ag-band); border-block: 1px solid var(--ag-line); }
.ag .ag-head { max-width: 860px; }
.ag .ag-head-c { margin-inline: auto; text-align: center; }
.ag .ag-head-c .ag-lede { margin-inline: auto; }
.ag .ag-body { margin-top: clamp(40px, 5vw, 60px); }

/* ── Buttons and links ──────────────────────────────────────────────────────────────────────── */
.ag .ag-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ag .ag-ctas-c { justify-content: center; }
.ag .ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--ag-r-btn); font-family: var(--ag-btn-font); font-size: 14px; font-weight: 600;
  letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ag-ease), background-color .2s, border-color .2s, color .2s; }
.ag .ag-btn svg { width: 16px; height: 16px; flex: none; stroke-width: 2.1; transition: transform .2s var(--ag-ease); }
.ag .ag-btn-p { background: var(--ag-btn-bg); color: var(--ag-btn-fg); border-color: var(--ag-btn-line); box-shadow: var(--ag-btn-shadow); }
.ag .ag-btn-p:hover { background: var(--ag-btn-hi); border-color: var(--ag-btn-hi-line); transform: translateY(-1px); }
.ag .ag-btn-p:hover svg { transform: translateX(2px); }
.ag .ag-btn-s { background: var(--ag-panel); color: var(--ag-ink); border-color: var(--ag-line3); box-shadow: var(--ag-sheen); }
.ag .ag-btn-s:hover { color: var(--ag-acc); border-color: var(--ag-acc); background: var(--ag-panel2); }
.ag .ag-btn-sm { min-height: 42px; padding: 0 18px; font-size: 13px; }
.ag .ag-link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-family: var(--ag-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ag-acc); }
.ag .ag-link svg { width: 15px; height: 15px; stroke-width: 2.1; transition: transform .2s var(--ag-ease); }
.ag .ag-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ag .ag-link:hover svg { transform: translateX(3px); }

/* ── Surfaces and small parts ───────────────────────────────────────────────────────────────── */
.ag .ag-panel { position: relative; background: var(--ag-panel); border: 1px solid var(--ag-line); border-radius: var(--ag-r);
  box-shadow: var(--ag-shadow); }
.ag .ag-bar { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 16px; border-bottom: 1px solid var(--ag-line); }
.ag .ag-bar-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ag-mono); font-size: 11px;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ag-mid); }
.ag .ag-bar-m { margin-left: auto; flex: none; padding: 2px 8px; border: 1px solid rgb(var(--ag-acc-rgb) / .45); border-radius: 4px;
  font-family: var(--ag-mono); font-size: 11px; color: var(--ag-acc); white-space: nowrap; }
.ag .ag-lights { display: inline-flex; gap: 6px; flex: none; }
.ag .ag-lights i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ag-lights); }
.ag .ag-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--ag-line3); border-radius: 4px;
  font-family: var(--ag-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ag-mid); white-space: nowrap; }


/* Scroll reveal (only once coding-tools-page.js runs, so the page reads without it). */
.ag.ag-js .ag-rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ag-ease), transform .7s var(--ag-ease); }
.ag.ag-js .ag-rv.is-in { opacity: 1; transform: none; }

/* Headlines: the accent half always takes its own line on this page (its phrases are long). */
.ag :is(h2, .ag-big) .ag-acc { display: block; }

/* ── 1 · Hero ───────────────────────────────────────────────────────────────────────────────── */
.ag .ag-hero { position: relative; padding-block: calc(80px + clamp(44px, 6vw, 84px)) clamp(70px, 8vw, 110px); overflow: clip; }
.ag .ag-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 32% at 50% 8%, rgb(var(--ag-acc-rgb) / .09), transparent 70%), radial-gradient(30% 30% at 18% 80%, rgb(var(--ag-ok-rgb) / .04), transparent 70%); }
.ag .ag-hero .ag-wrap { position: relative; }
.ag .ag-hero-copy { max-width: 940px; margin-inline: auto; text-align: center; }
.ag .ag-hero-copy .ag-lede { margin-inline: auto; }
.ag .ag-lede-ink { color: var(--ag-ink); }

/* The agent run: steps → Air Router → a model tier (or the cache). */
.ag .ag-hv { max-width: 1120px; margin: clamp(48px, 6vw, 76px) auto 0; border-radius: var(--ag-r-win); box-shadow: var(--ag-win-shadow); }
.ag .ag-hv-body { position: relative; display: flex; flex-direction: column; padding: clamp(18px, 3vw, 34px); }
.ag .ag-hv-k { margin-bottom: 12px; font-family: var(--ag-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-dim); }
.ag .ag-hv-col { position: relative; z-index: 1; min-width: 0; }
.ag .ag-run-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ag .ag-run-h .ag-hv-k { flex: none; margin: 0; white-space: nowrap; }
.ag .ag-run-task { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ag-mono); font-size: 11px; color: var(--ag-muted); }
.ag .ag-run { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.ag .ag-st { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; background: var(--ag-panel2);
  border: 1px solid var(--ag-line2); border-radius: var(--ag-r-sm); transition: border-color .3s, box-shadow .3s; }
.ag .ag-st-n { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--ag-line3); border-radius: 6px; background: var(--ag-well);
  font-family: var(--ag-mono); font-size: 11px; font-weight: 700; color: var(--ag-mid); transition: background-color .3s, border-color .3s, color .3s; }
.ag .ag-st-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--ag-ink); transition: color .3s; }
.ag .ag-st-r { padding: 2px 7px; border: 1px solid var(--ag-line3); border-radius: 4px; font-family: var(--ag-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ag-mid); white-space: nowrap; visibility: hidden; }
.ag .ag-st.is-done .ag-st-r { visibility: visible; animation: ag-in .35s var(--ag-ease) both; }
.ag .ag-st[data-tier="powerful"] .ag-st-r { color: var(--ag-acc); border-color: rgb(var(--ag-acc-rgb) / .5); background: rgb(var(--ag-acc-rgb) / .07); }
.ag .ag-st[data-tier="cache"] .ag-st-r { color: var(--ag-ok); border-color: rgb(var(--ag-ok-rgb) / .5); background: rgb(var(--ag-ok-rgb) / .07); }
.ag .ag-st.is-done .ag-st-n { color: var(--ag-ok); border-color: rgb(var(--ag-ok-rgb) / .45); }
.ag .ag-st.is-on { border-color: rgb(var(--ag-acc-rgb) / .7); box-shadow: 0 0 0 3px rgb(var(--ag-acc-rgb) / .1); }
.ag .ag-st.is-on .ag-st-n { background: var(--ag-acc); border-color: var(--ag-acc); color: var(--ag-acc-ink); }
.ag .ag-hv.is-running .ag-st:not(.is-done):not(.is-on) .ag-st-t { color: var(--ag-muted); }

.ag .ag-tiers { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag .ag-tier { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 6px; background: var(--ag-panel2); border: 1px solid var(--ag-line2);
  border-radius: var(--ag-r-sm); text-align: center; transition: border-color .3s, box-shadow .3s; }
.ag .ag-tier.is-on { border-color: rgb(var(--ag-acc-rgb) / .7); box-shadow: 0 0 0 3px rgb(var(--ag-acc-rgb) / .1); }
.ag .ag-tier[data-tier="cache"].is-on { border-color: rgb(var(--ag-ok-rgb) / .7); box-shadow: 0 0 0 3px rgb(var(--ag-ok-rgb) / .1); }
.ag .ag-tier-t { display: flex; flex-direction: column; min-width: 0; }
.ag .ag-tier-n { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--ag-ink); }
.ag .ag-tier-s { display: none; font-size: 12px; line-height: 1.35; color: var(--ag-muted); }
.ag .ag-tier-i { display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; flex: none; width: 16px; height: 16px; }
.ag .ag-tier-i i { width: 4px; height: 6px; border-radius: 1px; background: var(--ag-mid); transition: background-color .3s; }
.ag .ag-tier-i i:nth-child(2) { height: 11px; }
.ag .ag-tier-i i:nth-child(3) { height: 16px; }
.ag .ag-tier.is-on .ag-tier-i i { background: var(--ag-acc); }
.ag .ag-tier-cache svg { width: 16px; height: 16px; stroke-width: 2.2; color: var(--ag-ok); }

.ag .ag-engine { position: relative; padding: 14px; background: var(--ag-well); border: 1px solid rgb(var(--ag-acc-rgb) / .45); border-radius: var(--ag-r);
  box-shadow: 0 0 0 4px rgb(var(--ag-acc-rgb) / .05), 0 24px 50px -30px rgb(var(--ag-acc-rgb) / .35); transition: box-shadow .4s, border-color .4s; }
.ag .ag-hv[data-stage="think"] .ag-engine { border-color: rgb(var(--ag-acc-rgb) / .85); box-shadow: 0 0 0 5px rgb(var(--ag-acc-rgb) / .1), 0 24px 50px -26px rgb(var(--ag-acc-rgb) / .5); }
.ag .ag-engine-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--ag-line); }
.ag .ag-engine-logo { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--ag-line3); border-radius: 7px; background: var(--ag-panel); }
.ag .ag-engine-logo img { width: 70%; height: auto; display: block; }
.ag .ag-engine-t { font-family: var(--ag-mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-ink); }
.ag .ag-engine-led { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ag-ok); box-shadow: 0 0 0 0 rgb(var(--ag-ok-rgb) / .6); }
.ag .ag-engine-rows { display: grid; gap: 6px; margin-top: 12px; }
.ag .ag-engine-rows div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ag .ag-engine-rows dt { font-family: var(--ag-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ag-dim); }
.ag .ag-engine-rows dd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ag-mono); font-size: 12.5px; color: var(--ag-ink); }
.ag .ag-engine-rows .ag-engine-route { color: var(--ag-acc); font-weight: 600; }
.ag .ag-engine-rows dd.is-new { animation: ag-in .35s var(--ag-ease) both; }

/* Phone and tablet: a vertical chain, joined by short connectors. */
.ag .ag-hv-c { position: relative; display: block; height: 34px; }
.ag .ag-hv-c::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 8px; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(180deg, rgb(var(--ag-acc-rgb) / .85) 0 4px, transparent 4px 8px); opacity: .45; transition: opacity .3s; }
.ag .ag-hv-c::after { content: ""; position: absolute; left: 50%; bottom: 2px; margin-left: -4.5px; border: 4.5px solid transparent; border-bottom: 0;
  border-top: 6px solid rgb(var(--ag-acc-rgb) / .85); opacity: .45; transition: opacity .3s; }
.ag .ag-hv[data-stage="in"] .ag-hv-c-in::before, .ag .ag-hv[data-stage="in"] .ag-hv-c-in::after,
.ag .ag-hv[data-stage="out"] .ag-hv-c-out::before, .ag .ag-hv[data-stage="out"] .ag-hv-c-out::after { opacity: 1; }
.ag.ag-js .ag-hv[data-stage="in"] .ag-hv-c-in::before, .ag.ag-js .ag-hv[data-stage="out"] .ag-hv-c-out::before { animation: ag-dn .5s linear infinite; }

/* The wires (drawn by the script on wide screens) */
.ag .ag-wires { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.ag .ag-wires path { fill: none; stroke: var(--ag-line3); stroke-width: 1.3; transition: stroke .3s, opacity .3s; }
.ag .ag-wires path.is-lit { stroke: rgb(var(--ag-acc-rgb) / .6); stroke-width: 1.6; }
.ag .ag-wires path.is-on { stroke: var(--ag-acc); stroke-width: 1.8; stroke-dasharray: 5 7; }
.ag .ag-wires path.is-cache.is-lit { stroke: rgb(var(--ag-ok-rgb) / .65); }
.ag .ag-wires path.is-cache.is-on { stroke: var(--ag-ok); }
.ag.ag-js .ag-wires path.is-on { animation: ag-dash .5s linear infinite; }
.ag .ag-wires circle { fill: var(--ag-panel); stroke: rgb(var(--ag-acc-rgb) / .8); stroke-width: 1.5; }

@media (min-width: 520px) {
  .ag .ag-tier-s { display: block; }
}
@media (min-width: 640px) {
  .ag .ag-run { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag .ag-hv-mid { width: min(100%, 420px); margin-inline: auto; }
  .ag .ag-tier { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 12px; text-align: left; }
  .ag .ag-tier-i { margin-top: 2px; }
}
@media (max-width: 519px) { .ag .ag-hv .ag-bar-t { display: none; } }
@media (min-width: 920px) {
  .ag .ag-hv-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(56px, 6vw, 96px); align-items: center; }
  .ag .ag-hv-c { display: none; }
  .ag .ag-run, .ag .ag-tiers { grid-template-columns: minmax(0, 1fr); }
  .ag .ag-tiers { gap: 10px; }
  .ag .ag-hv-mid { width: auto; margin: 0; }
  .ag .ag-wires { display: block; }
  /* Without the script, plain arrows stand in for the wires. */
  .ag .ag-hv:not(.is-wired) .ag-hv-mid::before, .ag .ag-hv:not(.is-wired) .ag-hv-mid::after { content: "\2192"; position: absolute; top: 50%;
    font-family: var(--ag-mono); font-size: 20px; font-weight: 700; color: var(--ag-acc); transform: translate(-50%, -50%); }
  .ag .ag-hv:not(.is-wired) .ag-hv-mid::before { left: calc(clamp(56px, 6vw, 96px) / -2); }
  .ag .ag-hv:not(.is-wired) .ag-hv-mid::after { left: calc(100% + clamp(56px, 6vw, 96px) / 2); }
}
.ag .ag-hv-foot { margin-top: clamp(26px, 3.5vw, 38px); text-align: center; font-family: var(--ag-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 600;
  letter-spacing: -.025em; color: var(--ag-ink); text-wrap: balance; }

/* ── 2 · What agents can do ─────────────────────────────────────────────────────────────────── */
.ag .ag-uses { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ag .ag-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ag .ag-uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ag .ag-use { padding: 24px; background: var(--ag-panel); border: 1px solid var(--ag-line); border-radius: var(--ag-r); box-shadow: var(--ag-card-shadow);
  transition: translate .25s var(--ag-ease), border-color .25s; }
.ag .ag-use:hover { translate: 0 -3px; border-color: rgb(var(--ag-acc-rgb) / .4); }
.ag .ag-use-k { margin-top: 20px; font-family: var(--ag-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-acc); }
.ag .ag-use h3 { margin-top: 6px; font-size: 1.2rem; }
.ag .ag-use p:last-child { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ag-mid); }
.ag .ag-ui { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid var(--ag-line2); border-radius: var(--ag-r-sm); background: var(--ag-well); }
.ag .ag-ui svg { width: 40px; height: 40px; stroke-width: 2.2; color: var(--ag-mid); }
.ag .ag-ui * { transform-box: fill-box; }
.ag .ag-ui-research .ln { stroke: var(--ag-line3); }
.ag .ag-ui-research .lens { stroke: var(--ag-acc); }
.ag .ag-ui-code .br { stroke: var(--ag-mid); }
.ag .ag-ui-code .ty { stroke: var(--ag-acc); transform-origin: left center; }
.ag .ag-ui-code .cur { stroke: var(--ag-ink); }
.ag .ag-ui-support .b1 { stroke: var(--ag-mid); }
.ag .ag-ui-support .b2 { stroke: var(--ag-acc); }
.ag .ag-ui-support .dots circle { fill: var(--ag-acc); stroke: none; }
.ag .ag-ui-auto .doc, .ag .ag-ui-auto .dl { stroke: var(--ag-mid); }
.ag .ag-ui-auto .dl { stroke: var(--ag-line3); }
.ag .ag-ui-auto .gear { stroke: var(--ag-acc); transform-origin: center; }
.ag .ag-ui-data .ax { stroke: var(--ag-line3); }
.ag .ag-ui-data .bar { fill: var(--ag-line3); stroke: none; transform-origin: bottom center; }
.ag .ag-ui-data .b2 { fill: var(--ag-mid); }
.ag .ag-ui-data .tr { stroke: var(--ag-acc); stroke-dasharray: 40; stroke-dashoffset: 0; }
.ag .ag-ui-multi .lk { stroke: var(--ag-line3); }
.ag .ag-ui-multi .nd { fill: var(--ag-panel); stroke: var(--ag-mid); }
.ag .ag-ui-multi .pk { fill: var(--ag-acc); stroke: none; }
.ag.ag-js .is-live .ag-ui-research .lens { animation: ag-scan 3.6s ease-in-out infinite; }
.ag.ag-js .is-live .ag-ui-code .ty { animation: ag-type 3.2s var(--ag-ease) infinite; }
.ag.ag-js .is-live .ag-ui-code .t2 { animation-delay: .3s; }
.ag.ag-js .is-live .ag-ui-code .t3 { animation-delay: .6s; }
.ag.ag-js .is-live .ag-ui-code .cur { animation: ag-blink 1s steps(1) infinite; }
.ag.ag-js .is-live .ag-ui-support .dots circle { animation: ag-bob 1.2s ease-in-out infinite; }
.ag.ag-js .is-live .ag-ui-support .dots circle:nth-child(2) { animation-delay: .15s; }
.ag.ag-js .is-live .ag-ui-support .dots circle:nth-child(3) { animation-delay: .3s; }
.ag.ag-js .is-live .ag-ui-auto .gear { animation: ag-rot 5s linear infinite; }
.ag.ag-js .is-live .ag-ui-data .bar { animation: ag-grow 3.6s var(--ag-ease) infinite; }
.ag.ag-js .is-live .ag-ui-data .b2 { animation-delay: .15s; }
.ag.ag-js .is-live .ag-ui-data .b3 { animation-delay: .3s; }
.ag.ag-js .is-live .ag-ui-data .tr { animation: ag-trend 3.6s var(--ag-ease) infinite; }
.ag.ag-js .is-live .ag-ui-multi .pk { animation: ag-hop 3.6s ease-in-out infinite; }

/* ── 3 · The hidden cost ────────────────────────────────────────────────────────────────────── */
.ag .ag-cmp { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ag .ag-cmp { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); } }
.ag .ag-cmp-p { display: flex; flex-direction: column; padding: 22px; background: var(--ag-panel); border: 1px solid var(--ag-line); border-radius: var(--ag-r);
  box-shadow: var(--ag-card-shadow); }
.ag .ag-cmp-agent { border-color: rgb(var(--ag-acc-rgb) / .35); }
.ag .ag-cmp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ag .ag-cmp-k { font-family: var(--ag-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-mid); }
.ag .ag-cmp-n { font-family: var(--ag-mono); font-size: 12px; color: var(--ag-muted); text-align: right; }
.ag .ag-cmp-n b { margin-right: 4px; font-family: var(--ag-display); font-size: 1.6rem; font-weight: 600; color: var(--ag-ink); }
.ag .ag-cmp-agent .ag-cmp-n b { color: var(--ag-acc); }
.ag .ag-cmp-n small { display: block; font-size: 10.5px; color: var(--ag-dim); }
.ag .ag-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 6px; }
.ag .ag-chain li { display: inline-flex; align-items: center; gap: 6px; }
.ag .ag-chain li + li::before { content: "\2192"; font-family: var(--ag-mono); font-size: 12px; color: var(--ag-dim); }
.ag .ag-chain span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--ag-line2); border-radius: var(--ag-r-sm);
  background: var(--ag-panel2); font-size: 13px; font-weight: 600; color: var(--ag-ink); white-space: nowrap; transition: border-color .3s, background-color .3s, box-shadow .3s; }
.ag .ag-chain .is-ai span { border-color: rgb(var(--ag-acc-rgb) / .5); background: rgb(var(--ag-acc-rgb) / .06); }
.ag .ag-chain .is-ai span::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--ag-acc); }
.ag .ag-chain .is-retry span { border-style: dashed; }
.ag .ag-cmp.is-run .ag-chain .is-ai:not(.is-lit) span { border-color: var(--ag-line2); background: var(--ag-panel2); }
.ag .ag-cmp.is-run .ag-chain .is-ai:not(.is-lit) span::before { background: var(--ag-line3); }
.ag .ag-chain .is-ai.is-new span { box-shadow: 0 0 0 3px rgb(var(--ag-acc-rgb) / .14); }
.ag .ag-cmp-s { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--ag-muted); }
.ag .ag-probs { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
@media (min-width: 900px) { .ag .ag-probs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ag .ag-prob { position: relative; padding: 22px; background: var(--ag-panel); border: 1px solid var(--ag-line); border-radius: var(--ag-r); box-shadow: var(--ag-card-shadow); }
.ag .ag-prob-i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(var(--ag-acc-rgb) / .45); border-radius: var(--ag-r-sm);
  background: rgb(var(--ag-acc-rgb) / .07); color: var(--ag-acc); }
.ag .ag-prob-i svg { width: 20px; height: 20px; stroke-width: 1.9; }
.ag .ag-prob-n { position: absolute; top: 22px; right: 22px; font-family: var(--ag-mono); font-size: 12px; font-weight: 700; color: var(--ag-dim); }
.ag .ag-prob h3 { margin-top: 18px; }
.ag .ag-prob p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ag-mid); }

/* ── 4 · Air Router: four capabilities around the engine ────────────────────────────────────── */
.ag .ag-orbit { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.ag .ag-core { order: -1; position: relative; display: flex; flex-direction: column; align-items: center; padding: 26px 20px; background: var(--ag-well);
  border: 1px solid var(--ag-line); border-radius: var(--ag-r-win); box-shadow: var(--ag-shadow); overflow: hidden; }
.ag .ag-core::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(var(--ag-acc-rgb) / .14) 1px, transparent 1.2px); background-size: 16px 16px;
  -webkit-mask: radial-gradient(70% 60% at 50% 50%, #000, transparent); mask: radial-gradient(70% 60% at 50% 50%, #000, transparent); }
.ag .ag-core > * { position: relative; }
.ag .ag-core-n { padding: 9px 16px; border: 1px solid var(--ag-line2); border-radius: var(--ag-r-sm); background: var(--ag-panel2); font-family: var(--ag-mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-ink); }
.ag .ag-core-c { width: 2px; height: 34px; background: repeating-linear-gradient(180deg, rgb(var(--ag-acc-rgb) / .85) 0 5px, transparent 5px 10px); }
.ag .ag-core-r { width: min(100%, 320px); padding: 16px; background: var(--ag-panel); border: 1px solid rgb(var(--ag-acc-rgb) / .6); border-radius: var(--ag-r);
  box-shadow: 0 0 0 5px rgb(var(--ag-acc-rgb) / .07), 0 30px 60px -30px rgb(var(--ag-acc-rgb) / .45); }
.ag .ag-core-r::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgb(var(--ag-acc-rgb) / .5); opacity: 0; pointer-events: none; }
.ag .ag-core-h { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ag .ag-core-k { margin-top: 12px; text-align: center; font-family: var(--ag-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-muted); }
.ag .ag-core-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.ag .ag-core-chips li { padding: 6px 8px; border: 1px solid var(--ag-line2); border-radius: 5px; text-align: center; font-family: var(--ag-mono); font-size: 11px;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ag-mid); transition: color .3s, border-color .3s, background-color .3s; }
.ag .ag-core-chips li.is-on { color: var(--ag-acc-ink); background: var(--ag-acc); border-color: var(--ag-acc); }
.ag .ag-cap { position: relative; padding: 22px; background: var(--ag-panel); border: 1px solid var(--ag-line); border-radius: var(--ag-r); box-shadow: var(--ag-card-shadow);
  transition: border-color .3s, box-shadow .3s; }
.ag .ag-cap.is-on { border-color: rgb(var(--ag-acc-rgb) / .6); box-shadow: 0 0 0 3px rgb(var(--ag-acc-rgb) / .08), var(--ag-card-shadow); }
.ag .ag-cap-i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ag-line2); border-radius: var(--ag-r-sm); background: var(--ag-well);
  color: var(--ag-mid); transition: color .3s, border-color .3s; }
.ag .ag-cap.is-on .ag-cap-i { color: var(--ag-acc); border-color: rgb(var(--ag-acc-rgb) / .5); }
.ag .ag-cap-i svg { width: 20px; height: 20px; stroke-width: 1.9; }
.ag .ag-cap-k { margin-top: 16px; font-family: var(--ag-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-acc); }
.ag .ag-cap h3 { margin-top: 6px; }
.ag .ag-cap p:last-child { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ag-mid); }
@media (min-width: 640px) {
  .ag .ag-orbit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag .ag-core { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .ag .ag-orbit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "c0 core c2" "c1 core c3"; gap: 20px 32px; }
  .ag .ag-core { grid-area: core; grid-column: auto; justify-content: center; }
  .ag .ag-cap[data-cap="0"] { grid-area: c0; }
  .ag .ag-cap[data-cap="1"] { grid-area: c1; }
  .ag .ag-cap[data-cap="2"] { grid-area: c2; }
  .ag .ag-cap[data-cap="3"] { grid-area: c3; }
  /* a short lead from each card into the engine */
  .ag .ag-cap::after { content: ""; position: absolute; top: 50%; width: 32px; height: 2px; background: var(--ag-line2); transition: background-color .3s; }
  .ag .ag-cap[data-cap="0"]::after, .ag .ag-cap[data-cap="1"]::after { left: 100%; }
  .ag .ag-cap[data-cap="2"]::after, .ag .ag-cap[data-cap="3"]::after { right: 100%; }
  .ag .ag-cap.is-on::after { background: var(--ag-acc); }
}
.ag.ag-js .is-live .ag-core-c { animation: ag-dn .6s linear infinite; }
.ag.ag-js .is-live .ag-core-r::after { animation: ag-ring 2.6s ease-out infinite; }

/* ── 5 · A real agent workflow ──────────────────────────────────────────────────────────────── */
.ag .ag-wf { max-width: 920px; margin-inline: auto; overflow: hidden; border-radius: var(--ag-r-win); box-shadow: var(--ag-win-shadow); }
.ag .ag-replay { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 30px; padding: 0 10px; border: 1px solid var(--ag-line3); border-radius: 4px;
  background: var(--ag-panel2); font-family: var(--ag-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ag-mid); cursor: pointer;
  transition: color .2s, border-color .2s; }
.ag .ag-replay svg { width: 13px; height: 13px; stroke-width: 2.2; }
.ag .ag-replay:hover { color: var(--ag-acc); border-color: var(--ag-acc); }
.ag .ag-req { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding: 18px 20px; border-bottom: 1px solid var(--ag-line); }
.ag .ag-req-k { padding: 2px 7px; border: 1px solid var(--ag-line3); border-radius: 4px; font-family: var(--ag-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-muted); }
.ag .ag-req-q { font-family: var(--ag-display); font-size: clamp(1rem, 1.6vw, 1.12rem); font-weight: 600; color: var(--ag-ink); letter-spacing: -.01em; }
.ag .ag-tl { width: 100%; border-collapse: separate; border-spacing: 0; }
.ag .ag-tl th { padding: 12px 20px; text-align: left; font-family: var(--ag-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ag-dim); border-bottom: 1px solid var(--ag-line); }
.ag .ag-tl td { padding: 12px 20px; font-size: 15px; color: var(--ag-ink); border-top: 1px solid var(--ag-line); transition: background-color .3s, color .3s; }
.ag .ag-tl tbody tr:first-child td { border-top: 0; }
.ag .ag-tl td:last-child { width: 44%; }
.ag .ag-tl-n { margin-right: 12px; font-family: var(--ag-mono); font-size: 11px; color: var(--ag-dim); }
.ag .ag-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border: 1px solid var(--ag-line3); border-radius: 999px; font-family: var(--ag-mono);
  font-size: 11.5px; font-weight: 600; color: var(--ag-mid); }
.ag .ag-pill::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.ag .ag-pill-reasoning { color: var(--ag-acc); border-color: rgb(var(--ag-acc-rgb) / .5); background: rgb(var(--ag-acc-rgb) / .07); }
.ag .ag-pill-powerful { color: var(--ag-acc-ink); background: var(--ag-acc); border-color: var(--ag-acc); }
.ag .ag-tl.is-run tr:not(.is-done) .ag-pill { display: none; }
.ag .ag-tl.is-run tr:not(.is-done):not(.is-on) td:first-child { color: var(--ag-muted); }
.ag .ag-tl tr.is-on td { background: rgb(var(--ag-acc-rgb) / .06); }
.ag .ag-tl tr.is-on:not(.is-done) td:last-child::after { content: "analyzing\2026"; display: inline-block; line-height: 24px; font-family: var(--ag-mono); font-size: 11.5px; color: var(--ag-muted); }
.ag .ag-tl td:last-child { height: 49px; }
.ag .ag-tl.is-run tr.is-done .ag-pill { animation: ag-in .35s var(--ag-ease) both; }
@media (max-width: 559px) {
  .ag .ag-tl th, .ag .ag-tl td { padding: 11px 12px; font-size: 14px; }
  .ag .ag-tl-n { display: none; }
  .ag .ag-pill { white-space: normal; }
}
.ag .ag-wvs { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); max-width: 920px; margin: 16px auto 0; }
@media (min-width: 760px) { .ag .ag-wvs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ag .ag-wv { padding: 20px 22px 22px; background: var(--ag-panel); border: 1px solid var(--ag-line); border-radius: var(--ag-r); box-shadow: var(--ag-card-shadow); }
.ag .ag-wv-on { border-color: rgb(var(--ag-acc-rgb) / .4); }
.ag .ag-wv h3 { font-size: 1.05rem; }
.ag .ag-wv-on h3 { color: var(--ag-acc); }
.ag .ag-wv p { margin-top: 4px; font-size: 14px; color: var(--ag-muted); }
.ag .ag-blocks { display: flex; align-items: flex-end; gap: 8px; height: 88px; margin-top: 18px; border-bottom: 1px solid var(--ag-line3); }
.ag .ag-blocks li { flex: 1; height: 100%; border-radius: 4px 4px 0 0; background: var(--ag-line3); transform-origin: bottom center; }
.ag .ag-blocks [data-tier="efficient"] { height: 28%; background: rgb(var(--ag-acc-rgb) / .5); }
.ag .ag-blocks [data-tier="reasoning"] { height: 62%; background: rgb(var(--ag-acc-rgb) / .75); }
.ag .ag-blocks [data-tier="powerful"] { height: 100%; background: var(--ag-acc); }
.ag.ag-js .ag-wvs.is-in .ag-blocks li { animation: ag-rise .8s var(--ag-ease) both; }
.ag.ag-js .ag-wvs.is-in .ag-blocks li:nth-child(2) { animation-delay: .06s; }
.ag.ag-js .ag-wvs.is-in .ag-blocks li:nth-child(3) { animation-delay: .12s; }
.ag.ag-js .ag-wvs.is-in .ag-blocks li:nth-child(4) { animation-delay: .18s; }
.ag.ag-js .ag-wvs.is-in .ag-blocks li:nth-child(5) { animation-delay: .24s; }
.ag.ag-js .ag-wvs.is-in .ag-blocks li:nth-child(6) { animation-delay: .3s; }
.ag .ag-illus { max-width: 72ch; margin: 16px auto 0; text-align: center; font-size: 13px; line-height: 1.55; color: var(--ag-muted); text-wrap: balance; }

/* ── 6 · Frameworks ─────────────────────────────────────────────────────────────────────────── */
.ag .ag-note { margin-top: 28px; text-align: center; font-size: 14.5px; color: var(--ag-muted); text-wrap: balance; }
.ag .ag-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 30px; }
.ag .ag-legend div { display: flex; align-items: center; gap: 10px; }
.ag .ag-legend dd { font-size: 13.5px; color: var(--ag-muted); }
@media (max-width: 639px) { .ag .ag-legend div { flex-direction: column; gap: 6px; text-align: center; } }
.ag .ag-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: clamp(32px, 4vw, 44px); }
@media (min-width: 640px) { .ag .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ag .ag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ag .ag-card { display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 18px; background: var(--ag-panel); border: 1px solid var(--ag-line);
  border-radius: var(--ag-r); box-shadow: var(--ag-card-shadow); transition: translate .25s var(--ag-ease), border-color .25s; }
.ag .ag-card:hover { translate: 0 -3px; border-color: rgb(var(--ag-acc-rgb) / .45); }
.ag .ag-card:hover .ag-glyph { border-color: rgb(var(--ag-acc-rgb) / .6); color: var(--ag-acc); }
.ag .ag-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ag .ag-card h3 { margin-top: 18px; font-size: 1.2rem; }
.ag .ag-card-d { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ag-mid); }
.ag .ag-card > .ag-link { margin-top: auto; padding-top: 18px; }
.ag .ag-card-own { border-color: rgb(var(--ag-ok-rgb) / .3); }
.ag .ag-glyph { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--ag-line3); border-radius: 9px; background: var(--ag-well);
  font-family: var(--ag-mono); font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--ag-ink); transition: border-color .3s, color .3s; }
.ag .ag-glyph-code { font-size: 14px; letter-spacing: .02em; }
.ag .ag-tag-api { color: var(--ag-acc); border-color: rgb(var(--ag-acc-rgb) / .5); background: rgb(var(--ag-acc-rgb) / .07); }
.ag .ag-tag-own { color: var(--ag-ok); border-color: rgb(var(--ag-ok-rgb) / .5); background: rgb(var(--ag-ok-rgb) / .07); }

/* ── 7 · Connect in three steps ─────────────────────────────────────────────────────────────── */
.ag .ag-steps { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ag .ag-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.ag .ag-step { position: relative; display: flex; flex-direction: column; padding: 26px 24px; background: var(--ag-panel); border: 1px solid var(--ag-line);
  border-radius: var(--ag-r); box-shadow: var(--ag-card-shadow); }
.ag .ag-step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(var(--ag-acc-rgb) / .55); border-radius: var(--ag-r-sm);
  background: rgb(var(--ag-acc-rgb) / .07); font-family: var(--ag-mono); font-size: 13px; font-weight: 700; color: var(--ag-acc); }
.ag .ag-step h3 { margin-top: 20px; font-size: 1.2rem; }
.ag .ag-step > p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ag-mid); }
@media (min-width: 900px) {
  .ag .ag-step:not(:last-child)::after { content: "\2192"; position: absolute; top: 46px; left: 100%; z-index: 1; display: grid; place-items: center;
    width: 28px; height: 28px; margin-left: 14px; transform: translate(-50%, -50%); border: 1px solid var(--ag-line2); border-radius: 50%; background: var(--ag-band);
    font-family: var(--ag-mono); font-size: 13px; font-weight: 700; color: var(--ag-acc); }
  .ag .ag-sec:not(.ag-band) .ag-step:not(:last-child)::after { background: var(--ag-panel); }
}
.ag .ag-ep { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 10px 9px 12px; border: 1px solid var(--ag-line2); border-radius: var(--ag-r-sm); background: var(--ag-well); }
.ag .ag-ep-v { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--ag-mono); font-size: 13px; color: var(--ag-ink); }
.ag .ag-copy { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 1px solid var(--ag-line2); border-radius: 6px;
  background: var(--ag-panel); color: var(--ag-muted); cursor: pointer; transition: color .2s, border-color .2s; }
.ag .ag-copy svg { width: 15px; height: 15px; stroke-width: 2; }
.ag .ag-copy:hover { color: var(--ag-acc); border-color: var(--ag-acc); }
.ag .ag-copy.is-done { color: var(--ag-ok); border-color: rgb(var(--ag-ok-rgb) / .6); }
.ag .ag-flow { display: flex; flex-direction: column; align-items: center; margin-top: clamp(32px, 4vw, 48px); }
.ag .ag-flow-n { padding: 11px 18px; border: 1px solid var(--ag-line2); border-radius: var(--ag-r-sm); background: var(--ag-panel2); font-family: var(--ag-mono); font-size: 12px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-ink); white-space: nowrap; }
.ag .ag-flow-hub { color: var(--ag-acc); border-color: rgb(var(--ag-acc-rgb) / .6); box-shadow: 0 0 0 3px rgb(var(--ag-acc-rgb) / .08); }
.ag .ag-flow-c { position: relative; width: 2px; height: 30px; background: repeating-linear-gradient(180deg, rgb(var(--ag-acc-rgb) / .85) 0 5px, transparent 5px 10px); }
.ag .ag-flow-c::after { content: ""; position: absolute; left: 50%; bottom: -1px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0;
  border-top: 7px solid rgb(var(--ag-acc-rgb) / .9); }
@media (min-width: 640px) {
  .ag .ag-flow { flex-direction: row; justify-content: center; }
  .ag .ag-flow-c { width: clamp(40px, 8vw, 110px); height: 2px; margin-right: 6px; background: repeating-linear-gradient(90deg, rgb(var(--ag-acc-rgb) / .85) 0 6px, transparent 6px 11px); }
  .ag .ag-flow-c::after { left: auto; right: -6px; top: 50%; bottom: auto; margin: -5px 0 0; border: 5px solid transparent; border-right: 0; border-left: 7px solid rgb(var(--ag-acc-rgb) / .9); }
}
.ag.ag-js .is-live .ag-flow-c { animation: ag-dn .6s linear infinite; }
@media (min-width: 640px) { .ag.ag-js .is-live .ag-flow-c { animation-name: ag-rt; } }

/* ── 8 · Final call to action ───────────────────────────────────────────────────────────────── */
.ag .ag-final { padding-top: 0; }
.ag .ag-final-p { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 84px) clamp(18px, 4vw, 56px); text-align: center; background: var(--ag-panel);
  border: 1px solid var(--ag-line); border-radius: var(--ag-r-win); box-shadow: var(--ag-shadow); }
.ag .ag-final-p::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgb(var(--ag-acc-rgb) / .1), transparent 72%); }
.ag .ag-final-p > * { position: relative; }
.ag .ag-final-p h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.04; }
.ag .ag-final-p .ag-lede { margin-inline: auto; }
.ag .ag-tagline { margin-top: 32px; font-family: var(--ag-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-muted); text-wrap: balance; }

/* ── Theme shapes ───────────────────────────────────────────────────────────────────────────── */
/* Telemetry's bracketed mono eyebrows become the site's LED pills in Night and Day, and Cloud's
   spaced grey caps; headline accents take each theme's treatment. Colours are all tokens above. */
html:not([data-final="telemetry"]) .ag .ag-eyebrow { align-items: center; padding: 5px 13px; border: 1px solid rgb(var(--ag-acc-rgb) / .3);
  border-radius: 999px; background: rgb(var(--ag-acc-rgb) / .07); font-family: var(--ag-sans); font-size: 12px; letter-spacing: .1em; }
html:not([data-final="telemetry"]) .ag .ag-eyebrow::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
html:not([data-final="telemetry"]) .ag .ag-eyebrow::after { content: none; }
html:not([data-final="telemetry"]) .ag :is(.ag-headline, h2, .ag-big) .ag-acc { background: var(--ag-head-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

html[data-final="cloud"] .ag .ag-eyebrow { padding: 0; border: 0; border-radius: 0; background: none; font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; color: var(--ag-muted); }
html[data-final="cloud"] .ag .ag-eyebrow::before { content: none; }
html[data-final="cloud"] .ag :is(.ag-headline, h2) { font-weight: 650; letter-spacing: -.04em; }
html[data-final="cloud"] .ag :is(.ag-headline, h2, .ag-big) .ag-acc { background: none; -webkit-text-fill-color: currentColor; color: var(--ag-head-ink); }
html[data-final="cloud"] .ag :is(.ag-panel, .ag-card, .ag-use, .ag-step, .ag-cmp-p, .ag-prob, .ag-cap, .ag-wv, .ag-final-p) { border-color: rgb(24 27 38 / .045); }
html[data-final="cloud"][data-cloud="dark"] .ag :is(.ag-panel, .ag-card, .ag-use, .ag-step, .ag-cmp-p, .ag-prob, .ag-cap, .ag-wv, .ag-final-p) { border-color: rgb(255 255 255 / .06); }
html[data-final="cloud"] .ag .ag-band { border-color: transparent; }
html[data-final="cloud"] .ag .ag-btn { transition: transform .25s var(--ag-ease), box-shadow .25s var(--ag-ease), background-color .25s; }
html[data-final="cloud"] .ag .ag-btn-p:hover { transform: translateY(-3px); box-shadow: 0 21px 42px rgb(10 132 255 / .28); }
html[data-final="cloud"] .ag .ag-btn-s { border-color: var(--ag-line); box-shadow: var(--ag-card-shadow); }
html[data-final="cloud"] .ag .ag-btn-s:hover { transform: translateY(-3px); color: var(--ag-ink); border-color: var(--ag-line2); }
html[data-final="cloud"] .ag :is(.ag-card, .ag-use):hover { translate: 0 -4px; border-color: rgb(var(--ag-acc-rgb) / .25); }
@media (prefers-reduced-motion: reduce) {
  html[data-final="cloud"] .ag .ag-btn:hover { transform: none; }
  html[data-final="cloud"] .ag :is(.ag-card, .ag-use):hover { translate: none; }
}

/* ── Motion ─────────────────────────────────────────────────────────────────────────────────── */
@keyframes ag-led { 0% { box-shadow: 0 0 0 0 rgb(var(--ag-ok-rgb) / .55); } 100% { box-shadow: 0 0 0 7px rgb(var(--ag-ok-rgb) / 0); } }
@keyframes ag-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ag-dash { to { stroke-dashoffset: -12; } }
@keyframes ag-dn { to { background-position: 0 10px; } }
@keyframes ag-rt { to { background-position: 11px 0; } }
@keyframes ag-rot { to { transform: rotate(360deg); } }
@keyframes ag-scan { 0%, 100% { transform: translate(-12px, -10px); } 50% { transform: translate(0, 2px); } }
@keyframes ag-type { 0% { transform: scaleX(0); } 30%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes ag-blink { 50% { opacity: 0; } }
@keyframes ag-bob { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-2.5px); } }
@keyframes ag-grow { 0% { transform: scaleY(.2); } 35%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.2); } }
@keyframes ag-trend { 0% { stroke-dashoffset: 40; } 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 40; } }
@keyframes ag-hop { 0%, 8% { transform: none; } 30%, 38% { transform: translate(-14px, 26px); } 62%, 70% { transform: translate(14px, 26px); } 92%, 100% { transform: none; } }
@keyframes ag-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes ag-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ag.ag-js .ag-hv .ag-engine-led { animation: ag-led 2.2s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .ag *, .ag *::before, .ag *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* SEO (2026-10-20): the hero's eyebrow is the page's <h1>, carrying the search phrase; the big display headline under
   it is p.ag-headline (the rules above that styled "h1" now style it). The eyebrow keeps its own look: these undo what
   final-type.css gives every h1 (the display face) and keep a wrapped eyebrow readable. */
.ag h1.ag-eyebrow { font-family: var(--ag-mono); line-height: 1.5; text-wrap: balance; }
/* Telemetry brackets the eyebrow: as a block, a long one wraps with its brackets beside the words instead of at the edges. */
html[data-final="telemetry"] .ag h1.ag-eyebrow { display: block; }
html[data-final="telemetry"] .ag h1.ag-eyebrow::before { margin-right: 8px; }
html[data-final="telemetry"] .ag h1.ag-eyebrow::after { margin-left: 8px; }
