
/* NextCita Commercial — Mobile Pro 2.2
   Mobile-first polish layered on top of the approved visual system. */

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,.btn,a{touch-action:manipulation}
:focus-visible{outline:3px solid rgba(37,99,235,.32);outline-offset:3px}

@media(max-width:700px){
  body{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
  .site-header{
    top:0;
    padding-top:env(safe-area-inset-top);
    box-shadow:0 6px 24px rgba(15,23,42,.06)
  }
  .nav{
    min-height:64px;
    height:auto;
    padding:8px 0;
  }
  .brand img{width:148px;height:42px}
  .nav-actions{margin-left:auto}
  .nav-cta{
    min-height:42px;
    padding:10px 13px;
    border-radius:12px;
    font-size:11px
  }
  .menu-toggle{
    display:grid;
    place-content:center;
    width:44px;height:44px;
    flex:none;
  }
  .nav.open .nav-links{
    top:calc(64px + env(safe-area-inset-top));
    left:14px;right:14px;
    max-height:calc(100dvh - 92px);
    overflow:auto;
    padding:10px;
    border-radius:20px;
    box-shadow:0 24px 60px rgba(15,23,42,.18);
  }
  .nav.open .nav-links a{
    min-height:48px;
    display:flex;
    align-items:center;
    padding:12px 14px;
    border-radius:12px;
    font-size:14px;
  }
  .nav.open .nav-links a:hover{background:#f4f8ff}

  .hero{padding:38px 0 38px}
  .hero-grid{gap:30px}
  .hero-copy{text-align:left}
  .hero-copy .eyebrow{font-size:10px}
  .hero h1{
    font-size:clamp(42px,12vw,56px);
    line-height:.98;
    letter-spacing:-.055em;
    margin:16px 0 18px
  }
  .lead{
    font-size:15px;
    line-height:1.65;
    margin:0;
    color:#53647b
  }
  .hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin:23px 0 20px
  }
  .hero-actions .btn{
    width:100%;
    min-height:52px;
    font-size:14px;
  }
  .hero-trust{
    display:grid;
    grid-template-columns:1fr 1fr;
    justify-content:initial;
    gap:12px;
    margin-top:20px
  }
  .trust-item{
    min-width:0;
    padding:10px;
    border:1px solid #e6edf6;
    border-radius:15px;
    background:#fff
  }
  .trust-item:nth-child(3){grid-column:1/-1}
  .hero-visual{min-height:315px}
  .hero-window{top:2px;right:0;transform:none;border-radius:18px}
  .hero-window img{height:270px}
  .window-top{height:34px;padding:0 9px}
  .window-url{font-size:8px}
  .floating-brand{right:8px;bottom:0;width:54px;height:54px;border-radius:16px}
  .floating-brand img{width:39px}

  .trust-strip{padding:0 0 20px}
  .trust-strip-inner{
    justify-content:flex-start;
    padding:14px;
    border-radius:16px;
    overflow-x:auto;
    flex-wrap:nowrap;
    white-space:nowrap;
    scrollbar-width:none
  }
  .trust-strip-inner::-webkit-scrollbar{display:none}
  .trust-strip-inner span{display:none}

  .section{padding:52px 0}
  .section-heading{margin-bottom:25px}
  .section-heading.centered{text-align:left}
  .section-heading h2,.showcase-copy h2{
    font-size:clamp(32px,9.5vw,42px);
    line-height:1.07
  }
  .section-heading p,.showcase-copy>p{font-size:14px;line-height:1.65}
  .benefit-card,.industry-tile,.step-card,.security-card,.adapt-card,.validation-card{
    border-radius:19px;
    padding:20px
  }
  .benefit-card p{min-height:0;font-size:13px}
  .benefit-card a,.text-link{display:inline-flex;min-height:42px;align-items:center}

  .product-shot-wrap{padding:0}
  .shot-backdrop{display:none}
  .product-shot{
    border-radius:17px;
    box-shadow:0 18px 44px rgba(15,23,42,.11)
  }
  .product-shot img{max-height:none}
  .story-card,.showcase-panel,.solution-card{border-radius:20px}
  .story-copy,.showcase-panel{padding:21px}
  .story-copy h3,.showcase-panel h2{font-size:25px}
  .story-image{padding:0 10px 10px}
  .dual-shots{min-height:285px}
  .dual-shots .product-shot{width:88%}

  .section-dark{border-radius:0}
  .steps-grid{gap:10px}
  .step-card{min-height:auto}
  .step-icon{margin-bottom:18px}
  .industry-tile{min-height:185px}
  .industry-tile p{min-height:0}

  .mega-cta{
    border-radius:22px;
    padding:26px 20px;
    text-align:left
  }
  .mega-cta-logo{margin:0 0 18px;width:150px}
  .mega-cta h2{font-size:25px;line-height:1.12}
  .mega-cta .btn{width:100%;min-height:50px}

  .footer-main{grid-template-columns:1fr 1fr;gap:24px 18px}
  .footer-brand{grid-column:1/-1}
  .footer-logo{width:180px}
  .site-footer{padding-bottom:30px}
  .copyright{font-size:10px;line-height:1.5}

  .page-hero{padding:46px 0 42px}
  .page-hero-grid{gap:28px}
  .page-copy{text-align:left}
  .page-copy h1{
    font-size:clamp(40px,11vw,51px);
    line-height:1.01
  }
  .page-copy>p{font-size:15px}
  .page-copy .hero-actions{justify-content:initial}
  .page-visual .app-window img{height:260px}

  .function-card{
    min-height:82px;
    padding:15px;
    grid-template-columns:42px minmax(0,1fr) auto
  }
  .function-card h3{font-size:15px}
  .function-card p{font-size:11px;line-height:1.4}
  .solution-card h3{font-size:23px}
  .solution-preview img{max-height:none}
  .beta-visual{min-height:330px;border-radius:22px}
  .beta-note{padding:20px}
  .beta-note .btn{width:100%;min-height:48px}
  .shield-scene{min-height:330px}
  .faq-q{min-height:56px;font-size:13px}
  .faq-a p{font-size:12px}
  .legal-hero{padding:58px 0}
  .legal-wrap h1{font-size:40px}
  .legal-card{padding:22px;border-radius:20px}
}

@media(max-width:390px){
  .container{width:min(100% - 22px,1180px)}
  .nav-cta{display:none}
  .hero h1{font-size:42px}
  .hero-trust{grid-template-columns:1fr}
  .trust-item:nth-child(3){grid-column:auto}
  .hero-visual{min-height:282px}
  .hero-window img{height:238px}
  .footer-main{grid-template-columns:1fr}
  .footer-brand{grid-column:auto}
}

/* Mobile bottom navigation for the public website */
.mobileWebBar{display:none}
@media(max-width:700px){
  .mobileWebBar{
    position:fixed;
    z-index:120;
    left:10px;right:10px;
    bottom:calc(8px + env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:8px;
    padding:8px;
    border:1px solid rgba(210,222,237,.95);
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(18px);
    border-radius:18px;
    box-shadow:0 16px 44px rgba(15,23,42,.16)
  }
  .mobileWebBar a{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    border-radius:13px;
    font-size:12px;
    font-weight:900
  }
  .mobileWebBar .mLogin{background:#eef4fb;color:#17345d}
  .mobileWebBar .mStart{background:linear-gradient(135deg,#2176ff,#1652dc);color:#fff}
}


/* NextCita Mobile Pro 2.3 — iPhone polish */
@media(max-width:700px){
  /* Header: cleaner and more compact */
  .site-header{
    background:rgba(255,255,255,.96);
  }
  .brand{
    display:flex;
    align-items:center;
    min-width:0;
  }
  .brand img{
    width:142px!important;
    height:36px!important;
    object-fit:contain!important;
    object-position:left center!important;
  }
  .nav{
    gap:8px!important;
    min-height:60px!important;
    padding:7px 0!important;
  }
  .nav-cta{
    min-height:40px!important;
    padding:9px 13px!important;
    font-size:11px!important;
    border-radius:12px!important;
    white-space:nowrap;
  }
  .menu-toggle{
    width:42px!important;
    height:42px!important;
    padding:0!important;
    border-color:#dce7f5!important;
    background:#fff!important;
    border-radius:14px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
  }
  .menu-toggle span{
    display:block!important;
    width:18px!important;
    height:2px!important;
    margin:0!important;
    border-radius:999px!important;
    background:#143158!important;
    opacity:1!important;
  }

  /* Beta page hero — reduce vertical bulk */
  .beta-hero{
    padding-top:44px!important;
    padding-bottom:34px!important;
  }
  .beta-hero .page-copy h1{
    font-size:clamp(40px,10.7vw,48px)!important;
    line-height:1.02!important;
    letter-spacing:-.045em!important;
    margin:13px 0 18px!important;
  }
  .beta-hero .page-copy>p{
    font-size:14px!important;
    line-height:1.55!important;
    margin-bottom:0!important;
  }
  .beta-hero .hero-actions{
    gap:9px!important;
    margin:22px 0 16px!important;
  }
  .beta-hero .hero-actions .btn{
    min-height:50px!important;
  }
  .beta-points{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    margin-top:16px!important;
  }
  .beta-points span{
    display:flex!important;
    align-items:center!important;
    min-height:38px!important;
    padding:8px 12px!important;
    border:1px solid #e1eaf5!important;
    background:#fff!important;
    border-radius:12px!important;
    font-size:12px!important;
    color:#4f6481!important;
  }
  .beta-points span::first-letter{
    color:#14b8a6;
  }

  .beta-hero .page-visual{
    margin-top:4px!important;
  }
  .beta-visual{
    min-height:280px!important;
    padding:24px 18px!important;
    border-radius:22px!important;
    gap:10px!important;
  }
  .beta-visual>img{
    width:84px!important;
    margin:0 auto 10px!important;
  }
  .beta-status{
    padding:12px 13px!important;
    border-radius:14px!important;
  }
  .beta-status b{font-size:12px!important}
  .beta-status small{font-size:10px!important}

  /* Better typography rhythm on all mobile pages */
  .eyebrow{
    font-size:10px!important;
    letter-spacing:.13em!important;
  }
  .page-copy h1{
    margin-top:14px!important;
  }

  /* Keep content away from Safari UI and fixed bar */
  main{
    padding-bottom:16px;
  }
}

@media(max-width:390px){
  .brand img{
    width:132px!important;
  }
  .nav-cta{
    display:inline-flex!important;
    font-size:10px!important;
    padding:8px 10px!important;
  }
  .menu-toggle{
    width:40px!important;
    height:40px!important;
  }
  .beta-hero .page-copy h1{
    font-size:40px!important;
  }
}
