/**
 * RPM marketing page polish — complements Dashcore theme.css
 */

/* —— Brand themes (color picker + SVG logo) ——
   Gold ≈ product / legacy logo alignment.
   Purple ≈ modern marketing default.
*/
:root,
html[data-rpm-theme="purple"] {
    --rpm-brand: #5b21b6;
    --rpm-brand-mid: #4c1d95;
    --rpm-brand-deep: #312e81;
    --rpm-brand-soft: #ede9fe;
    --rpm-brand-gradient: linear-gradient(135deg, var(--rpm-brand) 0%, var(--rpm-brand-mid) 45%, var(--rpm-brand-deep) 100%);
    --rpm-hero-from-rgb: 91, 33, 182;
    --rpm-hero-to-rgb: 49, 46, 129;
    --primary: #5b21b6;

    /* Surfaces / glass (DASHWIND-inspired) — light defaults */
    --rpm-body-bg: #ffffff;
    --rpm-surface: #e8eef6;
    --rpm-surface-elevated: #ffffff;
    --rpm-text: #0f172a;
    --rpm-text-secondary: #475569;
    --rpm-border: rgba(15, 23, 42, 0.06);
    --rpm-border-strong: rgba(15, 23, 42, 0.1);
    --rpm-glass-bg: rgba(255, 255, 255, 0.72);
    --rpm-glass-bg-strong: rgba(255, 255, 255, 0.88);
    --rpm-glass-border: rgba(15, 23, 42, 0.06);
    --rpm-glass-nav-bg: rgba(255, 255, 255, 0.8);
    --rpm-dimmer: rgba(15, 23, 42, 0.45);
    --rpm-picker-bg: #ffffff;
    --rpm-picker-border: #e2e8f0;
    color-scheme: light;

    /* Spacing */
    --rpm-spacing-section: 6.5rem;
    --rpm-spacing-section-sm: 3.5rem;
    --rpm-spacing-card: 1.75rem;
    --rpm-gap-md: 2rem;

    /* Radius / shadow / motion */
    --rpm-radius-md: 0.85rem;
    --rpm-radius-lg: 1.15rem;
    --rpm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --rpm-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.1), 0 2px 4px rgba(15, 23, 42, 0.05);
    --rpm-shadow-lg: 0 12px 28px -8px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.06);
    --rpm-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --rpm-duration: 300ms;
}

html[data-rpm-theme="gold"] {
    /* Aligns with product UI / classic gold logo feel */
    --rpm-brand: #c9a227;
    --rpm-brand-mid: #a67c1a;
    --rpm-brand-deep: #7a5a12;
    --rpm-brand-soft: #fef9e7;
    --rpm-brand-gradient: linear-gradient(135deg, #e4c36a 0%, #c9a227 45%, #8a6a14 100%);
    --rpm-hero-from-rgb: 201, 162, 39;
    --rpm-hero-to-rgb: 28, 25, 23;
    --primary: #b8860b;
}

html[data-rpm-theme="navy"] {
    --rpm-brand: #1e3a5f;
    --rpm-brand-mid: #16304f;
    --rpm-brand-deep: #0f2138;
    --rpm-brand-soft: #e8eef5;
    --rpm-brand-gradient: linear-gradient(135deg, #2a4a73 0%, #1e3a5f 50%, #0f2138 100%);
    --rpm-hero-from-rgb: 42, 74, 115;
    --rpm-hero-to-rgb: 15, 33, 56;
    --primary: #1e3a5f;
}

html[data-rpm-theme="teal"] {
    --rpm-brand: #0d9488;
    --rpm-brand-mid: #0f766e;
    --rpm-brand-deep: #115e59;
    --rpm-brand-soft: #ccfbf1;
    --rpm-brand-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #115e59 100%);
    --rpm-hero-from-rgb: 13, 148, 136;
    --rpm-hero-to-rgb: 15, 33, 56;
    --primary: #0d9488;
}

/* Resolved color mode (set by JS from light|dark|auto preference) */
html[data-rpm-color="dark"] {
    --rpm-body-bg: #0b1220;
    --rpm-surface: #151d2e;
    --rpm-surface-elevated: #1a2438;
    --rpm-text: #e8eef8;
    --rpm-text-secondary: #94a3b8;
    --rpm-border: rgba(248, 250, 252, 0.08);
    --rpm-border-strong: rgba(248, 250, 252, 0.14);
    --rpm-glass-bg: rgba(15, 23, 42, 0.72);
    --rpm-glass-bg-strong: rgba(15, 23, 42, 0.88);
    --rpm-glass-border: rgba(248, 250, 252, 0.1);
    --rpm-glass-nav-bg: rgba(15, 23, 42, 0.82);
    --rpm-dimmer: rgba(2, 6, 23, 0.55);
    --rpm-picker-bg: #1a2438;
    --rpm-picker-border: rgba(248, 250, 252, 0.12);
    --rpm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
    --rpm-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
    --rpm-shadow-lg: 0 12px 28px -8px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

html[data-rpm-theme="slate"] {
    --rpm-brand: #475569;
    --rpm-brand-mid: #334155;
    --rpm-brand-deep: #1e293b;
    --rpm-brand-soft: #f1f5f9;
    --rpm-brand-gradient: linear-gradient(135deg, #64748b 0%, #475569 50%, #1e293b 100%);
    --rpm-hero-from-rgb: 71, 85, 105;
    --rpm-hero-to-rgb: 15, 23, 42;
    --primary: #475569;
}

/*
 * Hero overlays (theme.css hard-codes purple-blue gradients).
 * Page heroes use .gradient.gradient-purple-blue|navy + .overlay.alpha-*;
 * home uses gradient-purple-navy.
 */
.page.header.overlay.gradient:after,
.header.overlay.gradient:after,
.rpm-home-hero.overlay.gradient:after,
.gradient.gradient-purple-blue.overlay:after,
.gradient.gradient-purple-navy.overlay:after,
.gradient.gradient-purple-dark.overlay:after,
.gradient.gradient-blue-purple.overlay:after {
    background-image: linear-gradient(
        to right top,
        rgba(var(--rpm-hero-from-rgb), 0.82),
        rgba(var(--rpm-hero-to-rgb), 0.88)
    ) !important;
}

/* Stronger opacity variants still themed */
.gradient.overlay.alpha-7:after {
    background-image: linear-gradient(
        to right top,
        rgba(var(--rpm-hero-from-rgb), 0.72),
        rgba(var(--rpm-hero-to-rgb), 0.78)
    ) !important;
}

.gradient.overlay.alpha-8:after {
    background-image: linear-gradient(
        to right top,
        rgba(var(--rpm-hero-from-rgb), 0.82),
        rgba(var(--rpm-hero-to-rgb), 0.88)
    ) !important;
}

.gradient.overlay.alpha-9:after {
    background-image: linear-gradient(
        to right top,
        rgba(var(--rpm-hero-from-rgb), 0.9),
        rgba(var(--rpm-hero-to-rgb), 0.94)
    ) !important;
}

/*
 * Fallback fill only when there is no photo layer.
 * Never use !important on .image-background heroes — that overrides the
 * inline background-image: url(...) and makes every hero look like a flat gradient.
 */
.gradient.gradient-purple-blue:not(.image-background),
.gradient.gradient-purple-navy:not(.image-background),
.gradient.gradient-purple-dark:not(.image-background) {
    background-image: linear-gradient(
        to right top,
        var(--rpm-brand),
        var(--rpm-brand-deep)
    );
}

/* Index “Who it’s for” band — theme gradient + colored shadow (was Dashcore blue) */
.singl-testimonial.shadow {
    box-shadow: 0 12px 36px -10px rgba(var(--rpm-hero-from-rgb), 0.45),
        0 4px 14px rgba(var(--rpm-hero-to-rgb), 0.2) !important;
}

.singl-testimonial .gradient.gradient-blue-navy,
.singl-testimonial .gradient.gradient-blue-purple {
    background-image: linear-gradient(
        to right top,
        var(--rpm-brand),
        var(--rpm-brand-deep)
    ) !important;
}

/* Themed PNG logo pack — swaps with html[data-rpm-theme] */
.rpm-brand-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    vertical-align: middle;
    overflow: visible;
    max-width: 260px;
    position: relative;
}

/* Override theme .logo max-width / max-height */
.navbar-brand .rpm-brand-logo.logo,
.navigation .rpm-brand-logo.logo,
.site-footer .rpm-brand-logo.logo {
    max-width: 260px !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
}

.rpm-brand-logo-img {
    display: none !important;
    height: 52px !important;
    width: auto !important;
    max-width: 250px !important;
    max-height: 52px !important;
    object-fit: contain;
    object-position: left center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.navbar-brand .rpm-brand-logo-img,
.rpm-navbar-brand .rpm-brand-logo-img {
    height: 48px !important;
    max-width: 240px !important;
    max-height: 48px !important;
}

.rpm-footer-logo .rpm-brand-logo-img {
    height: 56px !important;
    max-width: 270px !important;
    max-height: 56px !important;
}

/* Active accent theme → show matching PNG (color + light variants both use class) */
html[data-rpm-theme="purple"] .rpm-brand-logo .rpm-logo-theme-purple,
html[data-rpm-theme="gold"] .rpm-brand-logo .rpm-logo-theme-gold,
html[data-rpm-theme="navy"] .rpm-brand-logo .rpm-logo-theme-navy,
html[data-rpm-theme="teal"] .rpm-brand-logo .rpm-logo-theme-teal,
html[data-rpm-theme="slate"] .rpm-brand-logo .rpm-logo-theme-slate {
    display: block !important;
}

/* Default before JS / missing attr: purple marketing brand */
html:not([data-rpm-theme]) .rpm-brand-logo .rpm-logo-theme-purple {
    display: block !important;
}

/* Legacy SVG class hooks (no-op if unused) */
.rpm-brand-logo-svg {
    display: none !important;
}

/*
 * Logo swap — only ONE logo visible at a time.
 *   .rpm-logo-on-dark  = light wordmark (transparent shell over hero)
 *   .rpm-logo-on-light = dark wordmark (glass: hover / sticky / open / mobile)
 * Beat theme.css .navigation.navbar-sticky .logo { display:none }
 */
.navigation .navbar-brand .rpm-brand-logo,
.navigation .rpm-navbar-brand .rpm-brand-logo {
    display: none !important;
    visibility: hidden !important;
}

/* Desktop at rest (transparent shell): light logo */
@media (min-width: 768px) {
    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .navbar-brand .rpm-logo-on-dark,
    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .rpm-navbar-brand .rpm-logo-on-dark {
        display: inline-flex !important;
        visibility: visible !important;
    }
}

/* Glass shell (hover whole menu / sticky / open): color logo */
.rpm-boxed-nav:hover .navbar-brand .rpm-logo-on-light,
.rpm-boxed-nav:hover .rpm-navbar-brand .rpm-logo-on-light,
.rpm-boxed-nav.navbar-sticky .navbar-brand .rpm-logo-on-light,
.rpm-boxed-nav.navbar-sticky .rpm-navbar-brand .rpm-logo-on-light,
.rpm-boxed-nav.dropdown-active .navbar-brand .rpm-logo-on-light,
.rpm-boxed-nav.dropdown-active .rpm-navbar-brand .rpm-logo-on-light,
.rpm-boxed-nav.overlay-active .navbar-brand .rpm-logo-on-light,
.rpm-boxed-nav.overlay-active .rpm-navbar-brand .rpm-logo-on-light,
.rpm-boxed-nav:hover .navbar-brand .logo.logo-sticky.rpm-brand-logo,
.rpm-boxed-nav:hover .rpm-navbar-brand .logo.logo-sticky.rpm-brand-logo,
.rpm-boxed-nav.navbar-sticky .navbar-brand .logo.logo-sticky.rpm-brand-logo,
.rpm-boxed-nav.navbar-sticky .rpm-navbar-brand .logo.logo-sticky.rpm-brand-logo {
    display: inline-flex !important;
    visibility: visible !important;
}

/*
 * Mobile: same logo swap as desktop (no hover — use sticky / open menu).
 *   at rest over hero → white wordmark (on-dark)
 *   scrolled sticky or mobile menu open → color wordmark (on-light)
 */
@media (max-width: 767.98px) {
    /* Default: hide both, then show the active state */
    .navigation .navbar-brand .rpm-brand-logo,
    .navigation .rpm-navbar-brand .rpm-brand-logo {
        display: none !important;
        visibility: hidden !important;
    }

    /* At rest (top of page, menu closed): white / on-dark logo */
    .rpm-boxed-nav:not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .navbar-brand .rpm-logo-on-dark,
    .rpm-boxed-nav:not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .rpm-navbar-brand .rpm-logo-on-dark {
        display: inline-flex !important;
        visibility: visible !important;
    }

    /* Scrolled or mobile nav open: color logo */
    .rpm-boxed-nav.navbar-sticky .navbar-brand .rpm-logo-on-light,
    .rpm-boxed-nav.navbar-sticky .rpm-navbar-brand .rpm-logo-on-light,
    .rpm-boxed-nav.dropdown-active .navbar-brand .rpm-logo-on-light,
    .rpm-boxed-nav.dropdown-active .rpm-navbar-brand .rpm-logo-on-light,
    .rpm-boxed-nav.overlay-active .navbar-brand .rpm-logo-on-light,
    .rpm-boxed-nav.overlay-active .rpm-navbar-brand .rpm-logo-on-light,
    .rpm-boxed-nav.navbar-sticky .navbar-brand .logo.logo-sticky.rpm-brand-logo,
    .rpm-boxed-nav.navbar-sticky .rpm-navbar-brand .logo.logo-sticky.rpm-brand-logo,
    .rpm-boxed-nav.dropdown-active .navbar-brand .logo.logo-sticky.rpm-brand-logo,
    .rpm-boxed-nav.dropdown-active .rpm-navbar-brand .logo.logo-sticky.rpm-brand-logo,
    .rpm-boxed-nav.overlay-active .navbar-brand .logo.logo-sticky.rpm-brand-logo,
    .rpm-boxed-nav.overlay-active .rpm-navbar-brand .logo.logo-sticky.rpm-brand-logo {
        display: inline-flex !important;
        visibility: visible !important;
    }
}

/* Footer logo: color on light mode, light wordmark on dark mode (+ theme accent) */
.rpm-footer-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-footer .rpm-footer-logo.rpm-brand-logo,
.rpm-footer-logo.rpm-brand-logo {
    visibility: visible !important;
}

/* Light site mode → dark wordmark (color pack) */
.site-footer .rpm-footer-logo--color,
html[data-rpm-color="light"] .site-footer .rpm-footer-logo--color {
    display: inline-flex !important;
}

.site-footer .rpm-footer-logo--light,
html[data-rpm-color="light"] .site-footer .rpm-footer-logo--light {
    display: none !important;
}

/* Dark site mode → light wordmark */
html[data-rpm-color="dark"] .site-footer .rpm-footer-logo--color {
    display: none !important;
    visibility: hidden !important;
}

html[data-rpm-color="dark"] .site-footer .rpm-footer-logo--light {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Theme picker UI */
.rpm-theme-picker {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    font-family: inherit;
}

.rpm-theme-picker-toggle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--rpm-brand-gradient);
    color: #fff;
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.45);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.rpm-theme-picker-toggle:hover {
    transform: scale(1.05);
}

.rpm-theme-picker-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.65rem);
    width: min(280px, calc(100vw - 2rem));
    background: var(--rpm-picker-bg);
    border: 1px solid var(--rpm-picker-border);
    border-radius: 0.85rem;
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.35);
    padding: 0.9rem 1rem 0.75rem;
}

