/* =========================================
   WASL - Responsive Styles
   Homepage Only
========================================= */

/* =========================================
   1. Tablet & Small Desktop
   Max Width: 900px
========================================= */

@media (max-width: 900px) {
  .nav-links {
    gap: 15px;
  }

  .hero-container {
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .steps-grid {
    gap: 15px;
  }

  .step-card {
    padding: 30px 18px;
  }

  .step-card h3 {
    font-size: 18px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================
   2. Tablet & Mobile
   Max Width: 768px
========================================= */

@media (max-width: 768px) {
  /* General */
  :root {
    --container-width: 90%;
  }

  /* Navbar */
  .navbar-container {
    min-height: clamp(4rem, 10vw, 4.5rem);
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--background);
    color: var(--primary);
    cursor: pointer;
  }

  .mobile-menu-btn svg,
  .mobile-menu-btn i {
    pointer-events: none;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 17px;
    padding-inline: 5%;
    background: var(--surface);
    border-top: 1px solid transparent;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;

    transition:
      max-height 0.3s ease,
      opacity 0.25s ease,
      padding 0.3s ease,
      border-color 0.2s ease,
      visibility 0.3s ease;
  }

  .mobile-menu.is-open {
    max-height: min(70vh, 32rem);
    padding-block: 20px;
    border-top-color: var(--border);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-menu a {
    font-weight: 600;
    color: var(--primary);
  }

  .mobile-menu a:focus-visible,
  .mobile-menu-btn:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 3px;
  }

  /* Hero */
  .hero-section {
    padding-block: clamp(2.75rem, 8vw, 4.0625rem);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: clamp(23rem, 75vw, 26.875rem);
  }

  .hero-description {
    margin-inline: auto;
    font-size: clamp(0.9375rem, 3.6vw, 1.0625rem);
  }

  .hero-actions,
  .hero-trust {
    justify-content: center;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 6.5vw, 2.4375rem);
  }

  .label-top {
    right: 0;
  }

  .label-bottom {
    left: 0;
  }

  /* How It Works */
  .how-section {
    padding-block: clamp(3.5rem, 10vw, 4.6875rem);
  }

  .section-heading {
    margin-bottom: var(--space-5);
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .step-card {
    padding: clamp(1.375rem, 5vw, 1.875rem);
  }

  .step-card p {
    min-height: auto;
  }

  .steps-bottom {
    text-align: center;
    margin-top: 30px;
  }

  /* CTA */
  .cta-card {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 40px 24px;
  }

  .cta-content p {
    margin-inline: auto;
  }

  .cta-decoration {
    flex-basis: auto;
    width: 100%;
    height: 220px;
  }

  .cta-circle-one {
    width: 180px;
    height: 180px;
  }

  .cta-circle-two {
    width: 230px;
    height: 230px;
  }
}

/* =========================================
   3. Small Mobile
   Max Width: 600px
========================================= */

@media (max-width: 600px) {
  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.375rem;
  }
}

/* =========================================
   4. Extra Small Mobile
   Max Width: 480px
========================================= */

@media (max-width: 480px) {
  /* Hero */
  .hero-content h1 {
    font-size: clamp(1.85rem, 8vw, 2.0625rem);
  }

  .hero-description {
    font-size: var(--text-sm);
  }

  .sticker-card {
    width: min(82vw, 18.125rem);
    padding: clamp(1rem, 4vw, 1.25rem);
  }

  .qr-placeholder {
    width: clamp(8rem, 38vw, 9.0625rem);
    height: clamp(8rem, 38vw, 9.0625rem);
  }

  .qr-placeholder svg {
    width: 115px;
    height: 115px;
  }

  .floating-label {
    padding: clamp(0.5rem, 2.5vw, 0.625rem);
  }

  .floating-label strong {
    font-size: 11px;
  }

  .floating-label small {
    font-size: 9px;
  }

  .hero-trust {
    gap: var(--space-2);
  }

  /* Pricing */
  .pricing-card {
    padding: 25px 20px;
  }

  .pricing-features {
    gap: 14px;
  }

  /* CTA */
  .cta-card {
    border-radius: 20px;
    padding: 35px 20px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .cta-content p {
    font-size: 14px;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Back To Top */
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 18px;
    left: 18px;
  }
}

/* =========================================
   5. Accessibility
   Reduced Motion
========================================= */

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .step-card,
  .feature-card,
  .back-to-top {
    animation: none;
    transition: none;
  }

  .feature-card:hover,
  .back-to-top:hover {
    transform: none;
  }
}
