/* ---------- Fonts ----------
   Manrope (headings) and Nunito Sans (text) are free (SIL Open Font Licence).
   Self-host them for GDPR: put Manrope.woff2 and NunitoSans.woff2 in /public/fonts/
   and remove the two comment markers below. Until then a clean system font is used. */
@font-face { font-family: "Manrope"; src: local("Manrope") /*, url("/fonts/Manrope.woff2") format("woff2") */; font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: local("Nunito Sans") /*, url("/fonts/NunitoSans.woff2") format("woff2") */; font-weight: 200 1000; font-display: swap; }

:root {
  --navy: #13294B;
  --navy-2: #1E3A66;
  --blue: #1F5FBF;
  --blue-hover: #184E9F;
  --blue-soft: #EEF4FC;
  --blue-softer: #F6F9FD;
  --text: #24395C;
  --muted: #5B6F8F;
  --line: #E2E9F3;
  --line-strong: #CCD8E8;
  --white: #FFFFFF;
  --ok: #1D7A5A;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(19, 41, 75, .04), 0 8px 24px rgba(19, 41, 75, .06);
  --font-head: "Manrope", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16.5px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
img { max-width: 100%; display: block; }
svg { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 3px solid #8FB3E8; outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Disclosure + header ---------- */
.disclosure-bar { background: var(--blue-softer); border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.disclosure-bar .wrap { display: flex; gap: 10px; align-items: flex-start; padding-top: 9px; padding-bottom: 9px; }
.disclosure-bar svg { margin-top: 3px; color: var(--blue); }
.disclosure-bar p { margin: 0; }
.disclosure-bar strong { color: var(--navy); font-weight: 700; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.12rem var(--font-head); color: var(--navy); }
.brand img { border-radius: 8px; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a { text-decoration: none; color: var(--navy-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.site-header nav a:hover { background: var(--blue-soft); color: var(--navy); }
@media (max-width: 560px) { .site-header nav a:not(:first-child) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 28px; background: linear-gradient(180deg, var(--blue-softer) 0%, var(--white) 100%); }
.hero-sm { padding: 40px 0 16px; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
.eyebrow a { text-decoration: none; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; max-width: 20ch; }
.hero-sm h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); max-width: 30ch; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0 0 24px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--navy-2); font-weight: 600; font-size: .93rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--blue); }

/* ---------- List ---------- */
.compare { padding: 16px 0 64px; }
.list-head { margin-bottom: 12px; }
.jump { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: thin; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy-2); font-weight: 600; font-size: .88rem; background: #fff; white-space: nowrap; }
.jump a:hover { border-color: var(--line-strong); background: var(--blue-softer); }
.jump a span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: .78rem; font-weight: 800; }

.bank-list { display: grid; gap: 22px; }
.bank { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 84px; }
.bank-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px 0; flex-wrap: wrap; }
.rank { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--navy); color: #fff; font: 800 1rem var(--font-head); flex: none; }
.rank-sm { width: 28px; height: 28px; border-radius: 8px; font-size: .85rem; }
.bank-title { flex: 1 1 260px; min-width: 0; }
.bank-title h2, .bank-title h3 { font-size: 1.35rem; margin: 0; }
.bank-title h2 a, .bank-title h3 a { color: inherit; text-decoration: none; }
.bank-title h2 a:hover { color: var(--blue); }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.best-for { background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }

.bank-body { display: grid; gap: 22px; padding: 20px 22px 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bank-body { grid-template-columns: 260px 1fr; } .bank-action { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .bank-body { grid-template-columns: 270px 1fr 300px; } .bank-action { grid-column: auto; } }

/* Gallery */
.gallery { display: grid; gap: 10px; align-content: start; }
.stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--blue-softer); border: 1px solid var(--line); overflow: hidden; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s ease; }
.stage img.is-active { opacity: 1; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.g-prev { left: 8px; } .g-next { right: 8px; }
.stage:hover .g-nav, .g-nav:focus-visible { opacity: 1; }
@media (hover: none) { .g-nav { opacity: 1; } }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--blue-softer); aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.is-active { border: 2px solid var(--blue); }

/* Info */
.desc { margin: 0 0 14px; }
.highlights { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.highlights li { display: flex; gap: 8px; align-items: flex-start; }
.highlights svg { color: var(--ok); margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.facts div { padding: 10px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; color: var(--navy); font-weight: 600; font-size: .95rem; }

/* Action column */
.bank-action { display: flex; flex-direction: column; gap: 10px; }
.promo { background: var(--blue-soft); border: 1px solid #D5E3F6; border-radius: var(--radius-sm); padding: 14px 16px; }
.promo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; }
.promo-date { font-size: .78rem; color: var(--muted); }
.promo-title { font: 800 1.12rem/1.3 var(--font-head); color: var(--navy); margin: 0 0 6px; }
.promo-details { margin: 0 0 6px; font-size: .92rem; }
.promo-terms { margin: 0; font-size: .82rem; color: var(--muted); }
.promo-terms + .promo-terms { margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 20px; font: 700 1rem var(--font-head); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(31, 95, 191, .22); }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--blue-softer); }
.btn-choice { background: var(--navy); color: #fff; }
.btn-choice:hover { background: var(--navy-2); color: #fff; }
.btn-cta { width: 100%; padding: 15px 20px; font-size: 1.05rem; }
.cta-note { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }
.ad-label { margin: 0; font-size: .74rem; color: var(--muted); text-align: center; letter-spacing: .02em; }

.legal { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-softer); border-top: 1px solid var(--line); padding: 12px 22px; font-size: .82rem; color: var(--muted); }
.legal svg { color: var(--blue); margin-top: 2px; }
.legal p { margin: 0; }
.legal strong { color: var(--navy-2); }

/* Bank page */
.section-title { font-size: 1.3rem; margin: 40px 0 14px; }
.mini-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mini-list li { display: grid; grid-template-columns: auto 44px 1fr; gap: 4px 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list img { width: 44px; height: 33px; object-fit: contain; border-radius: 6px; background: var(--blue-softer); }
.mini-list a { font-weight: 700; color: var(--navy); text-decoration: none; }
.mini-list .small, .mini-promo { grid-column: 3; font-size: .84rem; }
.mini-promo { color: var(--blue); font-weight: 600; }
@media (min-width: 760px) { .mini-list li { grid-template-columns: auto 44px 1.2fr 1fr 1fr; } .mini-list .small, .mini-promo { grid-column: auto; } }

/* Prose pages */
.prose-wrap { padding: 8px 0 64px; }
.prose { max-width: 760px; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .25em 0; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--navy); background: var(--blue-softer); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--blue-softer); padding: 44px 0 28px; font-size: .9rem; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-links a, .linklike { color: var(--navy-2); text-decoration: none; }
.foot-links a:hover, .linklike:hover { color: var(--blue); text-decoration: underline; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.foot-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.foot-legal p { margin: 0 0 8px; max-width: 95ch; }

/* Consent */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 16px; }
.consent[hidden] { display: none; }
.consent-inner { max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(19, 41, 75, .16); padding: 18px 20px; display: grid; gap: 14px; }
@media (min-width: 760px) { .consent-inner { grid-template-columns: 1fr auto; align-items: center; } }
.consent h2 { font-size: 1.02rem; margin-bottom: 4px; }
.consent p { margin: 0; font-size: .88rem; color: var(--muted); }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; white-space: nowrap; padding: 10px 18px; font-size: .95rem; }
