/* Mobile review: compact navigation, safe grid sizing and readable touch targets. */
:root { --header-height: 88px; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
.contact-grid > *, .contact-item > span, .section-head > *, .erp-heading > *, .about-grid > *, .plans-grid > *, .process-grid > *, .client-brands > * { min-width: 0; }
.contact-item > span:last-child { overflow-wrap: anywhere; }
@media (max-width: 920px) {
  :root { --header-height: 72px; }
  html { scrollbar-gutter: stable; }
  html.mobile-nav-open { overflow: hidden; overscroll-behavior: none; }
  .navbar { min-height: var(--header-height); gap: 16px; }
  .brand-image { width: 180px; max-width: calc(100vw - 110px); }
  .mobile-toggle { width: 44px; height: 44px; }
  .navbar-wrap { padding-top: env(safe-area-inset-top, 0px); background: #07101ef5; backdrop-filter: none; }
  .navbar .site-nav { top: calc(100% + 8px); padding: 12px; max-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px) - 24px); overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; scroll-padding: 14px; }
  .site-nav > a,.site-nav .mega-toggle { min-height: 48px; display: flex; align-items: center; font-size: 14px; padding: 12px 14px; }
  .site-nav > .nav-cta { justify-content: center; margin-top: 10px; }
  .nav-backdrop { inset: calc(var(--header-height) + env(safe-area-inset-top, 0px)) 0 0; backdrop-filter: none; background: #020916bf; touch-action: none; }
  .mega-menu { padding: 16px 16px 0; }
  .site-nav .menu-link { min-height: 56px; padding: 10px 8px; }
  .menu-link strong { font-size: 14px; }
  .menu-link small { font-size: 12px; }
  .site-nav .menu-index { min-height: 44px; padding-top: 10px; font-size: 13px; }
  .site-nav .menu-feature { min-height: 160px; padding: 20px; }
  .mega-footer { margin: 0 -16px; padding: 8px 16px; }
  .site-nav .mega-footer a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; width: 100%; font-size: 12px; }
  .hero { padding-top: 124px; }
  .hero-discover,.hero-foot a, main .text-link { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-foot { gap: 6px; }
  .section-head,.erp-heading { gap: 20px; }
  .contact-grid { grid-template-columns: minmax(0,1fr); }
  .contact-item { gap: 12px; }
  .contact input,.contact textarea,.contact select { font-size: 16px; }
  .contact-form .form-button { min-height: 52px; white-space: normal; line-height: 1.5; }
  .tech-section::before { animation: none; }
}
@media (max-width: 650px) {
  section { padding: 68px 0; }
  .hero { min-height: min(820px,100svh); padding: calc(var(--header-height) + 40px) 0 130px; }
  .hero h1 { font-size: clamp(36px,10.6vw,58px); letter-spacing: -1.5px; line-height: 1.06; }
  .hero-copy > p { max-width: 100%; font-size: 15px; line-height: 1.75; margin-bottom: 24px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.4px; gap: 10px; margin-bottom: 24px; }
  .hero .buttons { gap: 12px 20px; }
  .hero .btn-primary { min-height: 48px; font-size: 12px; }
  .hero-discover { font-size: 12px; }
  .hero-foot { bottom: 18px; padding-top: 0; }
  .hero-foot > span { flex-wrap: wrap; line-height: 1.7; font-size: 10px; gap: 8px; }
  .hero-foot a { font-size: 11px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat { padding: 24px 14px; }
  .stat span { font-size: 12px; line-height: 1.6; }
  .section-head { display: flex; flex-direction: column; margin-bottom: 32px; }
  .section-head h2,.about-text h2,.erp-heading h2 { font-size: clamp(29px,8.3vw,39px); letter-spacing: -.9px; line-height: 1.16; }
  .section-head > p,.erp-heading > p,.about-text p { font-size: 15px; line-height: 1.8; }
  .services-grid,.erp-features,.plans-grid,.process-grid,.testimonials-grid,.about-grid,.form-row { grid-template-columns: minmax(0,1fr); }
  .service-card { padding: 26px 22px 28px 53px; }
  .service-card .service-icon { left: 19px; }
  .service-card p,.erp-feature p,.process-card p { font-size: 14px; line-height: 1.8; }
  .erp-feature { padding: 26px; }
  .erp-feature + .erp-feature { border-left: 0; border-top: 1px solid #2a3d58; }
  .erp-feature h3 { font-size: 22px; }
  .erp-bottom { align-items: stretch; }
  .erp-bottom .btn { min-height: 48px; justify-content: space-between; }
  .erp-bottom > span { line-height: 1.9; }
  .plan-card { padding: 28px; }
  .plan-price { font-size: clamp(37px,11vw,46px); }
  .plan-button { min-height: 48px; font-size: 13px; }
  .custom-plan { gap: 14px; }
  .custom-plan h3 { line-height: 1.5; }
  .client-brands { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-brand { padding: 24px 16px; }
  .client-brand > span { font-size: clamp(16px,4.8vw,21px); overflow-wrap: anywhere; }
  .client-brand > small { font-size: 8px; letter-spacing: 1.1px; }
  .client-brand + .client-brand { border-left: 1px solid #2b3e58; }
  .client-brand:nth-child(odd) { border-left: 0; }
  .client-brand:nth-child(n+3) { border-top: 1px solid #2b3e58; }
  .client-brand:last-child { grid-column: 1/-1; }
  .testimonials-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 36px; }
  .testimonials-heading h3 { line-height: 1.4; }
  .sample-label { line-height: 1.7; }
  .testimonial { padding: 26px; }
  .about-grid { gap: 30px; }
  .about-panel { padding: 26px; }
  .about-panel h2 { font-size: 28px; }
  .cta { padding: 0 0 64px; }
  .cta-box { padding: 28px; grid-template-columns: minmax(0,1fr); gap: 24px; }
  .cta-box h2 { font-size: 32px; }
  .cta-box p { font-size: 15px; }
  .cta-box .btn { min-height: 48px; width: 100%; }
  .contact-info,.contact-form { padding: 22px; }
  .contact-info h3,.contact-form h3 { font-size: 26px; }
  .contact-item { align-items: flex-start; }
  .contact-item > span:last-child { flex: 1; }
  .contact-item span { font-size: 14px; }
  .contact-icon { width: 38px; height: 38px; }
  .coverage { padding: 16px; }
  .coverage .section-kicker { letter-spacing: 1px; font-size: 9px; gap: 9px; }
  .coverage p { font-size: 14px; }
  footer { padding: 25px 0; line-height: 1.8; }
}
@media (max-width: 360px) {
  .brand-image { width: 166px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.6px; }
  .hero .buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .btn-primary { justify-content: space-between; }
  .hero-discover { align-self: flex-start; }
  .section-head h2,.erp-heading h2,.about-text h2 { font-size: 29px; }
  .service-card h3 { font-size: 21px; }
  .plan-card { padding: 25px; }
}
@media (max-width: 920px) and (max-height: 500px) {
  :root { --header-height: 64px; }
  .brand-image { width: 155px; }
  .navbar .site-nav { max-height: calc(100dvh - var(--header-height) - 16px); top: calc(100% + 4px); }
}
