/* Industry Page Styles */

body.industry-page {
    --industry-page-bg: #ffffff;
    --industry-page-text: var(--text-primary);
    --industry-muted-text: var(--text-secondary);
    --industry-section-bg: #ffffff;
    --industry-section-soft-bg: var(--background-secondary);
    --industry-hero-bg: var(--gradient-subtle);
    --industry-surface-bg: #ffffff;
    --industry-surface-soft-bg: #f8fafc;
    --industry-surface-border: rgba(15, 23, 42, 0.08);
    --industry-surface-border-soft: rgba(148, 163, 184, 0.2);
    --industry-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --industry-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
    --industry-shadow-hover: 0 18px 44px rgba(15, 23, 42, 0.12);
    --industry-panel-gradient: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
    --industry-hero-title: var(--text-primary);
    --industry-hero-copy: var(--text-secondary);
    --industry-inline-heading: #1E293B;
    --industry-inline-copy: #64748B;
    --industry-stat-color: #1E3A8A;
    background: var(--industry-page-bg);
    color: var(--industry-page-text);
}

html[data-theme="dark"] body.industry-page {
    --industry-page-bg: #07111f;
    --industry-page-text: #edf4fb;
    --industry-muted-text: #b7c5d8;
    --industry-section-bg: #08121f;
    --industry-section-soft-bg: #0c1728;
    --industry-hero-bg:
        radial-gradient(circle at 18% 24%, rgba(96, 165, 250, 0.16), transparent 48%),
        linear-gradient(135deg, #08121f 0%, #0c1728 100%);
    --industry-surface-bg: rgba(13, 24, 41, 0.95);
    --industry-surface-soft-bg: rgba(16, 28, 48, 0.92);
    --industry-surface-border: rgba(148, 163, 184, 0.16);
    --industry-surface-border-soft: rgba(148, 163, 184, 0.16);
    --industry-shadow: 0 18px 44px rgba(2, 8, 23, 0.38);
    --industry-shadow-soft: 0 14px 34px rgba(2, 8, 23, 0.32);
    --industry-shadow-hover: 0 24px 58px rgba(2, 8, 23, 0.48);
    --industry-panel-gradient: linear-gradient(135deg, rgba(13, 24, 41, 0.96), rgba(17, 30, 50, 0.92));
    --industry-hero-title: #f8fafc;
    --industry-hero-copy: #cbd5e1;
    --industry-inline-heading: #f8fafc;
    --industry-inline-copy: #b7c5d8;
    --industry-stat-color: #93c5fd;
    background: var(--industry-page-bg);
}

/* Industry Hero */
.industry-hero {
    padding: 8rem 0 6rem;
    background: var(--industry-hero-bg);
    position: relative;
    overflow: hidden;
}

body.legal-page {
    --legal-hero-bg:
        radial-gradient(circle at 20% 18%, rgba(139, 69, 19, 0.1), transparent 42%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    --legal-hero-title: #0f172a;
    --legal-hero-copy: #475569;
    --legal-hero-badge: #8B4513;
    --legal-card-accent: #8B4513;
    --legal-card-accent-strong: #1E3A8A;
    --legal-card-glow: rgba(139, 69, 19, 0.1);
}

html[data-theme="dark"] body.legal-page {
    --legal-hero-bg:
        radial-gradient(circle at 18% 18%, rgba(180, 83, 9, 0.2), transparent 38%),
        radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.16), transparent 42%),
        linear-gradient(135deg, #050c17 0%, #0b1524 48%, #111827 100%);
    --legal-hero-title: #f8fafc;
    --legal-hero-copy: #d6e1ee;
    --legal-hero-badge: #fcd9a6;
    --legal-card-accent: #fcd9a6;
    --legal-card-accent-strong: #93c5fd;
    --legal-card-glow: rgba(252, 217, 166, 0.14);
}

body.legal-page .legal-hero {
    background: var(--legal-hero-bg);
    color: var(--legal-hero-title);
    isolation: isolate;
    min-height: 620px;
}

body.legal-page .legal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(5, 12, 23, 0.2), rgba(5, 12, 23, 0.68) 56%, rgba(5, 12, 23, 0.86) 100%),
        linear-gradient(180deg, rgba(5, 12, 23, 0.68) 0%, rgba(5, 12, 23, 0.92) 100%);
}

html[data-theme="dark"] body.legal-page .legal-hero::after {
    opacity: 1;
}

body.legal-page .legal-hero .hero-content {
    z-index: 10;
}

body.legal-page .legal-hero .container {
    position: relative;
    z-index: 5;
}

body.legal-page .legal-hero .hero-title {
    color: var(--legal-hero-title) !important;
    -webkit-text-fill-color: var(--legal-hero-title) !important;
}

body.legal-page .legal-hero .hero-subtitle,
body.legal-page .legal-hero .hero-overview,
body.legal-page .legal-hero .fineprint {
    color: var(--legal-hero-copy) !important;
    -webkit-text-fill-color: var(--legal-hero-copy) !important;
}

body.legal-page .legal-hero .hero-badge {
    color: var(--legal-hero-badge);
}

