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

/* Product captures inside <picture> (phone focus crop + desktop full window). */
.ba-page .okr-pic picture{ display:block; width:100%; }
.ba-page .okr-pic picture > img{ display:block; width:100%; height:auto; max-height:none; margin:0; border:0; box-shadow:none; background:none; }
.ba-page .pic-frame--stroke.okr-pic picture > img{ border-radius:12px; }

/* Full-window captures stay readable: stack the row so the capture runs the full content width. */
.ba-page .ba-prompt__grid.okr-stack{ grid-template-columns:minmax(0, 1fr) !important; gap:32px; }
.ba-page .ba-prompt__grid.okr-stack .ba-prompt__run{ max-width:760px; width:100%; justify-self:center; }
.ba-page .ba-prompt__grid.okr-stack .pf-panel-shot{ max-width:1200px; width:100%; justify-self:center; }
.ba-page .pf-feat-shot.okr-wide{ max-width:1200px; }
.ba-page .pf-feat-shot.okr-wide figcaption{ margin-top:12px; font-size:14px; line-height:1.5; letter-spacing:0; color:#55555f; text-align:center; }
.ba-page .pf-dates figure.okr-wide{ max-width:1200px; width:100%; margin-inline:auto; }

@media (max-width:767.98px){
  .ba-page .pf-feat-shot.okr-wide figcaption{ font-size:13px; text-align:left; }
}

/* Hero product window: the demo 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 keeps its height; the link gets a 40px+ hit area
   from an invisible ::after (same technique as ag-mobile.css uses on phones). */
.ag-hero__bar{ font-size: max(12px, calc(14 * var(--u))); }
.ag-hero .ag-hero__bar-link{ position: relative; }
.ag-hero .ag-hero__bar-link::after{ content: ""; position: absolute; inset: -14px -4px; }
.ah-hero__eyebrow{ font-size: max(12px, calc(14 * var(--u))); }
.ag-win__url{ font-size: max(12px, calc(10.69 * var(--u))); }

/* Small text and tap targets in shared blocks on this page. */
.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: -10px -10px 0 0; }
.ba-page .ba-agent__id h3 a{ display: inline-flex; align-items: center; min-height: calc(40px / var(--ag-z, 1)); }
.plan-cards .toggle button{ min-height: 40px; }
.plan-cards .toggle .save{ font-size: 12px; }
.plan-cards .gtag, .plan-cards .pill, .plan-cards .inc, .plan-cards .ribbon, .plan-cards .mbg, .plan-cards .save, .plan-cards .gtag span, .plan-cards .pill span{ font-size: 12px; }
.ba-page .ba-agent__id h3 a{ margin-block: calc(-10px / var(--ag-z, 1)); }

/* Headlines: no one-word last lines */
.ba-page .ba-title, .ah-page .ah-services .ag-services__title{ text-wrap: balance; }

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

/* Phones: the focus crops get as much of the width as the frame allows */
@media (max-width: 700px){
  .ba-page .okr-pic{ padding: 6px !important; }
}

/* Template cards: the exact /template gallery card and grid (assets/template-gallery.css, markup from
   assets/js/template-gallery.js cardHtml). template-pages.css is not loaded here, so its tokens are set on
   the wrapper. The wrapper undoes the section zoom (--ag-z) so the grid is the gallery's in real pixels:
   a min(1240px, 100vw - 2 * gutter) box, gutter 24px (16px on phones). */
.okr-tg{
  --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;
  zoom: calc(1 / var(--ag-z, 1));
  box-sizing: border-box; max-width: calc(1240px + 2 * var(--tp-gut)); margin: 28px auto 0; padding-inline: var(--tp-gut);
  color: var(--tp-ink); text-align: left;
}
@media (max-width: 640px){ .okr-tg{ --tp-gut: 16px; } }
.okr-tg a{ text-decoration: none; }
.okr-tg :focus-visible{ outline: 2px solid var(--tp-brand); outline-offset: 2px; }
/* 40px tap target on the card title without changing the card's height */
.tp-page.okr-tg .tp-gcard__title a{ box-sizing: border-box; min-height: 40px; padding-block: 8px; margin-block: -8px; }
/* the pill style lives in template-pages.css (not loaded here); same values */
.okr-tg .tp-pill{ display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 4px 10px; border-radius: 7px; }
/* Small laptops: a thinner frame so full-window captures render at 900px+ at 1024 */
@media (min-width: 1000px) and (max-width: 1199.98px){ .ba-page .pic-frame.okr-pic{ padding: 12px; } }
/* Phones: the hero window is a short focus crop, so the shared 150px bottom fade would dim almost all of it.
   Keep only a short fade at the very bottom. */
@media (max-width: 700px){
  .ag-hero__product{ -webkit-mask-image: linear-gradient(#000 calc(100% - 20px), rgba(0,0,0,.35) 100%); mask-image: linear-gradient(#000 calc(100% - 20px), rgba(0,0,0,.35) 100%); }
}

/* 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; }
