/* =============================================================================
   ComplyFlow M2025 Landing Page Design System
   Brand: #0074B7 (primary blue) · #76CDAE (green) · #003351 (dark navy)
   Font: Inter
   ============================================================================= */

/* Base reset + box-sizing (Bootstrap handles general resets) */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    color: #333;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Body paragraph baseline — 1rem (16px) everywhere unless explicitly elevated */
p { font-size: 1rem; line-height: 1.65; }

/* =============================================================================
   HEADER & LOGO
   ============================================================================= */
.cf-header {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 100;
}
.cf-header img {
    width: 200px;
    height: auto;
    /* Logo SVG already has white wordmark + colored hexagon — no filter needed */
}
@media (max-width: 768px) {
    .cf-header { top: 20px; left: 20px; }
    .cf-header img { width: 150px; }
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.cf-hero {
    background: radial-gradient(circle at left, #0074B7, #003351);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}
.cf-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}
.cf-hero .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.55;
}
@media (max-width: 768px) {
    .cf-hero { padding: 100px 0 50px; }
    .cf-hero h1 { font-size: 2rem; }
    .cf-hero .lead { font-size: 1.05rem; }
}

/* Hero video / image — bigger frame, more visual weight */
.cf-hero-media {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.45);
    transition: transform 0.3s ease;
    will-change: transform;
}
.cf-hero-media:hover { transform: translateY(-3px); }
.cf-hero-media-frame {
    background: #001f33;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-image: linear-gradient(135deg, #003c5f 0%, #001f33 100%);
}
.cf-hero-media-frame .play-btn {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255,255,255,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    will-change: transform;
}
.cf-hero-media-frame:hover .play-btn { transform: scale(1.08); }
.cf-hero-media-frame .play-btn svg {
    width: 38px; height: 38px; fill: #0074B7; margin-left: 5px;
}
.cf-hero-media-frame .placeholder-text {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    text-align: center;
    background: rgba(0,0,0,0.55);
    padding: 8px 12px;
    border-radius: 6px;
}
.cf-hero-media-frame.cf-static-image {
    background-size: cover;
    background-position: center;
    background-color: #003351;
    background-image: linear-gradient(135deg, #0074B7 0%, #003351 100%);
}

/* V2 STACK LAYOUT — full-width video below headline */
.cf-hero--stack { padding: 110px 0 60px; }
.cf-hero--stack .cf-hero-media {
    max-width: 920px;
    margin: 0 auto;
    padding: 18px;
}
.cf-hero--stack .cf-hero-media-frame .play-btn {
    width: 110px; height: 110px;
}
.cf-hero--stack .cf-hero-media-frame .play-btn svg {
    width: 44px; height: 44px;
}
.cf-hero--stack h1 { text-align: center; max-width: 880px; margin-left: auto; margin-right: auto; }
.cf-hero--stack .lead { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

/* V1 SWAP LAYOUT — video bigger on left, compact form on right */
.cf-hero--swap .cf-hero-media-frame { aspect-ratio: 16 / 10; }
.cf-watch-cta {
    margin-top: 15px;
    padding: 12px 16px;
    text-align: center;
    color: white;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: block;
}
.cf-watch-cta:hover { background: rgba(255,255,255,0.18); color: white; }
.cf-watch-cta small {
    display: block;
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* =============================================================================
   FORM (above the fold)
   2-field form per April 2026 brief — Name + Work Email only
   ============================================================================= */
.cf-form {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    color: #333;
}
.cf-form.cf-form--compact { padding: 24px; }
.cf-form.cf-form--compact h3 { font-size: 1.2rem; }
.cf-form.cf-form--compact p { font-size: 1rem; margin-bottom: 1rem; }
.cf-form.cf-form--compact .form-control { padding: 11px 14px; font-size: 16px; margin-bottom: 10px; }
.cf-form.cf-form--compact .cta-primary { padding: 12px 22px; font-size: 16px; }
.cf-form h3 {
    color: #003351;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.cf-form p { color: #666; margin-bottom: 1.4rem; font-size: 1rem; }
.cf-form .form-control {
    padding: 12px 15px;
    border: 1px solid #d6dade;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    margin-bottom: 12px;
}
.cf-form .form-control:focus {
    border-color: #0074B7;
    box-shadow: 0 0 0 3px rgba(0,116,183,0.15);
    outline: none;
}
.cf-form .cta-primary { width: 100%; margin-top: 8px; }
.cf-form .form-foot {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 14px;
    margin-bottom: 0;
}

/* =============================================================================
   BUTTONS / CTAs
   ============================================================================= */
.cta-primary {
    background-color: #0074B7;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}
.cta-primary:hover {
    background-color: #005a8f;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,116,183,0.35);
}
.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 26px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.cta-secondary:hover { background: white; color: #0074B7; }

/* =============================================================================
   TRUST BAND — full width
   ============================================================================= */
.cf-trust-band {
    background: #003351;
    color: white;
    padding: 22px 0;
    text-align: center;
}
.cf-trust-band .items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
}
.cf-trust-band .item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}
.cf-trust-band .item svg {
    width: 22px; height: 22px;
    fill: #76CDAE;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .cf-trust-band .items { gap: 14px; flex-direction: column; }
}

/* =============================================================================
   GENERIC SECTIONS
   ============================================================================= */
.cf-section { padding: 80px 0; }
.cf-section.bg-light { background: #f8f9fb; }
.cf-section.bg-white { background: #ffffff; }
.cf-section.bg-dark {
    background: linear-gradient(135deg, #003351 0%, #001f33 100%);
    color: white;
}
.cf-section-eyebrow {
    color: #0074B7;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.cf-section.bg-dark .cf-section-eyebrow { color: #76CDAE; }
.cf-section h2 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #003351;
    margin-bottom: 1.4rem;
    letter-spacing: -0.01em;
}
.cf-section.bg-dark h2 { color: white; }
.cf-section .section-lead {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.6rem;
    line-height: 1.7;
}
.cf-section.bg-dark .section-lead { color: rgba(255,255,255,0.85); }
.cf-section p { color: #555; line-height: 1.7; }
.cf-section.bg-dark p { color: rgba(255,255,255,0.85); }
@media (max-width: 768px) {
    .cf-section { padding: 56px 0; }
    .cf-section h2 { font-size: 1.7rem; }
}

/* =============================================================================
   3-COL ICON CARDS (Why this happens / Where the risk comes from / etc.)
   ============================================================================= */
.cf-3col-card {
    background: white;
    padding: 28px;
    border-radius: 10px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #ebeef2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}
.cf-3col-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.cf-3col-card .icon {
    width: 48px; height: 48px;
    background: #e6f3fa;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.cf-3col-card .icon svg {
    width: 26px; height: 26px;
    fill: #0074B7;
}
.cf-3col-card h4 {
    color: #003351;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.cf-3col-card p {
    color: #555;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* =============================================================================
   IMPACT / DARK BACKGROUND POINTS LIST
   ============================================================================= */
.cf-impact-list .impact-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cf-impact-list .impact-item:last-child { border-bottom: none; }
.cf-impact-list .impact-item strong {
    color: #76CDAE;
    font-weight: 700;
    margin-right: 6px;
}
.cf-impact-list .impact-item p {
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.65;
}

/* =============================================================================
   NUMBERED STEPS (How / What good looks like / The After)
   ============================================================================= */
.cf-steps { counter-reset: step; padding-left: 0; list-style: none; }
.cf-steps li {
    counter-increment: step;
    position: relative;
    padding: 22px 22px 22px 80px;
    margin-bottom: 14px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #0074B7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cf-steps li::before {
    content: counter(step);
    position: absolute;
    left: 22px; top: 22px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #76CDAE;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.cf-steps li strong {
    color: #003351;
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}
.cf-steps li span { color: #555; font-size: 1rem; line-height: 1.6; }

/* =============================================================================
   FAQ ACCORDION (Progressive disclosure)
   ============================================================================= */
.cf-faq {
    background: #003351;
    color: white;
    padding: 80px 0;
}
.cf-faq h2 { color: white; }
.cf-faq-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(118,205,174,0.25);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}
.cf-faq-q {
    width: 100%;
    background: none;
    border: none;
    color: white;
    text-align: left;
    padding: 18px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.cf-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: #76CDAE;
    transition: transform 0.2s ease;
    will-change: transform;
}
.cf-faq-item.open .cf-faq-q::after { content: '−'; }
.cf-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 22px;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}
.cf-faq-item.open .cf-faq-a { max-height: 500px; padding: 0 22px 22px; }

/* =============================================================================
   STATS BAR
   ============================================================================= */
.cf-stats-bar {
    background: white;
    padding: 50px 0;
    border-top: 1px solid #ebeef2;
    border-bottom: 1px solid #ebeef2;
}
.cf-stats-bar.bg-blue {
    background: radial-gradient(circle at right, #0074B7, #003351);
    color: white;
    border: none;
}
.cf-stat {
    text-align: center;
    padding: 12px;
}
.cf-stat .num {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0074B7;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.cf-stats-bar.bg-blue .cf-stat .num { color: #76CDAE; }
.cf-stat .lbl { font-size: 1rem; color: #666; }
.cf-stats-bar.bg-blue .cf-stat .lbl { color: rgba(255,255,255,0.85); }

/* =============================================================================
   CUSTOMER REVIEW HIGH PLACEMENT — slim wrapper for early-page placement
   ============================================================================= */
.cf-review-strip {
    background: #f8f9fb;
    padding: 50px 0;
    border-bottom: 1px solid #ebeef2;
}

/* =============================================================================
   CUSTOMER REVIEW (Capterra) — card
   ============================================================================= */
.cf-review {
    background: white;
    border: 1px solid #ebeef2;
    border-radius: 12px;
    padding: 30px;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.cf-review .stars {
    color: #f5b800;
    font-size: 1.2rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.cf-review .meta {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.cf-review .meta strong { color: #003351; }
.cf-review blockquote {
    margin: 0 0 18px 0;
    padding: 0 0 0 20px;
    border-left: 4px solid #76CDAE;
    color: #003351;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    font-style: normal;
}
.cf-review .reviewer { color: #555; font-size: 1rem; line-height: 1.55; }
.cf-review .reviewer strong { color: #003351; }
.cf-review .capterra-badge {
    display: inline-block;
    background: #003351;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 18px;
}
.cf-review .capterra-badge .stars-mini { color: #f5b800; margin-right: 6px; letter-spacing: 1px; }

/* =============================================================================
   TALK TO BART
   ============================================================================= */
.cf-bart {
    background: white;
    padding: 70px 0;
}
.cf-bart-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
    background: #f8f9fb;
    padding: 40px;
    border-radius: 14px;
    border: 1px solid #ebeef2;
}
.cf-bart-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0074B7, #003351);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.6rem;
    border: 3px solid white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.cf-bart-photo img { width: 100%; height: 100%; object-fit: cover; }
.cf-bart-content h4 {
    color: #003351;
    margin-bottom: 4px;
    font-weight: 700;
}
.cf-bart-content .role {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.cf-bart-content blockquote {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    border-left: 3px solid #76CDAE;
    padding: 0 0 0 18px;
    margin: 0 0 20px 0;
    font-style: italic;
}
.cf-bart-content .cta-link {
    color: #0074B7;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
}
.cf-bart-content .cta-link:hover { text-decoration: underline; }
.cf-bart-content small {
    display: block;
    color: #888;
    margin-top: 6px;
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .cf-bart-card { flex-direction: column; align-items: center; text-align: left; padding: 28px; }
}

/* Bart's email box variant (for SWMS / ROI pages) */
.cf-bart-email-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.cf-bart-email-form input {
    flex: 1;
    min-width: 200px;
    padding: 11px 14px;
    border: 1px solid #d6dade;
    border-radius: 6px;
    font-size: 15px;
}
.cf-bart-email-form input:focus {
    border-color: #0074B7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,116,183,0.15);
}
.cf-bart-email-form button { white-space: nowrap; padding: 11px 20px; font-size: 15px; }

/* =============================================================================
   SOCIAL PROOF — slim bar (placed high — right after the trust band)
   ============================================================================= */
.cf-social-bar {
    background: white;
    padding: 36px 0 32px;
    border-bottom: 1px solid #ebeef2;
}
.cf-social-bar .container { text-align: center; }
.cf-social-bar .heading {
    font-size: 0.78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 18px;
}
.cf-social-bar .row-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px 50px;
}
/* Capterra inline badge — uses real Capterra logo image. Falls back gracefully if image missing. */
.cf-social-bar .capterra-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #d9dde2;
    color: #003351;
    padding: 8px 13px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cf-social-bar .capterra-inline .capterra-logo-img {
    width: 77px;
    height: auto;
    flex-shrink: 0;
}
.cf-social-bar .capterra-inline .capterra-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
}
.cf-social-bar .capterra-inline .stars { color: #f5b800; letter-spacing: 1.2px; font-size: 0.78rem; }
.cf-social-bar .capterra-inline .rating { font-size: 0.92rem; font-weight: 700; color: #003351; }
.cf-social-bar .capterra-inline .rating strong { color: #003351; }
.cf-social-bar .capterra-inline .label { font-size: 0.68rem; color: #555; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.cf-social-bar .logos {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 36px;
    opacity: 0.85;
}
.cf-social-bar .logos .logo-text {
    color: #555;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    opacity: 0.7;
}
.cf-social-bar .logos .logo-img {
    height: 32px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.65;
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.cf-social-bar .logos .logo-img:hover { opacity: 1; filter: grayscale(0); }
@media (max-width: 768px) {
    .cf-social-bar .logos { gap: 18px; }
    .cf-social-bar .logos .logo-text { font-size: 0.95rem; }
    .cf-social-bar .logos .logo-img { height: 26px; }
}

/* =============================================================================
   DEDICATED FORM SECTION — used by V2 Stack pages
   ============================================================================= */
.cf-form-section {
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    padding: 70px 0;
    border-top: 1px solid #ebeef2;
    border-bottom: 1px solid #ebeef2;
}
.cf-form-section .cf-form {
    max-width: 580px;
    margin: 0 auto;
}
.cf-form-section .section-eyebrow-center {
    text-align: center;
    color: #0074B7;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.cf-form-section h2 {
    text-align: center;
    color: #003351;
    font-size: 1.9rem;
    margin-bottom: 12px;
}
.cf-form-section .subhead {
    text-align: center;
    color: #555;
    margin-bottom: 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================================================
   SOCIAL PROOF — logo grid (kept at bottom as broader proof band)
   ============================================================================= */
.cf-social-proof { background: #f8f9fb; padding: 50px 0; }
.cf-logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 28px;
    opacity: 0.85;
}
.cf-logo-grid .logo {
    height: 40px;
    max-width: 140px;
    filter: grayscale(1);
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
    object-fit: contain;
}
.cf-logo-grid .logo:hover { opacity: 1; filter: grayscale(0); }
.cf-logo-grid .logo-text {
    color: #555;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
}
.cf-logo-grid .logo-img {
    height: 40px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.65;
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.cf-logo-grid .logo-img:hover { opacity: 1; filter: grayscale(0); }

/* Capterra standalone badge (bottom social proof) — image + rating + label */
.cf-capterra-badge-img {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #d9dde2;
    color: #003351;
    padding: 11px 17px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    margin: 0 auto 24px;
    text-align: left;
}
.cf-capterra-badge-img .capterra-logo-img {
    width: 98px;
    height: auto;
    flex-shrink: 0;
}
.cf-capterra-badge-img .capterra-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.cf-capterra-badge-img .stars { color: #f5b800; letter-spacing: 1.5px; font-size: 0.85rem; }
.cf-capterra-badge-img .rating { font-size: 1.1rem; font-weight: 700; color: #003351; line-height: 1; }
.cf-capterra-badge-img .label { font-size: 0.72rem; color: #555; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* =============================================================================
   2-COLUMN COMPARISON TABLE (ROI page — Before / After)
   ============================================================================= */
.cf-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.cf-compare-table thead th {
    background: #003351;
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
}
.cf-compare-table thead th:first-child {
    background: #6c757d;
}
.cf-compare-table thead th:last-child {
    background: #0074B7;
}
.cf-compare-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #ebeef2;
    background: white;
    color: #444;
    font-size: 0.97rem;
}
.cf-compare-table tbody tr:nth-child(even) td { background: #f8f9fb; }

/* Time audit table (ROI page) */
.cf-audit-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.cf-audit-table thead th {
    background: #003351;
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
}
.cf-audit-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #ebeef2;
    background: white;
    color: #444;
    font-size: 0.95rem;
    vertical-align: top;
}
.cf-audit-table tbody td:nth-child(2) { font-weight: 700; color: #0074B7; }
.cf-audit-table tbody tr:nth-child(even) td { background: #f8f9fb; }

/* =============================================================================
   CONTRACTOR ONBOARDING — Mid-page video section
   ============================================================================= */
.cf-mid-video {
    background: linear-gradient(135deg, #003351 0%, #001f33 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}
.cf-mid-video h2 { color: white; margin-bottom: 12px; }
.cf-mid-video p { color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.cf-mid-video-frame {
    background: #001f33;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.cf-mid-video-frame:hover { transform: scale(1.01); }
.cf-mid-video-frame .play-btn {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.cf-mid-video-frame .play-btn svg {
    width: 40px; height: 40px; fill: #0074B7; margin-left: 5px;
}

/* =============================================================================
   AI / MODERNISATION — feature grid (Document type / What gets checked)
   ============================================================================= */
.cf-feature-grid-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.cf-feature-grid-table thead th {
    background: #003351;
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
}
.cf-feature-grid-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #ebeef2;
    background: white;
    color: #444;
    font-size: 0.97rem;
}
.cf-feature-grid-table tbody td:first-child {
    font-weight: 700;
    color: #003351;
    width: 30%;
}
.cf-feature-grid-table tbody tr:nth-child(even) td { background: #f8f9fb; }

/* =============================================================================
   PROBLEM LIST — scannable bullets (used on swms-review)
   ============================================================================= */
.cf-problem-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 22px 0;
}
.cf-problem-list li {
    position: relative;
    padding: 12px 14px 12px 44px;
    margin-bottom: 8px;
    background: #fff;
    border-left: 3px solid #0074B7;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    line-height: 1.55;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cf-problem-list li::before {
    content: "✕";
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #f5e6e8;
    color: #c8344c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* =============================================================================
   QUESTION BLOCKS (Compliance proof page)
   ============================================================================= */
.cf-question-block {
    background: white;
    padding: 26px 28px;
    border-radius: 10px;
    border-left: 4px solid #0074B7;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.cf-question-block h4 {
    color: #003351;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.cf-question-block p {
    color: #555;
    margin: 0;
    line-height: 1.65;
    font-size: 1rem;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.cf-footer {
    background: #001f33;
    color: rgba(255,255,255,0.6);
    padding: 36px 0 28px;
    text-align: center;
    font-size: 0.85rem;
}
.cf-footer a { color: #76CDAE; text-decoration: none; margin: 0 10px; }
.cf-footer a:hover { color: white; }
.cf-footer .footer-logo { margin-bottom: 18px; }
.cf-footer .footer-logo img { width: 140px; opacity: 0.85; }

/* =============================================================================
   UTILITIES
   ============================================================================= */
.cf-eyebrow-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}
.cf-section.bg-light .cf-eyebrow-tag,
.cf-section.bg-white .cf-eyebrow-tag {
    background: #e6f3fa;
    color: #0074B7;
}

.cf-divider-thin { height: 1px; background: #ebeef2; margin: 0; border: none; }

/* =============================================================================
   MID-PAGE CTA BAND — light bg with blue left border accent
   ============================================================================= */
.cf-mid-cta {
    background: #ffffff;
    border-top: 1px solid #dce8f2;
    border-bottom: 1px solid #dce8f2;
    padding: 60px 0;
    text-align: center;
}
.cf-mid-cta .cf-mid-cta-heading {
    font-size: 1.65rem;
    font-weight: 700;
    color: #003351;
    margin-bottom: 10px;
}
.cf-mid-cta .cf-mid-cta-sub {
    color: #555;
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cf-mid-cta .cf-mid-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================================================
   INLINE CTA — light bg, single focus action (used after FAQ)
   ============================================================================= */
.cf-inline-cta {
    background: #f0f6fb;
    border-top: 1px solid #dce8f2;
    border-bottom: 1px solid #dce8f2;
    padding: 56px 0;
    text-align: center;
}
.cf-inline-cta h3 {
    color: #003351;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.cf-inline-cta p {
    color: #555;
    max-width: 540px;
    margin: 0 auto 28px;
}
@media (max-width: 768px) {
    .cf-mid-cta { padding: 48px 0; }
    .cf-mid-cta .cf-mid-cta-heading { font-size: 1.35rem; }
    .cf-inline-cta { padding: 44px 0; }
    .cf-inline-cta h3 { font-size: 1.3rem; }
}

/* Visually hidden for accessibility (form labels) */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* =============================================================================
   Video play overlay — used on pages with local <video> + custom play button
   ============================================================================= */
.cf-video-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    display: inline-block; /* shrink-wraps to the video's actual size */
    width: 100%;
}
.cf-video-wrap video {
    width: 100%;
    display: block;
}
.cf-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease;
}
.cf-play-overlay:hover { background: rgba(0, 0, 0, 0.28); }
.cf-play-overlay.hidden { display: none; }
.cf-play-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease;
}
.cf-play-overlay:hover .cf-play-circle { transform: scale(1.08); }
.cf-play-circle svg {
    width: 38px;
    height: 38px;
    fill: #0074B7;
    margin-left: 5px;
}

/* =============================================================================
   CONTRACTOR EVALUATION — hero scorecard mock (side-by-side comparison)
   ============================================================================= */
.cf-scorecard-mock {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.45);
    transition: transform 0.3s ease;
    will-change: transform;
}
.cf-scorecard-mock:hover { transform: translateY(-3px); }
.cf-scorecard-mock .mock-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 12px;
}
.cf-scorecard-mock .mock-titlebar .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}
.cf-scorecard-mock .mock-titlebar .mock-title {
    margin-left: 10px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.cf-scorecard-mock .mock-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.cf-scorecard-mock .mock-card {
    background: white;
    border-radius: 10px;
    padding: 16px 14px;
}
.cf-scorecard-mock .mock-card.rank-1 {
    outline: 2px solid #76CDAE;
    outline-offset: -1px;
}
.cf-scorecard-mock .rank {
    display: inline-block;
    background: #eef1f4;
    color: #555;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.cf-scorecard-mock .rank.rank-top {
    background: #76CDAE;
    color: #003351;
}
.cf-scorecard-mock .name {
    color: #003351;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.3;
}
.cf-scorecard-mock .score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}
.cf-scorecard-mock .score .num {
    font-size: 2rem;
    font-weight: 800;
    color: #0074B7;
    line-height: 1;
    letter-spacing: -0.02em;
}
.cf-scorecard-mock .score .lbl {
    font-size: 0.72rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cf-scorecard-mock .bar {
    height: 6px;
    background: #eef1f4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.cf-scorecard-mock .bar span {
    display: block;
    height: 100%;
    background: #76CDAE;
    border-radius: 4px;
}
.cf-scorecard-mock .bar span.low { background: #e0a83c; }
.cf-scorecard-mock .pills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cf-scorecard-mock .pills li {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px 4px 24px;
    border-radius: 20px;
    position: relative;
    line-height: 1.4;
}
.cf-scorecard-mock .pills li::before {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 700;
}
.cf-scorecard-mock .pills li.ok {
    background: #e8f6f0;
    color: #1d7a5a;
}
.cf-scorecard-mock .pills li.ok::before { content: "✓"; }
.cf-scorecard-mock .pills li.warn {
    background: #faf1de;
    color: #9c6b14;
}
.cf-scorecard-mock .pills li.warn::before { content: "!"; }
.cf-scorecard-mock .mock-caption {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    padding: 12px 6px 2px;
}
@media (max-width: 576px) {
    .cf-scorecard-mock .mock-body { grid-template-columns: 1fr; }
}
