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

/* Hero product window: the dashboard capture stays readable (>= 900px wide on laptops). */
@media (min-width: 1024px){
  .ag-hero__product{ width: min(max(calc(1140 * var(--u)), 960px), 100% - 32px); }
}
/* Hero bar and eyebrow: never under 12px; the bar link is a 40px tap target. */
.ag-hero__bar{ font-size: max(13px, calc(14 * var(--u))); }
.ag-hero .ag-hero__bar-link{ display: inline-flex; align-items: center; min-height: 40px; margin-block: -12px; }
.ah-hero__eyebrow{ font-size: max(12px, calc(14 * var(--u))); }
.ag-win__url{ font-size: max(12px, calc(10.69 * var(--u))); }

/* 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; max-width: 1440px; margin-inline: auto; }
.ba-page .dc-shots__item figcaption{ margin-top: 12px; font-size: 14px; line-height: 1.5; letter-spacing: 0; color: #55555f; text-align: center; }

/* Small text and tap targets in shared blocks on this page. */
.ba-doc span{ font-size: 12px; }
.ba-page .ba-agent__go{ display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; margin: -10px -10px 0 0; }
.plan-cards .toggle button{ min-height: 40px; }
.plan-cards .inc{ font-size: 12px; letter-spacing: .04em; }
.plan-cards .gtag, .plan-cards .pill, .plan-cards .ribbon, .plan-cards .mbg, .plan-cards .toggle .save{ font-size: 12px; }

/* The agent cards are scaled down on wide screens; keep the arrow's hit area >= 40px after scaling. */
@media (min-width: 1024px){
  .ba-page .ba-agent__go{ min-width: 60px; min-height: 60px; margin: -20px -20px -12px 0; }
}

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

/* Widget figure (top reps table): a widget, not a full window, so it keeps a readable width instead of stretching.
   Phones get the revenue-by-product donut instead (the table is too wide to read at 390px); each image keeps its own alt.
   Each <img> sits in its own <picture> whose other-width <source> is the visible image's exact srcset + sizes, so the
   hidden one resolves to the same URL (no extra download) and is never a never-loaded lazy image. Neither is lazy:
   a display:none lazy image never loads. The <picture> is display:contents so .pic-frame lays the img out as before. */
.ba-page .sd-shot--widget{ max-width: 880px; margin-inline: auto; width: 100%; }
.ba-page .dc-shots .pic-frame > picture.sd-alt{ display: contents; }
.ba-page .dc-shots .pic-frame > picture.sd-alt > img{ display: block; width: auto !important; height: auto !important; max-width: 100% !important;
  margin: 0 !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; background: none !important; }
.ba-page .dc-shots .pic-frame img.sd-phone, .ba-page .dc-shots figcaption .sd-phone{ display: none !important; }
@media (max-width: 700px){
  .ba-page .dc-shots .pic-frame img.sd-desk, .ba-page .dc-shots figcaption .sd-desk{ display: none !important; }
  .ba-page .dc-shots .pic-frame img.sd-phone, .ba-page .dc-shots figcaption .sd-phone{ display: block !important; }
}
.ba-page .dc-shots__item:not(.sd-shot--widget){ max-width: 1200px; margin-inline: auto; width: 100%; }

/* Templates: the exact /template gallery cards and grid (template-pages.css + template-gallery.css).
   The block is a <div>, so ai-agents.css does not zoom it; only its heading follows the page zoom. */
.sd-tpl.tp-page{ background: #fafafb; }
.sd-tpl .tp-wrap{ width: min(1240px, 100%); }
.sd-tpl .sd-tpl__head{ zoom: var(--ag-z, 1); margin-bottom: 12px; }
.sd-tpl .sd-tpl__head .ba-intro a{ color: #6762fe; text-decoration: underline; text-underline-offset: 2px; }
.sd-tpl .tp-gcard__title a{ display: inline-flex; align-items: center; min-height: 40px; padding-block: 8px; margin-block: -8px; }

/* Final banner: the sales headline is longer than the shared one, so it wraps instead of being cut off. */
.ah-page .ah-services .ag-services__title{ white-space: normal; text-wrap: balance; }

/* 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 as on /kpi-dashboard), so nothing hangs
   past the card and the render check sees no clipped box or stretched decorative image. */
.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; }
