/* ==========================================================================
   businessbankindex.com  shared design system
   Single source of visual truth. Derived from the provided homepage design.
   Do not introduce a new font family, accent colour, or background.
   ========================================================================== */

:root {
  /* Colour tokens (from the provided design) */
  --ink:          #0B1E33;  /* primary deep navy: text, dark sections   */
  --ink-deep:     #08182A;  /* hero background                          */
  --ink-darker:   #061320;  /* footer                                   */
  --paper:        #FFFFFF;  /* cards, alt sections                      */
  --cream:        #F4F1EA;  /* page background (warm off white)         */
  --border:       #ECE7DC;  /* hairline borders on cards                */
  --accent:       #1F6F54;  /* emerald: CTAs, links, active states      */
  --accent-dark:  #185A44;  /* CTA hover                                */
  --accent-soft:  #7FD3B2;  /* mint: highlights on dark, logo accent    */
  --accent-tint:  #EAF3EF;  /* icon chips on light                      */
  --muted:        #6B7780;  /* secondary text                           */
  --muted-2:      #9AA6AE;  /* labels, meta                             */
  --sponsored-bg: #FBF3DF;  /* sponsored badge background               */
  --sponsored-fg: #9A7B2E;  /* sponsored badge text                     */

  /* Shape and spacing */
  --r-card: 16px;
  --r-media: 18px;
  --r-input: 11px;
  --r-pill: 100px;
  --maxw: 1240px;
  --gutter: 40px;
  --shadow-lift: 0 22px 44px -22px rgba(11,30,51,0.38);
  --shadow-row: 0 18px 40px -24px rgba(11,30,51,0.34);

  --font-sans: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.55;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; }
a { color: var(--accent); }

.bbi-wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.bbi-section { padding-top: 96px; padding-bottom: 40px; }

/* ---- Keyframes ---------------------------------------------------------- */
@keyframes bbiUp   { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bbiFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bbiKen  { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.02) translate(-1%, -1%); } }
@keyframes bbiPulse{ 0%,100% { opacity: .35; } 50% { opacity: .9; } }

/* Scroll reveal: hidden until .is-in is added by IntersectionObserver */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s cubic-bezier(.16,.84,.44,1), transform .85s cubic-bezier(.16,.84,.44,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Navigation --------------------------------------------------------- */
.bbi-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(8,22,38,0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bbi-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.bbi-brand .mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -0.5px; }
.bbi-brand .word { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -0.3px; }
.bbi-brand .word em { font-style: normal; color: var(--accent-soft); }
.bbi-nav-links { display: flex; align-items: center; gap: 30px; }
.bbi-nav-links a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; }
.bbi-nav-links a:hover { color: #fff; }
.bbi-nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 8px; background: #fff; color: var(--ink) !important; font-size: 14px; font-weight: 700; }
.bbi-nav-cta:hover { background: var(--accent-soft); }
.bbi-nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; padding: 4px 8px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: none; border-radius: var(--r-input); transition: background .2s, transform .2s, border-color .2s; }
.btn-primary { padding: 14px 26px; background: var(--accent); color: #fff; font-size: 16px; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-dark { padding: 11px 18px; background: var(--ink); color: #fff; font-size: 14px; }
.btn-dark:hover { background: var(--accent); }
.btn-light { padding: 15px 26px; background: #fff; color: var(--ink); font-size: 15.5px; }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost { padding: 15px 26px; background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 15.5px; }
.btn-ghost:hover { border-color: #fff; }

/* ---- Section eyebrow + headings ----------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.eyebrow .tick { width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.h2 { margin: 14px 0 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.04; }
.h2[style*="28px"] { letter-spacing: -0.4px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-link { flex: 0 0 auto; color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }

/* ---- Snapshot box (template section 1) ---------------------------------- */
.snapshot { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px 28px; box-shadow: var(--shadow-lift); }
.snapshot .label { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted-2); }
.snapshot .answer { margin: 6px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -0.3px; color: var(--ink); }
.snapshot dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; margin: 20px 0 0; }
.snapshot dt { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted-2); }
.snapshot dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.snapshot .dates { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* ---- Not advice banner (template section 2) ----------------------------- */
.not-advice { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; padding: 12px 16px; background: var(--accent-tint); border: 1px solid var(--border); border-radius: 10px; color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.not-advice svg { flex: 0 0 auto; margin-top: 1px; }

/* ---- Body prose --------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -1px; margin: 48px 0 14px; }
.prose h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; color: var(--ink); font-size: 17px; }
.prose a { color: var(--accent); font-weight: 600; }
.quick-answer { padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 12px 12px 0; font-size: 18px; font-weight: 500; }
.as-of { font-size: 12px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- Fees and features table (template section 6) ----------------------- */
.fee-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.fee-table caption { caption-side: top; text-align: left; padding: 0 0 12px; }
.fee-table th, .fee-table td { padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border); }
.fee-table thead th { background: var(--cream); font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.fee-table tbody th { font-weight: 600; color: var(--muted); width: 38%; }
.fee-table tbody td, .fee-table td { font-weight: 600; color: var(--ink); }
.fee-table tr:last-child th, .fee-table tr:last-child td { border-bottom: none; }

/* ---- Country / type / bank cards (homepage + hubs) ---------------------- */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.country-card { position: relative; display: block; padding: 22px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--border); text-decoration: none; overflow: hidden; transition: transform .35s cubic-bezier(.16,.84,.44,1), box-shadow .35s; }
.country-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.country-card .top { display: flex; align-items: center; justify-content: space-between; }
.country-card img { width: 52px; height: 39px; object-fit: cover; border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); background: var(--border); }
.country-card .chip-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--accent); }
.country-card .name { margin-top: 22px; font-size: 19px; font-weight: 700; letter-spacing: -0.4px; color: var(--ink); }
.country-card .meta { margin-top: 4px; font-size: 14px; color: var(--muted); font-weight: 500; }

