/* ============================================================
   AstroKamya™ — HERO 2026 MOBILE OVERHAUL
   mobile-hero-2026.css — Must load LAST (after all hero CSS)
   ============================================================
   Target: Complete 2026-grade mobile hero redesign
   Key fixes:
   1. Side-by-side compact buttons (NOT full-width stacked)
   2. Compact trust row with badges
   3. Tighter spacing — no wasted vertical space
   4. Premium glassmorphism insight card (full-width)
   5. Bigger, more readable headline
   6. Modern 2026 eyebrow pill
   7. Better cosmic ambient animation placement
   8. All other homepage sections polished for mobile
   ============================================================ */

/* ══════════════════════════════════════════════════
   1. HERO — MOBILE BASE (≤768px)
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Hero container ── */
  #hero-v9 {
    padding: 16px 16px 0 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .h9-hero-left {
    gap: 12px !important;
    padding-right: 0 !important;
    padding-bottom: 20px !important;
  }

  /* ── Eyebrow — modern pill on mobile ── */
  .h9-eyebrow {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 9px !important;
    letter-spacing: 0.12em !important;
    padding: 5px 12px 5px 8px !important;
    background: rgba(125, 211, 192, 0.06) !important;
    border: 1px solid rgba(125, 211, 192, 0.15) !important;
    border-radius: 999px !important;
    border-bottom: none !important;
    width: fit-content !important;
    margin-bottom: 2px;
  }
  .h9-eyebrow .h9-eye-sep { display: none !important; }
  /* Hide verbose text on small screens — keep just the live count */
  .h9-eyebrow .h9-eye-text { display: none !important; }

  /* ── Headline ── */
  .h9-hero-title {
    font-size: clamp(38px, 10.5vw, 52px) !important;
    line-height: 0.96 !important;
    letter-spacing: -0.025em !important;
    gap: 0 !important;
  }
  .h9-hero-title .h9-line { gap: 0.15em !important; }
  .h9-hero-title .h9-line-2 { margin-left: 0.1em !important; }
  .h9-em-written { font-size: 1.25em !important; }
  .h9-asterism { display: none !important; }
  .h9-hero-title .h9-line-4 { margin-top: 4px !important; }

  /* ── Insight card — full-width premium glass ── */
  .h9-insight-card {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(18,10,36,0.82) 0%, rgba(10,5,24,0.72) 100%) !important;
    border: 1px solid rgba(125, 211, 192, 0.18) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.03) inset !important;
  }
  .h9-insight-body {
    font-size: 14px !important;
    line-height: 1.45;
    /* Truncate long insight text */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .h9-insight-rail { margin-bottom: 4px; }
  .h9-insight-meta { flex-wrap: wrap; gap: 4px 8px; }

  /* ── CTA Row — SIDE BY SIDE, NOT STACKED ── */
  .h9-cta-cluster { gap: 12px !important; }
  .h9-cta-row {
    display: flex !important;
    flex-direction: row !important;       /* ← KEY: side by side */
    gap: 10px !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }

  /* Primary button — compact pill on mobile */
  .h9-btn-primary {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    justify-content: center !important;
    white-space: nowrap;
    gap: 8px !important;
  }
  .h9-btn-primary .h9-btn-arrow svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Secondary button — compact ghost pill */
  .h9-btn-secondary {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 13px 14px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
    justify-content: center !important;
    white-space: nowrap;
    gap: 6px !important;
    backdrop-filter: blur(16px) !important;
  }
  .h9-btn-secondary svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
  }

  /* ── Trust row — modern badge grid ── */
  .h9-trust-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    padding: 12px 14px !important;
    margin-top: 0 !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 12px !important;
    border-top: none !important;
  }
  .h9-trust-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    flex: 1 !important;
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2;
  }
  .h9-trust-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.07) !important;
  }
  .h9-trust-item .h9-trust-n {
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1 !important;
  }
  .h9-trust-item .h9-trust-star { font-size: 12px !important; }
  .h9-trust-sep { display: none !important; }

  /* ── Mobile cosmic anim — better position ── */
  .h9-mobile-anim {
    top: 28% !important;
    right: -30px !important;
    width: 240px !important;
    height: 240px !important;
    opacity: 0.35 !important;
  }

  /* ── Ephemeris bar — compact, single line ── */
  .h9-ephemeris-bar {
    padding: 8px 16px !important;
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
    gap: 10px !important;
  }
}

