/* WEQEX v18.2 — responsive hardening */
html,body{max-width:100%;overflow-x:hidden}
*,*:before,*:after{min-width:0}
img,svg,video,canvas{max-width:100%}

@media(max-width:760px){
  /* Shared mobile typography safety */
  h1,h2,h3,p,a,button,span,strong{overflow-wrap:break-word}

  /* Signal: prevent grid min-content from widening the page */
  .signal-page .signal-main{width:calc(100% - 28px)!important;max-width:100%!important;margin-inline:auto!important}
  .signal-page .signal-hero{width:100%!important;grid-template-columns:minmax(0,1fr)!important;max-width:100%!important}
  .signal-page .signal-hero>*{min-width:0!important;max-width:100%!important;width:auto!important}
  .signal-page .signal-copy h1{font-size:clamp(50px,15vw,68px)!important;line-height:.86!important;overflow-wrap:anywhere}
  .signal-page .signal-actions,.signal-page .signal-facts,.signal-page .signal-console{max-width:100%!important;min-width:0!important}
  .signal-page .signal-strip{max-width:100vw!important;overflow:hidden!important}
  .signal-page .signal-strip span{flex:0 0 auto}
  .signal-page .sc-grid,.signal-page .sc-body,.signal-page .sc-topline,.signal-page .sc-summary,.signal-page .sc-checks{min-width:0!important;max-width:100%!important}

  /* SEO service pages */
  .seo-v12-page .seo-v12-hero{grid-template-columns:minmax(0,1fr)!important;max-width:100%!important}
  .seo-v12-page .seo-v12-hero>*{min-width:0!important;max-width:100%!important;width:auto!important}
  .seo-v12-page .seo-v12-hero h1{font-size:clamp(46px,13.8vw,66px)!important;line-height:.88!important;overflow-wrap:anywhere}
  .seo-v12-page .seo-v12-console,.seo-v12-page .svc-console-body,.seo-v12-page .svc-score,.seo-v12-page .svc-list{min-width:0!important;max-width:100%!important}
  .seo-v12-page .seo-v12-strip{max-width:100vw!important;overflow:hidden!important}

  /* Hosting */
  .hosting-page .hosting-hero{grid-template-columns:minmax(0,1fr)!important;max-width:100%!important}
  .hosting-page .hosting-hero>*{min-width:0!important;max-width:100%!important;width:auto!important}
  .hosting-page .hosting-hero h1{font-size:clamp(44px,12.5vw,62px)!important;line-height:.92!important;overflow-wrap:anywhere}
  .hosting-page .hosting-terminal{max-width:100%!important;min-width:0!important}

  /* AI */
  .ai-page .ai-hero{grid-template-columns:minmax(0,1fr)!important;max-width:100%!important}
  .ai-page .ai-hero>*{min-width:0!important;max-width:100%!important}
  .ai-page .ai-section>*{min-width:0!important;max-width:100%!important}
  .ai-page .ai-head,.ai-page .ai-system,.ai-page .ai-control,.ai-page .ai-start,.ai-page .ai-access{grid-template-columns:minmax(0,1fr)!important;max-width:100%!important}
  .ai-page .ai-head h2,.ai-page .ai-system h2,.ai-page .ai-control h2,.ai-page .ai-start h2{font-size:clamp(38px,11.5vw,54px)!important;overflow-wrap:anywhere}
  .ai-page .blueprint-tabs{max-width:100%!important}
  .ai-page .blueprint-tab{min-width:118px!important}
  .ai-page .ai-strip{max-width:100vw!important;overflow:hidden!important}

  /* Legal */
  .legal-shell,.legal-card,.legal-card *{max-width:100%!important}
  .legal-shell h1{font-size:clamp(40px,11.5vw,56px)!important;line-height:1!important;overflow-wrap:anywhere;word-break:normal}
}

@media(min-width:761px){
  .ai-page{overflow-x:hidden}
}

/* v18.2.1 — remove residual intrinsic-width overflow */
.ai-page .ai-control{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important}
.ai-page .ai-control>*,.ai-page .ai-start>*,.ai-page .ai-gradient{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important}

@media(max-width:760px){
  .signal-page .signal-strip{white-space:normal!important;display:flex!important;flex-wrap:wrap!important;gap:8px 14px!important;padding-inline:0!important}
  .signal-page .signal-strip span{display:inline-flex!important;gap:8px!important}
  .signal-page .signal-strip span:after{display:none!important}
  .signal-page .signal-module:after{display:none!important}
  .signal-page .integration-link{overflow:visible!important}
  .signal-page .integration-link span{max-width:150px!important;text-align:center!important;white-space:normal!important}

  .ai-page .ai-start>div:first-child{width:100%!important;max-width:100%!important}
  .ai-page .ai-gradient{white-space:normal!important}
  .ai-page .agent-card:after{display:none!important}
  .ai-page .ai-strip{white-space:normal!important;display:flex!important;flex-wrap:wrap!important;gap:8px 14px!important;padding-inline:14px!important}
  .ai-page .ai-strip span:after{display:none!important}
}
@media(max-width:1050px){
  .signal-page .signal-hero:before{display:none!important}
}
/* Contain decorative/scrolling internals so they never widen the document */
.signal-page .signal-main,.ai-page .ai-main{overflow-x:hidden!important}
@media(max-width:1050px){
  .signal-page .signal-strip{white-space:normal!important;display:flex!important;flex-wrap:wrap!important;gap:8px 14px!important}
  .signal-page .signal-strip span:after{display:none!important}
}

/* v18.3 EN terminology fit */
@media (min-width:1101px) and (max-width:1350px){html[lang="en"] .desktop-nav{gap:18px}html[lang="en"] .desktop-nav a{font-size:12px}}
