/* ============================================================
 * WUC Technologies — Financial Services Industry Page
 * Scoped tokens: --fs-*
 * Loaded only on /industries/financial-services/ via wuc-fs-page-enqueue.php
 * ============================================================ */

:root {
  --fs-bg-page: #ffffff;
  --fs-bg-section: #f6f9fc;
  --fs-bg-section-alt: #eef3f9;
  --fs-bg-panel: #ffffff;
  --fs-bg-deep: #0a1628;
  --fs-text-primary: #0a1628;
  --fs-text-secondary: #475569;
  --fs-text-muted: #64748b;
  --fs-text-on-deep: #ffffff;
  --fs-text-on-deep-muted: #cbd5e1;
  --fs-brand: #0052B8;
  --fs-brand-deep: #003a85;
  --fs-brand-tint: #e7f0fb;
  --fs-accent-success: #10b981;
  --fs-accent-warning: #f59e0b;
  --fs-accent-danger: #ef4444;
  --fs-accent-neutral: #94a3b8;
  --fs-border: #e2e8f0;
  --fs-border-strong: #cbd5e1;
  --fs-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --fs-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --fs-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --fs-radius-sm: 6px;
  --fs-radius-md: 8px;
  --fs-radius-lg: 12px;
  --fs-space-1: 8px;
  --fs-space-2: 16px;
  --fs-space-3: 24px;
  --fs-space-4: 40px;
  --fs-space-5: 64px;
  --fs-space-6: 96px;
}

.fs-page * { box-sizing: border-box; }
.fs-page p, .fs-page h1, .fs-page h2, .fs-page h3, .fs-page h4 { margin: 0; }

.fs-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--fs-text-primary); background: var(--fs-bg-page);
  -webkit-font-smoothing: antialiased;
}

.fs-container { max-width: 1240px; margin: 0 auto; padding: 0 var(--fs-space-3); }
.fs-section { padding: var(--fs-space-6) 0; }
.fs-section--tinted { background: var(--fs-bg-section); }
.fs-section--alt { background: var(--fs-bg-section-alt); }

.fs-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--fs-brand); margin-bottom: var(--fs-space-2);
}
.fs-section-header { max-width: 760px; margin-bottom: var(--fs-space-4); }
.fs-section-title {
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: var(--fs-space-2);
}
.fs-section-sub { font-size: 17px; color: var(--fs-text-secondary); line-height: 1.55; }

/* ============== HERO ============== */
.fs-hero { padding: var(--fs-space-5) 0 var(--fs-space-6); background: linear-gradient(180deg, var(--fs-bg-section) 0%, #ffffff 100%); }
.fs-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--fs-space-4); align-items: center; }
.fs-hero-h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: var(--fs-space-3); color: var(--fs-text-primary);
}
.fs-hero-h1 .accent { color: var(--fs-brand); }
.fs-hero-sub { font-size: 18px; line-height: 1.55; color: var(--fs-text-secondary); margin-bottom: var(--fs-space-3); max-width: 560px; }

.fs-cta-row { display: flex; flex-wrap: wrap; gap: var(--fs-space-2); }
.fs-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: var(--fs-radius-md);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.15s ease; font-family: inherit;
}
.fs-btn--primary { background: var(--fs-brand); color: #fff; }
.fs-btn--primary:hover { background: var(--fs-brand-deep); transform: translateY(-1px); box-shadow: var(--fs-shadow-md); }
.fs-btn--secondary { background: transparent; color: var(--fs-brand); border: 1.5px solid var(--fs-brand); }
.fs-btn--secondary:hover { background: var(--fs-brand-tint); }
.fs-btn--on-deep { background: #fff; color: var(--fs-bg-deep); }
.fs-btn--on-deep:hover { background: var(--fs-bg-section-alt); }

/* Hero compliance summary card */
.fs-hero-card { background: var(--fs-bg-deep); color: var(--fs-text-on-deep); border-radius: var(--fs-radius-lg); padding: var(--fs-space-4); box-shadow: var(--fs-shadow-lg); }
.fs-hero-card-title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fs-text-on-deep-muted); margin-bottom: var(--fs-space-3); }
.fs-hero-card-list { display: flex; flex-direction: column; gap: 12px; padding-bottom: var(--fs-space-3); border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: var(--fs-space-3); }
.fs-hero-card-row { display: flex; align-items: center; justify-content: space-between; }
.fs-hero-card-label { font-size: 13px; font-weight: 500; color: #fff; }
.fs-hero-card-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 10.5px; font-weight: 600; border-radius: 10px; letter-spacing: 0.3px; text-transform: uppercase; }
.fs-hero-card-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.fs-hero-card-pill--aligned { background: rgba(16,185,129,0.18); color: #6ee7b7; }
.fs-hero-card-pill--pending { background: rgba(245,158,11,0.18); color: #fbbf24; }
.fs-hero-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fs-space-2); }
.fs-hero-card-stat-num { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600; color: #fff; line-height: 1; }
.fs-hero-card-stat-label { font-size: 11px; color: var(--fs-text-on-deep-muted); margin-top: 4px; }

/* ============== REALITY CARDS ============== */
.fs-reality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fs-space-3); }
.fs-reality-card { background: var(--fs-bg-panel); border: 1px solid var(--fs-border); border-radius: var(--fs-radius-md); padding: var(--fs-space-4); position: relative; }
.fs-reality-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--fs-brand); }
.fs-reality-card h3 { font-size: 18px; font-weight: 700; margin-bottom: var(--fs-space-2); color: var(--fs-text-primary); letter-spacing: -0.01em; line-height: 1.3; }
.fs-reality-card p { font-size: 14.5px; line-height: 1.6; color: var(--fs-text-secondary); }

