/* 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 REVENUIAAI 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; }

/* REVENUIAAI 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; }
.revenuia-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; }
.revenuia-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 .revenuia-pinnacle-cell { background-color: rgba(0, 240, 255, 0.05); }

/* Frozen pillar: feature column + RevenuiaAI 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 .revenuia-pinnacle-header,
.fancy-architect-matrix .revenuia-pinnacle-cell {
    position: sticky; left: 250px; z-index: 2;
}
.fancy-architect-matrix tbody .revenuia-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 .revenuia-pinnacle-header,
[dir="rtl"] .fancy-architect-matrix .revenuia-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 .revenuia-pinnacle-header,
    .fancy-architect-matrix .revenuia-pinnacle-cell { left: 200px; }
    [dir="rtl"] .fancy-architect-matrix .revenuia-pinnacle-header,
    [dir="rtl"] .fancy-architect-matrix .revenuia-pinnacle-cell { right: 200px; }
}

/* Portrait phones (2026-07-27): the two frozen columns (feature + RevenuiaAI) 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
   RevenuiaAI 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 .revenuia-pinnacle-header,
    .fancy-architect-matrix .revenuia-pinnacle-cell { left: 116px; width: 112px; min-width: 112px; }
    [dir="rtl"] .fancy-architect-matrix .revenuia-pinnacle-header,
    [dir="rtl"] .fancy-architect-matrix .revenuia-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; }
    .revenuia-pinnacle-header { font-size: 0.92rem !important; padding-top: 34px !important; }
    .revenuia-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 .revenuia-pinnacle-header,
.fancy-architect-matrix .revenuia-pinnacle-cell {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Hover bleed-through fix (2026-07-27): the row-hover style turned the frozen RevenuiaAI +
   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 .revenuia-pinnacle-cell { background-color: #0c2740; }
