
/* ============================================================
   EVO AI STUDIO — ALL PHONE RESPONSIVE FIX
   320px through 767px
   ============================================================ */

@media (max-width:767px){

  html,body{
    max-width:100%;
    overflow-x:hidden!important;
  }

  /* ---------- Dock ---------- */
  .island-shell{
    left:0!important;
    right:0!important;
    width:100%!important;
    padding:
      max(8px,env(safe-area-inset-top))
      10px
      0!important;
  }

  .island-dock{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:58px!important;
    padding:6px 7px 6px 9px!important;
    border-radius:20px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:6px!important;
  }

  .island-brand{
    min-width:0!important;
    gap:9px!important;
  }

  .island-brand img{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
  }

  .island-brand span{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:13px!important;
    line-height:1!important;
  }

  .island-actions{
    gap:5px!important;
    min-width:max-content!important;
  }

  .dock-download,
  .theme-toggle,
  .island-arrow,
  .island-menu{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    padding:0!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
  }

  .dock-download span{
    display:none!important;
  }

  .dock-download svg,
  .theme-toggle svg,
  .island-arrow svg{
    width:16px!important;
    height:16px!important;
  }

  .island-menu i{
    width:14px!important;
  }

  .island-mobile{
    top:76px!important;
    left:10px!important;
    right:10px!important;
    max-height:calc(100dvh - 92px)!important;
    overflow:auto!important;
    border-radius:20px!important;
  }

  /* ---------- Home hero ---------- */
  .evo-film-hero{
    min-height:760px!important;
    padding-top:76px!important;
    overflow:hidden!important;
  }

  .evo-film-stage{
    width:100%!important;
    height:590px!important;
    padding:0 14px!important;
    overflow:hidden!important;
  }

  .film-final-scene{
    align-items:start!important;
    padding-top:128px!important;
  }

  .film-final-copy{
    width:min(100%,390px)!important;
    max-width:calc(100vw - 28px)!important;
    margin:0 auto!important;
    padding:0!important;
  }

  .film-kicker{
    width:100%!important;
    max-width:340px!important;
    margin:0 auto 14px!important;
    padding:0 8px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-align:center!important;
    font-size:9px!important;
    line-height:1.55!important;
    letter-spacing:.13em!important;
  }

  .film-title{
    width:100%!important;
    max-width:100%!important;
    font-size:clamp(58px,18.5vw,76px)!important;
    line-height:.84!important;
    letter-spacing:-.065em!important;
  }

  .film-title span{
    max-width:100%!important;
  }

  .film-value{
    width:min(100%,350px)!important;
    margin:24px auto 0!important;
    padding:0 9px!important;
    font-size:14px!important;
    line-height:1.55!important;
    text-align:center!important;
  }

  .film-actions{
    width:100%!important;
    margin-top:26px!important;
    gap:8px!important;
    padding:0 2px!important;
  }

  .film-action-primary,
  .film-action-secondary{
    min-height:44px!important;
    padding:0 15px!important;
    font-size:10px!important;
    white-space:nowrap!important;
  }

  /* Hide large decorative side accents that collide with mobile copy */
  .film-accent-left,
  .film-accent-right{
    display:none!important;
  }

  /* Keep bottom artwork present but restrained */
  .film-peek{
    width:112px!important;
    height:70px!important;
    bottom:0!important;
    opacity:.88!important;
  }

  .film-peek-left{
    left:-22px!important;
  }

  .film-peek-right{
    right:-22px!important;
  }

  .film-peek-art{
    height:104px!important;
  }

  .peek-a strong{
    font-size:28px!important;
  }

  .peek-b img{
    width:62px!important;
  }

  .film-hero-footer{
    min-height:94px!important;
    padding:15px 15px 10px!important;
    align-items:flex-start!important;
    gap:10px!important;
  }

  .film-hero-footer>div{
    max-width:100%!important;
  }

  .film-hero-footer small{
    margin-bottom:5px!important;
    font-size:7.5px!important;
  }

  .film-hero-footer strong{
    font-size:12.5px!important;
    line-height:1.45!important;
  }

  .film-hero-footer>a{
    display:none!important;
  }

  /* ---------- Marquee / transition strip ---------- */
  .marquee{
    min-height:54px!important;
    height:54px!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
    border-top:1px solid var(--line)!important;
    border-bottom:1px solid var(--line)!important;
    background:var(--surface-soft)!important;
  }

  .marquee-track{
    min-width:max-content!important;
    gap:34px!important;
  }

  .marquee-track span{
    font-size:9px!important;
    letter-spacing:.20em!important;
    color:var(--muted)!important;
  }

  html[data-theme="dark"] .marquee{
    background:#0d1422!important;
    border-color:rgba(145,166,220,.10)!important;
  }

  /* ---------- General phone layout ---------- */
  .container,
  .mp-hero .container,
  .mp-section>.container,
  .mp-cta>.container,
  .contact-socials>.container{
    width:min(100% - 28px,1180px)!important;
  }

  .section,
  .mp-section,
  .contact-socials{
    padding-left:0!important;
    padding-right:0!important;
  }

  .display,
  .mp-title,
  .evo-legal-hero h1{
    overflow-wrap:anywhere!important;
  }

  .mp-hero{
    min-height:auto!important;
    padding-top:54px!important;
    padding-bottom:42px!important;
    overflow:hidden!important;
  }

  .mp-hero-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }

  .hero-layout-split,
  .hero-panel,
  .hero-links-grid,
  .hero-ratio-grid{
    min-width:0!important;
  }

  /* Premium hero orbs should never cover phone content */
  .evo-premium-orb{
    display:none!important;
  }

  /* ---------- Cards ---------- */
  .mp-grid,
  .pricing-packages,
  .service-price-list,
  .process-grid,
  .delivery-grid,
  .contact-social-grid,
  .about-cap-grid{
    min-width:0!important;
  }

  .mp-card,
  .price-card,
  .process-step,
  .process-card,
  .delivery-card,
  .contact-social-card{
    max-width:100%!important;
  }

  /* ---------- Footer ---------- */
  .evo-footer-wrap{
    width:min(100% - 28px,1180px)!important;
    padding:34px 0 24px!important;
  }

  .evo-footer-top{
    grid-template-columns:1fr!important;
    gap:24px!important;
  }

  .evo-footer-brand{
    width:100%!important;
  }

  .evo-footer-brand-copy{
    min-width:0!important;
  }

  .evo-footer-brand-copy strong{
    font-size:14px!important;
  }

  .evo-footer-brand-copy small{
    font-size:8px!important;
    line-height:1.5!important;
    white-space:normal!important;
  }

  .evo-footer-cta{
    width:100%!important;
    justify-self:stretch!important;
    grid-template-columns:40px minmax(0,1fr)!important;
  }

  .evo-footer-cta>a{
    font-size:11px!important;
  }

  .evo-footer-bottom{
    grid-template-columns:1fr!important;
    gap:16px!important;
  }

  .evo-footer-socials{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
  }

  .evo-footer-socials a{
    width:100%!important;
    justify-content:flex-start!important;
  }

  .evo-footer-copy{
    font-size:9px!important;
    line-height:1.5!important;
  }

  .footer.evo-footer .evo-legal-links{
    justify-content:flex-start!important;
    gap:10px 14px!important;
    padding-bottom:max(4px,env(safe-area-inset-bottom))!important;
  }

  /* ---------- Evo Assistant ---------- */
  .evo-helper{
    right:12px!important;
    bottom:max(12px,env(safe-area-inset-bottom))!important;
  }

  .evo-helper-trigger{
    width:50px!important;
    height:50px!important;
    border-radius:16px!important;
  }

  .evo-helper-trigger img{
    width:38px!important;
    height:38px!important;
  }

  .evo-helper-panel{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(72px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-width:none!important;
    max-height:calc(100dvh - 110px)!important;
    overflow:auto!important;
    border-radius:20px!important;
  }

  /* Don't let fixed assistant cover forms/buttons near page bottom */
  body{
    padding-bottom:max(0px,env(safe-area-inset-bottom))!important;
  }
}