body.legal-page .legal-hero .courthouse-viz-container {
    transition: opacity 0.2s ease, filter 0.2s ease;
}

html[data-theme="dark"] body.legal-page .legal-hero .courthouse-viz-container {
    opacity: 0.38;
    filter: saturate(0.72) brightness(0.72) contrast(1.05);
}

html[data-theme="dark"] body.legal-page .legal-hero .hero-content {
    text-shadow: 0 1px 3px rgba(2, 8, 23, 0.5);
}

body.legal-page .pain-points-grid {
    gap: 2rem;
}

body.legal-page .pain-point,
body.legal-page .roi-section--legal .roi-card,
body.legal-page .def-card,
body.legal-page .defensibility-note,
body.legal-page .faq-item,
body.legal-page .tab-content,
body.legal-page .case-study-content blockquote {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--industry-surface-bg);
    border: 1px solid var(--industry-surface-border);
    box-shadow: var(--industry-shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.legal-page .pain-point,
body.legal-page .roi-section--legal .roi-card,
body.legal-page .def-card {
    padding: 2.25rem;
    border-radius: 16px;
}

body.legal-page .case-study-content blockquote {
    padding: 2.75rem;
    border-radius: 16px;
    margin-bottom: 0;
}

body.legal-page .pain-point {
    text-align: left;
}

body.legal-page .pain-point::before,
body.legal-page .roi-section--legal .roi-card::before,
body.legal-page .def-card::before,
body.legal-page .defensibility-note::before,
body.legal-page .faq-item::before,
body.legal-page .tab-content::before,
body.legal-page .case-study-content blockquote::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--legal-card-accent), var(--legal-card-accent-strong));
    opacity: 0.88;
    z-index: 0;
}

body.legal-page .pain-point::after,
body.legal-page .roi-section--legal .roi-card::after,
body.legal-page .def-card::after,
body.legal-page .defensibility-note::after,
body.legal-page .faq-item::after,
body.legal-page .tab-content::after,
body.legal-page .case-study-content blockquote::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -34px;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background:
        radial-gradient(circle, var(--legal-card-glow) 0%, transparent 68%),
        linear-gradient(135deg, var(--legal-card-accent), var(--legal-card-accent-strong));
    opacity: 0.09;
    pointer-events: none;
    z-index: 0;
}

body.legal-page .pain-point:hover,
body.legal-page .roi-section--legal .roi-card:hover,
body.legal-page .def-card:hover,
body.legal-page .faq-item:hover,
body.legal-page .tab-content:hover,
body.legal-page .case-study-content blockquote:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 58, 138, 0.28);
    box-shadow: var(--industry-shadow-hover);
}

body.legal-page .pain-point h3,
body.legal-page .pain-point p,
body.legal-page .roi-section--legal .roi-card > *,
body.legal-page .def-card > *,
body.legal-page .defensibility-note > *,
body.legal-page .faq-item > *,
body.legal-page .tab-content > *,
body.legal-page .case-study-content blockquote > * {
    position: relative;
    z-index: 1;
}

body.legal-page .pain-point h3,
body.legal-page .def-card h3 {
    color: var(--text-primary);
}

body.government-page {
    --government-card-accent: #1E3A8A;
    --government-card-accent-strong: #0EA5E9;
    --government-card-glow: rgba(14, 165, 233, 0.12);
}

html[data-theme="dark"] body.government-page {
    --government-card-accent: #93c5fd;
    --government-card-accent-strong: #38bdf8;
    --government-card-glow: rgba(56, 189, 248, 0.14);
}

body.government-page .use-case-card,
body.government-page .feature-card,
body.government-page .benefit-card,
body.government-page .government-testimonial-card {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    background: var(--industry-surface-bg) !important;
    border: 1px solid var(--industry-surface-border) !important;
    box-shadow: var(--industry-shadow-soft) !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

body.government-page .use-case-card,
body.government-page .feature-card {
    border-radius: 16px !important;
}

body.government-page .benefit-card,
body.government-page .government-testimonial-card {
    border-radius: 20px !important;
}

body.government-page .use-case-card::before,
body.government-page .feature-card::before,
body.government-page .benefit-card::before,
body.government-page .government-testimonial-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--government-card-accent), var(--government-card-accent-strong));
    opacity: 0.9;
    z-index: 0;
}

body.government-page .use-case-card::after,
body.government-page .feature-card::after,
body.government-page .benefit-card::after,
body.government-page .government-testimonial-card::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -34px;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background:
        radial-gradient(circle, var(--government-card-glow) 0%, transparent 68%),
        linear-gradient(135deg, var(--government-card-accent), var(--government-card-accent-strong));
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

body.government-page .use-case-card:hover,
body.government-page .feature-card:hover,
body.government-page .benefit-card:hover,
body.government-page .government-testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 58, 138, 0.28) !important;
    box-shadow: var(--industry-shadow-hover) !important;
}

body.government-page .use-case-card > *,
body.government-page .feature-card > *,
body.government-page .benefit-card > *,
body.government-page .government-testimonial-card > * {
    position: relative;
    z-index: 1;
}

