@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .channels-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ai-block {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-desktop,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-dark);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-panel a {
    color: var(--color-text-on-dark);
    padding: 0.5rem 0;
    font-weight: 500;
  }

  .nav-panel .nav-panel-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border-dark);
  }

  .site-header .container {
    position: relative;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .features-grid,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .channels-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 3rem 0;
  }
}

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

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

/* iframe embed: avoid sticky header eating viewport on small embeds */
@media (max-height: 500px) {
  .site-header {
    position: relative;
  }
}
