/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS (WWAD)
   ═══════════════════════════════════════════════════════════════ */
:root {
    --sifa-purple: #603eb0;
    --sifa-purple-light: #e0d8fa;
    --sifa-purple-bg: #f5f2ff;
    --sifa-purple-hover: #7351c5;
    --sifa-purple-deep: #4a2d8c;
    --sifa-teal: #4ebab4;
    --sifa-teal-bg: #d6fcfa;
    --sifa-red: #ff5a63;
    --sifa-red-bg: #fff0f1;
    --sifa-dark: #022550;
    --sifa-emerald: #10b981;
    --sifa-emerald-bg: #d1fae5;
    --sifa-orange: #e8853a;
    --sifa-orange-bg: #fff0e0;
    --sifa-surface: #ffffff;
    --sifa-surface-alt: #fbfaf9;
    --sifa-surface-warm: #f4f1ee;
    --sifa-text: #1e293b;
    --sifa-text-muted: #64748b;
    --sifa-text-subtle: #94a3b8;
    --sifa-border: #e2e8f0;
    --shadow-sm: 0 2px 12px rgba(96, 62, 176, 0.06);
    --shadow-md: 0 4px 24px rgba(96, 62, 176, 0.08);
    --shadow-lg: 0 12px 48px rgba(96, 62, 176, 0.12);
    --shadow-xl: 0 24px 64px rgba(96, 62, 176, 0.16);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;         /* hidden (not clip) — creates BFC to contain children */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--sifa-text);
    background: var(--sifa-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;         /* hidden (not clip) — creates BFC to contain children */
    width: 100%;
    max-width: 100vw;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
nav:not(.sifa-footer-nav) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* explicit viewport width — immune to ICB inflation */
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-cta {
    padding: 9px 20px;
    border-radius: 10px;
    background: var(--sifa-purple);
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(96, 62, 176, 0.25);
}

.nav-cta:hover {
    background: var(--sifa-purple-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(96, 62, 176, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--sifa-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--sifa-purple);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 36px;
    border-radius: 100px;
    background: var(--sifa-purple);
    color: white;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(96, 62, 176, 0.3);
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(96, 62, 176, 0.4);
    background: var(--sifa-purple-hover);
    color: #fff !important;
}

.btn-secondary {
    color: var(--sifa-text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-secondary:hover {
    color: var(--sifa-purple);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: 100px;
    background: transparent;
    color: var(--sifa-purple);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--sifa-purple-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--sifa-purple-bg);
    border-color: var(--sifa-purple);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════
   HERO — Page-specific (see sifa-landing-v1.css / v2.css)
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   SECTION 2: FEATURE CARDS BELT
   ═══════════════════════════════════════════════════════════════ */
.features-section {
    background: var(--sifa-surface-warm);
    padding: 80px 0 60px;
    overflow: clip;
}

.features-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.features-header-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--sifa-dark);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0;
}

.features-header-text h2 .purple {
    color: var(--sifa-purple);
}

.features-header-text p {
    font-size: 15px;
    color: var(--sifa-text-muted);
    max-width: 520px;
    line-height: 1.7;
}

.carousel-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--sifa-border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--sifa-text-muted);
    font-size: 18px;
}

.carousel-btn:hover {
    border-color: var(--sifa-purple);
    color: var(--sifa-purple);
    background: var(--sifa-purple-bg);
}

.feature-cards-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* Peek effect: padding creates scroll room, no negative margin needed */
    padding-right: 120px;
}

.feature-cards-track.grabbing {
    cursor: grabbing;
    scroll-snap-type: none;
    /* disable snap during drag */
}

.feature-cards-track::-webkit-scrollbar {
    display: none;
}

.feature-card {
    flex: 0 0 260px;
    background: #ffffffa6;
    border-radius: 16px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    scroll-snap-align: start;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: grab;
    pointer-events: auto;
}

.feature-cards-track.grabbing .feature-card {
    cursor: grabbing;
    pointer-events: none;
    /* prevent card hover during drag */
}

.feature-card:hover {
    background: white;
    box-shadow: none;
    transform: translateY(-3px);
}

.card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sifa-purple);
    margin-bottom: 8px;
}

.card-tagline {
    font-size: 18px;
    font-weight: 700;
    color: var(--sifa-dark);
    line-height: 1.35;
    margin-bottom: auto;
}

.card-icon {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 100%;
    max-width: 140px;
    height: auto;
}

.card-learn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--sifa-purple);
    text-decoration: none;
    margin-top: 12px;
    cursor: pointer;
    transition: gap 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.feature-card:hover .card-learn {
    opacity: 1;
    pointer-events: auto;
}

.card-learn:hover {
    gap: 10px;
}

.card-learn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.card-learn:hover svg {
    transform: translateX(2px);
}

/* ═══ INSIGHT MODAL ═══ */
.insight-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 37, 80, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.insight-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.insight-modal {
    background: white;
    border-radius: 20px;
    max-width: 520px;
    width: 92%;
    padding: 40px 36px 32px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 24px 80px rgba(96, 62, 176, 0.15);
}

.insight-modal-overlay.active .insight-modal {
    transform: translateY(0) scale(1);
}

.insight-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--sifa-text-muted);
    transition: all 0.2s ease;
}

.insight-modal-close:hover {
    background: var(--sifa-purple-bg);
    border-color: var(--sifa-purple);
    color: var(--sifa-purple);
}

.insight-modal-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sifa-purple);
    margin-bottom: 10px;
}

.insight-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--sifa-dark);
    line-height: 1.25;
    margin-bottom: 16px;
}

.insight-modal-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--sifa-text-muted);
    margin-bottom: 24px;
}

.insight-modal-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.insight-modal-ingredient {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    background: #f3f0fa;
    padding: 6px 12px;
    border-radius: 20px;
}

.insight-modal-ingredient::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sifa-purple);
    flex-shrink: 0;
}

.insight-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--sifa-purple);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.insight-modal-cta:hover {
    background: #4e2ea0;
    color: #fff !important;
    transform: translateY(-1px);
}
.features-footer {
    max-width: 660px;
    margin-top: 20px;
    font-weight: 400;
    color: var(--sifa-text-muted);
}
/* ═══════════════════════════════════════════════════════════════
   SECTION 3: FREEDOM MODELLER SHOWCASE (inline widget)
   ═══════════════════════════════════════════════════════════════ */
.showcase {
    background: linear-gradient(180deg, var(--sifa-purple-bg) 0%, #ffffff 50%);
    padding: 100px 0;
    overflow: hidden;
}

.showcase .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.showcase .showcase-text {
    flex: 1 1 340px;
    min-width: 0;
}

.showcase .fm-embed {
    flex: 1.2 1 400px;
    min-width: 0;
}

.showcase-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--sifa-dark);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.showcase-text h2 .purple {
    color: var(--sifa-purple);
}

.showcase-text p {
    font-size: 15px;
    color: var(--sifa-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.showcase-text .cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Reversed row for Silent Thief (widget left, text right) */
.showcase-row-reversed {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
}

.showcase-divider {
    grid-column: 1 / -1;
    margin: 80px 0;
    border: none;
    border-top: 1px solid var(--sifa-border);
}

/* ─── Why SIFA Section ─── */
.why-sifa {
    padding: 120px 0;
    background: var(--sifa-surface);
}

.why-sifa .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.why-sifa h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--sifa-dark);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 15px;
}

