/* N8IVE V171 - robust mobile layouts, iOS Safari & Android Chrome */
html,body{max-width:100%;overflow-x:clip}
.shell,.shell main,.shell footer{min-width:0}
img,video,iframe,svg{max-width:100%}
video{height:auto}
body[data-page="space"] .v64-motion-section{margin:24px auto 12px!important;opacity:1!important;visibility:visible!important;transform:none!important;transition:none!important}
body[data-page="space"] .v64-motion-section.motion-in{opacity:1!important;transform:none!important}
body[data-page="space"] .footer{padding-top:28px!important}
body[data-page="space"] .n8-reviews{margin-bottom:12px!important;padding-bottom:10px!important}
/* Some older motion components can lose their observer on browser back/restore. */
html.n8-mobile-safe .reveal:not(.visible):not(.n8-entered){opacity:1;transform:none}
@media(hover:none),(pointer:coarse){
  .n8-pricing-tier:hover,.n8-service-card:hover,.service-card:hover{transform:none!important}
  a,button,[role="button"],input,select,textarea{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
}
@media(max-width:900px){
  .n8-pricing-overlay{padding:env(safe-area-inset-top,8px) 9px env(safe-area-inset-bottom,8px)}
  .n8-pricing-modal{max-height:calc(100dvh - 18px);max-height:calc(100svh - 18px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  body[data-page="space"] .v64-motion-section{margin:20px 0 14px!important;padding:20px!important}
}
@media(max-width:700px){
  html{scroll-padding-top:74px}
  body{overflow-x:hidden}
  .shell{padding-left:max(13px,env(safe-area-inset-left));padding-right:max(13px,env(safe-area-inset-right))}
  .header{position:relative;z-index:110}
  .nav.open{max-height:calc(100dvh - 75px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .mobile-toggle,.cart-icon,.n8-pricing-close{min-width:42px;min-height:42px;touch-action:manipulation}
  .pill,.n8-pricing-quote,.n8-prestation-go{min-height:44px}
  .n8-pricing-modal{border-radius:16px}
  .n8-pricing-head{padding-top:45px!important}
  .n8-pricing-tier{min-height:0!important}
  .n8-pricing-tier h3{overflow-wrap:anywhere}
  .n8-prestation-helper{margin-top:14px}
  .n8-prestation-option{min-height:44px}
  .v64-motion-section video{width:100%;aspect-ratio:16/9;object-fit:cover}
  .footer{padding-top:24px!important}
  .footer-grid{gap:22px 14px}
  .footer a{line-height:1.5;overflow-wrap:anywhere}
  .v64-product-grid,.v102-projects,.services-grid{min-width:0}
  .v64-product-grid>* ,.v102-projects>*,.services-grid>*{min-width:0}
  input,select,textarea{font-size:16px!important;max-width:100%}
  .n8-reviews-marquee-wrap{max-width:100%;overflow:hidden}
  .n8-reviews-track{will-change:auto}
  .v64-motion-section{max-width:100%}
}
@media(max-width:420px){
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}
  .footer-grid>div{min-width:0}
  .v64-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 9px}
  .v64-product-photo{min-width:0}
  .n8-pricing-head h2{font-size:clamp(28px,8vw,38px)!important;line-height:1.03}
  .n8-pricing-foot{padding:10px 17px 25px}
}
@media(prefers-reduced-motion:reduce){
  .reveal,.motion-in,.n8-mobile-animate{opacity:1!important;transform:none!important}
  html{scroll-behavior:auto!important}
}
