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

/* Hero: the free-plan line under the buttons. */
.tg-page .tg-hero__fine{ margin:16px 0 0; font-size:14px; line-height:1.5; color:#aeb7d3; }
.tg-page .tg-hero__fine span{ color:#fff; }

/* Readability: full-window captures sit on their own row, wide, instead of squeezed beside text. */
@media (min-width: 900px){
}
.tg-page .pf-shot picture, .tg-page .pic-frame picture{ display:block; width:100%; flex:1 1 auto; }
.tg-page .pf-shot img, .tg-page .pic-frame img{ display:block; width:100%; height:auto; }

/* Hero window: the demo stays readable (at least about 920px wide) where the hero scales down. */
@media (min-width: 1280px){ .tg-page .ag-hero__product{ width:min(max(calc(1140 * var(--u)), 920px), 100% - 32px); } }

/* 12px text floor for the hero bar, eyebrow and window address (the hero is scaled down between 1280 and 1919px). */
@media (min-width: 1280px) and (max-width: 1919.98px){
  .tg-page .ag-hero__bar-text, .tg-page .ag-hero__bar-link, .tg-page .ah-hero__eyebrow{ font-size:12px; }
}
.tg-page .ag-win__url{ font-size:12px; }

/* Full-size tap targets that look unchanged. */
.tg-page .ag-hero__bar-link{ position:relative; }
.tg-page .ag-hero__bar-link::after{ content:""; position:absolute; top:-14px; bottom:-14px; left:-4px; right:-4px; }
.tg-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; }
.tg-page .plan-cards .toggle button{ min-height:40px; }

/* Plan cards: 12px floor on the small labels. */
.tg-page .plan-cards .gtag, .tg-page .plan-cards .pill, .tg-page .plan-cards .inc,
.tg-page .plan-cards .mbg, .tg-page .plan-cards .ribbon, .tg-page .plan-cards .toggle .save{ font-size:12px; }

/* FAQ rows: at least 40px tall to tap. */
.tg-page .pf-faq summary{ min-height:44px; }

/* Templates: the exact /template gallery grid (template-gallery.css). The cards sit in a div
   directly under <main>, so the 1280-1919px section zoom does not shrink them. */
.tg-page .tg-tpl-head{ padding-bottom:0 !important; }
.tg-page .tg-tpl-head > .ba-wrap{ --tg-gut:24px; max-width:calc((1240px + 2 * var(--tg-gut)) / var(--ag-z, 1)); padding-inline:calc(var(--tg-gut) / var(--ag-z, 1)); }
@media (max-width: 640px){ .tg-page .tg-tpl-head > .ba-wrap{ --tg-gut:16px; } }
.tg-tgal{ padding:28px var(--tp-gut) 72px; }
.tg-tgal .tp-gcard__title a{ min-height:40px; padding-block:8px; margin-block:-8px; box-sizing:border-box; }
.tg-tgal__more{ margin:28px 0 0; display:flex; justify-content:center; }
@media (max-width: 640px){ .tg-tgal{ padding-bottom:48px; } }

/* Phones: the H1 fits in 3 lines at 390px. */
@media (max-width: 480px){
  .tg-page .ag-hero__title{ font-size:clamp(26px, 8vw, 34px) !important; }
}

/* Phones: section titles stay at 3 lines or fewer at 390px. */
@media (max-width: 420px){ .tg-page .ba-page .ba-title{ font-size:32px; } }

/* Phones: show the whole filled-in form crop (Name, Team, Request type). The shared hero gives the
   window a fixed height and a 150px fade, which hid all but the form title. */
@media (max-width: 700px){
  .tg-page .ag-hero__product{ height:auto !important; -webkit-mask-image:linear-gradient(#000 calc(100% - 28px), transparent); mask-image:linear-gradient(#000 calc(100% - 28px), transparent); }
  .tg-page .ag-hero__product .ag-win, .tg-page .ag-hero__product .ag-win__screens{ height:auto !important; aspect-ratio:auto; }
  .tg-page .ag-hero__product .ag-win__screens picture, .tg-page .ag-hero__product .ag-win__screens img{ position:static !important; display:block; width:100%; height:auto; }
}

/* 1024-1279px: a thinner frame around the two captures so each capture renders 900px+ wide. */
@media (min-width: 1000px) and (max-width: 1279.98px){
}

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

/* Quick answer */
.tg-page .tg-verdict{ max-width:860px; margin:0 auto 32px; display:grid; gap:12px; }
.tg-page .tg-verdict p{ margin:0; font-size:17px; line-height:1.6; color:#3d4566; }
.tg-page .tg-verdict a{ color:#5b4ce6; font-weight:600; }

/* Glance table: cards on phones */
.tg-page .tg-table-wrap{ max-width:1080px; margin:0 auto; }
.tg-page .tg-table{ width:100%; border-collapse:separate; border-spacing:0; background:#fff; border:1px solid #e4e7f2; border-radius:16px; overflow:hidden; font-size:15px; line-height:1.45; color:#2b3150; }
.tg-page .tg-table th, .tg-page .tg-table td{ text-align:left; padding:14px 16px; border-bottom:1px solid #eceef6; vertical-align:top; }
.tg-page .tg-table thead th{ background:#f5f6fb; font-size:13px; font-weight:600; color:#5c6488; text-transform:uppercase; letter-spacing:.04em; }
.tg-page .tg-table tbody tr:last-child > *{ border-bottom:0; }
.tg-page .tg-table tbody th a{ display:inline-flex; align-items:center; min-height:40px; min-width:40px; font-weight:700; color:#1b1f3b; text-decoration:none; }
.tg-page .tg-table tr.is-us{ background:#f3f1ff; }
.tg-page .tg-table small{ display:block; font-size:12px; color:#7a82a6; }
.tg-page .tg-asof{ max-width:1080px; margin:14px auto 0; font-size:13px; color:#6b7396; text-align:center; }
@media (max-width: 760px){
  .tg-page .tg-table, .tg-page .tg-table tbody, .tg-page .tg-table tr, .tg-page .tg-table th, .tg-page .tg-table td{ display:block; }
  .tg-page .tg-table thead{ display:none; }
  .tg-page .tg-table tr{ border-bottom:1px solid #e4e7f2; padding:6px 0; }
  .tg-page .tg-table th, .tg-page .tg-table td{ border:0; padding:4px 16px; }
  .tg-page .tg-table td::before{ content:attr(data-label) ": "; font-weight:600; color:#5c6488; }
}

/* Tool cards */
.tg-page .tg-tools{ display:grid; gap:24px; max-width:1080px; margin:0 auto; }
.tg-page .tg-tool{ background:#fff; border:1px solid #e4e7f2; border-radius:20px; padding:28px; scroll-margin-top:96px; }
.tg-page .tg-tool.is-us{ border:2px solid #7c6cf6; box-shadow:0 10px 40px rgba(91,76,230,.12); }
.tg-page .tg-tool__head{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:start; }
.tg-page .tg-tool__rank{ font-size:14px; color:#7c6cf6; padding-top:6px; }
.tg-page .tg-tool__name{ margin:0; font-size:24px; line-height:1.25; color:#1b1f3b; }
.tg-page .tg-tool__tag{ margin:4px 0 0; font-size:15px; color:#5c6488; }
.tg-page .tg-tool__price{ margin:0; font-size:14px; color:#5c6488; text-align:right; max-width:280px; }
.tg-page .tg-tool__price b{ display:block; font-size:17px; color:#1b1f3b; }
.tg-page .tg-tool__lead{ margin:16px 0; font-size:16px; line-height:1.6; color:#3d4566; }
.tg-page .tg-tool__cols{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.tg-page .tg-tool__col h4{ margin:0 0 8px; font-size:14px; text-transform:uppercase; letter-spacing:.05em; color:#1f8a5b; }
.tg-page .tg-tool__col--short h4{ color:#b4463c; }
.tg-page .tg-tool__col ul{ margin:0; padding-left:18px; font-size:15px; line-height:1.6; color:#3d4566; }
.tg-page .tg-tool__pick{ margin:16px 0 0; font-size:15px; line-height:1.6; color:#3d4566; }
.tg-page .tg-tool__pick a, .tg-page .tg-tool__src a, .tg-page .ba-points a, .tg-page .ba-intro a{ color:#5b4ce6; }
.tg-page .tg-tool__src{ margin:12px 0 0; font-size:13px; line-height:1.5; color:#6b7396; }
.tg-page .tg-tool__actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.tg-page .tg-tool__actions .ba-btn{ min-height:44px; }
@media (max-width: 760px){
  .tg-page .tg-tool{ padding:20px; }
  .tg-page .tg-tool__head{ grid-template-columns:auto minmax(0,1fr); }
  .tg-page .tg-tool__price{ grid-column:1 / -1; text-align:left; max-width:none; }
  .tg-page .tg-tool__cols{ grid-template-columns:minmax(0,1fr); gap:16px; }
}

/* How it works: steps with captures */
.tg-page .tg-steps{ list-style:none; margin:0 auto; padding:0; max-width:1080px; display:grid; gap:56px; }
.tg-page .tg-step{ display:grid; gap:24px; }
.tg-page .tg-step__copy{ max-width:720px; }
.tg-page .tg-step__copy span{ font-size:14px; color:#7c6cf6; }
.tg-page .tg-step__copy h3{ margin:6px 0 8px; font-size:24px; color:#1b1f3b; }
.tg-page .tg-step__copy p{ margin:0; font-size:17px; line-height:1.6; color:#3d4566; }
@media (min-width: 900px){
  .tg-page .tg-step--side{ grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:48px; }
}
.tg-page .tg-shot{ margin:0; background:#fff; border:1px solid #e4e7f2; border-radius:16px; padding:10px; box-shadow:0 12px 40px rgba(27,31,59,.08); justify-self:center; width:100%; }
.tg-page .tg-shot img{ display:block; width:100%; height:auto; border-radius:10px; }
.tg-page .tg-shot--panel{ max-width:392px; }
.tg-page .tg-shot--modal{ max-width:620px; }
.tg-page .tg-shot--flow{ max-width:740px; }
.tg-page #beyond-the-guide .ba-split{ align-items:center; }

/* Hero window: the how-to doc capture shows whole on phones. */
.tg-page .ag-win__screens img{ display:block; width:100%; height:auto; }

/* 40px tap targets where the 1280-1919px zoom shrinks sections. */
.tg-page .tg-table tbody th a{ min-height:calc(40px / var(--ag-z, 1)); min-width:calc(40px / var(--ag-z, 1)); }
.tg-page .pf-faq summary{ min-height:calc(44px / var(--ag-z, 1)); display:flex; align-items:center; }
/* 320px: the Tango column's words wrap instead of clipping. */
.tg-page .ag-compare__word{ overflow-wrap:anywhere; min-width:0; }
.tg-page .ag-compare__col dd{ min-width:0; }
@media (max-width: 420px){
  .tg-page .ag-compare__cell{ flex-wrap:wrap; row-gap:4px; justify-content:flex-start; }
  .tg-page .ag-compare__cell dt{ flex:1 0 100%; }
  .tg-page .ag-compare__cell dd{ white-space:normal; }
}