body.government-page .use-case-icon,
body.government-page .feature-icon,
body.government-page .benefit-icon {
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.22);
}

body.hr-page {
    --hr-card-accent: #7c3aed;
    --hr-card-accent-strong: #1E3A8A;
    --hr-card-glow: rgba(124, 58, 237, 0.12);
    --hr-card-hover-border: rgba(124, 58, 237, 0.3);
}

html[data-theme="dark"] body.hr-page {
    --hr-card-accent: #c4b5fd;
    --hr-card-accent-strong: #93c5fd;
    --hr-card-glow: rgba(196, 181, 253, 0.14);
    --hr-card-hover-border: rgba(196, 181, 253, 0.32);
}

body.hr-page .pain-point,
body.hr-page .use-case-card,
body.hr-page .roi-card,
body.hr-page .case-study-content blockquote {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
    background: var(--industry-surface-bg) !important;
    border: 1px solid var(--industry-surface-border) !important;
    box-shadow: var(--industry-shadow-soft) !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

body.hr-page .pain-point,
body.hr-page .use-case-card,
body.hr-page .roi-card {
    padding: 2.25rem !important;
    border-radius: 16px !important;
}

body.hr-page .pain-point,
body.hr-page .use-case-card {
    text-align: left !important;
}

body.hr-page .roi-card {
    text-align: center;
}

body.hr-page .case-study-content blockquote {
    padding: 2.75rem !important;
    border-radius: 16px !important;
    margin-bottom: 0;
}

body.hr-page .pain-point::before,
body.hr-page .use-case-card::before,
body.hr-page .roi-card::before,
body.hr-page .case-study-content blockquote::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--hr-card-accent), var(--hr-card-accent-strong));
    opacity: 0.9;
    z-index: 0;
}

body.hr-page .pain-point::after,
body.hr-page .use-case-card::after,
body.hr-page .roi-card::after,
body.hr-page .case-study-content blockquote::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -34px;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background:
        radial-gradient(circle, var(--hr-card-glow) 0%, transparent 68%),
        linear-gradient(135deg, var(--hr-card-accent), var(--hr-card-accent-strong));
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

body.hr-page .pain-point:hover,
body.hr-page .use-case-card:hover,
body.hr-page .roi-card:hover,
body.hr-page .case-study-content blockquote:hover {
    transform: translateY(-5px);
    border-color: var(--hr-card-hover-border) !important;
    box-shadow: var(--industry-shadow-hover) !important;
}

body.hr-page .pain-point > *,
body.hr-page .use-case-card > *,
body.hr-page .roi-card > * {
    position: relative;
    z-index: 1;
}

body.hr-page .pain-point h3,
body.hr-page .use-case-card h3,
body.hr-page .roi-label {
    color: var(--industry-page-text) !important;
    -webkit-text-fill-color: var(--industry-page-text) !important;
}

body.hr-page .pain-point p,
body.hr-page .use-case-card p,
body.hr-page .use-case-card li,
body.hr-page .roi-card p {
    color: var(--industry-muted-text) !important;
    -webkit-text-fill-color: var(--industry-muted-text) !important;
}

body.hr-page .roi-number,
body.hr-page .stat strong,
body.hr-page .use-case-card li span {
    color: var(--hr-card-accent) !important;
    -webkit-text-fill-color: var(--hr-card-accent) !important;
}

body.private-equity-page {
    --pe-card-accent: #7c3aed;
    --pe-card-accent-strong: #1E3A8A;
    --pe-card-glow: rgba(124, 58, 237, 0.12);
    --pe-card-hover-border: rgba(124, 58, 237, 0.3);
    --pe-positive-accent: #1E3A8A;
    --pe-muted-badge-bg: rgba(15, 23, 42, 0.03);
}

html[data-theme="dark"] body.private-equity-page {
    --pe-card-accent: #c4b5fd;
    --pe-card-accent-strong: #93c5fd;
    --pe-card-glow: rgba(196, 181, 253, 0.14);
    --pe-card-hover-border: rgba(196, 181, 253, 0.32);
    --pe-positive-accent: #93c5fd;
    --pe-muted-badge-bg: rgba(196, 181, 253, 0.1);
}

body.private-equity-page .pain-point,
body.private-equity-page .fit-card,
body.private-equity-page .mini-faq details,
body.private-equity-page .tab-content,
body.private-equity-page .case-study-content blockquote {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--industry-surface-bg);
    border: 1px solid var(--industry-surface-border);
    box-shadow: var(--industry-shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.private-equity-page .answer-section,
body.private-equity-page .pain-points-section,
body.private-equity-page .case-study-section {
    background: var(--industry-section-bg);
}

body.private-equity-page .mini-faq-section,
body.private-equity-page .discover-section,
body.private-equity-page .use-cases-section {
    background: var(--industry-section-soft-bg);
}

body.private-equity-page .pain-point,
body.private-equity-page .fit-card,
body.private-equity-page .mini-faq details {
    padding: 2.25rem;
    border-radius: 16px;
    text-align: left;
}

body.private-equity-page .tab-content {
    border-radius: 20px;
}

body.private-equity-page .case-study-content blockquote {
    padding: 2.75rem;
    border-radius: 16px;
    margin-bottom: 0;
}

body.private-equity-page .pain-point::before,
body.private-equity-page .fit-card::before,
body.private-equity-page .mini-faq details::before,
body.private-equity-page .tab-content::before,
body.private-equity-page .case-study-content blockquote::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--pe-card-accent), var(--pe-card-accent-strong));
    opacity: 0.9;
    z-index: 0;
}