/* ══════════════════════════════════════════════════
   2. SMALL MOBILE (≤480px)
   ══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  #hero-v9 {
    padding: 12px 14px 0 !important;
  }

  .h9-hero-title {
    font-size: clamp(34px, 9.5vw, 46px) !important;
  }

  .h9-btn-primary,
  .h9-btn-secondary {
    font-size: 14px !important;
    padding: 12px 12px !important;
  }

  .h9-trust-item .h9-trust-n {
    font-size: 16px !important;
  }

  .h9-mobile-anim {
    width: 200px !important;
    height: 200px !important;
    top: 25% !important;
    right: -20px !important;
    opacity: 0.28 !important;
  }
}

/* ══════════════════════════════════════════════════
   3. TRUST / TECH SECTION — MOBILE (Planets row)
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .trust-section {
    padding: 28px 0 !important;
  }
  .trust-inner {
    padding: 0 16px !important;
  }
  .trust-heading-text {
    font-size: 11px !important;
    letter-spacing: 0.1em;
  }
  .planets-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px 8px !important;
    justify-items: center;
    padding: 20px 0 !important;
  }
  /* Center the 2 remaining planets in the second row */
  .planet-col:nth-child(4),
  .planet-col:nth-child(5) {
    grid-column: span 1;
  }
  .planet-col:nth-child(4) { justify-self: end; margin-right: 20px; }
  .planet-col:nth-child(5) { justify-self: start; margin-left: 20px; }

  .ring-wrap {
    width: 72px !important;
    height: 72px !important;
  }
  .planet { width: 30px !important; height: 30px !important; }
  .planet-label {
    font-size: 10px !important;
    margin-top: 6px !important;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════
   4. BIRTH INPUT SECTION — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #birth-input {
    padding: 40px 0 32px !important;
  }
  #birth-input .wrap {
    padding: 0 16px !important;
  }
  #birth-input > .wrap > .center {
    margin-bottom: 8px !important;
  }
  /* Hide the infographic panel on mobile — focus on form */
  .infographic-panel {
    display: none !important;
  }
  .input-split {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .input-card-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
  .input-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
  .field-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .fld label {
    font-size: 11px !important;
    margin-bottom: 5px !important;
  }
  .fld input {
    padding: 12px 12px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }
  /* CTA button in birth form */
  #s1 .btn-primary,
  #step-cta,
  .step-next-btn {
    width: 100% !important;
    padding: 15px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    margin-top: 12px !important;
  }
}

/* ══════════════════════════════════════════════════
   5. DEMO / HOW IT WORKS SECTION — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #demo {
    padding: 40px 0 !important;
  }
  #demo .wrap { padding: 0 16px !important; }
  #demo h2 { font-size: clamp(24px, 6.5vw, 36px) !important; }

  .demo-grid,
  .demo-cards {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .demo-card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  /* Demo input form */
  .demo-form {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .demo-form input {
    width: 100% !important;
    font-size: 16px !important;
  }
  .demo-form button {
    width: 100% !important;
  }
}

/* ══════════════════════════════════════════════════
   6. INTENT / FOR YOU SECTION — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #intent {
    padding: 40px 0 !important;
  }
  #intent .wrap { padding: 0 16px !important; }

  /* Intent chips — horizontal scroll */
  .intent-chips,
  .chip-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 8px !important;
    justify-content: flex-start !important;
  }
  .intent-chips::-webkit-scrollbar,
  .chip-row::-webkit-scrollbar { display: none; }

  .chip,
  .intent-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
  }

  /* Concern/intent panels grid */
  .concern-panels,
  .intent-panels,
  .intent-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .intent-panel,
  .concern-panel {
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }
}

/* ══════════════════════════════════════════════════
   7. TESTIMONIALS — MOBILE OPTIMIZED
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #testimonials {
    padding: 40px 0 !important;
  }
  #testimonials .wrap { padding: 0 16px !important; }

  .testimonial-grid,
  .review-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Horizontal scroll testimonials */
  .testimonial-scroll,
  .review-scroll {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 12px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
  }
  .testimonial-scroll::-webkit-scrollbar { display: none; }

  .testimonial-card,
  .review-card {
    min-width: 280px !important;
    max-width: 280px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }

  /* Quote text */
  .testimonial-card blockquote,
  .review-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
}

