/* Phone layer for every page. Loaded last, so it only overrides what phones need.
   Goal: the desktop feel scaled down (precise small type, open space, refined serif headlines),
   readable without anything feeling oversized. Desktop is untouched. */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }

  /* nav: lighter */
  nav { padding: 0.9rem 1.15rem !important; }
  .nav-logo { gap: 10px !important; }
  .nav-logo-mark { width: 30px !important; height: 30px !important; }
  .nav-logo-text { font-size: 13px !important; letter-spacing: 2px !important; }
  .nav-phone { font-size: 10px !important; letter-spacing: 1.2px !important; padding: 0.5rem 0.75rem !important; }
  .nav-cta { font-size: 9.5px !important; letter-spacing: 1.6px !important; }

  /* headlines: elegant, not shouting */
  .hero-headline { font-size: 36px !important; letter-spacing: -0.5px !important; line-height: 1.05 !important; margin-bottom: 1.2rem !important; }
  .section-title { font-size: 26px !important; line-height: 1.15 !important; }
  .cta-title { font-size: 30px !important; }
  .service-pin-title { font-size: 22px !important; }
  .guarantee-terms-title { font-size: 21px !important; }
  .diff-quote { font-size: 22px !important; }

  /* decorative numerals and wordmarks: scaled to the screen */
  .problem-num { font-size: 40px !important; }
  .offer-step { font-size: 54px !important; }
  .service-pin-num { font-size: 54px !important; }
  .proof-result { font-size: 52px !important; }
  .stat-num { font-size: 48px !important; }
  .stat-num.stat-num-text { font-size: 34px !important; }
  .sonar-name { font-size: 40px !important; }
  .sonar-mock-stat-value { font-size: 24px !important; }
  .about-decoration, .about-portrait .about-decoration { font-size: 28px !important; }
  .cta-bg-text { font-size: 72px !important; }
  .testimonial-quote::before { font-size: 40px !important; }
  .faq-icon { font-size: 22px !important; }
  .services-pin-counter { font-size: 16px !important; }

  /* small uppercase labels */
  .hero-eyebrow, .section-label, .section-label-num, .hero-guarantee-text, .hero-fact-label, .hero-spots,
  .ticker-item, .service-pin-tag, .offer-highlight, .offer-note, .proof-industry, .proof-result-label,
  .proof-location, .proof-service, .stat-label, .sonar-feature, .sonar-sample-label, .sonar-mock-title,
  .video-caption, .footer-copy, .footer-link, .audit-field label, .site-opts legend, .audit-fine,
  .ya-label, .ya-note-kicker, .ya-chip, .ya-node-when, .ya-proof-label, .ya-progress-text, .preloader-label,
  .cta-guarantee {
    font-size: 9.5px !important;
    letter-spacing: 1.8px !important;
    line-height: 1.6 !important;
  }
  .hero-fact-value { font-size: 12px !important; }
  .sonar-mock-stat-label, .sonar-mock-bar-label, .sonar-mock-bar-label span, .sparkline-label, .sparkline-label span, .sonar-mock-live {
    font-size: 8.5px !important; letter-spacing: 1.2px !important;
  }
  .ind-card p[style*="font-size: 10px"] { font-size: 10px !important; }

  /* small titles */
  .problem-title, .offer-title, .step-title, .why-title, .process-step-title, .deliver-name,
  .faq-q-text, .ya-node h3 {
    font-size: 12px !important;
    letter-spacing: 1.4px !important;
    line-height: 1.45 !important;
  }

  /* body copy */
  .hero-sub, .section-sub, .problem-desc, .offer-desc, .step-desc, .diff-text, .service-pin-desc,
  .sonar-desc, .about-text, .faq-a-text, .cta-sub, .final-cta-sub, .why-desc, .process-step-desc,
  .honest-body, .deliver-desc, .guarantee-terms li, .video-sub, .audit-points li, .audit-done p,
  .proof-client, .free-site-note, .ya-card p, .ya-node p, .ya-terms p, .ya-proof-text,
  .ya-faq details p, .ya-check-hint, .about-text strong {
    font-size: 13.5px !important;
    line-height: 1.7 !important;
  }
  .about-email { font-size: 11px !important; }

  /* buttons */
  .btn-primary, .btn-ghost, .ya-btn-outline {
    font-size: 10.5px !important;
    letter-spacing: 2px !important;
    min-height: 44px;
    padding: 0.85rem 1.2rem !important;
    display: inline-flex !important;
    align-items: center; justify-content: center; text-align: center;
  }

  /* hero eyebrow: one clean wrapped line instead of two squeezed columns */
  .hero-eyebrow { display: block !important; margin-bottom: 1.4rem !important; text-wrap: balance; }
  .hero-eyebrow::before { display: none !important; }
  .hero-guarantee { padding: 0.6rem 1rem !important; margin-bottom: 1.6rem !important; gap: 10px !important; }
  .hero-actions { gap: 0.6rem !important; }
  .services-pin-header { padding: 0 1.15rem 1.5rem !important; }

  /* spacing: open but not empty */
  .hero { padding-top: 5.5rem !important; padding-bottom: 2.5rem !important; }
  .section-inner { padding: 2.75rem 1.15rem !important; }
  .cta-section, .final-cta { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  .stat-card { padding: 1.8rem 1.15rem !important; }
  .problem-card, .offer-card, .why-card { padding: 1.4rem 1.2rem !important; }
  .section-divider { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

  /* services cards: full width */
  .services-horizontal { padding-left: 1.15rem !important; padding-right: 1.15rem !important; gap: 0.9rem !important; }
  .services-horizontal .service-pin-card { width: 100% !important; max-width: none !important; min-width: 0 !important; flex: 0 0 auto !important; padding: 1.6rem 1.2rem !important; }

  /* shorter intro animation on phones (index.html also shortens the timers) */
  .preloader { transition: opacity 0.45s ease, visibility 0.45s ease !important; }
  .preloader-curtain { transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1) !important; }

  /* the sound toggle does nothing useful on a phone and would sit on the audit bar */
  .audio-toggle { display: none !important; }

  /* sticky audit bar (added by mobile.js) */
  body.has-mbar { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    display: flex; gap: 8px; align-items: center;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 10, 10, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 0.5px solid rgba(227, 179, 65, 0.35);
    transform: translateY(110%); transition: transform 0.35s cubic-bezier(.4, .2, .2, 1);
  }
  .mbar.show { transform: translateY(0); }
  .mbar a {
    font-family: 'Montserrat', sans-serif; text-decoration: none; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; min-height: 42px;
  }
  .mbar .mbar-audit { flex: 1; background: #E3B341; color: #0a0a0a; font-size: 10.5px; font-weight: 600; letter-spacing: 1.8px; }
  .mbar .mbar-call { flex: 0 0 42px; border: 0.5px solid rgba(227, 179, 65, 0.6); color: #E3B341; }
  .mbar .mbar-call svg { width: 17px; height: 17px; fill: currentColor; }
}
@media (min-width: 761px) { .mbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .mbar { transition: none; } }
@media (max-width: 760px) { .proof-result.proof-result-2 { font-size: 34px !important; } }

/* Phone layout v2 (2026-10-20): shorter page, same look.
   Problem boxes as a 2x2 grid, services as a swipe row, tighter lists and stats. */
@media (max-width: 760px) {
  /* problem: four squares */
  .problem-grid { grid-template-columns: 1fr 1fr !important; margin-top: 2rem !important; }
  .problem-grid .problem-card { padding: 1.15rem 0.95rem 1.25rem !important; border-right: none !important; border-bottom: none !important; }
  .problem-grid .problem-card:nth-child(odd) { border-right: 0.5px solid var(--border-gold) !important; }
  .problem-grid .problem-card:nth-child(-n+2) { border-bottom: 0.5px solid var(--border-gold) !important; }
  .problem-grid .problem-num { font-size: 26px !important; margin-bottom: 0.5rem !important; color: rgba(227,179,65,0.22) !important; }
  .problem-grid .problem-title { font-size: 10px !important; letter-spacing: 1.2px !important; margin-bottom: 0.45rem !important; }
  .problem-grid .problem-desc { font-size: 12px !important; line-height: 1.55 !important; }

  /* services: swipe row instead of four stacked cards */
  .services-pin { padding: 2.75rem 0 2rem !important; }
  .services-horizontal {
    flex-direction: row !important; transform: none !important; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 0.25rem !important;
  }
  .services-horizontal::-webkit-scrollbar { display: none; }
  .services-horizontal .service-pin-card { width: 84% !important; flex: 0 0 84% !important; scroll-snap-align: start; padding: 1.4rem 1.15rem !important; }
  .services-pin-counter, .services-pin-progress { display: none !important; }
  .mswipe { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.15rem 0; font-family: 'Montserrat', sans-serif; font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted); }
  .mswipe-dots { display: flex; gap: 6px; }
  .mswipe-dots i { width: 14px; height: 1px; background: rgba(227,179,65,0.25); transition: background 0.3s ease, width 0.3s ease; }
  .mswipe-dots i.on { background: #E3B341; width: 26px; }

  /* all services list: number beside the name, tighter rows */
  .deliver-list { margin-top: 1.8rem !important; }
  .deliver-item { grid-template-columns: 30px 1fr !important; column-gap: 0.4rem !important; row-gap: 0.35rem !important; padding: 1.05rem 0 !important; }
  .deliver-item .deliver-num { font-size: 16px !important; grid-row: span 2; }
  .deliver-item .deliver-desc { grid-column: 2; font-size: 12.5px !important; line-height: 1.6 !important; }

  /* process steps: tighter */
  .process-grid { margin-top: 2rem !important; gap: 1.6rem !important; }
  .process-step { padding: 1.1rem 0 !important; gap: 1rem !important; }
  .process-step .step-desc { font-size: 12.5px !important; line-height: 1.6 !important; }

  /* stats: three across */
  .stats-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .stats-grid .stat-card { padding: 1.6rem 0.5rem !important; border-bottom: none !important; border-right: 0.5px solid var(--border-gold) !important; }
  .stats-grid .stat-card:last-child { border-right: none !important; }
  .stats-grid .stat-num, .stats-grid .stat-num.stat-num-text { font-size: 26px !important; }
  .stats-grid .stat-label { font-size: 8.5px !important; letter-spacing: 1.2px !important; }

  /* video proof: swipe row instead of three tall phones stacked */
  .video-grid {
    display: flex !important; max-width: none !important; gap: 0.9rem !important; margin: 2rem -1.15rem 0 !important;
    padding: 0 1.15rem 0.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .video-grid::-webkit-scrollbar { display: none; }
  .video-grid .video-slot { flex: 0 0 68%; scroll-snap-align: center; }
  .video-grid .video-frame { border-radius: 24px; padding: 6px; }
  .video-grid .video-caption { font-size: 8.5px !important; }
  .video-grid + .mswipe { padding-left: 0; padding-right: 0; }
}

/* Copy v2 pieces on phones */
@media (max-width: 760px) {
  .hero { padding-bottom: 6rem !important; }
  .hero-proof { display: flex !important; flex-direction: column; align-items: flex-start; gap: 6px !important; margin: -0.2rem 0 1.6rem !important; }
  .hero-proof-num { font-size: 26px !important; }
  .hero-proof-text { font-size: 9px !important; letter-spacing: 1.6px !important; }
  .hero-scroll { bottom: 1.2rem !important; }
  .hero-scroll i { height: 28px; }
  .problem-bridge { font-size: 19px !important; margin-top: 1.8rem !important; }
  .cta-steps { margin: -0.6rem auto 2rem !important; }
  .cta-steps li { font-size: 12.5px !important; padding: 0.75rem 0 !important; gap: 0.8rem !important; }
  .footer-services { gap: 6px 14px !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 760px) {
  .hero-headline { font-size: clamp(28px, calc(9.3vw - 4.6px), 36px) !important; }
  .hero-guarantee-text { white-space: nowrap; letter-spacing: 1.3px !important; }
  /* scroll cue pinned to the visible bottom of the first screen, fades once they scroll */
  .hero-scroll { position: fixed !important; bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important; z-index: 9980; transition: opacity 0.4s ease; }
  .hero-scroll.gone { opacity: 0 !important; pointer-events: none; animation: none; }
}
