/* Mobile / tablet overrides. Loads LAST so it wins over theme.css. */

/* Sticky "Book a Demo" bar (phones only, appears after the hero) */
.m-sticky{display:none}

@media(max-width:1080px){
  .hero{padding:44px 0 64px}
  .hero-grid{grid-template-columns:1fr;gap:40px}
  .hero-copy{max-width:640px}
  .hero-visual{max-width:460px;margin:0 auto;width:100%}
  .fc-1{left:-8px}.fc-2{right:-8px}
  .hero-visual .fc-1{left:-8px}.hero-visual .fc-2{right:-8px}.hero-visual .fc-3{left:-8px}
}

@media(max-width:720px){
  html{scroll-padding-top:72px}
  .bar{height:64px;gap:12px}.brand img{height:44px}
  .h1{font-size:clamp(32px,9.2vw,42px);line-height:1.08}
  .h2{font-size:clamp(27px,7.4vw,34px)}
  .lead,.hero .lead{font-size:16.5px}
  .eyebrow{font-size:11.5px;padding:6px 11px;letter-spacing:.06em}
  .sec-head{margin-bottom:34px}
  .section{padding:64px 0}

  /* hero */
  .hero-grid{gap:30px}
  .btn-row{flex-direction:column;gap:10px;margin:24px 0 20px}
  .btn-row .btn{width:100%}
  .hero-points{flex-direction:column;gap:8px}
  .hero-visual::before,.hero-visual::after{inset:3% 0;border-radius:32px}
  .hero-visual .phone{margin:26px 0;width:min(290px,84%)}
  .hero-visual .float-chip{display:flex;padding:8px 11px;font-size:12px}
  .hero-visual .fc-1{left:-2px;top:2%}
  .hero-visual .fc-2{right:-2px;top:auto;bottom:2%}
  .hero-visual .fc-3{display:none}

  .strip .wrap{gap:10px 18px;padding-top:18px;padding-bottom:18px}
  .strip p{width:100%;text-align:center}

  /* demo section */
  .tab-list{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;margin:0 -18px 22px;padding:2px 18px 8px;scrollbar-width:none}
  .tab-list::-webkit-scrollbar{display:none}
  .tab{flex:none;white-space:nowrap}
  .demo-grid{padding:20px 14px;gap:26px;border-radius:18px}
  .demo-steps .h3{font-size:19px;margin-bottom:16px}
  .phone{width:min(290px,100%)}
  .canvas-bar{flex-wrap:wrap;gap:6px}.canvas-bar .tag-example{margin-left:0}
  .canvas-body{padding:22px 12px}
  .wf,.wf-mini{max-width:none}
  .wf .node,.wf-mini .node{padding:12px 13px;gap:12px}
  .node-st{font-size:10.5px;padding:3px 8px}
  .wf-loop{margin-top:22px;font-size:13.5px}
  .browser{max-width:100%}
  .dash-table td,.dash-table th{padding:9px 7px}

  /* cards / lists */
  .card,.outcome,.steps li,.emp{padding:22px}
  .emp h3{font-size:21px}
  .chan{padding:18px}
  .hub-core{width:100%;justify-content:center}
  .hub-base{flex-direction:column;text-align:center;gap:8px}

  /* forms: 16px inputs stop iOS from zooming; big touch targets */
  .field input,.field select,.field textarea{font-size:16px;padding:13px 14px}
  .btn{min-height:48px}
  .btn-sm{min-height:44px}
  .faq summary{padding:18px 30px 18px 0;font-size:16px}
  .faq details{padding:0 18px}
  .cta-card{padding:28px 18px}
  .cta-form{padding:20px 16px}
  .check-consent{font-size:12px}

  /* popup */
  .modal-body{padding:22px 18px 28px}
  .modal-title{font-size:23px}
  .opt{padding:14px 15px;font-size:15px;min-height:50px}
  .modal-x{width:42px;height:42px}

  /* footer */
  .site-footer{padding-bottom:70px}
  .foot-base{flex-direction:column}

  /* sticky CTA */
  .m-sticky{display:block;position:fixed;left:0;right:0;bottom:0;z-index:90;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-top:1px solid var(--line);transform:translateY(110%);transition:transform .25s ease}
  .m-sticky.show{transform:none}
  body.noscroll .m-sticky{display:none}
}

@media(max-width:400px){
  .wrap{padding:0 14px}
  .tab-list{margin:0 -14px 20px;padding:2px 14px 8px}
  .demo-grid{padding:16px 10px}
  .phone{width:min(270px,100%)}
  .hero-visual .phone{width:min(270px,88%)}
  .node-txt small{font-size:11.5px}
  .field-row{gap:0}
}

@media(max-width:340px){
  .h1{font-size:30px}
  .node-st{display:none}
}

@media(hover:none){
  .card:hover,.chan:hover,.emp:hover,.steps li:hover{transform:none}
}
