@layer responsive {

/* Responsive */
@media (max-width: 900px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    display: none;
  }

  .nav__logo .nav__logo-mark {
    display: none;
  }

  .nav__logo .nav__logo-wordmark {
    display: block;
    height: 64px;
    width: auto;
  }

  .hero__inner,
  .about__inner {
    grid-template-columns: 1fr;
  }

  .hero__media,
  .about__media {
    order: -1;
  }

  .hero__media {
    width: 100%;
    max-width: 330px;
    height: auto;
    aspect-ratio: 953 / 512;
    margin: 0 auto 0;
  }

  .hero__text {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 0 auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  .cta-rive {
    width: 100%;
    max-width: 330px;
    min-width: 180px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: 4rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: 100%;
    padding: 0 1.25rem;
  }

  /* Direct children only — same scoping as the base rule, so the nested
     .offer-group category sections don't get re-padded on phones. */
  main > section {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2.7rem;
    margin-bottom: 1.5rem;
  }

  .hero__subtitle {
    line-height: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  .nav__inner {
    height: 50px;
  }

  .nav__logo .nav__logo-wordmark {
    height: 32px;
  }

  .footer__inner {
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

}