/* ============== FRAMEWORK MATRIX ============== */
.fs-framework-table-wrap { background: var(--fs-bg-panel); border: 1px solid var(--fs-border); border-radius: var(--fs-radius-lg); overflow: hidden; box-shadow: var(--fs-shadow-sm); }
.fs-framework-scroll { overflow-x: auto; }
.fs-framework-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.fs-framework-table thead th { background: var(--fs-bg-section-alt); color: var(--fs-text-primary); font-size: 13px; font-weight: 700; letter-spacing: -0.01em; padding: var(--fs-space-2) var(--fs-space-3); text-align: left; border-bottom: 2px solid var(--fs-border-strong); }
.fs-framework-table tbody td { padding: var(--fs-space-3); border-bottom: 1px solid var(--fs-border); font-size: 14px; color: var(--fs-text-secondary); line-height: 1.5; vertical-align: top; }
.fs-framework-table tbody tr:last-child td { border-bottom: none; }
.fs-framework-name { font-weight: 700; color: var(--fs-text-primary); font-size: 15px; display: block; margin-bottom: 2px; }
.fs-framework-acronym { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fs-text-muted); display: block; }
.fs-framework-scope { font-size: 13px; color: var(--fs-text-secondary); max-width: 280px; }
.fs-framework-posture { font-size: 13px; color: var(--fs-text-primary); max-width: 360px; }
.fs-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 11px; font-weight: 600; border-radius: 12px; letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap; }
.fs-status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fs-status-pill--attested { background: #d1fae5; color: var(--fs-accent-success); }
.fs-status-pill--aligned { background: var(--fs-brand-tint); color: var(--fs-brand); }
.fs-status-pill--pending { background: #fef3c7; color: var(--fs-accent-warning); }
.fs-status-pill--neutral { background: #f1f5f9; color: var(--fs-accent-neutral); }
.fs-framework-note { margin-top: var(--fs-space-3); padding: var(--fs-space-2) var(--fs-space-3); background: var(--fs-bg-section); border-left: 3px solid var(--fs-brand-tint); font-size: 13px; color: var(--fs-text-muted); line-height: 1.55; border-radius: 0 var(--fs-radius-sm) var(--fs-radius-sm) 0; }

/* ============== CAPABILITY MAP ============== */
.fs-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fs-space-3); }
.fs-cap-card { background: var(--fs-bg-panel); border: 1px solid var(--fs-border); border-radius: var(--fs-radius-md); padding: var(--fs-space-3); display: flex; flex-direction: column; gap: var(--fs-space-2); }
.fs-cap-title { font-size: 15px; font-weight: 700; color: var(--fs-text-primary); letter-spacing: -0.01em; line-height: 1.3; }
.fs-cap-outcome { font-size: 13.5px; color: var(--fs-text-secondary); line-height: 1.5; flex: 1; }
.fs-cap-ref { font-size: 11.5px; color: var(--fs-text-muted); font-style: italic; padding-top: var(--fs-space-2); border-top: 1px dashed var(--fs-border); margin-top: auto; }

/* ============== COMPARISON MATRIX ============== */
.fs-matrix-wrap { background: var(--fs-bg-panel); border: 1px solid var(--fs-border); border-radius: var(--fs-radius-md); overflow: hidden; box-shadow: var(--fs-shadow-sm); }
.fs-matrix-scroll { overflow-x: auto; }
.fs-matrix { width: 100%; border-collapse: collapse; min-width: 1000px; }
.fs-matrix thead th { background: var(--fs-bg-section-alt); color: var(--fs-text-primary); font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; padding: var(--fs-space-2); text-align: left; border-bottom: 2px solid var(--fs-border-strong); }
.fs-matrix thead th.fs-col-wuc { background: var(--fs-brand); color: #fff; }
.fs-matrix tbody td { padding: var(--fs-space-2); border-bottom: 1px solid var(--fs-border); font-size: 12.5px; color: var(--fs-text-secondary); line-height: 1.4; vertical-align: top; }
.fs-matrix tbody tr:last-child td { border-bottom: none; }
.fs-matrix tbody td.fs-row-label { font-weight: 600; color: var(--fs-text-primary); background: var(--fs-bg-section); width: 200px; }
.fs-matrix tbody td.fs-cell-wuc { background: rgba(0, 82, 184, 0.04); color: var(--fs-text-primary); font-weight: 500; }
.fs-mark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700; margin-right: 6px; flex-shrink: 0; }
.fs-mark--good { background: #d1fae5; color: var(--fs-accent-success); }
.fs-mark--partial { background: #fef3c7; color: var(--fs-accent-warning); }
.fs-mark--gap { background: #fee2e2; color: var(--fs-accent-danger); }
.fs-cell-line { display: flex; align-items: flex-start; }

/* ============== ENGAGEMENT PROFILE ============== */
.fs-engagement-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--fs-space-4); align-items: stretch; }
.fs-engagement-narrative { background: var(--fs-bg-panel); border: 1px solid var(--fs-border); border-left: 4px solid var(--fs-brand); border-radius: var(--fs-radius-md); padding: var(--fs-space-4); }
.fs-engagement-narrative h3 { font-size: 16px; font-weight: 700; margin-bottom: var(--fs-space-2); color: var(--fs-text-primary); letter-spacing: -0.01em; }
.fs-engagement-narrative p { font-size: 14.5px; line-height: 1.65; color: var(--fs-text-secondary); margin-bottom: var(--fs-space-2); }
.fs-engagement-narrative p:last-child { margin-bottom: 0; }
.fs-engagement-narrative .label-line { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--fs-brand); margin-top: var(--fs-space-3); margin-bottom: var(--fs-space-1); }

.fs-engagement-stats { background: var(--fs-bg-deep); color: var(--fs-text-on-deep); border-radius: var(--fs-radius-md); padding: var(--fs-space-4); display: flex; flex-direction: column; gap: var(--fs-space-3); }
.fs-engagement-stats-title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fs-text-on-deep-muted); margin-bottom: var(--fs-space-2); }
.fs-engagement-stat { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--fs-space-2); border-bottom: 1px solid rgba(255,255,255,0.08); }
.fs-engagement-stat:last-child { border-bottom: none; padding-bottom: 0; }
.fs-engagement-stat-label { font-size: 12.5px; color: var(--fs-text-on-deep-muted); flex: 1; line-height: 1.3; padding-right: var(--fs-space-2); }
.fs-engagement-stat-value { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 600; color: #fff; white-space: nowrap; }

/* ============== FAQ ============== */
.fs-faq-list { max-width: 880px; margin: 0 auto; }
.fs-faq-item { border-bottom: 1px solid var(--fs-border); }
.fs-faq-item:first-child { border-top: 1px solid var(--fs-border); }
.fs-faq-q { width: 100%; background: none; border: none; padding: var(--fs-space-3) 0; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: inherit; font-size: 16.5px; font-weight: 600; color: var(--fs-text-primary); text-align: left; letter-spacing: -0.01em; list-style: none; }
.fs-faq-q::-webkit-details-marker { display: none; }
.fs-faq-q:hover { color: var(--fs-brand); }
.fs-faq-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--fs-bg-section); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; margin-left: var(--fs-space-2); transition: transform 0.2s ease, background 0.2s ease; }
.fs-faq-item[open] .fs-faq-icon { background: var(--fs-brand); color: #fff; transform: rotate(45deg); }
.fs-faq-a { padding: 0 0 var(--fs-space-3) 0; font-size: 15px; line-height: 1.65; color: var(--fs-text-secondary); max-width: 760px; }
.fs-faq-a code { background: var(--fs-bg-section); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; font-family: 'JetBrains Mono', monospace; }

/* ============== FINAL CTA ============== */
.fs-final-cta { background: var(--fs-brand); color: #fff; text-align: center; padding: var(--fs-space-6) var(--fs-space-3); }
.fs-final-cta-inner { max-width: 720px; margin: 0 auto; }
.fs-final-cta-h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: var(--fs-space-3); }
.fs-final-cta-sub { font-size: 17px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; margin-bottom: var(--fs-space-4); }
.fs-final-cta-row { display: flex; justify-content: center; gap: var(--fs-space-2); flex-wrap: wrap; }
.fs-final-cta-fallback { margin-top: var(--fs-space-3); font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.fs-final-cta-fallback a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }

/* ============== RESPONSIVE ============== */
@media (max-width: 1080px) { .fs-cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .fs-hero-grid { grid-template-columns: 1fr; }
  .fs-reality-grid { grid-template-columns: 1fr; }
  .fs-cap-grid { grid-template-columns: 1fr; }
  .fs-engagement-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fs-section { padding: var(--fs-space-5) 0; }
  .fs-section-header { margin-bottom: var(--fs-space-3); }
  .fs-cta-row { flex-direction: column; align-items: stretch; }
  .fs-btn { justify-content: center; }
}

/* ===== MOBILE OVERFLOW RESCUE — added 2026-05-09 (sweep) =====
   Generic [class*=...] selectors so it works for any page-prefix variant. */
@media (max-width: 768px) {
    [class*="-trust-row"],
    [class*="-trust-strip"],
    [class*="-badge-row"] {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    [class*="-trust-cell"],
    [class*="-badge-cell"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    button[class*="-faq-q"],
    button[class*="-faq-q"] > span,
    [class*="-faq-question"],
    [class*="-faq-question"] > span {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto;
    }
    [class*="-matrix-wrap"],
    [class*="-table-wrap"],
    [class*="-compare-wrap"] {
        max-width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    [class*="-matrix"]:not([class*="-wrap"]),
    [class*="-compare-table"] {
        min-width: 600px;
        max-width: none;
    }
    [class*="-hero"],
    [class*="-hero"] * {
        max-width: 100vw;
    }
    [class*="-stats-row"],
    [class*="-metric-row"],
    [class*="-kpi-row"] {
        flex-wrap: wrap !important;
        gap: 16px !important;
    }
    [class*="-stat-cell"],
    [class*="-metric-cell"],
    [class*="-kpi-cell"] {
        flex: 1 1 calc(50% - 16px) !important;
        min-width: 0 !important;
    }
    [class*="-pillar-grid"],
    [class*="-feature-grid"],
    [class*="-card-grid"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    img, picture, svg, video, iframe {
        max-width: 100%;
        height: auto;
    }
    html, body {
        max-width: 100vw;
        overflow-x: clip;
    }
}
@media (max-width: 480px) {
    [class*="-trust-cell"] { font-size: 14px; }
    button[class*="-faq-q"] { padding: 14px 16px; }
    [class*="-stat-cell"],
    [class*="-metric-cell"],
    [class*="-kpi-cell"] {
        flex: 1 1 100% !important;
    }
}
/* ===== end MOBILE OVERFLOW RESCUE ===== */

/* ===== MOBILE OVERFLOW RESCUE v2 — added 2026-05-09 =====
   Supplements v1. Targets residuals discovered via DOM probe:
   - tables with hardcoded min-width that exceed viewport (e.g., .cio-matrix 880px)
   - exit-intent banners and notification overlays with fixed pixel widths
   - reCAPTCHA badge oversize on narrow phones */
@media (max-width: 768px) {
    /* Tables: any matrix/compare table becomes a self-scrolling block */
    table[class*="-matrix"],
    table[class*="-compare"],
    [class*="-matrix"]:not([class*="-wrap"]),
    [class*="-compare-table"] {
        display: block !important;
        overflow-x: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
    }
    /* Inner table layout preserved while parent is overflow-scrollable */
    table[class*="-matrix"] thead,
    table[class*="-matrix"] tbody,
    table[class*="-matrix"] tr {
        display: table-row-group;
    }
    table[class*="-matrix"] thead { display: table-header-group; }
    table[class*="-matrix"] tr { display: table-row; }

    /* Exit banners / popup asides: fit narrow viewport */
    aside[id*="exit"],
    aside[class*="exit"],
    [id*="-exit-banner"],
    [class*="-exit-banner"],
    [id*="-popup"],
    [class*="-popup-card"] {
        max-width: calc(100vw - 32px) !important;
        width: auto !important;
        left: 16px !important;
        right: 16px !important;
    }

    /* Generic table protection — last-resort catch-all */
    table {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* reCAPTCHA badge — shrink so it doesn't dominate the corner */
    .grecaptcha-badge {
        transform: scale(0.75);
        transform-origin: bottom right;
    }

    /* Tighter exit-banner padding on small phones */
    aside[id*="exit"],
    [class*="-exit-banner"] {
        padding: 16px !important;
    }
}
/* ===== end MOBILE OVERFLOW RESCUE v2 ===== */
