/* === Responsive ===
 * Layout breathes via fluid `--gutter` and `clamp()` everywhere.
 * Breakpoints below only handle structural changes (stacking grids,
 * collapsing nav chrome) that fluid sizing alone cannot express.
 */

/* Tablet: stack the showcase 45/55 grid before columns get cramped */
@media (max-width: 768px) {
  .showcase-inner,
  .showcase-inner--reversed {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    direction: ltr;
  }

  .showcase-text {
    order: 2;
    max-width: none;
  }

  .mockup {
    order: 1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-github-btn span {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .terminal-body {
    font-size: 11px;
    padding: 16px;
  }

  .terminal-live .terminal-body {
    padding: 14px 12px 16px;
    font-size: 11.5px;
  }

  .rwd-banner {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
  }

  .rwd-banner pre {
    font-size: 8px;
  }

  .rwd-summary-card {
    max-width: none;
  }

  .rwd-summary-meta {
    gap: 2px 12px;
    font-size: 10.5px;
  }

  .rwd-session-summary,
  .rwd-list li,
  .rwd-corrections {
    font-size: 12.5px;
  }

  .mockup-progress .mockup-body {
    font-size: 11.5px;
    padding: 14px 16px;
  }

  .mockup-note .mockup-body {
    padding: 20px 20px 24px;
    font-size: 12.5px;
    max-height: 440px;
  }

  .diff-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .diff-col {
    min-height: 0;
  }

  .diff-col--raw {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .diff-line {
    font-size: 11px;
  }

  .chat-message {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 14px 14px 10px;
  }

  .chat-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .chat-body {
    font-size: 12.5px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-question {
    font-size: 13px;
    padding: 16px 0;
  }

  .faq-answer {
    padding-right: 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .install-block {
    padding: 14px 16px;
    gap: 12px;
  }

  .install-cmd {
    font-size: 12px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }
}
