/**
 * Chapter 7 feature landing page — dedicated layout.
 * New classes only (bk-ch7-*). Do not alter existing marketing classes.
 * Non-hero sections follow home-page tokens (.bk-home-page).
 * Hero section styles are intentionally kept as-is.
 */

.bk-ch7-page {
    /* Home-page tokens */
    --blue: #012cae;
    --blue-mid: #0d47e8;
    --blue-dark: #021f8f;
    --blue-pale: #eff3ff;
    --blue-lt: #3b82f6;
    --bg-grey: #f4f6f9;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-mid: #334155;
    --muted: #64748b;
    --r-lg: 16px;
    --r-md: 12px;
    --r-sm: 8px;
    --sh-lg: 0 24px 60px rgba(15, 39, 68, 0.11);
    --sh-md: 0 8px 28px rgba(15, 39, 68, 0.08);
    --sh-sm: 0 2px 10px rgba(15, 39, 68, 0.06);

    /* Hero-only (unchanged look) */
    --bk-ch7-navy: #0b1f4d;
    --bk-ch7-sky: #3b82f6;
    --bk-ch7-sky-soft: #e8f1ff;
    --bk-ch7-gold: #f59e0b;

    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg-white);
    overflow-x: hidden;
}

.bk-ch7-accent {
    color: var(--blue);
}

/* Breadcrumb */
.bk-ch7-breadcrumb {
    padding: 1.25rem 0 0;
    background: var(--bg-white);
}

.bk-ch7-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--muted);
}

.bk-ch7-breadcrumb__list a {
    color: var(--muted);
    text-decoration: none;
}

.bk-ch7-breadcrumb__list a:hover {
    color: var(--blue);
    text-decoration: underline;
}

.bk-ch7-breadcrumb__list [aria-current="page"] {
    color: var(--text-mid);
}

/* Shared section header — home badge + heading style */
.bk-ch7-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.bk-ch7-section-eyebrow {
    display: inline-block;
    margin: 0 0 0.85rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(1, 44, 174, 0.2);
    background: var(--blue-pale);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    line-height: 1;
}

.bk-ch7-section-title {
    margin: 0;
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.022em;
    color: var(--text);
}

.bk-ch7-section-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 4px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, var(--blue), var(--blue-lt));
    border-radius: 2px;
}

.bk-ch7-section-title .bk-ch7-accent {
    color: var(--blue);
}

/* Buttons — home styles for non-hero CTAs; hero keeps own rules below */
.bk-ch7-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.8rem 1.75rem;
    border-radius: var(--r-sm);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.bk-ch7-btn--light {
    background: #fff;
    color: var(--blue) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
}

.bk-ch7-btn--light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    color: var(--blue) !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — keep current look (do not match home redesign here)
   ═══════════════════════════════════════════════════════════════ */

.bk-ch7-btn--primary {
    background: linear-gradient(160deg, var(--blue-mid), var(--blue));
    color: #fff !important;
    border: none;
    border-radius: var(--r-sm);
    box-shadow: 0 8px 24px rgba(1, 44, 174, 0.35);
}

.bk-ch7-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(1, 44, 174, 0.45);
    color: #fff !important;
}

.bk-ch7-btn--outline {
    background: #fff;
    color: #0d47e8 !important;
    border: 1.5px solid #93c5fd;
    border-radius: 10px;
}

.bk-ch7-btn--outline:hover {
    background: var(--bk-ch7-sky-soft);
    border-color: var(--bk-ch7-sky);
    color: #0d47e8 !important;
}

.bk-ch7-pill {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--bk-ch7-sky-soft);
    color: var(--bk-ch7-navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
}

.bk-ch7-hero {
    padding: 1.5rem 0 3.5rem;
    background: #fff;
}

.bk-ch7-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--bk-ch7-navy);
    letter-spacing: -0.02em;
}

.bk-ch7-hero__lead {
    margin: 0 0 1.35rem;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--muted);
}

.bk-ch7-checks {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.bk-ch7-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.45;
}

.bk-ch7-checks .bi {
    color: var(--blue);
    font-size: 1.15rem;
    margin-top: 0.1rem;
    flex: 0 0 auto;
}

.bk-ch7-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bk-ch7-hero__media {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 1.5rem;
}

.bk-ch7-hero__glow {
    position: absolute;
    inset: 12% 8% 18% 8%;
    border-radius: 40%;
    background: radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.22), rgba(13, 71, 232, 0.08) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bk-ch7-hero__devices {
    position: relative;
    z-index: 1;
    width: min(100%, 700px);
    height: auto;
    filter: drop-shadow(0 22px 40px rgba(11, 31, 77, 0.18));
    animation: bk-ch7-float 5.5s ease-in-out infinite;
}

.bk-ch7-hero__laptop {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    height: auto;
    filter: drop-shadow(0 22px 40px rgba(11, 31, 77, 0.18));
    animation: bk-ch7-float 5.5s ease-in-out infinite;
}

.bk-ch7-hero__phone {
    position: absolute;
    right: 4%;
    bottom: 0;
    z-index: 2;
    width: min(34%, 170px);
    height: auto;
    filter: drop-shadow(0 16px 28px rgba(11, 31, 77, 0.28));
    animation: bk-ch7-float-delay 6s ease-in-out infinite;
}

@keyframes bk-ch7-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bk-ch7-float-delay {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Stats — home colors */
.bk-ch7-stats {
    background: var(--bg-grey);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 0;
}

.bk-ch7-stats__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
}

.bk-ch7-stats__trust {
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
}

.bk-ch7-stats__trust-title {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
}

