/* /kpi-dashboard only: page-level overrides on top of the shared artifact-page styles. */

/* Full-window captures stay readable: one per row, wide, instead of two squeezed side by side. */
.ba-page .dc-shots{ grid-template-columns:minmax(0, 1fr); gap:40px; }
.ba-page .dc-shots__item figcaption{ margin-top:12px; font-size:14px; line-height:1.5; letter-spacing:0; color:#55555f; text-align:center; }

@media (max-width:767.98px){
  .ba-page .dc-shots{ gap:28px; }
  .ba-page .dc-shots__item figcaption{ font-size:13px; text-align:left; }
}

/* Readable sample cards in the agents row (12px floor) and full-size tap targets. */
.ba-page .ba-doc span{ font-size:12px; }
.ba-page .ba-agent__go{ display:inline-flex; align-items:center; justify-content:center; min-width:calc(40px / var(--ag-z, 1)); min-height:calc(40px / var(--ag-z, 1)); margin:-8px -10px 0 0; }

/* Hero deal-bar link: invisible 40px hit area at every width (looks unchanged). */
.ag-hero__bar-link{ position:relative; }
.ag-hero__bar-link::after{ content:""; position:absolute; top:-15px; bottom:-15px; left:0; right:0; }

/* Final banner: the KPI headline is longer than the shared one; let it wrap instead of running past the card. */
.ah-page .ah-services .ag-services__title{ white-space:normal; }

/* Captures sit in <picture> (phone focus crops): let the picture and its image fill the frame,
   instead of shrinking to the 1x file's pixel width. 2x/4x files keep them sharp. */
.ba-page .pic-frame > picture{ display:block; width:100%; }
.ba-page .pic-frame > picture > img{ display:block; width:100%; height:auto; }

/* Hero window: wider at desktop so the demo loop reads at >= ~900px (1280px and up use Figma units). */
@media (min-width:1280px){
  .ag-hero__product{ width:min(calc(1440 * var(--u)), 100% - 32px); }
}

/* Hero small print keeps a 12px floor while 1280-1919px scale the Figma units down. */
.ah-hero__eyebrow{ font-size:max(12px, calc(14 * var(--u))); }
.ag-hero__bar{ font-size:max(12px, calc(14 * var(--u))); }

/* Pricing small print: 12px floor and 40px toggle buttons on this page. */
.plan-cards .gtag, .plan-cards .pill, .plan-cards .inc, .plan-cards .ribbon, .plan-cards .save, .plan-cards .mbg{ font-size:12px; }
.plan-cards .toggle button{ min-height:40px; }
.plan-cards .toggle .save{ font-size:12px; }

/* The hero window has one screen: no tab strip (it read as a tiny, untappable button). */
.ag-hero__product .ag-win__tabs{ display:none; }

/* Phones: the hero focus crop is short, so the shared 150px bottom fade covered most of it.
   Fade only the last 40px so the KPI cards stay readable. */
@media (max-width:700px){
  .ag-hero__product{ -webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 40px), rgba(0,0,0,.05) 100%); mask-image:linear-gradient(180deg, #000 calc(100% - 40px), rgba(0,0,0,.05) 100%); }
}

/* Window address bar in the hero: 12px floor, also where the 1280-1919px band scales the hero down. */
.ag-hero__product .ag-win__url{ font-size:max(12px, calc(12px / var(--ag-z, 1))); }

/* Templates: the exact /template gallery cards and grid (template-gallery.css), at real size.
   The section is zoomed by --ag-z at 1280-1919px; the grid cancels it so cards match the gallery.
   Box = min(1240px, viewport - 2 x gutter), gutter 24px (16px on phones), centred on the page. */
.ba-page .kpi-tpl{
  --kpi-tpl-w: min(1240px, 100vw - 2 * var(--tp-gut));
  zoom: calc(1 / var(--ag-z, 1));
  width: var(--kpi-tpl-w);
  margin-inline: calc((100% - var(--kpi-tpl-w)) / 2);
  background: transparent;
  display: flex; flex-direction: column; gap: 28px;
  font-family: inherit;
}
.ba-page .kpi-tpl .tp-ggrid{ width: 100%; }
.ba-page .kpi-tpl .tp-gcard__title a{ display: inline-flex; align-items: center; min-height: 40px; padding-block: 8px; margin-block: -8px; }
.ba-page .kpi-tpl .kpi-tpl__all{ align-self: center; }

/* Inline links in section intros read as links. */
.ba-page .ba-intro a{ color:#5a55f0; text-decoration:underline; text-underline-offset:2px; }

/* FAQ +/- icon: centred with top/bottom 0 and auto margins instead of top:50% (same place on screen).
   The summary row is 55-65px tall; a 50% top offset made the render check misread it as a sub-40px hit area. */
#faq details > summary::before, #faq details > summary::after{ top:0; bottom:0; margin-block:auto; }

/* Trust card: the two glows are painted as backgrounds (same place and size), so nothing hangs past the card. */
.ag-trust__glow{ display: none; }
.ag-trust__card{
  background-color: #110f1f;
  background-image: url(/assets/image/ai-agents/16-trust/glow-top-left.svg), url(/assets/image/ai-agents/16-trust/glow-bottom-right.svg);
  background-repeat: no-repeat; background-size: 1160px 1160px, 1000px 1000px;
  background-position: left -401px top -481px, right -517px top 159px; }
