/*
 * responsive.css
 *
 * Responsive adjustments for the AI Income Agent Systems landing page.
 * The layout collapses gracefully on smaller screens, ensuring that
 * typography remains legible and images scale appropriately. Sections
 * reorganise into single columns on mobile devices and spacing is
 * tightened for compact displays.
 */

/* Show/Hide utilities */
.mobile-only {
  display: none !important;
}
.desktop-only {
  display: inline-block !important;
}

/* Medium screens (tablets) */
@media (max-width: 992px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .hero-content, .hero-image-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .dashboard-content, .dashboard-img {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .offer-wrapper {
    flex-direction: column;
  }
  .offer-img, .offer-content {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }
  .dashboard-text {
    text-align: center;
    margin-top: 2rem;
  }
  .agents-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  /* Hero stats: wrap nicely on tablets */
  .hero-stats {
    justify-content: center;
  }
  .hero-stats .stat-item {
    min-width: 100px;
    margin-bottom: 0.8rem;
  }
}

/* Small screens (mobile) */
@media (max-width: 600px) {
  :root {
    --font-scale: 0.9;
  }
  h1 {
    font-size: 2rem;
  }
  .section {
    padding: 60px 0;
  }
  .solution-cards {
    grid-template-columns: 1fr;
  }
  .comparison-table th, .comparison-table td {
    padding: 0.6rem;
    font-size: 0.75rem;
  }
  .pricing .price {
    font-size: 2.4rem;
  }
  .final-cta h2 {
    font-size: 1.8rem;
  }

  /* Show/Hide overrides for mobile */
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: inline-block !important;
  }

  /* Stack comparison card rows vertically to prevent horizontal squishing on small screens */
  .comparison-card-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
  }
  .comparison-card-row .comp-label {
    margin-right: 0 !important;
    margin-bottom: 0.15rem !important;
  }

  /* Hero mobile adjustments: Clean 2x2 grid for stats on mobile instead of long vertical list */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
  }
  .hero-stats .stat-item {
    padding: 0.8rem !important;
    min-width: unset !important;
    margin-bottom: 0 !important;
  }
  .hero-stats .stat-value {
    font-size: 1.4rem !important;
  }
  .hero-stats .stat-label {
    font-size: 0.7rem !important;
  }

  /* Compact Sticky Bar on Mobile (Premium status-bar style) */
  .sticky-countdown-bar {
    padding: 6px 0 !important;
    background: rgba(5, 12, 23, 0.95) !important;
  }
  body.ai-income-advanced {
    padding-top: 50px !important;
  }
  .countdown-bar-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 10px !important;
  }
  .countdown-text {
    flex-direction: row !important;
    font-size: 0.75rem !important;
    gap: 6px !important;
    align-items: center !important;
  }
  .countdown-badge {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
  }
  .countdown-btn {
    width: auto !important;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
  }
}

/* ==========================================================================
   Visitor Demo Teaser Section & Floating Pill Responsive Styles
   ========================================================================== */

/* Tablets & Mobile (< 992px) */
@media (max-width: 992px) {
  .teaser-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .teaser-text {
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .teaser-features {
    align-items: flex-start;
    max-width: 600px;
    margin: 0 auto 2rem auto;
  }
  .teaser-action {
    align-items: center;
    width: 100%;
  }
  .teaser-action .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* Tablets & Mobile (< 768px) */
@media (max-width: 768px) {
  .floating-demo-pill {
    display: none !important; /* Hide floating pill on mobile/tablet viewports */
  }
}

/* Mobile Screens (< 600px) */
@media (max-width: 600px) {
  .demo-teaser .section-title {
    font-size: 1.8rem !important;
  }
  .mockup-body {
    flex-direction: column;
    height: auto;
  }
  .mockup-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 255, 186, 0.1);
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 12px;
    gap: 8px;
    align-items: center;
  }
  .sidebar-logo {
    display: none !important;
  }
  .sidebar-item {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
  .mockup-content {
    padding: 12px;
  }
  .mockup-agent-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mockup-mini-stat {
    padding: 6px 10px;
  }
  .mockup-mini-stat .val {
    font-size: 0.75rem;
  }
  .mockup-agent-card {
    padding: 8px;
  }
  .agent-name {
    font-size: 0.7rem;
  }
  .agent-desc {
    font-size: 0.6rem;
  }
}