/**
 * mobile.css — Emerald Edge
 * Comprehensive mobile-first override layer.
 * Loaded after styles.css. Targets ≤768px aggressively.
 * Design principle: thumb-first, content-first, zero horizontal scroll.
 */

/* ─── 0. GLOBAL MOBILE BASE ──────────────────────────────────────────────── */
@media (max-width: 768px) {

  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 76px; /* room for sticky bar */
  }

  /* Prevent iOS rubber-band on fixed elements */
  .header {
    -webkit-overflow-scrolling: touch;
  }

  /* Tap highlight */
  a, button {
    -webkit-tap-highlight-color: rgba(34, 229, 127, 0.12);
  }

  /* Every section gets proper breathing room */
  .section {
    padding: 3rem 0 !important;
    animation: none !important; /* disable heavy animations on mobile */
  }

  .section-container {
    padding: 0 1.25rem !important;
    max-width: 100% !important;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.7rem, 6vw, 2.4rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
  }

  .title-accent {
    margin: 0.75rem auto 0 !important;
  }

  /* Section headers centered */
  .section-header {
    text-align: center;
    margin-bottom: 2rem !important;
  }

  /* ── BACKGROUND: reduce on mobile for perf ── */
  .layer-2, .layer-3 {
    animation: none !important;
    opacity: 0.5;
  }
}

/* ─── 1. NAV ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .nav {
    padding: 0.875rem 1.25rem !important;
    position: relative;
  }

  .logo-image {
    width: 38px !important;
    height: 38px !important;
  }

  /* Hide desktop links */
  .nav-links {
    display: none !important;
  }

  /* Show hamburger if it exists, otherwise keep CTA */
  .nav-cta {
    margin-left: auto;
  }

  .btn-nav {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
  }
}

/* ─── 2. HERO ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .hero {
    min-height: 100svh; /* use svh on mobile — avoids browser chrome overlap */
    min-height: 100vh;  /* fallback */
    padding-top: 0;
    align-items: flex-start;
  }

  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    padding: 5.5rem 1.25rem 2.5rem !important;
    gap: 2rem !important;
    text-align: center;
  }

  .hero-badge {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.9rem !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.2rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.025em;
  }

  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.75rem !important;
    max-width: 100% !important;
    color: var(--gray-text);
  }

  /* Stack CTAs vertically, full width */
  .hero-ctas {
    flex-direction: column !important;
    gap: 0.875rem !important;
    margin-bottom: 2rem !important;
    align-items: stretch !important;
  }

  .hero-ctas .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    border-radius: 14px !important;
    min-height: 52px; /* thumb-friendly */
  }

  /* Stats: 3 across in a tight row */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
  }

  .stat {
    padding: 0.875rem 0.5rem !important;
    border-radius: 12px !important;
  }

  .stat-number {
    font-size: 1.5rem !important;
    margin-bottom: 0.2rem !important;
  }

  .stat-label {
    font-size: 0.65rem !important;
    line-height: 1.3;
  }

  /* Video: FULL WIDTH, mobile-first — show above text */
  .hero-container {
    flex-direction: column !important;
  }

  .hero-visual {
    order: -1; /* video comes FIRST on mobile */
    display: flex;
    justify-content: center;
    animation: none !important;
    width: 100%;
  }

  .hero-content {
    animation: none !important;
    order: 1;
  }

  .video-frame {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 55vw !important;
    min-height: 220px !important;
    border-radius: 16px !important;
    overflow: hidden;
  }

  .hero-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 14px !important;
  }

  .sound-btn {
    bottom: 10px !important;
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
  }
}

/* ─── 3. SEARCH HAS CHANGED SECTION ─────────────────────────────────────── */
@media (max-width: 768px) {

  .search-changed-section .section-title {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
  }

  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .content-block {
    padding: 1.5rem !important;
    border-radius: 16px !important;
  }

  .content-block h3 {
    font-size: 1.1rem !important;
    margin-bottom: 0.6rem !important;
  }

  .content-block p {
    font-size: 0.9rem !important;
    line-height: 1.65;
  }

  .block-icon {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 1rem !important;
  }
}