body.private-equity-page .pain-point::after,
body.private-equity-page .fit-card::after,
body.private-equity-page .mini-faq details::after,
body.private-equity-page .tab-content::after,
body.private-equity-page .case-study-content blockquote::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -34px;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background:
        radial-gradient(circle, var(--pe-card-glow) 0%, transparent 68%),
        linear-gradient(135deg, var(--pe-card-accent), var(--pe-card-accent-strong));
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

body.private-equity-page .pain-point:hover,
body.private-equity-page .fit-card:hover,
body.private-equity-page .mini-faq details:hover,
body.private-equity-page .mini-faq details[open],
body.private-equity-page .tab-content:hover,
body.private-equity-page .case-study-content blockquote:hover {
    transform: translateY(-5px);
    border-color: var(--pe-card-hover-border);
    box-shadow: var(--industry-shadow-hover);
}

body.private-equity-page .pain-point > *,
body.private-equity-page .fit-card > *,
body.private-equity-page .mini-faq details > *,
body.private-equity-page .tab-content > *,
body.private-equity-page .case-study-content blockquote > * {
    position: relative;
    z-index: 1;
}

body.private-equity-page .answer-box p,
body.private-equity-page .fit-card ul,
body.private-equity-page .fit-card li,
body.private-equity-page .mini-faq p,
body.private-equity-page .tab-pane p,
body.private-equity-page .tab-pane li,
body.private-equity-page .case-study-content blockquote,
body.private-equity-page .case-study-stats {
    color: var(--industry-muted-text) !important;
    -webkit-text-fill-color: var(--industry-muted-text) !important;
}

body.private-equity-page .answer-box strong,
body.private-equity-page .pain-point h3,
body.private-equity-page .fit-card h3,
body.private-equity-page .mini-faq summary,
body.private-equity-page .tab-pane h3 {
    color: var(--industry-page-text) !important;
    -webkit-text-fill-color: var(--industry-page-text) !important;
}

body.private-equity-page .fit-badge {
    background: var(--pe-muted-badge-bg);
    border-color: var(--industry-surface-border);
    color: var(--industry-page-text) !important;
    -webkit-text-fill-color: var(--industry-page-text) !important;
}

body.private-equity-page .answer-box .line {
    border-bottom-color: var(--industry-surface-border);
}

body.private-equity-page .fit-card li::before,
body.private-equity-page .fit-card:last-child li::before {
    background: var(--pe-positive-accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pe-positive-accent) 16%, transparent);
}

body.private-equity-page .tab-pane li::before {
    color: var(--pe-card-accent);
}

body.private-equity-page .mini-faq summary::after {
    color: var(--pe-card-accent);
}

body.private-equity-page .stat strong {
    color: var(--pe-card-accent);
    -webkit-text-fill-color: var(--pe-card-accent);
}

body.private-equity-page .tab-button {
    border: 1px solid var(--industry-surface-border);
    border-radius: 999px;
    box-shadow: var(--industry-shadow-soft);
}

body.private-equity-page .tab-button:hover {
    border-color: var(--pe-card-hover-border);
    color: var(--pe-card-accent);
}

body.private-equity-page .tab-button.active {
    background: linear-gradient(135deg, var(--pe-card-accent), var(--pe-card-accent-strong)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

body.regulation-compliance-page {
    --regulation-card-accent: #dc2626;
    --regulation-card-accent-strong: #7c3aed;
    --regulation-card-glow: rgba(220, 38, 38, 0.12);
    --regulation-card-hover-border: rgba(220, 38, 38, 0.3);
}

html[data-theme="dark"] body.regulation-compliance-page {
    --regulation-card-accent: #fca5a5;
    --regulation-card-accent-strong: #c4b5fd;
    --regulation-card-glow: rgba(252, 165, 165, 0.14);
    --regulation-card-hover-border: rgba(252, 165, 165, 0.32);
}

body.regulation-compliance-page .pain-points-grid {
    gap: 2rem;
}

body.regulation-compliance-page .pain-point,
body.regulation-compliance-page .roi-card,
body.regulation-compliance-page .tab-content {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--industry-surface-bg);
    border: 1px solid var(--industry-surface-border);
    box-shadow: var(--industry-shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.regulation-compliance-page .pain-point,
body.regulation-compliance-page .roi-card {
    padding: 2.25rem;
    border-radius: 16px;
    text-align: left;
}

body.regulation-compliance-page .tab-content {
    border-radius: 20px;
}

body.regulation-compliance-page .pain-point::before,
body.regulation-compliance-page .roi-card::before,
body.regulation-compliance-page .tab-content::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--regulation-card-accent), var(--regulation-card-accent-strong));
    opacity: 0.9;
    z-index: 0;
}

