/* Privacy Pro - card carousels for mobile & tablet (viewport <= 1024px).
   Turns the shared card grids (.feature-grid, .pricing-grid, .dash-grid,
   .support-grid) into swipeable, snap-scrolling rows with dot indicators.
   Desktop (>1024px) is untouched and keeps the original responsive grid.
   The doubled .pp-carousel class raises specificity so page-level inline
   styles (e.g. .support-grid in support/index.html) cannot override it. */

@media (max-width: 1024px) {
  .pp-carousel.pp-carousel {
    --pp-card: 85%;   /* one card + peek on phones */
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .pp-carousel.pp-carousel::-webkit-scrollbar { display: none; }

  .pp-carousel.pp-carousel > * {
    flex: 0 0 var(--pp-card);
    min-width: 0;
    scroll-snap-align: start;
  }

  /* trailing spacer so the final card can snap to the start */
  .pp-carousel.pp-carousel::after {
    content: "";
    flex: 0 0 calc(100% - var(--pp-card));
  }

  .pp-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
  }

  .pp-carousel-dots[hidden] { display: none; }

  .pp-carousel-dot {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
  }

  .pp-carousel-dot:hover { background: rgba(255, 255, 255, 0.5); }

  .pp-carousel-dot.is-active {
    width: 22px;
    background: var(--ws-brand, #49ff88);
  }
}

/* two cards visible on tablets */
@media (min-width: 641px) and (max-width: 1024px) {
  .pp-carousel.pp-carousel { --pp-card: 46%; }
}

@media (min-width: 1025px) {
  .pp-carousel-dots { display: none; }
}