.why-sifa h2 .purple {
    color: var(--sifa-purple);
}

.why-sifa-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    min-height: 520px;
}

/* Accordion */
.ws-accordion {
    display: flex;
    flex-direction: column;
}

.ws-item {
    border-top: 1px solid var(--sifa-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ws-item:last-child {
    border-bottom: 1px solid var(--sifa-border);
}

.ws-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    user-select: none;
}

.ws-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ws-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--sifa-text-muted);
    min-width: 28px;
}

.ws-item.active .ws-num {
    color: var(--sifa-purple);
}

.ws-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sifa-dark);
    letter-spacing: -0.01em;
}

.ws-item.active .ws-item-title {
    color: var(--sifa-purple);
}

.ws-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--sifa-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ws-toggle svg {
    width: 14px;
    height: 14px;
    stroke: var(--sifa-text-muted);
    transition: transform 0.3s ease;
}

.ws-item.active .ws-toggle {
    border-color: var(--sifa-purple);
    background: var(--sifa-purple-bg);
}

.ws-item.active .ws-toggle svg {
    stroke: var(--sifa-purple);
    transform: rotate(45deg);
}

.ws-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.ws-item.active .ws-item-body {
    max-height: 200px;
    padding-bottom: 24px;
}

.ws-item-body p {
    font-size: 15px;
    color: var(--sifa-text-muted);
    line-height: 1.7;
    padding-left: 44px;
    margin: 0;
}

/* Visual panel */
.ws-visual {
    position: sticky;
    top: 100px;
    border-radius: var(--radius);
    background: var(--sifa-surface-alt);
    border: 1px solid var(--sifa-border);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-visual-panel {
    display: none;
    width: 100%;
    height: 100%;
    padding: 32px;
    animation: wsFadeIn 0.4s ease;
}

.ws-visual-panel.active {
    display: flex;
    flex-direction: column;
}

@keyframes wsFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Panel 1: Ask SIFA chat --- */
.ws-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    flex: 1;
}

.ws-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sifa-border);
    margin-bottom: 4px;
}

.ws-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sifa-purple), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 13px;
}

.ws-chat-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--sifa-dark);
}

.ws-chat-status {
    font-size: 12px;
    color: #4ebab4;
    margin-left: auto;
}

.ws-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ws-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

.ws-msg.user {
    background: var(--sifa-purple);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ws-msg.sifa {
    background: white;
    color: var(--sifa-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--sifa-border);
}

.ws-msg .highlight {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--sifa-purple);
}

.ws-msg.sifa .highlight {
    color: var(--sifa-purple);
}

/* --- Panel 2: Real Numbers --- */
.ws-real-numbers {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.ws-compare-row {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center;
    gap: 0;
}

.ws-compare-card {
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ws-compare-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.ws-compare-card.generic {
    background: #f0f0f0;
    border: 1px dashed #ccc;
}

.ws-compare-card.sifa {
    background: var(--sifa-purple-bg);
    border: 2px solid var(--sifa-purple);
}

.ws-compare-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 8px;
}

.ws-compare-card.generic .ws-compare-label {
    color: #999;
}

.ws-compare-card.sifa .ws-compare-label {
    color: var(--sifa-purple);
}

.ws-compare-rate {
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
}

.ws-compare-card.generic .ws-compare-rate {
    color: #aaa;
}

.ws-compare-card.sifa .ws-compare-rate {
    color: var(--sifa-purple);
}

.ws-compare-sub {
    font-size: 12px;
    color: var(--sifa-text-muted);
    margin-top: 6px;
}

.ws-compare-vs {
    font-size: 13px;
    font-weight: 700;
    color: var(--sifa-text-muted);
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
}

.ws-compare-vs.visible {
    opacity: 1;
}

.ws-compare-impact {
    padding: 16px 20px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--sifa-border);
    text-align: center;
    font-size: 14px;
    color: var(--sifa-text-muted);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}

.ws-compare-impact.visible {
    opacity: 1;
    transform: translateY(0);
}

.ws-compare-impact strong {
    color: var(--sifa-red);
    font-family: 'JetBrains Mono', monospace;
}

/* --- Panel 3: Model scenarios --- */
.ws-scenarios {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ws-scenario-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--sifa-border);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ws-scenario-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.ws-scenario-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ws-scenario-text {
    flex: 1;
}

.ws-scenario-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sifa-dark);
}

.ws-scenario-effect {
    font-size: 12px;
    color: var(--sifa-text-muted);
    margin-top: 2px;
}

.ws-scenario-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.ws-scenario-badge.positive {
    background: #d6fcfa;
    color: #0d9488;
}

.ws-scenario-badge.negative {
    background: #ffe4e6;
    color: var(--sifa-red);
}

.ws-scenario-badge.neutral {
    background: var(--sifa-purple-bg);
    color: var(--sifa-purple);
}

.ws-cascade-arrow {
    text-align: center;
    color: var(--sifa-purple);
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ws-cascade-arrow.visible {
    opacity: 1;
}

.ws-cascade-summary {
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--sifa-purple-bg);
    border: 1px solid rgba(96, 62, 176, 0.15);
    text-align: center;
    font-size: 13px;
    color: var(--sifa-purple);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ws-cascade-summary.visible {
    opacity: 1;
}

/* --- Panel 5: Built without an agenda --- */
.ws-no-agenda {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.ws-agenda-manifest {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ws-agenda-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sifa-text-muted);
    margin-bottom: 6px;
}

.ws-agenda-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--sifa-red-bg);
    border: 1px solid rgba(255, 90, 99, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sifa-dark);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ws-agenda-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.ws-agenda-x {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 90, 99, 0.15);
    color: var(--sifa-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.ws-agenda-instead {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--sifa-teal-bg);
    border: 1px solid rgba(78, 186, 180, 0.25);
    border-radius: 14px;
    padding: 22px 24px;
    margin-top: 6px;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.ws-agenda-instead.visible {
    opacity: 1;
    transform: translateX(0);
}

.ws-agenda-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--sifa-teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.ws-agenda-instead-title {
    font-size: 16px;
    font-weight: 700;
    color: #0d6b67;
    margin-bottom: 4px;
}

.ws-agenda-instead-sub {
    font-size: 13px;
    color: #3d8b87;
    line-height: 1.5;
}

/* --- Panel 5: Multi-currency --- */
.ws-currencies {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
}

.ws-currency-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ws-currency-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 40px;
    background: white;
    border: 1px solid var(--sifa-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--sifa-dark);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ws-currency-pill.visible {
    opacity: 1;
    transform: scale(1);
}

.ws-currency-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
    object-fit: cover;
}

.ws-currency-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.ws-merge-arrow {
    font-size: 24px;
    color: var(--sifa-purple);
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease 0.4s;
}

.ws-merge-arrow.visible {
    opacity: 1;
}

.ws-unified-card {
    padding: 20px 28px;
    border-radius: 12px;
    background: var(--sifa-purple-bg);
    border: 1px solid rgba(96, 62, 176, 0.15);
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.6s, transform 0.4s ease 0.6s;
}

