/* ARABIDS v1.2.142: Desktop app preview, AR and EN only.
   Fix: the complete phone and heading stay within the visible window during
   ALL scrolling methods (wheel, trackpad, scrollbar, keyboard). The original
   fixed-height, wheel-captured slideshow allowed the phone top to disappear
   behind the sticky header. Mobile/tablet layout is intentionally unchanged. */
@media (min-width:992px) {
  html body:is(.home,[data-page="home"]) .how_it_works_section {
    --arabids-preview-stage:clamp(220px, calc(100dvh - var(--arabids-preview-header, 116px) - 158px), 590px);
    box-sizing:border-box !important;
    height:350dvh !important;
    min-height:2100px !important;
    max-height:none !important;
    padding:0 !important;
    margin:0 !important;
    display:block !important;
    position:relative !important;
    isolation:isolate !important;
    overflow:visible !important;
  }
  html body:is(.home,[data-page="home"]) .how_it_works_section > .container-flex {
    box-sizing:border-box !important;
    position:sticky !important;
    top:calc(var(--arabids-preview-header,116px) + 12px) !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    z-index:5 !important;
    width:min(1140px, calc(100% - 48px)) !important;
    max-width:1140px !important;
    height:auto !important;
    max-height:none !important;
    min-height:0 !important;
    margin:0 auto !important;
    padding:0 !important;
    display:flex !important;
    flex-flow:column nowrap !important;
    align-items:center !important;
    justify-content:flex-start !important;
    overflow:visible !important;
    transform:none !important;
  }
  html body:is(.home,[data-page="home"]) .how_it_works_section .container-flex > h2.title {
    box-sizing:border-box !important;
    position:static !important;
    flex:0 0 auto !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 0 clamp(15px,2vh,22px) !important;
    padding:0 !important;
    text-align:center !important;
    line-height:1.28 !important;
    transform:none !important;
  }
  html body:is(.home,[data-page="home"]) .how_it_works_section .container-flex > .flex.desktop {
    box-sizing:border-box !important;
    position:relative !important;
    flex:0 0 auto !important;
    width:min(1040px,100%) !important;
    max-width:100% !important;
    height:var(--arabids-preview-stage) !important;
    min-height:0 !important;
    max-height:var(--arabids-preview-stage) !important;
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:center !important;
    gap:clamp(22px,3.2vw,54px) !important;
    margin:0 auto !important;
    padding:0 !important;
    overflow:visible !important;
    transform:none !important;
  }
  html body:is(.home,[data-page="home"]) .how_it_works_section .container-flex > .flex.desktop > .how-it-works-swiper {
    box-sizing:border-box !important;
    position:relative !important;
    flex:1 1 0 !important;
    min-width:0 !important;
    max-width:600px !important;
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    overflow:hidden !important;
  }
  html body:is(.home,[data-page="home"]) .how_it_works_section .container-flex > .flex.desktop > .how-it-works-swiper-2 {
    box-sizing:border-box !important;
    position:relative !important;
    flex:0 0 auto !important;
    align-self:center !important;
    width:calc(var(--arabids-preview-stage) * 295 / 604) !important;
    min-width:0 !important;
    max-width:min(289px, 30vw) !important;
    height:100% !important;
    max-height:100% !important;
    min-height:0 !important;
    aspect-ratio:295 / 604 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    transform:none !important;
    transition:none !important;
    visibility:visible !important;
    opacity:1 !important;
  }
  html body:is(.home,[data-page="home"]) .how_it_works_section .flex.desktop > .how-it-works-swiper-2 :is(.swiper-wrapper,.swiper-slide,.how-it-works-mockup) {
    box-sizing:border-box !important;
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
  }
  html body:is(.home,[data-page="home"]) .how_it_works_section .flex.desktop > .how-it-works-swiper-2 .how-it-works-mockup > img.bg {
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
  }
  html body:is(.home,[data-page="home"]) .how_it_works_section .flex.desktop .arabids-phone-photo-feed {
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    overflow:hidden !important;
  }
}
/* Short laptops: title and phone still fit below the menu. */
@media (min-width:992px) and (max-height:620px) {
  html body:is(.home,[data-page="home"]) .how_it_works_section {
    --arabids-preview-stage:clamp(200px, calc(100dvh - var(--arabids-preview-header,116px) - 136px), 430px);
  }
  html body:is(.home,[data-page="home"]) .how_it_works_section .container-flex > h2.title {
    font-size:clamp(23px,2.4vw,32px) !important;
    margin-bottom:10px !important;
  }
}
