/* =====================================================
   SENDERMAX — MOBILE ADAPTATION
   max-width: 768px
   ===================================================== */

@media (max-width: 768px) {

  /* ---- GLOBAL ---- */
  body, #root { overflow-x: hidden; }
  * { max-width: 100%; }

  /* ---- HEADER ---- */
  .fixed.top-0.left-0.right-0.z-50 {
    padding: 8px 16px !important;
  }

  /* Nav pill */
  nav.flex.items-center.justify-between {
    padding: 10px 16px !important;
    border-radius: 14px !important;
    gap: 0 !important;
  }

  /* Hide nav links */
  nav > div.flex.items-center.gap-9,
  nav > .flex.items-center.gap-9 {
    display: none !important;
  }

  /* Hide CTA buttons in nav */
  nav > div.flex.items-center.gap-5,
  nav > .flex.items-center.gap-5 {
    display: none !important;
  }

  /* ---- ALL SECTIONS ---- */
  section {
    padding: 56px 20px !important;
    gap: 36px !important;
  }

  /* ---- HERO ---- */
  .font-primary.text-\[60px\] {
    font-size: 36px !important;
    line-height: 1.15 !important;
    letter-spacing: -1px !important;
  }

  /* Hero subtitle */
  .max-w-\[600px\].font-primary.text-\[20px\],
  .font-primary.text-\[20px\].font-normal {
    font-size: 16px !important;
    max-width: 100% !important;
  }

  /* Hero CTA buttons — stack */
  .flex.flex-row.items-center.gap-4 {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .flex.flex-row.items-center.gap-4 > a,
  .flex.flex-row.items-center.gap-4 > button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* ---- DEMO WINDOW ---- */
  .w-\[1000px\] {
    width: calc(100vw - 40px) !important;
    min-width: unset !important;
    overflow: hidden !important;
  }

  /* Hide sidebar inside demo */
  .w-\[220px\].flex-col {
    display: none !important;
  }

  /* ---- FEATURE CARDS — stack ---- */
  .flex.w-full.items-center.gap-12 {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 24px !important;
  }

  /* Alternate layout (image right) */
  .flex.w-full.items-center.gap-12:nth-child(even) {
    flex-direction: column-reverse !important;
  }

  /* Feature illustration */
  .h-\[244px\].w-\[420px\] {
    width: 100% !important;
    height: auto !important;
    min-height: 180px !important;
  }

  /* Feature text block */
  .flex.w-\[400px\].shrink-0.flex-col {
    width: 100% !important;
  }

  /* ---- SECTION HEADINGS ---- */
  .font-primary.text-\[44px\] {
    font-size: 28px !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
  }

  .max-w-\[700px\] {
    max-width: 100% !important;
  }

  .font-primary.text-\[40px\] {
    font-size: 26px !important;
    letter-spacing: -0.5px !important;
  }

  /* ---- STATS ROW ---- */
  .flex.w-full.justify-around {
    flex-wrap: wrap !important;
    gap: 0 !important;
  }

  .flex.w-full.justify-around > div {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 20px 12px !important;
  }

  /* ---- PRICING CARDS — stack ---- */
  .flex.w-full.gap-6 {
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Pricing card padding */
  .flex.flex-1.flex-col.gap-8.rounded-2xl {
    padding: 24px 20px !important;
  }

  /* ---- BLOG ARTICLES ---- */
  .flex.gap-6 {
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* ---- STEPS SECTION ---- */
  .flex.w-full.gap-12,
  .flex.gap-12 {
    flex-direction: column !important;
    gap: 24px !important;
  }

  /* ---- CTA BANNER ---- */
  .flex.w-full.flex-col.items-center.gap-8.rounded-3xl {
    padding: 40px 24px !important;
  }

  /* CTA buttons inside banner */
  .mt-2.flex.w-fit.items-center.gap-2 {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ---- FOOTER ---- */
  footer .flex.justify-between {
    flex-direction: column !important;
    padding: 40px 20px !important;
    gap: 32px !important;
  }

  footer .w-\[300px\] {
    width: 100% !important;
  }

  footer .flex.gap-20 {
    flex-wrap: wrap !important;
    gap: 24px 32px !important;
  }

  footer .flex.gap-20 > div {
    flex: 0 0 calc(50% - 16px) !important;
  }

  footer .flex.items-center.justify-between.px-20 {
    flex-direction: column !important;
    padding: 20px !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .mx-20 {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }

  /* ---- MAX-WIDTH RESETS ---- */
  .max-w-\[600px\],
  .max-w-\[550px\],
  .max-w-\[460px\],
  .max-w-\[360px\],
  .max-w-\[280px\] {
    max-width: 100% !important;
  }

  /* ---- GENEROUS HEADINGS ---- */
  .font-primary.text-\[18px\] {
    font-size: 16px !important;
  }

  /* ---- FAQ ---- */
  .flex.justify-between.py-6 {
    gap: 12px !important;
  }

  /* FAQ columns */
  .flex.gap-20:not(footer .flex.gap-20) {
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Overflow protection */
  img, svg, video {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ---- HAMBURGER BUTTON (injected via JS) ---- */
#sm-hamburger {
  display: none;
}

@media (max-width: 768px) {
  #sm-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
  }
}

/* ---- MOBILE MENU DRAWER ---- */
#sm-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#sm-mobile-overlay.active {
  display: block;
  opacity: 1;
}

#sm-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  z-index: 999;
  background: #1A1A25;
  border-left: 1px solid #2A2A3A;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}
#sm-mobile-drawer.active {
  transform: translateX(0);
}

#sm-mobile-drawer .sm-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #2A2A3A;
}

#sm-mobile-drawer nav a {
  display: block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0;
  transition: background 0.2s;
  font-family: inherit;
}
#sm-mobile-drawer nav a:hover,
#sm-mobile-drawer nav a:active {
  background: rgba(255,255,255,0.07);
  color: white;
}

#sm-mobile-drawer .sm-drawer-cta {
  padding: 20px;
  border-top: 1px solid #2A2A3A;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

#sm-mobile-drawer .sm-btn-outline {
  display: block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.2);
  text-align: center;
  font-family: inherit;
  transition: border-color 0.2s;
}
#sm-mobile-drawer .sm-btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
}

#sm-mobile-drawer .sm-btn-primary {
  display: block;
  color: white;
  text-decoration: none;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  text-align: center;
  font-family: inherit;
  transition: opacity 0.2s;
}
#sm-mobile-drawer .sm-btn-primary:hover {
  opacity: 0.9;
}
