/* LHM CRM — mobile-first experience patch.
 * Scoped to landing page; avoids replacing existing colors or business logic.
 * Covers 320/360/375/390/414/768px, keyboard, notches and reduced motion. */
:root{--mobile-touch:44px}
.ai-home{width:100%;min-width:0}
.ai-home img,.ai-home svg{max-width:100%}
.ai-home :where(section,article,header,footer,.ai-hero-copy,.ai-hero-visual){min-width:0}
.ai-home .ai-mobile-menu{overscroll-behavior:contain}
.ai-home .ai-mobile-menu[hidden]{display:none!important}
.ai-home .ai-nav-toggle{flex:none;min-width:44px;min-height:44px}
.ai-home .ai-modal-close{
  display:grid;place-items:center;
  min-width:44px;min-height:44px;padding:0!important;
  color:#475569!important;border-radius:12px;z-index:2
}
.ai-home .ai-modal-close:hover{background:#eef4ff;color:#114fad!important}
.ai-home .ai-mobile-dialog{overscroll-behavior:contain;scrollbar-gutter:stable}
.ai-home .ai-mobile-modal{overscroll-behavior:contain}
.ai-home .ai-showcase-tab-list{min-width:0}
.ai-home .ai-showcase-tab-list .ai-tab-short{display:none}
.ai-home .ai-showcase-tab-list button{min-height:44px}
.ai-home #pricing .grid>div{min-width:0}
.ai-home .ai-feature-card p,.ai-home #howitworks p,.ai-home #faq p{overflow-wrap:break-word}
@media(max-width:900px){
 .ai-home .ai-nav .ai-nav-inner{height:66px}
 .ai-home .ai-nav-links{display:none!important}
 .ai-home .ai-nav-toggle{display:inline-flex!important}
 .ai-home .ai-mobile-menu{
   left:12px;right:12px;top:calc(100% + 5px);
   max-height:min(76dvh,600px);overflow-y:auto;
   padding:10px;border-radius:16px;box-shadow:0 20px 45px #0d2f5b28
 }
 .ai-home .ai-mobile-menu a{
   display:flex;align-items:center;
   min-height:44px;padding:11px 15px;
   font-size:14px;line-height:1.45;color:#1b304a
 }
 .ai-home .ai-mobile-menu .ai-mobile-menu-action{
   background:#edf5ff;color:#155bc1;font-weight:750;margin-top:5px
 }
 .ai-home .ai-hero-visual::before{inset:-8px 0 8px 3px}
 .ai-home #showcase{max-width:100%;min-width:0}
 .ai-home #pricing .grid{gap:18px}
}
@media(max-width:767px){
 html{scroll-padding-top:76px}
 .ai-home{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important;overflow-x:clip}
 .ai-home .ai-nav{z-index:70!important}
 .ai-home .ai-nav .ai-nav-inner{padding-inline:12px!important;gap:7px!important}
 .ai-home .ai-brand{gap:8px;flex:1;min-width:0}
 .ai-home .ai-brand-name{font-size:18px!important}
 .ai-home .ai-brand-subtitle{display:none!important}
 .ai-home .ai-nav-action-primary{min-height:42px;padding:10px 11px!important;font-size:11px!important}
 .ai-home .ai-nav-toggle{width:44px;height:44px}
 .ai-home .ai-hero{padding:39px 16px 27px!important;overflow:hidden}
 .ai-home .ai-hero h1{font-size:clamp(32px,8.4vw,43px)!important;line-height:1.2!important;letter-spacing:-.057em!important;overflow-wrap:normal}
 .ai-home .ai-hero-description{font-size:14px!important;line-height:1.78!important}
 .ai-home .ai-hero-cta{grid-template-columns:minmax(0,1fr)!important}
 .ai-home .ai-hero-cta .ai-btn{min-height:48px;font-size:13px!important;width:100%;white-space:normal;text-align:center}
 .ai-home .ai-eyebrow{font-size:9px!important;max-width:100%;white-space:normal;line-height:1.55;text-align:left}
 .ai-home .ai-hero-trust{font-size:11px;gap:9px 14px}
 .ai-home .ai-hero-visual{padding:24px 9px 22px!important;width:100%!important;max-width:100%;overflow:visible}
 .ai-home .ai-laptop{max-width:100%}
 .ai-home .ai-laptop img{width:100%;height:auto}
 .ai-home .ai-floating-chip{max-width:142px!important;padding:7px 8px!important;gap:6px!important}
 .ai-home .ai-floating-chip strong{font-size:9px!important}
 .ai-home .ai-floating-chip small{display:none!important}
 .ai-home .ai-chip-top{right:0!important;top:0!important}
 .ai-home .ai-chip-bottom{left:0!important;bottom:14px!important}
 .ai-home .ai-visual-caption{font-size:10px}
 .ai-home .ai-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
 .ai-home .ai-trust-strip{padding:18px 16px!important}
 .ai-home .ai-trust-item{justify-content:flex-start}
 .ai-home .ai-trust-item strong{font-size:11px}
 .ai-home .ai-trust-item small{font-size:10px}
 .ai-home #showcase{padding:34px 12px 45px!important}
 /* Horizontally swipe between screenshot choices instead of 4 stacked rows. */
 .ai-home .ai-showcase-tab-list{
   display:flex!important;flex-wrap:nowrap!important;
   align-items:stretch!important;justify-content:flex-start!important;
   width:100%;gap:9px!important;overflow-x:auto;overflow-y:hidden;
   scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
   scrollbar-width:thin;scrollbar-color:#b1c8e8 transparent;
   padding:4px 2px 12px;margin-bottom:14px!important
 }
 .ai-home .ai-showcase-tab-list .mockup-tab-btn{
   flex:0 0 auto;white-space:nowrap;
   min-height:44px;padding:9px 14px!important;
   font-size:12px!important;scroll-snap-align:start
 }
 .ai-home .ai-showcase-tab-list .ai-tab-full{display:none}
 .ai-home .ai-showcase-tab-list .ai-tab-short{display:inline!important}
 .ai-home .ai-showcase-browser-info{display:none!important}
 .ai-home #showcase .rounded-3xl.bg-white{border-radius:15px!important}
 .ai-home #showcase .rounded-3xl.bg-white>div:first-child{padding:10px 12px!important}
 .ai-home #showcase .mockup-tab-btn{font-size:12px!important}
 .ai-home #showcase .mockup-view img{width:100%;max-width:100%;height:auto;object-fit:contain}
 .ai-home #features,.ai-home #howitworks,.ai-home #pwa-guide,.ai-home #pricing,.ai-home #faq{
   padding-top:46px!important;padding-bottom:49px!important
 }
 .ai-home #features{padding-inline:16px!important}
 .ai-home .ai-feature-grid{gap:13px}
 .ai-home .ai-feature-card{padding:23px 20px!important}
 .ai-home .ai-feature-card h3{font-size:17px!important}
 .ai-home .ai-feature-card p{font-size:13px!important;line-height:1.8}
 .ai-home .ai-ai-focus{padding:42px 14px 18px}
 .ai-home .ai-ai-focus-inner{padding:26px 19px!important;gap:16px}
 .ai-home .ai-ai-focus h2{font-size:25px!important}
 .ai-home .ai-ai-focus p{font-size:13px!important}
 .ai-home #howitworks,#pricing,#faq{padding-inline:16px!important}
 .ai-home #howitworks .grid,#pricing .grid{gap:15px!important}
 .ai-home #howitworks .grid>div{padding:20px!important}
 .ai-home #howitworks p,.ai-home #faq p{font-size:13px!important;line-height:1.8}
 .ai-home #pricing .grid>div{padding:22px 20px!important;border-radius:18px!important}
 .ai-home #pricing .grid>div:nth-child(2){margin-top:8px}
 .ai-home #pricing .grid>div .space-y-6{gap:13px}
 .ai-home #pricing .grid>div .text-xs{font-size:12px!important;line-height:1.65}
 .ai-home #pricing .grid>div button{min-height:46px;font-size:14px!important}
 .ai-home #pwa-guide{padding-inline:14px!important}
 .ai-home #pwa-guide>.rounded-3xl{padding:23px 18px!important;border-radius:18px!important}
 .ai-home #pwa-guide h2{font-size:27px!important}
 .ai-home #pwa-guide p{font-size:13px!important;line-height:1.85}
 .ai-home .ai-pwa-actions{display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px!important}
 .ai-home .ai-pwa-actions>*{width:100%;min-height:46px;justify-content:center;text-align:center;font-size:13px!important}
 .ai-home #pwaTabBtn-ios,.ai-home #pwaTabBtn-android{min-height:44px;padding:10px 9px!important;font-size:12px!important;color:#184178}
 .ai-home #pwaCard-ios,.ai-home #pwaCard-android{padding:16px!important}
 .ai-home #pwaCard-ios p,.ai-home #pwaCard-android p{font-size:13px!important}
 .ai-home #faq .space-y-4>div{padding:19px!important}
 .ai-home .ai-v3-footer{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
 .ai-home .ai-v3-cta-actions>*{min-height:46px}
 /* Keep only two useful thumb-zone actions; Zalo remains in menu and footer. */
 .ai-home .ai-mobile-actions{
   z-index:45;padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px))!important;
   gap:10px!important;max-width:100%;border-top:1px solid #d8e6f4!important;
   box-shadow:0 -9px 28px #0e315321!important
 }
 .ai-home .ai-mobile-actions>*{
   flex:1 1 0;min-width:0;min-height:46px;
   border-radius:12px!important;padding:11px 12px!important;
   font-family:"Be Vietnam Pro",sans-serif;
   font-size:13px!important;line-height:1.3;
   font-weight:750!important;white-space:nowrap;
   display:flex;align-items:center;justify-content:center
 }
 .ai-home .ai-mobile-actions .ai-mobile-try{background:#1464da!important;color:#fff!important}
 .ai-home .ai-mobile-actions .ai-mobile-login{background:#f0f5fd!important;color:#164277!important;border:1px solid #cdddf2!important}
 /* Mobile forms must remain usable when the software keyboard opens. */
 .ai-home .ai-mobile-modal{
   z-index:90!important; /* Above sticky navbar (70) and bottom CTA (45). */
   padding:12px!important;
   align-items:center!important;
   overflow:hidden;
 }
 .ai-home .ai-mobile-dialog{
   width:min(100%,520px)!important;
   max-height:calc(100dvh - 24px)!important;
   overflow-y:auto!important;
   border-radius:18px!important;
   padding:20px 17px 22px!important;
   -webkit-overflow-scrolling:touch;
 }
 .ai-home .ai-mobile-dialog input,
 .ai-home .ai-mobile-dialog select,
 .ai-home .ai-mobile-dialog textarea{
   font-size:16px!important;min-height:46px;
 }
 .ai-home .ai-mobile-dialog label{font-size:13px!important;line-height:1.5}
 .ai-home .ai-mobile-dialog button[type="submit"]{min-height:47px;font-size:14px!important}
 .ai-home .ai-mobile-dialog h3{font-size:19px!important;line-height:1.4!important}
 .ai-home .ai-mobile-dialog .text-slate-300{color:#475569!important}
 .ai-home .ai-mobile-dialog .text-emerald-400{color:#047857!important}
 .ai-home .ai-mobile-dialog .text-sky-400{color:#1e5bac!important}
 .ai-home .ai-modal-close{position:sticky!important;float:right;top:0;right:0;margin:-7px -5px 1px 6px;background:#f0f5fb}
 .ai-home:has(.ai-mobile-modal:not(.hidden)) .ai-mobile-actions{visibility:hidden;pointer-events:none}
}
@media(max-width:370px){
 .ai-home .ai-nav-action-primary{display:none!important}
 .ai-home .ai-brand-name{font-size:17px!important}
 .ai-home .ai-trust-grid{gap:12px 5px}
 .ai-home .ai-trust-item{gap:7px}
 .ai-home .ai-knowledge-grid>a{grid-template-columns:minmax(0,1fr) 88px}
 .ai-home .ai-mobile-actions>*{font-size:12px!important;padding-inline:7px!important}
}
@media(max-width:390px){
 .ai-home .ai-v3-footer-grid{grid-template-columns:1fr!important;gap:28px!important}
 .ai-home .ai-v3-footer-grid>div{grid-column:1!important}
}
@media(prefers-reduced-motion:reduce){
 .ai-home .ai-showcase-tab-list{scroll-behavior:auto}
 .ai-home .ai-knowledge-grid>a,.ai-home .ai-feature-card{transition:none!important;transform:none!important}
}


@media(max-width:900px){
 .ai-home .ai-mobile-menu-login{
   min-height:44px;text-align:left;border-radius:9px;
   padding:11px 15px;margin-top:4px;width:100%;
   font-family:"Be Vietnam Pro",sans-serif;
   font-size:14px;font-weight:750;line-height:1.45;
   color:#fff;background:#165fcf;border:1px solid #165fcf;
 }
 .ai-home .ai-mobile-menu-login:focus-visible{outline:3px solid #8cbbff;outline-offset:2px}
 .ai-home .ai-mobile-menu-login:hover{background:#0f4ea9}
}
@media(max-width:767px){
 .ai-home:has(.ai-mobile-modal:not(.hidden)){overflow:hidden!important}
 .ai-home .ai-mobile-dialog input:focus-visible,
 .ai-home .ai-mobile-dialog button:focus-visible{outline:2px solid #2d7fe9;outline-offset:2px}
 .ai-home .ai-showcase-tab-list:focus-within{scrollbar-color:#2b7be8 transparent}
 .ai-home #pricing .grid>div .text-4xl,
 .ai-home #pricing .grid>div .text-5xl{font-size:clamp(32px,9vw,42px)!important}
 .ai-home .ai-mobile-actions button:focus-visible{outline:3px solid #77b2ff;outline-offset:2px}
}
