/* API & Integration page.

   Built from the site's own classes: page-hero, api-console, section,
   section-subtle, section-head, grid-2/3, plain-card, step-list, final-cta.
   This file holds only what those don't cover: the two panes inside the
   hero console, the numbered stage cards and the refusal rows. Colours come from the site's tokens. */

/* ------------------------------------------------ the console in the hero
   api-console is built for code; here each pane is a short list of what
   travels, so the words stay readable at any width. */
.api-console-bar .ag-tag {
  margin-left: auto; padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.14);
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.55);
}
.ag-pane { padding: 22px 24px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.ag-pane:last-child { border-bottom: none; }
@media (min-width: 1024px) {
  .ag-pane { border-bottom: none; }
  .ag-pane:first-child { border-right: 1px solid rgb(255 255 255 / 0.1); }
}
.ag-h {
  margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #b491ee;
}
.ag-kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.ag-kv dt { font-size: 13px; color: rgb(255 255 255 / 0.5); }
.ag-kv dd { margin: 0; font-size: 13.5px; font-weight: 500; color: #e9e2f5; min-width: 0; overflow-wrap: anywhere; }
.ag-foot {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed rgb(255 255 255 / 0.12);
  font-size: 12.5px; line-height: 1.5; color: rgb(255 255 255 / 0.55);
}

/* ---------------------------------------------------- the six stage cards */
ol.ag-steps { list-style: none; margin: 0; padding: 0; }
.ag-steps > li { position: relative; }
.ag-steps > li p { margin: 0; }
.ag-n {
  position: absolute; top: 22px; right: 24px;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; color: rgb(var(--text-muted) / 0.7);
}
.ag-steps a { color: rgb(var(--brand-violet)); font-weight: 600; }
.ag-steps a:hover { text-decoration: underline; }

/* ------------------------------------------------------- refused calls */
.ag-refuse {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid rgb(var(--card-border) / 0.1); border-radius: var(--radius-xl);
  background: rgb(var(--card)); overflow: hidden;
}
.ag-refuse li {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: 16px 22px; border-top: 1px solid rgb(var(--card-border) / 0.08);
}
.ag-refuse li:first-child { border-top: none; }
.ag-refuse b { font-size: 15px; font-weight: 600; color: rgb(var(--text)); }
.ag-refuse span { font-size: 14px; line-height: 1.5; color: rgb(var(--text-secondary)); }
@media (min-width: 720px) {
  .ag-refuse li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; }
}
