/* ============================================
   AI DENTIST — Responsive Styles
   ============================================ */

/* --- Mobile: reduce floating teeth --- */
@media (max-width: 991.98px) {
  .floating-teeth-scene .tooth-3d:nth-child(n+6) {
    display: none;
  }

  .section-teeth-bg .tooth-3d {
    opacity: 0.3;
  }

  .cta-teeth-scene .tooth-3d:nth-child(n+4) {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .floating-teeth-scene .tooth-3d {
    transform: scale(0.7);
  }

  .floating-teeth-scene .tooth-3d:nth-child(n+4) {
    display: none;
  }

  .section-teeth-bg {
    display: none;
  }

  .cta-teeth-scene .tooth-3d {
    transform: scale(0.6);
    opacity: 0.25;
  }
}

/* --- Policy page mobile --- */
@media (max-width: 991.98px) {
  .policy-nav {
    position: static;
    margin-bottom: 32px;
  }

  .policy-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .policy-nav-link {
    border-left: none;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 0.8125rem;
  }

  .policy-nav-link.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
  }

  .policy-article {
    padding: 28px 24px;
  }
}

@media (max-width: 767.98px) {
  .policy-hero {
    padding: 60px 0 32px;
  }

  .policy-article-header h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1200px;
  }

  .hero-phone-scene {
    min-height: 620px;
  }

  .phone-frame {
    width: 300px;
    height: 620px;
  }
}

/* --- Laptop --- */
@media (max-width: 1199.98px) {
  .floating-card-1 { left: 0; }
  .floating-card-5 { right: -5%; }

  .dentists-layout {
    grid-template-columns: 1fr;
  }

  .dentists-map {
    min-height: 320px;
  }
}

/* --- Tablet --- */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 80px 0;
  }

  .hero-section {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero-visual {
    margin-top: 48px;
  }

  .hero-phone-scene {
    min-height: 480px;
    transform: scale(0.9);
  }

  .floating-card {
    display: none;
  }

  .hero-trust {
    gap: 24px;
  }

  .timeline-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .timeline-line {
    display: none;
  }

  .chat-ui {
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }

  .nav-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    box-shadow: var(--shadow-md);
  }
}

/* --- Mobile --- */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    gap: 20px;
  }

  .trust-value,
  .trust-suffix {
    font-size: 1.25rem;
  }

  .hero-phone-scene {
    min-height: 400px;
    transform: scale(0.8);
  }

  .phone-frame {
    width: 240px;
    height: 500px;
  }

  .trusted-logos {
    gap: 24px;
  }

  .trusted-logo {
    font-size: 0.9375rem;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .scan-upload-area {
    padding: 32px 20px;
  }

  .scan-phone-frame {
    width: 280px;
  }

  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline-icon {
    width: 64px;
    height: 64px;
  }

  .family-cards {
    grid-template-columns: 1fr;
  }

  .app-carousel-nav {
    gap: 6px;
  }

  .app-nav-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .app-phone-mockup {
    width: 220px;
    height: 440px;
  }

  .app-carousel-stage {
    min-height: 460px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .cta-section {
    padding: 80px 0;
  }

  .cta-tooth-3d {
    display: none;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dentist-card {
    flex-wrap: wrap;
  }

  .dentist-card .btn {
    width: 100%;
    margin-top: 8px;
  }
}

/* --- Small Mobile --- */
@media (max-width: 479.98px) {
  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-phone-scene {
    transform: scale(0.7);
    min-height: 340px;
  }

  .scan-phone-frame {
    width: 260px;
  }

  .chat-messages {
    max-height: 300px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
