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

/* Hero window: at least 960px wide from 1280px up, so the demo loop reads (same rule as the sibling buyer pages). */
@media (min-width:1280px){
  .ag-hero__product{ width: min(max(calc(1140 * var(--u)), 960px), 100% - 32px); }
}

/* Full-window captures stay readable: the AI capture gets the whole row, the prompt card sits above it. */
.ba-page .ba-prompt__grid{ grid-template-columns:minmax(0, 1fr); gap:32px; }
.ba-page .ba-prompt__grid .ba-prompt__run{ width:100%; max-width:760px; justify-self:center; }

/* The review row stacks too, so the version-history capture runs full width. */
#review.ba-page .dw-split{ grid-template-columns:minmax(0, 1fr); }

/* A <picture> inside the flex frame fills the frame instead of shrinking to the chosen file's size. */
.ba-page .dw-fig .pic-frame > picture{ flex:1 1 auto; width:100%; }
.ba-page .dw-fig .pic-frame > picture > img{ display:block; width:100%; height:auto; }

/* Plan note under the wiki capture. */
.ba-page .sop-plan-note{ max-width:760px; margin:28px auto 0; font-size:15px; line-height:1.6; color:#55555f; text-align:center; }

/* Template cards: the /template gallery grid, card for card.
   Tokens from template-pages.css (.tp-page), which this page does not load. */
.sop-tg.tp-page{
  --tp-ink:#0F0F14; --tp-ink-2:#4B5060; --tp-ink-3:#5B5F6B; --tp-line:#E4E5EA; --tp-line-2:#D5D7DE;
  --tp-soft:#F7F7F9; --tp-frame:#F1F2F5; --tp-brand:#4F46E5; --tp-brand-dk:#3730A3; --tp-gut:24px;
  margin-top:48px; font-family:Inter, system-ui, sans-serif;
}
@media (max-width:640px){ .sop-tg.tp-page{ --tp-gut:16px; } }
/* Sections are zoomed by --ag-z between 1280 and 1919px: undo it here so the grid has the gallery's real size. */
.sop-tg{ zoom:calc(1 / var(--ag-z, 1)); }
.sop-tg .tp-ggrid{ width:100%; max-width:1240px; margin-inline:auto; box-sizing:border-box; }
/* Full bleed with the gallery gutter: the grid box is min(1240px, 100vw - 2 x gutter), like the gallery. */
.sop-tg{ margin-inline:calc(50% - 50vw); padding-inline:var(--tp-gut); }
/* Rules the cards take from template-pages.css (.tp-page a, .tp-pill). */
.sop-tg.tp-page{ color:var(--tp-ink); }
.sop-tg a{ color:var(--tp-brand); text-decoration:none; }
.sop-tg.tp-page :focus-visible{ outline:2px solid var(--tp-brand); outline-offset:2px; }
.sop-tg .tp-pill{ display:inline-block; font-size:12px; font-weight:600; line-height:1.4; padding:4px 10px; border-radius:7px; }
.sop-tg .tp-gcard__title a{ min-height:40px; padding-block:8px; margin-block:-8px; text-decoration:none; }
.sop-tg .tp-gcard__btn{ text-decoration:none; }

/* Template links under the grid: full-size tap targets. */
.ba-page .dw-tpl__more a{ display:inline-flex; align-items:center; min-height:40px; }

/* Agent cards: a full-size tap target on the arrow. */
.ba-page .ba-agent__go{ display:inline-flex; align-items:center; justify-content:center; min-width:40px; min-height:40px; margin:-8px -10px 0 0; }

/* Between 1280 and 1919px the sections are scaled by --ag-z: keep the arrow a 40px target on screen. */
@media (min-width:1280px) and (max-width:1919.98px){
  .ba-page .ba-agent__go{ min-width:calc(40px / var(--ag-z, 1)); min-height:calc(40px / var(--ag-z, 1)); }
  .ba-page .dw-tpl__more a{ min-height:calc(40px / var(--ag-z, 1)); }
}

/* Pricing: 40px Monthly / Yearly toggle buttons. */
.plan-cards .toggle button{ min-height:40px; }

@media (max-width:767.98px){
  .ba-page .ba-prompt__grid{ gap:24px; }
  .ba-page .sop-plan-note{ margin-top:20px; font-size:14px; text-align:left; }
  .sop-tg.tp-page{ margin-top:32px; }
}

/* Phones: section headings stay at 3 lines or fewer; the grey second sentence drops out. */
@media (max-width:480px){
  main.ag-page .ba-page .ba-title > span{ display:none !important; }
}

/* 12px text floor in the hero bar, eyebrow, window address and tab (the hero scales down 1280-1919px). */
.sop-page .ag-hero__bar-text, .sop-page .ag-hero__bar-link, .sop-page .ah-hero__eyebrow{ font-size:max(12px, calc(14 * var(--u, 1px))); }
.sop-page .ag-win__url, .sop-page .ag-win__tabs [data-screen]{ font-size:max(12px, calc(12px / var(--ag-z, 1))) !important; }

/* Invisible 40px hit areas: hero bar link and window tab (look unchanged). */
.sop-page .ag-hero__bar-link, .sop-page .ag-win__tabs [data-screen]{ position:relative; }
.sop-page .ag-hero__bar-link::after, .sop-page .ag-win__tabs [data-screen]::after{ content:""; position:absolute; top:-16px; bottom:-16px; left:-4px; right:-4px; }
.sop-page .ag-win__tabs{ overflow:visible; }   /* one tab only: nothing to scroll */

/* Pricing: a 12px floor on the small labels. */
.sop-page .plan-cards .gtag, .sop-page .plan-cards .mbg, .sop-page .plan-cards .inc, .sop-page .plan-cards .pill,
.sop-page .plan-cards .ribbon, .sop-page .plan-cards .save{ font-size:max(12px, 1em) !important; }

/* Trust card: the two glows are painted as backgrounds (same place and size), so nothing hangs past the card. */
.sop-page .ag-trust__glow{ display:none; }
.sop-page .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; }

/* FAQ +/- icon: same place (centred on the right), but centred with top:0 / bottom:0 / margin:auto instead of top:50%,
   so tap checks read the summary's own 65px+ box rather than subtracting the icon offset. */
.sop-page .ba-page details > summary::after, .sop-page .ba-page details > summary::before{ top:0; bottom:0; margin-block:auto; }
