/* MZ Dynamics responsive layer.
   Pages are authored with inline desktop styles; these rules override them
   (hence !important) at tablet and phone widths. Classes in the .dc.html markup:
     r-wrap   1200px content container (side gutter)
     r-split  uneven 2-column layout          r-g3  3–4 equal columns
     r-g2     2 equal columns                 r-fit auto-fit card grid
     r-h1/h2  display headings                r-pt / r-pb  large section padding
     r-phero  inner-page hero section         r-box / r-card  padded panels
     r-btns   button row                      r-input  form fields
     r-deco   decorative wavemark             r-minh  tall feature panel
     r-unstick sticky sidebar                 r-foot*  footer
     r-hero*  home hero                       r-nav-*  header
   The home hero uses a plain <img>: the design tool's image-slot widget set
   touch-action:none on its image, which froze touch scrolling on phones. */

.r-nav-burger { display: none; }
.r-nav-mobile { display: none; }

/* ---------- small laptop / tablet landscape ---------- */
@media (max-width: 1024px) {
  .r-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .r-h1 { font-size: 48px !important; }
  .r-hero-l { padding-right: 36px !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .r-nav-links, .r-nav-cta { display: none !important; }
  .r-nav-burger { display: inline-flex; }
  .r-nav-mobile { display: block; }
  .r-nav-bar { height: 72px !important; }
  .r-nav-logo { height: 56px !important; }

  .r-split { grid-template-columns: minmax(0, 1fr) !important; gap: 36px !important; }
  .r-split.r-hero, a.r-split { gap: 0 !important; }

  .r-hero { min-height: 0 !important; }
  .r-hero-l { padding: 56px 28px 44px !important; }
  .r-hero-l > div:last-child { max-width: 640px !important; }
  .r-hero-r { min-height: 380px; }
  /* the left-edge fade becomes a top fade once the image sits under the text */
  .r-hero-fade {
    right: 0 !important; bottom: auto !important; width: auto !important; height: 72px;
    background: linear-gradient(to bottom, #06090A, transparent) !important;
  }

  .r-pt { padding-top: 64px !important; }
  .r-pb { padding-bottom: 64px !important; }
  .r-phero { padding-top: 56px !important; padding-bottom: 48px !important; }
  .r-h1 { font-size: 44px !important; }
  .r-h2 { font-size: 34px !important; }

  .r-unstick { position: static !important; }
  .r-minh { min-height: 200px !important; }

  .r-foot { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 36px !important; }
  .r-foot > :first-child { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .r-wrap { padding-left: 20px !important; padding-right: 20px !important; }
  .r-nav-bar { padding: 0 20px !important; height: 64px !important; }
  .r-nav-logo { height: 46px !important; }

  .r-g3, .r-g2, .r-fit { grid-template-columns: minmax(0, 1fr) !important; }
  .r-split { gap: 28px !important; }
  .r-split.r-hero, a.r-split { gap: 0 !important; }

  .r-h1 { font-size: 36px !important; line-height: 1.1 !important; }
  .r-h2 { font-size: 28px !important; line-height: 1.18 !important; }

  .r-pt { padding-top: 52px !important; }
  .r-pb { padding-bottom: 52px !important; }
  .r-phero { padding-top: 40px !important; padding-bottom: 40px !important; }
  .r-box { padding: 30px 22px !important; border-radius: 18px !important; }
  .r-card { padding: 22px !important; }

  .r-hero-l { padding: 44px 20px 36px !important; }
  .r-hero-r { min-height: 240px; }

  .r-btns > a { flex: 1 1 auto; justify-content: center; }
  .r-input { font-size: 16px !important; } /* below 16px iOS zooms in on focus */
  .r-deco { width: 300px !important; }
  .r-minh { min-height: 150px !important; }

  .r-foot { grid-template-columns: minmax(0, 1fr) !important; gap: 32px !important; padding-bottom: 36px !important; }
  .r-foot-wrap { padding-top: 48px !important; }
  .r-foot-logo { height: 56px !important; }
}
