/* Site-wide consistency overrides
 * - Standard hero style for all non-home pages
 * - Standard FAQ card layout based on homepage design
 */

:root {
    --hero-standard-light-1: #f4f9ff;
    --hero-standard-light-2: #e8f2ff;
    --hero-standard-light-3: #dbe9ff;
    --hero-standard-dark-1: #070b14;
    --hero-standard-dark-2: #0f1a2b;
    --hero-standard-dark-3: #13233b;
}

/* ------------------------------
   Hero Standard (all pages except home)
   ------------------------------ */
body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) {
    background: none !important;
    padding: var(--spacing-4xl) 0 !important;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.hero-content-ultra, .hero-content, .hero-legal-content, .package-hero-content) {
    text-align: center;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.hero-title-ultra, .hero-title, .hero-legal-title, .package-hero-title) {
    color: var(--gray-900) !important;
    text-shadow: none !important;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.hero-subtitle-ultra, .hero-subtitle, .hero-legal-subtitle, .package-hero-tagline) {
    color: var(--gray-700) !important;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.btn-ultra-outline-dark, .btn-ultra-outline-light) {
    border-color: var(--gray-400);
    color: var(--gray-900);
    background: transparent;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.btn-ultra-outline-dark, .btn-ultra-outline-light):hover {
    border-color: var(--gray-900);
    background: var(--gray-900);
    color: #fff;
}

body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) .hero-badges .section-badge {
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
    line-height: 1.25;
}

@media (max-width: 768px) {
    body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) .hero-badges {
        gap: 0.5rem !important;
    }

    body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) .hero-badges .section-badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.62rem;
    }

    body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) .hero-badges .section-badge svg {
        width: 13px !important;
        height: 13px !important;
    }
}

html[data-theme="dark"] body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) {
    background: none !important;
}

html[data-theme="dark"] body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.hero-title-ultra, .hero-title, .hero-legal-title, .package-hero-title) {
    color: #f1f5ff !important;
}

html[data-theme="dark"] body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) :is(.hero-subtitle-ultra, .hero-subtitle, .hero-legal-subtitle, .package-hero-tagline) {
    color: rgba(241, 245, 255, 0.82) !important;
}

html[data-theme="dark"] body:not(.page-home) :is(
    section.hero-standard,
    section.hero-mesh,
    section.hero.hero-security,
    section.hero.hero-service,
    section.hero-local-service,
    section.hero-legal-premium,
    section.hero-faq,
    section.package-hero
) .section-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #eef4ff;
    border-color: rgba(255, 255, 255, 0.22);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) {
        background: none !important;
    }

    html:not([data-theme="light"]) body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) :is(.hero-title-ultra, .hero-title, .hero-legal-title, .package-hero-title) {
        color: #f1f5ff !important;
    }

    html:not([data-theme="light"]) body:not(.page-home) :is(
        section.hero-standard,
        section.hero-mesh,
        section.hero.hero-security,
        section.hero.hero-service,
        section.hero-local-service,
        section.hero-legal-premium,
        section.hero-faq,
        section.package-hero
    ) :is(.hero-subtitle-ultra, .hero-subtitle, .hero-legal-subtitle, .package-hero-tagline) {
        color: rgba(241, 245, 255, 0.82) !important;
    }
}

/* ------------------------------
   FAQ Standard (homepage style)
   ------------------------------ */
.faq-standard {
    padding: 80px 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.faq-standard .faq-grid,
.faq-standard .faq-list,
.faq-standard .faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.faq-standard .faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-standard .faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #d4af37;
}

.faq-standard .faq-item h3,
.faq-standard .faq-item .faq-question {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0a0e27;
}

.faq-standard .faq-item p,
.faq-standard .faq-item .faq-answer {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
}

@media (max-width: 768px) {
    .faq-standard {
        padding: 60px 0;
    }

    .faq-standard .faq-grid,
    .faq-standard .faq-list,
    .faq-standard .faq-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-standard .faq-item {
        padding: 22px;
    }
}