.rpm-theme-picker-panel[hidden] {
    display: none !important;
}

.rpm-theme-picker-title {
    margin: 0 0 0.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--rpm-text);
}

.rpm-theme-picker-hint {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--rpm-text-secondary);
}

.rpm-theme-picker-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin: 0 0 0.85rem;
}

.rpm-theme-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0.35rem;
    border-radius: 0.5rem;
    border: 1px solid var(--rpm-picker-border);
    background: transparent;
    color: var(--rpm-text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rpm-theme-mode-btn:hover {
    color: var(--rpm-text);
    border-color: var(--rpm-border-strong);
}

.rpm-theme-mode-btn.is-active {
    background: var(--rpm-brand-soft);
    color: var(--rpm-brand);
    border-color: transparent;
}

html[data-rpm-color="dark"] .rpm-theme-mode-btn.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.rpm-theme-picker-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.rpm-theme-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cbd5e1;
    background: var(--swatch, #888);
    cursor: pointer;
    padding: 0;
}

.rpm-theme-swatch.is-active {
    box-shadow: 0 0 0 2px var(--rpm-brand), 0 0 0 4px #fff;
}

.rpm-theme-picker-reset {
    font-size: 0.78rem;
    color: var(--rpm-brand) !important;
}

/* Map marketing purple utilities → theme vars */
.text-primary {
    color: var(--rpm-brand) !important;
}

.bg-primary {
    background-color: var(--rpm-brand) !important;
}

.btn-primary {
    background-color: var(--rpm-brand) !important;
    border-color: var(--rpm-brand-mid) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--rpm-brand-mid) !important;
    border-color: var(--rpm-brand-deep) !important;
}

.btn-outline-primary {
    color: var(--rpm-brand) !important;
    border-color: var(--rpm-brand) !important;
}

.btn-outline-primary:hover {
    background-color: var(--rpm-brand) !important;
    color: #fff !important;
}

.badge-primary {
    background-color: var(--rpm-brand) !important;
}

/* —— Sitewide: stop horizontal “page push” (fixed header sliding off) ——
   Root causes: long titles/URLs, flex min-width, negative hero margins, nowrap breadcrumbs.
*/
html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    overflow-x: clip;
    max-width: 100%;
    background-color: var(--rpm-body-bg);
    color: var(--rpm-text);
}

/* Fixed nav must stay viewport-bound even if a child overflows */
.st-nav.main-nav,
#main-nav.st-nav {
    z-index: 1100 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
}

#main-nav > .rpm-boxed-nav-outer {
    /* Keep boxed nav centered (do not stretch to full viewport) */
    max-width: 1180px;
    overflow: visible;
}

/* —— BoxedNav (DASHWIND floating glass shell) —— */
.rpm-boxed-nav.navigation.fixed-top,
.rpm-boxed-nav.navigation.navbar-sticky {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    min-height: 0 !important;
    padding: 1.35rem 0 0 !important;
    transition: transform 0.45s var(--rpm-ease-out), padding 0.45s var(--rpm-ease-out);
}

.rpm-boxed-nav.navbar-sticky {
    transform: translateY(-0.65rem);
    padding-top: 0.85rem !important;
}

.rpm-boxed-nav-outer {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.15rem;
    position: relative;
}

.rpm-boxed-nav-shell {
    position: relative;
    z-index: 2;
    border-radius: 0.9rem;
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1rem 0 1.15rem;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    transition:
        background-color 0.35s var(--rpm-ease-out),
        box-shadow 0.35s var(--rpm-ease-out),
        border-color 0.35s var(--rpm-ease-out),
        -webkit-backdrop-filter 0.35s var(--rpm-ease-out),
        backdrop-filter 0.35s var(--rpm-ease-out);
}

/* Glass: hover anywhere on the menu, scrolled, or mega-menu open */
.rpm-boxed-nav:hover .rpm-boxed-nav-shell,
.rpm-boxed-nav.navbar-sticky .rpm-boxed-nav-shell,
.rpm-boxed-nav.dropdown-active .rpm-boxed-nav-shell,
.rpm-boxed-nav.overlay-active .rpm-boxed-nav-shell {
    background-color: var(--rpm-glass-nav-bg);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    backdrop-filter: blur(20px) saturate(1.25);
    border-color: var(--rpm-glass-border);
    box-shadow: var(--rpm-shadow-md);
}

.rpm-boxed-nav.dropdown-active .rpm-boxed-nav-shell,
.rpm-boxed-nav.overlay-active .rpm-boxed-nav-shell {
    background-color: var(--rpm-glass-bg-strong);
    box-shadow: var(--rpm-shadow-lg);
}

@media (max-width: 767.98px) {
    .rpm-boxed-nav.navigation.fixed-top {
        padding: 0.75rem 0 0 !important;
    }

    .rpm-boxed-nav-shell {
        background-color: var(--rpm-glass-nav-bg);
        -webkit-backdrop-filter: blur(20px) saturate(1.25);
        backdrop-filter: blur(20px) saturate(1.25);
        border-color: var(--rpm-glass-border);
        box-shadow: var(--rpm-shadow-sm);
        min-height: 60px;
        padding: 0 0.75rem 0 1rem;
    }

    .rpm-boxed-nav .navbar-toggler .icon-bar {
        background-color: var(--rpm-brand) !important;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .rpm-boxed-nav:hover .rpm-boxed-nav-shell,
    .rpm-boxed-nav.navbar-sticky .rpm-boxed-nav-shell,
    .rpm-boxed-nav.dropdown-active .rpm-boxed-nav-shell,
    .rpm-boxed-nav.overlay-active .rpm-boxed-nav-shell,
    .rpm-boxed-nav-shell {
        background-color: var(--rpm-glass-bg-strong);
    }
}

.rpm-boxed-nav-menu {
    width: 100%;
    min-height: 70px;
    flex-wrap: nowrap;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .rpm-boxed-nav .st-nav-primary .st-root-link.nav-link {
        padding: 0.35rem 0.55rem !important;
        font-size: 0.875rem;
    }

    .rpm-nav-action {
        padding: 0 0.6rem;
        font-size: 0.8rem;
    }

    .rpm-nav-action--primary {
        padding: 0 0.75rem;
    }
}

.rpm-boxed-nav-brand .navbar-brand {
    margin-right: 0.5rem;
    padding: 0;
}

.rpm-boxed-nav .st-nav-primary .st-root-link.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem !important;
    margin: 0 0.1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.rpm-nav-caret {
    font-size: 0.55rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.rpm-boxed-nav .st-has-dropdown.active .rpm-nav-caret {
    transform: rotate(180deg);
}

/* Over dark hero (desktop, transparent shell): light links */
@media (min-width: 768px) {
    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .st-nav-primary .nav-link {
        color: rgba(255, 255, 255, 0.92) !important;
    }

    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .st-nav-primary .nav-link:hover,
    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .st-nav-primary .nav-link.active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.12);
    }

    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .rpm-nav-action {
        color: rgba(255, 255, 255, 0.92);
    }

    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .rpm-nav-action:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
    }

    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .rpm-nav-action--primary {
        background: #fff;
        color: var(--rpm-brand) !important;
    }

    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .rpm-nav-action--primary:hover {
        background: #f8fafc;
        color: var(--rpm-brand-mid) !important;
    }
}

/* Glass shell: dark links */
.rpm-boxed-nav:hover .st-nav-primary .nav-link,
.rpm-boxed-nav.navbar-sticky .st-nav-primary .nav-link,
.rpm-boxed-nav.dropdown-active .st-nav-primary .nav-link,
.rpm-boxed-nav.overlay-active .st-nav-primary .nav-link {
    color: var(--rpm-text-secondary) !important;
}

