/* AEO page layer. demo.css is an unchanged copy of ../public/styles.css (tokens, fonts, nav, the
   bento report and source dots). This file adds the page layout: centered hero with the ask box,
   agent cards, example-run tabs, the request/response panel, numbered rows, tables. Evan's rules:
   white page, black buttons, no coloured fills, square-ish corners, one font, small dense type. */
body { background: #fff; overflow-x: clip; }
.wrap { max-width: 1200px; }
[data-hide] { display: none !important; }
.a-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-dark { background: var(--black); color: #fff !important; }
.btn-dark:hover { background: #26282d; }
.a-btn { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 6px; }
.a-link { color: var(--black); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9ccd2; }
.a-link:hover { text-decoration-color: var(--black); }
.muted { color: var(--muted); }
.a-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.a-center { justify-content: center; }

/* hero: left-aligned copy, right column kept empty for an asset */
.a-hero { padding: 56px 0 52px; border-bottom: 1px solid var(--hairline); }
/* On desktop the hero fills the first screen, so only the "Request and response" heading peeks in below it
   (64px nav + 90px for the next section's top padding and heading). */
@media (min-width: 721px) {
  .a-hero { min-height: calc(100svh - 64px - 90px); display: flex; flex-direction: column; justify-content: center; }
}
.a-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.a-hero-asset { min-height: 1px; }
.a-hero h1 { font: 500 clamp(32px, 4.6vw, 54px)/1.05 var(--display); letter-spacing: -0.03em; color: var(--black); margin: 0 0 16px; text-wrap: balance; }
.a-lede { font-size: 15.5px; line-height: 1.6; color: var(--body); margin: 0; text-wrap: pretty; }

/* demo button, under the hero description */
.a-hero-cta { margin-top: 28px; }
/* Demo button: white label, black outline, arrow. */
.a-cta { display: inline-flex; align-items: stretch; height: 44px; border: 1px solid var(--black); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--black); font: 500 15px/1 var(--display); letter-spacing: -0.01em; transition: box-shadow .2s ease; }
.a-cta-label { display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #fff; transition: background .15s ease; }
.a-cta-label svg { width: 15px; height: 15px; transition: transform .2s ease; }
.a-cta:hover { box-shadow: 0 8px 22px rgba(15,17,21,.10); }
.a-cta:hover .a-cta-label { background: #FAFAFB; }
.a-cta:hover .a-cta-label svg { transform: translateX(3px); }
.a-cta:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

/* sections and numbered rows */
.a-sec { padding: 56px 0; border-bottom: 1px solid var(--hairline); }
.a-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.a-row-k .a-n, .a-sec-head .a-n { display: block; font: 500 12.5px/1 var(--sans); color: var(--muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.a-row-k h2, .a-sec-head h2, .a-grid-head h2 { font: 500 26px/1.15 var(--display); letter-spacing: -0.02em; color: var(--black); margin: 0; }
.a-row-k p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.a-sec-head { margin-bottom: 22px; }
.a-sec-head p, .a-grid-head p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--body); max-width: 720px; }
#api .a-sec-head p { max-width: 980px; }
.a-connect h3, .a-h3, .a-bench h3 { font: 500 16px/1.3 var(--display); color: var(--black); margin: 0 0 10px; }

/* agent cards */
.a-grid-head { margin-bottom: 22px; }
.a-grid-head h2 span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.a-grid-head h2 .shimmer { margin-left: 0; font-weight: inherit; }
.a-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.a-card { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: 8px; padding: 18px 18px 12px; background: #fff; transition: border-color .15s; }
.a-card:hover { border-color: #cfd1d6; }
.a-card-top { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--black); }
.a-card-top h3 { flex: 1; min-width: 0; margin: 0; font: 500 16px/1.3 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-card-top > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.a-icons { display: flex; flex: none; }
.a-icons img { width: 26px; height: 26px; padding: 3px; border-radius: 50%; border: 1px solid var(--hairline); background: #fff; }
.a-icons img + img { margin-left: -8px; }
.a-card p { margin: 12px 0 14px; font-size: 14px; line-height: 1.55; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #F1F2F4; }
.a-card-foot > span { flex: 1; font-size: 13px; color: var(--muted); }
.a-card-foot > .a-tag { flex: 0 0 auto; margin-right: auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 5px; background: #F4F5F7; color: var(--body); }
.a-tag svg { width: 16px; height: 16px; }
.a-open { padding: 6px 12px; border-radius: 5px; background: #F1F2F4; font: 500 13.5px/1 var(--sans); color: var(--black); text-decoration: none; }
.a-open:hover { background: var(--black); color: #fff; }
.a-linkbtn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: 5px; color: var(--muted); cursor: pointer; }
.a-linkbtn:hover { color: var(--black); background: #F4F5F7; }
.a-linkbtn svg { width: 17px; height: 17px; }

/* example tabs */
.a-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding: 2px; }
.a-tabs::-webkit-scrollbar { display: none; }
.a-tab { flex: 1 0 auto; min-width: 170px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 6px; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.a-tab img { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.a-tab span { display: flex; flex-direction: column; line-height: 1.25; }
.a-tab b { font: 500 14.5px/1.25 var(--display); color: var(--black); }
.a-tab em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.a-tab:hover { border-color: #cfd1d6; }
.a-tab[aria-selected="true"] { border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.a-tab:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
html:not(.js) .a-tab[aria-selected="true"] { box-shadow: none; border-color: var(--hairline); }
html:not(.js) .a-ex + .a-ex { margin-top: 48px; }
.a-ex { border: 1px solid var(--hairline); border-radius: 6px; }
.a-ex-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.a-ex-logo { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--hairline); padding: 4px; background: #fff; }
.a-ex-head > div { flex: 1 1 260px; min-width: 0; }
.a-ex-head h3 { font: 500 19px/1.25 var(--display); color: var(--black); margin: 0; letter-spacing: -0.01em; }
.a-ex-head h3 + p { margin: 2px 0 0; font-size: 14px; color: var(--body); }
.a-asof { margin: 0; font-size: 12.5px; color: var(--muted); }
.a-ex > .a-row { padding: 20px; border-bottom: 1px solid var(--hairline); grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
.a-ex > .a-row:last-child { border-bottom: 0; }
.a-ex .a-row-k .a-n { font: 500 15px/1.2 var(--display); color: var(--black); margin: 0; }
.a-prompt { border: 1px solid var(--hairline); border-radius: 6px; padding: 14px 16px; }
.a-prompt-q { margin: 0; font: 500 17px/1.4 var(--display); color: var(--black); }
.a-prompt-sub { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.a-prompt-sub a { color: var(--body); }
.a-inputs { margin-top: 10px; font-size: 13px; }
.a-inputs summary, .a-faq summary { cursor: pointer; list-style: none; }
.a-inputs summary::-webkit-details-marker, .a-faq summary::-webkit-details-marker { display: none; }
.a-inputs summary { color: var(--black); font-weight: 500; padding: 6px 0; display: inline-flex; gap: 8px; align-items: center; }
.a-inputs summary::before { content: "+"; width: 16px; height: 16px; display: inline-grid; place-items: center; border: 1px solid var(--hairline); border-radius: 3px; font-size: 12px; line-height: 1; }
.a-inputs[open] summary::before { content: "–"; }
.a-inputs ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.a-inputs li b { font-weight: 600; color: var(--black); }
.a-inputs li p { margin: 2px 0 0; color: var(--body); line-height: 1.5; }
.a-eff { font-size: 12px; color: var(--muted); margin-left: 6px; }
.a-out .bento { margin: 0; }
.a-out .b-k { margin-top: 0; }
.a-out h4.b-k { font-weight: 600; }
.a-out .b-cases h5 { margin: 0 0 6px; }

/* checks (counterparty screening) */
.a-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 28px; }
.a-check { min-width: 0; }
.a-check b { display: block; margin-bottom: 4px; font: 600 13.5px/1.3 var(--sans); color: var(--black); }
.a-check .score-note { display: block; font-size: 13px; line-height: 1.55; color: var(--ink); }

/* request / response */
.a-rr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.a-rr-col { min-width: 0; }
.a-rr-k { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font: 500 14px/1 var(--sans); color: var(--black); }
/* Step circles: a full metallic gold ring (bronze, polished gold and glints all the way round) */
.a-step { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 1.2px solid transparent; border-radius: 50%; font: 500 13px/1 var(--sans); color: var(--black); font-variant-numeric: tabular-nums;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from 200deg, #5E450C, #9C7A22, #E6C766, #A57F24, #D9B652, #8A6A1C, #C9A23A, #E6C766, #9C7A22, #5E450C) border-box;
  box-shadow: 0 4px 14px rgba(122,92,18,.10); }
.a-reset { margin-left: auto; border: 0; background: none; font-size: 13px; color: var(--muted); cursor: pointer; }
.a-reset:hover { color: var(--black); }
.a-rr-card { border: 1px solid var(--hairline); border-radius: 8px; background: #fff; }
.a-field { padding: 14px 16px 0; }
.a-field label { display: block; margin-bottom: 6px; font: 500 13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--black); }
.a-field label em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.a-req { margin-left: 2px; font-weight: 600; color: var(--black); }
.a-field select, .a-field textarea, .a-field input { width: 100%; border: 1px solid var(--hairline); border-radius: 6px; background: #fff; font: 400 14px/1.45 var(--sans); color: var(--black); padding: 9px 10px; }
.a-field select, .a-field input { height: 40px; }
.a-field input:focus, .a-field textarea:focus { outline: none; border-color: var(--black); }
.a-field textarea { resize: vertical; background: #FAFAFB; color: var(--ink); font-size: 13.5px; }
.a-field p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.a-rr-run { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-top: 1px solid var(--hairline); }
.a-run { height: 40px; padding: 0 18px; border-radius: 6px; font-size: 14px; gap: 8px; display: inline-flex; align-items: center; }
.a-run svg { width: 13px; height: 13px; }
/* Run in brand yellow with black text */
.a-run.btn-dark { background: var(--yellow); color: var(--black) !important; border-color: transparent; border-radius: 8px; font-weight: 700; }
.a-run.btn-dark:hover { background: var(--yellow-light); }
.a-rr-run span { font-size: 13.5px; color: var(--body); }
.a-rr-codehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; font-size: 13.5px; color: var(--black); }
.a-rr-codehead em { font-style: normal; color: var(--muted); margin-left: 6px; }
.a-code-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--hairline); border-radius: 6px; background: #fff; overflow-x: auto; }
.a-code-tabs button { border: 0; background: none; font-size: 13px; padding: 5px 10px; border-radius: 4px; color: var(--body); white-space: nowrap; cursor: pointer; }
.a-code-tabs button[aria-selected="true"] { background: #F1F2F4; color: var(--black); font-weight: 500; }
.a-rr-code { position: relative; }
.a-pre-sm, .a-pre, .a-json { margin: 0; background: #F6F7F9; border: 1px solid var(--hairline); border-radius: 6px; padding: 10px 12px; font: 400 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); overflow-x: auto; white-space: pre; }
.a-pre-sm { white-space: pre-wrap; word-break: break-all; }
.a-rr-code .a-pre { padding: 14px 44px 14px 16px; white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow: auto; }
.a-copyico { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 5px; background: none; color: var(--muted); cursor: pointer; flex: none; }
.a-copyico:hover { color: var(--black); background: #EDEEF1; }
.a-copyico svg { width: 16px; height: 16px; }
.a-rr-code .a-copyico { position: absolute; top: 8px; right: 8px; }
.a-rr-note { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--hairline); }
.a-rr-note p { flex: 1; margin: 0; font-size: 13px; line-height: 1.45; color: var(--body); }
.a-json { border: 0; border-radius: 0 0 8px 8px; background: #fff; padding: 14px 16px; max-height: 860px; overflow: auto; white-space: pre-wrap; word-break: break-word; transition: opacity .15s; }
.a-json.is-stale { opacity: .4; }
/* JSON keys in brand purple */
.j-k { color: #6665EC; }
.j-s { color: var(--black); }
.j-l { color: var(--muted); }

/* benchmark (placeholder chart from the demo page) */
.a-bench { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px 48px; align-items: center; }
.a-bench p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.a-gh { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--black); text-decoration: none; }
.a-gh:hover { border-color: var(--black); }
.a-gh svg { width: 16px; height: 16px; }
.a-bench-chart { width: 100%; height: auto; display: block; }

/* how it works */
.a-steps { margin: 0 0 28px; padding-left: 20px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink); max-width: 780px; }
.a-steps b { color: var(--black); font-weight: 600; }
.a-note { margin: 0 0 12px; font-size: 13.5px; color: var(--body); max-width: 780px; }
.a-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 6px; }
.a-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.a-table th, .a-table td { text-align: left; padding: 10px 14px; border-top: 1px solid #F1F2F4; white-space: nowrap; }
.a-table thead th { border-top: 0; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.a-table tbody th { font-weight: 500; color: var(--black); }
.a-table td { color: var(--ink); font-variant-numeric: tabular-nums; }

/* integrate */
.a-int-lede { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--body); max-width: 640px; }
.a-onboard { margin: 0; }
.a-connect { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.a-connect p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--body); }
.a-connect a { color: var(--black); }
.a-connect b { color: var(--black); font-weight: 600; }
.a-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.a-stack a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 4px; font-size: 13px; color: var(--ink); text-decoration: none; }
.a-stack a:hover { border-color: var(--black); color: var(--black); }
.a-stack img { width: 14px; height: 14px; object-fit: contain; }
.a-stack img[src$=".png"] { filter: grayscale(1); }

/* faq: collapsed by default */
.a-faq details { border-top: 1px solid var(--hairline); }
.a-faq details:first-child { border-top: 0; }
.a-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.a-faq summary::after { content: "+"; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--hairline); border-radius: 4px; font-size: 15px; line-height: 1; color: var(--body); }
.a-faq details[open] summary::after { content: "–"; }
.a-faq summary:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9ccd2; }
.a-faq h3 { font: 500 16.5px/1.35 var(--display); color: var(--black); margin: 0; }
.a-faq details:first-child summary { padding-top: 0; }
.a-faq p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--body); max-width: 760px; }

/* related, end */
.a-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.a-related a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 6px; text-decoration: none; transition: border-color .15s; }
.a-related a:hover { border-color: var(--black); }
.a-related b { font: 500 15px/1.3 var(--display); color: var(--black); }
.a-related span { font-size: 13px; line-height: 1.5; color: var(--body); }
.a-end { padding: 64px 0 72px; text-align: center; }
.a-end h2 { font: 500 clamp(26px, 3.4vw, 36px)/1.1 var(--display); letter-spacing: -0.02em; color: var(--black); margin: 0 0 30px; }
.a-end p { margin: 0 0 22px; color: var(--body); font-size: 15px; }
.a-agent-note { margin: 18px 0 0 !important; font-size: 13px !important; color: var(--muted) !important; }
.a-agent-note a { color: var(--body); }

@media (max-width: 1000px) {
  .a-row, .a-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .a-hero-asset { display: none; }
  .a-ex > .a-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .a-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-rr, .a-bench { grid-template-columns: minmax(0, 1fr); }
  .a-related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .a-cta { width: 100%; font-size: 15px; }
    .a-cta-label { flex: 1; min-width: 0; justify-content: space-between; padding: 0 16px; }
  .a-hero { padding: 32px 0 36px; }
  .a-lede { font-size: 14.5px; text-align: left; }
  .a-actions { flex-direction: column; align-items: stretch; }
  .a-btn { width: 100%; }
  .a-tabs { margin-right: -16px; padding-right: 16px; }
  .a-tab { flex: none; min-width: 0; }
  .a-ex-head, .a-ex > .a-row { padding: 14px; }
  .a-sec { padding: 40px 0; }
  .a-out .bento > * { grid-column: span 12 !important; }
}

.a-row-v, .a-row-k { min-width: 0; }

/* ---------- request/response shell: title bar, "Open in…" menu, Try it / Agent / Docs views ---------- */
.a-rr-shell { border: 1px solid var(--hairline); border-radius: 12px; background: #FFFFFF; }
.a-rr-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.a-rr-actions { display: flex; align-items: center; gap: 10px; }
.a-oi { position: relative; }
.a-oi-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 9px; border: 0; border-radius: 8px; background: #F4F4F6; color: var(--muted); cursor: pointer; }
.a-oi-btn:hover { background: #EDEDF0; }
.a-oi-btn img { width: 20px; height: 20px; border-radius: 50%; }
.a-oi-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.a-oi[data-state="open"] .a-oi-btn svg { transform: rotate(180deg); }
.a-oi-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 260px; padding: 8px; background: #fff; border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow-panel); display: none; }
.a-oi[data-state="open"] .a-oi-menu { display: block; }
.a-oi-menu p { margin: 6px 10px 6px; font-size: 13.5px; color: var(--muted); }
.a-oi-menu a, .a-oi-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; font: 400 14px/1.2 var(--sans); color: var(--black); text-decoration: none; text-align: left; cursor: pointer; }
.a-oi-menu a:hover, .a-oi-menu button:hover { background: #FAFAFB; }
.a-oi-menu img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.a-oi-menu a span, .a-oi-menu button span { flex: 1; }
.a-oi-menu a svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.a-oi-menu button svg { width: 20px; height: 20px; flex: none; }
.a-oi-menu hr { border: 0; border-top: 1px solid var(--hairline); margin: 6px 4px; }
.a-seg { display: flex; gap: 2px; padding: 3px; background: #F4F4F6; border-radius: 8px; }
.a-seg button, .a-seg a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: none; font: 500 13px/1 var(--sans); color: var(--muted); text-decoration: none; cursor: pointer; }
.a-seg button:hover, .a-seg a:hover { color: var(--black); }
.a-seg [aria-selected="true"] { background: #fff; color: var(--black); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.a-seg svg { width: 12px; height: 12px; }
.a-seg [aria-selected="true"] svg { color: var(--purple); }
.a-rr-view { padding: 22px 20px 24px; }
.a-rr-view[data-viewpanel="agent"] { padding: 0; }

/* Try it: grey cards with white inputs, mono labels, a bigger Run row */
.a-rr-k { font: 400 13px/1 var(--mono); color: var(--muted); }
.a-reset { font-family: var(--mono); }
.a-rr-card { background: #FAFAFB; border: 1px solid #F0F0F3; border-radius: 8px; }
.a-field { padding: 16px 16px 0; }
.a-field label { margin-bottom: 7px; font: 500 12.5px/1.3 var(--mono); }
.a-req { display: inline-block; margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: var(--lavender-pale); color: var(--purple-deep); font: 500 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.a-field select, .a-field textarea, .a-field input { background: #fff; border: 1px solid #ECECEF; border-radius: 6px; padding: 9px 12px; font-size: 14px; color: var(--black); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.a-field select, .a-field input { height: 40px; }
.a-field input:focus, .a-field textarea:focus { outline: none; border-color: var(--black); }
.a-field textarea { background: #fff; font-size: 14px; }
.a-rr-run { margin-top: 18px; padding: 14px 16px; border-top: 1px solid #ECECEF; }
.a-run { height: 40px; padding: 0 24px; font-size: 14px; }
.a-run svg { width: 12px; height: 12px; }
.a-kbd { margin-left: auto; display: inline-flex; gap: 4px; }
.a-rr-run .a-kbd kbd { min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px; border: 1px solid #E1E1E5; border-radius: 4px; background: #fff; font: 400 11px/1 var(--mono); color: var(--muted); }
.a-rr-codehead { margin: 24px 0 10px; font: 400 13px/1 var(--mono); color: var(--body); }
.a-code-tabs { padding: 3px; border: 0; border-radius: 8px; background: #F4F4F6; }
.a-code-tabs button { padding: 6px 10px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.a-code-tabs button[aria-selected="true"] { background: #fff; color: var(--black); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.a-rr-code .a-pre { background: #FAFAFB; border: 1px solid #F0F0F3; border-radius: 8px; padding: 16px 44px 16px 18px; font: 500 12.5px/1.7 var(--mono); color: var(--black); }
.a-rr-code .a-copyico { top: 12px; right: 12px; }
.a-rr-out { background: #FAFAFB; border-color: #F0F0F3; border-radius: 8px; }
.a-rr-note { padding: 14px 14px 14px 20px; border-bottom: 1px solid #ECECEF; }
.a-rr-note p { font-size: 13.5px; color: var(--muted); }
.a-json { background: #fff; padding: 16px 18px; border-radius: 0 0 8px 8px; font: 500 12.5px/1.7 var(--mono); color: var(--black); max-height: 900px; }

/* syntax colour: values and keywords in brand purple, structure faded */
.j-k { color: var(--black); }
.j-s, .j-n, .j-l { color: var(--purple); }
.j-p { color: #B3B6BD; }
.c-k, .c-s, .c-f, .c-v, .c-n { color: var(--purple); }
.c-p { color: #A9ACB4; }
.c-c { color: #9AA0A8; font-style: italic; }

/* Agent view: the markdown file an AI agent reads */
.a-agent-intro { margin: 0; padding: 18px 22px; border-bottom: 1px solid var(--hairline); background: #fff; font-size: 14px; line-height: 1.6; color: var(--body); }
.a-agent-intro a { color: var(--purple); }
.a-agent-crumb { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 22px; border-bottom: 1px solid var(--hairline); background: #FAFAFB; font-size: 14px; color: var(--muted); }
.a-agent-crumb b { font-weight: 500; color: var(--black); }
.a-agent-crumb .sep { color: #C5C7CC; }
.a-agent-crumb .a-copyico { margin-left: auto; }
.a-md { margin: 0; padding: 18px 22px 24px; max-height: 720px; overflow: auto; border-radius: 0 0 12px 12px; background: #fff; white-space: pre-wrap; word-break: break-word; font: 500 12.5px/1.7 var(--mono); color: var(--ink); }
.m-k, .m-h, .m-a, .m-c { color: var(--purple); }
.m-h { font-weight: 500; }
.m-v { color: #2B2AA8; }
.m-f { color: #B3B6BD; }
.m-a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(102,101,236,.4); }

@media (max-width: 720px) {
  .a-rr-bar { padding: 12px; }
    .a-rr-actions { width: 100%; justify-content: flex-end; }
  .a-rr-view { padding: 16px 12px 18px; }
  .a-kbd { display: none; }
  .a-oi-menu { right: auto; left: 0; }
}

/* "Want to run a real example?" under the example runs */
.a-ex-more { margin: 28px 0 0; font-size: 15px; color: var(--body); }
.a-ex-more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.a-ex-more svg { width: 15px; height: 15px; }

/* "Try now": bold label and a gold stroke, between the bright and the faint versions */
.a-cta { font-weight: 700; border: 1.2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(122,92,18,.85) 0%, #C9A23A 14%, rgba(222,190,90,.9) 26%, rgba(190,156,58,.5) 42%, rgba(190,156,58,.18) 58%, rgba(190,156,58,0) 72%) border-box,
    linear-gradient(#E3E3E6, #E3E3E6) border-box;
  box-shadow: 0 3px 12px rgba(122,92,18,.09); }
.a-cta:hover { box-shadow: 0 6px 18px rgba(122,92,18,.14); }

/* ---------- hero animation: the due diligence demo page's halftone canvas (hero-anim.js) ---------- */
@media (min-width: 1001px) { .a-hero-asset { display: flex; justify-content: flex-end; } }
.hero-visual { width: 100%; max-width: 460px; height: 380px; }
.hero-visual canvas { display: block; width: 100%; height: 100%; }

/* ---------- Request / response panel, compact: the fields, the code and the start of the response fit in one view ---------- */
.a-rr-bar { padding: 10px 14px; }
.a-rr-view { padding: 16px 18px 18px; }
.a-rr { gap: 18px; }
.a-rr-k { margin-bottom: 8px; gap: 8px; font-size: 12.5px; }
.a-step { width: 26px; height: 26px; font-size: 12px; }
.a-field { padding: 12px 14px 0; }
.a-field label { margin-bottom: 5px; font-size: 12px; }
.a-field select, .a-field textarea, .a-field input { padding: 6px 10px; font-size: 13.5px; }
.a-field select, .a-field input { height: 34px; }
.a-field textarea { font-size: 13.5px; line-height: 1.45; }
.a-rr-run { margin-top: 12px; padding: 10px 14px; }
.a-run { height: 34px; padding: 0 18px; font-size: 13.5px; }
.a-rr-codehead { margin: 16px 0 8px; font-size: 12.5px; }
.a-code-tabs button { padding: 4px 9px; font-size: 12.5px; }
.a-rr-code .a-pre { padding: 12px 40px 12px 14px; font-size: 12px; line-height: 1.6; max-height: 300px; }
.a-rr-code .a-copyico { top: 8px; right: 8px; }
.a-rr-note { padding: 8px 10px 8px 16px; }
.a-rr-note p { font-size: 12.5px; }
.a-json { padding: 12px 14px; font-size: 12px; line-height: 1.6; max-height: 560px; }

/* company field: free text with a dropdown of the example companies that always lists all of them */
.a-combo { position: relative; }
.a-combo input { padding-right: 34px; }
.a-combo-btn { position: absolute; top: 1px; right: 1px; bottom: 1px; width: 32px; display: grid; place-items: center; border: 0; border-radius: 0 6px 6px 0; background: none; color: var(--black); cursor: pointer; }
.a-combo-list { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #ECECEF; border-radius: 8px; box-shadow: 0 8px 24px rgba(24,24,32,.08); }
.a-combo-list[hidden] { display: none; }
.a-combo-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 5px; font-size: 13.5px; color: var(--black); cursor: pointer; }
.a-combo-list li small { font: 400 11.5px/1 var(--mono); color: var(--muted); }
.a-combo-list li:hover, .a-combo-list li[aria-selected="true"] { background: #F4F4F6; }


/* ---------- Top of the page: yellow halftone dots in the top-right corner, shrinking away, over a soft lemon glow.
   Drawn behind the hero and up under the nav (64px), which stays see-through until the page scrolls. ---------- */
.a-hero { position: relative; isolation: isolate; }
.a-hero::before, .a-hero::after { content: ""; position: absolute; inset: -64px 0 0 0; z-index: -1; pointer-events: none; }
.a-hero::before { background: radial-gradient(45% 60% at 100% 0%, rgba(255,244,112,.35), rgba(255,244,112,0) 70%); }
.a-hero::after { background-image: radial-gradient(rgba(251,238,35,.95) 2.4px, transparent 2.8px); background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(70% 85% at 100% 0%, #000 0%, rgba(0,0,0,.5) 35%, transparent 70%);
          mask-image: radial-gradient(70% 85% at 100% 0%, #000 0%, rgba(0,0,0,.5) 35%, transparent 70%); }
.nav:not(.scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Request / response: code in the brand font (Roobert), Run button and step circles in brand purple ---------- */
.a-rr-code .a-pre, .a-json { font-family: var(--display); font-weight: 500; }
.a-rr-code .a-pre code, .a-json code { font: inherit; }  /* <code> otherwise falls back to the browser's monospace */
.a-step { background: #fff; border: 1.5px solid var(--purple); box-shadow: none; }
.a-run.btn-dark { background: var(--purple); color: #fff !important; }
.a-rr-run .a-run span { color: #fff; }
.a-run.btn-dark:hover { background: var(--purple-deep); }

/* ---------- Request / response depth: a lifted shell, a soft grey tray, white cards on it, recessed inputs ---------- */
.a-rr-shell { box-shadow: 0 1px 2px rgba(15,17,21,.02), 0 12px 32px -18px rgba(15,17,21,.07); }
.a-rr-view[data-viewpanel="try"], .a-rr-view:not([data-viewpanel]) { background: #FBFBFC; border-radius: 0 0 12px 12px; }
.a-rr-card, .a-rr-code .a-pre, .a-rr-out { background: #fff; border: 1px solid #EEEEF1; box-shadow: 0 1px 2px rgba(15,17,21,.02), 0 4px 10px -8px rgba(15,17,21,.05); }
.a-rr-note { background: #FCFCFD; border-radius: 8px 8px 0 0; }
.a-field select, .a-field textarea, .a-field input { background: #FBFBFC; border-color: #E6E6EA; box-shadow: inset 0 1px 1px rgba(15,17,21,.02); }
.a-field select:focus, .a-field textarea:focus, .a-field input:focus { background: #fff; border-color: var(--lavender); box-shadow: 0 0 0 3px var(--lavender-pale); outline: none; }
.a-run.btn-dark { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 3px 8px -4px rgba(102,101,236,.3); }

/* ---------- Breadcrumb above the headline: the category page on the main site, then this page ---------- */
.a-crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 13px/1.3 var(--sans); color: var(--muted); }
.a-crumbs a { color: var(--body); text-decoration: none; }
.a-crumbs a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.a-crumbs [aria-current] { color: var(--muted); }