html[data-theme="dark"] .faq-standard {
    background: linear-gradient(180deg, #0e1524 0%, #0a111d 100%);
}

html[data-theme="dark"] .faq-standard .faq-item {
    background: #111b2c;
    border-color: rgba(117, 145, 199, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .faq-standard .faq-item h3,
html[data-theme="dark"] .faq-standard .faq-item .faq-question {
    color: #eef4ff;
}

html[data-theme="dark"] .faq-standard .faq-item p,
html[data-theme="dark"] .faq-standard .faq-item .faq-answer {
    color: rgba(238, 244, 255, 0.84);
}

/* ------------------------------
   Global Hero/Faq Normalization
   (all pages except homepage)
   ------------------------------ */
body:not(.page-home) section[class*="hero"] {
    background: none !important;
    padding: clamp(64px, 9vw, 110px) 0 !important;
    position: relative;
    overflow: hidden;
}

body:not(.page-home) section[class*="hero"] :is(
    .hero-overlay,
    .hero-gradient-overlay,
    .hero-legal-gradient,
    .spotlights,
    .shape
) {
    display: none !important;
}

body:not(.page-home) section[class*="hero"] :is(
    .hero-content-ultra,
    .hero-content,
    .hero-legal-content,
    .package-hero-content
) {
    max-width: 920px;
    margin: 0 auto;
    text-align: center !important;
}

body:not(.page-home) section[class*="hero"] :is(
    h1,
    .hero-title-ultra,
    .hero-title,
    .hero-legal-title,
    .package-hero-title
) {
    color: #07142a !important;
    text-shadow: none !important;
}

body:not(.page-home) section[class*="hero"] :is(
    p,
    .hero-subtitle-ultra,
    .hero-subtitle,
    .hero-legal-subtitle,
    .package-hero-tagline
) {
    color: #334155 !important;
}

body:not(.page-home) section[class*="hero"] :is(.hero-badges, .hero-cta-group, .hero-buttons) {
    justify-content: center !important;
}

body:not(.page-home) section[class*="hero"] .hero-cta-group {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.56rem !important;
    width: min(100%, 920px);
    margin: clamp(2.05rem, 4.2vw, 2.9rem) auto 0 !important;
    padding: 0.2rem 0;
}

body:not(.page-home) section[class*="hero"] .hero-cta-group :is(.btn, .btn-ultra, .btn-cta-primary, .btn-cta-secondary) {
    min-height: 40px;
    line-height: 1.25;
}

body:not(.page-home) section[class*="hero"] .hero-cta-group .btn:not(.btn-ultra):not(.btn-large) {
    padding: 0.44rem 0.82rem !important;
    border-radius: 999px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    white-space: normal;
    text-wrap: balance;
    max-width: 100%;
    backdrop-filter: blur(6px);
}

body:not(.page-home) section[class*="hero"] .hero-cta-group .btn-ultra {
    border-radius: 14px !important;
    min-width: 196px;
}

body:not(.page-home) section[class*="hero"] .hero-cta-group .btn-ultra:not(.btn-large) {
    padding: 0.66rem 1.35rem !important;
    font-size: 0.86rem !important;
    letter-spacing: 0.05em !important;
}

body:not(.page-home) section[class*="hero"] .hero-cta-group .btn.btn-large {
    padding: 0.7rem 1.35rem !important;
    font-size: 0.94rem !important;
    border-radius: 14px !important;
}

body:not(.page-home) section[class*="hero"] .hero-badges .section-badge {
    font-size: 0.82rem !important;
    padding: 0.4rem 0.82rem !important;
    line-height: 1.25;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] :is(
    .section-badge,
    .section-badge-light
) {
    background: rgba(10, 66, 146, 0.09) !important;
    color: #123b78 !important;
    border-color: rgba(10, 66, 146, 0.2) !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] .btn-ultra-primary {
    background: linear-gradient(135deg, #0e4ea8 0%, #1a65c8 52%, #2f82e2 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(10, 52, 122, 0.32) !important;
    box-shadow: 0 10px 26px rgba(22, 78, 163, 0.28) !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] .btn-ultra-primary::before {
    background: linear-gradient(90deg, #2c8bff 0%, #66acff 100%) !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] .btn-ultra-primary:hover {
    color: #ffffff !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] :is(
    .btn-ultra-outline,
    .btn-ultra-outline-light,
    .btn-ultra-outline-dark
) {
    background: rgba(255, 255, 255, 0.56) !important;
    color: #123b78 !important;
    border: 2px solid rgba(18, 59, 120, 0.36) !important;
    box-shadow: 0 4px 14px rgba(14, 56, 126, 0.08) !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] :is(
    .btn-ultra-outline,
    .btn-ultra-outline-light,
    .btn-ultra-outline-dark
):hover {
    background: #123b78 !important;
    color: #ffffff !important;
    border-color: #123b78 !important;
}

html:not([data-theme="dark"]) body:not(.page-home) section[class*="hero"] .highlight-gold {
    background: linear-gradient(90deg, #8c6a1a 0%, #a17a1f 52%, #7b5b14 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    filter: none !important;
}

@media (max-width: 768px) {
    body:not(.page-home) section[class*="hero"] .hero-badges {
        gap: 0.45rem !important;
    }

    body:not(.page-home) section[class*="hero"] .hero-badges .section-badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
    }

    body:not(.page-home) section[class*="hero"] .hero-badges .section-badge svg {
        width: 13px !important;
        height: 13px !important;
    }

    body:not(.page-home) section[class*="hero"] .hero-cta-group {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 0.48rem !important;
        margin-top: 1.55rem !important;
    }

    body:not(.page-home) section[class*="hero"] .hero-cta-group .btn-ultra,
    body:not(.page-home) section[class*="hero"] .hero-cta-group .btn.btn-large {
        width: min(100%, 300px);
        justify-content: center;
    }

    body:not(.page-home) section[class*="hero"] .hero-cta-group .btn-ultra:not(.btn-large) {
        padding: 0.6rem 1.1rem !important;
        font-size: 0.8rem !important;
    }

    body:not(.page-home) section[class*="hero"] .hero-cta-group .btn:not(.btn-ultra):not(.btn-large) {
        font-size: 0.78rem !important;
        padding: 0.42rem 0.72rem !important;
    }
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] {
    background: none !important;
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] :is(
    h1,
    .hero-title-ultra,
    .hero-title,
    .hero-legal-title,
    .package-hero-title
) {
    color: #f0f5ff !important;
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] :is(
    p,
    .hero-subtitle-ultra,
    .hero-subtitle,
    .hero-legal-subtitle,
    .package-hero-tagline
) {
    color: rgba(240, 245, 255, 0.86) !important;
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] .btn-ultra-primary {
    background: #ffffff !important;
    color: #0a1020 !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] :is(
    .btn-ultra-outline,
    .btn-ultra-outline-light,
    .btn-ultra-outline-dark
) {
    background: transparent !important;
    color: #eaf1ff !important;
    border: 2px solid rgba(234, 241, 255, 0.42) !important;
}

html[data-theme="light"] body:not(.page-home) section[class*="hero"] .hero-cta-group .btn:not(.btn-ultra):not(.btn-large),
html:not([data-theme]) body:not(.page-home) section[class*="hero"] .hero-cta-group .btn:not(.btn-ultra):not(.btn-large) {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(18, 59, 120, 0.34);
    color: #123b78;
    box-shadow: 0 4px 12px rgba(17, 60, 126, 0.08);
}

html[data-theme="light"] body:not(.page-home) section[class*="hero"] .hero-cta-group .btn:not(.btn-ultra):not(.btn-large):hover,
html:not([data-theme]) body:not(.page-home) section[class*="hero"] .hero-cta-group .btn:not(.btn-ultra):not(.btn-large):hover {
    background: #123b78;
    border-color: #123b78;
    color: #ffffff;
    transform: translateY(-1px);
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] .hero-cta-group .btn:not(.btn-ultra):not(.btn-large) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(234, 241, 255, 0.4);
    color: #eaf1ff;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] .hero-cta-group .btn:not(.btn-ultra):not(.btn-large):hover {
    background: #eaf1ff;
    border-color: #eaf1ff;
    color: #0d1a30;
}

html[data-theme="dark"] body:not(.page-home) section[class*="hero"] :is(
    .btn-ultra-outline,
    .btn-ultra-outline-light,
    .btn-ultra-outline-dark
):hover {
    background: #eaf1ff !important;
    color: #0d1a30 !important;
    border-color: #eaf1ff !important;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) body:not(.page-home) section[class*="hero"] {
        background: none !important;
    }

    html:not([data-theme="light"]) body:not(.page-home) section[class*="hero"] .btn-ultra-primary {
        background: #ffffff !important;
        color: #0a1020 !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
    }

    html:not([data-theme="light"]) body:not(.page-home) section[class*="hero"] :is(
        .btn-ultra-outline,
        .btn-ultra-outline-light,
        .btn-ultra-outline-dark
    ) {
        color: #eaf1ff !important;
        border: 2px solid rgba(234, 241, 255, 0.42) !important;
        background: transparent !important;
    }

    html:not([data-theme="light"]) body:not(.page-home) section[class*="hero"] .hero-cta-group .btn:not(.btn-ultra):not(.btn-large) {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(234, 241, 255, 0.4);
        color: #eaf1ff;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
    }

    html:not([data-theme="light"]) body:not(.page-home) section[class*="hero"] .hero-cta-group .btn:not(.btn-ultra):not(.btn-large):hover {
        background: #eaf1ff;
        border-color: #eaf1ff;
        color: #0d1a30;
    }
}

.faq-standard,
.faq-standard.faq-section,
.faq-standard.package-section {
    padding: 80px 0 !important;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%) !important;
}

.faq-standard :is(.faq-grid, .faq-list, .faq-container) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.faq-standard .faq-item {
    background: #ffffff !important;
    border: 1px solid #dbe5f2 !important;
    border-radius: 16px !important;
    padding: 28px !important;
    box-shadow: 0 3px 14px rgba(15, 32, 67, 0.07) !important;
}

.faq-standard .faq-item:hover {
    box-shadow: 0 10px 28px rgba(15, 32, 67, 0.12) !important;
    transform: translateY(-4px);
    border-color: #c8d8f2 !important;
}

.faq-standard .faq-item :is(h3, .faq-question) {
    color: #0b1b38 !important;
    font-weight: 700 !important;
}

.faq-standard .faq-item :is(p, .faq-answer) {
    color: #475569 !important;
}

@media (max-width: 768px) {
    .faq-standard,
    .faq-standard.faq-section,
    .faq-standard.package-section {
        padding: 60px 0 !important;
    }

    .faq-standard :is(.faq-grid, .faq-list, .faq-container) {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-standard .faq-item {
        padding: 22px !important;
    }
}

html[data-theme="dark"] .faq-standard,
html[data-theme="dark"] .faq-standard.faq-section,
html[data-theme="dark"] .faq-standard.package-section {
    background: linear-gradient(180deg, #0a1426 0%, #0b172b 100%) !important;
}

html[data-theme="dark"] .faq-standard .faq-item {
    background: #10203a !important;
    border-color: rgba(143, 171, 224, 0.34) !important;
}

html[data-theme="dark"] .faq-standard .faq-item :is(h3, .faq-question) {
    color: #eef4ff !important;
}

html[data-theme="dark"] .faq-standard .faq-item :is(p, .faq-answer) {
    color: rgba(238, 244, 255, 0.84) !important;
}

/* ------------------------------
   Final Hero Light Override
   Ensures win over hero-animations.min.css defaults
   ------------------------------ */
html[data-theme="light"] body:not(.page-home) :is(
    section.hero-mesh,
    section.hero,
    section.hero-section,
    section.hero-service,
    section.hero-page,
    section.hero-mesh-compact,
    section.hero-local-service,
    section.hero-security,
    section.hero-webbdrift,
    section.hero-faq,
    section.hero-legal-premium,
    section.newsletter-hero,
    section.package-hero
) {
    background: none !important;
}

html:not([data-theme]) body:not(.page-home) :is(
    section.hero-mesh,
    section.hero,
    section.hero-section,
    section.hero-service,
    section.hero-page,
    section.hero-mesh-compact,
    section.hero-local-service,
    section.hero-security,
    section.hero-webbdrift,
    section.hero-faq,
    section.hero-legal-premium,
    section.newsletter-hero,
    section.package-hero
) {
    background: none !important;
}

/* Webbdrift: "Så fungerar det" uses 3 steps */
body.page-webbdrift .steps-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1024px) {
    body.page-webbdrift .steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    body.page-webbdrift .steps-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ------------------------------
   CTA Section (light mode)
   Remove forced blue background override
   ------------------------------ */
html[data-theme="light"] .cta-section-premium,
html:not([data-theme]) .cta-section-premium {
    background: none !important;
}

html[data-theme="light"] .cta-section-premium::before,
html:not([data-theme]) .cta-section-premium::before {
    background: none !important;
}

html[data-theme="light"] .cta-section-premium::after,
html:not([data-theme]) .cta-section-premium::after {
    background: none !important;
}

/* ------------------------------
   Dark Section Consistency (light mode)
   - Replaces remaining black sections with blue premium tone
   - Ensures outline buttons stay readable on dark-blue backgrounds
   ------------------------------ */
:root {
    --wf-section-blue-1: #0f3b7a;
    --wf-section-blue-2: #1f5faa;
    --wf-section-blue-3: #3b86d8;
    --wf-section-blue-ink: #eaf3ff;
}

html[data-theme="light"] .trust-banner,
html:not([data-theme]) .trust-banner {
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 44%),
        radial-gradient(circle at 82% 78%, rgba(234, 248, 255, 0.12) 0%, rgba(234, 248, 255, 0) 48%),
        linear-gradient(132deg, var(--wf-section-blue-1) 0%, var(--wf-section-blue-2) 52%, var(--wf-section-blue-3) 100%) !important;
    border-top-color: rgba(255, 255, 255, 0.2) !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="light"] .trust-banner::before,
html:not([data-theme]) .trust-banner::before {
    background: radial-gradient(circle, rgba(229, 199, 56, 0.16) 0%, transparent 70%) !important;
}

html[data-theme="light"] .trust-banner::after,
html:not([data-theme]) .trust-banner::after {
    background: radial-gradient(circle, rgba(209, 231, 255, 0.14) 0%, transparent 70%) !important;
}

html[data-theme="light"] .trust-banner h2,
html[data-theme="light"] .trust-description strong,
html:not([data-theme]) .trust-banner h2,
html:not([data-theme]) .trust-description strong {
    color: #ffffff !important;
}

html[data-theme="light"] .trust-description,
html[data-theme="light"] .trust-feature span,
html:not([data-theme]) .trust-description,
html:not([data-theme]) .trust-feature span {
    color: rgba(239, 247, 255, 0.92) !important;
}

html[data-theme="light"] .trust-score,
html:not([data-theme]) .trust-score {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(239, 247, 255, 0.55) !important;
}

html[data-theme="light"] .trust-feature,
html:not([data-theme]) .trust-feature {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(239, 247, 255, 0.24) !important;
}

html[data-theme="light"] .trust-feature:hover,
html:not([data-theme]) .trust-feature:hover {
    background: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(239, 247, 255, 0.4) !important;
}

html[data-theme="light"] .faq-cta-section,
html:not([data-theme]) .faq-cta-section {
    background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%) !important;
}

html[data-theme="light"] .faq-cta-card,
html:not([data-theme]) .faq-cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px !important;
    box-shadow: 0 14px 36px rgba(18, 60, 126, 0.24) !important;
    border: 1px solid rgba(228, 241, 255, 0.22) !important;
    background:
        radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(132deg, var(--wf-section-blue-1) 0%, var(--wf-section-blue-2) 52%, var(--wf-section-blue-3) 100%) !important;
}

html[data-theme="light"] .faq-cta-card .cta-icon,
html:not([data-theme]) .faq-cta-card .cta-icon {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(233, 245, 255, 0.35) !important;
}

html[data-theme="light"] .faq-cta-card h3,
html:not([data-theme]) .faq-cta-card h3 {
    color: #ffffff !important;
}

html[data-theme="light"] .faq-cta-card p,
html:not([data-theme]) .faq-cta-card p {
    color: rgba(236, 245, 255, 0.9) !important;
}

html[data-theme="light"] body.page-services:not(.page-wf-securitycloud) :is(.demo-section-premium, .tech-excellence-section, .features-section[style*="#0f0f1e"]),
html:not([data-theme]) body.page-services:not(.page-wf-securitycloud) :is(.demo-section-premium, .tech-excellence-section, .features-section[style*="#0f0f1e"]) {
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 44%),
        radial-gradient(circle at 82% 78%, rgba(211, 233, 255, 0.14) 0%, rgba(211, 233, 255, 0) 48%),
        linear-gradient(132deg, var(--wf-section-blue-1) 0%, var(--wf-section-blue-2) 52%, var(--wf-section-blue-3) 100%) !important;
}

