
/* ============================================================
   EVO AI STUDIO — MOBILE REBUILD
   Final override layer for 320px through 767px
   ============================================================ */

@media (max-width:767px){

  html{
    -webkit-text-size-adjust:100%!important;
    text-size-adjust:100%!important;
  }

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

  body{
    font-size:15px!important;
    line-height:1.6!important;
  }

  /* -------------------------------
     PHONE TYPOGRAPHY SYSTEM
     ------------------------------- */

  p,
  .lead,
  .mp-lead,
  .about-story p,
  .about-value p,
  .about-principle p,
  .about-cap p,
  .process-step p,
  .process-card p,
  .delivery-card p,
  .price-card p,
  .contact-social-card p,
  .evo-legal-card p,
  .evo-legal-card li{
    font-size:14px!important;
    line-height:1.65!important;
  }

  .kicker,
  .mp-eyebrow{
    font-size:9px!important;
    line-height:1.4!important;
    letter-spacing:.14em!important;
  }

  .display,
  .mp-title{
    font-size:clamp(38px,11.6vw,56px)!important;
    line-height:.98!important;
    letter-spacing:-.05em!important;
  }

  .mp-section h2,
  .section h2{
    font-size:clamp(32px,9.8vw,46px)!important;
    line-height:1!important;
    letter-spacing:-.045em!important;
  }

  .mp-card h3,
  .price-card h3,
  .process-step h3,
  .process-card h3,
  .delivery-card h3,
  .contact-social-card h3,
  .about-value h3,
  .about-principle h3,
  .about-cap h3{
    font-size:20px!important;
    line-height:1.16!important;
  }

  /* -------------------------------
     GLOBAL PHONE SPACING
     ------------------------------- */

  .container,
  .mp-hero .container,
  .mp-section>.container,
  .mp-cta>.container,
  .contact-socials>.container,
  .evo-footer-wrap{
    width:calc(100% - 28px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .section,
  .mp-section,
  .contact-socials{
    padding-top:60px!important;
    padding-bottom:60px!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;
    min-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:8px!important;
  }

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

  .island-brand span{
    min-width:0!important;
    font-size:13px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!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;
  }

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

  /* -------------------------------
     HOME HERO — PHONE VERSION
     Show the polished final state immediately.
     Do not run desktop card choreography on phones.
     ------------------------------- */

  .evo-film-hero{
    min-height:700px!important;
    padding-top:76px!important;
    overflow:hidden!important;
  }

  .evo-film-stage{
    position:relative!important;
    width:100%!important;
    height:535px!important;
    max-width:none!important;
    padding:0 14px!important;
    overflow:hidden!important;
  }

  .film-brand-scene,
  .film-card-scene,
  .film-index-strip{
    display:none!important;
    animation:none!important;
  }

  .film-final-scene{
    position:absolute!important;
    inset:0!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
    opacity:1!important;
    transform:none!important;
    animation:none!important;
    padding:118px 14px 0!important;
  }

  .film-final-copy{
    position:relative!important;
    width:100%!important;
    max-width:390px!important;
    margin:0 auto!important;
    padding:0!important;
    text-align:center!important;
  }

  .film-kicker{
    width:100%!important;
    max-width:320px!important;
    margin:0 auto 14px!important;
    padding:0!important;
    color:var(--muted)!important;
    font-size:8.5px!important;
    line-height:1.55!important;
    letter-spacing:.13em!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-align:center!important;
  }

  .film-title{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    font-size:clamp(54px,17.6vw,72px)!important;
    line-height:.86!important;
    letter-spacing:-.064em!important;
  }

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

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

  .film-actions{
    width:100%!important;
    margin:24px auto 0!important;
    display:flex!important;
    justify-content:center!important;
    gap:8px!important;
  }

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

  .film-accent-left,
  .film-accent-right,
  .evo-premium-orb{
    display:none!important;
  }

  .film-peek{
    width:96px!important;
    height:62px!important;
    bottom:0!important;
    opacity:.68!important;
  }

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

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

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

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

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

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

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

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

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

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

  /* -------------------------------
     SECONDARY HEROES
     ------------------------------- */

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

  .mp-hero-grid,
  .hero-layout-split,
  .hero-panel,
  .hero-links-grid,
  .hero-ratio-grid{
    grid-template-columns:1fr!important;
    min-width:0!important;
    gap:20px!important;
  }

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

  /* -------------------------------
     CARDS / CONTENT GRIDS
     ------------------------------- */

  .mp-grid,
  .pricing-packages,
  .service-price-list,
  .process-grid,
  .delivery-grid,
  .contact-social-grid,
  .about-cap-grid,
  .evo-trust-list{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }

  .mp-card,
  .price-card,
  .process-step,
  .process-card,
  .delivery-card,
  .contact-social-card,
  .about-story,
  .about-value,
  .about-principle,
  .about-cap,
  .evo-legal-card{
    max-width:100%!important;
    min-width:0!important;
    padding:20px!important;
    border-radius:18px!important;
  }

  /* -------------------------------
     CONTACT FORM
     ------------------------------- */

  #contact .contact-form{
    width:100%!important;
    padding:16px!important;
    border-radius:20px!important;
  }

  #contact .form-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  #contact .form-grid input:not([type="checkbox"]):not([type="radio"]),
  #contact .form-grid select,
  #contact .form-grid textarea{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    font-size:16px!important;
    line-height:1.4!important;
    padding:12px 13px!important;
    border-radius:11px!important;
  }

  #contact .form-grid input:not([type="checkbox"]):not([type="radio"]),
  #contact .form-grid select{
    min-height:48px!important;
  }

  #contact .form-grid textarea{
    min-height:128px!important;
    resize:vertical!important;
  }

  /* Exact giant-checkbox fix */
  #contact .form-grid .evo-form-consent{
    width:100%!important;
    padding:10px 0 0!important;
    gap:12px!important;
  }

  #contact .form-grid .evo-form-consent label{
    display:grid!important;
    grid-template-columns:18px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:start!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    font-size:13px!important;
    line-height:1.55!important;
  }

  #contact .form-grid .evo-form-consent input[type="checkbox"]{
    appearance:auto!important;
    -webkit-appearance:checkbox!important;
    display:block!important;
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    min-height:18px!important;
    max-width:18px!important;
    max-height:18px!important;
    padding:0!important;
    margin:2px 0 0!important;
    border-radius:4px!important;
    box-shadow:none!important;
    transform:none!important;
    flex:none!important;
    accent-color:#5b6df5!important;
  }

  #contact .form-grid .evo-form-consent span{
    min-width:0!important;
  }

  #contact .form-grid button[type="submit"]{
    width:100%!important;
    min-height:50px!important;
    font-size:15px!important;
    border-radius:14px!important;
  }

  /* -------------------------------
     FOOTER
     ------------------------------- */

  .footer.evo-footer{
    overflow:hidden!important;
  }

  .evo-footer-wrap{
    width:calc(100% - 28px)!important;
    padding:34px 0 26px!important;
  }

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

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

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

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

  .evo-footer-cta{
    display:block!important;
    width:100%!important;
    justify-self:stretch!important;
    text-align:left!important;
  }

  /* No decorative circle behind footer CTA */
  .evo-footer-orb{
    display:none!important;
  }

  .evo-footer-cta>span{
    display:block!important;
    margin:0 0 10px!important;
    font-size:10px!important;
    line-height:1.3!important;
    letter-spacing:.14em!important;
  }

  .evo-footer-cta>a{
    display:inline-flex!important;
    align-items:center!important;
    max-width:100%!important;
    font-size:13px!important;
    line-height:1.35!important;
    overflow-wrap:anywhere!important;
  }

  .evo-footer-rule{
    margin:26px 0 18px!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;
    min-height:44px!important;
    justify-content:flex-start!important;
    font-size:12px!important;
  }

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

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

  .footer.evo-footer .evo-legal-links a,
  .footer.evo-footer .evo-cookie-settings{
    font-size:10px!important;
    line-height:1.4!important;
  }

  /* -------------------------------
     LEGAL PAGES
     ------------------------------- */

  .evo-legal-main{
    padding-top:78px!important;
  }

  .evo-legal-hero{
    padding:54px 0 30px!important;
  }

  .evo-legal-hero h1{
    font-size:clamp(40px,12vw,58px)!important;
    line-height:.98!important;
  }

  .evo-legal-hero p{
    font-size:14px!important;
    line-height:1.65!important;
  }

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

  .evo-legal-nav{
    position:static!important;
    padding:14px!important;
  }

  .evo-legal-nav a{
    font-size:12px!important;
  }

  /* -------------------------------
     COOKIE BANNER
     ------------------------------- */

  .evo-cookie-banner{
    left:10px!important;
    right:10px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    padding:15px!important;
    border-radius:18px!important;
  }

  .evo-cookie-inner{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }

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

  .evo-cookie-copy p{
    font-size:12px!important;
    line-height:1.55!important;
  }

  .evo-cookie-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }

  .evo-cookie-actions button{
    min-height:42px!important;
    font-size:10px!important;
  }

  /* -------------------------------
     EVO ASSISTANT
     ------------------------------- */

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

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

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

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

/* -------------------------------
   NARROW PHONES: 320px–374px
   ------------------------------- */
@media (max-width:374px){

  .container,
  .mp-hero .container,
  .mp-section>.container,
  .mp-cta>.container,
  .contact-socials>.container,
  .evo-footer-wrap{
    width:calc(100% - 22px)!important;
  }

  .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 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:112px!important;
  }

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

  .film-kicker{
    max-width:286px!important;
    font-size:8px!important;
  }

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

  .film-actions{
    flex-direction:column!important;
    width:min(100%,270px)!important;
  }

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

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

/* -------------------------------
   LARGE PHONES: 430px–767px
   ------------------------------- */
@media (min-width:430px) and (max-width:767px){
  .film-final-copy{
    max-width:410px!important;
  }

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

  .film-value{
    width:370px!important;
  }
}

/* reduced motion: final hero is already static on phone */
@media (max-width:767px) and (prefers-reduced-motion:reduce){
  .film-final-scene{
    opacity:1!important;
    transform:none!important;
    animation:none!important;
  }
}
