/* =========================================================
   Global mobile polish — applied across all static pages.
   Targets the shared class names used by every page:
   .nav-inner, .nav-links, .nl, .hero-in, .con, .sp-inner,
   .hiw-inner, .outcomes-inner, .mf-inner, .fwrap, .fg, .fgr, etc.
   Pages already define their own breakpoints; this layer
   fixes the gaps (cramped padding, missing mobile menu,
   tables overflowing, oversized hero type on small phones).
   ========================================================= */

/* =========================================================
   Brand logo mark — swap the "AR" gradient square for the
   head/voice icon. Applies to nav (.lmark / .lm) and
   footer (.flm). White icon on the blue gradient surface,
   rounded corners, soft drop shadow + bevel.
   ========================================================= */
.lmark, .lm, .flm {
  color: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0F2B5B, #2D84E8) !important;
  border-radius: 10px !important;
  box-shadow:
    0 6px 14px rgba(15, 43, 91, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22) !important;
}
.lmark::after, .lm::after, .flm::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  -webkit-mask: url('/logo-mark.png') center / 68% 68% no-repeat;
          mask: url('/logo-mark.png') center / 68% 68% no-repeat;
  text-indent: 0;
}
.flm::after {
  -webkit-mask-size: 70% 70%;
          mask-size: 70% 70%;
}

/* --- 1. Prevent horizontal overflow ever --- */
html, body { overflow-x: hidden; }
img, svg, table { max-width: 100%; }

/* --- 2. Tighter horizontal padding on small phones --- */
@media (max-width: 600px) {
  .nav-inner, .ni,
  .hero-in, .hi,
  .con,
  .sp-inner,
  .hiw-inner,
  .outcomes-inner,
  .mf-inner {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
@media (max-width: 380px) {
  .nav-inner, .ni,
  .hero-in, .hi,
  .con,
  .sp-inner,
  .hiw-inner,
  .outcomes-inner,
  .mf-inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* --- 3. Hero typography breathes on small phones --- */
@media (max-width: 480px) {
  h1 { font-size: 34px !important; letter-spacing: -1.5px !important; line-height: 1.08 !important; }
  h2 { font-size: 26px !important; letter-spacing: -1px !important; }
  .cta h2 { font-size: 28px !important; letter-spacing: -1.2px !important; }
  .hsub { font-size: 16px !important; }
  .bnum { font-size: 36px !important; }
  .snum { font-size: 38px !important; }
  .oc-num { font-size: 44px !important; }
}

/* --- 4. Buttons stack & full-width on small phones --- */
@media (max-width: 480px) {
  .hbtns { flex-direction: column; align-items: stretch; gap: 10px !important; }
  .hbtns .bhero,
  .hbtns .boutline { width: 100%; justify-content: center; }
  .cbtn { width: 100%; max-width: 320px; justify-content: center; padding: 0 24px !important; }
}

/* --- 5. Trust bar wraps and sits comfortably --- */
@media (max-width: 600px) {
  .trust { padding: 10px 16px !important; min-height: 0 !important; }
  .trust .ti { font-size: 11px !important; }
}

/* --- 6. Tables become horizontally scrollable on mobile --- */
@media (max-width: 700px) {
  table.ct, table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.ct th, table.ct td { white-space: nowrap; }
}

/* --- 7. Pricing cards & insets --- */
@media (max-width: 600px) {
  .pcard { padding: 28px 22px !important; }
  .roi-anchor { padding: 24px 20px !important; }
  .trial-block { padding: 24px 20px !important; }
}

/* --- 8. Section vertical padding tighter on mobile --- */
@media (max-width: 600px) {
  section { padding-top: 56px !important; padding-bottom: 56px !important; }
}

/* --- 9. Footer stacks cleanly + readable spacing --- */
@media (max-width: 700px) {
  .fgr, .fg { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* --- 10. Mobile menu toggle (injected by mobile-menu.js) --- */
.mnav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  border-radius: 8px;
}
.mnav-toggle:hover { background: rgba(15, 43, 91, 0.06); }
.mnav-toggle span,
.mnav-toggle span::before,
.mnav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #0F2B5B;
  border-radius: 2px;
  position: relative;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.mnav-toggle span::before,
.mnav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.mnav-toggle span::before { top: -7px; }
.mnav-toggle span::after  { top:  7px; }
.mnav-toggle.is-open span { background: transparent; }
.mnav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.mnav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

.mnav-panel {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid rgba(15, 43, 91, 0.08);
  box-shadow: 0 18px 40px rgba(15, 43, 91, 0.12);
  padding: 18px 22px 26px;
  display: none;
  z-index: 99;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.mnav-panel.is-open { display: block; animation: mnav-fade .2s ease; }
.mnav-panel a {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  color: #0F2B5B;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 43, 91, 0.06);
}
.mnav-panel a:last-child { border-bottom: none; }
.mnav-panel .mnav-cta {
  margin-top: 14px;
  background: linear-gradient(135deg, #1B5FBF, #2D84E8);
  color: #fff !important;
  text-align: center;
  border-radius: 10px;
  padding: 14px 18px;
  border-bottom: none !important;
}
@keyframes mnav-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .mnav-toggle { display: inline-flex; }
  /* On small screens, hide the desktop log-in link to save room; keep CTA + hamburger */
  .nav-r .btn-ghost, .nr .bg { display: none; }
}

/* --- 11. Prevent header wrapping at 375px and below --- */
@media (max-width: 480px) {
  /* Tighter nav padding so logo + CTA + hamburger fit on one line */
  .nav-inner, .ni { padding-left: 14px !important; padding-right: 14px !important; gap: 8px; }
  /* Logo: smaller mark + wordmark, no wrap */
  .lmark, .lm { width: 32px !important; height: 32px !important; flex-shrink: 0 !important; }
  .ltext, .lt { font-size: 15px !important; white-space: nowrap !important; }
  .logo { gap: 8px !important; min-width: 0 !important; }
  /* CTA: keep on one line, smaller paddings */
  .btn-nav, .bp {
    font-size: 12px !important;
    padding: 0 12px !important;
    height: 36px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .nav-r, .nr { gap: 6px !important; flex-shrink: 0 !important; }
  .mnav-toggle { width: 36px !important; height: 36px !important; margin-left: 2px !important; flex-shrink: 0 !important; }
}

@media (max-width: 380px) {
  /* Even tighter for very small phones — keep wordmark + CTA visible */
  .nav-inner, .ni { padding-left: 12px !important; padding-right: 12px !important; }
  .ltext, .lt { font-size: 14px !important; }
  .btn-nav, .bp { font-size: 11px !important; padding: 0 10px !important; height: 34px !important; }
}

/* --- 12. Headlines & buttons never overflow at 375px --- */
@media (max-width: 480px) {
  h1, h2, .cta h2, .hsub, .ssub { word-wrap: break-word; overflow-wrap: break-word; }
  .bhero, .boutline, .cbtn { white-space: normal; text-align: center; line-height: 1.2; }
  .tdot { display: none !important; }
  .trust-inner { row-gap: 4px !important; column-gap: 10px !important; }
  .pcard h3, .pcard .price { word-break: break-word; }
}

/* --- 13. Footer wraps cleanly on tiny phones --- */
@media (max-width: 480px) {
  .fwrap, .fg, .fgr { word-break: break-word; }
  .fwrap a, .fg a, .fgr a { white-space: normal; }
}