body.regulation-compliance-page .pain-point::after,
body.regulation-compliance-page .roi-card::after,
body.regulation-compliance-page .tab-content::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -34px;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background:
        radial-gradient(circle, var(--regulation-card-glow) 0%, transparent 68%),
        linear-gradient(135deg, var(--regulation-card-accent), var(--regulation-card-accent-strong));
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

body.regulation-compliance-page .pain-point:hover,
body.regulation-compliance-page .roi-card:hover,
body.regulation-compliance-page .tab-content:hover {
    transform: translateY(-5px);
    border-color: var(--regulation-card-hover-border);
    box-shadow: var(--industry-shadow-hover);
}

body.regulation-compliance-page .pain-point > *,
body.regulation-compliance-page .roi-card > *,
body.regulation-compliance-page .tab-content > * {
    position: relative;
    z-index: 1;
}

body.regulation-compliance-page .pain-point h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--industry-page-text);
}

body.regulation-compliance-page .pain-point h3 svg {
    flex: 0 0 auto;
    color: var(--regulation-card-accent);
    margin-right: 0 !important;
}

body.regulation-compliance-page .roi-number {
    color: var(--regulation-card-accent);
}

body.regulation-compliance-page .roi-label,
body.regulation-compliance-page .tab-pane h3 {
    color: var(--industry-page-text);
}

body.regulation-compliance-page .tab-pane li::before {
    color: var(--regulation-card-accent);
}

body.regulation-compliance-page .tab-button {
    border: 1px solid var(--industry-surface-border);
    border-radius: 999px;
    box-shadow: var(--industry-shadow-soft);
}

body.regulation-compliance-page .tab-button:hover {
    border-color: var(--regulation-card-hover-border);
    color: var(--regulation-card-accent);
}

body.regulation-compliance-page .tab-button.active {
    background: linear-gradient(135deg, var(--regulation-card-accent), var(--regulation-card-accent-strong)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

@media (min-width: 700px) {
    body.hr-page .roi-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }

    body.hr-page .roi-grid .roi-card:nth-child(3):last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(100%, 360px);
    }
}

.industry-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.05;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    color: var(--industry-badge-color, var(--primary-color));
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.industry-hero .hero-content {
    max-width: 85%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.industry-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--industry-hero-title);
}

.industry-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--industry-hero-copy);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Pain Points Section */
.pain-points-section {
    padding: 6rem 0;
    background: var(--industry-section-bg);
}

.pain-points-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.pain-point {
    text-align: center;
}

.pain-point h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pain-point p {
    color: var(--industry-muted-text);
    line-height: 1.6;
}

/* Use Cases Section */
.use-cases-section {
    padding: 6rem 0;
    background: var(--industry-section-soft-bg);
}

.use-cases-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.use-cases-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: var(--industry-surface-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tab-content {
    background: var(--industry-surface-bg);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--industry-shadow-soft);
    border: 1px solid var(--industry-surface-border);
}

.tab-pane {
    display: none;
}

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

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

.tab-pane p {
    color: var(--industry-muted-text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tab-pane ul {
    list-style: none;
    padding: 0;
}

.tab-pane li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--industry-muted-text);
    line-height: 1.6;
}

.tab-pane li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ROI Section */
.roi-section {
    padding: 6rem 0;
    background: var(--industry-section-bg);
}

.roi-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.roi-card {
    text-align: center;
}

.roi-section--legal .roi-grid {
    max-width: 980px;
    gap: 2rem;
}

.roi-section--legal .roi-card {
    text-align: left;
    background: var(--industry-surface-bg);
    padding: 2.25rem;
    border-radius: 16px;
    border: 1px solid var(--industry-surface-border);
    box-shadow: var(--industry-shadow);
}

.roi-section--legal .roi-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.roi-section--legal .roi-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--industry-muted-text);
    margin-bottom: 0.75rem;
}

.roi-section--legal .roi-card p {
    color: var(--industry-muted-text);
    line-height: 1.7;
}

/* Government page specific styles */
.government-hero .hero-badge svg {
    color: #1e3a8a;
}

.government-hero .roi-number svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

.roi-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.roi-percent {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.roi-number .roi-percent {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.roi-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.roi-card p {
    color: var(--industry-muted-text);
    line-height: 1.6;
}

/* Case Study Section */
.case-study-section {
    padding: 6rem 0;
    background: var(--industry-section-soft-bg);
}

.case-study-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.case-study-content h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.case-study-content blockquote {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 2rem;
}

.case-study-content cite {
    display: block;
    font-size: 1.125rem;
    color: var(--industry-muted-text);
    font-style: normal;
    margin-top: 1rem;
}

/* Legal Defensibility Section */
.defensibility-section {
    padding: 6rem 0;
    background: var(--industry-section-bg);
}

.defensibility-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.defensibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.def-card {
    background: var(--industry-surface-bg);
    padding: 2.25rem;
    border-radius: 16px;
    box-shadow: var(--industry-shadow-soft);
    border: 1px solid var(--industry-surface-border);
}

.def-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.def-card p {
    color: var(--industry-muted-text);
    line-height: 1.7;
}

.defensibility-note {
    margin-top: 3rem;
    background: var(--industry-section-soft-bg);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--industry-surface-border);
}

.defensibility-note h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.defensibility-note ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.defensibility-note li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.85rem;
    color: var(--industry-muted-text);
    line-height: 1.6;
}