.rpm-boxed-nav:hover .st-nav-primary .nav-link:hover,
.rpm-boxed-nav:hover .st-nav-primary .nav-link.active,
.rpm-boxed-nav.navbar-sticky .st-nav-primary .nav-link:hover,
.rpm-boxed-nav.navbar-sticky .st-nav-primary .nav-link.active,
.rpm-boxed-nav.dropdown-active .st-nav-primary .nav-link:hover,
.rpm-boxed-nav.dropdown-active .st-nav-primary .nav-link.active,
.rpm-boxed-nav.overlay-active .st-nav-primary .nav-link:hover,
.rpm-boxed-nav.overlay-active .st-nav-primary .nav-link.active {
    color: var(--rpm-text) !important;
    background: rgba(15, 23, 42, 0.05);
}

.rpm-boxed-nav-actions {
    display: none;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto !important;
}

@media (min-width: 768px) {
    .rpm-boxed-nav-actions {
        display: flex !important;
    }
}

.rpm-nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    padding: 0 0.85rem;
    border-radius: 0.55rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rpm-text-secondary);
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rpm-nav-action:hover {
    color: var(--rpm-text);
    background: rgba(15, 23, 42, 0.05);
}

.rpm-nav-action--primary {
    background: var(--rpm-brand);
    color: #fff !important;
    font-weight: 600;
}

.rpm-nav-action--primary:hover {
    background: var(--rpm-brand-mid);
    color: #fff !important;
    box-shadow: 0 8px 18px -8px rgba(var(--rpm-hero-from-rgb), 0.55);
}

/* Language switcher — flag icon */
.rpm-nav-lang {
    padding: 0 0.55rem !important;
    min-width: 2.25rem;
}

.rpm-nav-flag {
    display: block;
    width: 1.35rem;
    height: 1rem;
    border-radius: 0.2rem;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

html[data-rpm-color="dark"] .rpm-nav-flag {
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.18);
}

@media (min-width: 768px) {
    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .rpm-nav-lang {
        background: rgba(255, 255, 255, 0.12);
    }

    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .rpm-nav-lang:hover {
        background: rgba(255, 255, 255, 0.22);
    }

    .rpm-boxed-nav:not(:hover):not(.navbar-sticky):not(.dropdown-active):not(.overlay-active) .rpm-nav-flag {
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
    }
}

/* Mega-menu: softer panel under boxed bar */
.rpm-boxed-nav .st-dropdown-root {
    top: 5.35rem;
}

.rpm-boxed-nav.navbar-sticky .st-dropdown-root {
    top: 4.85rem;
}

.rpm-boxed-nav .st-dropdown-bg {
    border-radius: 0.9rem !important;
    box-shadow: var(--rpm-shadow-lg) !important;
    border: 1px solid var(--rpm-glass-border);
}

.rpm-boxed-nav .st-dropdown-arrow {
    border-radius: 3px 0 0 0;
}

.rpm-boxed-nav .st-dropdown-section {
    border-radius: 0.9rem;
}

.rpm-boxed-nav .st-popup-container {
    border-radius: 0.9rem !important;
    overflow: hidden;
    box-shadow: var(--rpm-shadow-lg) !important;
}

/*
 * Mobile menu: boxed nav clips absolute popups (shell is only ~70px tall).
 * Pin the panel to the viewport and keep it above page content / dimmer.
 * Contact (and other bring-to-front sections) must not paint over it.
 */
@media (max-width: 767.98px) {
    .rpm-boxed-nav .st-nav-section.st-nav-mobile .st-popup {
        position: fixed !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        top: 0.75rem !important;
        bottom: auto !important;
        width: auto !important;
        z-index: 1200 !important;
        pointer-events: none;
    }

    .rpm-boxed-nav .st-nav-section.st-nav-mobile.st-popup-active .st-popup {
        pointer-events: auto;
    }

    .rpm-boxed-nav .st-nav-section.st-nav-mobile.st-popup-active .st-popup-container {
        max-height: calc(100vh - 1.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--rpm-surface-elevated) !important;
    }

    .rpm-boxed-nav .st-popup a.regular,
    .rpm-boxed-nav .st-popup .st-dropdown-content-group a {
        color: var(--rpm-text) !important;
    }

    .rpm-boxed-nav .st-popup a.regular:hover,
    .rpm-boxed-nav .st-popup .st-dropdown-content-group a:hover {
        color: var(--rpm-brand) !important;
    }

    .rpm-boxed-nav .st-popup .st-dropdown-content-group a i {
        color: var(--rpm-brand) !important;
        width: 1.25rem;
        text-align: center;
    }

    .rpm-boxed-nav .st-popup-close-button:after,
    .rpm-boxed-nav .st-popup-close-button:before {
        background: var(--rpm-brand) !important;
    }

    /* Don’t let sticky page sections compete with the open menu */
    body:has(.st-nav-mobile.st-popup-active) main .bring-to-front,
    body:has(.st-nav-mobile.st-popup-active) main [class*="bring-to-front"] {
        z-index: 0 !important;
    }
}

/* Mega-menu / nav hover: page dimmer with light blur */
body.rpm-nav-dimmed::before,
body:has(.st-nav.overlay-active)::before,
body:has(.st-nav.dropdown-active)::before,
body:has(.rpm-boxed-nav:hover)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: var(--rpm-dimmer);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--rpm-duration) var(--rpm-ease-out);
}

/* Mega-menu panels (Features, FAQ): fixed flex columns — no overlap.
 * Must stay position:absolute (Stripe menu stacks all sections at 0,0).
 * position:relative here pushes sibling panels (About/Blog) out of view. */
.rpm-mega-panel {
    width: 900px;
    max-width: calc(100vw - 2.5rem);
    box-sizing: border-box;
    white-space: normal !important;
}

.rpm-mega-panel-inner {
    padding: 1.35rem 1.5rem 1.5rem !important;
    white-space: normal !important;
}

.rpm-mega-panel-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.rpm-mega-panel-featured {
    flex: 0 0 230px;
    width: 230px;
    max-width: 230px;
    min-width: 0;
    padding-right: 1.15rem;
    margin-right: 1.15rem;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    overflow: hidden;
}

.rpm-mega-panel-cols {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 1.1rem;
}