/* ─── 4. CTA STRIPS ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .cta-strip {
    padding: 2rem 0 !important;
  }

  .cta-strip-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
  }

  .cta-strip-text {
    font-size: 0.95rem !important;
    max-width: 300px;
  }

  .cta-strip-headline {
    font-size: 1.2rem !important;
  }

  .cta-strip-sub {
    font-size: 0.875rem !important;
    margin-bottom: 1rem !important;
  }

  .cta-strip-btns {
    flex-direction: column !important;
    width: 100%;
    gap: 0.75rem !important;
  }

  .cta-strip-btns .btn,
  .cta-strip .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 52px !important;
    border-radius: 14px !important;
    font-size: 0.95rem !important;
  }
}

/* ─── 5. AI PLATFORMS BAR ────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .ai-platforms-section {
    padding: 2rem 0 !important;
  }

  .platforms-label {
    font-size: 0.75rem !important;
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 1rem !important;
  }

  .platforms-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.6rem !important;
  }

  .platform-chip {
    padding: 0.6rem 0.5rem !important;
    border-radius: 10px !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
    text-align: center;
  }

  .platform-name {
    font-size: 0.65rem !important;
  }

  .platform-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .platforms-tagline {
    font-size: 0.85rem !important;
    line-height: 1.6;
    text-align: center;
    margin-top: 1.25rem !important;
  }
}

/* ─── 6. AIVD DASHBOARD ──────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .aivd-section {
    padding: 3rem 0 !important;
  }

  .aivd-intro {
    text-align: center;
    margin-bottom: 1.5rem !important;
  }

  .aivd-headline {
    font-size: clamp(1.6rem, 6.5vw, 2.4rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.75rem !important;
  }

  .aivd-subtext {
    font-size: 0.9rem !important;
    line-height: 1.6;
  }

  /* Make the frame scrollable horizontally — keep the mock intact */
  .aivd-frame {
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .aivd-frame-bar {
    padding: 0.6rem 1rem !important;
  }

  .aivd-frame-title {
    font-size: 0.6rem !important;
    display: none; /* hide on very small screens */
  }

  .aivd-frame-status {
    font-size: 0.7rem !important;
  }

  /* Stack columns vertically */
  .aivd-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
  }

  .aivd-col {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* Cards */
  .aivd-card {
    padding: 1rem !important;
    border-radius: 10px !important;
  }

  .aivd-card-label {
    font-size: 0.65rem !important;
    margin-bottom: 0.5rem !important;
  }

  .aivd-score-num {
    font-size: 2.25rem !important;
  }

  .aivd-score-denom {
    font-size: 0.9rem !important;
  }

  .aivd-score-badge {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
  }

  /* Graph: let it fill width */
  .aivd-card--graph {
    min-height: 100px !important;
  }

  .aivd-graph {
    width: 100% !important;
    height: 80px !important;
  }

  .aivd-graph-labels {
    font-size: 0.6rem !important;
  }

  /* Platforms grid 2-col */
  .aivd-platforms-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .aivd-plat {
    padding: 0.5rem 0.6rem !important;
    border-radius: 8px !important;
  }

  .aivd-plat-name {
    font-size: 0.7rem !important;
  }

  .aivd-plat-state {
    font-size: 0.6rem !important;
  }

  /* Right column cards */
  .aivd-opp-query {
    font-size: 0.8rem !important;
    line-height: 1.4;
    margin-bottom: 0.5rem !important;
  }

  .aivd-opp-note {
    font-size: 0.7rem !important;
  }

  .aivd-nm-action {
    font-size: 0.85rem !important;
    font-weight: 600;
    margin-bottom: 0.3rem !important;
  }

  .aivd-nm-sub {
    font-size: 0.7rem !important;
  }

  /* Bottom CTA */
  .aivd-bottom {
    text-align: center;
    margin-top: 1.5rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .aivd-microcopy {
    font-size: 0.9rem !important;
  }

  .aivd-bottom .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 52px !important;
    border-radius: 14px !important;
  }
}

