/* ==========================================================================
   MRN Digital — shared CTA button system + mobile compact layer.
   Linked last in <head> on every page so it wins over page-level <style>.
   Part 1 (CTA buttons) applies at every width.
   Part 2 (compact spacing / layout) applies on phones only (max-width: 768px).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Links — hand cursor on every anchor (and anything inside it), site-wide
   -------------------------------------------------------------------------- */
html body a,
html body a * {
  cursor: pointer !important;
}

/* --------------------------------------------------------------------------
   Part 1 — CTA buttons
   -------------------------------------------------------------------------- */
:root {
  --mrn-cta-h: 48px;
  --mrn-cta-fs: 0.95rem;
  --mrn-cta-chip: 30px;
  --mrn-cta-pad-start: 22px;
  --mrn-cta-pad-end: 8px;
  --mrn-cta-grad: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #d9480f 100%);
  --mrn-cta-grad-hover: linear-gradient(135deg, #fb7c1f 0%, #dc4f0a 55%, #c2410c 100%);
  --mrn-cta-navy: #1e1b4b;
  --mrn-cta-arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --mrn-cta-arrow-orange: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* Shape shared by every CTA */
html body:not(.mrn-cta-off) .btn-primary,
html body:not(.mrn-cta-off) .btn-secondary,
html body:not(.mrn-cta-off) .btn-outline,
html body:not(.mrn-cta-off) a.btn,
html body:not(.mrn-cta-off) .btns,
html body:not(.mrn-cta-off) .adv-btn,
html body:not(.mrn-cta-off) .btn-explore,
html body:not(.mrn-cta-off) .btn-orange,
html body:not(.mrn-cta-off) .btn-clean,
html body:not(.mrn-cta-off) .btn-send {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-sizing: border-box;
  min-height: var(--mrn-cta-h) !important;
  padding: 8px var(--mrn-cta-pad-end) 8px var(--mrn-cta-pad-start) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: inherit;
  font-size: var(--mrn-cta-fs) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.005em !important;
  text-align: center;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap;
  cursor: pointer !important;;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease !important;
}

/* Arrow chip */
html body:not(.mrn-cta-off) .btn-primary::after,
html body:not(.mrn-cta-off) .btn-secondary::after,
html body:not(.mrn-cta-off) .btn-outline::after,
html body:not(.mrn-cta-off) a.btn::after,
html body:not(.mrn-cta-off) .btns::after,
html body:not(.mrn-cta-off) .adv-btn::after,
html body:not(.mrn-cta-off) .btn-explore::after,
html body:not(.mrn-cta-off) .btn-orange::after,
html body:not(.mrn-cta-off) .btn-clean::after,
html body:not(.mrn-cta-off) .btn-send::after {
  content: "" !important;
  position: static !important;
  flex: none;
  width: var(--mrn-cta-chip) !important;
  height: var(--mrn-cta-chip) !important;
  margin: 0 !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  background-color: rgba(255, 255, 255, 0.22);
  background-image: var(--mrn-cta-arrow-white);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
  transform: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

/* The chip replaces hand-placed arrow icons inside buttons */
html body:not(.mrn-cta-off) .btn > i[class*="fa-arrow"],
html body:not(.mrn-cta-off) .btn-clean > i[class*="fa-arrow"],
html body:not(.mrn-cta-off) .btn-orange > i[class*="fa-arrow"] {
  display: none !important;
}

/* Primary — solid orange */
html body:not(.mrn-cta-off) .btn-primary,
html body:not(.mrn-cta-off) a.btn:not(.btn-secondary):not(.btn-outline),
html body:not(.mrn-cta-off) .btns,
html body:not(.mrn-cta-off) .adv-btn,
html body:not(.mrn-cta-off) .btn-explore,
html body:not(.mrn-cta-off) .btn-orange,
html body:not(.mrn-cta-off) .btn-grad,
html body:not(.mrn-cta-off) .btn-send {
  background: var(--mrn-cta-grad) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 12px 24px -12px rgba(234, 88, 12, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Secondary — white with an orange ring */
html body:not(.mrn-cta-off) .btn-secondary,
html body:not(.mrn-cta-off) .btn-outline,
html body:not(.mrn-cta-off) .btn-ghost {
  background: #fff !important;
  color: var(--mrn-cta-navy) !important;
  -webkit-text-fill-color: var(--mrn-cta-navy);
  box-shadow: inset 0 0 0 1.5px rgba(234, 88, 12, 0.45), 0 10px 20px -14px rgba(30, 27, 75, 0.45) !important;
}

html body:not(.mrn-cta-off) .btn.btn-secondary::after,
html body:not(.mrn-cta-off) .btn.btn-outline::after,
html body:not(.mrn-cta-off) .btn-secondary.btn-secondary::after,
html body:not(.mrn-cta-off) .btn-outline.btn-outline::after,
html body:not(.mrn-cta-off) .btn-clean.btn-ghost::after {
  background-color: rgba(234, 88, 12, 0.12);
  background-image: var(--mrn-cta-arrow-orange);
}

/* Small CTAs inside cards */
html body:not(.mrn-cta-off) .adv-btn.adv-btn,
html body:not(.mrn-cta-off) .btn-explore.btn-explore,
html body:not(.mrn-cta-off) .btns.btns,
html body:not(.mrn-cta-off) .header-cta.header-cta {
  --mrn-cta-h: 40px;
  --mrn-cta-chip: 26px;
  --mrn-cta-pad-start: 18px;
  --mrn-cta-pad-end: 7px;
  gap: 8px !important;
  font-size: 0.86rem !important;
}

html body:not(.mrn-cta-off) .adv-btn::after,
html body:not(.mrn-cta-off) .btn-explore::after,
html body:not(.mrn-cta-off) .btns::after,
html body:not(.mrn-cta-off) .header-cta::after {
  background-size: 13px 13px;
}

/* Hover / focus / press */
@media (hover: hover) {
  html body:not(.mrn-cta-off) .btn-primary:hover,
  html body:not(.mrn-cta-off) a.btn:not(.btn-secondary):not(.btn-outline):hover,
  html body:not(.mrn-cta-off) .btns:hover,
  html body:not(.mrn-cta-off) .adv-btn:hover,
  html body:not(.mrn-cta-off) .btn-explore:hover,
  html body:not(.mrn-cta-off) .btn-orange:hover,
  html body:not(.mrn-cta-off) .btn-grad:hover,
  html body:not(.mrn-cta-off) .btn-send:hover {
    background: var(--mrn-cta-grad-hover) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 30px -14px rgba(234, 88, 12, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }

  html body:not(.mrn-cta-off) .btn-primary:hover::after,
  html body:not(.mrn-cta-off) a.btn:not(.btn-secondary):not(.btn-outline):hover::after,
  html body:not(.mrn-cta-off) .btns:hover::after,
  html body:not(.mrn-cta-off) .adv-btn:hover::after,
  html body:not(.mrn-cta-off) .btn-explore:hover::after,
  html body:not(.mrn-cta-off) .btn-orange:hover::after,
  html body:not(.mrn-cta-off) .btn-grad:hover::after,
  html body:not(.mrn-cta-off) .btn-send:hover::after {
    background-color: #fff;
    background-image: var(--mrn-cta-arrow-orange);
    transform: translateX(3px);
  }

  html body:not(.mrn-cta-off) .btn-secondary:hover,
  html body:not(.mrn-cta-off) .btn-outline:hover,
  html body:not(.mrn-cta-off) .btn-ghost:hover {
    background: #fff7ed !important;
    color: var(--mrn-cta-navy) !important;
    transform: translateY(-2px) !important;
    box-shadow: inset 0 0 0 1.5px #ea580c, 0 16px 26px -16px rgba(234, 88, 12, 0.6) !important;
  }

  html body:not(.mrn-cta-off) .btn-secondary:hover::after,
  html body:not(.mrn-cta-off) .btn-outline:hover::after,
  html body:not(.mrn-cta-off) .btn-ghost:hover::after {
    background-color: #ea580c;
    background-image: var(--mrn-cta-arrow-white);
    transform: translateX(3px);
  }
}

html body:not(.mrn-cta-off) .btn-primary:active,
html body:not(.mrn-cta-off) .btn-secondary:active,
html body:not(.mrn-cta-off) .btn-outline:active,
html body:not(.mrn-cta-off) a.btn:active,
html body:not(.mrn-cta-off) .btns:active,
html body:not(.mrn-cta-off) .adv-btn:active,
html body:not(.mrn-cta-off) .btn-explore:active,
html body:not(.mrn-cta-off) .btn-orange:active,
html body:not(.mrn-cta-off) .btn-clean:active,
html body:not(.mrn-cta-off) .btn-send:active {
  transform: translateY(0) scale(0.98) !important;
}

html body:not(.mrn-cta-off) .btn-primary:focus-visible,
html body:not(.mrn-cta-off) .btn-secondary:focus-visible,
html body:not(.mrn-cta-off) .btn-outline:focus-visible,
html body:not(.mrn-cta-off) a.btn:focus-visible,
html body:not(.mrn-cta-off) .btns:focus-visible,
html body:not(.mrn-cta-off) .adv-btn:focus-visible,
html body:not(.mrn-cta-off) .btn-explore:focus-visible,
html body:not(.mrn-cta-off) .btn-orange:focus-visible,
html body:not(.mrn-cta-off) .btn-clean:focus-visible,
html body:not(.mrn-cta-off) .btn-send:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.45) !important;
  outline-offset: 3px !important;
}

html body:not(.mrn-cta-off) .btn-send:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html body:not(.mrn-cta-off) .btn-primary,
  html body:not(.mrn-cta-off) .btn-secondary,
  html body:not(.mrn-cta-off) .btn-outline,
  html body:not(.mrn-cta-off) a.btn,
  html body:not(.mrn-cta-off) .btns,
  html body:not(.mrn-cta-off) .adv-btn,
  html body:not(.mrn-cta-off) .btn-explore,
  html body:not(.mrn-cta-off) .btn-orange,
  html body:not(.mrn-cta-off) .btn-clean,
  html body:not(.mrn-cta-off) .btn-send {
    transition: none !important;
    transform: none !important;
  }
}

/* The header CTA stays hidden while the hamburger menu is in use (navbar.css breakpoint) */
@media (max-width: 900px) {
  html body .mrn-site-header a.btn.header-cta {
    display: none !important;
  }
}

/* CTA sizing on phones */
@media (max-width: 768px) {
  :root {
    --mrn-cta-h: 46px;
    --mrn-cta-fs: 0.9rem;
    --mrn-cta-chip: 28px;
    --mrn-cta-pad-start: 18px;
    --mrn-cta-pad-end: 8px;
  }

  /* Long labels wrap onto two balanced lines instead of overflowing */
  html body:not(.mrn-cta-off) .btn-primary,
  html body:not(.mrn-cta-off) .btn-secondary,
  html body:not(.mrn-cta-off) .btn-outline,
  html body:not(.mrn-cta-off) a.btn,
  html body:not(.mrn-cta-off) .btn-orange,
  html body:not(.mrn-cta-off) .btn-clean,
  html body:not(.mrn-cta-off) .btn-send {
    max-width: 100% !important;
    white-space: normal !important;
    text-wrap: balance;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Button groups stack, equal width */
  html body:not(.mobile-preview) .button-group,
  html body:not(.mobile-preview) .mrn-hero-actions,
  html body:not(.mobile-preview) .mrn-cta-actions,
  html body:not(.mobile-preview) .service-enquiry-actions,
  html body:not(.mobile-preview) .pro-hero-actions,
  html body:not(.mobile-preview) .hero-actions,
  html body:not(.mobile-preview) .cta-actions,
  html body:not(.mobile-preview) .mrn-about-services-actions,
  html body:not(.mobile-preview) .home-usecase-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 340px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body:not(.mobile-preview) .button-group > a,
  html body:not(.mobile-preview) .mrn-hero-actions > a,
  html body:not(.mobile-preview) .mrn-cta-actions > a,
  html body:not(.mobile-preview) .service-enquiry-actions > a,
  html body:not(.mobile-preview) .pro-hero-actions > a,
  html body:not(.mobile-preview) .hero-actions > a,
  html body:not(.mobile-preview) .cta-actions > a,
  html body:not(.mobile-preview) .mrn-about-services-actions > a,
  html body:not(.mobile-preview) .home-usecase-actions > a,
  html body:not(.mobile-preview) .service-enquiry-card > a.btn,
  html body:not(.mobile-preview) .btn-send {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   Part 2 — Mobile compact layer (phones only)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Type scale: one step down so more fits per screen */
  :root {
    --mrn-type-hero: clamp(1.6rem, 6.9vw, 2rem);
    --mrn-type-section: clamp(1.3rem, 5.6vw, 1.55rem);
    --mrn-type-card-title: clamp(0.98rem, 4.2vw, 1.08rem);
    --mrn-type-body: clamp(0.86rem, 3.7vw, 0.93rem);
    --mrn-type-small: clamp(0.74rem, 3.1vw, 0.8rem);
    --mrn-type-split-hero: clamp(1.55rem, 6.6vw, 1.9rem);
    --mrn-type-split-lede: clamp(0.88rem, 3.7vw, 0.95rem);
    --mrn-leading-body: 1.55;
    --mrn-m-gutter: 16px;
    --mrn-m-section: 28px;
    --mrn-m-card: 18px 16px;
    --mrn-m-gap: 14px;
  }

  /* --- Section rhythm --- */
  html body:not(.mobile-preview) .ui-section,
  html body:not(.mobile-preview) .mrn-detail-section,
  html body:not(.mobile-preview) .pro-section,
  html body:not(.mobile-preview) section.section,
  html body:not(.mobile-preview) .section-pad,
  html body:not(.mobile-preview) .section-wrap,
  html body:not(.mobile-preview) .section-container,
  html body:not(.mobile-preview) .adv-services-section,
  html body:not(.mobile-preview) .mrn-v3-section,
  html body:not(.mobile-preview) .home-usecase-section,
  html body:not(.mobile-preview) .home-reviews-section,
  html body:not(.mobile-preview) .home-faq-section,
  html body:not(.mobile-preview) .mrn-about-services,
  html body:not(.mobile-preview) .benefits-section {
    padding-top: var(--mrn-m-section) !important;
    padding-bottom: var(--mrn-m-section) !important;
  }

  html body:not(.mobile-preview) .mrn-detail-hero,
  html body:not(.mobile-preview) .mrn-hero-modern,
  html body:not(.mobile-preview) .mrn-hero-redesigned,
  html body:not(.mobile-preview) .pro-hero,
  html body:not(.mobile-preview) section.hero.section-pad {
    padding-top: 20px !important;
    padding-bottom: 24px !important;
  }

  html body:not(.mobile-preview) .marquee-wrapper {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    margin-bottom: 8px !important;
  }

  /* --- Section headings --- */
  html body:not(.mobile-preview) .section-header,
  html body:not(.mobile-preview) .mrn-section-header,
  html body:not(.mobile-preview) .sec-heading,
  html body:not(.mobile-preview) .dash-header,
  html body:not(.mobile-preview) .detail-head,
  html body:not(.mobile-preview) .filter-wrapper {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
  }

  html body:not(.mobile-preview) .section-subtitle,
  html body:not(.mobile-preview) .ui-subtitle,
  html body:not(.mobile-preview) .mrn-hero-lede,
  html body:not(.mobile-preview) p.subtitle,
  html body:not(.mobile-preview) p.case-desc {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
  }

  html body:not(.mobile-preview) h2.section-title {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  /* --- Cards: tighter inner padding --- */
  html body:not(.mobile-preview) .glass-card,
  html body:not(.mobile-preview) div.glass-box,
  html body:not(.mobile-preview) article.glass-box,
  html body:not(.mobile-preview) details.glass-box,
  html body:not(.mobile-preview) .mrn-glass-panel,
  html body:not(.mobile-preview) .mrn-glass-card,
  html body:not(.mobile-preview) .ui-gradient-card,
  html body:not(.mobile-preview) .pro-glass,
  html body:not(.mobile-preview) .gradient-border-card,
  html body:not(.mobile-preview) .campaign-panel,
  html body:not(.mobile-preview) .capability-card,
  html body:not(.mobile-preview) .compare-card,
  html body:not(.mobile-preview) .measure-card,
  html body:not(.mobile-preview) .press-card,
  html body:not(.mobile-preview) .programme-card,
  html body:not(.mobile-preview) .tier-card,
  html body:not(.mobile-preview) .benefit-card,
  html body:not(.mobile-preview) .bento-stat-card,
  html body:not(.mobile-preview) .brand-safety-card,
  html body:not(.mobile-preview) .card.tilt-effect,
  html body:not(.mobile-preview) .mini-card,
  html body:not(.mobile-preview) .mini-stat-card,
  html body:not(.mobile-preview) .comparison-card,
  html body:not(.mobile-preview) .contact-copy-card,
  html body:not(.mobile-preview) .contact-flow-card,
  html body:not(.mobile-preview) .info-card,
  html body:not(.mobile-preview) .info-box,
  html body:not(.mobile-preview) .form-card,
  html body:not(.mobile-preview) .dash-metric,
  html body:not(.mobile-preview) .flip-front,
  html body:not(.mobile-preview) .flip-back,
  html body:not(.mobile-preview) .industry-card,
  html body:not(.mobile-preview) .mrn-lever-card,
  html body:not(.mobile-preview) .mrn-card-inner,
  html body:not(.mobile-preview) .mrn-definition-visual,
  html body:not(.mobile-preview) .mrn-example-col,
  html body:not(.mobile-preview) .mrn-roadmap-item,
  html body:not(.mobile-preview) .mrn-stack-card,
  html body:not(.mobile-preview) .mrn-stats-wrapper,
  html body:not(.mobile-preview) .mrn-trigger-item,
  html body:not(.mobile-preview) .mrn-trusted-inner,
  html body:not(.mobile-preview) .mrn-v3-feature-card,
  html body:not(.mobile-preview) .mrn-v3-glass-card,
  html body:not(.mobile-preview) .mrn-about-services-grid,
  html body:not(.mobile-preview) .platform-pill,
  html body:not(.mobile-preview) .pr-stat-feature,
  html body:not(.mobile-preview) .pr-stat-tile,
  html body:not(.mobile-preview) .product-content,
  html body:not(.mobile-preview) .product-visual-box,
  html body:not(.mobile-preview) .prog-item,
  html body:not(.mobile-preview) .quote-banner,
  html body:not(.mobile-preview) .quote-panel,
  html body:not(.mobile-preview) .strat-card,
  html body:not(.mobile-preview) .tech-item,
  html body:not(.mobile-preview) .why-content,
  html body:not(.mobile-preview) figure.mrn-media,
  html body:not(.mobile-preview) .terms-container {
    padding: var(--mrn-m-card) !important;
  }

  html body:not(.mobile-preview) .hero-card.glass-effect,
  html body:not(.mobile-preview) .hero-shell.glass-card,
  html body:not(.mobile-preview) .glass-box.hero-main-glass {
    padding: 24px 16px !important;
  }

  /* --- Grids and stacks: tighter gaps --- */
  html body:not(.mobile-preview) .bento-grid,
  html body:not(.mobile-preview) .cap-grid,
  html body:not(.mobile-preview) .capability-grid,
  html body:not(.mobile-preview) .card-grid,
  html body:not(.mobile-preview) .case-grid,
  html body:not(.mobile-preview) .chapter-grid,
  html body:not(.mobile-preview) .compare-grid,
  html body:not(.mobile-preview) .detail-grid,
  html body:not(.mobile-preview) .benefits-grid,
  html body:not(.mobile-preview) .core-grid,
  html body:not(.mobile-preview) .industry-grid,
  html body:not(.mobile-preview) .flip-grid,
  html body:not(.mobile-preview) .layer-grid,
  html body:not(.mobile-preview) .measure-grid,
  html body:not(.mobile-preview) .mission-grid,
  html body:not(.mobile-preview) .mrn-benefits-grid,
  html body:not(.mobile-preview) .mrn-bento-grid,
  html body:not(.mobile-preview) .mrn-comparison-grid,
  html body:not(.mobile-preview) .mrn-definition-grid,
  html body:not(.mobile-preview) .mrn-floating-grid,
  html body:not(.mobile-preview) .mrn-staggered-list,
  html body:not(.mobile-preview) .mrn-steps-grid,
  html body:not(.mobile-preview) .mrn-two-panel,
  html body:not(.mobile-preview) .mrn-split-bento,
  html body:not(.mobile-preview) .mrn-overlap-container,
  html body:not(.mobile-preview) .numbers-grid,
  html body:not(.mobile-preview) .product-grid,
  html body:not(.mobile-preview) .programme-grid,
  html body:not(.mobile-preview) .stack-cards,
  html body:not(.mobile-preview) .values-grid,
  html body:not(.mobile-preview) .why-grid,
  html body:not(.mobile-preview) .zigzag-container,
  html body:not(.mobile-preview) .zigzag-row,
  html body:not(.mobile-preview) .services-grid,
  html body:not(.mobile-preview) .why-choose-grid,
  html body:not(.mobile-preview) .specialized-section,
  html body:not(.mobile-preview) .landscape-wrap,
  html body:not(.mobile-preview) .feature-row,
  html body:not(.mobile-preview) .integration-layout,
  html body:not(.mobile-preview) .strategy-layout,
  html body:not(.mobile-preview) .layout-sticky-split,
  html body:not(.mobile-preview) .adv-grid-layout,
  html body:not(.mobile-preview) .home-usecase-grid,
  html body:not(.mobile-preview) .mrn-v3-process-grid,
  html body:not(.mobile-preview) .mrn-v3-features-grid,
  html body:not(.mobile-preview) .products-flex {
    gap: var(--mrn-m-gap) !important;
  }

  html body:not(.mobile-preview) .hero-bento-grid,
  html body:not(.mobile-preview) .hero-grid,
  html body:not(.mobile-preview) .hero-split,
  html body:not(.mobile-preview) .hero-shell,
  html body:not(.mobile-preview) .mrn-hero-grid,
  html body:not(.mobile-preview) .mrn-hero-inner,
  html body:not(.mobile-preview) .mrn-hero-split,
  html body:not(.mobile-preview) .pr-hero-grid,
  html body:not(.mobile-preview) .pro-hero-grid,
  html body:not(.mobile-preview) .about-grid,
  html body:not(.mobile-preview) .mrn-about-services-grid,
  html body:not(.mobile-preview) .product-showcase {
    gap: 18px !important;
  }

  /* --- Shared enquiry CTA panel --- */
  html body:not(.mobile-preview) .service-enquiry-card {
    padding: 20px 16px 24px !important;
    gap: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 18px !important;
  }

  html body:not(.mobile-preview) .service-enquiry-card h2,
  html body:not(.mobile-preview) .service-enquiry-card h3,
  html body:not(.mobile-preview) .service-enquiry-card summary {
    margin-bottom: 8px !important;
    font-size: var(--mrn-type-section) !important;
  }

  html body:not(.mobile-preview) .service-enquiry-card p {
    font-size: var(--mrn-type-body) !important;
    line-height: 1.55 !important;
  }

  /* --- Small tiles sit side by side instead of one per row --- */
  html body:not(.mobile-preview) .home-usecase-kpis,
  html body:not(.mobile-preview) .case-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body:not(.mobile-preview) .mrn-hero-stats,
  html body:not(.mobile-preview) .mrn-hero-stats-row,
  html body:not(.mobile-preview) .stats-glass-card {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  /* --- Footer --- */
  html body .mrn-wave-bg-layer svg {
    height: 110px;
  }

  html body .mrn-actual-footer {
    padding: 44px var(--mrn-m-gutter) 18px !important;
  }

  html body .mrn-footer-top-row {
    gap: 18px;
    margin-bottom: 16px;
  }

  html body .mrn-footer-info-brand .logo img {
    max-width: 104px;
  }

  html body .mrn-actual-footer .mrn-brand-tagline {
    margin-top: 8px;
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }

  html body .mrn-contact-info {
    gap: 6px;
    margin-top: 10px;
  }

  html body .contact-item {
    font-size: 0.84rem;
  }

  html body .mrn-footer-columns-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 14px !important;
  }

  html body .mrn-footer-columns-wrap .mrn-col:nth-child(2) {
    grid-column: 1 / -1;
    order: 3;
  }

  html body .mrn-footer-columns-wrap .mrn-col:nth-child(2) .mrn-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 10px;
    row-gap: 6px;
  }

  html body .mrn-col-title {
    margin-bottom: 8px;
    font-size: 0.95rem;
  }

  html body .mrn-list li {
    margin-bottom: 6px;
  }

  html body .mrn-actual-footer .mrn-list li a {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }

  html body .mrn-footer-copyright-bar {
    padding-top: 14px;
    gap: 10px;
  }

  html body .mrn-actual-footer p {
    margin-top: 0;
  }
}

/* --- Phone-only fixes for individual layouts --- */
@media (max-width: 768px) {
  /* Slide-in animations and decorative glows must not widen the page */
  html body:not(.mobile-preview) .ui-section,
  html body:not(.mobile-preview) .mrn-detail-section,
  html body:not(.mobile-preview) .pro-section,
  html body:not(.mobile-preview) section.section,
  html body:not(.mobile-preview) .section-wrap,
  html body:not(.mobile-preview) .mrn-detail-hero,
  html body:not(.mobile-preview) .mrn-hero-redesigned,
  html body:not(.mobile-preview) .mrn-hero-modern,
  html body:not(.mobile-preview) .pro-hero {
    overflow-x: clip;
  }

  html body:not(.mobile-preview) .service-enquiry-card {
    overflow: hidden !important;
  }

  html body:not(.mobile-preview) .mrn-staggered-item {
    width: 100% !important;
    gap: 12px !important;
  }

  /* OnWheels platform stats: two per row */
  html body:not(.mobile-preview) .stats-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html body:not(.mobile-preview) .stats-strip .stat-chip {
    padding: 12px 14px !important;
    margin: 0 !important;
  }

  /* Services page: keep the hero copy readable over the decorative shapes */
  html body:not(.mobile-preview) .bg-elements {
    opacity: 0.35;
  }

  html body:not(.mobile-preview) .wrapper {
    padding-top: 20px !important;
    padding-bottom: 28px !important;
    padding-left: var(--mrn-m-gutter) !important;
    padding-right: var(--mrn-m-gutter) !important;
  }

  html body:not(.mobile-preview) .services-grid,
  html body:not(.mobile-preview) .why-choose-grid,
  html body:not(.mobile-preview) .specialized-section {
    margin-top: 0 !important;
    margin-bottom: 28px !important;
  }

  html body:not(.mobile-preview) .terms-wrapper,
  html body:not(.mobile-preview) main.mrn-main {
    padding-top: 20px !important;
    padding-bottom: 28px !important;
  }

  html body:not(.mobile-preview) .page-header {
    padding-top: 20px !important;
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
  }

  html body:not(.mobile-preview) .terms-container .heading {
    margin-top: 18px !important;
    margin-bottom: 8px !important;
  }

  /* Case studies */
  html body:not(.mobile-preview) header.section-head {
    margin-top: 28px !important;
    margin-bottom: 18px !important;
  }

  html body:not(.mobile-preview) .cta-box {
    margin-top: 28px !important;
    margin-bottom: 28px !important;
  }

  /* About / Product / Home blocks with oversized outer margins */
  html body:not(.mobile-preview) .about-brief,
  html body:not(.mobile-preview) .about-grid,
  html body:not(.mobile-preview) .mrn-trusted-section,
  html body:not(.mobile-preview) .product-showcase,
  html body:not(.mobile-preview) .programmatic-features {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }

  html body:not(.mobile-preview) .core-grid,
  html body:not(.mobile-preview) .industry-grid,
  html body:not(.mobile-preview) .integration-layout,
  html body:not(.mobile-preview) .timeline-container,
  html body:not(.mobile-preview) .journey-tree {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }
}

/* KPI tiles in a three-up row: labels stay on one line */
@media (max-width: 768px) {
  html body:not(.mobile-preview) .case-kpis .kpi,
  html body:not(.mobile-preview) .home-usecase-kpi {
    padding: 10px 4px !important;
  }

  html body:not(.mobile-preview) .case-kpis .kpi span,
  html body:not(.mobile-preview) .home-usecase-kpi span {
    font-size: 0.62rem !important;
    letter-spacing: 0.02em !important;
    overflow-wrap: normal !important;
    white-space: nowrap;
  }

  html body:not(.mobile-preview) .case-kpis .kpi .metric-value,
  html body:not(.mobile-preview) .home-usecase-kpi strong {
    font-size: 1.05rem !important;
    overflow-wrap: normal !important;
    white-space: nowrap;
  }
}

/* Pages wrapped in .wrapper already have a gutter; don't inset their containers twice */
@media (max-width: 768px) {
  html body:not(.mobile-preview) .wrapper .container {
    width: 100% !important;
  }

  html body:not(.mobile-preview) .wrapper > section.container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Services page: hovering anywhere on a linked card lights up its button */
@media (hover: hover) {
  html body:not(.mrn-cta-off) a.card-link:hover .btn-outline {
    background: #fff7ed !important;
    box-shadow: inset 0 0 0 1.5px #ea580c, 0 16px 26px -16px rgba(234, 88, 12, 0.6) !important;
  }

  html body:not(.mrn-cta-off) a.card-link:hover .btn.btn-outline::after {
    background-color: #ea580c;
    background-image: var(--mrn-cta-arrow-white);
    transform: translateX(3px);
  }
}