.type-card { position: relative; display: block; height: 300px; border-radius: var(--r-media); overflow: hidden; text-decoration: none; border: 1px solid var(--border); }
.type-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); transition: transform 1.1s cubic-bezier(.16,.84,.44,1); }
.type-card:hover img { transform: scale(1.05); }
.type-card .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,22,38,0.92) 8%, rgba(8,22,38,0.35) 55%, rgba(8,22,38,0.1) 100%); }
.type-card .body { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.type-card .count { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); color: #C7E8DA; font-size: 12px; font-weight: 700; }
.type-card .name { margin-top: 12px; font-size: 23px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.type-card .desc { margin-top: 5px; font-size: 14px; color: rgba(255,255,255,0.74); font-weight: 400; line-height: 1.45; }

/* ---- Bank rows (top rated / compare module) ----------------------------- */
.bank-row { display: grid; grid-template-columns: 56px 1.6fr 1fr 1fr auto; align-items: center; gap: 28px; padding: 24px 28px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-card); transition: border-color .25s, box-shadow .25s; }
.bank-row:hover { border-color: var(--accent); box-shadow: var(--shadow-row); }
.bank-row .logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 13px; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.bank-row .name { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; }
.bank-row .blurb { margin-top: 4px; font-size: 14px; color: var(--muted); font-weight: 500; }
.bank-row .col-label { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted-2); }
.bank-row .col-value { margin-top: 3px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.badge-sponsored { padding: 3px 8px; border-radius: 5px; background: var(--sponsored-bg); color: var(--sponsored-fg); font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.rating { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.rating .val { font-size: 18px; font-weight: 800; color: var(--ink); }

/* ---- Compare module (primary CTA, only where available) ----------------- */
.compare-module { margin: 40px 0; padding: 28px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-card); }
.compare-module h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.6px; }
.compare-module p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.compare-unavailable { margin: 40px 0; padding: 20px 24px; background: var(--cream); border: 1px dashed var(--muted-2); border-radius: var(--r-card); color: var(--muted); font-size: 15px; }

/* ---- FAQ (template section 10) ------------------------------------------ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-size: 18px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; } /* en dash glyph is decorative UI, not body copy */
.faq details[open] summary { color: var(--accent); }
.faq .answer { padding: 0 0 22px; font-size: 16px; color: var(--ink); max-width: 72ch; }

/* ---- Change note + related (sections 11, 12) ---------------------------- */
.change-note { margin: 32px 0; padding: 16px 20px; background: var(--cream); border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--muted); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; padding: 18px 20px; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .2s, transform .2s; }
.related a:hover { border-color: var(--accent); transform: translateY(-3px); }
.related a span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- Breadcrumb --------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--muted-2); }