.rpm-mega-panel-col {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.rpm-mega-featured-link {
    display: block;
    padding: 0.5rem 0.35rem !important;
    border-radius: 0.55rem;
    margin: 0 -0.35rem;
    white-space: normal !important;
}

.rpm-mega-featured-link:hover {
    background: rgba(15, 23, 42, 0.04);
}

.rpm-mega-featured-link .media {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0 !important;
    min-width: 0;
}

.rpm-mega-featured-link .media-body {
    min-width: 0;
    flex: 1 1 auto;
}

.rpm-mega-featured-link .link-title {
    white-space: normal !important;
    text-transform: none;
    font-size: 0.95rem;
    line-height: 1.3;
}

.rpm-mega-featured-link + .rpm-mega-featured-link {
    margin-top: 0.1rem;
}

.rpm-mega-panel-col h4 {
    margin: 0 0 0.65rem !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.08em;
    color: var(--rpm-text-muted, #64748b);
    white-space: normal !important;
}

.rpm-mega-panel-col .dropdown-item {
    display: block;
    padding: 0.35rem 0 !important;
    font-size: 0.875rem;
    line-height: 1.35;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .rpm-mega-panel {
        width: 640px;
    }

    .rpm-mega-panel-grid {
        flex-wrap: wrap;
    }

    .rpm-mega-panel-featured {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        padding-bottom: 0.85rem;
        margin-bottom: 0.85rem;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .rpm-mega-panel-cols {
        flex: 1 1 100%;
        flex-wrap: wrap;
    }

    .rpm-mega-panel-col {
        flex: 1 1 calc(50% - 0.55rem);
    }
}

/* Flex/grid children can shrink (Bootstrap cols default min-width:auto expands page) */
main .row > [class*="col"],
main .row > [class*="col-"] {
    min-width: 0;
}

main img,
main svg,
main video,
main iframe,
.rpm-legacy-content img,
.rpm-post-content img,
.card-img-top {
    max-width: 100%;
    height: auto;
}

/* Long URLs / unbroken strings in CMS and marketing copy */
.rpm-post-content,
.rpm-legacy-content,
.rpm-marketing-copy,
.rpm-legal-content,
.post-content {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

/* Breadcrumbs: wrap instead of forcing horizontal scroll (blog titles are long) */
.breadcrumb {
    flex-wrap: wrap !important;
    white-space: normal !important;
    max-width: 100%;
}

.breadcrumb-item {
    white-space: normal !important;
    max-width: 100%;
}

.breadcrumb-item.active {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Marketing / blog page heroes — clear of bottom wave; long titles wrap safely */
.page.header,
.page.header.rpm-page-hero {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    /* Do not flex-center: long titles + wave collide and wash out text */
    display: block;
    min-height: 0;
}

/* Allow wrapping without killing Bootstrap .container centering */
.page.header .row,
.page.header [class*="col"] {
    min-width: 0;
}

.page.header .container.rpm-page-hero-inner,
.rpm-page-hero-inner.container {
    /* Restore normal container max-widths (was incorrectly forced to 100%) */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Copy sits above the wave (theme sets wave z-index: 1 on .overlay .divider-shape) */
.rpm-page-hero-inner,
.page.header > .container {
    position: relative;
    z-index: 2;
    /* Top clears fixed nav; bottom clears wave (theme wave ~100–133px) */
    padding-top: 6.5rem !important;
    padding-bottom: 5.75rem !important;
}

@media (min-width: 768px) {
    .rpm-page-hero-inner,
    .page.header > .container {
        padding-top: 7.25rem !important;
        padding-bottom: 6.5rem !important;
    }
}

@media (min-width: 992px) {
    .rpm-page-hero-inner,
    .page.header > .container {
        padding-top: 7.75rem !important;
        padding-bottom: 7rem !important;
    }
}

.rpm-page-hero-video {
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.page.header .divider-shape,
.rpm-page-hero-wave {
    z-index: 1 !important;
    pointer-events: none;
    bottom: -1px;
    /* Theme default SVG height 433px is huge; shape-waves is shorter but keep a hard cap */
}

.page.header .divider-shape svg.shape-waves,
.rpm-page-hero-wave svg.shape-waves {
    height: 72px !important;
    width: calc(140% + 1.3px) !important;
    left: 50% !important;
    transform: translateX(-50%) rotateY(180deg) !important;
}

@media (min-width: 768px) {
    .page.header .divider-shape svg.shape-waves,
    .rpm-page-hero-wave svg.shape-waves {
        height: 96px !important;
    }
}

.rpm-page-hero-badge {
    position: relative;
    z-index: 2;
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
    text-align: left;
}

.page.header h1,
.page.header .display-4,
.rpm-page-hero-title {
    font-size: clamp(1.45rem, 4.2vw, 2.5rem) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    /* Keep white titles readable on gradient */
    text-shadow: 0 1px 18px rgba(15, 23, 42, 0.35);
    position: relative;
    z-index: 2;
}

.page.header .lead,
.rpm-page-hero-lead {
    font-size: clamp(0.95rem, 2.4vw, 1.2rem);
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 40rem;
    text-shadow: 0 1px 12px rgba(15, 23, 42, 0.3);
    position: relative;
    z-index: 2;
}

/* —— Home hero: impactful device stage, copy & nav stay clear —— */

.rpm-home-hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 700px;
    padding-top: 7.5rem !important;
    padding-bottom: 5.5rem !important;
}

.rpm-home-hero-video {
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.rpm-home-hero .divider-shape {
    z-index: 2;
}

.rpm-home-hero-container {
    position: relative;
    z-index: 3;
    overflow: visible;
}

.rpm-home-hero-copy {
    position: relative;
    z-index: 5;
    max-width: 34rem;
}

.rpm-home-hero-copy h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.85rem);
    line-height: 1.12;
    text-shadow: 0 2px 24px rgba(15, 23, 42, 0.25);
}

.rpm-home-hero-copy .lead,
.rpm-home-hero-copy h3 {
    text-shadow: 0 1px 12px rgba(15, 23, 42, 0.2);
}

/* Device stage — right column only */
.rpm-home-hero-devices {
    position: relative;
    z-index: 2;
    min-height: 460px;
    pointer-events: none;
    perspective: 1400px;
}

.rpm-hero-stage {
    position: relative;
    width: 100%;
    max-width: 640px;
    height: 460px;
    margin-left: auto;
    margin-right: 0;
    transform-style: preserve-3d;
}

.rpm-hero-float {
    position: absolute;
    will-change: transform;
}

.rpm-hero-chrome {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-shadow:
        0 28px 60px -14px rgba(15, 23, 42, 0.5),
        0 12px 24px -8px rgba(88, 28, 135, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Scale theme device frames up inside our stage */
.rpm-hero-float--main .ipad,
.rpm-hero-float--back .ipad {
    max-width: 100% !important;
    width: 100% !important;
}

.rpm-hero-float--phone .iphone-x,
.rpm-hero-float--phone-sm .iphone-x {
    max-width: 100% !important;
    width: 100% !important;
}

.rpm-hero-chrome .screen {
    overflow: hidden;
    background: #0f172a;
}

.rpm-hero-chrome .screen img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top left;
}

/* Back landscape tablet (higher so monitor sits in the pocket below) */
.rpm-hero-float--back {
    top: 0;
    left: 0;
    width: 58%;
    z-index: 1;
    transform: rotateY(-18deg) rotateZ(-8deg) translateZ(-40px);
    opacity: 0.92;
    animation: rpm-float-back 7s ease-in-out infinite;
}

.rpm-hero-float--back .tablet {
    width: 100%;
}

/* Main portrait tablet — hero focus */
.rpm-hero-float--main {
    top: -2%;
    right: 4%;
    width: 52%;
    z-index: 2;
    transform: rotateY(12deg) rotateZ(6deg) translateZ(20px);
    animation: rpm-float-main 6s ease-in-out infinite;
}

.rpm-hero-float--main .tablet {
    width: 100%;
}

/* Desktop monitor — sits bottom-center, between the two phones */
.rpm-hero-float--monitor {
    bottom: -2%;
    left: 50%;
    width: 48%;
    z-index: 3;
    transform: translateX(-50%) rotateY(-4deg) rotateZ(-2deg) translateZ(15px);
    animation: rpm-float-monitor 6.2s ease-in-out infinite;
}

.rpm-hero-monitor {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rpm-hero-monitor-bezel {
    width: 100%;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    border-radius: 10px 10px 6px 6px;
    padding: 10px 10px 14px;
    box-shadow:
        0 28px 50px -16px rgba(15, 23, 42, 0.55),
        0 10px 20px -8px rgba(88, 28, 135, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.rpm-hero-monitor-screen {
    border-radius: 4px;
    overflow: hidden;
    background: #020617;
    line-height: 0;
}

.rpm-hero-monitor-screen img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top left;
}

.rpm-hero-monitor-neck {
    width: 14%;
    max-width: 28px;
    height: 22px;
    margin-top: -1px;
    background: linear-gradient(90deg, #334155, #64748b 40%, #334155);
    border-radius: 0 0 2px 2px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.25);
}

.rpm-hero-monitor-base {
    width: 42%;
    max-width: 120px;
    height: 8px;
    background: linear-gradient(180deg, #475569, #1e293b);
    border-radius: 3px 3px 8px 8px;
    box-shadow: 0 6px 12px -2px rgba(15, 23, 42, 0.4);
}

/* Front phone (right of monitor) */
.rpm-hero-float--phone {
    bottom: 0;
    right: 0;
    width: 26%;
    max-width: 168px;
    z-index: 5;
    transform: rotateY(8deg) rotateZ(-10deg) translateZ(60px);
    animation: rpm-float-phone 5.5s ease-in-out infinite;
}

.rpm-hero-float--phone .iphone-x {
    width: 100%;
}

/* Small phone accent (left of monitor) */
.rpm-hero-float--phone-sm {
    bottom: 4%;
    left: 4%;
    width: 20%;
    max-width: 130px;
    z-index: 4;
    transform: rotateY(-12deg) rotateZ(12deg) translateZ(40px);
    opacity: 0.98;
    animation: rpm-float-phone-sm 6.5s ease-in-out infinite;
}

.rpm-hero-float--phone-sm .iphone-x {
    width: 100%;
}

@keyframes rpm-float-main {
    0%, 100% { transform: rotateY(12deg) rotateZ(6deg) translateZ(20px) translateY(0); }
    50% { transform: rotateY(12deg) rotateZ(6deg) translateZ(20px) translateY(-10px); }
}

@keyframes rpm-float-back {
    0%, 100% { transform: rotateY(-18deg) rotateZ(-8deg) translateZ(-40px) translateY(0); }
    50% { transform: rotateY(-18deg) rotateZ(-8deg) translateZ(-40px) translateY(8px); }
}

@keyframes rpm-float-phone {
    0%, 100% { transform: rotateY(8deg) rotateZ(-10deg) translateZ(60px) translateY(0); }
    50% { transform: rotateY(8deg) rotateZ(-10deg) translateZ(60px) translateY(-14px); }
}

@keyframes rpm-float-phone-sm {
    0%, 100% { transform: rotateY(-12deg) rotateZ(12deg) translateZ(40px) translateY(0); }
    50% { transform: rotateY(-12deg) rotateZ(12deg) translateZ(40px) translateY(10px); }
}

@keyframes rpm-float-monitor {
    0%, 100% { transform: translateX(-50%) rotateY(-4deg) rotateZ(-2deg) translateZ(15px) translateY(0); }
    50% { transform: translateX(-50%) rotateY(-4deg) rotateZ(-2deg) translateZ(15px) translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .rpm-hero-float {
        animation: none !important;
    }
}

@media (min-width: 1200px) {
    .rpm-home-hero {
        min-height: 760px;
        padding-top: 8.25rem !important;
        padding-bottom: 6rem !important;
    }

    .rpm-hero-stage {
        max-width: 720px;
        height: 520px;
        margin-right: -2rem;
    }

    .rpm-hero-float--phone {
        max-width: 190px;
    }

    .rpm-hero-float--phone-sm {
        max-width: 145px;
    }

    .rpm-hero-float--monitor {
        width: 50%;
    }
}

@media (min-width: 1400px) {
    .rpm-hero-stage {
        max-width: 780px;
        height: 560px;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .rpm-hero-stage {
        height: 420px;
        max-width: 520px;
    }

    .rpm-hero-float--phone-sm {
        display: none;
    }

    .rpm-hero-float--monitor {
        width: 52%;
        bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .rpm-home-hero {
        min-height: 0;
        padding-top: 6.5rem !important;
        padding-bottom: 4rem !important;
    }

    .rpm-home-hero-copy {
        max-width: none;
    }
}

/* Hide legacy absolute mockup cluster if present elsewhere */
.perspective-mockups {
    display: none !important;
}

.rpm-marketing-copy p {
    margin-bottom: 1rem;
}

.rpm-marketing-copy a {
    color: var(--primary, #7c4dff);
    font-weight: 600;
}

.rpm-marketing-copy a:hover {
    text-decoration: underline;
}

.rpm-legal-content {
    font-size: 1.05rem;
    line-height: 1.75;
}

.rpm-legal-content h2,
.rpm-legal-content h3,
.rpm-legal-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rpm-legal-content h2[id],
.rpm-legal-content h3[id] {
    scroll-margin-top: 110px;
}

.rpm-legal-content ul,
.rpm-legal-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

/* Legal pages — left section nav (API docs fixed-sidebar pattern) */
.rpm-legal-layout {
    position: relative;
}

.rpm-legal-layout.has-toc > .row > .rpm-legal-aside {
    position: static; /* so absolute bottom pins to .rpm-legal-layout */
}

.rpm-legal-sidebar {
    padding-right: 1rem;
    margin-bottom: 1.5rem;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.rpm-legal-sidebar.sidebar-is-fixed {
    position: fixed;
    top: 96px;
    z-index: 20;
    margin-bottom: 0;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.rpm-legal-sidebar.sidebar-is-bottom {
    position: absolute;
    bottom: 0;
    top: auto;
    margin-bottom: 0;
    z-index: 20;
}

.js-rpm-legal-sidebar-wrapper {
    position: relative;
}

.rpm-legal-toc-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.85rem;
    padding-left: 0.85rem;
}

.rpm-legal-toc-list {
    border-left: 2px solid rgba(108, 117, 125, 0.2);
    margin: 0;
    padding: 0;
}

.rpm-legal-toc-list a {
    display: block;
    padding: 0.4rem 0.75rem 0.4rem 0.85rem;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #495057;
    text-decoration: none;
    border-left: 3px solid transparent;
    margin-left: -2px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.rpm-legal-toc-list a:hover {
    color: var(--primary, #7c4dff);
    text-decoration: none;
}

.rpm-legal-toc-list a.active {
    color: var(--primary, #7c4dff);
    font-weight: 600;
    border-left-color: var(--primary, #7c4dff);
    background: rgba(124, 77, 255, 0.06);
}

.rpm-legal-toc-related {
    margin-top: 1.25rem;
    padding: 1rem 0 0 0.85rem;
    border-top: 1px solid rgba(108, 117, 125, 0.2);
}

.rpm-legal-toc-related a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary, #7c4dff);
    text-decoration: none;
}

.rpm-legal-toc-related a:hover {
    text-decoration: underline;
}

.rpm-legal-jump .form-control {
    font-size: 0.95rem;
}

.section-heading .fas.fa-star {
    font-size: 0.85rem;
}

/* Feature split pages — no decorative stars; optional badges */
.rpm-feature-split .section-heading {
    margin-bottom: 1rem;
}

/* Newsletter response visibility helpers */
.form-ajax-newsletter.submitted + .response-message.is-error .font-md {
    color: #b91c1c;
}
.form-ajax-newsletter.submitted + .response-message.is-success .font-md {
    color: #047857;
}

/* Full-width mid + footer CTAs — isolate from theme "edge" diagonal bleed */
.rpm-feature-mid-cta,
.rpm-sitewide-cta {
    border-radius: 0;
    width: 100%;
    position: relative;
    z-index: 3;
    overflow: hidden;
    margin-top: 0 !important;
}

.rpm-feature-mid-cta::before,
.rpm-feature-mid-cta::after,
.rpm-sitewide-cta::before,
.rpm-sitewide-cta::after {
    display: none !important;
    content: none !important;
}

.rpm-feature-mid-cta .text-white-50,
.rpm-sitewide-cta .text-white-50 {
    color: rgba(255, 255, 255, 0.82) !important;
}

.rpm-feature-mid-cta .btn-outline-light:hover,
.rpm-sitewide-cta .btn-outline-light:hover {
    color: var(--rpm-brand-mid);
}

.mt-n6 {
    margin-top: -4rem !important;
}

@media (max-width: 767px) {
    .mt-n6 {
        margin-top: -2rem !important;
    }
}

.browser .screen img {
    display: block;
}

/* Page heroes size from content + padding (wave-safe). Avoid fixed min-height flex centering. */
.page.header.rpm-page-hero {
    min-height: 0;
}

/*
 * Legacy Dashcore .logo / .logo-sticky swap for non-brand assets only.
 * Never force every .logo:not(.logo-sticky) to display:block — that doubled
 * the RPM brand logo pair before sticky.
 */
@media (min-width: 768px) {
    .navigation.fixed-top:not(.navbar-sticky) .logo.logo-sticky:not(.rpm-brand-logo) {
        display: none !important;
    }
}

/* Blog index — DASHWIND grid-view-2 cards */
.rpm-blog-toolbar-title {
    letter-spacing: -0.02em;
}

.rpm-blog-search-btn {
    position: absolute;
    top: 50%;
    right: 0.15rem;
    transform: translateY(-50%);
    color: var(--rpm-text-secondary);
    z-index: 2;
    padding: 0.35rem 0.75rem;
}

.rpm-blog-search-btn:hover,
.rpm-blog-search-btn:focus {
    color: var(--rpm-brand);
    text-decoration: none;
}

.rpm-blog-card {
    border-radius: var(--rpm-radius-lg) !important;
    background: var(--rpm-surface-elevated);
    transition: transform 0.3s var(--rpm-ease-out), box-shadow 0.3s var(--rpm-ease-out);
}

.rpm-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rpm-shadow-lg) !important;
}

.rpm-blog-card-media {
    position: relative;
    overflow: hidden;
    background: var(--rpm-surface);
}

.rpm-blog-card-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.45s var(--rpm-ease-out);
}

.rpm-blog-card:hover .rpm-blog-card-media img {
    transform: scale(1.04);
}

.rpm-blog-card-avatar {
    position: absolute;
    top: 0;
    left: 1.25rem;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    background: #fff;
    padding: 0.25rem;
    z-index: 2;
}

.rpm-blog-card-meta {
    padding-left: 4rem;
}

.rpm-blog-card-rule {
    border-color: var(--rpm-border);
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.rpm-blog-card-title {
    color: var(--rpm-text);
    letter-spacing: -0.02em;
}

.rpm-blog-card-title:hover {
    color: var(--rpm-brand);
    text-decoration: none;
}

.rpm-blog-card-category {
    display: inline-block;
    color: var(--rpm-brand);
    background: rgba(var(--rpm-hero-from-rgb), 0.12);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

html[data-rpm-color="dark"] .rpm-blog-card {
    background: var(--rpm-surface-elevated);
}

html[data-rpm-color="dark"] .rpm-blog-card-avatar {
    background: var(--rpm-surface);
}

/* Footer latest-posts strip — same cards, slightly shorter media for 3-up */
.rpm-footer-posts .rpm-blog-card-media img {
    height: 180px;
}

.rpm-footer-posts .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog sidebar — DASHWIND post-sidebar pattern */
@media (min-width: 992px) {
    .rpm-blog-sidebar {
        position: sticky;
        top: 6.5rem;
    }
}

.rpm-blog-sidebar-card {
    background: var(--rpm-surface-elevated);
    border-radius: var(--rpm-radius-lg, 1rem) !important;
}

.rpm-blog-sidebar-card .nav-link {
    color: var(--rpm-text);
    border-radius: 0.5rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.rpm-blog-sidebar-card .nav-link:hover {
    color: var(--rpm-brand);
    background: rgba(var(--rpm-hero-from-rgb), 0.06);
    text-decoration: none;
}

.rpm-blog-sidebar-count {
    display: inline-block;
    min-width: 1.75rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--rpm-text-secondary);
    background: var(--rpm-surface);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    line-height: 1.2;
}

.rpm-blog-sidebar-search-icon {
    top: 50%;
    right: 0.95rem;
    transform: translateY(-50%);
    color: var(--rpm-text-secondary);
    pointer-events: none;
    z-index: 2;
}

.rpm-blog-sidebar-thumb {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
}

.rpm-blog-sidebar-post-link {
    color: var(--rpm-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rpm-blog-sidebar-post-link:hover {
    color: var(--rpm-brand);
    text-decoration: none;
}

.rpm-blog-sidebar-subscribe {
    background: rgba(var(--rpm-hero-from-rgb), 0.1);
    border-radius: var(--rpm-radius-lg, 1rem);
}

.rpm-blog-sidebar-subscribe-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.65rem;
    background: rgba(var(--rpm-hero-from-rgb), 0.14);
    color: var(--rpm-brand);
    font-size: 1.35rem;
}

html[data-rpm-color="dark"] .rpm-blog-sidebar-card {
    background: var(--rpm-surface-elevated);
}

html[data-rpm-color="dark"] .rpm-blog-sidebar-subscribe {
    background: rgba(var(--rpm-hero-from-rgb), 0.18);
}

/* Blog / CMS article body — matches marketing typography */
.rpm-post-article {
    max-width: 100%;
    overflow: hidden; /* clip image/box-shadow bleed on narrow viewports */
}

.rpm-post-article .rpm-post-hero-img {
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

.rpm-post-article .card-body {
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .rpm-post-article .card-body {
        padding: 1.15rem !important;
    }

    /* Full title already in hero — hide long active crumb on phones (post.php also uses d-none d-md-*) */
    .breadcrumb-item.active {
        display: none !important;
    }
}

.rpm-post-content .lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #506690 !important;
}

@media (min-width: 768px) {
    .rpm-post-content .lead {
        font-size: 1.15rem;
    }
}

.rpm-post-content h2,
.rpm-legacy-content .rpm-post-content h2 {
    color: #0f172a;
    letter-spacing: -0.01em;
}

.rpm-post-content h3 {
    color: #1e293b;
}

.rpm-post-content .rpm-post-list {
    padding-left: 1.25rem;
    color: #506690;
}

.rpm-post-content .rpm-post-list li {
    margin-bottom: 0.5rem;
    line-height: 1.55;
}

.rpm-post-content .rpm-post-list li::marker {
    color: var(--rpm-brand);
}

.rpm-post-content a.text-primary {
    font-weight: 600;
}

.rpm-post-content .rpm-post-cta {
    border-radius: 0.75rem;
    border-color: #e2e8f0 !important;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%) !important;
}

.rpm-post-content .rpm-post-faq .card-header {
    border-bottom: 0;
    padding: 0.85rem 1.15rem;
}

.rpm-post-content .rpm-post-faq .card-title {
    white-space: normal;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1.4;
    min-width: 0;
    max-width: 100%;
}

.rpm-post-content .rpm-post-faq .card-title span {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
}

.rpm-post-content .rpm-post-cta .btn {
    white-space: normal;
}

.rpm-post-content .rpm-post-faq .card-title .angle {
    transition: transform 0.2s ease;
}

.rpm-post-content .rpm-post-faq .card-title[aria-expanded="true"] .angle,
.rpm-post-content .rpm-post-faq .card-title:not(.collapsed) .angle {
    transform: rotate(180deg);
}

.rpm-post-content .rpm-post-faq .card-body {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Main FAQ page — same accordion chrome as blog post FAQs */
#faqs-accordion .card-header {
    border-bottom: 0;
    padding: 0.85rem 1.15rem;
}

#faqs-accordion .card-title {
    white-space: normal;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1.4;
    min-width: 0;
    max-width: 100%;
}

#faqs-accordion .card-title span {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
}

/* Tables / pre in CMS (if any) — scroll inside, don’t expand page */
.rpm-legacy-content table,
.rpm-post-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rpm-legacy-content pre,
.rpm-post-content pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Feature matrices / wide content sections */
.table-responsive {
    max-width: 100%;
}

/* Order + trial trust strip on narrow phones */
@media (max-width: 575.98px) {
    .rpm-order-trust-item {
        align-items: flex-start;
    }

    .rpm-order-trust-title,
    .rpm-order-trust-sub {
        overflow-wrap: anywhere;
    }
}

#faqs-accordion .card-title .angle {
    transition: transform 0.2s ease;
}

#faqs-accordion .card-title[aria-expanded="true"] .angle {
    transform: rotate(180deg);
}

#faqs-accordion .card-body {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Marketing partials */
.rpm-marketing-counters .counter {
    font-size: 2rem;
}

/* Product tour: show full screenshots (not cropped strips) */
.rpm-screenshot-coverflow .swiper-container.coverflow {
    padding: 2rem 0 3rem;
    overflow: hidden;
}

.rpm-screenshot-coverflow .swiper-slide {
    width: min(72vw, 720px);
    height: auto;
}

.rpm-screenshot-coverflow .swiper-slide a {
    display: block;
    line-height: 0;
}

.rpm-screenshot-coverflow .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    background: #fff;
}

@media (min-width: 992px) {
    .rpm-screenshot-coverflow .swiper-slide {
        width: min(58vw, 820px);
    }
}

/* Explore-by-type cards: consistent image crop */
.rpm-explore-type-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Outcome cards: push CTA buttons to the bottom */
.rpm-outcome-card {
    display: flex;
    flex-direction: column;
}

.rpm-outcome-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Integrations page — open API promo */
.rpm-api-promo .icon-sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
}

.rpm-api-promo code {
    font-size: 0.85em;
}

/* Partners strip — CSS grid tiles (replaces flaky Swiper that only showed Stripe) */
.rpm-marketing-partners {
    overflow: hidden; /* avoid edge bleed without theme .edge */
}

/* Integration cards — icon column fixed so icons never slide under titles */
.rpm-integration-card-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.rpm-integration-card-icon {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rpm-brand-gradient);
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.rpm-integration-card-titles {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.rpm-integration-card-titles h4 {
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.rpm-partners-lead {
    max-width: 36rem;
    font-size: 0.98rem;
}

.rpm-partners-grid {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.rpm-partners-grid > [class*="col"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    min-width: 0;
}

.rpm-partner-tile {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 0.85rem;
    padding: 1.15rem 0.75rem 1.1rem;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    max-width: 100%;
}

.rpm-partner-tile:hover {
    border-color: #c4b5fd;
    box-shadow: 0 10px 24px -12px rgba(91, 33, 182, 0.35);
    transform: translateY(-2px);
    color: inherit;
}

.rpm-partner-tile-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rpm-brand-gradient);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px -4px rgba(76, 29, 149, 0.4);
    flex-shrink: 0;
}

.rpm-partner-tile-logo {
    max-height: 36px;
    width: auto;
    max-width: 100%;
}

.rpm-partner-tile-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.rpm-partner-tile-blurb {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.3;
    color: #64748b;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .rpm-partner-tile {
        padding: 1rem 0.55rem 0.95rem;
        min-height: 100%;
    }

    .rpm-partner-tile-name {
        font-size: 0.88rem;
    }

    .rpm-partner-tile-blurb {
        font-size: 0.72rem;
    }

    .rpm-partner-tile-icon {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 0.95rem;
    }
}

/* Legacy class (if any old markup remains) */
.rpm-marketing-partners .partner-logo {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.rpm-marketing-partners .partner-logo:hover {
    opacity: 1;
    text-decoration: none;
}

.rpm-pricing-toggle .pricing-value .price {
    font-size: 3rem;
}

.rpm-pricing-box-art {
    max-height: 420px;
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.18));
    transition: opacity 0.2s ease;
}

.rpm-plan-card-img,
.rpm-addon-card-img {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpm-plan-card-img img,
.rpm-addon-card-img img {
    max-height: 160px;
    width: auto;
    object-fit: contain;
}

.rpm-addon-card-img img {
    max-height: 140px;
}

/* Feature matrix: readable headers (never black on purple) */
.rpm-feature-matrix-header {
    background: var(--rpm-brand-gradient) !important;
    color: #fff !important;
    border-bottom: 0;
}

.rpm-feature-matrix-header h1,
.rpm-feature-matrix-header h2,
.rpm-feature-matrix-header h3,
.rpm-feature-matrix-header h4,
.rpm-feature-matrix-header h5,
.rpm-feature-matrix-header .bold,
.rpm-feature-matrix-header a {
    color: #fff !important;
}

.rpm-feature-matrix-header .text-white-50 {
    color: rgba(255, 255, 255, 0.78) !important;
}

.rpm-feature-matrix-card .table td {
    padding: 0.9rem 1.25rem;
    vertical-align: middle;
}

.rpm-feature-matrix-card .table a:hover {
    text-decoration: underline;
}

/* Generic fix: solid primary card headers on marketing pages */
.card-header.bg-primary,
.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary .bold {
    color: #fff !important;
}

/* Order / trial trust — glass card over hero (feature-highlights pattern) */
.rpm-order-trust-strip {
    position: relative;
    z-index: 3;
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none;
}

.rpm-order-trust-card {
    overflow: hidden;
}

.rpm-order-trust-card .card-body {
    background: transparent;
}

.rpm-order-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    height: 100%;
}

.rpm-order-trust-icon {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rpm-brand-gradient);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 6px 14px -4px rgba(76, 29, 149, 0.45);
}

.rpm-order-trust-icon--success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 14px -4px rgba(4, 120, 87, 0.4);
}

.rpm-order-trust-title {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--rpm-text);
}

.rpm-order-trust-sub {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--rpm-text-secondary);
}

.rpm-order-trust-sub a {
    text-decoration: none;
}

.rpm-order-trust-sub a:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .rpm-order-trust-item {
        padding: 0.55rem 0.5rem;
        gap: 0.55rem;
    }

    .rpm-order-trust-icon {
        flex-basis: 2.15rem;
        width: 2.15rem;
        height: 2.15rem;
        font-size: 0.85rem;
    }

    .rpm-order-trust-title {
        font-size: 0.85rem;
    }
}

/* Order / checkout layout
   Mobile:  pricing → form → next/add-ons
   Desktop: pricing | form
            extra   | form (form spans both rows)
*/
.rpm-order-page .rpm-order-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    grid-template-areas:
        "pricing"
        "form"
        "extra";
}

.rpm-order-page .rpm-order-pricing {
    grid-area: pricing;
}

.rpm-order-page .rpm-order-form-col {
    grid-area: form;
}

.rpm-order-page .rpm-order-extra {
    grid-area: extra;
}

@media (min-width: 992px) {
    .rpm-order-page .rpm-order-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        grid-template-areas:
            "pricing form"
            "extra form";
        align-items: start;
        column-gap: 1.75rem;
        row-gap: 1.5rem;
    }
}

.rpm-order-page .rpm-order-box-art {
    max-height: 240px;
    width: auto;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.16));
    transition: opacity 0.2s ease;
}

.rpm-order-page .rpm-order-form .form-control-lg {
    border-radius: 0.5rem;
}

.rpm-order-page .rpm-order-form .form-control:focus {
    border-color: #7c4dff;
    box-shadow: 0 0 0 0.15rem rgba(124, 77, 255, 0.2);
}

/* Next-steps: number + title locked on one baseline row */
.rpm-order-page .rpm-order-steps {
    margin: 0;
    padding: 0;
}

.rpm-order-page .rpm-order-step {
    margin-bottom: 1.1rem;
}

.rpm-order-page .rpm-order-step:last-child {
    margin-bottom: 0;
}

.rpm-order-page .rpm-order-step-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.4rem 0;
    min-height: 1.75rem;
}