/* Medium phones */
@media (min-width:430px) and (max-width:767px){
  .film-title{
    font-size:78px!important;
  }

  .film-final-copy{
    max-width:410px!important;
  }

  .film-peek{
    width:126px!important;
    height:76px!important;
  }
}

/* Small phones */
@media (max-width:429px){
  .island-dock{
    height:56px!important;
  }

  .island-brand img{
    width:35px!important;
    height:35px!important;
    flex-basis:35px!important;
  }

  .island-brand span{
    font-size:12px!important;
  }

  .dock-download,
  .theme-toggle,
  .island-arrow,
  .island-menu{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    min-height:36px!important;
  }

  .film-final-scene{
    padding-top:122px!important;
  }

  .film-title{
    font-size:clamp(56px,18.2vw,72px)!important;
  }

  .film-value{
    font-size:13.5px!important;
  }

  .film-action-primary,
  .film-action-secondary{
    flex:1 1 0!important;
    justify-content:center!important;
    padding:0 10px!important;
    font-size:9.5px!important;
  }
}

/* Narrow phones: 320–374px */
@media (max-width:374px){
  .island-shell{
    padding-left:7px!important;
    padding-right:7px!important;
  }

  .island-dock{
    padding-left:7px!important;
    padding-right:5px!important;
    gap:3px!important;
  }

  .island-brand{
    gap:6px!important;
  }

  .island-brand img{
    width:32px!important;
    height:32px!important;
    flex-basis:32px!important;
  }

  .island-brand span{
    font-size:11px!important;
  }

  .dock-download,
  .theme-toggle,
  .island-arrow,
  .island-menu{
    width:33px!important;
    height:33px!important;
    min-width:33px!important;
    min-height:33px!important;
  }

  .film-final-scene{
    padding-top:116px!important;
  }

  .film-kicker{
    max-width:292px!important;
    font-size:8px!important;
    letter-spacing:.11em!important;
  }

  .film-title{
    font-size:55px!important;
  }

  .film-value{
    margin-top:21px!important;
    font-size:12.5px!important;
  }

  .film-actions{
    flex-direction:column!important;
    width:min(100%,260px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .film-action-primary,
  .film-action-secondary{
    width:100%!important;
  }

  .film-peek{
    width:96px!important;
    height:62px!important;
  }

  .evo-helper-trigger{
    width:46px!important;
    height:46px!important;
  }

  .evo-helper-trigger img{
    width:34px!important;
    height:34px!important;
  }

  .evo-footer-socials{
    grid-template-columns:1fr!important;
  }
}