/* ---- Newsletter band (The Business Banking Brief) ----------------------- */
.brief-band { background: var(--ink); color: #fff; }
.brief-band .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 56px var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.brief-band h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -1px; max-width: 18ch; }
.brief-band p { margin: 10px 0 0; color: rgba(255,255,255,0.7); max-width: 46ch; }
.brief-form { display: flex; flex-wrap: wrap; gap: 10px; }
.brief-form input { padding: 14px 16px; border-radius: var(--r-input); border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; font-family: inherit; font-size: 15px; min-width: 240px; }
.brief-form input::placeholder { color: rgba(255,255,255,0.5); }

/* ---- Footer ------------------------------------------------------------- */
.bbi-footer { background: var(--ink-darker); color: rgba(255,255,255,0.6); padding: 64px var(--gutter) 36px; }
.bbi-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.bbi-footer .brand { display: flex; align-items: center; gap: 11px; }
.bbi-footer .brand .mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; font-size: 16px; }
.bbi-footer .brand .word { color: #fff; font-weight: 700; font-size: 16px; }
.bbi-footer h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin: 0 0 16px; }
.bbi-footer .links { display: flex; flex-direction: column; gap: 11px; }
.bbi-footer a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; }
.bbi-footer a:hover { color: #fff; }
.bbi-footer .blurb { margin: 18px 0 0; max-width: 36ch; font-size: 14px; line-height: 1.6; }
.bbi-disclaimer { padding-top: 24px; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,0.5); max-width: 96ch; }
.bbi-footer .legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
.bbi-footer .legal nav { display: flex; gap: 22px; }
.bbi-footer .legal a { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ---- Hero (homepage) ---------------------------------------------------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--ink-deep); }
.hero .bg { position: absolute; inset: 0; overflow: hidden; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; animation: bbiKen 22s ease-out forwards; opacity: 0.5; }
.hero .scrim1 { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(8,22,38,0.96) 0%, rgba(8,22,38,0.82) 42%, rgba(8,22,38,0.45) 100%); }
.hero .scrim2 { position: absolute; inset: 0; background: radial-gradient(120% 80% at 0% 100%, rgba(31,111,84,0.42) 0%, rgba(31,111,84,0) 55%); }
.hero .inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 72px var(--gutter) 60px; }
.hero .pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border: 1px solid rgba(127,211,178,0.4); border-radius: var(--r-pill); background: rgba(31,111,84,0.18); margin-bottom: 30px; opacity: 0; animation: bbiFade .7s ease-out 0.05s forwards; }
.hero .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); animation: bbiPulse 2.4s ease-in-out infinite; }
.hero .pill span { color: #C7E8DA; font-size: 13px; font-weight: 600; letter-spacing: 0.2px; }
.hero h1 { margin: 0; max-width: 16ch; color: #fff; font-size: clamp(44px, 6.2vw, 88px); line-height: 0.98; font-weight: 800; letter-spacing: -2px; opacity: 0; animation: bbiUp .9s cubic-bezier(.16,.84,.44,1) 0.12s forwards; }
.hero h1 em { font-family: var(--font-serif); font-weight: 500; font-style: italic; letter-spacing: -1px; }
.hero .sub { margin: 26px 0 0; max-width: 56ch; color: rgba(255,255,255,0.74); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; font-weight: 400; opacity: 0; animation: bbiUp .9s cubic-bezier(.16,.84,.44,1) 0.24s forwards; }
.hero .search-wrap { margin-top: 40px; opacity: 0; animation: bbiUp .9s cubic-bezier(.16,.84,.44,1) 0.36s forwards; }

/* Search panel */
.search-panel { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; padding: 9px; background: rgba(255,255,255,0.97); border-radius: var(--r-card); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7); max-width: 860px; }
.selector { position: relative; flex: 1 1 240px; }
.selector > button { display: flex; align-items: center; gap: 13px; width: 100%; height: 100%; padding: 14px 18px; border: none; border-radius: var(--r-input); background: transparent; cursor: pointer; text-align: left; font-family: inherit; }
.selector > button:hover { background: var(--cream); }
.selector .field-label { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted-2); }
.selector .field-value { font-size: 16px; font-weight: 600; color: var(--ink); }
.selector-divider { width: 1px; background: #E7E2D6; margin: 8px 0; }
.dropdown { position: absolute; top: calc(100% + 10px); left: 0; width: 320px; max-height: 340px; overflow-y: auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px -16px rgba(8,22,38,0.4); border: 1px solid var(--border); padding: 8px; z-index: 30; }
.dropdown[hidden] { display: none; }
.dropdown button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: none; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; font-family: inherit; }
.dropdown button:hover { background: var(--cream); }
.dropdown img { width: 28px; height: 21px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.18); background: var(--border); }
.dropdown .glyph { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-tint); color: var(--accent); font-size: 15px; }
.dropdown .opt-name { flex: 1; font-size: 15px; font-weight: 600; color: var(--ink); }
.dropdown .opt-count { font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.search-btn { flex: 0 0 auto; padding: 0 30px; }
.chips { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips .label { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500; }
.chip { padding: 7px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--r-pill); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.chip:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); }

