/* /self-hosted-ai-agents — page-only rules on top of ag-buyer-pages.css (linked last in <head>). Scoped to .sh-page. */

/* ----- hero: small labels never under 12px, 40px hit areas ----- */
.sh-page .ag-hero__bar-text, .sh-page .ag-hero__bar-link { font-size: max(12px, calc(14 * var(--u))); }
.sh-page .ag-win__url { font-size: max(12px, calc(10.69 * var(--u))); }
.sh-page .ag-hero__bar-link { position: relative; }
.sh-page .ag-hero__bar-link::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; bottom: -14px; }

/* ----- architecture diagram: managed control plane / your AWS account ----- */
.sh-page .sh-arch { display: grid; grid-template-columns: minmax(0, 4fr) 120px minmax(0, 7fr); align-items: stretch; gap: 0; max-width: 1080px; margin: 40px auto 0; }
.sh-page .sh-arch__box { border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sh-page .sh-arch__box--cp { background: #f4f4f8; border: 1px dashed #b9bccb; }
.sh-page .sh-arch__box--dp { background: #f3f1ff; border: 2px solid #5a55f0; }
.sh-page .sh-arch__label { font-family: "Roboto Mono", monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #5f6672; margin: 0; }
.sh-page .sh-arch__box--dp .sh-arch__label { color: #4338ca; }
.sh-page .sh-arch__name { font-size: 20px; line-height: 1.25; font-weight: 600; color: #0e0e10; margin: 0; }
.sh-page .sh-arch__note { font-size: 14px; line-height: 1.5; color: #4b5160; margin: 0; }
.sh-page .sh-arch__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sh-page .sh-arch__list li { background: #fff; border: 1px solid #e3e4ec; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: #1f2330; }
.sh-page .sh-arch__list li b { display: block; font-size: 15px; color: #0e0e10; }
.sh-page .sh-arch__vpc { border: 1px solid #c9c4ff; border-radius: 14px; padding: 14px; background: #fbfaff; display: grid; gap: 10px; }
.sh-page .sh-arch__vpc > p { margin: 0; font-family: "Roboto Mono", monospace; font-size: 12px; color: #4338ca; letter-spacing: .04em; }
.sh-page .sh-arch__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sh-page .sh-arch__grid li { background: #fff; border: 1px solid #ddd9ff; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: #1f2330; }
.sh-page .sh-arch__grid li b { display: block; font-size: 15px; color: #0e0e10; }
.sh-page .sh-arch__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; text-align: center; }
.sh-page .sh-arch__link span { font-size: 12px; line-height: 1.35; color: #4b5160; }
.sh-page .sh-arch__link i { display: block; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, #5a55f0 0 6px, transparent 6px 11px); position: relative; }
.sh-page .sh-arch__link i::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left-color: #5a55f0; border-right: 0; }
.sh-page .sh-arch__out { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: #1f2330; background: #fff; border: 1px solid #ddd9ff; border-radius: 10px; padding: 10px 12px; }
.sh-page .sh-honest { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1080px; margin: 28px auto 0; padding: 0; }
.sh-page .sh-honest li { background: #fff; border: 1px solid #e3e4ec; border-radius: 999px; padding: 8px 14px; font-size: 14px; line-height: 1.4; color: #1f2330; }
.sh-page .sh-honest li b { color: #4338ca; }
@media (max-width: 900px) {
  .sh-page .sh-arch { grid-template-columns: minmax(0, 1fr); }
  .sh-page .sh-arch__link { flex-direction: row; padding: 14px 0; }
  .sh-page .sh-arch__link i { width: 2px; height: 36px; background: repeating-linear-gradient(180deg, #5a55f0 0 6px, transparent 6px 11px); flex: none; }
  .sh-page .sh-arch__link i::after { right: auto; left: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top-color: #5a55f0; border-bottom: 0; }
}
@media (max-width: 520px) {
  .sh-page .sh-arch__grid { grid-template-columns: minmax(0, 1fr); }
  .sh-page .sh-arch__box { padding: 18px; }
}

/* inline links inside section subs */
.sh-page .bp-sub a, .sh-page .bp-split__copy p a { color: #5a55f0; text-decoration: underline; text-underline-offset: 2px; }

/* ----- pricing (plan-cards.css): labels at 12px, toggle buttons 40px tall, our row highlighted ----- */
.sh-page .ag-pricing .gtag, .sh-page .ag-pricing .save, .sh-page .ag-pricing .pill, .sh-page .ag-pricing .inc, .sh-page .ag-pricing .ribbon, .sh-page .ag-pricing .mbg { font-size: 12px; }
.sh-page .ag-pricing .gtag span, .sh-page .ag-pricing .pill span, .sh-page .ag-pricing .inc span { font-size: inherit; }
.sh-page .ag-pricing button[data-b] { min-height: 40px; }
.sh-page .ag-pricing .feat li.sh-hl { font-weight: 600; color: #4338ca; }

/* FAQ +/- icon centred without a 50% offset (render check reads the summary row as the hit area) */
.sh-page #faq details > summary::before, .sh-page #faq details > summary::after { top: 0; bottom: 0; margin-block: auto; }

/* phones: H1 in 3-4 lines */
@media (max-width: 480px) {
  .sh-page section.ag-hero .ag-hero__title { font-size: clamp(28px, 8.2vw, 34px); line-height: 1.08; }
}