html[data-theme="light"] body.page-services:not(.page-wf-securitycloud) .features-section[style*="#0f0f1e"] .feature-card,
html:not([data-theme]) body.page-services:not(.page-wf-securitycloud) .features-section[style*="#0f0f1e"] .feature-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(228, 241, 255, 0.25) !important;
    box-shadow: 0 10px 24px rgba(12, 38, 82, 0.18) !important;
}

html[data-theme="light"] body.page-services:not(.page-wf-securitycloud) .demo-section-premium::before,
html:not([data-theme]) body.page-services:not(.page-wf-securitycloud) .demo-section-premium::before {
    opacity: 0.55 !important;
}

html[data-theme="light"] body.page-services:not(.page-wf-securitycloud) .world-map-canvas,
html:not([data-theme]) body.page-services:not(.page-wf-securitycloud) .world-map-canvas {
    background: linear-gradient(180deg, rgba(9, 37, 78, 0.94) 0%, rgba(19, 65, 126, 0.92) 100%) !important;
    border-color: rgba(228, 241, 255, 0.3) !important;
}

html[data-theme="light"] body.page-services:not(.page-wf-securitycloud) .map-overlay-stats :is(.live-stat-box, .legend-box),
html:not([data-theme]) body.page-services:not(.page-wf-securitycloud) .map-overlay-stats :is(.live-stat-box, .legend-box) {
    background: rgba(9, 34, 71, 0.84) !important;
    border-color: rgba(228, 241, 255, 0.34) !important;
}

