/* AMM v2.20.1 · Mobile-first public homepage polish
   Keeps desktop unchanged; trims repeated choices and prevents the mobile dock from sitting on content. */
@media (max-width:760px){
  html{scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom));}
  body:has(.mobile-dock){padding-bottom:calc(68px + env(safe-area-inset-bottom));}

  /* Keep the opening screen focused on message + action. */
  #home.hero{
    padding-top:32px;
    padding-bottom:24px;
    gap:0;
  }
  #home .hero-copy{max-width:none;}
  #home .hero-visual{display:none!important;}
  #home .eyebrow{margin-bottom:11px;}
  #home.hero h1{
    font-size:clamp(46px,13.4vw,62px);
    line-height:.9;
    letter-spacing:-.058em;
    max-width:100%;
  }
  #home .lede{
    font-size:16px;
    line-height:1.48;
    margin:20px 0 18px;
    max-width:36rem;
  }
  #home .hero-actions{
    display:grid;
    grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);
    gap:9px;
    margin-top:0;
  }
  #home .hero-actions>a,#home .hero-actions>button{
    min-width:0;
    min-height:50px;
    padding:12px 13px;
    border-radius:14px;
    font-size:14px;
    line-height:1.15;
    white-space:normal;
    text-align:center;
  }

  /* One slim horizontally-scrollable usage rail rather than a wrapping block. */
  #home .trust-row{
    gap:7px;
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
    margin-top:20px;
    margin-left:-2px;
    padding:1px 2px 5px;
    -webkit-overflow-scrolling:touch;
  }
  #home .trust-row::-webkit-scrollbar{display:none;}
  #home .trust-row span{
    flex:0 0 auto;
    padding:7px 9px;
    font-size:9px;
    letter-spacing:.1em;
  }

  /* Search and Brief already exist above, so mobile only keeps genuinely different routes. */
  #home .amm-x-intent-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin:12px 0 0;
  }
  #home .amm-x-intent[data-intent="catalogue"],
  #home .amm-x-intent[data-intent="contact"]{display:none!important;}
  #home .amm-x-intent{
    min-height:82px;
    padding:12px;
    border-radius:14px;
    display:grid;
    align-content:center;
  }
  #home .amm-x-intent b{font-size:14px;line-height:1.15;}
  #home .amm-x-intent small{font-size:11px;line-height:1.32;margin-top:5px;}

  /* Dock stays reachable without visually swallowing the page. */
  .mobile-dock{
    padding:5px 4px calc(5px + env(safe-area-inset-bottom))!important;
    min-height:58px;
    box-shadow:0 -10px 28px rgba(0,0,0,.22);
  }
  .mobile-dock a,.mobile-dock button{
    min-height:45px;
    padding:4px 1px!important;
    font-size:9.5px!important;
    gap:0!important;
  }
  .mobile-dock span{font-size:19px!important;}
  .mobile-dock b{right:13%!important;top:1px!important;}

  /* Never let the final visible control disappear behind fixed navigation. */
  .page-view-mode main>.section:not([hidden]){
    scroll-margin-bottom:calc(76px + env(safe-area-inset-bottom));
  }
}

@media (max-width:430px){
  #home.hero{padding-left:15px;padding-right:15px;padding-top:28px;}
  #home.hero h1{font-size:clamp(44px,13.2vw,57px);}
  #home .lede{font-size:15.5px;margin-top:18px;}
  #home .hero-actions{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);}
  #home .hero-actions>a,#home .hero-actions>button{font-size:13.5px;padding-left:10px;padding-right:10px;}
  #home .amm-x-intent small{font-size:10.5px;}
}

@media (max-width:360px){
  #home .hero-actions{grid-template-columns:1fr;}
  #home .amm-x-intent-row{grid-template-columns:1fr 1fr;}
}
