/* DESIGN VARIABLE DICTIONARY MAP */
:root {
    --primary: #002244;       /* Deep Mindbody Corporate Business Blue */
    --accent: #FF3B30;        /* Bold Action Signal Red/Orange */
    --neutral-dark: #1A1A1A;  /* High Contrast Typography Dark Tone */
    --neutral-light: #F8F9FA; /* Muted Background Container Tone */
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-stack);
    color: var(--neutral-dark);
    background-color: var(--white);
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Prevent any horizontal-overflow gutter (fixes right-shifted hero + blank
   space after footer on mobile browsers). */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.badge {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* INTERACTIVE BUTTON STRUCTS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #E03026;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    font-weight: 600;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

/* TOP STICKY BAR HEADER NAVIGATION */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
}

.logo { flex-shrink: 0; }

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--neutral-dark);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links .btn { flex-shrink: 0; }
.nav-links .lang-switch { flex-shrink: 0; }

.nav-links a:hover {
    color: var(--accent);
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO MARKETING ENTRY FRAME */
.hero {
    background-color: var(--neutral-light);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 100px 24px;
}

.hero-text h1 {
    font-size: 3.25rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 1.15rem;
    color: #4A5568;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    letter-spacing: -0.01em;
    margin: 0 0 30px;
    padding-left: 16px;
    border-left: 4px solid var(--accent);
}

.hero-cta {
    display: flex;
    gap: 15px;
}

.hero-video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background-color: #000;
    aspect-ratio: 16 / 9;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HELCIM LAYOUT INSPIRED DESIGN CORES */
.helcim-savings {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

/* ===== SAVINGS HIGHLIGHT ===== */
.savings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.savings-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.lead {
    font-size: 1.1rem;
    color: #4A5568;
    margin-bottom: 30px;
}

.stack-intro-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -18px rgba(0,34,68,0.28);
}

.stack-intro-media video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.stack-stat {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 16px 22px;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0,34,68,0.35);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stack-stat-num {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.stack-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

/* ===== STACKING SCROLL DECK (cards pile on top of each other) ===== */
.stack-section {
    background: var(--neutral-light);
    border-bottom: 1px solid var(--border-color);
}

.stack-deck {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding-bottom: 30px;
}

/* Same-ish sticky top for every card + a small per-card offset creates the
   "deck" edge; because each card is opaque and later in the DOM, scrolling a
   new card up covers the previous one. Scrolling back up peels them off in
   reverse (sticky is inherently reversible). */
.deck-card {
    position: sticky;
    top: calc(96px + var(--n, 0) * 18px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 34px 70px -26px rgba(0,34,68,0.34);
    min-height: 360px;
}

.deck-card:nth-child(even) .deck-card-media { order: 2; }

.deck-card-media {
    background: var(--neutral-light);
    overflow: hidden;
}

.deck-card-media video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.deck-card-body {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.deck-card-body h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.deck-card-body p {
    color: #4A5568;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* MINDBODY LAYOUT INSPIRED CONFIDENCE TABS */
.mindbody-confidence {
    background-color: var(--neutral-light);
    border-bottom: 1px solid var(--border-color);
}

.tab-system {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    overflow: hidden;
}

.tab-headers {
    display: flex;
    background-color: #EDF2F7;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 20px 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #4A5568;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.tab-btn:hover {
    background-color: rgba(255,255,255,0.5);
    color: var(--primary);
}

.tab-btn.active {
    background-color: var(--white);
    color: var(--accent);
    border-top: 3px solid var(--accent);
}

.tab-content-wrapper {
    padding: 40px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.tab-text h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-checklist {
    list-style: none;
    margin-top: 20px;
}

.feature-checklist li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.feature-checklist li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.tab-media {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.tab-video {
    width: 100%;
    display: block;
}

/* MASTER REVENUIVAAI LEDGER DECK CONFIG */
.feature-matrix {
    background-color: var(--white);
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.matrix-card {
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    background-color: var(--neutral-light);
    transition: transform 0.2s, border-color 0.2s;
}

.matrix-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.matrix-card h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    font-weight: 700;
}

.matrix-card ul {
    list-style: none;
}

.matrix-card ul li {
    font-size: 0.95rem;
    padding: 8px 0;
    color: #4A5568;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

/* FOOTER CALL-TO-ACTION SPACE */
.footer-cta {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 40px 24px 24px;
}
.footer-cta .section-container { padding: 0; }

.footer-cta h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.footer-cta p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-subtext {
    margin-top: 20px;
    font-size: 0.82rem !important;
    opacity: 0.5 !important;
}

/* Header: below this width the full nav no longer fits, so it collapses into a
   hamburger. The whole nav (section links + language + both CTAs) slides down
   as a full-width panel toggled by the button. */
@media (max-width: 1150px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 24px 34px rgba(0,34,68,0.10);
        padding: 10px 22px 22px;
    }
    .nav-links.open { display: flex; }
    .nav-links > a:not(.btn) {
        padding: 14px 4px;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }
    .nav-links .lang-switch { padding: 12px 0 6px; }
    .nav-links .lang-menu { position: static; box-shadow: none; border: none; padding: 4px 0 0; min-width: 0; }
    .nav-links .btn { width: 100%; margin-top: 10px; padding: 13px 20px; }
}
@media (max-width: 600px) {
    .nav-container { padding: 14px 18px; }
    .logo { font-size: 1.35rem; }
}

/* HIGH PERFORMANCE RESPONSIVE BREAKPOINTS */
@media (max-width: 968px) {
    .hero-container, .savings-grid, .tab-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* Let the single-column grid tracks shrink to the viewport instead of
       flooring at their children's min-content width (which pushed the hero
       off to the right on phones). */
    .hero-container { padding: 60px 20px; }
    .hero-text, .hero-video-wrapper { min-width: 0; }
    .hero-text {
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.15rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .hero-text p { font-size: 1.05rem; }
    /* Center the sub-headline cleanly (drop the left accent bar on mobile). */
    .hero-sub {
        font-size: 1.15rem;
        text-align: center;
        border-left: none;
        padding-left: 0;
    }
    [dir="rtl"] .hero-sub { border-right: none; padding-right: 0; }
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-cta .btn { flex: 1 1 200px; justify-content: center; }
    /* Small phones: stop the feature cards from forcing a 320px min column
       (source of the horizontal overflow / blank space). */
    .matrix-grid { grid-template-columns: 1fr; }
    /* On mobile, drop the sticky stacking — plain vertical cards, video on top. */
    .deck-card {
        grid-template-columns: 1fr;
        position: static;
        top: auto;
        min-height: 0;
    }
    .deck-card:nth-child(even) .deck-card-media { order: 0; }
    .deck-card-media video {
        min-height: 0;
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .deck-card-body {
        padding: 26px 24px 30px;
    }
    .stack-deck {
        gap: 22px;
    }
    .savings-content h2 {
        font-size: 2rem;
    }
    .tab-headers {
        flex-direction: column;
    }
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switch { position: relative; }
.lang-toggle { background: none; border: 1px solid var(--accent); color: var(--accent); padding: 6px 10px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; font-family: inherit; font-weight: 500; }
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-menu { position: absolute; top: 130%; right: 0; background: var(--white); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 6px; display: none; min-width: 160px; z-index: 1100; }
.lang-menu.open { display: block; }
.lang-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 8px 12px; font-size: 0.9rem; color: var(--neutral-dark); cursor: pointer; border-radius: 6px; font-family: inherit; }
.lang-menu button:hover { background: var(--neutral-light); color: var(--accent); }

/* ============ CONTACT / DEMO MODAL ============ */
.contact-overlay { position: fixed; inset: 0; background: rgba(0,34,68,0.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.contact-overlay.open { display: flex; }
.contact-modal { background: var(--white); border-radius: 16px; padding: 36px; max-width: 460px; width: 100%; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.25); animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.contact-close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 28px; line-height: 1; color: #94a3b8; cursor: pointer; }
.contact-close:hover { color: var(--accent); }
.contact-modal h3 { font-size: 1.6rem; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.contact-sub { color: #718096; font-size: 0.95rem; margin-bottom: 20px; }
.contact-modal form { display: flex; flex-direction: column; gap: 12px; }
.contact-modal input, .contact-modal textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.95rem; font-family: inherit; color: var(--neutral-dark); background: var(--neutral-light); }
.contact-modal input:focus, .contact-modal textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.contact-submit { width: 100%; justify-content: center; margin-top: 4px; }
.contact-result { font-size: 0.9rem; text-align: center; min-height: 18px; }
.contact-result.ok { color: #059669; }
.contact-result.err { color: var(--accent); }

/* ============ FOOTER LEGAL LINKS ============ */
.footer-legal { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.footer-legal a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; }
.footer-legal a:hover { color: var(--white); text-decoration: underline; }

/* ============ RTL (Arabic) ============ */
[dir="rtl"] .feature-checklist li { padding-left: 0; padding-right: 25px; }
[dir="rtl"] .feature-checklist li::before { left: auto; right: 0; content: "←"; }
[dir="rtl"] .stack-stat { left: auto; right: 20px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; text-align: right; }
[dir="rtl"] .hero-sub { border-left: none; border-right: 4px solid var(--accent); padding-left: 0; padding-right: 16px; }

/* ============ LEGAL PAGES ============ */
.legal-wrap { background: var(--neutral-light); min-height: 60vh; }
.legal-wrap .section-container { max-width: 860px; }
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 18px;
}
.legal-back:hover { color: var(--accent); }
[dir="rtl"] .legal-back { flex-direction: row-reverse; }
.legal-title { font-size: 2.4rem; font-weight: 800; color: var(--primary); margin-bottom: 24px; letter-spacing: -0.02em; }
.legal-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 16px; padding: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.legal-card .intro { font-size: 1.05rem; color: #4A5568; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.legal-section { margin-bottom: 26px; }
.legal-section h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.legal-section h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin: 14px 0 6px; }
.legal-section p { color: #4A5568; margin-bottom: 12px; font-size: 0.98rem; }
.legal-section ul, .legal-section ol { margin: 8px 0 12px 22px; color: #4A5568; }
.legal-section li { margin-bottom: 6px; }
.legal-card a { color: var(--accent); }
.legal-foot { padding: 44px 24px; }
.legal-foot h2 { display: none; }

/* REVENUIVAAI FAQ INTERFACE SYSTEM */
.faq-section {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}
.faq-accordion-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--neutral-light);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: rgba(0, 34, 68, 0.3); }
.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: var(--font-stack);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    outline: none;
}
.faq-trigger .arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
    color: var(--accent);
    flex-shrink: 0;
}
.faq-panel {
    display: none;
    padding: 0 24px 20px 24px;
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.6;
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
    background-color: var(--white);
}
.faq-panel p { margin-top: 16px; }
.faq-panel p strong { color: var(--primary); }
[dir="rtl"] .faq-trigger { text-align: right; }

/* ---- PRICING (single Enterprise plan) ---- */
.pricing-section { background-color: var(--neutral-light); }
.pricing-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 34, 68, 0.12);
}
.pricing-head {
    background: linear-gradient(135deg, #002244 0%, #013a6b 100%);
    color: var(--white);
    text-align: center;
    padding: 46px 48px 40px;
}
.pricing-tier {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 7px 16px;
    border-radius: 20px;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 14px;
}
.pricing-amount {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}
.pricing-period { font-size: 1.1rem; font-weight: 500; color: rgba(255, 255, 255, 0.65); }
.pricing-extra {
    display: inline-block;
    margin: 0 auto 16px;
    padding: 8px 18px;
    background: rgba(255, 59, 48, 0.16);
    border: 1px solid rgba(255, 59, 48, 0.35);
    border-radius: 20px;
    color: #FFD9D6;
    font-size: 0.92rem;
    font-weight: 600;
}
.pricing-desc {
    max-width: 520px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.6;
}
.pricing-body { padding: 40px 48px 8px; }
.pricing-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
}
.pricing-features li {
    position: relative;
    padding-left: 30px;
    font-size: 0.98rem;
    color: var(--neutral-dark);
    line-height: 1.4;
}
.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 48, 0.12);
    color: var(--accent);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
}
.pricing-foot { padding: 32px 48px 48px; text-align: center; }
.pricing-cta { display: inline-block; min-width: 260px; }
.pricing-fine {
    margin-top: 18px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94A3B8;
}
[dir="rtl"] .pricing-features li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .pricing-features li::before { left: auto; right: 0; }
@media (max-width: 640px) {
    .pricing-head { padding: 38px 26px 32px; }
    .pricing-body { padding: 30px 26px 4px; }
    .pricing-foot { padding: 26px 26px 38px; }
    .pricing-features { grid-template-columns: 1fr; }
    .pricing-amount { font-size: 3.4rem; }
    .pricing-cta { min-width: 100%; }
}

/* ============ BUSINESS ECOSYSTEMS SECTION ============ */
.ecosystems-section {
    background-color: var(--neutral-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.typology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 10px;
}
.typology-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.typology-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 34, 68, 0.08);
}
.card-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}
.fitness-color { background-color: var(--accent); }
.wellness-color { background-color: #10B981; }
.beauty-color { background-color: #EC4899; }
.typology-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.view-all-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #A0AEC0;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 25px;
}
.type-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}
.type-links li {
    font-size: 1.05rem;
    color: #4A5568;
    position: relative;
    padding-left: 20px;
    font-weight: 500;
}
.type-links li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #CBD5E0;
    font-size: 1.2rem;
    line-height: 1;
}
.enterprise-footer-box {
    margin-top: 40px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.enterprise-box-content h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 700;
}
.enterprise-box-content p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}
.enterprise-footer-box .btn { flex-shrink: 0; }
@media (max-width: 968px) {
    .typology-grid { grid-template-columns: 1fr; gap: 25px; }
    .enterprise-footer-box { flex-direction: column; text-align: center; padding: 30px 20px; }
    .enterprise-footer-box .btn { width: 100%; }
}
/* RTL support for accent bars */
[dir="rtl"] .card-accent-bar { left: 0; right: 0; }
[dir="rtl"] .type-links li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .type-links li::before { left: auto; right: 0; }
[dir="rtl"] .enterprise-footer-box { border-left: 1px solid var(--border-color); border-right: 4px solid var(--primary); }

/* ============ AI ASSISTANT CHATBOT (2026-07-20) ============ */
#revvy-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; font-family: var(--font-stack); }
#revvy-bubble {
    width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(150deg, #002244 0%, #013a73 100%);
    box-shadow: 0 8px 26px rgba(0, 34, 68, 0.38);
    display: flex; align-items: center; justify-content: center;
    position: relative; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#revvy-bubble::after {
    content: ""; position: absolute; top: 6px; right: 6px; width: 12px; height: 12px;
    background: var(--accent); border: 2px solid #fff; border-radius: 50%;
}
#revvy-bubble:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 32px rgba(0, 34, 68, 0.46); }
#revvy-bubble .revvy-ico-close { display: none; }
#revvy-widget.revvy-open #revvy-bubble .revvy-ico-chat { display: none; }
#revvy-widget.revvy-open #revvy-bubble .revvy-ico-close { display: block; }
#revvy-widget.revvy-open #revvy-bubble::after { display: none; }

#revvy-panel {
    position: absolute; bottom: 76px; right: 0; width: 370px; max-width: calc(100vw - 32px);
    height: 540px; max-height: calc(100vh - 120px);
    background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 34, 68, 0.28); border: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(14px) scale(0.97); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#revvy-widget.revvy-open #revvy-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.revvy-head { background: linear-gradient(150deg, #002244 0%, #013a73 100%); color: #fff; padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; }