/* ─── 7. HOW IT WORKS ────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .how-it-works-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  /* Video: full width, video first on mobile */
  .video-showcase {
    display: flex;
    justify-content: center;
    order: -1;
    width: 100%;
  }

  .video-frame-vertical {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 70vw !important;
    border-radius: 16px !important;
    overflow: hidden;
  }

  .vertical-video {
    border-radius: 18px !important;
  }

  /* Steps: single column, compact */
  .process-steps {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .step-card {
    padding: 1.5rem 1.25rem 1.5rem !important;
    border-radius: 14px !important;
    /* disable hover lift on touch */
    transition: none !important;
  }

  .step-card:hover {
    transform: none !important;
  }

  .step-number {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.9rem !important;
    top: -10px;
    left: 1.25rem !important;
  }

  .step-card h3 {
    font-size: 1.1rem !important;
    margin-top: 0.875rem !important;
    margin-bottom: 0.5rem !important;
  }

  .step-card p {
    font-size: 0.875rem !important;
    line-height: 1.65;
  }

  .step-accent {
    height: 3px !important;
  }
}

/* ─── 8. OFFER SECTION ───────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .offer-section {
    padding: 3rem 0 !important;
  }

  .offer-inner {
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .offer-eyebrow {
    font-size: 0.7rem !important;
    text-align: center;
    margin-bottom: 0.6rem !important;
  }

  .offer-title {
    font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
    line-height: 1.15 !important;
    text-align: center;
    margin-bottom: 1rem !important;
  }

  .offer-body {
    font-size: 0.9rem !important;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 1.5rem !important;
  }

  .offer-text .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 52px !important;
    border-radius: 14px !important;
  }

  .offer-proof {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .offer-proof-item {
    padding: 0.875rem 1rem !important;
    border-radius: 12px !important;
    font-size: 0.875rem !important;
  }

  .offer-check {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
  }
}

/* ─── 9. REGINA TRANSITION + PRODUCT ────────────────────────────────────── */
@media (max-width: 768px) {

  .reg-transition-section {
    padding: 2.5rem 0 !important;
  }

  .reg-tr-step1 {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
    text-align: center;
  }

  .reg-tr-step2 {
    font-size: 1.2rem !important;
    line-height: 1.4;
    text-align: center;
  }

  .rhp-section {
    padding: 3rem 0 !important;
  }

  .rhp-eyebrow {
    font-size: 0.65rem !important;
    text-align: center;
    margin-bottom: 0.75rem !important;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .rhp-title {
    font-size: clamp(2rem, 9vw, 3.2rem) !important;
    text-align: center;
    margin-bottom: 0.6rem !important;
  }

  .rhp-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.65;
    text-align: center;
    margin-bottom: 2rem !important;
  }

  /* Cards: single column */
  .rhp-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .rhp-card {
    padding: 1.25rem !important;
    border-radius: 14px !important;
  }

  .rhp-card h3 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
  }

  .rhp-card p {
    font-size: 0.85rem !important;
    line-height: 1.6;
  }

  .rhp-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    margin-top: 2rem !important;
    text-align: center;
  }

  .rhp-cta .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 52px !important;
    border-radius: 14px !important;
  }
}

/* ─── 10. FLOW SECTION ───────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .flow-section {
    padding: 3rem 0 !important;
  }

  .flow-section .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    text-align: center;
    margin-bottom: 0.6rem !important;
  }

  .flow-section .section-subtitle,
  .flow-tagline {
    font-size: 0.875rem !important;
    text-align: center;
    line-height: 1.6;
  }

  /* Stack the flow steps vertically with vertical connectors */
  .flow-steps {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    margin-top: 2rem !important;
  }

  .flow-step {
    width: 100% !important;
    max-width: 320px !important;
    padding: 1.25rem !important;
    border-radius: 14px !important;
    text-align: center;
    margin-bottom: 0;
  }

  .flow-step-icon {
    margin: 0 auto 0.75rem !important;
    width: 44px !important;
    height: 44px !important;
  }

  .flow-step-label {
    font-size: 0.95rem !important;
    font-weight: 700;
    margin-bottom: 0.3rem !important;
  }

  .flow-step-desc {
    font-size: 0.78rem !important;
    line-height: 1.5;
  }

  /* Connectors: rotate to vertical */
  .flow-connector {
    transform: rotate(90deg) !important;
    margin: 0.5rem auto !important;
    display: block !important;
    width: 48px !important;
    height: 8px !important;
  }

  .flow-loop-note {
    font-size: 0.8rem !important;
    text-align: center;
    margin-top: 1.5rem !important;
    line-height: 1.5;
  }
}

