/* Compact spacing — especially for mobile viewports */

@media (max-width: 640px) {
  /* Page shells */
  .px-5 {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  .py-8 {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  /* Hero / section gaps */
  .mt-14 {
    margin-top: 1.15rem !important;
  }
  .mt-12 {
    margin-top: 1rem !important;
  }
  .mt-10 {
    margin-top: 0.85rem !important;
  }
  .mt-8 {
    margin-top: 0.75rem !important;
  }
  .mt-6 {
    margin-top: 0.65rem !important;
  }
  .mt-5 {
    margin-top: 0.55rem !important;
  }
  .mt-4 {
    margin-top: 0.55rem !important;
  }
  .mt-16 {
    margin-top: 1.25rem !important;
  }

  .mb-5 {
    margin-bottom: 0.55rem !important;
  }
  .mb-4 {
    margin-bottom: 0.45rem !important;
  }
  .mb-3 {
    margin-bottom: 0.4rem !important;
  }
  .mb-2 {
    margin-bottom: 0.3rem !important;
  }

  .pb-3 {
    padding-bottom: 0.45rem !important;
  }
  .pt-5 {
    padding-top: 0.65rem !important;
  }

  /* Cards / panels */
  .p-6 {
    padding: 0.9rem !important;
  }
  .p-5 {
    padding: 0.85rem !important;
  }
  .p-4 {
    padding: 0.7rem !important;
  }

  .px-5.py-4,
  .px-5 {
    /* keep horizontal already reduced; tighten vertical when paired */
  }

  .py-4 {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }
  .py-3 {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
  }
  .py-2\.5 {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
  }

  .gap-6 {
    gap: 0.85rem !important;
  }
  .gap-4 {
    gap: 0.65rem !important;
  }
  .gap-3 {
    gap: 0.5rem !important;
  }
  .gap-2 {
    gap: 0.4rem !important;
  }

  /* Titles a bit tighter on phone */
  .text-4xl {
    font-size: 1.85rem !important;
    line-height: 1.05 !important;
  }
  .text-3xl {
    font-size: 1.55rem !important;
    line-height: 1.1 !important;
  }

  /* Simulator ring less tall */
  .size-40 {
    width: 8.25rem !important;
    height: 8.25rem !important;
  }

  .text-4xl.font-bold.tabular-nums {
    font-size: 1.85rem !important;
  }

  .text-2xl {
    font-size: 1.2rem !important;
  }

  /* Shorter decorative grid band */
  .h-\[420px\],
  .h-\[360px\] {
    height: 220px !important;
  }

  /* Footer less air */
  footer.mt-16,
  .mt-16 {
    margin-top: 1.15rem !important;
  }
  footer.mt-10,
  .mt-10 {
    margin-top: 0.85rem !important;
  }
  footer.mt-8 {
    margin-top: 0.75rem !important;
  }
}

/* Mild tighten on all widths (desktop also a bit denser) */
@media (min-width: 641px) {
  .py-8.sm\:py-12,
  .sm\:py-12 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .mt-14.sm\:mt-20,
  .sm\:mt-20 {
    margin-top: 3rem !important;
  }
}