html[data-theme="light"] body.page-services:not(.page-wf-securitycloud) .mobile-threat-view,
html:not([data-theme]) body.page-services:not(.page-wf-securitycloud) .mobile-threat-view {
    background: linear-gradient(135deg, #0d356f 0%, #1f5ca9 52%, #327fce 100%) !important;
}

html[data-theme="light"] body:is(.page-terms, .page-cookies) .contact-card-premium,
html:not([data-theme]) body:is(.page-terms, .page-cookies) .contact-card-premium,
html[data-theme="light"] body.page-dpa .legal-contact-box,
html:not([data-theme]) body.page-dpa .legal-contact-box {
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(132deg, var(--wf-section-blue-1) 0%, var(--wf-section-blue-2) 52%, var(--wf-section-blue-3) 100%) !important;
    border: 1px solid rgba(229, 242, 255, 0.25) !important;
    box-shadow: 0 12px 30px rgba(13, 41, 88, 0.22) !important;
}

html[data-theme="light"] body:is(.page-terms, .page-cookies) .contact-card-premium :is(h3, p, span, strong, a),
html:not([data-theme]) body:is(.page-terms, .page-cookies) .contact-card-premium :is(h3, p, span, strong, a),
html[data-theme="light"] body.page-dpa .legal-contact-box :is(h2, p, span, strong, a),
html:not([data-theme]) body.page-dpa .legal-contact-box :is(h2, p, span, strong, a) {
    color: var(--wf-section-blue-ink) !important;
}

html[data-theme="light"] body:is(.page-terms, .page-cookies) .contact-card-premium .contact-item svg,
html:not([data-theme]) body:is(.page-terms, .page-cookies) .contact-card-premium .contact-item svg {
    color: #f7cd5d !important;
}

html[data-theme="light"] body.page-dpa .legal-contact-box a.btn:first-child,
html:not([data-theme]) body.page-dpa .legal-contact-box a.btn:first-child {
    background: #ffffff !important;
    color: #0f4a98 !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

html[data-theme="light"] body.page-dpa .legal-contact-box a.btn:last-child,
html:not([data-theme]) body.page-dpa .legal-contact-box a.btn:last-child {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #eef5ff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

html[data-theme="light"] body:not(.page-webbhotell) :is(
    .cta-section-premium,
    .faq-cta-card,
    .trust-banner,
    .contact-card-premium,
    .legal-contact-box,
    .demo-section-premium,
    .tech-excellence-section,
    .features-section[style*="#0f0f1e"]
) .btn-outline,
html:not([data-theme]) body:not(.page-webbhotell) :is(
    .cta-section-premium,
    .faq-cta-card,
    .trust-banner,
    .contact-card-premium,
    .legal-contact-box,
    .demo-section-premium,
    .tech-excellence-section,
    .features-section[style*="#0f0f1e"]
) .btn-outline {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #eaf3ff !important;
    border-color: rgba(228, 241, 255, 0.62) !important;
    box-shadow: 0 6px 18px rgba(9, 34, 72, 0.2) !important;
}

html[data-theme="light"] body:not(.page-webbhotell) :is(
    .cta-section-premium,
    .faq-cta-card,
    .trust-banner,
    .contact-card-premium,
    .legal-contact-box,
    .demo-section-premium,
    .tech-excellence-section,
    .features-section[style*="#0f0f1e"]
) .btn-outline:hover,
html:not([data-theme]) body:not(.page-webbhotell) :is(
    .cta-section-premium,
    .faq-cta-card,
    .trust-banner,
    .contact-card-premium,
    .legal-contact-box,
    .demo-section-premium,
    .tech-excellence-section,
    .features-section[style*="#0f0f1e"]
) .btn-outline:hover {
    background: #ffffff !important;
    color: #123f83 !important;
    border-color: #ffffff !important;
}

html[data-theme="light"] body:not(.page-webbhotell) :is(
    .cta-section-premium,
    .faq-cta-card,
    .trust-banner,
    .contact-card-premium,
    .legal-contact-box,
    .demo-section-premium,
    .tech-excellence-section,
    .features-section[style*="#0f0f1e"]
) .btn-outline svg,
html:not([data-theme]) body:not(.page-webbhotell) :is(
    .cta-section-premium,
    .faq-cta-card,
    .trust-banner,
    .contact-card-premium,
    .legal-contact-box,
    .demo-section-premium,
    .tech-excellence-section,
    .features-section[style*="#0f0f1e"]
) .btn-outline svg {
    color: inherit !important;
}

.footer-version-info {
    margin-left: 1rem;
    opacity: 0.7;
    font-size: 0.85em;
}

/* ===============================
   V4 Global Rollout - Phase 1
   =============================== */
:root {
    --wf-blue: #275e9c;
    --wf-blue-light: #2f77c8;
    --wf-blue-dark: #0d3c71;
    --wf-gold: #e3c439;
    --wf-gold-light: #f0d770;
    --wf-gold-dark: #b08f1f;

    --gray-900: #111111;
    --gray-800: #1d2938;
    --gray-700: #314358;
    --gray-600: #4a5f78;
    --gray-500: #647a95;
    --gray-400: #8ea0b6;
    --gray-300: #b7c4d3;
    --gray-200: #d8e0ea;
    --gray-100: #eaf0f6;
    --gray-50: #f7f7f7;

    --premium-light: #f7f7f7;
    --gradient-primary: linear-gradient(135deg, #0d3c71 0%, #275e9c 52%, #2f77c8 100%);
    --gradient-subtle: linear-gradient(180deg, #f5f8fd 0%, #ffffff 100%);
}

html[data-theme="dark"] {
    --wf-blue: #7fb0e8;
    --wf-blue-light: #9cc4f1;
    --wf-blue-dark: #5f98da;
    --wf-gold: #e3c439;
    --wf-gold-light: #ecd56d;
    --wf-gold-dark: #bda033;
}

:is(.btn-primary, .btn-ultra-primary, .btn-cta-primary) {
    background: #275e9c !important;
    color: #ffffff !important;
    border: 1px solid rgba(13, 60, 113, 0.32) !important;
    box-shadow: 0 10px 24px rgba(13, 60, 113, 0.22) !important;
}

:is(.btn-primary, .btn-ultra-primary, .btn-cta-primary):hover {
    background: #2f77c8 !important;
    color: #ffffff !important;
    border-color: rgba(13, 60, 113, 0.42) !important;
}

:is(.btn-ultra-primary, .btn-cta-primary)::before {
    display: none !important;
}

:is(.btn-outline, .btn-ultra-outline, .btn-ultra-outline-light, .btn-ultra-outline-dark, .btn-cta-secondary) {
    background: transparent !important;
    color: #1a4d85 !important;
    border: 2px solid rgba(39, 94, 156, 0.58) !important;
    box-shadow: none !important;
}

:is(.btn-outline, .btn-ultra-outline, .btn-ultra-outline-light, .btn-ultra-outline-dark, .btn-cta-secondary):hover {
    background: #275e9c !important;
    color: #ffffff !important;
    border-color: #275e9c !important;
}

html[data-theme="dark"] :is(.btn-primary, .btn-ultra-primary, .btn-cta-primary) {
    background: #e3c439 !important;
    color: #111111 !important;
    border-color: rgba(227, 196, 57, 0.68) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] :is(.btn-primary, .btn-ultra-primary, .btn-cta-primary):hover {
    background: #ecd56d !important;
    color: #111111 !important;
}

html[data-theme="dark"] :is(.btn-outline, .btn-ultra-outline, .btn-ultra-outline-light, .btn-ultra-outline-dark, .btn-cta-secondary) {
    background: rgba(12, 28, 49, 0.22) !important;
    color: #eaf3ff !important;
    border-color: rgba(234, 243, 255, 0.5) !important;
}

html[data-theme="dark"] :is(.btn-outline, .btn-ultra-outline, .btn-ultra-outline-light, .btn-ultra-outline-dark, .btn-cta-secondary):hover {
    background: #eaf3ff !important;
    color: #0d3c71 !important;
    border-color: #eaf3ff !important;
}

.security-focus-title {
    text-align: left !important;
    display: block !important;
}

.blog-card-image-placeholder {
    background: linear-gradient(135deg, #123964 0%, #275e9c 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-home :is(.customer-logos-banner, .services, .security-focus, .cta-section-premium, .blog-showcase, .faq-section-home, .made-in-sweden-section) {
    position: relative;
}

body.page-home :is(.services, .security-focus, .cta-section-premium, .blog-showcase, .faq-section-home, .made-in-sweden-section) {
    border-top: 1px solid rgba(13, 60, 113, 0.12);
}

body.page-home .customer-logos-banner {
    background: linear-gradient(180deg, #f7f9fc 0%, #f2f5fa 100%) !important;
}

body.page-home .services {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%) !important;
    padding: clamp(4rem, 8vw, 6rem) 0 !important;
}

body.page-home .security-focus {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

body.page-home .blog-showcase {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%) !important;
}

body.page-home .faq-section-home {
    background: linear-gradient(180deg, #f9fbfe 0%, #ffffff 100%) !important;
}

body.page-home .made-in-sweden-section {
    background: linear-gradient(rgba(247, 247, 247, 0.94), rgba(247, 247, 247, 0.94)),
                url('../images/stockholm-panoramavy-neutral_optimized-1980w600h-middle-q40.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
}

body.page-home .section-label {
    border: 1px solid rgba(227, 196, 57, 0.42) !important;
    background: rgba(227, 196, 57, 0.14) !important;
    color: #8d7214 !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
}

body.page-home .card.service-card {
    min-height: 0 !important;
    border-radius: 18px !important;
    border: 1px solid rgba(13, 60, 113, 0.16) !important;
    box-shadow: 0 12px 28px rgba(13, 60, 113, 0.12) !important;
    background: #ffffff !important;
}

body.page-home .card.service-card::before {
    transform: scaleX(1) !important;
    height: 3px !important;
    background: linear-gradient(90deg, #275e9c 0%, #e3c439 100%) !important;
}

body.page-home .card.service-card:nth-child(3n + 1)::before {
    background: linear-gradient(90deg, #275e9c 0%, #0d3c71 100%) !important;
}

body.page-home .card.service-card:nth-child(3n + 2)::before {
    background: linear-gradient(90deg, #e3c439 0%, #b08f1f 100%) !important;
}

body.page-home .card.service-card:nth-child(3n + 3)::before {
    background: linear-gradient(90deg, #2f77c8 0%, #275e9c 100%) !important;
}

body.page-home .card.service-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(13, 60, 113, 0.3) !important;
}

body.page-home .card-link {
    color: #0d3c71 !important;
    font-weight: 700 !important;
}

body.page-home .card-link:hover {
    color: #2f77c8 !important;
}

body.page-home .security-focus .highlight-box {
    border-radius: 16px !important;
    border: 1px solid rgba(13, 60, 113, 0.14) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(13, 60, 113, 0.1) !important;
}

body.page-home .security-focus .highlight-box:nth-child(1) {
    border-left: 3px solid #275e9c !important;
}

body.page-home .security-focus .highlight-box:nth-child(2) {
    border-left: 3px solid #e3c439 !important;
}

body.page-home .security-focus .highlight-box:nth-child(3) {
    border-left: 3px solid #2f77c8 !important;
}

body.page-home .faq-card {
    border-radius: 18px !important;
    border: 1px solid rgba(13, 60, 113, 0.15) !important;
    box-shadow: 0 10px 24px rgba(13, 60, 113, 0.1) !important;
}

body.page-home .faq-card:nth-child(3n + 1) {
    border-left: 3px solid #275e9c !important;
}

body.page-home .faq-card:nth-child(3n + 2) {
    border-left: 3px solid #e3c439 !important;
}

body.page-home .faq-card:nth-child(3n + 3) {
    border-left: 3px solid #2f77c8 !important;
}

html[data-theme="dark"] body.page-home .customer-logos-banner {
    background: linear-gradient(180deg, #0e2139 0%, #0f2743 100%) !important;
}

html[data-theme="dark"] body.page-home .services,
html[data-theme="dark"] body.page-home .security-focus,
html[data-theme="dark"] body.page-home .blog-showcase,
html[data-theme="dark"] body.page-home .faq-section-home,
html[data-theme="dark"] body.page-home .made-in-sweden-section {
    background: linear-gradient(180deg, #0f2845 0%, #102947 100%) !important;
    border-top-color: rgba(234, 243, 255, 0.12) !important;
}

html[data-theme="dark"] body.page-home .card.service-card,
html[data-theme="dark"] body.page-home .faq-card,
html[data-theme="dark"] body.page-home .security-focus .highlight-box {
    background: #15375e !important;
    border-color: rgba(159, 190, 229, 0.25) !important;
    box-shadow: 0 12px 26px rgba(4, 11, 23, 0.34) !important;
}

html[data-theme="dark"] body.page-home .section-title,
html[data-theme="dark"] body.page-home .section-title-modern,
html[data-theme="dark"] body.page-home .faq-question,
html[data-theme="dark"] body.page-home .card-title,
html[data-theme="dark"] body.page-home .security-focus-title {
    color: #edf4ff !important;
}

html[data-theme="dark"] body.page-home :is(.section-subtitle, .section-subtitle-modern, .card-description, .faq-answer, .made-in-sweden-text, .security-lead) {
    color: rgba(237, 244, 255, 0.84) !important;
}