/* ─── 11. TESTIMONIALS ───────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Make testimonials a horizontal scroll carousel */
  .content-grid:has(.testimonial-block) {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    gap: 1rem !important;
    padding-bottom: 1rem !important;
    /* hide scrollbar visually */
    scrollbar-width: none;
  }

  .content-grid:has(.testimonial-block)::-webkit-scrollbar {
    display: none;
  }

  .testimonial-block {
    min-width: min(80vw, 300px) !important;
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
    padding: 1.25rem !important;
    border-radius: 16px !important;
  }

  .testimonial-quote svg {
    width: 26px !important;
    height: 26px !important;
  }

  .testimonial-block p {
    font-size: 0.875rem !important;
    line-height: 1.65;
  }

  .author-name {
    font-size: 0.875rem !important;
    font-weight: 700;
  }

  .author-company {
    font-size: 0.75rem !important;
  }

  /* Scroll hint dots */
  .testimonials-hint {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--gray-text);
    opacity: 0.6;
  }
}

/* Fallback for browsers without :has() */
@supports not (selector(:has(a))) {
  @media (max-width: 768px) {
    .testimonial-block {
      min-width: min(80vw, 300px) !important;
      scroll-snap-align: start !important;
      flex-shrink: 0 !important;
      padding: 1.25rem !important;
      border-radius: 16px !important;
    }
  }
}

/* ─── 12. PRICING ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .pricing-card {
    padding: 1.75rem 1.25rem !important;
    border-radius: 18px !important;
    max-width: 100% !important;
  }

  .pricing-header h3 {
    font-size: 1.3rem !important;
    margin-bottom: 0.5rem !important;
  }

  .pricing-badge {
    font-size: 0.75rem !important;
  }

  .price-display {
    flex-direction: column !important;
    gap: 0.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  .price-amount {
    font-size: 1.5rem !important;
  }

  .price-label {
    font-size: 0.8rem !important;
  }

  .pricing-features {
    margin-bottom: 1.5rem !important;
  }

  .pricing-features li {
    font-size: 0.875rem !important;
    padding: 0.6rem 0 !important;
  }

  .btn-full {
    min-height: 52px !important;
    border-radius: 14px !important;
    font-size: 0.95rem !important;
  }
}

/* ─── 13. FINAL CTA SECTION ──────────────────────────────────────────────── */
@media (max-width: 768px) {

  .cta-section {
    padding: 3.5rem 0 !important;
    text-align: center;
  }

  .cta-content {
    margin-bottom: 2.5rem !important;
  }

  .cta-title {
    font-size: clamp(1.9rem, 8vw, 2.8rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 1rem !important;
  }

  .cta-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.7;
    margin-bottom: 1.75rem !important;
    max-width: 100% !important;
  }

  .cta-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.875rem !important;
  }

  .cta-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 52px !important;
    border-radius: 14px !important;
  }

  .cta-phone-link {
    font-size: 1rem !important;
    gap: 0.5rem !important;
  }

  /* CTA visual stats: 2-col */
  .ai-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-top: 2rem !important;
  }

  .stat-item {
    padding: 1rem !important;
    border-radius: 12px !important;
    text-align: center;
  }

  .stat-value {
    font-size: 1.6rem !important;
    font-weight: 800;
    color: var(--emerald);
  }

  .stat-desc {
    font-size: 0.7rem !important;
    line-height: 1.4;
    color: var(--gray-text);
  }
}