.defensibility-note li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Legal FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: var(--industry-section-soft-bg);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item {
    background: var(--industry-surface-bg);
    border-radius: 16px;
    border: 1px solid var(--industry-surface-border);
    box-shadow: var(--industry-shadow-soft);
    padding: 1.5rem 1.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: rgba(30, 58, 138, 0.35);
    box-shadow: var(--industry-shadow);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    margin: 1rem 0 0;
    color: var(--industry-muted-text);
    line-height: 1.7;
}

.case-study-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Industry CTA Section */
.industry-cta-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 85%;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.industry-cta-section .cta-primary {
    background: white;
    color: var(--primary-color);
}

.industry-cta-section .cta-primary:hover {
    background: #f8f9fa;
}

.industry-cta-section .cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.industry-cta-section .cta-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Industry-specific colors */
.legal-hero .hero-badge { color: #8B4513; }
.government-hero .hero-badge { color: #1e3a8a; }
.hr-hero .hero-badge { color: #059669; }
.pe-hero .hero-badge { color: #7c3aed; }
.compliance-hero .hero-badge { color: #dc2626; }

html[data-theme="dark"] body.industry-page .legal-hero .hero-badge,
html[data-theme="dark"] body.industry-page .government-hero .hero-badge,
html[data-theme="dark"] body.industry-page .hr-hero .hero-badge,
html[data-theme="dark"] body.industry-page .pe-hero .hero-badge,
html[data-theme="dark"] body.industry-page .compliance-hero .hero-badge {
    color: #dbeafe;
}

/* Responsive */
@media (max-width: 768px) {
    .industry-hero {
        padding: 6rem 0 4rem;
    }
    
    .industry-hero .hero-title {
        font-size: 2rem;
    }
    
    .tab-buttons {
        gap: 0.5rem;
    }
    
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .tab-content {
        padding: 2rem;
    }
    
    .roi-number {
        font-size: 3rem;
    }
}
/* Financial Services Specific Styles */
.financial-hero {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
}

.financial-hero .hero-badge {
    color: white !important;
}

.financial-hero .hero-badge svg {
    color: white !important;
}

.financial-hero .hero-title {
    color: white !important;
}

.financial-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Financial hero buttons */
.financial-hero .cta-primary {
    background: white !important;
    color: #1a472a !important;
    border: 2px solid white !important;
}

.financial-hero .cta-primary:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

.financial-hero .cta-secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.financial-hero .cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.section-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--industry-muted-text);
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.achievement-card {
    background: var(--industry-surface-bg);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--industry-shadow-soft);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--industry-surface-border);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--industry-shadow-hover);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.achievement-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.testimonial-container {
    max-width: 900px;
    margin: 0 auto 4rem;
}

.testimonial-quote {
    background: var(--industry-surface-bg);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--industry-shadow-soft);
    font-size: 1.25rem;
    line-height: 1.8;
    font-style: italic;
    position: relative;
    border: 1px solid var(--industry-surface-border);
}

.testimonial-quote::before {
    content: "\201C";
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 2rem;
}

.testimonial-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--industry-muted-text);
    font-style: normal;
    text-align: right;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.why-card {
    background: var(--industry-surface-bg);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--industry-shadow-soft);
    border: 1px solid var(--industry-surface-border);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--industry-shadow-hover);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--industry-muted-text);
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* Financial Services Page Sections */
.achievement-section {
    padding: 6rem 0;
    background: var(--industry-section-soft-bg);
}

.achievement-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.why-choose-section {
    padding: 6rem 0;
    background: var(--industry-section-bg);
}

.why-choose-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Fix Features Section for Financial Services */
.features-section .section-subtitle {
    margin-bottom: 3rem;
}

/* Financial Services Platform Capabilities - Custom Design */
.features-section.financial-services {
    background: var(--industry-section-soft-bg);
    padding: 6rem 0;
}

.financial-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .financial-capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.financial-capability-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    background: var(--industry-surface-bg);
    border-radius: 30px;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: var(--industry-shadow-soft);
}

.financial-capability-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.financial-capability-item:hover::before {
    transform: scale(1);
}

.financial-capability-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--industry-shadow-hover);
}

.capability-icon-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    position: relative;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.financial-capability-item:hover .capability-icon-wrapper {
    transform: rotate(0deg) scale(1.1);
}

.capability-icon-wrapper svg {
    width: 50px;
    height: 50px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.capability-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--industry-inline-heading);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.capability-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--industry-inline-copy);
    margin: 0;
}

