:root {
    --navy: #071b4d;
    --blue: #0b63f6;
    --blue-soft: #eef6ff;
    --orange: #ff6b00;
    --border: #e3eaf5;
    --bg: #f7faff;
    --text: #344563;
    --muted: #6b778c;
    --radius: 12px;
    --shadow: 0 14px 40px rgba(7, 27, 77, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #fff;
    line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 16px; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 3rem, 3rem); }
h2 { font-size: 1.75rem; }
p { margin: 0 0 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px max(20px, calc((100vw - 1180px) / 2));
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; color: var(--navy); font-weight: 800; }
.brand img { width: 180px; height: 74px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.site-nav a { color: var(--navy); font-weight: 650; }
.nav-cta { padding: 10px 14px; border-radius: 10px; background: var(--blue-soft); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 10px; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--navy); }

main { overflow: hidden; }
.hero, .section, .page-hero, .article, .breadcrumbs, .notice, .legal-note {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 40px;
    align-items: center;
    padding: 56px 0 36px;
}
.hero.hero-single {
    grid-template-columns: minmax(0, 1fr);
}
.home-hero { min-height: 520px; }
.commercial-hero { align-items: start; padding-top: 34px; }
.page-hero { padding: 56px 0 24px; }
.lead { font-size: 1.12rem; color: var(--text); max-width: 720px; }
.eyebrow { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: 0; font-size: .8rem; }
.hero-actions, .filter-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.filter-actions { justify-content: center; }
.filter-actions .button.primary { min-width: 260px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.button.primary { background: var(--orange); color: #fff; }
.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(255, 107, 0, .24);
}
.button.primary:active {
    transform: translateY(0);
}
.button.secondary { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.button.full { width: 100%; }
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 40;
}
.cookie-banner[hidden] {
    display: none;
}
.cookie-banner__content {
    width: min(980px, 100%);
    margin-inline: auto;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 44px rgba(7, 27, 77, .16);
}
.cookie-banner__content p {
    margin: 8px 0 0;
    max-width: 680px;
}
.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.selector-grid a, .ranking-card, .article-card, .info-card, .product-card, .filter-card, .empty-state, .notice {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.selector-grid a {
    display: grid;
    gap: 12px;
    min-height: 96px;
    align-items: end;
    padding: 18px;
    color: var(--navy);
    font-weight: 800;
}
.selector-grid .icon { width: 34px; height: 34px; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.comparison-band {
    width: 100%;
    max-width: none;
    padding: 48px 0;
    margin-top: 28px;
    background: linear-gradient(180deg, #eef6ff 0%, #f7faff 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.comparison-band > .section-head,
.comparison-band > h2,
.comparison-band > .comparison-table,
.comparison-band > .empty-state,
.comparison-band > .notice {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}
.comparison-band > h2 {
    margin-bottom: 22px;
}
.comparison-band > .section-head {
    display: grid;
    justify-content: start;
    align-items: start;
    gap: 8px;
    margin-bottom: 22px;
}
.comparison-band > .section-head h2,
.comparison-band > .section-head p {
    margin: 0;
}
.comparison-band .table-row {
    box-shadow: 0 10px 26px rgba(7, 27, 77, .05);
}
.comparison-band .table-head {
    box-shadow: none;
}
.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ranking-card, .article-card, .info-card { display: grid; gap: 8px; padding: 20px; color: var(--navy); min-height: 128px; }
.ranking-card span, .article-card span, .info-card span { color: var(--muted); font-weight: 500; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); gap: 24px; align-items: start; }
.notice { padding: 18px 20px; margin-top: 20px; background: var(--blue-soft); box-shadow: none; }
.icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--blue); flex: 0 0 auto; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--navy); font-weight: 750; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .icon { width: 24px; height: 24px; }
.back-link {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 800;
}
.back-link::before {
    content: "<";
    margin-right: 7px;
    color: var(--blue);
}
.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 54px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #f7faff, #eef6ff);
}
.feature-strip div { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 0 18px; }
.feature-strip div + div { border-left: 1px solid var(--border); }
.feature-strip .icon { grid-row: span 2; width: 36px; height: 36px; }
.feature-strip strong { color: var(--navy); }
.feature-strip span { color: var(--text); font-size: .94rem; }
.graphic-card .icon { width: 46px; height: 46px; margin-bottom: 6px; }
.article-card.illustrated { grid-template-columns: 72px minmax(0, 1fr); align-items: center; }
.article-card.illustrated .icon {
    grid-row: span 2;
    width: 72px;
    height: 72px;
    padding: 15px;
    color: var(--blue);
    background: var(--blue-soft);
    border-radius: 10px;
}
.editorial-band {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--blue-soft);
}
.editorial-band p,
.editorial-copy p {
    max-width: 880px;
}
.affiliate-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .35fr);
    gap: 28px;
    align-items: center;
}
.provider-logo-panel {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}
.provider-logo-panel img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
}
.directory-grid {
    align-items: stretch;
}
.directory-card {
    display: grid;
    gap: 10px;
    min-height: 150px;
    align-content: start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow);
}
.directory-card img {
    width: 116px;
    height: 48px;
    object-fit: contain;
    justify-self: start;
}
.directory-card span {
    color: var(--muted);
    font-weight: 600;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.tag-list a {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--navy);
    font-size: .84rem;
    font-weight: 800;
}
.offer-group {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}
.offer-group > h2,
.offer-group > h3 {
    margin-bottom: 0;
}
.affiliate-offer-list {
    display: grid;
    gap: 12px;
}
.affiliate-offer-card {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.5fr) minmax(180px, .35fr);
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 26px rgba(7, 27, 77, .05);
}
.affiliate-offer-main {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.affiliate-offer-main img {
    width: 96px;
    height: 42px;
    object-fit: contain;
}
.affiliate-offer-main h3 {
    margin: 0;
    font-size: 1.05rem;
}
.offer-kicker,
.offer-provider {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.3;
}
.offer-kicker {
    color: var(--blue);
    font-weight: 800;
}
.affiliate-offer-description {
    margin: 0;
    color: var(--text);
    font-size: .94rem;
}

.filter-card { padding: 20px; display: grid; gap: 14px; background: var(--bg); }
.filter-note { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.range-field { display: grid; gap: 10px; color: var(--navy); font-weight: 750; }
.range-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.range-label output { color: var(--blue); font-weight: 850; white-space: nowrap; }
label { display: grid; gap: 8px; color: var(--navy); font-weight: 750; }
input, select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    accent-color: var(--blue);
    cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(90deg, var(--blue) 0 var(--range-progress, 0%), #dbe9fb var(--range-progress, 0%) 100%);
    border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -6px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 3px 10px rgba(7, 27, 77, .18);
    -webkit-appearance: none;
    appearance: none;
}
input[type="range"]::-moz-range-track {
    height: 8px;
    background: linear-gradient(90deg, var(--blue) 0 var(--range-progress, 0%), #dbe9fb var(--range-progress, 0%) 100%);
    border-radius: 999px;
}
input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 3px 10px rgba(7, 27, 77, .18);
}
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: auto; min-height: auto; }

.comparison-table { display: grid; gap: 12px; }
.table-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(110px, .65fr)) minmax(172px, .8fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.account-table .table-row, .savings-table .table-row, .deposits-table .table-row {
    grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(110px, .65fr)) minmax(172px, .8fr);
}
.mortgage-table .table-row {
    grid-template-columns: minmax(250px, 1.35fr) repeat(5, minmax(96px, .58fr)) minmax(172px, .8fr);
}
.table-head { background: var(--navy); color: #fff; font-weight: 800; box-shadow: none; }
.bank-cell, .product-head { display: flex; gap: 14px; align-items: center; }
.bank-cell img, .product-head img { width: 82px; height: 42px; object-fit: contain; }
.bank-cell div, .product-head div { display: grid; }
.bank-cell strong, .product-head strong { color: var(--navy); }
.table-head .bank-cell strong { color: #fff; }
.bank-cell span, .product-head span { color: var(--muted); font-size: .92rem; }
.table-row > .button { white-space: nowrap; width: 100%; }
.representative { grid-column: 1 / -1; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; margin: 0; }
.representative summary { cursor: pointer; color: var(--navy); font-weight: 800; font-size: .94rem; }
.representative p { margin: 10px 0 0; font-size: .9rem; }
.representative ul { margin: 10px 0 0; padding-left: 18px; font-size: .9rem; }
.representative li + li { margin-top: 6px; }
.product-card { padding: 18px; display: grid; gap: 16px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.metrics div { padding: 10px; background: var(--bg); border-radius: 10px; }
.metrics dt { font-size: .8rem; color: var(--muted); }
.metrics dd { margin: 0; color: var(--navy); font-weight: 800; }

.breadcrumbs { padding-top: 22px; color: var(--muted); font-size: .92rem; }
.breadcrumbs a { color: var(--muted); }
.article { max-width: 820px; padding: 42px 0; }
.article-body h2 { margin-top: 30px; }
.updated { color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: #fff; }
.faq summary { cursor: pointer; color: var(--navy); font-weight: 800; }
.empty-state { padding: 24px; background: var(--bg); box-shadow: none; }
.legal-note { color: var(--muted); font-size: .92rem; padding: 0 0 32px; }
.site-footer { margin-top: 50px; padding: 34px max(20px, calc((100vw - 1180px) / 2)); background: var(--navy); color: #fff; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.site-footer a { color: #dfe9ff; display: inline-block; margin: 0 0 0 16px; }
.footer-copyright { margin: 22px 0 0; color: #dfe9ff; font-size: .92rem; }

@media (max-width: 860px) {
    .menu-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 73px;
        left: 20px;
        right: 20px;
        display: none;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
    .site-nav.is-open { display: flex; }
    .hero, .split { grid-template-columns: 1fr; }
    .affiliate-hero { grid-template-columns: 1fr; }
    .home-hero { min-height: auto; }
    .cards.three { grid-template-columns: 1fr; }
    .cookie-banner__content { display: grid; }
    .cookie-banner__actions { justify-content: start; }
    .section-head, .footer-grid { display: grid; }
    .selector-grid { grid-template-columns: 1fr; }
    .feature-strip { grid-template-columns: 1fr; gap: 16px; }
    .feature-strip div { padding: 0; }
    .feature-strip div + div { border-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
    .table-head { display: none; }
    .table-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .affiliate-offer-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .affiliate-offer-main {
        grid-template-columns: 82px minmax(0, 1fr);
    }
    .affiliate-offer-main img {
        width: 72px;
    }
    .table-row > span::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: .8rem;
        font-weight: 700;
    }
    .button { width: 100%; }
    .site-footer a { margin: 0 16px 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .button {
        transition: none;
    }

    .button.primary:hover {
        transform: none;
    }
}
