/**
 * Landing Page — Responsive Styles
 * Companion to landing.css. Uses --lp-* tokens defined there.
 * Breakpoints: laptop (1024-1439px), tablet (768-1023px), mobile (<768px), small mobile (<400px)
 */

/* ============================================
   SCREENSHOT CAROUSEL — hide below full desktop
   ============================================ */
@media (max-width: 1439px) {
  .lp-hero-shots { display: none; }
  .lp-hero { flex-direction: column; gap: 0; }
}

/* ============================================
   LAPTOP (1024px – 1439px)
   ============================================ */
@media (max-width: 1439px) and (min-width: 1024px) {
  .lp-nav {
    padding: 0 40px;
  }

  /* Restore desktop side-by-side layout, scaled down */
  .lp-hero {
    flex-direction: row;
    gap: 32px;
    padding: 120px 40px 90px;
  }

  .lp-hero-shots {
    display: block;
    flex: 0 0 260px;
  }

  .lp-hero-shots--left  .lp-shot-wrapper { transform: rotate(-2deg); }
  .lp-hero-shots--right .lp-shot-wrapper { transform: rotate(2deg); }

  .lp-section {
    padding: 80px 40px;
  }

  .lp-preview-section {
    padding: 80px 40px;
  }

  .lp-pricing-section {
    padding: 80px 40px;
  }

  .lp-footer {
    padding: 44px 40px 0;
  }

  .lp-footer-top {
    gap: 32px;
  }

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

  .lp-diff-card {
    padding: 44px 36px;
  }

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

  .lp-pricing-card {
    grid-template-columns: 1fr 240px;
  }
}

/* ============================================
   TABLET (768px – 1023px)
   ============================================ */
@media (max-width: 1023px) and (min-width: 768px) {
  .lp-nav {
    padding: 0 28px;
  }

  .lp-nav-links {
    display: none;
  }

  .lp-hero {
    padding: 110px 32px 80px;
  }

  /* Screenshot strip: two panels side by side */
  .lp-hero-shots-strip {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 500px;
    margin: 24px auto 20px;
  }

  .lp-hero-shots-strip .lp-hero-shots {
    display: block;
    flex: 1 1 0;
    min-width: 0;
  }

  .lp-hero-shots-strip .lp-hero-shots::before {
    inset: 0;
  }

  .lp-hero-shots-strip .lp-hero-shots .lp-shot-wrapper {
    transform: none;
  }

  .lp-section {
    padding: 72px 32px;
  }

  .lp-preview-section {
    padding: 72px 32px;
  }

  .lp-pricing-section {
    padding: 72px 32px;
  }

  .lp-footer {
    padding: 40px 32px 0;
  }

  .lp-footer-top {
    grid-template-columns: 1fr 1fr !important;
    /* TABLET: 2-column layout */
    gap: 32px;
  }

  .lp-footer-col--brand {
    grid-column: 1 / -1;
  }

  /* brand spans full width */

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

  .lp-diff-grid {
    grid-template-columns: 1fr;
  }

  .lp-diff-card {
    padding: 40px 32px;
  }

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

  .lp-steps-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lp-steps-grid::before {
    display: none;
  }

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

  .lp-pricing-left {
    border-right: none;
    border-bottom: 1px solid var(--lp-sand);
  }

  .lp-pricing-right {
    padding: 36px 32px;
  }

  .lp-preview-crossword {
    grid-template-columns: repeat(7, 38px);
    grid-template-rows: repeat(7, 38px);
  }

  .lp-hero-grid-deco {
    display: none;
  }

  .lp-hero-grid-deco-bl {
    display: none;
  }
}

/* ============================================
   MOBILE (below 768px)
   ============================================ */
@media (max-width: 767px) {
  .lp-nav {
    padding: 0 20px;
    height: 60px;
  }

  .lp-nav-links {
    display: none !important;
  }

  .lp-hero-grid-deco {
    display: none !important;
  }

  .lp-hero-grid-deco-bl {
    display: none !important;
  }

  .lp-hero {
    padding: 100px 20px 72px;
    min-height: 100svh;
  }

  /* Screenshot strip: single panel centered */
  .lp-hero-shots-strip {
    display: flex;
    justify-content: center;
    margin: 20px 0 20px;
  }

  .lp-hero-shots-strip .lp-hero-shots--left {
    display: block;
    flex: 0 0 260px;
    max-width: 260px;
  }

  .lp-hero-shots-strip .lp-hero-shots--right {
    display: none;
  }

  .lp-hero-shots-strip .lp-hero-shots::before {
    inset: 0;
  }

  .lp-hero-shots-strip .lp-hero-shots .lp-shot-wrapper {
    transform: none;
  }

  .lp-hero-actions {
    flex-direction: column !important;
    /* MOBILE: stack buttons vertically */
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .lp-btn-primary,
  .lp-btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .lp-hero-trust {
    flex-direction: column !important;
    gap: 16px;
  }

  .lp-section {
    padding: 64px 20px;
  }

  .lp-preview-section {
    padding: 64px 20px;
  }

  .lp-pricing-section {
    padding: 64px 20px;
  }

  .lp-footer {
    padding: 36px 20px 0;
  }

  .lp-footer-top {
    grid-template-columns: 1fr !important;
    /* MOBILE: single column */
    gap: 28px;
  }

  .lp-features-grid {
    grid-template-columns: 1fr !important;
    gap: 2px;
  }

  .lp-diff-grid {
    grid-template-columns: 1fr !important;
  }

  .lp-diff-card {
    padding: 36px 24px !important;
  }

  .lp-diff-scripts {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .lp-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .lp-steps-grid::before {
    display: none !important;
  }

  .lp-pricing-card {
    grid-template-columns: 1fr !important;
  }

  .lp-pricing-left {
    padding: 32px 24px;
    border-right: none !important;
    border-bottom: 1px solid var(--lp-sand);
  }

  .lp-pricing-right {
    padding: 32px 24px;
  }

  .lp-preview-body {
    padding: 28px 16px;
  }

  .lp-preview-crossword {
    grid-template-columns: repeat(7, 32px) !important;
    grid-template-rows: repeat(7, 32px) !important;
    gap: 2px;
  }

  .lp-cell {
    font-size: 0.8rem;
  }
}

/* ============================================
   SMALL MOBILE (below 400px)
   ============================================ */
@media (max-width: 399px) {
  .lp-hero {
    padding: 90px 16px 64px;
  }

  .lp-section {
    padding: 52px 16px;
  }

  .lp-preview-section {
    padding: 52px 16px;
  }

  .lp-pricing-section {
    padding: 52px 16px;
  }

  .lp-footer {
    padding: 28px 16px 0;
  }

  .lp-preview-crossword {
    grid-template-columns: repeat(7, 28px) !important;
    grid-template-rows: repeat(7, 28px) !important;
  }

  .lp-cell {
    font-size: 0.7rem;
    border-radius: 2px;
  }

  .scroll-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}