/* ─── 14. FOOTER ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .footer {
    padding: 2.5rem 0 1.5rem !important;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
    margin-bottom: 2rem !important;
  }

  .footer-brand {
    align-items: center !important;
  }

  .footer-logo {
    justify-content: center !important;
    margin-bottom: 0.75rem !important;
  }

  .footer-logo-img {
    width: 36px !important;
    height: 36px !important;
  }

  .footer-tagline {
    font-size: 0.825rem !important;
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto !important;
  }

  .footer-section h4 {
    font-size: 0.75rem !important;
    letter-spacing: 0.08em;
    margin-bottom: 0.875rem !important;
  }

  .footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-section a {
    font-size: 0.875rem !important;
    min-height: 36px; /* touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
    padding-top: 1.5rem !important;
  }

  .footer-copyright {
    font-size: 0.75rem !important;
  }

  .footer-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem 1.25rem !important;
  }

  .footer-links a {
    font-size: 0.75rem !important;
  }
}

/* ─── 15. STICKY MOBILE CTA BAR (refined) ───────────────────────────────── */
@media (max-width: 768px) {

  .sticky-cta {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    padding: 10px 16px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important; /* iPhone notch */
    background: rgba(8, 11, 15, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(34, 229, 127, 0.15) !important;
    gap: 10px !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .sticky-cta--visible {
    transform: translateY(0) !important;
  }

  .sticky-cta-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 13px 10px !important;
    border-radius: 12px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    min-height: 48px !important; /* 48px minimum touch target */
    transition: opacity 0.15s, transform 0.15s !important;
  }

  .sticky-cta-btn:active {
    opacity: 0.85 !important;
    transform: scale(0.97) !important;
  }

  .sticky-cta-call {
    background: var(--emerald) !important;
    color: var(--dark-bg) !important;
    font-weight: 800 !important;
  }

  .sticky-cta-audit {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: var(--light-text) !important;
  }

  /* Add extra bottom padding to body so last content isn't hidden */
  body {
    padding-bottom: max(76px, calc(56px + env(safe-area-inset-bottom))) !important;
  }
}

@media (min-width: 769px) {
  .sticky-cta { display: none !important; }
}

/* ─── 16. BUTTONS GLOBAL MOBILE ──────────────────────────────────────────── */
@media (max-width: 768px) {

  /* All buttons: minimum 48px height for tap targets */
  .btn {
    min-height: 48px !important;
    border-radius: 12px !important;
  }

  .btn-large {
    padding: 1rem 1.5rem !important;
    font-size: 0.95rem !important;
    min-height: 54px !important;
    border-radius: 14px !important;
  }

  /* Disable hover transforms on touch — they linger */
  .btn:hover {
    transform: none !important;
  }

  .btn-primary:hover {
    box-shadow: 0 8px 32px var(--glow-color) !important;
  }
}

/* ─── 17. TOUCH IMPROVEMENTS ─────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Disable CSS hover effects that don't apply to touch */
  .step-card:hover,
  .industry-card:hover,
  .content-block:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Smooth scroll padding for fixed header */
  html {
    scroll-padding-top: 70px !important;
  }

  /* All interactive elements: minimum 44px touch target (Apple HIG) */
  a, button, [role="button"] {
    min-height: 44px;
  }

  /* Focus visible for keyboard users */
  :focus-visible {
    outline: 2px solid var(--emerald) !important;
    outline-offset: 3px !important;
  }
}

