/* Responsive adjustments shared by the standalone pages. Desktop styles stay in
   their original sources; generated internal documents are left intact. */
@media (min-width: 1024px) and (max-width: 1279px) {
  html #rent .rent-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html #rent .rent-card { min-width: 0; }
}

@media (max-width: 1023px) {
  .m360-home .nav-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    height: auto;
    min-height: 66px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .m360-home .nav-cta { display: contents; }
  .m360-home .nav-links { display: none; }
  .m360-home .link-entrar {
    grid-column: 2;
    grid-row: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .m360-home .nav-cta .btn-primary { grid-column: 1 / -1; grid-row: 2; }
  .m360-home .nav-burger {
    display: block;
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
  }
  .m360-home .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 16px;
    max-height: calc(100dvh - 124px);
    overflow-y: auto;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
  }
  .m360-home .nav.open .nav-links a {
    min-height: 44px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .m360-home section { scroll-margin-top: 140px; }

  html #rent .rent-two,
  html #rent .rent-kpis,
  html #rent .rent-grid,
  html #pf .pf-kpis,
  html #pf .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html #rent .rent-two { grid-template-columns: minmax(0, 1fr); }
  html #rent .rent-card,
  html #rent .rent-field,
  html #rent .kpi,
  html #pf .kpi,
  html #pf .card,
  html #pf .panel,
  html #pf .m { min-width: 0; }
  html #rent .rent-field input { min-width: 0; min-height: 44px; font-size: 16px; }
  html #rent .rent-chip { min-height: 44px; }
  html #rent .rent-sources code,
  html #pf code,
  html #pf .card-name,
  html #pf .m .mv { overflow-wrap: anywhere; }
}

@media (max-width: 639px) {
  .m360-home .wrap { padding-left: 16px; padding-right: 16px; }
  .m360-home .hero-in { padding-top: 44px; padding-bottom: 52px; }
  .m360-home .hero-cta .btn { width: 100%; white-space: normal; }
  .m360-home .band { padding-top: 48px; padding-bottom: 48px; }
  .m360-home .contrast { flex-direction: column; gap: 12px; }
  .m360-home .contrast .arrow { transform: rotate(90deg); }
  .m360-home .contrast .c { width: 100%; }
  .m360-home .demo-stage { display: grid; min-height: 0; padding: 16px; }
  .m360-home .scene { position: static; grid-area: 1 / 1; display: block; visibility: hidden; }
  .m360-home .scene.is-active { visibility: visible; }
  .m360-home .q-row { flex-wrap: wrap; gap: 8px; padding: 12px; }
  .m360-home .q-op { flex-basis: calc(100% - 56px); min-width: 0; }
  .m360-home .q-badge { margin-left: auto; }
  .m360-home .d-top { flex-wrap: wrap; }
  .m360-home .d-ok { margin-left: 0; }
  .m360-home .d-row { gap: 12px; }
  .m360-home .foot-col a { display: flex; align-items: center; min-height: 44px; }

  .m360-contact .wrap {
    box-sizing: border-box;
    min-height: 100dvh;
    padding: 20px 16px;
  }
  .m360-contact .card { box-sizing: border-box; min-width: 0; padding: 32px 20px; }
  .m360-contact .cta { box-sizing: border-box; width: 100%; padding: 14px 16px; }
  .m360-contact .alt a { display: inline-flex; align-items: center; min-height: 44px; }

  html #lp .lp-sec-alt { padding: 28px 16px; }
  html #lp .lp-final { padding: 32px 16px; }
  html #lp .lp-cta { width: 100%; text-align: center; }
}

@media (max-width: 479px) {
  html #lp .lp-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 2px;
    padding: 4px;
    border-radius: var(--radius-sm);
  }
  html #lp .lp-switch button { min-width: 0; min-height: 44px; padding: 8px 2px; font-size: 12px; border-radius: var(--radius-sm); }
  html #rent .rent-kpis,
  html #rent .rent-grid,
  html #pf .pf-kpis { grid-template-columns: minmax(0, 1fr); }
  html #rent .rent-card { padding: 18px 16px; }
  html #rent .rent-scn-lbl { flex-basis: 100%; }
  html #rent .rent-chip { width: 100%; }
  html #pf .card-top { flex-wrap: wrap; }
}