/* Add numbering or accent */
.financial-capability-item:nth-child(1) .capability-icon-wrapper {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.financial-capability-item:nth-child(2) .capability-icon-wrapper {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.financial-capability-item:nth-child(3) .capability-icon-wrapper {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.financial-capability-item:nth-child(4) .capability-icon-wrapper {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

body.financial-services-page {
    --financial-card-accent: #1a472a;
    --financial-card-accent-strong: #06b6d4;
    --financial-card-glow: rgba(6, 182, 212, 0.12);
    --financial-card-hover-border: rgba(6, 182, 212, 0.3);
}

html[data-theme="dark"] body.financial-services-page {
    --financial-card-accent: #86efac;
    --financial-card-accent-strong: #67e8f9;
    --financial-card-glow: rgba(103, 232, 249, 0.14);
    --financial-card-hover-border: rgba(103, 232, 249, 0.32);
}

body.financial-services-page .achievement-card,
body.financial-services-page .financial-capability-item,
body.financial-services-page .why-card,
body.financial-services-page .testimonial-quote {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--industry-surface-bg) !important;
    border: 1px solid var(--industry-surface-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--industry-shadow-soft) !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

body.financial-services-page .financial-capability-item {
    padding: 2.25rem !important;
    align-items: flex-start;
}

body.financial-services-page .achievement-card::before,
body.financial-services-page .financial-capability-item::before,
body.financial-services-page .why-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--financial-card-accent), var(--financial-card-accent-strong));
    opacity: 0.9;
    z-index: 0;
    transform: none;
    transition: none;
}

body.financial-services-page .achievement-card::after,
body.financial-services-page .financial-capability-item::after,
body.financial-services-page .why-card::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -34px;
    width: 108px;
    height: 108px;
    border-radius: 999px;
    background:
        radial-gradient(circle, var(--financial-card-glow) 0%, transparent 68%),
        linear-gradient(135deg, var(--financial-card-accent), var(--financial-card-accent-strong));
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

body.financial-services-page .testimonial-quote::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--financial-card-accent), var(--financial-card-accent-strong)) 0 0 / 100% 4px no-repeat,
        radial-gradient(circle at calc(100% + 34px) -34px, var(--financial-card-glow) 0%, transparent 128px);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

body.financial-services-page .achievement-card:hover,
body.financial-services-page .financial-capability-item:hover,
body.financial-services-page .why-card:hover,
body.financial-services-page .testimonial-quote:hover {
    transform: translateY(-5px) !important;
    border-color: var(--financial-card-hover-border) !important;
    box-shadow: var(--industry-shadow-hover) !important;
}

body.financial-services-page .achievement-card > *,
body.financial-services-page .financial-capability-item > *,
body.financial-services-page .why-card > *,
body.financial-services-page .testimonial-quote > * {
    position: relative;
    z-index: 1;
}

body.financial-services-page .achievement-icon,
body.financial-services-page .why-icon {
    color: var(--financial-card-accent);
}

body.financial-services-page .capability-icon-wrapper {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    transform: none;
    box-shadow: 0 12px 28px rgba(26, 71, 42, 0.22);
}

body.financial-services-page .financial-capability-item:hover .capability-icon-wrapper {
    transform: scale(1.05);
}

body.financial-services-page .testimonial-quote::before {
    color: var(--financial-card-accent);
    z-index: 1;
}

body.financial-services-page .achievement-card h3,
body.financial-services-page .why-card h3,
body.financial-services-page .capability-content h3 {
    color: var(--industry-page-text);
    -webkit-text-fill-color: var(--industry-page-text);
}

body.financial-services-page .achievement-card p,
body.financial-services-page .why-card p,
body.financial-services-page .capability-content p,
body.financial-services-page .testimonial-quote,
body.financial-services-page .testimonial-quote cite {
    color: var(--industry-muted-text);
    -webkit-text-fill-color: var(--industry-muted-text);
}

/* Ensure proper spacing at bottom */
.industry-cta-section {
    margin-top: 0;
}

html[data-theme="dark"] body.industry-page {
    color: var(--industry-page-text);
}

html[data-theme="dark"] body.industry-page .pain-points-section,
html[data-theme="dark"] body.industry-page .roi-section,
html[data-theme="dark"] body.industry-page .why-choose-section,
html[data-theme="dark"] body.industry-page .regulatory-challenge-section {
    background: var(--industry-section-bg);
}

html[data-theme="dark"] body.industry-page .achievement-section,
html[data-theme="dark"] body.industry-page .use-cases-section,
html[data-theme="dark"] body.industry-page .case-study-section,
html[data-theme="dark"] body.industry-page .faq-section,
html[data-theme="dark"] body.industry-page .features-section.financial-services {
    background: var(--industry-section-soft-bg);
}

html[data-theme="dark"] body.industry-page .achievement-card,
html[data-theme="dark"] body.industry-page .why-card,
html[data-theme="dark"] body.industry-page .testimonial-quote,
html[data-theme="dark"] body.industry-page .tab-content,
html[data-theme="dark"] body.industry-page .financial-capability-item,
html[data-theme="dark"] body.industry-page .pain-point,
html[data-theme="dark"] body.industry-page .use-case-card,
html[data-theme="dark"] body.industry-page .feature-card,
html[data-theme="dark"] body.industry-page .benefit-card {
    background: var(--industry-surface-bg) !important;
    border-color: var(--industry-surface-border) !important;
    box-shadow: var(--industry-shadow-soft) !important;
}

