/* ============================================================
   WarehouseOS — responsive breakpoints (mobile-dense)
   ============================================================ */

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .integrations {
    grid-template-columns: repeat(4, 1fr);
  }
  .flow {
    grid-template-columns: repeat(3, 1fr);
  }
  .flow-step:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 1024px) {
  .section {
    padding: 76px 0;
  }
  .sec-head {
    margin-bottom: 44px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    gap: 44px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process,
  .process.process-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .process::before {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
  .nav-menu a {
    padding: 8px 10px;
    font-size: 0.72rem;
  }
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-step:nth-child(2)::after {
    display: none;
  }
  .flow-step:nth-child(4)::after {
    display: none;
  }
  .flow-step:nth-child(3)::after {
    display: block;
  }
  .hs-label {
    font-size: 0.6rem;
    padding: 3px 7px;
  }
}

@media (max-width: 768px) {
  /* navbar stays ONE single line; menu drops down as an overlay panel */
  .navbar {
    padding: 7px 7px 7px 13px;
    top: 8px;
    width: calc(100% - 20px);
    max-width: none;
    border-radius: 10px;
    flex-wrap: nowrap;
    gap: 8px;
    background: var(--nav-bg-scrolled);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  .navbar.menu-open {
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-strong);
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    order: initial;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 11px 12px;
    font-size: 0.78rem;
  }

  .nav-menu a:active {
    background: var(--steel-soft);
    color: var(--steel-2);
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 118px 0 40px;
  }

  .hero-cta {
    margin-bottom: 36px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .app-frame::before,
  .app-frame::after {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow-step {
    padding: 16px 16px 18px;
  }

  .flow-step:not(:last-child)::after {
    display: block;
    top: auto;
    bottom: -14px;
    left: 34px;
    right: auto;
    width: 3px;
    height: 14px;
    background-image: linear-gradient(180deg, var(--green) 0 7px, transparent 7px 14px);
    background-size: 3px 14px;
    animation: dash-y 0.7s linear infinite;
  }

  .flow-step:nth-child(2)::after,
  .flow-step:nth-child(3)::after,
  .flow-step:nth-child(4)::after {
    display: block;
  }

  .flow-head {
    margin-bottom: 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .screen-desc {
    display: none;
  }

  .screen-body {
    padding: 11px 13px 13px;
    gap: 5px;
  }

  .gallery-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px 24px;
    padding: 0 16px 4px;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process,
  .process.process-3 {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }

  .integrations {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-box {
    padding: 48px 22px;
  }

  .section {
    padding: 60px 0;
  }

  .sec-head {
    margin-bottom: 34px;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 70px 14px 20px;
    align-content: center;
  }

  .lb-nav {
    position: absolute;
    bottom: 18px;
    z-index: 3;
  }

  .lb-prev {
    left: 18px;
  }

  .lb-next {
    right: 18px;
  }

  .lb-stage figcaption {
    padding-bottom: 60px;
  }

  .split-content .check-list li {
    font-size: 0.88rem;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 48px 0;
  }

  .sec-head {
    margin-bottom: 28px;
  }

  .sec-head h2 {
    font-size: 1.5rem;
  }

  .sec-head p {
    font-size: 0.88rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 0.94rem;
    margin-bottom: 0;
  }

  .hero-badge {
    font-size: 0.68rem;
    gap: 6px;
    padding: 7px 14px;
  }

  .hero {
    padding: 108px 0 36px;
  }

  .logo-text {
    font-size: 1.02rem;
  }

  .nav-actions .btn-hazard {
    padding: 8px 11px;
    font-size: 0.7rem;
  }

  .nav-actions {
    gap: 5px;
  }

  .btn-label-full {
    display: none;
  }

  .btn-label-short {
    display: inline;
  }

  .trust-grid {
    justify-content: center;
    gap: 14px 20px;
  }

  .trust-item {
    font-size: 0.76rem;
  }

  .trust-label {
    text-align: center;
  }

  .feature {
    padding: 18px;
  }

  .features-grid {
    gap: 12px;
  }

  .feature-top {
    margin-bottom: 12px;
  }

  .feature h3 {
    font-size: 1rem;
  }

  .feature p {
    font-size: 0.85rem;
  }

  .flow-step p {
    font-size: 0.82rem;
  }

  .pipeline {
    padding: 18px;
  }

  .pipe-block {
    padding: 13px 14px;
  }

  .kpi {
    padding: 18px 16px;
  }

  .kpi-num {
    font-size: 1.9rem;
  }

  .kpi-sub {
    font-size: 0.74rem;
  }

  .integrations {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .integration {
    padding: 15px 10px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }

  .app-caption {
    justify-content: center;
    gap: 4px;
  }

  .hotspots .hotspot:nth-child(2),
  .hotspots .hotspot:nth-child(3) {
    display: none;
  }

  .price-card {
    padding: 24px 20px;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .pricing-note .mono-label {
    font-size: 0.64rem;
    line-height: 1.6;
    display: block;
  }
}

@media (max-width: 420px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    gap: 10px;
  }

  .filter-chip {
    font-size: 0.66rem;
    padding: 7px 12px;
  }

  .screen-title {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-step::after,
  .pipe-link,
  .flow-ico,
  .hs-dot::after,
  .hs-label {
    animation: none !important;
  }
  .hs-label {
    opacity: 1;
    transform: none;
  }
}