/* ─── 18. EXTRA SMALL PHONES (375px and under) ───────────────────────────── */
@media (max-width: 375px) {

  .hero-title {
    font-size: 2rem !important;
  }

  .section-title {
    font-size: 1.55rem !important;
  }

  .hero-ctas .btn {
    font-size: 0.875rem !important;
    padding: 0.875rem 1.25rem !important;
  }

  .hero-stats {
    gap: 0.5rem !important;
  }

  .stat-number {
    font-size: 1.3rem !important;
  }

  .stat-label {
    font-size: 0.6rem !important;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .aivd-score-num {
    font-size: 2rem !important;
  }

  .sticky-cta-btn {
    font-size: 0.8rem !important;
    padding: 11px 8px !important;
  }
}

/* ─── 19. LANDSCAPE PHONE ────────────────────────────────────────────────── */
@media (max-width: 768px) and (orientation: landscape) {

  .hero {
    min-height: auto !important;
    padding-top: 0;
  }

  .hero-container {
    flex-direction: row !important;
    gap: 1.5rem !important;
    padding: 5rem 1.25rem 2rem !important;
    align-items: center;
  }

  .hero-visual {
    display: flex;
    order: -1;
  }

  .video-frame {
    max-width: 45vw !important;
    max-height: 35vw !important;
  }

  .hero-stats {
    gap: 0.5rem !important;
  }

  .stat {
    padding: 0.6rem !important;
  }
}

/* ─── 20. PERFORMANCE: Reduce motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto !important;
  }
}

/* ─── 21. INDUSTRY SELECTOR ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .industry-section {
    padding: 28px 1.25rem 16px;
  }
  .industry-grid {
    gap: 8px;
  }
  .industry-chip {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
  .industry-msg-text {
    font-size: 0.92rem;
    text-align: center;
    padding: 0 0.5rem;
  }
}

/* ─── 22. BEFORE / AFTER ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .before-after-section {
    padding: 48px 0;
  }
  .section-sub {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
  .ba-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }
  .ba-card {
    padding: 20px;
  }
  .ba-response-text {
    font-size: 0.85rem;
  }
  .ba-verdict {
    font-size: 0.75rem;
  }
  .ba-footnote {
    font-size: 0.74rem;
    padding: 0 1rem;
  }
}

/* ─── 23. CASE STUDY ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .case-study-section {
    padding: 48px 0;
  }
  .cs-card {
    padding: 24px 20px;
    margin-top: 32px;
  }
  .cs-quote {
    font-size: 0.95rem;
    padding-left: 14px;
  }
  .cs-numbers {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
  }
  .cs-stat-num {
    font-size: 1.4rem;
  }
  .cs-stat-label {
    font-size: 0.72rem;
  }
}

/* ─── 24. OBJECTIONS ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .objections-section {
    padding: 48px 0;
  }
  .objections-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }
  .obj-card {
    padding: 20px;
  }
  .obj-q {
    font-size: 0.9rem;
  }
  .obj-a {
    font-size: 0.84rem;
  }
}

/* ─── 25. FOUNDER ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .founder-section {
    padding: 48px 0;
  }
  .founder-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .founder-photo-wrap {
    margin: 0 auto;
    width: 120px;
    height: 120px;
  }
  .founder-photo-placeholder {
    width: 120px;
    height: 120px;
  }
  .founder-name {
    font-size: 1.05rem;
  }
  .founder-bio {
    font-size: 0.88rem;
  }
  .founder-detail {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

/* ─── 26. TRUST BAR (mobile-first) ──────────────────────────────────────── */
@media (max-width: 768px) {
  .trust-bar-section { padding: 24px 1.25rem; }
  .trust-bar-label { font-size: 0.65rem; margin-bottom: 14px; }
  .trust-bar-logos { gap: 16px; }
  .trust-logo-item svg { width: 22px !important; height: 22px !important; }
  .trust-text-logo { font-size: 0.9rem; }
  .trust-logo-item span:last-child { font-size: 0.6rem; }
}

/* ─── 27. PROCESS STRIP (mobile-first) ──────────────────────────────────── */
@media (max-width: 768px) {
  .process-strip-section { padding: 40px 1.25rem; }
  .process-strip-label { font-size: 0.68rem; margin-bottom: 28px; }
  .process-strip-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .process-strip-step {
    max-width: 100%;
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    text-align: left;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: start;
  }
  .pss-num {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.65rem;
    margin-bottom: 4px;
  }
  .pss-icon {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.5rem;
    margin-bottom: 0;
    text-align: center;
  }
  .pss-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
  .pss-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.82rem;
  }
  .process-strip-arrow {
    text-align: center;
    padding: 10px 0;
    transform: rotate(90deg);
    font-size: 1.2rem;
    opacity: 0.3;
  }
  .process-strip-cta { padding: 0; }
  .process-strip-cta .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    min-height: 52px !important;
    border-radius: 14px !important;
  }
  .process-strip-note { font-size: 0.72rem; }
}