.rpm-order-page .rpm-order-step-num {
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    border-radius: 50%;
    background: var(--rpm-brand-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.rpm-order-page .rpm-order-step-title,
.rpm-order-page p.rpm-order-step-title {
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 0;
    line-height: 1.75rem; /* match circle height for optical vertical centering */
    font-size: 0.95rem;
    font-weight: 700;
}

.rpm-order-page .rpm-order-step-body,
.rpm-order-page p.rpm-order-step-body {
    margin: 0 !important;
    padding: 0 0 0 calc(1.75rem + 0.75rem);
    line-height: 1.45;
}

.rpm-order-page .rpm-order-next-steps {
    text-align: left;
}

/* Add-ons card */
.rpm-order-page .rpm-order-addon {
    cursor: pointer;
    margin-bottom: 0.75rem;
    padding: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.5rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.rpm-order-page .rpm-order-addon:hover {
    border-color: rgba(124, 77, 255, 0.35);
    background: rgba(124, 77, 255, 0.03);
}

.rpm-order-page .rpm-order-addon-included {
    cursor: default;
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.25);
}

.rpm-order-page .rpm-order-addon-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpm-order-page .rpm-order-addon-thumb img {
    max-height: 44px;
    max-width: 48px;
    object-fit: contain;
}

/* Keep filename visible inside Bootstrap custom-file (Browse button on the right) */
.rpm-order-page .custom-file-label,
.rpm-trial-page .custom-file-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 6.5rem;
}

.rpm-order-page .rpm-order-logo-preview-img,
.rpm-trial-page .rpm-order-logo-preview-img {
    max-height: 56px;
    max-width: 160px;
    object-fit: contain;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.35rem;
    padding: 0.35rem;
    background: #fff;
    vertical-align: middle;
}

.rpm-trial-page .rpm-trial-logo-block {
    background: rgba(124, 77, 255, 0.04);
    border-color: rgba(124, 77, 255, 0.2) !important;
}

.rpm-trial-page .form-control-lg {
    border-radius: 0.5rem;
}

.rpm-trial-page .form-control:focus {
    border-color: #7c4dff;
    box-shadow: 0 0 0 0.15rem rgba(124, 77, 255, 0.2);
}

/* "Not ready to order?" — full-width feature matrix gradient band */
.rpm-order-page .rpm-order-explore-band {
    border-radius: 0;
    width: 100%;
}

.rpm-order-page .rpm-order-explore-band .text-white-50 {
    color: rgba(255, 255, 255, 0.82) !important;
}

.rpm-order-page .rpm-order-explore-band .btn-outline-light:hover {
    color: var(--rpm-brand-mid);
}

.rpm-progress-bars .progress-animated {
    transition: width 1.2s ease;
}

.rpm-dashboard-lightbox a {
    cursor: zoom-in;
}

.testimonials-slider {
    position: relative;
    padding: 0 3rem;
}

/* =========================================================
   DASHWIND modernization — sections, glass cards, browser
   ========================================================= */

/* Calmer section rhythm */
@media (max-width: 767.98px) {
    section > [class^="container"],
    .section > [class^="container"] {
        padding-top: var(--rpm-spacing-section-sm);
        padding-bottom: var(--rpm-spacing-section-sm);
    }
}

@media (min-width: 768px) {
    section > [class^="container"],
    .section > [class^="container"] {
        padding-top: var(--rpm-spacing-section);
        padding-bottom: var(--rpm-spacing-section);
    }
}

/* Keep bring-to-front / hero-overlap strips tighter */
section > [class^="container"].bring-to-front,
.section > [class^="container"].bring-to-front,
.section.mt-n6 > [class^="container"],
section.pt-0 > [class^="container"] {
    padding-top: 0;
}

/* Cap stacking so page content never races the fixed mobile menu (theme uses z-index: 9) */
section [class^="container"].bring-to-front,
.section [class^="container"].bring-to-front {
    z-index: 2;
}

.section-heading {
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .section-heading {
        margin-bottom: 3.25rem;
    }

    .section-heading h2 {
        letter-spacing: -0.02em;
    }
}

.section-heading .lead {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--rpm-text-secondary);
}

