/* Segura Automation V18 — compact live demo on phones only.
   Desktop/tablet presentation is intentionally unchanged.
   Goal: remove excess vertical whitespace inside the live-demo scenes so
   the story and its CTA fit much better in a phone viewport. */

@media (max-width:560px){
  /* The V14 visual design remains intact; only its vertical proportions change. */
  .v11-story{
    height:440px !important;
    background:
      radial-gradient(circle at 19% 44%,rgba(102,179,255,.10),transparent 24%),
      radial-gradient(circle at 76% 22%,rgba(84,164,255,.12),transparent 28%),
      linear-gradient(180deg,
        #102949 0px,
        #102949 52px,
        #f2f7ff 52px,
        #e0ebfa calc(100% - 74px),
        #0d2038 calc(100% - 74px),
        #081a2f 100%) !important;
  }

  /* Keep the actor above the message, but remove the large empty bands. */
  .v11-scene{
    inset:58px 10px 76px !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    align-content:center !important;
    padding:10px 14px !important;
    border-radius:20px !important;
  }

  .v11-actor{
    gap:4px !important;
  }
  .v11-avatar{
    width:62px !important;
    height:62px !important;
    border-radius:18px !important;
  }
  .v11-avatar svg{
    width:48px !important;
    height:48px !important;
  }
  .v11-avatar.ai img{
    width:40px !important;
    height:43px !important;
  }
  .v11-actor span{
    font-size:.66rem !important;
    line-height:1.15 !important;
  }

  .v11-scene-label{
    margin-bottom:6px !important;
    font-size:.58rem !important;
  }
  .v11-bubble{
    padding:10px 12px !important;
    font-size:.90rem !important;
    line-height:1.32 !important;
  }
  .v11-bubble small{
    margin-top:6px !important;
    font-size:.64rem !important;
  }
  .v11-slot-row{
    margin-top:7px !important;
  }
  .v11-slot{
    padding:5px 8px !important;
    font-size:.67rem !important;
  }
  .v11-escalation{
    gap:6px !important;
  }
  .v11-alert{
    padding:7px 9px !important;
    font-size:.66rem !important;
  }
  .v11-mini-actions span{
    padding:6px 9px !important;
    font-size:.65rem !important;
  }
  .v11-resolution{
    margin-top:7px !important;
    padding:6px 10px !important;
    font-size:.68rem !important;
  }
  .v11-check{
    width:24px !important;
    height:24px !important;
  }

  /* Compact the footer strip while retaining its text and progress indicator. */
  .v11-story-caption{
    left:12px !important;
    right:12px !important;
    bottom:9px !important;
    min-height:54px !important;
    padding:8px 10px !important;
    border-radius:15px !important;
  }
  .v11-story-caption strong{
    font-size:.62rem !important;
    line-height:1.22 !important;
    max-width:205px !important;
  }
  .v11-progress button{
    width:13px !important;
  }
  .v11-progress button.active{
    width:27px !important;
  }

  /* Bring the CTAs closer to the demo once the unnecessary empty space is gone. */
  .v11-mobile-actions{
    margin-top:10px !important;
    gap:9px !important;
  }
}

/* Very narrow phones need a little extra room for wrapped Spanish/French/Arabic copy. */
@media (max-width:370px){
  .v11-story{height:455px !important}
  .v11-scene{inset:58px 9px 76px !important;padding:10px 11px !important}
}
