/* ============================================
   RESPONSIVE — mobile-first polish
   ============================================ */

/* ===== Tablet (1024px) ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .pricing-card-featured {
    transform: scale(1);
  }

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

  .section {
    padding: 80px 0;
  }
}

/* ===== Mobile (768px) ===== */
@media (max-width: 768px) {
  /* Nav links collapse by default */
  .nav-links {
    display: none;
  }

  /* When hamburger opens it, render as a solid drawer below the navbar */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 49;
    padding: 14px 20px 22px;
    background: rgba(7, 6, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-default);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }

  .nav-links.open a {
    padding: 12px 8px;
    font-size: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open a:last-child {
    border-bottom: none;
  }

  /* Mobile nav layout: tighten the gap so Login pill + hamburger sit together at the right */
  .nav-inner {
    gap: 0;
  }

  /* Keep Login visible on mobile as a proper pill button, pushed to the right */
  .nav-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;   /* push to the right edge, next to the hamburger */
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-actions .btn-ghost {
    padding: 8px 16px;
    font-size: 14px;
    background: rgba(167, 139, 250, 0.14);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: var(--text-primary);
    border-radius: var(--radius-pill);
  }

  .nav-actions .btn-ghost:hover {
    background: rgba(167, 139, 250, 0.22);
  }

  .nav-toggle {
    display: flex;
    margin-left: 10px;   /* small breathing room between Login pill and hamburger */
  }

  /* Navbar needs relative positioning context for the dropdown drawer */
  .navbar {
    position: sticky;
  }

  /* Make room for the fixed mobile bottom CTA */
  body {
    padding-bottom: 84px;
  }

  .navbar {
    padding: 12px 0;
  }

  .logo {
    font-size: 16px;
  }

  .logo-mark {
    width: 26px;
    height: 26px;
  }

  /* Hero — tight & punchy */
  .hero {
    padding: 48px 0 56px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
    gap: 8px;
    margin-bottom: 22px;
  }

  .hero-title {
    font-size: 38px !important;
    line-height: 1.08;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    font-size: 16px !important;
    margin-bottom: 28px;
    line-height: 1.55;
    padding: 0 4px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 40px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* Stats — compact 2x2 grid on mobile */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 18px;
    border-radius: 14px;
  }

  .stat {
    text-align: left;
  }

  .stat-value {
    font-size: 24px;
    justify-content: flex-start;
  }

  .stat-value i {
    font-size: 20px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-divider {
    display: none;
  }

  /* Trust bar */
  .trust-bar {
    padding: 32px 0;
  }

  .trust-label {
    font-size: 11px;
    margin-bottom: 18px;
    letter-spacing: 0.1em;
  }

  .logos {
    gap: 20px 26px;
    font-size: 15px;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

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

  .kicker {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .section-title {
    font-size: 28px !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .section-subtitle {
    font-size: 15px;
    padding: 0 8px;
  }

  /* Category filters — horizontal scroll on mobile */
  .category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    margin: 0 -16px 32px;
    padding: 0 16px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
    font-size: 13px;
    padding: 8px 14px;
  }

  /* Tools grid */
  .tools-grid {
    gap: 12px;
  }

  .tool-card {
    padding: 18px;
  }

  .tool-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
    margin-bottom: 12px;
  }

  .tool-name {
    font-size: 16px;
  }

  .tool-desc {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .tools-footer {
    margin-top: 32px;
  }

  .tools-footer p {
    font-size: 15px;
  }

  /* Features */
  .features-grid {
    gap: 14px;
  }

  .feature-card {
    padding: 22px 20px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 14px;
  }

  .feature-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .feature-card p {
    font-size: 14px;
  }

  /* Steps */
  .step {
    padding: 24px 20px;
  }

  .step h3 {
    font-size: 19px;
  }

  .step p {
    font-size: 14px;
  }

  /* Pricing */
  .pricing-grid {
    gap: 16px;
  }

  .pricing-card {
    padding: 28px 22px;
  }

  .pricing-card-featured {
    transform: none !important;
    margin-top: 8px;
  }

  .pricing-header h3 {
    font-size: 19px;
  }

  .price-amount {
    font-size: 44px;
  }

  .price-currency {
    font-size: 18px;
  }

  .pricing-features li {
    font-size: 14px;
    padding: 6px 0;
  }

  .featured-badge {
    font-size: 11px;
    padding: 5px 14px;
  }

  /* Testimonials */
  .testimonials-grid {
    gap: 14px;
  }

  .testimonial {
    padding: 22px 20px;
  }

  .testimonial > p {
    font-size: 14px;
    line-height: 1.6;
  }

  .stars {
    font-size: 14px;
    margin-bottom: 12px;
  }

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

  .author-name {
    font-size: 14px;
  }

  .author-title {
    font-size: 12px;
  }

  /* FAQ */
  .faq-item summary {
    padding: 16px 18px;
    font-size: 15px;
    gap: 12px;
  }

  .faq-item summary span {
    flex: 1;
  }

  .faq-item summary i {
    font-size: 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .faq-answer p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Final CTA */
  .final-cta {
    padding: 48px 0 64px;
  }

  .cta-card {
    padding: 44px 22px;
    border-radius: 18px;
  }

  .cta-card h2 {
    font-size: 28px !important;
    line-height: 1.1;
  }

  .cta-card p {
    font-size: 15px;
    margin-bottom: 26px;
  }

  /* Footer */
  .footer {
    padding: 56px 0 24px;
  }

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

  .footer-brand p {
    font-size: 14px;
    margin: 12px 0 18px;
  }

  .socials a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .footer-col h4 {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .footer-col a {
    font-size: 14px;
    padding: 5px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 13px;
    padding-top: 24px;
  }

  /* Aurora blobs — smaller on mobile */
  .blob-1 { width: 400px; height: 400px; }
  .blob-2 { width: 360px; height: 360px; }
  .blob-3 { width: 480px; height: 480px; }

  /* Buttons */
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-lg {
    padding: 13px 22px;
    font-size: 15px;
  }
}

/* ===== Small mobile (480px) ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-title {
    font-size: 32px !important;
  }

  .hero-subtitle {
    font-size: 15px !important;
  }

  .hero-stats {
    padding: 16px 14px;
    gap: 12px;
  }

  .stat-value {
    font-size: 21px;
  }

  .stat-label {
    font-size: 11px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 24px !important;
  }

  .tools-grid,
  .testimonials-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 36px 18px;
  }

  .cta-card h2 {
    font-size: 24px !important;
  }

  .logos {
    gap: 16px 22px;
    font-size: 14px;
  }
}

/* ===== Very small (360px) ===== */
@media (max-width: 360px) {
  .hero-title {
    font-size: 28px !important;
  }

  .section-title {
    font-size: 22px !important;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .price-amount {
    font-size: 40px;
  }
}

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

  .blob, .pulse-dot {
    animation: none !important;
  }
}

/* ===== Mobile menu open state (solid drawer, no content bleed-through) ===== */
.nav-links.open {
  display: flex !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 49;
  flex-direction: column;
  padding: 14px 20px 22px;
  background: rgba(7, 6, 26, 0.98);
  border-bottom: 1px solid var(--border-default);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  gap: 4px;
}

.nav-links.open a {
  padding: 14px 8px;
  font-size: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-links.open a:last-child {
  border-bottom: none;
}

/* ===== Touch device tweaks ===== */
@media (hover: none) {
  /* Disable hover lifts on touch — feel weird on tap */
  .tool-card:hover,
  .feature-card:hover,
  .testimonial:hover,
  .pricing-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}

/* ===== Tools list responsive ===== */
@media (max-width: 900px) {
  .tools-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tools-pricing-sticky {
    position: static;
    order: -1;
  }

  .sticky-card {
    padding: 22px 18px;
  }
}

@media (max-width: 768px) {
  .tools-list-wrap {
    padding: 20px 16px;
  }

  .tools-list li {
    padding: 11px 0;
  }

  .tl-name {
    font-size: 15px;
  }

  .tl-save {
    font-size: 13px;
  }

  .sticky-price {
    font-size: 26px;
  }
}