/* Soft surface bands */
.section.bg-light,
section.bg-light {
    background-color: var(--rpm-surface) !important;
}

/*
 * DASHWIND about.html-style constant differentiation — site-wide on marketing mains.
 * Prefer <main class="rpm-banded-page">; also unlocks overflow-hidden mains.
 */
main.position-relative,
.rpm-banded-page {
    overflow-x: clip;
    overflow-y: visible;
}

main.position-relative.overflow-hidden {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* Don't restyle the hero header — it also uses .section */
main.position-relative > .section:not(.header):not(.rpm-home-hero):not(.rpm-page-hero),
main.position-relative > section:not(.header):not(.rpm-home-hero):not(.rpm-page-hero),
.rpm-banded-page > .section:not(.header):not(.rpm-home-hero):not(.rpm-page-hero),
.rpm-banded-page > section:not(.header):not(.rpm-home-hero):not(.rpm-page-hero) {
    position: relative;
}

main.position-relative > .section:not(.header):not(.rpm-home-hero):not(.rpm-page-hero) > [class^="container"],
main.position-relative > section:not(.header):not(.rpm-home-hero):not(.rpm-page-hero) > [class^="container"],
.rpm-banded-page > .section:not(.header):not(.rpm-home-hero):not(.rpm-page-hero) > [class^="container"],
.rpm-banded-page > section:not(.header):not(.rpm-home-hero):not(.rpm-page-hero) > [class^="container"] {
    position: relative;
    z-index: 2;
}

/* Soft bands (explicit class + legacy bg-light) */
.rpm-surface-band,
main .section.bg-light,
main section.bg-light {
    background-color: var(--rpm-surface) !important;
}

.rpm-surface-band.edge.top-left,
main .section.bg-light,
main section.bg-light {
    position: relative;
}

/* Diagonal edge into previous section (.b-t = footer blog strip — no edge) */
.rpm-surface-band.edge.top-left::before,
main > .section.bg-light:not(.b-t)::before,
main > section.bg-light:not(.b-t)::before {
    content: "";
    height: 120px;
    left: 0;
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 1;
    top: -120px;
    pointer-events: none;
    background: var(--rpm-surface);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    background-image: none !important;
}

@media (min-width: 768px) {
    .rpm-surface-band.edge.top-left::before,
    main > .section.bg-light:not(.b-t)::before,
    main > section.bg-light:not(.b-t)::before {
        height: 180px;
        top: -180px;
    }
}

/* Adjacent soft bands: no stacked diagonals */
main > .rpm-surface-band + .rpm-surface-band.edge.top-left::before,
main > .section.bg-light + .section.bg-light::before,
main > .rpm-surface-band + .section.bg-light::before,
main > .section.bg-light + .rpm-surface-band.edge.top-left::before {
    content: none;
}

/* Hero waves: match what sits under the curve */
.shape-fill.shape-fill-contrast,
.divider-shape .shape-fill-contrast {
    fill: var(--rpm-body-bg);
}

/* Home: first content block is a surface band — wave matches surface */
.rpm-home-hero .shape-fill.shape-fill-contrast,
.rpm-home-hero .divider-shape .shape-fill-contrast {
    fill: var(--rpm-surface);
}

/* Page hero → soft band: wave matches surface, skip edge */
.rpm-page-hero:has(+ .rpm-surface-band) .shape-fill.shape-fill-contrast,
.rpm-page-hero:has(+ .section.bg-light) .shape-fill.shape-fill-contrast,
.rpm-page-hero:has(+ section.bg-light) .shape-fill.shape-fill-contrast {
    fill: var(--rpm-surface);
}

.rpm-page-hero + .rpm-surface-band.edge.top-left::before,
.rpm-page-hero + .section.bg-light::before,
.rpm-page-hero + section.bg-light::before,
.rpm-home-hero + .rpm-surface-band.edge.top-left::before,
.rpm-home-hero + .rpm-surface-band::before,
.rpm-home-hero + .section.bg-light::before {
    content: none;
}

/* Keep heroes clipped / stacked */
main.position-relative > .rpm-home-hero,
main.position-relative > header.rpm-home-hero,
main.position-relative > .rpm-page-hero,
main.position-relative > header.rpm-page-hero,
.rpm-banded-page > .rpm-home-hero,
.rpm-banded-page > header.rpm-home-hero,
.rpm-banded-page > .rpm-page-hero,
.rpm-banded-page > header.rpm-page-hero {
    overflow: hidden;
    z-index: 1;
}

/* —— Light / dark page chrome —— */
html[data-rpm-color="dark"] .section.bg-light,
html[data-rpm-color="dark"] section.bg-light {
    background-color: var(--rpm-surface) !important;
    color: var(--rpm-text);
}

html[data-rpm-color="dark"] main .section:not(.rpm-sitewide-cta):not(.rpm-feature-mid-cta):not(.rpm-feature-matrix-header),
html[data-rpm-color="dark"] main section:not(.rpm-sitewide-cta):not(.rpm-feature-mid-cta):not(.rpm-feature-matrix-header) {
    color: var(--rpm-text);
}

html[data-rpm-color="dark"] main h1:not(.text-contrast):not(.text-white),
html[data-rpm-color="dark"] main h2:not(.text-contrast):not(.text-white),
html[data-rpm-color="dark"] main h3:not(.text-contrast):not(.text-white),
html[data-rpm-color="dark"] main h4:not(.text-contrast):not(.text-white),
html[data-rpm-color="dark"] main h5:not(.text-contrast):not(.text-white),
html[data-rpm-color="dark"] main .bold:not(.text-contrast):not(.text-white):not(.text-primary),
html[data-rpm-color="dark"] main .text-dark,
html[data-rpm-color="dark"] main .text-darker {
    color: var(--rpm-text) !important;
}

html[data-rpm-color="dark"] .text-secondary,
html[data-rpm-color="dark"] .lead.text-secondary,
html[data-rpm-color="dark"] .section-heading .lead,
html[data-rpm-color="dark"] .text-muted,
html[data-rpm-color="dark"] .small.text-secondary {
    color: var(--rpm-text-secondary) !important;
}

/* Keep hero / CTA contrast text white */
html[data-rpm-color="dark"] .header .text-contrast,
html[data-rpm-color="dark"] .rpm-page-hero .text-contrast,
html[data-rpm-color="dark"] .rpm-home-hero .text-contrast,
html[data-rpm-color="dark"] .rpm-sitewide-cta .text-white,
html[data-rpm-color="dark"] .rpm-feature-mid-cta .text-white,
html[data-rpm-color="dark"] .rpm-feature-matrix-header .text-white {
    color: #fff !important;
}

html[data-rpm-color="dark"] .progress {
    background-color: rgba(248, 250, 252, 0.1);
}

html[data-rpm-color="dark"] .accordion .card,
html[data-rpm-color="dark"] .accordion .card-header {
    background-color: var(--rpm-surface-elevated) !important;
    color: var(--rpm-text);
    border-color: var(--rpm-border) !important;
}

html[data-rpm-color="dark"] .accordion .card-title,
html[data-rpm-color="dark"] .accordion .btn.card-title {
    color: var(--rpm-text) !important;
}

html[data-rpm-color="dark"] .card:not(.rpm-feature-matrix-header):not(.text-bg-primary),
html[data-rpm-color="dark"] .rpm-glass-card,
html[data-rpm-color="dark"] .rpm-outcome-card,
html[data-rpm-color="dark"] .rpm-explore-type-card,
html[data-rpm-color="dark"] .rpm-plan-card,
html[data-rpm-color="dark"] .rpm-feature-highlights-card,
html[data-rpm-color="dark"] .rpm-order-trust-card {
    background: var(--rpm-glass-bg) !important;
    color: var(--rpm-text);
    border-color: var(--rpm-glass-border) !important;
}

html[data-rpm-color="dark"] .site-footer,
html[data-rpm-color="dark"] .site-footer.section {
    background-color: #070b14 !important;
    color: var(--rpm-text-secondary);
}

html[data-rpm-color="dark"] .site-footer a {
    color: var(--rpm-text-secondary);
}

html[data-rpm-color="dark"] .site-footer a:hover {
    color: #fff;
}

/* Boxed nav glass: light links/logo on dark glass */
html[data-rpm-color="dark"] .rpm-boxed-nav:hover .st-nav-primary .nav-link,
html[data-rpm-color="dark"] .rpm-boxed-nav.navbar-sticky .st-nav-primary .nav-link,
html[data-rpm-color="dark"] .rpm-boxed-nav.dropdown-active .st-nav-primary .nav-link,
html[data-rpm-color="dark"] .rpm-boxed-nav.overlay-active .st-nav-primary .nav-link {
    color: rgba(248, 250, 252, 0.88) !important;
}

html[data-rpm-color="dark"] .rpm-boxed-nav:hover .st-nav-primary .nav-link:hover,
html[data-rpm-color="dark"] .rpm-boxed-nav:hover .st-nav-primary .nav-link.active,
html[data-rpm-color="dark"] .rpm-boxed-nav.navbar-sticky .st-nav-primary .nav-link:hover,
html[data-rpm-color="dark"] .rpm-boxed-nav.navbar-sticky .st-nav-primary .nav-link.active,
html[data-rpm-color="dark"] .rpm-boxed-nav.dropdown-active .st-nav-primary .nav-link:hover,
html[data-rpm-color="dark"] .rpm-boxed-nav.dropdown-active .st-nav-primary .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

html[data-rpm-color="dark"] .rpm-boxed-nav:hover .rpm-nav-action,
html[data-rpm-color="dark"] .rpm-boxed-nav.navbar-sticky .rpm-nav-action,
html[data-rpm-color="dark"] .rpm-boxed-nav.dropdown-active .rpm-nav-action {
    color: rgba(248, 250, 252, 0.88);
}

/* Dark glass: only light wordmark — beat .logo.logo-sticky specificity */
html[data-rpm-color="dark"] .rpm-boxed-nav:hover .navbar-brand .rpm-logo-on-light,
html[data-rpm-color="dark"] .rpm-boxed-nav:hover .rpm-navbar-brand .rpm-logo-on-light,
html[data-rpm-color="dark"] .rpm-boxed-nav.navbar-sticky .navbar-brand .rpm-logo-on-light,
html[data-rpm-color="dark"] .rpm-boxed-nav.navbar-sticky .rpm-navbar-brand .rpm-logo-on-light,
html[data-rpm-color="dark"] .rpm-boxed-nav.dropdown-active .navbar-brand .rpm-logo-on-light,
html[data-rpm-color="dark"] .rpm-boxed-nav.dropdown-active .rpm-navbar-brand .rpm-logo-on-light,
html[data-rpm-color="dark"] .rpm-boxed-nav.overlay-active .navbar-brand .rpm-logo-on-light,
html[data-rpm-color="dark"] .rpm-boxed-nav.overlay-active .rpm-navbar-brand .rpm-logo-on-light,
html[data-rpm-color="dark"] .rpm-boxed-nav:hover .navbar-brand .logo.logo-sticky.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav:hover .rpm-navbar-brand .logo.logo-sticky.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav.navbar-sticky .navbar-brand .logo.logo-sticky.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav.navbar-sticky .rpm-navbar-brand .logo.logo-sticky.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav.dropdown-active .navbar-brand .logo.logo-sticky.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav.dropdown-active .rpm-navbar-brand .logo.logo-sticky.rpm-brand-logo {
    display: none !important;
    visibility: hidden !important;
}

html[data-rpm-color="dark"] .rpm-boxed-nav:hover .navbar-brand .rpm-logo-on-dark.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav:hover .rpm-navbar-brand .rpm-logo-on-dark.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav.navbar-sticky .navbar-brand .rpm-logo-on-dark.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav.navbar-sticky .rpm-navbar-brand .rpm-logo-on-dark.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav.dropdown-active .navbar-brand .rpm-logo-on-dark.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav.dropdown-active .rpm-navbar-brand .rpm-logo-on-dark.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav.overlay-active .navbar-brand .rpm-logo-on-dark.rpm-brand-logo,
html[data-rpm-color="dark"] .rpm-boxed-nav.overlay-active .rpm-navbar-brand .rpm-logo-on-dark.rpm-brand-logo {
    display: inline-flex !important;
    visibility: visible !important;
}

html[data-rpm-color="dark"] .rpm-boxed-nav .st-dropdown-bg,
html[data-rpm-color="dark"] .rpm-boxed-nav .st-dropdown-section,
html[data-rpm-color="dark"] .rpm-boxed-nav .st-dropdown-arrow {
    background: var(--rpm-surface-elevated) !important;
}

html[data-rpm-color="dark"] .rpm-boxed-nav .st-alt-bg {
    background: var(--rpm-surface) !important;
}

html[data-rpm-color="dark"] .rpm-boxed-nav .link-title,
html[data-rpm-color="dark"] .rpm-mega-panel-col .dropdown-item,
html[data-rpm-color="dark"] .st-nav .dropdown-item {
    color: var(--rpm-text) !important;
}

html[data-rpm-color="dark"] .rpm-mega-panel-col h4,
html[data-rpm-color="dark"] .st-nav .text-secondary {
    color: var(--rpm-text-secondary) !important;
}

/* Glass utility cards */
.rpm-glass-card,
.rpm-outcome-card,
.rpm-explore-type-card,
.rpm-plan-card,
.rpm-feature-highlights-card {
    background: var(--rpm-glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--rpm-glass-border) !important;
    border-radius: var(--rpm-radius-lg) !important;
    box-shadow: var(--rpm-shadow-md) !important;
    transition: transform var(--rpm-duration) var(--rpm-ease-out), box-shadow var(--rpm-duration) var(--rpm-ease-out);
}

.rpm-outcome-card:hover,
.rpm-explore-type-card:hover,
.rpm-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rpm-shadow-lg) !important;
}