/* ══════════════════════════════════════════════════
   8. PRICING SECTION — 2026 MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #pricing {
    padding: 40px 0 32px !important;
  }
  #pricing .wrap { padding: 0 16px !important; }
  #pricing h2 { font-size: clamp(24px, 6.5vw, 36px) !important; }

  .pricing-toggle,
  .billing-toggle {
    margin: 16px auto !important;
  }

  .plan-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  /* Highlight the popular plan */
  .plan-card.popular,
  .pricing-card.featured {
    order: -1 !important; /* Show first on mobile */
    border-width: 2px !important;
  }

  .plan-card,
  .pricing-card {
    padding: 22px 18px !important;
    border-radius: 16px !important;
  }

  .plan-price,
  .price-amount {
    font-size: 38px !important;
  }

  .plan-cta,
  .pricing-cta {
    width: 100% !important;
    padding: 14px !important;
    font-size: 15px !important;
  }
}

/* ══════════════════════════════════════════════════
   9. FAQ SECTION — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #faq {
    padding: 40px 0 !important;
  }
  #faq .wrap { padding: 0 16px !important; }
  #faq h2 { font-size: clamp(22px, 6vw, 32px) !important; }

  .faq2-item,
  .faq-item {
    border-radius: 12px !important;
    margin-bottom: 8px !important;
  }
  .faq2-q, .faq-question {
    padding: 16px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
  }
  .faq2-a, .faq-answer {
    padding: 0 16px 14px !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
}

/* ══════════════════════════════════════════════════
   10. FINAL CTA SECTION — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #cta-final {
    padding: 48px 16px !important;
    text-align: center;
  }
  #cta-final h2 {
    font-size: clamp(24px, 6.5vw, 36px) !important;
    line-height: 1.15 !important;
  }
  #cta-final p {
    font-size: 14px !important;
    line-height: 1.65 !important;
    max-width: 340px !important;
    margin: 0 auto 20px !important;
  }
  /* CTA buttons — side by side if they fit, else stack */
  #cta-final .cta-row,
  #cta-final .cta-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 360px !important;
    margin: 0 auto !important;
  }
  #cta-final .cta-btn,
  #cta-final .btn-primary,
  #cta-final a.btn {
    width: 100% !important;
    padding: 15px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════
   11. AWARD BADGES / SOCIAL PROOF — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .award-grid,
  .badges-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 16px !important;
  }
  .award-badge {
    padding: 14px 12px !important;
    border-radius: 12px !important;
  }
}

/* ══════════════════════════════════════════════════
   12. COSMIC ELEVATION / PARALLAX — DISABLE ON MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Performance: disable parallax/will-change on mobile */
  .parallax,
  [data-parallax],
  .cosmic-parallax {
    transform: none !important;
    will-change: auto !important;
  }
}

/* ══════════════════════════════════════════════════
   13. SECTION LABELS / EYEBROWS — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sec-label,
  .section-label,
  .eyebrow-label {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 10px !important;
  }
  .center.r {
    text-align: center !important;
  }
  h2.center.r {
    font-size: clamp(22px, 6vw, 36px) !important;
    line-height: 1.15 !important;
    margin-bottom: 20px !important;
  }
}

/* ══════════════════════════════════════════════════
   14. CONCERN / SCANNER PANELS — MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .concern-panels {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 0 16px !important;
  }
  .concern-panel {
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }
}

/* ══════════════════════════════════════════════════
   15. SCROLLING MARQUEE — OPTIMIZE MOBILE
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .marquee-track,
  .scroll-track {
    /* Slightly faster on mobile for snappier feel */
    animation-duration: 25s !important;
  }

  .lt-features-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 0 16px !important;
  }
}

/* ══════════════════════════════════════════════════
   16. STICKY BOTTOM BAR — 2026 MOBILE
   (Shows when user scrolls past hero)
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Birth form floating prompt */
  .h9-sticky-bar,
  #hero-sticky-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 500 !important;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
    background: linear-gradient(0deg, rgba(2,1,17,0.98), rgba(5,2,20,0.95)) !important;
    border-top: 1px solid rgba(255,217,107,0.15) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .h9-sticky-bar.visible,
  #hero-sticky-bar.visible {
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════
   17. MOBILE-ONLY VISUAL IMPROVEMENTS
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Better section separation with subtle gradient dividers */
  section + section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.15), transparent);
    margin: 0 24px;
  }

  /* Smoother scroll */
  html {
    scroll-behavior: smooth !important;
  }

  /* Tap highlight removal */
  * {
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Selection color — cosmic purple */
  ::selection {
    background: rgba(124,58,237,0.35) !important;
    color: #fff !important;
  }
}