/* ─── 28. COMPARISON TABLE (mobile-first) ───────────────────────────────── */
@media (max-width: 768px) {
  .comparison-section { padding: 48px 1.25rem; }
  .comparison-table-wrap {
    margin-top: 32px;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table { min-width: 480px; }
  .comparison-table th { padding: 12px 10px; font-size: 0.7rem; }
  .comp-feature { font-size: 0.78rem; padding: 12px 10px; }
  .comp-cell { padding: 12px 8px; font-size: 0.95rem; }
  .comparison-cta { padding: 0; }
  .comparison-cta .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    min-height: 52px !important;
    border-radius: 14px !important;
  }
}

/* ─── 29. PAYMENT TRUST (mobile-first) ──────────────────────────────────── */
@media (max-width: 768px) {
  .payment-trust-section { padding: 32px 1.25rem; }
  .payment-trust-label { font-size: 0.65rem; }
  .payment-cards-row { gap: 8px; justify-content: center; }
  .pay-card svg { width: 44px !important; height: 28px !important; }
  .security-badges { gap: 10px; }
  .sec-badge { font-size: 0.68rem; gap: 4px; }
  .sec-badge svg { width: 13px !important; height: 13px !important; }
}

/* ─── 30. TESTIMONIALS CAROUSEL (mobile-first) ───────────────────────────── */
@media (max-width: 768px) {
  .reviews-stars-row { flex-direction: column; gap: 4px; margin-bottom: 4px; }
  .testimonials-carousel { margin-top: 24px; overflow: visible; }
  .testimonials-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .testimonials-track::-webkit-scrollbar { display: none; }
  .testimonial-card {
    flex: 0 0 85vw;
    min-width: 85vw;
    scroll-snap-align: center;
    padding: 22px 20px;
    border-radius: 14px;
  }
  .tcard-quote { font-size: 0.88rem; }
  .testimonials-nav { margin-top: 16px; }
  .tcarousel-btn { width: 36px; height: 36px; }
  .testimonials-hint { display: block !important; text-align: center; font-size: 0.75rem; color: var(--muted-text); margin-top: -4px; }
}

/* ─── 31. WHATSAPP FLOAT (mobile-first) ─────────────────────────────────── */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 76px;
    right: 12px;
    padding: 13px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
  }
  .whatsapp-label { display: none; }
}

/* ─── 32. EXTRA SMALL (375px and below) ─────────────────────────────────── */
@media (max-width: 375px) {
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.5rem) !important; }
  .testimonial-card { flex: 0 0 92vw; min-width: 92vw; }
  .industry-chip { font-size: 0.78rem; padding: 6px 12px; }
  .cs-stat-num { font-size: 1.2rem; }
  .pss-title { font-size: 0.88rem; }
}

/* ─── 33. BACKGROUND LAYER LINES (the vertical bands) ───────────────────── */
@media (max-width: 768px) {
  /* Kill layers 2 and 3 entirely on mobile — they double up the gradient edges */
  .layer-2, .layer-3 {
    display: none !important;
  }

  /* Soften layer 1 gradients and shift them off-screen so edges don't show */
  .layer {
    background:
      radial-gradient(ellipse at 50% 30%, rgba(34,229,127,0.05) 0%, transparent 60%),
      radial-gradient(ellipse at 50% 80%, rgba(28,183,232,0.03) 0%, transparent 60%) !important;
  }
}

/* ─── 34. FOOTER COLUMNS FIX ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }
  .footer-container {
    padding: 0 1.25rem !important;
  }
  .footer-section {
    padding: 0 !important;
    border: none !important;
  }
  .footer-section ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .social-links {
    justify-content: center !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }
  .footer-links {
    justify-content: center !important;
    gap: 16px !important;
  }
}

/* ─── 35. HERO VIDEO POSITION (move down slightly on mobile) ─────────────── */
@media (max-width: 768px) {
  .hero-container {
    padding-top: 6.5rem !important; /* was 5.5rem — pushes content including video down */
    gap: 1.5rem !important;
  }

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