:root {
    --mfo-green: #08ad54;
    --mfo-green-dark: #078844;
    --mfo-green-soft: #eafaf1;
    --mfo-navy: #07112d;
    --mfo-muted: #61718d;
    --shell: 1520px;
}

/* FinPick logo needs a light header surface on the remaining legacy pages too. */
body:not(.mfo-home) .site-header { color: var(--mfo-navy); border-color: #e0ebe6; background: #fff; }
body:not(.mfo-home) .main-nav a { color: var(--mfo-navy); }
body:not(.mfo-home) .main-nav a:hover { color: var(--mfo-green-dark); }
body:not(.mfo-home) .language-menu summary,
body:not(.mfo-home) .mobile-menu summary { border-color: #d4e2dc; background: #fff; }
body:not(.mfo-home) .mobile-menu summary > span { background: var(--mfo-navy); }

/* Header — shared structure, new MFO surface. */
.mfo-home .site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 30;
    color: var(--mfo-navy);
    border: 0;
    background: transparent;
}
.mfo-home .header-row {
    min-height: 72px;
    margin-top: 20px;
    padding: 0 28px;
    gap: 42px;
    border: 1px solid rgba(222, 232, 230, .9);
    border-radius: 24px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 16px 44px rgba(25, 66, 68, .08);
}
.mfo-home .site-header .shell,
.mfo-home .mfo-hero .shell { width: min(calc(100% - 64px), 1620px); }
.mfo-home .brand-header { width: 220px; position: relative; }
.mfo-home .main-nav { gap: 12px; }
.mfo-home .main-nav a {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--mfo-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .035em;
}
.mfo-home .main-nav a:hover { color: var(--mfo-green-dark); background: #effaf4; }
.mfo-home .main-nav .nav-primary-link {
    padding-inline: 27px;
    color: #fff;
    background: linear-gradient(135deg, #0bc962, #00a748);
    box-shadow: 0 9px 22px rgba(3, 174, 79, .24);
}
.mfo-home .language-menu summary {
    min-width: 102px;
    min-height: 44px;
    padding-inline: 15px;
    color: var(--mfo-navy);
    border-color: #d9e2ed;
    background: #fff;
}
.mfo-home .language-menu summary::after { content: "⌄"; margin-left: 4px; font-size: 15px; }
.mfo-home .header-compare { display: none; }
.mfo-home .mobile-menu { display: block; }
.mfo-home .mobile-menu summary { border-color: #d9e2ed; background: #fff; }
.mfo-home .mobile-menu summary > span { background: var(--mfo-navy); }

/* Hero — the supplied transparent artwork stays independent from layout. */
.mfo-home .mfo-hero {
    height: 700px;
    min-height: 700px;
    isolation: isolate;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 42%, rgba(69, 239, 137, .27), transparent 29%),
        radial-gradient(circle at 4% 64%, rgba(82, 236, 145, .23), transparent 28%),
        linear-gradient(118deg, #f5fff9 0%, #f8fffc 42%, #effcf5 100%);
}
.mfo-home .mfo-hero::before,
.mfo-home .mfo-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 2px solid rgba(35, 207, 105, .12);
    border-radius: 50%;
    transform: rotate(-13deg);
}
.mfo-home .mfo-hero::before { width: 1150px; height: 420px; left: -310px; bottom: -118px; box-shadow: 0 0 0 55px rgba(30, 212, 103, .035), 0 0 0 112px rgba(30, 212, 103, .025); }
.mfo-home .mfo-hero::after { width: 980px; height: 330px; right: -360px; top: 170px; box-shadow: 0 0 0 64px rgba(30, 212, 103, .03); }
.mfo-home .hero-grid {
    height: 700px;
    min-height: 700px;
    grid-template-columns: minmax(0, .94fr) minmax(560px, 1.06fr);
    gap: 10px;
    padding-top: 102px;
}
.mfo-home .hero-copy { position: relative; z-index: 2; align-self: center; padding: 42px 0 58px; transform: translateY(-12px); }
.hero-eyebrow {
    width: fit-content;
    margin: 0 0 22px !important;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    color: #517361 !important;
    background: rgba(208, 250, 221, .82);
    font-size: 14px !important;
    font-weight: 650;
}
.hero-eyebrow span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #49c975; font-weight: 900; }
.mfo-home .hero h1 {
    max-width: 730px;
    color: var(--mfo-navy);
    font-size: clamp(54px, 4.55vw, 78px);
    line-height: .99;
    letter-spacing: -.058em;
    text-wrap: balance;
}
.mfo-home .hero h1 span,
.mfo-home .hero h1 strong { display: block; }
.mfo-home .hero h1 strong { color: var(--mfo-green-dark); font-weight: 860; }
.mfo-home .hero-copy > p:not(.hero-eyebrow) {
    max-width: 620px;
    margin-top: 26px;
    color: var(--mfo-muted);
    font-size: 19px;
    line-height: 1.45;
}
.mfo-home .hero-actions { margin-top: 30px; gap: 15px; }
.mfo-home .button { min-height: 58px; padding-inline: 30px; font-size: 14px; text-transform: none; }
.mfo-home .button-primary {
    border-color: var(--mfo-green);
    background: linear-gradient(135deg, #0ac45d, #00aa49);
    box-shadow: 0 12px 28px rgba(2, 166, 72, .21);
}
.mfo-home .button-primary:hover { background: linear-gradient(135deg, #08b756, #078c45); }
.mfo-home .button-secondary { border-color: #667a97; color: var(--mfo-navy); background: rgba(255,255,255,.54); }
.mfo-home .button-secondary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; }
.hero-button-arrow { margin-left: 14px; font-size: 25px; line-height: 1; }
.mfo-home .hero-media { min-height: 598px; align-self: end; display: flex; align-items: flex-end; justify-content: flex-end; transform: translateY(50px); }
.mfo-home .hero-media picture { width: 110%; max-width: 850px; margin-right: -3%; display: block; flex: 0 0 auto; }
.mfo-home .hero-media img { width: 100%; height: auto; display: block; filter: drop-shadow(0 28px 36px rgba(20, 116, 61, .12)); }

/* Catalogue controls and cards. */
.mfo-home .catalog-section { padding: 38px 0 94px; background: #fff; }
.mfo-home .catalog-heading h2 { color: var(--mfo-navy); font-size: clamp(38px, 3.2vw, 54px); }
.mfo-home .catalog-heading p { max-width: 780px; color: var(--mfo-muted); line-height: 1.55; }
.mfo-home .catalog-controls { margin-top: 30px; }
.mfo-home .search-row { gap: 12px; }
.mfo-home .search-field { height: 60px; border-color: #dbe6ee; border-radius: 14px; box-shadow: 0 10px 28px rgba(19, 56, 75, .065); }
.mfo-home .search-submit { min-width: 138px; border-radius: 14px; text-transform: uppercase; }
.mfo-home .filter-toolbar { margin: 16px 0 20px; }
.mfo-home .filter-chips a { padding: 9px 15px; border-color: #d9e3ed; color: #536887; background: #fff; }
.mfo-home .filter-chips a:hover,
.mfo-home .filter-chips a[aria-current="true"] { color: #fff; border-color: var(--mfo-green); background: var(--mfo-green); }
.mfo-home .view-switch { border: 0; background: #f0f4f8; }
.mfo-home .view-switch button[aria-pressed="true"] { box-shadow: 0 2px 8px rgba(19, 49, 78, .12); }
.mfo-home .catalog-grid { gap: 18px; }
.mfo-card {
    overflow: hidden;
    border-color: #e0e8ef;
    border-radius: 18px;
    box-shadow: 0 11px 32px rgba(27, 63, 72, .055);
}
.mfo-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(27, 73, 69, .12); }
.mfo-card-visual {
    height: 132px;
    position: relative;
    overflow: hidden;
    margin: 8px 8px 0;
    border-radius: 13px;
    background:
        radial-gradient(circle at 82% 72%, rgba(5, 191, 88, .23), transparent 29%),
        linear-gradient(135deg, #fbfffd 0%, #ecfbf3 100%);
}
.mfo-card:nth-child(4n+2) .mfo-card-visual { background: radial-gradient(circle at 82% 72%, rgba(116, 67, 239, .18), transparent 29%), linear-gradient(135deg,#fdfcff,#f2edff); }
.mfo-card:nth-child(4n+3) .mfo-card-visual { background: radial-gradient(circle at 82% 72%, rgba(255, 171, 38, .23), transparent 29%), linear-gradient(135deg,#fffefa,#fff5df); }
.mfo-card:nth-child(4n+4) .mfo-card-visual { background: radial-gradient(circle at 82% 72%, rgba(45, 132, 239, .19), transparent 29%), linear-gradient(135deg,#fbfdff,#eaf5ff); }
.mfo-card-visual::before,
.mfo-card-visual::after { content: ""; position: absolute; border-radius: 34px; transform: rotate(28deg); }
.mfo-card-visual::before { width: 88px; height: 88px; right: 14px; bottom: -27px; border: 14px solid rgba(30, 190, 94, .13); }
.mfo-card-visual::after { width: 42px; height: 42px; right: 84px; top: 35px; background: rgba(30, 190, 94, .12); }
.mfo-card-badge {
    position: absolute;
    z-index: 2;
    top: 9px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 11px;
    overflow: hidden;
    border-radius: 999px;
    color: #FFFFFF;
    background: #EA0C3E;
    font-size: 10px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mfo-logo { position: absolute; z-index: 2; inset: 35px 14px 8px; display: flex; align-items: center; justify-content: center; }
.mfo-logo > span { color: var(--mfo-green-dark); font-size: 34px; font-weight: 900; letter-spacing: -.07em; }
.mfo-logo img { position: absolute; max-width: 76%; max-height: 58px; object-fit: contain; }
.mfo-card .catalog-card-body { padding: 12px 18px 17px; }
.mfo-card .catalog-card-kicker { min-height: 17px; color: #0873c9; }
.mfo-card .catalog-card-kicker span + span::before { color: #9bb5c8; }
.mfo-card h3 { margin-top: 5px; color: var(--mfo-navy); font-size: 18px; }
.mfo-card h3 a:hover { color: var(--mfo-green-dark); }
.mfo-card .card-summary { height: 58px; min-height: 58px; margin: 6px 0 12px; display: -webkit-box; overflow: hidden; color: #60708b; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mfo-card .card-metrics { gap: 6px; }
.mfo-card .card-metrics div { min-width: 0; padding: 8px 4px; background: #edf9f3; }
.mfo-card .card-metrics dt { color: #75899a; font-size: 8px; }
.mfo-card .card-metrics dd { min-height: 28px; display: flex; align-items: center; justify-content: center; color: var(--mfo-navy); font-size: 11px; }
.mfo-card .card-actions { margin-top: 15px; }
.mfo-card .card-actions > a { color: var(--mfo-green-dark); }
.mfo-card .card-actions > a span { margin-left: 5px; font-size: 18px; }
.mfo-card .compare-check input { accent-color: var(--mfo-green); }

/* Table view keeps the original density with lender-specific facts. */
.mfo-home .catalog-table-wrap { border-color: #dfe8ee; border-radius: 16px; box-shadow: 0 12px 34px rgba(24, 58, 74, .065); }
.mfo-table { min-width: 1080px; }
.mfo-table thead th { color: #627388; background: #f3faf6; }
.mfo-table tbody tr:hover { background: #f7fcf9; }
.mfo-table-logo { width: 58px; height: 44px; position: relative; display: grid !important; flex: 0 0 58px; place-items: center; overflow: hidden; border-radius: 9px; color: #078845; background: #e9faf1; }
.mfo-table-logo b { font-size: 15px; }
.mfo-table-logo img { position: absolute; width: 82%; height: 70%; object-fit: contain; }
.fact-state { min-width: 34px; padding: 3px 7px; display: inline-flex; justify-content: center; border-radius: 999px; color: #738093; background: #f0f3f6; font-size: 10px; font-weight: 800; }
.fact-state.is-yes { color: #087542; background: #e3f8ec; }
.fact-state.is-no { color: #9c3747; background: #fff0f2; }
.mfo-table-actions { display: flex; align-items: center; gap: 12px; }
.mfo-table-actions > a { color: var(--mfo-green-dark); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.mfo-home .compare-cta { border-color: #d8ebdf; background: linear-gradient(120deg,#f5fdf8,#eafaf1); }

/* Light FinPick footer; content and information architecture stay unchanged. */
.site-footer {
    position: relative;
    overflow: hidden;
    color: #17263c;
    border-top: 1px solid #d8ebe2;
    background:
        radial-gradient(ellipse at 101% -14%, rgba(38, 217, 116, .35) 0 18%, transparent 48%),
        radial-gradient(ellipse at -8% 108%, rgba(54, 222, 132, .25) 0 18%, transparent 49%),
        linear-gradient(122deg, #fbfffd 0%, #f6fffa 50%, #edfcf4 100%);
}
.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 2px solid rgba(21, 187, 90, .12);
    border-radius: 50%;
    transform: rotate(28deg);
}
.site-footer::before { width: 980px; height: 310px; right: -430px; top: -178px; box-shadow: 0 0 0 54px rgba(24, 205, 102, .035); }
.site-footer::after { width: 890px; height: 290px; left: -390px; bottom: -175px; box-shadow: 0 0 0 62px rgba(24, 205, 102, .04); }
.site-footer .footer-shell { position: relative; z-index: 1; }
.site-footer a:hover { color: #079b4b; }
.site-footer .brand-footer { width: min(100%, 300px); }
.footer-label,
.footer-disclaimer .footer-label { color: #078e48; }
.footer-disclaimer .footer-label span { border-color: #25ae68; }
.footer-brand-block > p { color: #465a6e; }
.footer-disclaimer-copy p { color: #283b50; }
.footer-disclaimer-copy .footer-source-note,
.footer-commercial-disclosure > p:last-child,
.footer-bottom p { color: #5f7180; }
.footer-disclaimer-copy .footer-source-note { border-color: #d7e8df; }
.footer-top-cards a,
.footer-nav a { color: #1a2b40; }
.footer-top-cards a span { color: #789083; }
.footer-lead,
.footer-commercial-disclosure,
.footer-bottom { border-color: #d3e7dc; }
.footer-top-cards li { border-color: #dbeae2; }

@media (max-width: 1180px) {
    .mfo-home .header-row { gap: 22px; }
    .mfo-home .main-nav a { padding-inline: 12px; }
    .mfo-home .main-nav .nav-primary-link { padding-inline: 19px; }
    .mfo-home .hero-grid { grid-template-columns: 1fr 1fr; }
    .mfo-home .hero-media picture { width: 127%; margin-right: -16%; }
}

@media (max-width: 980px) {
    .mfo-home .header-row { min-height: 66px; margin-top: 12px; padding-inline: 18px; border-radius: 19px; }
    .mfo-home .main-nav { display: none; }
    .mfo-home .brand-header { width: 185px; }
    .mfo-home .mfo-hero { height: auto; min-height: 0; }
    .mfo-home .hero-grid { height: auto; min-height: 0; grid-template-columns: 1fr; padding-top: 100px; }
    .mfo-home .hero-copy { padding: 46px 0 0; transform: none; }
    .mfo-home .hero-media { min-height: 330px; justify-content: center; }
    .mfo-home .hero-media { transform: none; }
    .mfo-home .hero-media picture { width: min(760px, 108%); margin: -35px 0 -8%; }
    .mfo-home .filter-toolbar { align-items: flex-start; }
}

@media (max-width: 580px) {
    .mfo-home .header-row { padding-inline: 14px; }
    .mfo-home .brand-header { width: 145px; }
    .mfo-home .language-menu summary { min-width: 64px; }
    .mfo-home .language-menu summary::after { display: none; }
    .mfo-home .mfo-hero { min-height: 0; }
    .mfo-home .hero-grid { min-height: 0; padding-top: 82px; }
    .hero-eyebrow { margin-bottom: 16px !important; font-size: 12px !important; }
    .mfo-home .hero h1 { font-size: clamp(40px, 11vw, 46px); }
    .mfo-home .hero-copy > p:not(.hero-eyebrow) { margin-top: 20px; font-size: 16px; }
    .mfo-home .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 24px; }
    .mfo-home .hero-actions .button { width: 100%; }
    .mfo-home .hero-media { min-height: 230px; }
    .mfo-home .hero-media picture { width: 118%; margin-bottom: -12%; }
    .mfo-home .catalog-section { padding-top: 44px; }
    .mfo-home .catalog-heading h2 { font-size: 36px; }
    .mfo-home .search-submit { min-height: 50px; }
    .mfo-home .filter-toolbar { gap: 18px; }
    .mfo-home .view-sort-row { gap: 14px; }
}