.rpm-outcome-card {
    padding: var(--rpm-spacing-card) !important;
}

/* Browser showcase (SaaS BrowserShowcase inspired) */
.rpm-browser-showcase {
    position: relative;
}

.rpm-browser-showcase .browser,
.rpm-feature-split .browser,
.rpm-browser-frame {
    border-radius: var(--rpm-radius-lg);
    overflow: hidden;
    border: 1px solid var(--rpm-border-strong);
    box-shadow: var(--rpm-shadow-lg) !important;
    background: var(--rpm-surface-elevated);
}

.rpm-browser-showcase .browser:before,
.rpm-feature-split .browser:before,
.rpm-browser-frame:before {
    border-radius: var(--rpm-radius-lg) var(--rpm-radius-lg) 0 0;
}

.rpm-browser-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1.5rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rpm-border);
}

.rpm-browser-meta span {
    font-size: 0.9rem;
    color: var(--rpm-text-secondary);
}

.rpm-browser-meta-label {
    grid-column: 1 / -1;
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rpm-text-secondary) !important;
    opacity: 0.85;
    margin-bottom: 0.15rem;
}

.rpm-showcase-index {
    position: absolute;
    left: -0.25rem;
    top: -1.5rem;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 600;
    line-height: 1;
    color: var(--rpm-brand);
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.rpm-browser-showcase-copy {
    position: relative;
    z-index: 1;
}

/* Quieter final CTA */
.rpm-sitewide-cta {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

.rpm-sitewide-cta .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.rpm-sitewide-cta h2 {
    letter-spacing: -0.02em;
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
}

/* Pricing glass cards */
.rpm-plan-card .card-header,
.rpm-plan-card .list-group-item {
    background: transparent;
}

.rpm-plan-card.border-primary,
.rpm-plan-card.is-featured {
    border-color: rgba(var(--rpm-hero-from-rgb), 0.35) !important;
    box-shadow: var(--rpm-shadow-lg), 0 0 0 1px rgba(var(--rpm-hero-from-rgb), 0.12) !important;
}

.rpm-plan-card .pricing-value .price {
    letter-spacing: -0.03em;
}

/* Home pricing teaser glass */
.rpm-home-pricing-card {
    background: var(--rpm-glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--rpm-hero-from-rgb), 0.28) !important;
    border-radius: var(--rpm-radius-lg) !important;
    box-shadow: var(--rpm-shadow-lg) !important;
}

/* Feature highlight strip under heroes */
.rpm-feature-highlights-card {
    overflow: hidden;
}

/* Footer cleanup — denser, quieter link row */
.site-footer.section > .container {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
}

.site-footer .rpm-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.site-footer .rpm-footer-nav a {
    color: var(--rpm-text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
}

.site-footer .rpm-footer-nav a:hover {
    color: var(--rpm-brand);
}

.site-footer .rpm-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rpm-border);
}