/* Stats strip */
.stats { background: var(--ink); }
.stats .grid { grid-template-columns: repeat(4, 1fr); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); gap: 0; }
.stats .cell { padding: 38px 28px; border-right: 1px solid rgba(255,255,255,0.08); }
.stats .cell:first-child { padding-left: 0; }
.stats .cell:last-child { padding-right: 0; border-right: none; }
.stats .num { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; color: #fff; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.stats .num.mint { color: var(--accent-soft); }
.stats .cap { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 500; }

/* CTA banner */
.cta-banner { position: relative; overflow: hidden; background: var(--ink-deep); }
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.cta-banner .scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,22,38,0.95), rgba(31,111,84,0.55)); }
.cta-banner .inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 80px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px; }
.cta-banner h2 { margin: 0; max-width: 18ch; color: #fff; font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.06; }
.cta-banner p { margin: 16px 0 0; max-width: 50ch; color: rgba(255,255,255,0.72); font-size: 17px; line-height: 1.55; }
.cta-banner .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Article layout (hub and detail pages) ------------------------------ */
.article { max-width: var(--maxw); margin: 0 auto; padding: 48px var(--gutter) 80px; display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 56px; align-items: start; }
.article .aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.page-head { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) 0; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.04; margin: 8px 0 0; max-width: 20ch; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: repeat(2, 1fr); }
  .article { grid-template-columns: 1fr; }
  .article .aside { position: static; }
  .bank-row { grid-template-columns: 48px 1fr; row-gap: 14px; }
  .bank-row > div:nth-child(n+3) { grid-column: 2; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stats .cell { border-right: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .bbi-nav-links { position: fixed; inset: 60px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(8,22,38,0.98); padding: 8px var(--gutter) 20px; display: none; }
  .bbi-nav-links.open { display: flex; }
  .bbi-nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .bbi-nav-toggle { display: block; }
  .grid-4, .grid-3, .related, .snapshot dl { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .bbi-footer .cols { grid-template-columns: 1fr 1fr; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1, .hero .sub, .hero .pill, .hero .search-wrap { opacity: 1; }
}

/* ---- Focus visibility (accessibility) ----------------------------------- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent-soft); outline-offset: 2px; border-radius: 4px;
}

/* ---- Founders (About page) ---------------------------------------------- */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 8px; }
.founder-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; }
.founder-card .who { display: flex; align-items: center; gap: 14px; }
.founder-card .avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.founder-card .name { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; margin: 0; }
.founder-card .role { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); margin: 2px 0 0; }
.founder-card .founder-bio { font-size: 16px; color: var(--muted); margin: 14px 0 0; line-height: 1.6; }
.founder-card .founder-links { margin: 14px 0 0; }
.founder-card .founder-links a { font-size: 14px; font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .founders { grid-template-columns: 1fr; } }

/* ---- Article byline ------------------------------------------------------ */
.byline { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; }
.byline .avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-weight: 800; font-size: 14px; }
.byline .byline-text { font-size: 14px; color: var(--muted); line-height: 1.4; }
.byline .byline-text a { font-weight: 700; text-decoration: none; }
.byline .byline-text .byline-role { display: block; color: var(--muted-2); font-size: 13px; }

/* Uncovered / not-yet-published references: render as muted text, never as broken links */
.related .soon, .soon{color:var(--muted);opacity:.75;}
.related .soon{display:block;padding:14px 16px;border:1px dashed var(--border);border-radius:10px;background:var(--cream);text-decoration:none;cursor:default;}
.related .soon span{display:block;font-size:12px;color:var(--muted);margin-top:2px;}
