@media (max-width: 1024px) {
  :root {
    --section-pad: 72px;
  }

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

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

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

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

  .proof-strip {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
  }

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

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

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

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

  .hero h1 {
    max-width: none;
  }

  .pain-grid,
  .agents-grid {
    grid-template-columns: 1fr;
  }

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

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

  .compare-head,
  .compare-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .compare-head span:nth-child(2),
  .compare-head span:nth-child(3) {
    display: none;
  }

  .compare-row__manual::before {
    content: 'Manual: ';
    color: var(--muted);
    font-weight: 500;
  }

  .compare-row__clee::before {
    content: 'clee DFY: ';
    color: var(--muted);
    font-weight: 500;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-form .span-2 {
    grid-column: span 1;
  }

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

  /* Horizontal scroll niche chart on small screens */
  .niche-chart-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .niche-chart-scroll .niche-chart {
    min-width: 520px;
  }
}

/* Embedded in Aladdin iframe — avoid double scroll quirks */
html.clee-embed,
html.clee-embed body {
  min-height: auto;
}