.ws-unified-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.ws-unified-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--sifa-purple);
    margin-bottom: 6px;
}

.ws-unified-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 800;
    color: var(--sifa-purple);
}

.ws-unified-sub {
    font-size: 12px;
    color: var(--sifa-text-muted);
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .why-sifa {
        padding: 80px 0;
    }

    .why-sifa h2 {
        margin-bottom: 40px;
    }

    .why-sifa-layout {
        display: block;
    }

    .ws-visual {
        position: static;
        min-height: 360px;
        margin: 16px 0 8px;
        border-radius: 16px;
    }

    .ws-visual.ws-inline-mobile {
        display: flex;
    }

    .ws-agenda-manifest {
        padding: 24px;
    }

    .ws-compare-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ws-compare-vs {
        display: none;
    }
}

/* ─── FM Widget (scoped) ─── */
.fm-embed {
    background: var(--sifa-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--sifa-border);
    overflow: hidden;
    animation: breathe 6s ease-in-out infinite;
}


.fm-embed .fm-body {
    padding: 32px 28px 28px;
}

.fm-embed .fm-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--sifa-dark);
    margin-bottom: 4px;
}

.fm-embed .fm-subtitle {
    text-align: center;
    font-size: 12px;
    color: var(--sifa-text-subtle);
    margin-bottom: 28px;
}

.fm-embed .fm-chart-area {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
    background: var(--sifa-surface-alt);
    overflow: hidden;
}

.fm-embed .fm-chart-area svg {
    width: 100%;
    height: 100%;
}

.fm-embed .chart-grid line {
    stroke: var(--sifa-border);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.fm-embed .chart-area-acc {
    fill: url(#fm-accGrad);
}

.fm-embed .chart-area-dec {
    fill: url(#fm-decGrad);
}

.fm-embed .chart-line {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fm-embed .chart-line-acc {
    stroke: var(--sifa-purple);
}

.fm-embed .chart-line-dec {
    stroke: var(--sifa-teal);
}

.fm-embed .ret-line {
    stroke: var(--sifa-purple);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    opacity: 0.6;
}

.fm-embed .ret-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    fill: var(--sifa-purple);
}

.fm-embed .dep-dot {
    fill: var(--sifa-red);
}

.fm-embed .dep-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    fill: var(--sifa-red);
}

.fm-embed .zero-line {
    stroke: var(--sifa-border);
    stroke-width: 1;
}

.fm-embed .axis-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    fill: var(--sifa-text-subtle);
    font-weight: 500;
}

.fm-embed .target-line {
    stroke: var(--sifa-emerald);
    stroke-width: 1;
    stroke-dasharray: 3 3;
    opacity: 0.5;
}

.fm-embed .target-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    fill: var(--sifa-emerald);
    opacity: 0.7;
}

/* FM Slider */
.fm-embed .fm-slider-area {
    margin-bottom: 24px;
}

.fm-embed .fm-slider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.fm-embed .fm-slider-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--sifa-text);
}

.fm-embed .fm-slider-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--sifa-purple);
}

.fm-embed .fm-track-wrap {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.fm-embed .fm-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e8e4f0;
    position: relative;
}

.fm-embed .fm-fill {
    height: 100%;
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, var(--sifa-purple), #8b5cf6);
    transition: width 0.08s linear;
}

.fm-embed .fm-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--sifa-purple);
    box-shadow: 0 2px 8px rgba(96, 62, 176, 0.25);
    cursor: grab;
    z-index: 2;
    transition: left 0.08s linear;
}

.fm-embed .fm-handle:active {
    cursor: grabbing;
}

.fm-embed .fm-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

.fm-embed .fm-range-labels span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--sifa-text-subtle);
}

/* FM Stats */
.fm-embed .fm-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.fm-embed .fm-stat {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--sifa-surface-alt);
    border: 1px solid var(--sifa-border);
    transition: all 0.5s ease;
}

.fm-embed .fm-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--sifa-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.fm-embed .fm-stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--sifa-dark);
    line-height: 1;
    transition: color 0.5s ease;
}

.fm-embed .fm-stat-val.positive {
    color: var(--sifa-emerald);
}

.fm-embed .fm-stat-val.danger {
    color: var(--sifa-red);
}

.fm-embed .fm-narrative {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--sifa-purple-bg);
    border-left: 3px solid var(--sifa-purple);
    font-size: 12px;
    line-height: 1.6;
    color: var(--sifa-text-muted);
    transition: all 0.5s ease;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 4: MULTI-CURRENCY + GLOBAL
   ═══════════════════════════════════════════════════════════════ */
.global-section {
    background: var(--sifa-surface);
    padding: 100px 0;
}

.global-section .container {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 64px;
    align-items: center;
}

.global-card {
    background: var(--sifa-purple-bg);
    border-radius: var(--radius);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.global-card h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--sifa-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.global-card h3 .purple {
    color: var(--sifa-purple);
}

.global-card p {
    font-size: 15px;
    color: var(--sifa-text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.global-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Currency comparison cards */
.currency-row {
    display: flex;
    gap: 16px;
}

.currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sifa-dark);
    box-shadow: var(--shadow-sm);
}

.currency-pill .flag {
    font-size: 16px;
}

.currency-pill .amount {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--sifa-purple);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 5: TRY IT (inline widgets)
   ═══════════════════════════════════════════════════════════════ */
.try-it {
    background: var(--sifa-surface-warm);
    padding: 100px 0;
}

.try-it-header {
    text-align: center;
    margin-bottom: 48px;
}

.try-it-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--sifa-dark);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.try-it-header p {
    font-size: 15px;
    color: var(--sifa-text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.widget-embed-stack {
    max-width: 640px;
    margin: 0 auto;
}

/* ─── Silent Thief (scoped, WWAD light theme) ─── */
.st-embed {
    background: white;
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--sifa-border);
}

.st-embed .st-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sifa-dark);
    margin-bottom: 4px;
    text-align: center;
}

.st-embed .st-sub {
    font-size: 13px;
    color: var(--sifa-text-subtle);
    text-align: center;
    margin-bottom: 28px;
}

.st-embed .st-controls {
    margin-bottom: 24px;
}

.st-embed .st-ctl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.st-embed .st-ctl-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sifa-text-muted);
}

.st-embed .st-ctl-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--sifa-purple);
}

.st-embed input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--sifa-purple-light);
    border-radius: 3px;
    outline: none;
    margin: 8px 0 20px;
}

.st-embed input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: white;
    border: 3px solid var(--sifa-purple);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(96, 62, 176, 0.25);
}

/* Bars + result */
.st-embed .st-bars {
    display: flex;
    gap: 48px;
    justify-content: center;
    align-items: flex-end;
    height: 180px;
    margin-bottom: 24px;
}

.st-embed .st-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.st-embed .st-bar-wrap {
    flex: 1;
    display: flex;
    align-items: flex-end;
    width: 72px;
    justify-content: center;
}

.st-embed .st-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: height 0.4s ease;
}

.st-embed .st-bar-nominal {
    background: var(--sifa-purple-light);
    height: 100%;
}