html[data-theme="dark"] body.industry-page [style*="background: white"],
html[data-theme="dark"] body.industry-page [style*="background: #fff"],
html[data-theme="dark"] body.industry-page [style*="background: #ffffff"] {
    background: var(--industry-surface-bg) !important;
}

html[data-theme="dark"] body.industry-page [style*="background: linear-gradient(135deg, #F8FAFC"],
html[data-theme="dark"] body.industry-page [style*="background: linear-gradient(135deg, #f0f4f8"] {
    background: var(--industry-panel-gradient) !important;
}

html[data-theme="dark"] body.industry-page .platform-section,
html[data-theme="dark"] body.industry-page .testimonial-section {
    background: var(--industry-section-bg) !important;
}

html[data-theme="dark"] body.industry-page .tab-button {
    background: var(--industry-surface-bg);
    border-color: var(--industry-surface-border);
    color: var(--industry-muted-text);
}

html[data-theme="dark"] body.industry-page .tab-button.active {
    background: var(--primary-color);
    color: white;
}

html[data-theme="dark"] body.industry-page h1,
html[data-theme="dark"] body.industry-page h2,
html[data-theme="dark"] body.industry-page h3,
html[data-theme="dark"] body.industry-page h4,
html[data-theme="dark"] body.industry-page h5,
html[data-theme="dark"] body.industry-page h6 {
    color: var(--industry-page-text) !important;
    -webkit-text-fill-color: var(--industry-page-text) !important;
}

html[data-theme="dark"] body.industry-page p,
html[data-theme="dark"] body.industry-page li,
html[data-theme="dark"] body.industry-page [style*="color: #64748B"],
html[data-theme="dark"] body.industry-page [style*="color: #64748b"],
html[data-theme="dark"] body.industry-page [style*="color: #475569"] {
    color: var(--industry-muted-text) !important;
    -webkit-text-fill-color: var(--industry-muted-text) !important;
}

html[data-theme="dark"] body.industry-page [style*="color: #1E293B"],
html[data-theme="dark"] body.industry-page [style*="color: #1e293b"],
html[data-theme="dark"] body.industry-page [style*="color: #1a202c"],
html[data-theme="dark"] body.industry-page [style*="-webkit-text-fill-color: transparent"] {
    background: none !important;
    color: var(--industry-page-text) !important;
    -webkit-text-fill-color: var(--industry-page-text) !important;
}

html[data-theme="dark"] body.industry-page .industry-hero h1,
html[data-theme="dark"] body.industry-page .industry-hero p,
html[data-theme="dark"] body.industry-page .financial-hero h1,
html[data-theme="dark"] body.industry-page .financial-hero p,
html[data-theme="dark"] body.industry-page .government-hero h1,
html[data-theme="dark"] body.industry-page .government-hero p,
html[data-theme="dark"] body.industry-page .hr-hero h1,
html[data-theme="dark"] body.industry-page .hr-hero p {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

html[data-theme="dark"] body.industry-page .industry-cta-section h2,
html[data-theme="dark"] body.industry-page .industry-cta-section p,
html[data-theme="dark"] body.industry-page .cta-content h2,
html[data-theme="dark"] body.industry-page .cta-content p {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] body.legal-page .legal-hero {
    color: var(--legal-hero-title) !important;
}

html[data-theme="dark"] body.legal-page .legal-hero .hero-title {
    color: var(--legal-hero-title) !important;
    -webkit-text-fill-color: var(--legal-hero-title) !important;
}

html[data-theme="dark"] body.legal-page .legal-hero .hero-subtitle,
html[data-theme="dark"] body.legal-page .legal-hero .hero-overview,
html[data-theme="dark"] body.legal-page .legal-hero .fineprint {
    color: var(--legal-hero-copy) !important;
    -webkit-text-fill-color: var(--legal-hero-copy) !important;
}

html[data-theme="dark"] body.legal-page .legal-hero .hero-badge {
    color: var(--legal-hero-badge) !important;
    -webkit-text-fill-color: var(--legal-hero-badge) !important;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme-ready="true"]) .pain-points-section,
    html:not([data-theme-ready="true"]) .roi-section,
    html:not([data-theme-ready="true"]) .achievement-section,
    html:not([data-theme-ready="true"]) .why-choose-section,
    html:not([data-theme-ready="true"]) .regulatory-challenge-section {
        background: white !important;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .achievement-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .achievement-card,
    .why-card {
        padding: 2rem;
    }
    
    .achievement-icon,
    .why-icon {
        font-size: 2rem;
    }
    
    .testimonial-quote {
        padding: 2rem;
        font-size: 1.125rem;
    }
}

/* Regulatory Challenge Section */
.regulatory-challenge-section {
    padding: 4rem 0;
    background: var(--industry-section-bg);
    border-bottom: 1px solid var(--border-color);
}

.regulatory-challenge-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.challenge-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Ensure footer has proper spacing */
.footer {
    margin-top: 0;
}
