/* Segura Automation V17 — mobile hero overlap fix only.
   Keeps V16 header and V14/V13 visuals unchanged.
   The hero becomes a true single-column flow on tablet/phone:
   headline first, live demo second, mobile actions third. */

@media (max-width:1100px){
  .v11-hero-grid{
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:
      "copy"
      "story" !important;
    grid-auto-flow:row !important;
    align-items:start !important;
    width:100% !important;
  }
  .v11-copy{
    grid-area:copy !important;
    position:relative !important;
    z-index:2 !important;
    width:100% !important;
    min-width:0 !important;
  }
  .v11-story-wrap{
    grid-area:story !important;
    position:relative !important;
    z-index:1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    align-self:start !important;
  }
  .v12-demo-kicker,
  .v11-story,
  .v11-mobile-actions{
    position:relative !important;
    max-width:100% !important;
  }
}

@media (max-width:640px){
  .v11-hero{
    overflow:hidden !important;
  }
  .v11-hero-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    gap:22px !important;
  }
  .v11-copy{
    display:block !important;
    transform:none !important;
    margin:0 auto !important;
    padding:0 !important;
  }
  .v11-copy h1,
  .v11-copy > p{
    position:relative !important;
    z-index:auto !important;
  }
  .v11-story-wrap{
    display:block !important;
    transform:none !important;
    padding:0 !important;
    margin:0 !important;
    clear:both !important;
  }
  .v12-demo-kicker{
    width:100% !important;
    margin:0 0 12px !important;
  }
  .v11-story{
    width:100% !important;
    margin:0 !important;
    transform:none !important;
  }
  .v11-mobile-actions{
    width:100% !important;
    margin-top:14px !important;
    clear:both !important;
  }
}

@media (max-width:430px){
  .v11-hero-grid{gap:20px !important}
}