.st-embed .st-bar-real {
    background: var(--sifa-purple);
    height: 100%;
    box-shadow: 0 4px 16px rgba(96, 62, 176, 0.2);
}

.st-embed .st-bar-value {
    position: absolute;
    top: -28px;
    left: -16px;
    right: -16px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--sifa-purple);
}

.st-embed .st-bar-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sifa-text-muted);
    text-align: center;
}

.st-embed .st-summary {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--sifa-teal-bg);
    border-left: 3px solid var(--sifa-teal);
    font-size: 13px;
    line-height: 1.6;
    color: var(--sifa-text-muted);
}

.try-it-close {
    text-align: center;
    margin-top: 48px;
}

.try-it-close p {
    font-size: 17px;
    font-weight: 600;
    color: var(--sifa-dark);
    font-style: italic;
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   TRUST / CREDIBILITY STRIP
   ═══════════════════════════════════════════════════════════════ */
.trust-section {
    background: var(--sifa-surface);
    padding: 100px 0;
    border-top: 1px solid var(--sifa-border);
}

.trust-story {
    max-width: 790px;
    margin: 0 auto 56px;
    text-align: center;
}

.trust-story h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--sifa-dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 24px;
}

.trust-story p {
    font-size: 16px;
    color: var(--sifa-text-muted);
    line-height: 1.8;
    margin-bottom: 7px;
}

.trust-signals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.trust-signal {
    text-align: center;
    padding: 32px 24px;
    background: var(--sifa-surface-alt);
    border-radius: 16px;
    border: 1px solid var(--sifa-border);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trust-signal.visible {
    opacity: 1;
    transform: translateY(0);
}

.trust-signal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
}

.trust-signal-icon.purple {
    background: var(--sifa-purple-light);
    color: var(--sifa-purple);
}

.trust-signal-icon.teal {
    background: var(--sifa-teal-bg);
    color: var(--sifa-teal);
}

.trust-signal-icon.emerald {
    background: var(--sifa-emerald-bg);
    color: var(--sifa-emerald);
}

.trust-signal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--sifa-dark);
    margin-bottom: 6px;
}

.trust-signal-sub {
    font-size: 13px;
    color: var(--sifa-text-muted);
    line-height: 1.5;
}

