@media (max-width: 980px) {
  .apps {
    grid-template-columns: 1fr 1fr;
  }

  .app-card:last-child {
    grid-column: 1 / -1;
  }

  .whatsapp-card {
    grid-template-columns: 1fr;
  }

  .whatsapp-action {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  header {
    height: 60px;
    min-height: 60px;
    padding: 0 16px;
    align-items: center;
  }

  .header-right {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 680px) {
  .brand img {
    height: 28px;
  }

  main {
    padding: 52px 16px 64px;
    align-items: flex-start;
  }

  .hero {
    margin-top: 16px;
  }

  .hero-icon {
    width: 52px;
    height: 60px;
    border-radius: 16px;
  }

  .hero-icon img {
    width: 30px;
    height: 30px;
  }

  h1 {
    letter-spacing: -0.055em;
  }

  .apps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .app-card,
  .app-card:last-child {
    grid-column: auto;
    min-height: 250px;
  }

  .app-action {
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .whatsapp-section {
    margin-top: 38px;
  }

  .whatsapp-card {
    min-height: auto;
    border-radius: 26px;
  }

  .whatsapp-action {
    width: 100%;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .install-app {
    top: calc(74px + env(safe-area-inset-top));
    right: 16px;
    left: auto;
    width: 50%;
    min-width: 180px;
  }

  .install-app .install-app-button {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
  }
}

@media (max-width: 420px) {
  header {
    flex-direction: row;
    gap: 10px;
  }

  .header-right {
    width: auto;
    align-self: center;
    align-items: center;
  }

  .theme-toggle {
    width: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .eyebrow {
    letter-spacing: 0.22em;
  }

  .app-card {
    padding: 20px;
  }
}