.site-footer .rpm-footer-legal a {
    font-size: 0.8rem;
    color: var(--rpm-text-secondary);
}

.site-footer hr {
    display: none;
}

/* AOS: slightly longer, softer motion */
[data-aos] {
    transition-timing-function: var(--rpm-ease-out) !important;
}

/* Reduce mid-CTA visual noise on feature pages */
.rpm-feature-mid-cta {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
}

.rpm-feature-mid-cta .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* =========================================================
   Pricing page — purple wave hero + duo cards (blocks/pricing #2)
   ========================================================= */

.rpm-pricing-page .rpm-pricing-duo-section > .container.bring-to-front {
    padding-top: 1.5rem !important;
    padding-bottom: var(--rpm-spacing-section-sm) !important;
}

@media (min-width: 768px) {
    .rpm-pricing-page .rpm-pricing-duo-section > .container.bring-to-front {
        padding-top: 2rem !important;
        padding-bottom: var(--rpm-spacing-section) !important;
    }
}

.rpm-pricing-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rpm-brand);
    margin: 0;
}

/* Overlapping Standard + Custom duo */
.rpm-pricing-duo {
    position: relative;
}

.rpm-pricing-duo-primary {
    z-index: 2;
}

.rpm-pricing-duo-secondary {
    z-index: 1;
}

@media (min-width: 768px) {
    .rpm-pricing-duo-secondary {
        margin-left: -1.75rem;
        padding-left: 0;
    }

    .rpm-pricing-duo-card--secondary {
        margin-top: 1.5rem;
    }
}

.rpm-pricing-duo-card {
    border-radius: 1.15rem !important;
    overflow: hidden;
    background: var(--rpm-surface-elevated);
    color: var(--rpm-text);
    transition: transform 0.3s var(--rpm-ease-out), box-shadow 0.3s ease;
}

.rpm-pricing-duo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rpm-shadow-lg) !important;
}

.rpm-pricing-duo-card--primary {
    box-shadow: var(--rpm-shadow-lg) !important;
}

.rpm-pricing-duo-title {
    background: var(--rpm-brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.04em;
}

.rpm-pricing-duo-card .pricing-value .price {
    letter-spacing: -0.03em;
    color: var(--rpm-text);
}

.rpm-pricing-duo-icon {
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.rpm-pricing-duo-features .flex-grow-1 {
    font-size: 0.95rem;
    color: var(--rpm-text-secondary);
    text-align: left;
}

.rpm-pricing-duo-cta {
    border: 0 !important;
    border-radius: 0 0 1.15rem 1.15rem !important;
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
    font-weight: 600;
    margin: 0 !important;
}

.rpm-pricing-duo-grid .border-right {
    border-right: 1px solid var(--rpm-border) !important;
}

.rpm-pricing-duo-grid .border-top {
    border-top: 1px solid var(--rpm-border) !important;
}

.rpm-pricing-duo-grid .stroke-primary {
    stroke: var(--rpm-brand);
    color: var(--rpm-brand);
}

/* Pill toggle */
.rpm-pricing-pill {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0.25rem;
    border-radius: 999px;
    border: 1px solid var(--rpm-border-strong);
    background: var(--rpm-glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--rpm-shadow-sm);
}

.rpm-pricing-pill-thumb {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.25rem;
    width: calc(50% - 0.25rem);
    border-radius: 999px;
    background: var(--rpm-brand);
    box-shadow: 0 6px 16px -8px rgba(var(--rpm-hero-from-rgb), 0.55);
    transition: transform 0.35s var(--rpm-ease-out);
    z-index: 0;
}

.rpm-pricing-pill.is-yearly .rpm-pricing-pill-thumb {
    transform: translateX(100%);
}

.rpm-pricing-pill-btn {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rpm-text);
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.rpm-pricing-pill-btn:not(.is-active) {
    color: var(--rpm-text-secondary);
}

.rpm-pricing-pill-btn.is-active {
    color: #fff;
}

.rpm-pricing-pill-save {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(var(--rpm-hero-from-rgb), 0.16);
    color: var(--rpm-brand);
}

.rpm-pricing-pill-btn.is-active .rpm-pricing-pill-save {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* Glass plan cards */
.rpm-dash-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1.35rem;
    border: 1px solid var(--rpm-border-strong);
    background: var(--rpm-glass-bg);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: var(--rpm-shadow-md);
    transition: transform 0.3s var(--rpm-ease-out), box-shadow 0.3s var(--rpm-ease-out), border-color 0.3s ease;
}

.rpm-dash-plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--rpm-shadow-lg);
}

.rpm-dash-plan--featured {
    border-color: rgba(var(--rpm-hero-from-rgb), 0.4);
    box-shadow: var(--rpm-shadow-lg), 0 0 0 1px rgba(var(--rpm-hero-from-rgb), 0.08);
    background: linear-gradient(165deg, rgba(var(--rpm-hero-from-rgb), 0.08) 0%, rgba(255, 255, 255, 0.85) 42%, rgba(255, 255, 255, 0.92) 100%);
}

.rpm-dash-plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--rpm-brand);
    color: #fff;
}

.rpm-dash-plan-audience {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--rpm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rpm-dash-plan--featured .rpm-dash-plan-name {
    color: var(--rpm-brand);
}

.rpm-dash-plan-desc {
    min-height: 3rem;
    font-size: 0.95rem;
}

.rpm-dash-plan-price {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    margin: 1.5rem 0 1.25rem;
}

.rpm-dash-plan-amount {
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--rpm-text);
}

.rpm-dash-plan-period {
    padding-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--rpm-text-secondary);
}

.rpm-dash-plan-cta {
    border-radius: 0.65rem !important;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.rpm-dash-plan-features {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rpm-border);
}

.rpm-dash-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--rpm-text-secondary);
    margin-bottom: 0.7rem;
}

.rpm-dash-plan-features li:last-child {
    margin-bottom: 0;
}

.rpm-dash-plan-features .fa-check {
    margin-top: 0.2rem;
    color: var(--rpm-brand);
    font-size: 0.8rem;
}

/* Trust strip — glass panel, readable in light + dark */
.rpm-pricing-trust {
    border-radius: 1.35rem;
    border: 1px solid var(--rpm-glass-border);
    background: var(--rpm-glass-bg);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    backdrop-filter: blur(16px) saturate(1.15);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--rpm-shadow-md);
    color: var(--rpm-text);
}

.rpm-pricing-trust .rpm-pricing-eyebrow {
    color: var(--rpm-brand);
}

.rpm-pricing-trust-value {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rpm-text);
}

.rpm-pricing-trust-label {
    font-size: 0.9rem;
    color: var(--rpm-text-secondary);
}

.rpm-pricing-trust .text-muted,
.rpm-pricing-trust .small.text-muted {
    color: var(--rpm-text-secondary) !important;
}

/* Add-ons */
.rpm-dash-addon {
    border-radius: 1.15rem;
    border: 1px solid var(--rpm-border-strong);
    background: var(--rpm-glass-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 1.5rem;
    box-shadow: var(--rpm-shadow-sm);
    transition: transform 0.25s var(--rpm-ease-out), box-shadow 0.25s ease;
}

.rpm-dash-addon:hover {
    transform: translateY(-3px);
    box-shadow: var(--rpm-shadow-md);
}

.rpm-dash-addon-price {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

/* FAQ + support */
.rpm-pricing-faq-item {
    border: 1px solid var(--rpm-border) !important;
    border-radius: 0.85rem !important;
    overflow: hidden;
    background: var(--rpm-glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: none !important;
    color: var(--rpm-text);
}

.rpm-pricing-faq-item .card-header {
    background: transparent;
    border: 0;
}

.rpm-pricing-faq-item .card-title,
.rpm-pricing-faq-item .card-body {
    color: var(--rpm-text);
}

.rpm-pricing-support-card {
    border-radius: 1.35rem;
    border: 1px solid rgba(var(--rpm-hero-from-rgb), 0.28);
    background: var(--rpm-glass-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 1.75rem 1.5rem;
    height: 100%;
    color: var(--rpm-text);
    box-shadow: var(--rpm-shadow-sm);
}

.rpm-pricing-final-cta {
    border-radius: 1.5rem;
    border: 1px solid var(--rpm-border-strong);
    background: var(--rpm-glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 3rem 1.75rem;
    box-shadow: var(--rpm-shadow-md);
}

/* Dark pricing — no washed white panels, strong toggle contrast */
html[data-rpm-color="dark"] .rpm-pricing-pill {
    background: var(--rpm-surface-elevated);
    border-color: var(--rpm-border-strong);
}

html[data-rpm-color="dark"] .rpm-pricing-pill-btn:not(.is-active) {
    color: rgba(248, 250, 252, 0.78);
}

html[data-rpm-color="dark"] .rpm-pricing-pill-btn.is-active {
    color: #fff;
}

html[data-rpm-color="dark"] .rpm-pricing-pill-save {
    background: rgba(248, 250, 252, 0.1);
    color: #fff;
}

html[data-rpm-color="dark"] .rpm-pricing-pill-btn:not(.is-active) .rpm-pricing-pill-save {
    background: rgba(var(--rpm-hero-from-rgb), 0.28);
    color: #f8fafc;
}

html[data-rpm-color="dark"] .rpm-pricing-trust {
    background: var(--rpm-glass-bg-strong);
    border-color: var(--rpm-glass-border);
}

html[data-rpm-color="dark"] .rpm-pricing-duo-card {
    background: var(--rpm-surface-elevated) !important;
    color: var(--rpm-text);
}

html[data-rpm-color="dark"] .rpm-pricing-duo-card .text-secondary,
html[data-rpm-color="dark"] .rpm-pricing-duo-features .flex-grow-1 {
    color: var(--rpm-text-secondary) !important;
}

html[data-rpm-color="dark"] .rpm-pricing-duo-card hr {
    border-color: var(--rpm-border);
}

html[data-rpm-color="dark"] .rpm-dash-addon,
html[data-rpm-color="dark"] .rpm-pricing-faq-item,
html[data-rpm-color="dark"] .rpm-pricing-support-card {
    background: var(--rpm-glass-bg-strong) !important;
    border-color: var(--rpm-glass-border) !important;
    color: var(--rpm-text);
}

html[data-rpm-color="dark"] .rpm-pricing-page .btn-dark {
    background: rgba(248, 250, 252, 0.1);
    border-color: transparent;
    color: #fff;
}

html[data-rpm-color="dark"] .rpm-pricing-page .btn-dark:hover {
    background: rgba(248, 250, 252, 0.18);
    color: #fff;
}

@media (max-width: 575.98px) {
    .rpm-pricing-pill-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.82rem;
    }

    .rpm-dash-plan {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}