.trust-experience {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 800;
    color: var(--sifa-purple);
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .trust-signals {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CAROUSEL CTA CARD
   ═══════════════════════════════════════════════════════════════ */
.feature-card.cta-card {
    background: var(--sifa-purple);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.feature-card.cta-card:hover {
    background: #5234a0;
    transform: translateY(-2px);
}

.cta-card-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 48px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.cta-card-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.cta-card-link {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cta-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.feature-card.cta-card:hover .cta-card-link svg {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   EVERYTHING INCLUDED GRID
   ═══════════════════════════════════════════════════════════════ */
.everything-section {
    background: var(--sifa-surface-alt);
    padding: 100px 0;
}

.everything-header {
    text-align: center;
    margin-bottom: 56px;
}

.everything-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--sifa-dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.everything-header p {
    font-size: 16px;
    color: var(--sifa-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.everything-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.module-card {
    background: white;
    border: 1px solid var(--sifa-border);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 0 0 calc(25% - 12px);
    min-width: 240px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease;
}

.module-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.module-card:hover {
    box-shadow: 0 4px 20px rgba(96, 62, 176, 0.08);
}

.module-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.module-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.module-card-text {
    flex: 1;
    min-width: 0;
}

.module-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sifa-dark);
    margin-bottom: 3px;
}

.module-card-sub {
    font-size: 12px;
    color: var(--sifa-text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .everything-grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════════
   BUILT INTO THE ENGINE
   ═══════════════════════════════════════════════════════════════ */
.engine-section {
    background: var(--sifa-surface);
    padding: 80px 0 100px;
}

.engine-header {
    text-align: center;
    margin-bottom: 56px;
}

.engine-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--sifa-dark);
    margin-bottom: 12px;
}

.engine-header p {
    font-size: 1.05rem;
    color: var(--sifa-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.engine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 48px;
    max-width: 960px;
    margin: 0 auto;
}

.engine-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(2, 37, 80, 0.06);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.engine-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.engine-item-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sifa-purple-bg);
    border-radius: 10px;
}

.engine-item-icon svg {
    width: 18px;
    height: 18px;
    color: var(--sifa-purple);
    stroke: var(--sifa-purple);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.engine-item-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--sifa-dark);
    margin: 0 0 4px;
}

.engine-item-text p {
    font-size: 13px;
    color: var(--sifa-text-muted);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .engine-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   REVIEWS / TESTIMONIALS CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.reviews-section {
    background: white;
    padding: 80px 0 100px;
    overflow: clip;
    contain: paint;
    /* isolate: children cannot inflate document width */
}

.reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--sifa-dark);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.reviews-header p {
    font-size: 16px;
    color: var(--sifa-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.reviews-carousel-wrap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: clip;
}

.reviews-viewport {
    overflow: clip;
    contain: paint;
    /* belt-and-braces: ensure grid track cannot leak */
    position: relative;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
}

.reviews-viewport.grabbing {
    cursor: grabbing;
}

.reviews-viewport::before,
.reviews-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.reviews-viewport::before {
    left: 0;
    background: linear-gradient(to left, transparent, white);
    opacity: 0;
}

.reviews-viewport::after {
    right: 0;
    background: linear-gradient(to right, transparent, white);
}

.reviews-carousel-wrap.first-page .reviews-viewport::before {
    opacity: 0;
}

.reviews-carousel-wrap:not(.first-page) .reviews-viewport::before {
    opacity: 1;
}

.reviews-carousel-wrap.last-page .reviews-viewport::after {
    opacity: 0;
}


.reviews-carousel-track {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.reviews-viewport.grabbing .reviews-carousel-track {
    transition: none;
}

.review-card {
    background: var(--sifa-surface);
    border: 1px solid var(--sifa-border);
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: #f5a623;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 14px;
    color: var(--sifa-dark);
    line-height: 1.6;
    margin-bottom: auto;
    padding-bottom: 16px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.review-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sifa-purple-light);
    color: var(--sifa-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.review-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--sifa-dark);
}

.review-location {
    font-size: 11px;
    color: var(--sifa-text-muted);
}

/* Navigation arrows */
.reviews-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--sifa-border);
    background: white;
    color: var(--sifa-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    z-index: 2;
}

.reviews-nav-btn:hover {
    background: var(--sifa-purple);
    color: white;
    border-color: var(--sifa-purple);
}

.reviews-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.reviews-nav-btn.prev {
    left: -56px;
}

.reviews-nav-btn.next {
    right: -56px;
}

.reviews-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* Dots */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.reviews-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sifa-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.reviews-dot.active {
    background: var(--sifa-purple);
    transform: scale(1.2);
}

@media (max-width: 1200px) {
    .reviews-nav-btn.prev {
        left: 8px;
    }

    .reviews-nav-btn.next {
        right: 8px;
    }

    .reviews-page {
        padding: 0 56px;
    }
}

@media (max-width: 900px) {
    .reviews-page {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 56px;
    }
}

@media (max-width: 600px) {
    .reviews-page {
        grid-template-columns: 1fr;
        padding: 0 56px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   SECTION 6: PRICING
   ═══════════════════════════════════════════════════════════════ */
.pricing {
    background: var(--sifa-surface);
    padding: 100px 0;
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--sifa-border);
    text-align: center;
}

.pricing-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--sifa-dark);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.pricing-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 48px;
    font-weight: 700;
    color: var(--sifa-purple);
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 14px;
    color: var(--sifa-text-muted);
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--sifa-text);
    padding: 10px 0;
    border-bottom: 1px solid var(--sifa-border);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.pricing-features li:last-child {
    border: none;
}

.pricing-features .check {
    color: var(--sifa-emerald);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-guarantee {
    font-size: 13px;
    color: var(--sifa-text-muted);
    margin-top: 16px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 7: FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq {
    background: var(--sifa-surface-alt);
    padding: 100px 0;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--sifa-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--sifa-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--sifa-purple);
}

.faq-question .faq-chevron {
    font-size: 20px;
    color: var(--sifa-text-subtle);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--sifa-text-muted);
    line-height: 1.7;
    margin: 0 0 14px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 8: FINAL CTA
   ═══════════════════════════════════════════════════════════════ */
.final-cta {
    background: linear-gradient(135deg, var(--sifa-dark) 0%, #0a3a6b 100%);
    padding: 100px 0;
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.final-cta .btn-primary {
    background: white;
    color: var(--sifa-purple);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.final-cta .btn-primary:hover {
    background: var(--sifa-purple-light);
    transform: translateY(-2px);
}

.final-cta-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 9: CHECKOUT
   ═══════════════════════════════════════════════════════════════ */
.checkout-section {
    padding: 80px 0 100px;
    background: var(--sifa-surface-alt);
    overflow: clip;                 /* visual fallback for older browsers */
    contain: content;               /* layout + paint + style containment */
    max-width: 100%;
}

.checkout-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.checkout-inner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--sifa-dark);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.checkout-sub {
    font-size: 16px;
    color: var(--sifa-text-muted);
    margin-bottom: 8px;
}

.checkout-guarantee {
    font-size: 13px;
    color: var(--sifa-text-muted);
    opacity: 0.7;
    margin-bottom: 36px;
}

.checkout-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    justify-content: center;
    margin-bottom: 36px;
}

.checkout-reassurance span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--sifa-dark, #022550);
    white-space: nowrap;
    opacity: 0.7;
}

.checkout-shortcode-area {
    margin-bottom: 24px;
}

/* Placeholder styling — visible in mockup, replaced by WooCommerce in production */
.checkout-placeholder {
    background: white;
    border: 2px dashed rgba(96, 62, 176, 0.2);
    border-radius: 16px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.checkout-placeholder span {
    font-size: 28px;
}

.checkout-placeholder code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--sifa-purple);
    background: var(--sifa-purple-bg);
    padding: 6px 14px;
    border-radius: 8px;
}

.checkout-placeholder small {
    font-size: 12px;
    color: var(--sifa-text-muted);
}

.checkout-legal {
    font-size: 12px;
    color: var(--sifa-text-muted);
    margin-top: 20px;
    line-height: 1.6;
}

.checkout-legal a {
    color: var(--sifa-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkout-legal a:hover {
    color: var(--sifa-purple-hover);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
    background: var(--sifa-dark);
    padding: 32px 0;
    text-align: center;
}

footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

footer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}

footer a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }

    .nav-links {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    /* Hide 'Log out' on mobile — accessible from My Account page */
    .nav-links .nav-link:nth-child(2) {
        display: none;
    }

    .nav-link {
        font-size: 13px;
    }

    .showcase .container,
    .showcase-row-reversed,
    .global-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 24px;
    }

    .features-header {
        flex-direction: column;
        gap: 16px;
    }

    .feature-card {
        flex: 0 0 180px;
    }
}

@media (max-width: 600px) {
    section {
        padding: 64px 0;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes breathe {

    0%,
    100% {
        box-shadow: var(--shadow-lg);
    }

    50% {
        box-shadow: var(--shadow-xl);
    }
}

.breathe {
    animation: breathe 6s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-d1 {
    animation-delay: 0.1s;
}

.fade-in-d2 {
    animation-delay: 0.2s;
}

.fade-in-d3 {
    animation-delay: 0.3s;
}

/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE / ONE PAGE CHECKOUT — SIFA BRANDED
   Complete checkout flow in one cohesive card.
   ═══════════════════════════════════════════════════════════════ */

#order_review,
#order_review_heading,
.woocommerce-checkout-review-order,
.woocommerce-checkout-payment,
#payment,
#payment .payment_methods,
#payment .place-order,
.wc-stripe-elements-field,
.wc-stripe-upe-element,
#wc-stripe-card-element,
#stripe-card-element,
.StripeElement,
form.checkout #payment-container,
form.checkout #payment,
.wcopc_product_selection,
.wcopc .shop_table {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

/* ── Hide product images / remove links in OPC table ────────── */
.wcopc .product-thumbnail,
.wcopc th.product-thumbnail,
.wcopc td.product-thumbnail,
.opc-product-image,
.wcopc .shop_table .product-thumbnail,
.wcopc .product-remove,
.wcopc .opc_remove_from_cart,
.wcopc .product-quantity,
.wcopc th.product-quantity,
.wcopc td.product-quantity {
    display: none !important;
}

/* ── OPC container reset ────────────────────────────────────── */
.wcopc,
.checkout-shortcode-area {
    text-align: left;
}

/* ── Product selection table (OPC top) ──────────────────────── */
.wcopc .shop_table,
.opc-product-table,
.wcopc_product_selection .shop_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    background: transparent !important;
    box-shadow: none !important;
}

.wcopc .shop_table thead th {
    display: none !important;
}

.wcopc .shop_table tbody tr {
    height: auto !important;
}

.wcopc .shop_table td {
    padding: 10px 0 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: var(--sifa-dark, #022550) !important;
    border-bottom: none !important;
    vertical-align: middle !important;
    background: transparent !important;
}

.wcopc .product-name,
.wcopc .product-name a {
    font-weight: 600 !important;
    color: var(--sifa-dark, #022550) !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

.wcopc .product-total,
.wcopc .product-price,
.wcopc .product-subtotal,
.wcopc .amount {
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 600 !important;
    color: var(--sifa-purple, #603eb0) !important;
}

.wcopc .quantity input[type="number"] {
    width: 48px !important;
    text-align: center !important;
    border: 1.5px solid var(--sifa-border, #e0ddf0) !important;
    border-radius: 8px !important;
    padding: 6px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px !important;
    background: var(--sifa-surface, #f8f7fc) !important;
    outline: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   THE CHECKOUT CARD — single white container for everything
   ═══════════════════════════════════════════════════════════════ */

/* Checkout form itself becomes the card */
form.checkout.woocommerce-checkout, .woocommerce-form {
    background: white !important;
    border-radius: 16px !important;
    border: 1px solid var(--sifa-border, #e0ddf0) !important;
    box-shadow: 0 2px 16px rgba(96, 62, 176, 0.06) !important;
    padding: 32px !important;
    max-width: 650px !important;
    margin: 25px auto !important;
}


/* ── BILLING FIELDS — "Your details" ───────────────────────── */

/* Force WooCommerce 2-col layout to single column */
.checkout-shortcode-area .col2-set,
form.checkout .col2-set {
    width: 100% !important;
    display: block !important;
}

.checkout-shortcode-area .col2-set .col-1,
.checkout-shortcode-area .col2-set .col-2,
form.checkout .col2-set .col-1,
form.checkout .col2-set .col-2,
.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Order review — force full width */
#order_review,
.woocommerce-checkout-review-order,
.opc_order_review {
    width: 100% !important;
    max-width: 100% !important;
}

/* All h3 headings inside the checkout card — consistent sizing */
form.checkout h3,
.checkout-shortcode-area h3,
.woocommerce-billing-fields h3,
h3#order_review_heading,
#customer_details h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--sifa-dark, #022550) !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: none !important;
    letter-spacing: -0.01em !important;
}

.woocommerce-billing-fields,
.woocommerce-billing-fields.sifa-billing {
    margin-bottom: 28px !important;
}

.woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    width: 100% !important;
}

/* Full-width fields */
.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-billing-fields__field-wrapper #billing_country_field,
.woocommerce-billing-fields__field-wrapper #billing_email_field,
.woocommerce-billing-fields__field-wrapper #billing_postcode_field {
    grid-column: 1 / -1 !important;
}

/* First name = left column, Last name = right column */
.woocommerce-billing-fields__field-wrapper #billing_first_name_field {
    grid-column: 1 !important;
}

.woocommerce-billing-fields__field-wrapper #billing_last_name_field {
    grid-column: 2 !important;
}

.checkout-shortcode-area .form-row,
form.checkout .form-row {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}


/* ── ACCOUNT FIELDS — "Create a Password" ──────────────────── */

.woocommerce-account-fields.sifa-account {
    margin-bottom: 28px !important;
}

.woocommerce-account-fields.sifa-account .form-row {
    margin: 0 !important;
    padding: 0 !important;
}


/* ── Labels ─────────────────────────────────────────────────── */

.checkout-shortcode-area label,
form.checkout label {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--sifa-dark, #022550) !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.checkout-shortcode-area label .required,
form.checkout label .required {
    color: var(--sifa-red, #ff5a63) !important;
}


/* ── Input fields ───────────────────────────────────────────── */

.checkout-shortcode-area input.input-text,
.checkout-shortcode-area textarea,
.checkout-shortcode-area select,
form.checkout input.input-text,
form.checkout textarea,
form.checkout select,
.woocommerce input.input-text {
    width: 100% !important;
    padding: 12px 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    border: 1.5px solid var(--sifa-border, #e0ddf0) !important;
    border-radius: 10px !important;
    background: white !important;
    color: var(--sifa-dark, #022550) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.checkout-shortcode-area input.input-text:focus,
.checkout-shortcode-area textarea:focus,
.checkout-shortcode-area select:focus,
form.checkout input.input-text:focus,
form.checkout select:focus {
    border-color: var(--sifa-purple, #603eb0) !important;
    box-shadow: 0 0 0 3px rgba(96, 62, 176, 0.1) !important;
}

.checkout-shortcode-area input::placeholder {
    color: #b8b5c8 !important;
}

/* Select2 dropdowns (country/state) */
.checkout-shortcode-area .select2-container .select2-selection--single,
form.checkout .select2-container .select2-selection--single {
    height: auto !important;
    min-height: 44px !important;
    border: 1.5px solid var(--sifa-border, #e0ddf0) !important;
    border-radius: 10px !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
}

.checkout-shortcode-area .select2-selection__rendered,
form.checkout .select2-selection__rendered {
    padding: 10px 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: var(--sifa-dark, #022550) !important;
    line-height: 1.4 !important;
}

.checkout-shortcode-area .select2-selection__arrow,
form.checkout .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}


/* ═══════════════════════════════════════════════════════════════
   ORDER REVIEW — compact summary, no separate card
   ═══════════════════════════════════════════════════════════════ */

/* Section divider */
h3#order_review_heading,
.checkout-shortcode-area h3#order_review_heading {
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--sifa-dark, #022550) !important;
    margin: 32px 0 14px 0 !important;
    padding: 20px 0 0 !important;
    border: none !important;
    border-top: 1px solid var(--sifa-border, #e0ddf0) !important;
    letter-spacing: -0.01em !important;
}

/* Order review wrapper — no separate card, flush with parent */
.woocommerce-checkout-review-order {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide redundant header row and subtotal */
.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table .cart-subtotal,
.woocommerce-checkout-review-order-table .recurring-totals th[colspan] {
    display: none !important;
}

body .woocommerce-checkout-review-order-table,
.woocommerce-checkout-review-order-table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 8px 0 !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: var(--sifa-dark, #022550) !important;
    background: transparent !important;
    vertical-align: baseline !important;
}

/* Product row */
.woocommerce-checkout-review-order-table .cart_item td {
    padding: 10px 0 !important;
}

.woocommerce-checkout-review-order-table .cart_item .product-name {
    font-weight: 600 !important;
    font-size: 14px !important;
}

.woocommerce-checkout-review-order-table .cart_item .product-name .quantity {
    font-weight: 400 !important;
    color: var(--sifa-text-muted, #7a7f9a) !important;
}

/* Price values */
.woocommerce-checkout-review-order-table .amount,
.woocommerce-checkout-review-order-table .woocommerce-Price-amount {
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 600 !important;
    color: var(--sifa-purple, #603eb0) !important;
    font-size: 14px !important;
}

/* Label column stretches to fill; price column stays compact */
.woocommerce-checkout-review-order-table td:first-child,
.woocommerce-checkout-review-order-table th:first-child {
    width: 100% !important;
}

.woocommerce-checkout-review-order-table td:last-child,
.woocommerce-checkout-review-order-table th:last-child {
    white-space: nowrap !important;
    text-align: right !important;
    padding-left: 16px !important;
}

/* Total row */
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 15px !important;
    font-weight: 700 !important;
    border-bottom: none !important;
    padding: 12px 0 !important;
}

.woocommerce-checkout-review-order-table .order-total .amount {
    font-size: 18px !important;
}

/* Recurring total */
.woocommerce-checkout-review-order-table .recurring-total th,
.woocommerce-checkout-review-order-table .recurring-total td {
    font-size: 12px !important;
    color: var(--sifa-text-muted, #7a7f9a) !important;
    border-bottom: none !important;
    padding: 4px 0 !important;
}

.woocommerce-checkout-review-order-table .recurring-total .amount {
    font-size: 12px !important;
    color: var(--sifa-purple, #603eb0) !important;
}

.recurring-totals .amount,
.recurring-total .amount {
    font-family: 'JetBrains Mono', monospace !important;
}


/* ═══════════════════════════════════════════════════════════════
   PAYMENT — inside the card, separated by divider
   ═══════════════════════════════════════════════════════════════ */

.woocommerce-checkout-payment,
#payment {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 20px 0 0 !important;
    margin-top: 0 !important;
    border: none !important;
    border-top: 1px solid var(--sifa-border, #e0ddf0) !important;
    box-shadow: none !important;
}

#payment .payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 14px !important;
    border: none !important;
}

#payment .payment_methods li {
    border-bottom: none !important;
    padding: 0 0 10px !important;
    background: transparent !important;
    margin: 0 !important;
}

#payment .payment_methods li label {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--sifa-dark, #022550) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#payment .payment_methods li img {
    max-height: 20px !important;
    width: auto !important;
}

#payment .payment_box {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 4px 0 0 0 !important;
    margin: 0 !important;
    border: none !important;
}

#payment .payment_box::before {
    display: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   STRIPE — hands off internal rendering
   ═══════════════════════════════════════════════════════════════ */

#wc-stripe-upe-form,
fieldset#wc-stripe-upe-form,
fieldset.wc-upe-form,
fieldset.wc-payment-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    min-height: unset !important;
}


/* ═══════════════════════════════════════════════════════════════
   PLACE ORDER BUTTON + TERMS
   ═══════════════════════════════════════════════════════════════ */

#payment .place-order {
    margin-top: 20px !important;
    padding: 0 !important;
}

.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 14px !important;
}

.woocommerce-terms-and-conditions-wrapper p,
.woocommerce-terms-and-conditions-wrapper label {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    color: var(--sifa-text-muted, #7a7f9a) !important;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: var(--sifa-purple, #603eb0) !important;
    text-decoration: underline !important;
}

#place_order,
.woocommerce-checkout-payment button[type="submit"],
button.button.alt#place_order {
    width: 100% !important;
    padding: 16px 32px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: white !important;
    background: linear-gradient(135deg, #603eb0, #7c5cd0) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    letter-spacing: -0.01em !important;
    box-shadow: 0 4px 16px rgba(96, 62, 176, 0.3) !important;
    text-transform: none !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
}

#place_order:hover,
button.button.alt#place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(96, 62, 176, 0.4) !important;
    background: linear-gradient(135deg, #5234a0, #603eb0) !important;
}

#place_order:active,
button.button.alt#place_order:active {
    transform: translateY(0) !important;
}

#place_order.fusion-button,
#place_order.button-default {
    background-image: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   HIDE CRUFT — login, coupons, notices, store bar
   ═══════════════════════════════════════════════════════════════ */

.woocommerce-form-login-toggle,
.woocommerce-form-coupon-toggle,
.avada-myaccount-user,
.avada-checkout-no-shipping,
.wcopc .avada-myaccount-user {
    display: none !important;
}

/* ── Notices: defer to unified base in sifa-account.css.
      Only override what's checkout-specific here ── */
.woocommerce-info {
    display: none !important; /* hide on checkout — not needed */
}


/* ── SIFA Loading Spinner (replaces WooCommerce BlockUI GIF) ── */
.blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.75) !important;
    background-image: none !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    opacity: 1 !important;
    cursor: default !important;
}

/* Kill the default WC spinner GIF */
.blockUI.blockOverlay::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 32px !important;
    height: 32px !important;
    margin: -16px 0 0 -16px !important;
    border: 3px solid rgba(96, 62, 176, 0.15) !important;
    border-top-color: var(--sifa-purple, #603eb0) !important;
    border-radius: 50% !important;
    animation: sifa-spin 0.7s linear infinite !important;
    background: none !important;
}

/* Hide BlockUI message element (carries second spinner) */
.blockUI.blockMsg,
.blockUI.blockMsg.blockElement,
.woocommerce .blockUI.blockMsg {
    display: none !important;
    background: none !important;
    background-image: none !important;
    border: none !important;
}

@keyframes sifa-spin {
    to { transform: rotate(360deg); }
}

.woocommerce-store-notice,
.demo_store,
p.demo_store,
.woocommerce-store-notice__dismiss-link {
    display: none !important;
}

/* Kill Avada checkout wrappers */
.avada-checkout-no-shipping,
.avada-checkout-has-shipping,
.woocommerce-content-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}



/* ── Hide wd-custom-sifa plugin overlays ────────────────────── */
div#sifa-saving-overlay {
    display: none !important;
}

.wd-modal-dialog {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — COMPREHENSIVE MOBILE FIX
   Root cause: nav has position:fixed + left:0 + right:0 but
   .nav-inner keeps desktop padding (0 40px), making it 473px
   on a 425px viewport. This inflates the ICB and every fixed-
   position element then sizes to 473px instead of 425px.
   Also: .feature-cards-track margin-right:-120px leaks.
   ═══════════════════════════════════════════════════════════════ */
/* ── Value + Trial Card ─────────────────────────────────────── */
.sifa-value-card {
    background: #fff;
    border: 1px solid rgba(96, 62, 176, 0.12);
    border-radius: 16px;
    padding: 28px 28px 20px;
    text-align: left;
    max-width: 520px;
    margin: 0 auto 28px;
    box-shadow: 0 2px 12px rgba(96, 62, 176, 0.06);
}

.sifa-value-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sifa-value-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--sifa-purple, #603eb0);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sifa-value-trial {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--sifa-text-muted, #6b7280);
    margin-top: 2px;
}

.sifa-value-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.sifa-price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: var(--sifa-dark, #022550);
}

.sifa-price-period {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--sifa-text-muted, #9ca3af);
}

.sifa-value-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sifa-value-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.sifa-value-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(96, 62, 176, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sifa-purple, #603eb0);
    margin-top: 1px;
}

.sifa-value-check svg {
    width: 10px;
    height: 10px;
}

.sifa-value-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    margin-top: 18px;
    border-top: 1px solid rgba(96, 62, 176, 0.08);
}

.sifa-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--sifa-purple, #603eb0);
    background: rgba(96, 62, 176, 0.06);
    border-radius: 100px;
    padding: 4px 12px;
    white-space: nowrap;
}

.sifa-trust-pill svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .sifa-value-items {
        grid-template-columns: 1fr;
    }
    .sifa-value-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* ── Existing User Login Toggle ─────────────────────────────── */
.sifa-login-toggle-area {
    max-width: 520px;
    margin: 0 auto 28px;
    text-align: center;
}

.sifa-login-prompt {
    font-size: 14px;
    color: var(--sifa-text-muted, #6b7280);
    margin: 0;
}

.sifa-login-link {
    color: var(--sifa-purple, #603eb0);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sifa-login-link:hover {
    color: var(--sifa-purple-hover, #4e2fa0);
}

.sifa-login-form-wrap {
    background: white;
    border: 1px solid var(--sifa-border, #e0ddf0);
    border-radius: 14px;
    padding: 24px 28px;
    margin-top: 16px;
    text-align: left;
    box-shadow: 0 2px 12px rgba(96, 62, 176, 0.06);
}

.sifa-login-form-wrap label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--sifa-dark, #022550);
    display: block;
    margin-bottom: 6px;
}

.sifa-login-form-wrap input[type="text"],
.sifa-login-form-wrap input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--sifa-border, #e0ddf0);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--sifa-dark, #022550);
    background: var(--sifa-surface, #f8f7fc);
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.sifa-login-form-wrap input[type="text"]:focus,
.sifa-login-form-wrap input[type="password"]:focus {
    border-color: var(--sifa-purple, #603eb0);
    box-shadow: 0 0 0 3px rgba(96, 62, 176, 0.1);
}

.sifa-login-form-wrap input[type="submit"] {
    width: 100%;
    padding: 12px 24px;
    background: var(--sifa-purple, #603eb0);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-top: 4px;
}

.sifa-login-form-wrap input[type="submit"]:hover {
    background: var(--sifa-purple-hover, #4e2fa0);
    color: #fff !important;
    transform: translateY(-1px);
}

.sifa-login-lost-pw {
    text-align: center;
    margin: 12px 0 0;
    font-size: 12px;
}

.sifa-login-lost-pw a {
    color: var(--sifa-text-muted, #6b7280);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.sifa-login-lost-pw a:hover {
    color: var(--sifa-purple, #603eb0);
}

@media (max-width: 768px) {

    /* ── CONTAINMENT: clip is stricter than hidden on mobile ── */
    html,
    body {
        overflow-x: clip !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .sifa-landing-page *,
    .sifa-landing-page *::before,
    .sifa-landing-page *::after {
        box-sizing: border-box !important;
    }

    /* ── Cookie consent banners — prevent overflow ── */
    .cky-consent-container,
    .cky-modal,
    [class*="cky-"] {
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    /* ── All sections: clip overflow ─── */
    section,
    .features-section,
    .why-sifa,
    .showcase,
    .trust-section,
    .everything-section,
    .engine-section,
    .reviews-section,
    .checkout-section,
    .faq {
        overflow-x: clip !important;
        max-width: 100vw !important;
    }

    /* ── All containers: respect viewport ── */
    .container,
    .fusion-row,
    section .container,
    section>.container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* ══════════════════════════════════════════════════════════
       NAV — THIS IS THE PRIMARY FIX
       The live CSS had `.nav-bar .container` which matches
       NOTHING in the HTML. The actual element is `nav > .nav-inner`.
       Without this, nav-inner keeps 40px padding = 473px on 425px vp.
       ══════════════════════════════════════════════════════════ */
    nav {
        overflow: hidden !important;
        max-width: 100vw !important;
    }

    .nav-inner {
        padding: 12px 16px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .nav-cta {
        font-size: 12px !important;
        padding: 8px 14px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .nav-link {
        font-size: 12px !important;
    }

    .nav-logo img {
        height: 28px !important;
    }

    /* ── Hero ── */

    .hero-text {
        padding: 0 20px !important;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        max-width: 100% !important;
    }

    .hero-subtitle {
        font-size: 14px !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    /* ── Feature Cards Carousel ── */
    .features-section {
        contain: inline-size !important;
    }

    .features-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .features-header-text h2 {
        font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
    }

    /* Remove the -120px negative margin "peek" hack on mobile */
    .feature-cards-track {
        margin-right: 0 !important;
        padding-right: 20px !important;
        max-width: 100% !important;
    }

    .feature-card {
        flex: 0 0 75vw !important;
        min-width: 0 !important;
        min-height: 260px !important;
    }

    /* ── "Why SIFA" ── */
    .why-sifa h2 {
        font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .why-sifa p,
    .ws-step p {
        font-size: 14px !important;
    }

    .ws-step {
        padding-right: 0 !important;
    }

    /* ── "Why SIFA" visual panels ── */
    .ws-visual {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .ws-chat-window {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .ws-compare-row {
        grid-template-columns: 1fr !important;
    }

    /* ── FM Showcase — STACK vertically ── */
    .showcase .container {
        flex-direction: column !important;
        gap: 32px !important;
    }

    .showcase .showcase-text {
        flex: none !important;
        width: 100% !important;
    }

    .showcase .fm-embed {
        flex: none !important;
        width: 100% !important;
    }

    .showcase-text h2 {
        font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
    }

    /* ── FM Stats — keep readable at 425px ── */
    .fm-embed .fm-stats {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 8px !important;
    }

    .fm-embed .fm-stat {
        padding: 10px 8px !important;
    }

    .fm-embed .fm-stat-label {
        font-size: 9px !important;
    }

    .fm-embed .fm-stat-val {
        font-size: 15px !important;
    }

    /* ── Showcase reversed row ── */
    .showcase-row-reversed {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* ── Trust section ── */
    .trust-story {
        max-width: 100% !important;
    }

    .trust-story p {
        font-size: 14px !important;
    }

    .trust-signals {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .trust-signal {
        flex: 0 0 calc(50% - 8px) !important;
        min-width: 0 !important;
    }

    /* ── "Everything included" ── */
    .everything-header h2 {
        font-size: clamp(1.2rem, 5.5vw, 1.5rem) !important;
    }

    /* ── Module grid — single column ── */
    .everything-grid {
        flex-wrap: wrap !important;
    }

    .module-card {
        flex: 0 0 100% !important;
        min-width: 0 !important;
    }

    /* ── Engine features ── */
    .engine-section h2 {
        font-size: clamp(1.2rem, 5.5vw, 1.5rem) !important;
    }

    .engine-grid {
        grid-template-columns: 1fr !important;
    }

    .engine-feature {
        max-width: 100% !important;
    }

    .engine-feature p {
        font-size: 13px !important;
    }

    /* ══════════════════════════════════════════════════════════
       REVIEWS — Single swipeable column on mobile
       The track uses CSS Grid (grid-auto-flow: column) so we
       override grid-auto-columns to show one card at a time.
       ══════════════════════════════════════════════════════════ */
    .reviews-header h2 {
        font-size: clamp(1.2rem, 5.5vw, 1.5rem) !important;
    }

    .reviews-carousel-track {
        grid-auto-columns: calc(100% - 16px) !important;
        grid-template-rows: auto !important;
        gap: 16px !important;
    }

    .review-card {
        min-width: 0 !important;
    }

    .reviews-nav-btn {
        display: none !important;
    }

    /* ── Checkout ── */
    .checkout-inner {
        max-width: 100% !important;
        padding: 0 4px !important;
    }

    .checkout-inner h2 {
        font-size: 1.3rem !important;
    }

    .checkout-inner>p {
        font-size: 14px !important;
    }

    form.checkout.woocommerce-checkout {
        padding: 16px !important;
        border-radius: 12px !important;
        margin: 0 !important;
    }

    .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr !important;
    }

    .woocommerce-billing-fields__field-wrapper #billing_first_name_field,
    .woocommerce-billing-fields__field-wrapper #billing_last_name_field {
        grid-column: 1 / -1 !important;
    }

    /* ── FAQ ── */
    .faq h2 {
        font-size: clamp(1.2rem, 5.5vw, 1.5rem) !important;
    }

    .faq-item summary {
        font-size: 15px !important;
    }

    /* ── Footer ── */
    footer {
        overflow: hidden !important;
    }

    footer .container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
    }

    /* ── iOS zoom prevention ──────────────────────────────────
       iOS Safari auto-zooms when input font-size < 16px.
       Force 16px on all form controls on mobile to prevent it.
       ───────────────────────────────────────────────────────── */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    input[type="search"],
    select,
    textarea,
    .select2-search__field,
    .select2-selection__rendered {
        font-size: 16px !important;
    }
}

/* ── FM Stats — stack on very small phones ── */
@media (max-width: 380px) {
    .fm-embed .fm-stats {
        grid-template-columns: 1fr !important;
    }
}