/*
 * NetX home — responsive layer. The page was exported as a fixed 1440px design (inline styles),
 * so these rules override those inline sizes at tablet / phone widths. Desktop (>1200px) is unchanged.
 */
body { overflow-x: clip; }
#page { width: 100% !important; margin: 0 !important; }
#page > div[style*="width: 1440px"] { width: 100% !important; max-width: 1440px; margin-inline: auto; }
.nx[style*="height: 2340px"] { height: auto !important; }
.nx img, .nx svg { max-width: 100%; }
html { scroll-padding-top: 120px; }

@media (max-width: 1200px) {
  #indoormark { padding-left: 40px !important; padding-right: 40px !important; }
  .hero h1[style] { font-size: clamp(36px, 4.6vw, 56px) !important; }
  .hero .accent { white-space: normal !important; }
}
/* hero: stack the text above the product-card stack before the headline gets squeezed */
@media (max-width: 1100px) {
  .hero-in > div[style*="minmax(0, 1fr) 440px"] { grid-template-columns: minmax(0, 1fr) !important; gap: 44px !important; }
  .hero-in > div[style*="minmax(0, 1fr) 440px"] > div:last-child { justify-content: flex-start !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .hero h1[style] { font-size: clamp(34px, 7.4vw, 56px) !important; }
  .hero .hero-ctas { flex-wrap: wrap !important; }
  .nx .scrollcue { margin-top: 56px; }
  .nx .off-grid { grid-template-columns: minmax(0, 1fr) !important; max-width: 560px; margin-inline: auto; }
  .nx .feat-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .nx .feat-split > * { min-width: 0; }
  .nx .crowd-grid, .nx .cred-grid { grid-template-columns: repeat(2, 1fr); }
  #indoormark div[style*="gap: 64px"] { grid-template-columns: minmax(0, 1fr) !important; gap: 40px !important; }
  #indoormark [style*="repeat(4, minmax(0, 1fr)); gap: 0"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 22px !important; }
  #indoormark [style*="repeat(3, minmax(0, 1fr)); gap: 16px"] { grid-template-columns: 1fr !important; }
  #indoormark h2 { font-size: clamp(30px, 6.4vw, 46px) !important; }
  /* floor plan: let its column shrink to the card; script in index.html zooms the fixed 730px plan to fit */
  #indoormark div:has(> [style*="width: 730px"]) { min-width: 0; max-width: 100%; width: 100%; }
  #indoormark div[style*="display: flex; gap: 8px"] { flex-wrap: wrap !important; }
  #indoormark span[style*="display: flex; gap: 16px; font-size: 12px"] { flex-wrap: wrap !important; gap: 8px 14px !important; }
}

/* ---------- phone ---------- */
@media (max-width: 700px) {
  .nx .wrap { padding: 0 20px; }
  .nx section { padding: 52px 0; }
  .hero-in { padding: 0 20px !important; }
  .hero p[style] { font-size: 16px !important; }
  .hero .hero-ctas, .hero-in div[style*="align-self: flex-start"] { align-self: stretch !important; width: 100%; }
  .hero .hero-ctas { flex-direction: column; }
  .hero-in .btn-pill { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .nx .shead { margin-bottom: 30px; }
  .nx .shead p { font-size: 16px; }
  .nx .tabs { max-width: 100%; }
  .nx .tab-btn { padding: 10px 18px; }
  .nx .statbar { grid-template-columns: repeat(2, 1fr); padding: 28px 20px; gap: 20px; }
  .nx .crowd-grid, .nx .cred-grid { grid-template-columns: minmax(0, 1fr); }
  .nx .crowd-cta { padding: 28px 20px; }
  .nx .mock { padding: 16px; }
  .nx .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .nx .kpi { padding: 10px; }
  .nx .kpi .kv { font-size: 15px; }
  .nx .map-legend { gap: 8px; padding: 5px 9px; left: 6px; }
  .nx .map-badge { right: 6px; top: 6px; }
  .nx .mock .mhead { flex-wrap: wrap; }
  .nx .hb-strip { flex-wrap: wrap; }
  .nx .off-card { padding: 28px 22px; }
  .nx .final { padding-left: 20px; padding-right: 20px; }
  #indoormark { padding: 44px 20px 52px !important; }
  #indoormark h2 { font-size: clamp(28px, 8.4vw, 38px) !important; }
  #indoormark h3 { font-size: 22px !important; }
  #indoormark p[style*="font-size: 17.5px"] { font-size: 16px !important; }
  #indoormark div[style*="justify-content: space-between"] { flex-wrap: wrap !important; gap: 10px !important; }
  #indoormark div[style*="gap: 12px; margin-top: 10px"] { flex-wrap: wrap; }
  #indoormark [style*="repeat(4, minmax(0, 1fr)); gap: 0"] { grid-template-columns: 1fr !important; }
  #indoormark [style*="padding: 24px; border-radius: 16px"] { padding: 16px !important; }
  #indoormark [style*="flex-grow: 1; padding: 22px"] { min-width: 0; flex-basis: 100%; }
  #indoormark [style*="font-size: 64px"] { font-size: 48px !important; }
  [data-js="cards"] { width: 100% !important; max-width: 440px; }
  [data-js="cards"] > [data-card] { width: 100% !important; padding: 20px 18px !important; }
  [data-js="cards"] [style*="font-size: 24px"] { font-size: 19px !important; }
}
@media (max-width: 420px) {
  .nx .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx .statbar .s .l { font-size: 11.5px; }
}