.bk-ch7-stats__rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.bk-ch7-stars {
    display: inline-flex;
    gap: 0.12rem;
    color: #f59e0b;
    font-size: 0.95rem;
}

.bk-ch7-stars--gold {
    color: #f59e0b;
}

.bk-ch7-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    flex: 1 1 560px;
    max-width: 780px;
}

.bk-ch7-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    padding: 0.15rem 0;
}

.bk-ch7-stat .bi {
    color: var(--blue);
    font-size: 1.55rem;
    line-height: 1;
    flex: 0 0 auto;
}

.bk-ch7-stat__copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.bk-ch7-stat strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.1;
}

.bk-ch7-stat span {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.3;
}

/* Features — home icon + text colors */
.bk-ch7-features {
    padding: 4.5rem 0;
    background: var(--bg-white);
}

.bk-ch7-feature-card {
    height: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.25rem 1.4rem;
    text-align: center;
    box-shadow: var(--sh-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.bk-ch7-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(1, 44, 174, 0.25);
    background: var(--blue-pale);
    box-shadow: var(--sh-md);
}

.bk-ch7-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 18px rgba(1, 44, 174, 0.28);
}

.bk-ch7-feature-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.bk-ch7-feature-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Testimonials */
.bk-ch7-testimonials {
    padding: 4.5rem 0;
    background: var(--bg-grey);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bk-ch7-quote-card {
    height: 100%;
    margin: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem 1.35rem 1.25rem;
    box-shadow: var(--sh-md);
    display: flex;
    flex-direction: column;
}

.bk-ch7-quote-card__text {
    margin: 0 0 1.15rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-mid);
    font-style: italic;
    flex: 1 1 auto;
}

.bk-ch7-quote-card footer {
    margin-bottom: 0.85rem;
}

.bk-ch7-quote-card__name {
    display: block;
    font-style: normal;
    font-weight: 800;
    color: var(--text);
    font-size: 0.95rem;
}

.bk-ch7-quote-card__role {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

/* Integrations */
.bk-ch7-integrations {
    padding: 4.5rem 0;
    background: var(--bg-white);
}

.bk-ch7-integrations__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2.5rem;
}

.bk-ch7-integrations__item {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.72;
    filter: grayscale(1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.bk-ch7-integrations__item:hover {
    opacity: 1;
    filter: none;
}

.bk-ch7-integrations__item img {
    max-height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.bk-ch7-integrations__item img[src*="allen-credit"] {
    max-height: 56px;
}

.bk-ch7-integrations__item img[src*="bestcase"] {
    max-height: 42px;
    max-width: 200px;
}

.bk-ch7-integrations__item img[src*="plaid"] {
    max-height: 28px;
}

.bk-ch7-integrations__wordmark {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-transform: uppercase;
}

/* Why choose — home icon color */
.bk-ch7-why {
    padding: 4.5rem 0;
    background: var(--bg-grey);
    border-top: 1px solid var(--border);
}

.bk-ch7-why-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    height: 100%;
}

.bk-ch7-why-item__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--blue), var(--blue-mid));
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px rgba(1, 44, 174, 0.25);
}

.bk-ch7-why-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.bk-ch7-why-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Bottom CTA — home blue gradient */
.bk-ch7-cta {
    padding: 0 0 4.5rem;
    background: var(--bg-grey);
}

.bk-ch7-cta__banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    background: linear-gradient(145deg, var(--blue) 0%, var(--blue-mid) 60%, var(--blue-dark) 100%);
    border-radius: var(--r-lg);
    padding: 2rem 2.25rem;
    box-shadow: var(--sh-lg);
}

.bk-ch7-cta__copy {
    flex: 1 1 320px;
    max-width: 760px;
}

.bk-ch7-cta__copy h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.022em;
}

.bk-ch7-cta__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Responsive */
@media (max-width: 991.98px) {
    .bk-ch7-hero {
        padding-top: 1rem;
        padding-bottom: 2.5rem;
    }

    .bk-ch7-hero__media {
        min-height: 280px;
        margin-top: 0.5rem;
    }

    .bk-ch7-stats__trust {
        width: 100%;
        padding-right: 0;
        border-right: 0;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
        text-align: center;
    }

    .bk-ch7-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.75rem;
        max-width: none;
    }

    .bk-ch7-stat {
        padding: 0.25rem 0;
    }
}

@media (max-width: 767.98px) {
    body.feature_chapter_7_questionnaire .bk-ch7-page {
        padding-top: 0.25rem;
    }

    .bk-ch7-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bk-ch7-btn {
        width: 100%;
    }

    .bk-ch7-hero__phone {
        width: min(38%, 140px);
        right: 2%;
    }

    .bk-ch7-features,
    .bk-ch7-testimonials,
    .bk-ch7-integrations,
    .bk-ch7-why {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }

    .bk-ch7-section-head {
        margin-bottom: 1.75rem;
    }

    .bk-ch7-cta {
        padding-bottom: 2.75rem;
    }

    .bk-ch7-cta__banner {
        padding: 1.5rem 1.25rem;
        border-radius: var(--r-md);
        text-align: center;
        justify-content: center;
    }

    .bk-ch7-cta__copy {
        max-width: none;
    }

    .bk-ch7-stats__trust {
        width: 100%;
        text-align: center;
    }

    .bk-ch7-stats__rating {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bk-ch7-hero__devices,
    .bk-ch7-hero__laptop,
    .bk-ch7-hero__phone,
    .bk-ch7-feature-card,
    .bk-ch7-btn {
        animation: none !important;
        transition: none !important;
    }
}