.revvy-head-l { display: flex; align-items: center; gap: 11px; }
.revvy-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.revvy-title { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.revvy-status { font-size: 0.76rem; opacity: 0.85; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.revvy-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; box-shadow: 0 0 0 rgba(34,197,94,0.5); animation: revvyPulse 2s infinite; }
@keyframes revvyPulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.5);} 70%{box-shadow:0 0 0 6px rgba(34,197,94,0);} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0);} }
.revvy-x { background: none; border: none; color: #fff; cursor: pointer; opacity: 0.85; padding: 4px; display: flex; }
.revvy-x:hover { opacity: 1; }

#revvy-msgs { flex: 1; overflow-y: auto; padding: 16px; background: var(--neutral-light); display: flex; flex-direction: column; gap: 10px; }
.revvy-msg { display: flex; }
.revvy-msg.revvy-user { justify-content: flex-end; }
.revvy-b { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; white-space: normal; word-wrap: break-word; }
.revvy-bot .revvy-b { background: #fff; color: #1e293b; border: 1px solid var(--border-color); border-bottom-left-radius: 4px; }
.revvy-user .revvy-b { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.revvy-typing { display: flex; gap: 4px; align-items: center; }
.revvy-typing span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; display: inline-block; animation: revvyBlink 1.2s infinite; }
.revvy-typing span:nth-child(2){ animation-delay: 0.2s; } .revvy-typing span:nth-child(3){ animation-delay: 0.4s; }
@keyframes revvyBlink { 0%,60%,100%{opacity:0.3;} 30%{opacity:1;} }

.revvy-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border-color); background: #fff; }
#revvy-text { flex: 1; resize: none; border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 0.9rem; line-height: 1.4; max-height: 110px; outline: none; color: #1e293b; }
#revvy-text:focus { border-color: var(--accent); }
#revvy-send { width: 40px; height: 40px; flex: none; border: none; border-radius: 10px; background: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: filter 0.15s ease; }
#revvy-send:hover { filter: brightness(1.08); }
#revvy-send:disabled { opacity: 0.5; cursor: default; }
.revvy-foot { text-align: center; font-size: 0.68rem; color: #94a3b8; padding: 6px 0 9px; background: #fff; }

/* RTL */
[dir="rtl"] #revvy-widget { right: auto; left: 24px; }
[dir="rtl"] #revvy-panel { right: auto; left: 0; }
[dir="rtl"] #revvy-bubble::after { right: auto; left: 6px; }
[dir="rtl"] .revvy-msg.revvy-user { justify-content: flex-start; }
[dir="rtl"] .revvy-bot .revvy-b { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
[dir="rtl"] .revvy-user .revvy-b { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }

@media (max-width: 480px) {
    #revvy-widget { bottom: 16px; right: 16px; }
    [dir="rtl"] #revvy-widget { left: 16px; right: auto; }
    #revvy-panel { width: calc(100vw - 24px); height: calc(100vh - 110px); bottom: 72px; }
}

/* ---- pricing disclaimer (2026-07-20) ---- */
.pricing-disclaimer {
    max-width: 640px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #94a3b8;
}

/* ============ PREMIUM COMPARISON MATRIX (redesign 2026-07-20) ============ */
.fancy-matrix-section {
    --fancy-bg: #070D19;
    --fancy-panel: rgba(13, 22, 41, 0.7);
    --fancy-border: rgba(255, 255, 255, 0.06);
    --neon-blue: #00F0FF;
    --neon-emerald: #10B981;
    --neon-amber: #F59E0B;
    background-color: var(--fancy-bg);
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    color: #F8FAFC;
}
.glow-ambient-orb-1 {
    position: absolute; top: -10%; left: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.10) 0%, transparent 70%);
    pointer-events: none;
}
.glow-ambient-orb-2 {
    position: absolute; bottom: -10%; right: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, transparent 70%);
    pointer-events: none;
}
.matrix-title-block { text-align: center; margin-bottom: 50px; position: relative; z-index: 1; }
.matrix-title-block h2 { color: #F8FAFC; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.matrix-title-block .fcmp-lead {
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px;
    background: linear-gradient(90deg, #00F0FF 0%, #10B981 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
@media (max-width: 940px){ .matrix-title-block .fcmp-lead { font-size: 1.25rem; } }
.matrix-title-block p { color: #94A3B8; max-width: 640px; margin: 0 auto; line-height: 1.6; }
.fancy-tag-pill {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.10) 0%, rgba(16, 185, 129, 0.10) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--neon-blue);
    display: inline-block; margin-bottom: 18px;
}
.fancy-table-scroll-shield {
    position: relative; z-index: 1; width: 100%; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--fancy-border); border-radius: 16px;
    background: var(--fancy-panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.fancy-architect-matrix { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1120px; }
.fancy-architect-matrix th, .fancy-architect-matrix td { padding: 22px 24px; border-bottom: 1px solid var(--fancy-border); vertical-align: middle; }
.fancy-architect-matrix thead th { background-color: rgba(9, 15, 29, 0.75); font-weight: 600; color: #94A3B8; font-size: 0.95rem; border-bottom: 2px solid var(--fancy-border); text-align: center; }
.corner-axis-title { text-align: left !important; font-weight: 500 !important; }
.revenuiva-pinnacle-header {
    background: linear-gradient(180deg, #0C1A30 0%, #081222 100%) !important;
    color: #FFFFFF !important; font-size: 1.2rem !important; font-weight: 700 !important;
    position: relative; border-top: 2px solid var(--neon-blue) !important; text-align: center;
    padding-top: 40px !important;
}
.premium-badge-spark {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, #00F0FF 0%, #10B981 100%); color: #070D19;
    font-size: 0.62rem; font-weight: 800; text-transform: uppercase; padding: 3px 11px;
    border-radius: 5px; letter-spacing: 0.05em; box-shadow: 0 4px 14px rgba(0, 240, 255, 0.35); white-space: nowrap;
}
.feature-descriptor-cell { text-align: left; }
.feature-descriptor-cell strong { display: block; font-size: 1.02rem; color: #FFFFFF; margin-bottom: 4px; }
.feature-descriptor-cell span { display: block; font-size: 0.8rem; color: #64748B; line-height: 1.4; }
.revenuiva-pinnacle-cell {
    font-weight: 700; text-align: center; color: #FFFFFF;
    border-left: 1px solid rgba(0, 240, 255, 0.14); border-right: 1px solid rgba(0, 240, 255, 0.14);
}
.status-active { color: #FFFFFF; }
.glow-dot {
    display: inline-block; width: 7px; height: 7px; background-color: var(--neon-emerald);
    border-radius: 50%; margin-right: 8px; vertical-align: middle;
    box-shadow: 0 0 10px var(--neon-emerald), 0 0 4px var(--neon-emerald);
    animation: fancyGlowPulse 2.4s ease-in-out infinite;
}
@keyframes fancyGlowPulse { 0%,100%{ box-shadow: 0 0 6px var(--neon-emerald), 0 0 2px var(--neon-emerald);} 50%{ box-shadow: 0 0 14px var(--neon-emerald), 0 0 6px var(--neon-emerald);} }
.legacy-cell { text-align: center; font-size: 0.9rem; }
.cell-missing { color: #64748B; }
.cell-warning { color: #D4A017; }
.fancy-architect-matrix tbody tr:hover td { background-color: rgba(255, 255, 255, 0.015); }
.fancy-architect-matrix tbody tr:hover .revenuiva-pinnacle-cell { background-color: rgba(0, 240, 255, 0.05); }

/* Frozen pillar: feature column + RevenuivaAI column stay pinned while scrolling */
.fancy-architect-matrix .corner-axis-title,
.fancy-architect-matrix .feature-descriptor-cell {
    position: sticky; left: 0; z-index: 3; width: 250px; min-width: 250px;
    background: #0a1424;
}
.fancy-architect-matrix thead .corner-axis-title { background: #0a1120; }
.fancy-architect-matrix .revenuiva-pinnacle-header,
.fancy-architect-matrix .revenuiva-pinnacle-cell {
    position: sticky; left: 250px; z-index: 2;
}
.fancy-architect-matrix tbody .revenuiva-pinnacle-cell { background: #0a1a2e; }

.fancy-swipe-hint { display: none; text-align: center; color: #475569; font-size: 0.82rem; margin-top: 14px; }

/* RTL */
[dir="rtl"] .corner-axis-title,
[dir="rtl"] .feature-descriptor-cell { text-align: right !important; }
[dir="rtl"] .fancy-architect-matrix .corner-axis-title,
[dir="rtl"] .fancy-architect-matrix .feature-descriptor-cell { left: auto; right: 0; }
[dir="rtl"] .fancy-architect-matrix .revenuiva-pinnacle-header,
[dir="rtl"] .fancy-architect-matrix .revenuiva-pinnacle-cell { left: auto; right: 250px; }
[dir="rtl"] .glow-dot { margin-right: 0; margin-left: 8px; }

@media (max-width: 940px) {
    .fancy-swipe-hint { display: block; }
    .matrix-title-block h2 { font-size: 2rem; }
    .fancy-architect-matrix th, .fancy-architect-matrix td { padding: 18px 16px; }
    .fancy-architect-matrix .corner-axis-title,
    .fancy-architect-matrix .feature-descriptor-cell { width: 200px; min-width: 200px; }
    .fancy-architect-matrix .revenuiva-pinnacle-header,
    .fancy-architect-matrix .revenuiva-pinnacle-cell { left: 200px; }
    [dir="rtl"] .fancy-architect-matrix .revenuiva-pinnacle-header,
    [dir="rtl"] .fancy-architect-matrix .revenuiva-pinnacle-cell { right: 200px; }
}

/* Portrait phones (2026-07-27): the two frozen columns (feature + RevenuivaAI) together
   ran ~380px wide — wider than a ~340px phone viewport — so only those 2 columns showed
   and the competitor columns were unreachable. Shrink both pinned columns (and the
   RevenuivaAI sticky offset) so the pillar fits with room for a competitor to peek + scroll. */
@media (max-width: 600px) {
    .fancy-architect-matrix { min-width: 820px; }
    .fancy-architect-matrix th, .fancy-architect-matrix td { padding: 14px 9px; }
    .fancy-architect-matrix .corner-axis-title,
    .fancy-architect-matrix .feature-descriptor-cell { width: 116px; min-width: 116px; }
    .fancy-architect-matrix .revenuiva-pinnacle-header,
    .fancy-architect-matrix .revenuiva-pinnacle-cell { left: 116px; width: 112px; min-width: 112px; }
    [dir="rtl"] .fancy-architect-matrix .revenuiva-pinnacle-header,
    [dir="rtl"] .fancy-architect-matrix .revenuiva-pinnacle-cell { left: auto; right: 116px; }
    .feature-descriptor-cell strong { font-size: 0.8rem; margin-bottom: 2px; }
    .feature-descriptor-cell span { font-size: 0.66rem; line-height: 1.3; }
    .revenuiva-pinnacle-header { font-size: 0.92rem !important; padding-top: 34px !important; }
    .revenuiva-pinnacle-cell { font-size: 0.8rem; }
    .legacy-cell { font-size: 0.78rem; }
    .fancy-architect-matrix thead th { font-size: 0.78rem; }
    .premium-badge-spark { font-size: 0.52rem; padding: 2px 7px; }
}

/* iOS Safari sticky bleed-through fix (2026-07-27): backdrop-filter on the scrolling
   container makes iOS mis-composite the frozen columns during momentum scroll — briefly
   showing competitor text through them (seen on the "White-Glove EMR/Grid Migration" row).
   Drop the filter (solid panel instead) and give the frozen cells their own GPU layer so
   they always paint on top of the scrolling competitor columns. */
.fancy-table-scroll-shield {
    background: #0d1629;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.fancy-architect-matrix .corner-axis-title,
.fancy-architect-matrix .feature-descriptor-cell,
.fancy-architect-matrix .revenuiva-pinnacle-header,
.fancy-architect-matrix .revenuiva-pinnacle-cell {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Hover bleed-through fix (2026-07-27): the row-hover style turned the frozen RevenuivaAI +
   feature cells TRANSLUCENT (rgba(0,240,255,0.05)/rgba(255,255,255,.015)) — and iOS keeps
   :hover stuck on whatever row you touched while scrolling, so competitor text showed
   through that row's frozen cells. Keep the frozen cells OPAQUE on hover (subtle lift only). */
.fancy-architect-matrix tbody tr:hover .corner-axis-title,
.fancy-architect-matrix tbody tr:hover .feature-descriptor-cell { background-color: #0e1a2c; }
.fancy-architect-matrix tbody tr:hover .revenuiva-pinnacle-cell { background-color: #0c2740; }

/* ============================================================
   DEMO REQUEST — two-step qualifier modal (2026-08-14)
   ============================================================ */
.dq-modal { max-width: 560px; padding: 34px 36px 32px; max-height: calc(100vh - 40px); overflow-y: auto; }

/* progress rail */
.dq-rail { display: flex; align-items: center; gap: 0; margin: 2px 0 22px; padding-right: 26px; }
html[dir="rtl"] .dq-rail { padding-right: 0; padding-left: 26px; }
.dq-node { width: 9px; height: 9px; border-radius: 50%; background: #DDE3EC; flex: 0 0 auto; transition: background .25s ease, transform .25s ease; }
.dq-node.on { background: var(--accent); transform: scale(1.25); }
.dq-node.done { background: var(--primary); }
.dq-link { height: 2px; flex: 1 1 auto; background: #DDE3EC; }
.dq-link.on { background: var(--primary); }

/* steps */
.dq-step { display: none; }
.dq-step.on { display: block; animation: dqIn .28s cubic-bezier(.22,.61,.36,1); }
@keyframes dqIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.dq-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
#dqRecap { color: #94a3b8; font-weight: 700; }
.dq-modal h3 { font-size: 1.5rem; line-height: 1.25; color: var(--primary); font-weight: 800; margin-bottom: 6px; }

/* choice cards */
.dq-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.dq-choices.dq-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dq-choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
    padding: 15px 16px; border: 1.5px solid var(--border-color); border-radius: 12px;
    background: var(--white); cursor: pointer; font-family: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.dq-choice:hover, .dq-choice:focus-visible { border-color: var(--accent); box-shadow: 0 8px 22px rgba(0,34,68,.10); transform: translateY(-2px); outline: none; }
.dq-choice.picked { border-color: var(--accent); background: #FFF6F5; }
.dq-choice.dq-compact { padding: 13px 13px; gap: 11px; align-items: flex-start; }
.dq-choice.dq-compact .dq-ico { width: 36px; height: 36px; border-radius: 9px; }
.dq-choice.dq-compact .dq-ico svg { width: 19px; height: 19px; }
.dq-choice.dq-compact .dq-txt b { font-size: .93rem; line-height: 1.3; }
.dq-choice.dq-compact .dq-txt em { font-size: .76rem; }
/* Submitting without a status highlights the pair rather than throwing a bare error. */
.dq-choices.needed .dq-choice { border-color: var(--accent); animation: dqNudge .4s ease; }
@keyframes dqNudge { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.dq-ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--white); }
.dq-ico svg { width: 23px; height: 23px; }
.dq-ico-well   { background: linear-gradient(140deg,#0FA37F,#0B7A5F); box-shadow: 0 6px 14px rgba(15,163,127,.28); }
.dq-ico-beauty { background: linear-gradient(140deg,#FF5A73,#D8306B); box-shadow: 0 6px 14px rgba(216,48,107,.28); }
.dq-ico-fit    { background: linear-gradient(140deg,#FF9A2E,#FF3B30); box-shadow: 0 6px 14px rgba(255,59,48,.28); }
.dq-ico-launch { background: linear-gradient(140deg,#3D7BFF,#002244); box-shadow: 0 6px 14px rgba(61,123,255,.26); }
.dq-ico-live   { background: linear-gradient(140deg,#12B76A,#027A48); box-shadow: 0 6px 14px rgba(18,183,106,.26); }
.dq-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.dq-txt b { font-size: 1rem; font-weight: 700; color: var(--primary); }
.dq-txt em { font-style: normal; font-size: .82rem; color: #718096; line-height: 1.4; }
.dq-arrow { flex: 0 0 auto; font-size: 1.5rem; line-height: 1; color: #CBD5E1; transition: color .18s ease, transform .18s ease; }
.dq-choice:hover .dq-arrow { color: var(--accent); transform: translateX(3px); }

/* back link */
.dq-back { display: inline-block; margin-top: 16px; background: none; border: none; padding: 0;
    color: #718096; font-family: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.dq-back:hover { color: var(--accent); }

/* form — sits under the status pair on the same step */
#demoForm { display: flex; flex-direction: column; gap: 11px; margin-top: 18px;
    padding-top: 18px; border-top: 1px solid var(--border-color); }
.dq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.dq-modal select.dq-sel { width: 100%; padding: 12px 14px; border: 1px solid var(--border-color);
    border-radius: 8px; font-size: .95rem; font-family: inherit; color: var(--neutral-dark);
    background: var(--neutral-light); appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.dq-modal select.dq-sel:focus { outline: none; border-color: var(--accent); background-color: var(--white); }
.dq-modal select.dq-sel:invalid { color: #94a3b8; }
.dq-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
#dqSubmitBtn { margin-top: 4px; }

/* confirmation screen */
.dq-done { text-align: center; padding-top: 4px; }
.dq-check { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
    background: linear-gradient(140deg,#12B76A,#027A48); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 26px rgba(2,122,72,.28); animation: dqPop .45s cubic-bezier(.34,1.56,.64,1); }
.dq-check svg { width: 30px; height: 30px; }
@keyframes dqPop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dq-lead { font-size: 1.02rem; font-weight: 600; color: var(--neutral-dark); margin-top: 8px; }
.dq-body { font-size: .93rem; color: #718096; line-height: 1.6; margin-top: 8px; }
.dq-strong { font-size: 1rem; font-weight: 700; color: var(--primary); }
.dq-divider { height: 1px; background: var(--border-color); margin: 22px 0 18px; }
.dq-preview-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 20px; text-decoration: none; }
.dq-fine { font-size: .8rem; color: #94a3b8; margin-top: 12px; }

/* RTL */
html[dir="rtl"] .dq-choice { text-align: right; }
html[dir="rtl"] .dq-arrow { transform: scaleX(-1); }
html[dir="rtl"] .dq-choice:hover .dq-arrow { transform: scaleX(-1) translateX(3px); }
html[dir="rtl"] .dq-modal select.dq-sel { background-position: left 12px center; padding-right: 14px; padding-left: 36px; }

@media (max-width: 560px) {
    .dq-modal { padding: 26px 18px 24px; max-height: calc(100vh - 24px); }
    .dq-modal h3 { font-size: 1.24rem; }
    .dq-grid { grid-template-columns: 1fr; }
    .dq-choices.dq-two { grid-template-columns: 1fr; }
    .dq-choice { padding: 13px 13px; gap: 11px; }
    .dq-ico { width: 40px; height: 40px; }
    .dq-txt em { font-size: .78rem; }
}

/* ============================================================
   More Platform. Less Software Spend.  +  Savings Calculator
   Added 2026-08-31. Restyled from the supplied dark drop-in to
   the live site palette (navy #002244 / red #FF3B30 / Inter) so
   it reads as part of the page rather than a pasted widget.
   ============================================================ */

.platform-value{
    background:linear-gradient(135deg,#002244 0%,#00305f 55%,#001B36 100%);
    color:#fff;padding:74px 0;position:relative;overflow:hidden;
}
.platform-value::after{
    content:"";position:absolute;inset:auto -140px -180px auto;
    width:420px;height:420px;border-radius:50%;
    background:radial-gradient(circle,rgba(255,59,48,.22),transparent 68%);
    pointer-events:none;
}
.platform-value .section-container{position:relative;z-index:1}
.pv-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.75fr);
    gap:46px;align-items:center}
.pv-badge{display:inline-block;font-size:.72rem;letter-spacing:.16em;font-weight:800;
    text-transform:uppercase;color:#fff;background:var(--accent);
    padding:7px 14px;border-radius:999px;margin-bottom:18px}
.platform-value h2{font-size:clamp(2rem,3.6vw,2.9rem);line-height:1.1;margin:0 0 16px;color:#fff}
.pv-lead{font-size:1.24rem;font-weight:700;line-height:1.5;margin:0 0 14px;color:#fff}
.pv-body{font-size:1.02rem;line-height:1.7;margin:0 0 28px;color:rgba(255,255,255,.82);max-width:62ch}
.pv-cta{display:inline-block;background:var(--accent);color:#fff;text-decoration:none;
    font-weight:800;font-size:1rem;padding:15px 30px;border-radius:10px;
    box-shadow:0 10px 26px rgba(255,59,48,.28);transition:transform .18s ease,box-shadow .18s ease}
.pv-cta:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(255,59,48,.36)}
.pv-points{list-style:none;margin:0;padding:26px;border-radius:16px;
    background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16)}
.pv-points li{display:flex;align-items:flex-start;gap:12px;font-size:1.02rem;
    font-weight:600;line-height:1.45;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.pv-points li:last-child{border-bottom:0;padding-bottom:0}
.pv-points li:first-child{padding-top:0}
.pv-tick{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:var(--accent);
    color:#fff;font-size:.72rem;font-weight:900;display:flex;align-items:center;
    justify-content:center;margin-top:2px}

/* ---------------- calculator ---------------- */
#revenuiva-savings-calculator{
    --rv-panel:#fff;--rv-panel-2:#f4f7fb;--rv-text:var(--neutral-dark);
    --rv-muted:#64748b;--rv-border:#dbe3ec;--rv-accent:var(--accent);
    --rv-navy:var(--primary);--rv-danger:#b26a00;
    background:var(--neutral-light);color:var(--rv-text);padding:78px 0;
    font-family:var(--font-stack);
}
.rvcalc *{box-sizing:border-box}
.rvcalc__header{max-width:820px;margin:0 auto 32px;text-align:center}
.rvcalc__eyebrow{display:inline-block;font-size:.72rem;letter-spacing:.16em;font-weight:800;
    text-transform:uppercase;color:var(--rv-accent);margin-bottom:10px}
.rvcalc__header h2{margin:0 0 12px;font-size:clamp(1.8rem,3.6vw,2.6rem);line-height:1.12;
    color:var(--rv-navy)}
.rvcalc__header p{margin:0;color:var(--rv-muted);font-size:1.05rem;line-height:1.65}
.rvcalc__layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);
    gap:24px;align-items:start}
.rvcalc__form,.rvcalc__results{background:var(--rv-panel);border:1px solid var(--rv-border);
    border-radius:18px;padding:26px;box-shadow:0 14px 40px rgba(9,32,62,.07)}
.rvcalc__field{margin-bottom:18px}
.rvcalc__field label,.rvcalc__cost>span:first-child{display:block;font-weight:700;
    margin-bottom:7px;color:var(--rv-navy);font-size:.95rem}
.rvcalc select,.rvcalc input{width:100%;min-height:46px;border:1px solid var(--rv-border);
    border-radius:10px;background:var(--rv-panel-2);color:var(--rv-text);font:inherit;
    padding:10px 12px;outline:none}
.rvcalc select:focus,.rvcalc input:focus,.rvcalc button:focus-visible,.rvcalc a:focus-visible{
    outline:3px solid rgba(255,59,48,.35);outline-offset:2px;border-color:var(--rv-accent)}
.rvcalc__field small{display:block;margin-top:6px;color:var(--rv-muted);line-height:1.45;font-size:.83rem}
.rvcalc__divider{display:flex;align-items:center;gap:12px;margin:24px 0 16px;
    color:var(--rv-navy);font-weight:800;font-size:.95rem}
.rvcalc__divider::after{content:"";height:1px;flex:1;background:var(--rv-border)}
.rvcalc__cost-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rvcalc__cost{display:block;padding:14px;border:1px solid var(--rv-border);border-radius:12px;
    background:#fbfdff;transition:border-color .15s ease}
.rvcalc__cost:focus-within{border-color:var(--rv-accent)}
.rvcalc__money{display:grid;grid-template-columns:26px 1fr;align-items:center;
    background:var(--rv-panel-2);border:1px solid var(--rv-border);border-radius:10px;overflow:hidden}
.rvcalc__money b{text-align:right;color:var(--rv-muted);font-weight:700}
.rvcalc__money input{border:0;background:transparent;border-radius:0}
.rvcalc__money input:focus{outline:none}
.rvcalc__reset{margin-top:18px;background:transparent;border:1px solid var(--rv-border);
    color:var(--rv-muted);border-radius:10px;min-height:44px;padding:8px 16px;cursor:pointer;
    font:inherit;font-weight:600}
.rvcalc__reset:hover{border-color:var(--rv-navy);color:var(--rv-navy)}
.rvcalc__results{position:sticky;top:100px}
.rvcalc__result-row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;
    border-bottom:1px solid var(--rv-border)}
.rvcalc__result-row span{color:var(--rv-muted);font-size:.94rem}
.rvcalc__result-row strong{white-space:nowrap;color:var(--rv-navy)}
.rvcalc__hero-result{margin-top:20px;padding:22px;border-radius:14px;
    background:linear-gradient(135deg,#002244,#00335f);color:#fff}
.rvcalc__hero-result span{display:block;color:rgba(255,255,255,.78);margin-bottom:6px;font-size:.92rem}
.rvcalc__hero-result strong{display:block;font-size:clamp(2.2rem,5.4vw,3.5rem);line-height:1;color:#fff}
.rvcalc__hero-result small{display:block;margin-top:10px;font-weight:700;
    color:#ffd9d6;line-height:1.4;font-size:.85rem}
.rvcalc__hero-result.is-negative{background:linear-gradient(135deg,#4a3410,#6b4a15)}
.rvcalc__hero-result.is-negative small{color:#ffe6b8}
.rvcalc__annual{display:flex;justify-content:space-between;gap:18px;align-items:baseline;
    padding:18px 0 10px;border-bottom:1px solid var(--rv-border);margin-bottom:14px}
.rvcalc__annual span{color:var(--rv-muted);font-size:.94rem}
.rvcalc__annual strong{font-size:1.45rem;white-space:nowrap;color:var(--rv-accent)}
.rvcalc__status{color:var(--rv-muted);line-height:1.55;font-size:.86rem;margin:0}
.rvcalc__cta{display:block;width:100%;text-align:center;padding:14px 16px;min-height:48px;
    border-radius:11px;background:var(--rv-accent);color:#fff;text-decoration:none;
    font-weight:800;margin-top:18px;box-shadow:0 8px 22px rgba(255,59,48,.26)}
.rvcalc__cta:hover{transform:translateY(-2px)}
.rvcalc__disclaimer{color:#8593a5;font-size:.76rem;line-height:1.6;margin:22px auto 0;max-width:1000px;text-align:center}

@media(max-width:960px){
    .pv-grid{grid-template-columns:1fr;gap:32px}
    .rvcalc__layout{grid-template-columns:1fr}
    .rvcalc__results{position:static}
}
@media(max-width:600px){
    .platform-value{padding:56px 0}
    #revenuiva-savings-calculator{padding:56px 0}
    .rvcalc__cost-grid{grid-template-columns:1fr}
    .rvcalc__form,.rvcalc__results{padding:20px}
    .rvcalc__result-row,.rvcalc__annual{flex-direction:column;gap:4px;align-items:flex-start}
    .pv-cta{display:block;text-align:center}
}
/* Arabic RTL: the site flips dir on <html>; keep the accent glow off-screen edge correct. */
html[dir="rtl"] .platform-value::after{inset:auto auto -180px -140px}
@media(prefers-reduced-motion:reduce){.pv-cta,.rvcalc__cta{transition:none}
    .pv-cta:hover,.rvcalc__cta:hover{transform:none}}
