/* ==========================================================================
   Budget 4 Life — Landing page
   Stack: Bootstrap 5.3 + scoped b4l- components
   --------------------------------------------------------------------------
   01. Tokens
   02. Base
   03. Buttons & shared bits
   04. Header
   05. Hero
   06. Features (stacking cards)
   07. About
   08. How it works
   09. Why choose us (bento)
   10. Pricing
   11. FAQ
   12. Support CTA
   13. Footer
   14. Responsive
   15. Motion preferences
   ========================================================================== */

/* 01. Tokens ------------------------------------------------------------- */
:root {
  --b4l-primary: #1b93b7;
  --b4l-primary-600: #167fa0;
  --b4l-primary-700: #0f6480;
  --b4l-primary-100: #d4edf5;
  --b4l-primary-50: #ebf6fa;

  --b4l-deep: #0c3442;
  --b4l-ink: #0f2530;
  --b4l-slate: #566b76;
  --b4l-muted: #8a9ba4;
  --b4l-line: #dde8ed;
  --b4l-mist: #f2f7f9;
  --b4l-paper: #ffffff;

  --b4l-sun: #f4b740;
  --b4l-mint: #3fb68b;
  --b4l-violet: #7b6cf6;

  --b4l-font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --b4l-font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --b4l-nav-h: 76px;
  --b4l-sec-y: clamp(50px, 7vw, 80px);

  --b4l-shadow-sm: 0 1px 2px rgba(12, 52, 66, .06), 0 4px 12px -4px rgba(12, 52, 66, .08);
  --b4l-shadow: 0 1px 2px rgba(12, 52, 66, .05), 0 18px 40px -18px rgba(12, 52, 66, .22);
  --b4l-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 02. Base --------------------------------------------------------------- */
html { scroll-behavior: smooth; }

.b4l {
  font-family: var(--b4l-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--b4l-deep);
  background: var(--b4l-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.b4l h1, .b4l h2, .b4l h3 {
  font-family: var(--b4l-font-head);
  color: var(--b4l-deep);
  margin: 0;
}

.b4l p { margin: 0; }
.b4l img { max-width: 100%; display: block; }
.b4l section[id] { scroll-margin-top: calc(var(--b4l-nav-h) + 8px); }

:where(.b4l) a,
:where(.b4l) a:hover { color: inherit; }
.b4l :focus-visible {
  outline: 2px solid var(--b4l-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.b4l-h2 {
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.03em;
}

.b4l-sechead { margin-bottom: 40px; }
.b4l-sechead__text { color: var(--b4l-slate); font-size: 1.05rem; max-width: 40rem; }

.b4l-sechead--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px;
}
.b4l-sechead--split .b4l-h2 { max-width: 18ch; }
.b4l-sechead--split .b4l-sechead__text { justify-self: end; }

.b4l-sechead--center { text-align: center; max-width: 640px; margin-inline: auto; }
.b4l-sechead--center .b4l-sechead__text { margin: 16px auto 0; }

.b4l-ico-sm { width: 18px; height: 18px; }
.b4l-ico-xs { width: 14px; height: 14px; }

.b4l-hl-text{
    background: #1B90B3;
    background: linear-gradient(90deg, rgba(27, 144, 179, 1) 0%, rgba(13, 56, 72, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 03. Buttons & shared bits --------------------------------------------- */
.b4l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--b4l-font-body);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  padding: .9rem 1.45rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.b4l-btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.b4l-btn--sm { padding: .7rem 1.15rem; font-size: .875rem; }
.b4l-btn--block { width: 100%; }

.b4l-btn--primary { background: var(--b4l-primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(27, 147, 183, .8); }
.b4l-btn--primary:hover { background: var(--b4l-primary-600); color: #fff; }

.b4l-btn--ink { background: var(--b4l-deep); color: #fff; }
.b4l-btn--ink:hover { background: var(--b4l-deep); color: #fff; }

.b4l-btn--outline { border-color: #c9d8df; color: var(--b4l-deep); background: #fff; }
.b4l-btn--outline:hover, .b4l-plan:hover .b4l-btn--outline{border-color: var(--b4l-primary);background: var(--b4l-primary);color: #fff;box-shadow: 0 8px 20px -10px rgba(27, 147, 183, .8);}

.b4l-btn--white { background: #fff; color: var(--b4l-primary-700); }
.b4l-btn--white:hover { background: var(--b4l-primary-50); color: var(--b4l-deep); }

.b4l-btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; border-radius: 8px; }
.b4l-btn--ghost:hover { background: #fff; color: var(--b4l-deep); }

.b4l-link-plain { font-weight: 600; font-size: .95rem; text-decoration: none; }
.b4l-link-plain:hover { color: var(--b4l-primary-700); }

.b4l-chip {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .32rem .7rem;
  border-radius: 999px;
  background: #fff;
  color: var(--b4l-deep);
}
.b4l-chip--soft { background: rgba(15, 37, 48, .1); }

/* Brand */
.b4l-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--b4l-primary);
  text-decoration: none;
  max-width: 160px;
}
.b4l-brand__mark { width: 34px; height: 34px; flex: none; }
.b4l-brand__word {
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.025em;
  color: var(--b4l-deep);
  display: inline-flex;
  align-items: center;
}
.b4l-brand__four {
  display: inline-grid;
  place-items: center;
  width: 1.3em;
  height: 1.3em;
  margin: 0 .2em;
  font-size: .78em;
  border-radius: 6px;
  background: var(--b4l-deep);
  color: #fff;
  letter-spacing: 0;
}

/* 04. Header ------------------------------------------------------------- */
.b4l-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.b4l-header.is-scrolled,
.b4l-header.is-open {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--b4l-line);
}
.b4l-nav { min-height: var(--b4l-nav-h); padding: 0; }

.b4l-nav__links .nav-link {
  font-size: .94rem;
  font-weight: 500;
  color: var(--b4l-deep);
  padding: .5rem .95rem !important;
  transition: color .2s;
}
.b4l-nav__links .nav-link:hover { color: var(--b4l-primary-700); }

.b4l-nav__actions { display: flex; align-items: center; gap: 22px; }

.b4l-nav__toggle {
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: none !important;
}
.b4l-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--b4l-deep);
  border-radius: 2px;
  transition: transform .25s var(--b4l-ease);
}
.b4l-nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.b4l-nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* 05. Hero --------------------------------------------------------------- */
.b4l-hero {
  padding: calc(var(--b4l-nav-h) + 64px) 0 72px;
  background:
    radial-gradient(900px 520px at 88% 8%, #dcEFF6 0%, rgba(220, 239, 246, 0) 70%),
    linear-gradient(180deg, #eef6fa 0%, #f6fafc 55%, #fff 100%);
  overflow: hidden;
}

.b4l-hero__title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -.038em;
    max-width: 13.5ch;
}
.b4l-hero__lead {
  margin-top: 26px !important;
  font-size: 1.12rem;
  color: var(--b4l-slate);
  max-width: 31rem;
}
.b4l-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 38px;
}

.b4l-demo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.b4l-demo__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--b4l-deep);
  box-shadow: var(--b4l-shadow-sm);
  transition: transform .25s var(--b4l-ease), color .2s;
}
.b4l-demo__icon svg { width: 18px; height: 18px; margin-left: 2px; }
.b4l-demo:hover .b4l-demo__icon { transform: scale(1.08); color: var(--b4l-primary); }

/* Bank wordmarks */
.b4l-banks { margin-top: 72px; }
.b4l-banks__label { font-size: .85rem; color: var(--b4l-slate); }
.b4l-banks__list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 36px;
  color: #93a3ab;
}
.b4l-banks img{
  max-width: 360px;
}
.b4l-wm { line-height: 1; user-select: none; }
.b4l-wm--1 { font-family: var(--b4l-font-head); font-weight: 800; font-style: italic; font-size: 1.15rem; letter-spacing: -.03em; }
.b4l-wm--2 { font-family: var(--b4l-font-head); font-stretch: 125%; font-weight: 600; font-size: .82rem; letter-spacing: .16em; }
.b4l-wm--3 { font-family: var(--b4l-font-body); font-weight: 700; font-size: 1.3rem; letter-spacing: -.04em; }
.b4l-wm--4 { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; font-size: 1.1rem; }

/* Hero composition — sizes are in em so the whole piece scales with its width */
.b4l-hero__visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  aspect-ratio: 560 / 540;
  container-type: inline-size;
  font-size: 16px;
  font-size: min(16px, 2.86cqw);
}

.b4l-frame {
  position: absolute;
  border: 1.5px solid rgba(15, 37, 48, .5);
  border-radius: 1.9em;
  pointer-events: none;
}
.b4l-frame--a { left: 5%; top: -2.5%; width: 66%; height: 47%; }
.b4l-frame--b { left: 0; top: 41%; width: 97%; height: 52%; }

.b4l-ui {
  position: absolute;
  margin: 0;
  background: #fff;
  border-radius: 1.4em;
  box-shadow: var(--b4l-shadow);
  z-index: 1;
}

.b4l-ui--profile { left: 11%; top: 2.5%; width: 55%; padding: 1.25em 1.35em 1.3em; }
.b4l-ui__head { display: flex; align-items: flex-start; gap: .75em; }

.b4l-ring {
  flex: none;
  width: 3.7em;
  height: 3.7em;
  padding: .2em;
  border-radius: 50%;
  background: conic-gradient(var(--b4l-primary) 0 72%, var(--b4l-primary-100) 0);
}
.b4l-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: .16em solid #fff;
  background: var(--b4l-primary-100);
}

.b4l-bubble {
  position: relative;
  display: block;
  margin-top: -.2em;
  padding: .6em .8em .6em .9em;
  font-size: .78em;
  line-height: 1.35;
  font-weight: 500;
  color: var(--b4l-deep);
  background: var(--b4l-primary-50);
  border-radius: 1em 1em 1em .3em;
}
.b4l-bubble__dot {
  position: absolute;
  left: -.55em;
  top: -.75em;
  width: 1.7em;
  height: 1.7em;
  display: grid;
  place-items: center;
  border-radius: .5em;
  background: var(--b4l-primary);
  color: #fff;
}
.b4l-bubble__dot svg { width: 1em; height: 1em; }

.b4l-ui__name {
  font-family: var(--b4l-font-head);
  font-weight: 600;
  font-size: 1.08em;
  letter-spacing: -.01em;
  margin-top: .95em !important;
}
.b4l-ui__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8em;
  margin-top: .55em;
}
.b4l-ui__meta > div { display: flex; flex-direction: column; }
.b4l-ui__k { font-size: .72em; color: var(--b4l-slate); }
.b4l-ui__v { font-size: .86em; font-weight: 600; }
.b4l-ui__big {
  font-family: var(--b4l-font-head);
  font-weight: 600;
  font-size: 1.6em;
  line-height: 1;
}

.b4l-ui--money {
  left: 11%;
  top: 46%;
  width: 43%;
  padding: 1.25em 1.35em;
  display: grid;
  gap: .9em;
  border-radius: 1.1em 1.1em 1.1em 1.6em;
}
.b4l-ui--money > div { display: flex; flex-direction: column; }
.b4l-ui__amt {
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 1.5em;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.b4l-ui--photo {
  left: 57%;
  top: 37%;
  width: 37%;
  height: 47%;
  overflow: hidden;
  border-radius: 1.3em;
  background: linear-gradient(160deg, #d6ecf4, #a8d3e3);
}
.b4l-ui--photo img { width: 100%; height: 100%; object-fit: cover; }

.b4l-ui--quote {
  left: 7%;
  top: 80%;
  width: 49%;
  padding: .9em 1.6em .95em 1.1em;
  font-size: .8em;
  line-height: 1.45;
  font-weight: 500;
  border-radius: 1em;
  z-index: 2;
}
.b4l-ui__qmark {
  position: absolute;
  right: -.8em;
  top: -1em;
  width: 2.1em;
  height: 2.1em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--b4l-primary);
  color: #fff;
  font-family: var(--b4l-font-head);
  font-weight: 800;
  font-size: 1.15em;
  line-height: 1;
  padding-top: .35em;
}

/* Hero load sequence (the page's one orchestrated moment) */
.b4l-in {
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity .7s ease var(--d, 0s), transform .9s var(--b4l-ease) var(--d, 0s);
}
.b4l-frame { opacity: 0; transition: opacity 1s ease .7s; }
.is-loaded .b4l-in { opacity: 1; transform: none; }
.is-loaded .b4l-frame { opacity: 1; }

/* Value points */
.b4l-hero__points {
  margin-top: 88px;
  padding-top: 40px;
  border-top: 1px solid var(--b4l-line);
}
.b4l-point { display: flex; gap: 16px; }
.b4l-point__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--b4l-line);
  background: #fff;
  color: var(--b4l-primary);
}
.b4l-point__icon svg { width: 20px; height: 20px; }
.b4l-point__title { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px !important; }
.b4l-point p { font-size: .9rem; color: var(--b4l-slate); max-width: 30ch; }

/* 05b. Hero v2 — couple cut-out + floating cards ---------------------------
   Drop-in: paste after section "05. Hero" in style.css.
   Reuses .b4l-hero, .b4l-in (load sequence) and the --b4l- tokens.
   Card internals are sized in em against a container query, so the whole
   composition scales as one piece.
   ------------------------------------------------------------------------- */
.b4l-hv2 {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  aspect-ratio: 580 / 560;
  container-type: inline-size;
  font-size: 16px;
  font-size: min(16px, 2.76cqw);
}

/* Pale check mark behind the couple */
.b4l-hv2__check {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80%;
    opacity: 0.2;
}

.b4l-hv2__people {
      position: absolute;
    bottom: 20%;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}
.b4l-hv2__people img { width: 100%; height: auto; }

/* Shared card chrome */
.b4l-hv2__card {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: 1.1em;
  box-shadow: var(--b4l-shadow);
}
.b4l-hv2__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75em;
}
.b4l-hv2__k { display: block; font-size: .7em; color: var(--b4l-slate); white-space: nowrap; }
.b4l-hv2__v { display: block; font-size: .82em; font-weight: 600; white-space: nowrap; }

/* Balance */
.b4l-hv2__balance { left: 0; top: 60%; width: 43%; padding: 1em 1.1em .95em; }
.b4l-hv2__amt {
  display: block;
  margin-top: .15em;
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 1.6em;
  letter-spacing: -.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.b4l-hv2__acct {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .6em;
  margin-top: .75em;
  padding: .75em .85em;
  border-radius: .8em;
  background: var(--b4l-mist);
  border: 1px solid #e3edf1;
}
.b4l-hv2__brand {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: .72em;
  letter-spacing: -.01em;
  color: var(--b4l-deep);
  white-space: nowrap;
}
.b4l-hv2__brand svg { width: 1.5em; height: 1.5em; color: var(--b4l-primary); }
.b4l-hv2__foot { margin-top: .7em; padding-inline: .15em; }
.b4l-hv2__up { font-size: .68em; font-weight: 600; color: #17795a; white-space: nowrap; }

/* Currencies */
.b4l-hv2__fx { right: 0; top: 28%; width: 37%; padding: 1em; }
.b4l-hv2__fx-title {
  font-size: .8em;
  font-weight: 600;
  line-height: 1.3;
  max-width: 14ch;
}
.b4l-hv2__fx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4em;
  margin-top: .75em;
}
.b4l-hv2__fx-grid button {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .35em .45em;
  border: 1px solid var(--b4l-line);
  border-radius: .6em;
  background: #fff;
  font-family: var(--b4l-font-body);
  font-size: .72em;
  font-weight: 600;
  color: var(--b4l-deep);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.b4l-hv2__fx-grid button:hover { border-color: var(--b4l-primary); }
.b4l-hv2__fx-grid button.is-active { border-color: var(--b4l-primary); background: var(--b4l-primary-50); }
.b4l-hv2__fx-grid i {
  width: 1.6em;
  height: 1.6em;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-style: normal;
  font-size: .9em;
}

/* Shared savings goal (replaces the joint card) */
.b4l-hv2__goal {
  position: absolute;
  z-index: 2;
  right: 1%;
  bottom: 3%;
  width: 46%;
  padding: 1.05em 1.2em 1.1em;
  border-radius: 1.1em;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(140deg, var(--b4l-primary-700) 0%, var(--b4l-deep) 100%);
  box-shadow: 0 2px 4px rgba(12, 52, 66, .12), 0 24px 44px -18px rgba(12, 52, 66, .55);
}
.b4l-hv2__goal-rings {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  fill: none;
  stroke: rgba(255, 255, 255, .1);
  stroke-width: 1.2;
  pointer-events: none;
}
.b4l-hv2__goal-tag {
  font-size: .66em;
  font-weight: 600;
  padding: .3em .65em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}
.b4l-hv2__goal-due { position: relative; font-size: .66em; opacity: .72; white-space: nowrap; }

.b4l-hv2__goal-main { display: flex; align-items: center; gap: .9em; margin-top: .95em; }

.b4l-hv2__ring { position: relative; flex: none; width: 3.6em; height: 3.6em; }
.b4l-hv2__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.b4l-hv2__ring circle { fill: none; stroke-width: 4.5; }
.b4l-hv2__ring-track { stroke: rgba(255, 255, 255, .16); }
.b4l-hv2__ring-bar { stroke: var(--b4l-sun); stroke-linecap: round; }
.b4l-hv2__ring-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: .78em;
}

.b4l-hv2__goal-name { display: block; font-size: .76em; opacity: .8; white-space: nowrap; }
.b4l-hv2__goal-amt {
  display: block;
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 1.4em;
  letter-spacing: -.02em;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.b4l-hv2__goal-amt small { font-family: var(--b4l-font-body); font-size: .5em; font-weight: 500; letter-spacing: 0; opacity: .7; }

/* Who saved what */
.b4l-hv2__split { display: flex; gap: .2em; height: .35em; margin-top: 1em; }
.b4l-hv2__split span { width: var(--w); border-radius: 1em; background: var(--c); }
.b4l-hv2__goal-foot { margin-top: .5em; font-size: .66em; }
.b4l-hv2__goal-foot span { display: inline-flex; align-items: center; gap: .45em; opacity: .85; }
.b4l-hv2__goal-foot i { width: .6em; height: .6em; border-radius: 50%; background: var(--c); }

@media (max-width: 991.98px) {
  .b4l-hv2 { margin: 16px auto 0; }
}

@media (max-width: 575.98px) {
  /* Slightly larger type on phones; cards widen to keep the text in place */
  .b4l-hv2 { font-size: 3.05cqw; }
  .b4l-hv2__balance { width: 47%; top: 56%; }
  .b4l-hv2__fx { width: 41%; top: 26%; }
  .b4l-hv2__goal { width: 50%; right: 0; }
}

/* 06. Features (stacking cards) ----------------------------------------- */
.b4l-features { padding: var(--b4l-sec-y) 0 calc(var(--b4l-sec-y) * .6); }

.b4l-stack { position: relative; }
.b4l-stack__item {
  position: sticky;
  top: calc(var(--b4l-nav-h) + 20px + var(--i) * 18px);
  margin-bottom: 72px;
}
.b4l-stack__item:last-child { margin-bottom: 0; }

.b4l-fcard {
  position: relative;
  height: min(560px, calc(100vh - var(--b4l-nav-h) - 96px));
  min-height: 500px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--b4l-line);
  border-radius: 32px;
  box-shadow: 0 -12px 40px -24px rgba(12, 52, 66, .22), 0 30px 60px -36px rgba(12, 52, 66, .28);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p, 0) * .05));
  will-change: transform;
  overflow: hidden;
}
.b4l-fcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--b4l-mist);
  opacity: calc(var(--p, 0) * .7);
  pointer-events: none;
  border-radius: inherit;
}

.b4l-fcard__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding-block: 4px;
}
.b4l-fcard__num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--b4l-primary-100);
  color: var(--b4l-deep);
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 1rem;
}
.b4l-fcard__eyebrow {
  margin-top: 28px !important;
  font-size: .85rem;
  font-weight: 600;
  color: var(--b4l-primary-700);
}
.b4l-fcard__title {
    margin-top: 10px !important;
    font-weight: 700;
    font-size: clamp(2.2rem, 3.4vw, 3.1rem);
    line-height: .93;
    letter-spacing: -.005em;
    text-transform: capitalize;
    max-width: 13ch;
}
.b4l-fcard__body { font-size: .98rem; color: var(--b4l-slate); max-width: 31rem; }

.b4l-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s;
}
.b4l-more svg { width: 16px; height: 16px; transition: transform .25s var(--b4l-ease); }
.b4l-more:hover { color: var(--b4l-primary-700); }
.b4l-more:hover svg { transform: translate(2px, -2px); }

.b4l-ringlist { list-style: none; padding: 0; margin: 0; }
.b4l-ringlist li {
  position: relative;
  padding-left: 22px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.b4l-ringlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--b4l-primary);
}

/* Feature visual */
.b4l-fvis {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(150deg, #8fbfd0, #4f8296);
  color: #fff;
}
.b4l-fvis > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b4l-fvis__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 28, 38, .5) 0%, rgba(8, 28, 38, 0) 42%, rgba(8, 28, 38, .4) 100%);
}
.b4l-fvis__shade--even { background: rgba(8, 28, 38, .32); }

.b4l-fvis__top {
  position: absolute;
  top: 26px;
  left: 28px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.b4l-fvis__k { display: block; font-size: .82rem; font-weight: 500; opacity: .88; }
.b4l-fvis__k--dark { color: var(--b4l-slate); opacity: 1; }
.b4l-fvis__v {
  display: block;
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.b4l-roundbtn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--b4l-deep);
}
.b4l-roundbtn svg { width: 18px; height: 18px; }
.b4l-roundbtn--corner { position: absolute; top: 22px; right: 22px; z-index: 2; }

/* F1: bars */
.b4l-bars {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 48px;
  height: 56%;
  display: flex;
  align-items: flex-end;
  gap: 4.5%;
}
.b4l-bars__grid {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .28) 0 1px, transparent 1px 25%);
  pointer-events: none;
}
.b4l-bar {
  position: relative;
  flex: 1;
  height: var(--h);
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .42));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 3px solid var(--b4l-sun);
}
.b4l-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--b4l-deep);
  border: 2px solid #fff;
}
.b4l-bar span {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  font-size: .74rem;
  font-weight: 600;
}
.b4l-bar.is-peak { background: #fff; }
.b4l-bar em {
  position: absolute;
  left: 50%;
  top: -42px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: .74rem;
  font-weight: 700;
  color: var(--b4l-deep);
  background: #ffd57e;
  padding: .3rem .55rem;
  border-radius: 8px;
  white-space: nowrap;
}

/* F2: insight */
.b4l-insight {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.b4l-insight__total {
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 2.7rem;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.b4l-insight__pills {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 70px;
  padding-inline: 16px;
}
.b4l-insight__pills::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -24px;
  height: 24px;
  border: 1.5px dashed rgba(255, 255, 255, .7);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.b4l-insight__pills::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -64px;
  height: 40px;
  border-left: 1.5px dashed rgba(255, 255, 255, .7);
}
.b4l-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .55rem .8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  color: var(--b4l-deep);
  font-size: .76rem;
  font-weight: 600;
}
.b4l-glass-pill i, .b4l-income__list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.b4l-glass-pill b { font-weight: 700; margin-left: 2px; }

.b4l-budgetbar {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 14px 18px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  color: var(--b4l-deep);
  z-index: 1;
}
.b4l-budgetbar__row { display: flex; justify-content: space-between; align-items: center; }
.b4l-budgetbar__title { font-family: var(--b4l-font-head); font-weight: 600; font-size: .92rem; }
.b4l-progress { height: 6px; border-radius: 6px; background: #dce8ed; margin: 10px 0 8px; overflow: hidden; }
.b4l-progress span { display: block; height: 100%; border-radius: inherit; background: var(--b4l-primary); }
.b4l-budgetbar__meta { font-size: .78rem; color: var(--b4l-slate); }
.b4l-budgetbar__meta b { color: var(--b4l-deep); }

/* F3: income */
.b4l-delta {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #17795a;
  font-size: .78rem;
  font-weight: 700;
  z-index: 1;
}
.b4l-income {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: min(340px, calc(100% - 44px));
  padding: 18px 20px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  color: var(--b4l-deep);
  z-index: 1;
}
.b4l-income__total {
  display: block;
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.b4l-spark { display: block; width: 100%; height: 58px; margin: 8px 0 6px; overflow: visible; }
.b4l-income__list { list-style: none; padding: 0; margin: 0; }
.b4l-income__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: .82rem;
  border-top: 1px solid var(--b4l-line);
}
.b4l-income__list b { margin-left: auto; font-weight: 700; }

/* F4: categories */
.b4l-cross { position: absolute; pointer-events: none; }
.b4l-cross--v { top: 0; bottom: 0; left: 44%; border-left: 1.5px dashed rgba(255, 255, 255, .5); }
.b4l-cross--h { left: 0; right: 0; top: 34%; border-top: 1.5px dashed rgba(255, 255, 255, .5); }

.b4l-cats__label {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.15;
}
.b4l-cats__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--b4l-primary-600);
    color: var(--b4l-paper);
}
.b4l-cats__icon svg { width: 18px; height: 18px; }

.b4l-billcard {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 232px;
  padding: 16px;
  border-radius: 18px;
  background: var(--b4l-line);
  border: 1px solid rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--b4l-deep);
}
.b4l-billcard__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 14px 0 16px;
}
.b4l-billcard__tiles span {
  padding: .5rem .6rem;
  border-radius: 8px;
  background: var(--c);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
}
.b4l-billcard__k { display: block; font-size: .82rem; font-weight: 600; }
.b4l-billcard__v {
  display: block;
  font-family: var(--b4l-font-head);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -.03em;
  line-height: 1.05;
}

/* 07. About -------------------------------------------------------------- */
.b4l-about { padding: calc(var(--b4l-sec-y) * .6) 0 var(--b4l-sec-y); }

.b4l-about__media {
  position: relative;
  height: 580px;
  border-radius: 14px 56px 14px 14px;
  overflow: hidden;
  background: linear-gradient(150deg, #c9e4ee, #8bbccd);
}
.b4l-about__media img { width: 100%; height: 100%; object-fit: cover; }

.b4l-about__copy { position: relative; z-index: 2; }
.b4l-about__copy > p { margin-top: 20px; color: var(--b4l-slate); font-size: 1.02rem; max-width: 30rem; }

.b4l-slider-card {
  position: relative;
  margin-top: 40px;
  max-width: 440px;
  padding: 22px 24px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--b4l-shadow);
}
.b4l-slider-card::after {
  content: "";
  position: absolute;
  inset: 14px -12px -12px 14px;
  border: 1.5px solid rgba(15, 37, 48, .4);
      border-top: 0;
    border-left: 0;
  border-radius: 22px;
  z-index: -1;
}
.b4l-slider-card__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.b4l-slider-card__row > div { display: flex; flex-direction: column; }
.b4l-slider-card__row > div:last-child { min-width: 7.5rem; }
.b4l-slider-card__k { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--b4l-slate); }
.b4l-slider-card__v {
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.b4l-slider-card__arrow { width: 22px; height: 22px; color: var(--b4l-primary); margin-bottom: 10px; }
.b4l-slider-card__note { margin-top: 12px !important; font-size: .82rem; color: var(--b4l-slate); }
.b4l-slider-card__note b { color: var(--b4l-deep); font-variant-numeric: tabular-nums; }

.b4l-range {
  --fill: 6%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin-top: 18px;
  border-radius: 6px;
  background: linear-gradient(to right, var(--b4l-primary) 0 var(--fill), #e1ecf0 var(--fill) 100%);
  cursor: pointer;
}
.b4l-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--b4l-primary);
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px var(--b4l-primary-100), 0 4px 10px rgba(12, 52, 66, .25);
}
.b4l-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--b4l-primary);
  border: 5px solid #fff;
  box-shadow: 0 0 0 1px var(--b4l-primary-100), 0 4px 10px rgba(12, 52, 66, .25);
}

.b4l-facts { display: flex; flex-wrap: wrap; gap: 40px; margin: 44px 0 0; }
.b4l-facts dt {
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.b4l-facts dd { margin: 4px 0 0; font-size: .86rem; color: var(--b4l-slate); max-width: 16ch; }

/* 08. How it works ------------------------------------------------------- */
.b4l-how {
  padding: var(--b4l-sec-y) 0;
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(27, 147, 183, .22), transparent 70%),
    var(--b4l-deep);
  color: #fff;
}
.b4l-how__eyebrow { font-size: .88rem; font-weight: 600; color: #7fcbe2; }
.b4l-how .b4l-how__title { color: #fff; font-weight: 500; max-width: 17ch; margin: 14px 0 56px; }

.b4l-steps { list-style: none; padding: 0; margin-bottom: 0; }
.b4l-step {
  position: relative;
  height: 100%;
  padding: 28px 26px 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
}
.b4l-step__num {
  display: block;
  font-family: var(--b4l-font-head);
  font-weight: 800;
  font-size: 5.4rem;
  line-height: .82;
  letter-spacing: -.05em;
  margin-bottom: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92) 15%, rgba(255, 255, 255, 0) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.b4l-how .b4l-step__title { color: #fff; font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.b4l-step p { font-size: .9rem; color: rgba(255, 255, 255, .64); }

/* 09. Why choose us ------------------------------------------------------ */
.b4l-why { padding: var(--b4l-sec-y) 0; }

.b4l-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.b4l-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 28px;
  border-radius: 24px;
  background: var(--b4l-mist);
  border: 1px solid #e3edf1;
  overflow: hidden;
}
.b4l-tile p { font-size: .92rem; color: var(--b4l-slate); max-width: 34ch; }
.b4l-tile__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--b4l-primary-700);
  color: #fff;
}
.b4l-tile__icon svg { width: 19px; height: 19px; }
.b4l-tile__icon--light { background: rgba(255, 255, 255, .16); }
.b4l-tile__title {
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
  max-width: 19ch;
  margin: 20px 0 10px !important;
}

.b4l-subs { list-style: none; padding: 0; margin: auto 0 0; }
.b4l-subs li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-top: 8px;
  border-radius: 12px;
  background: #fff;
}
.b4l-subs__logo {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--c);
  color: #fff;
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: .85rem;
}
.b4l-subs__name { display: flex; flex-direction: column; font-size: .86rem; font-weight: 600; line-height: 1.25; }
.b4l-subs__name small { font-size: .72rem; font-weight: 400; color: var(--b4l-slate); }
.b4l-subs b { margin-left: auto; font-size: .86rem; }
.b4l-subs b.is-muted { color: var(--b4l-muted); font-weight: 600; }

.b4l-tile--brand { background: var(--b4l-primary-700); border-color: var(--b4l-primary-700); color: #fff; }
.b4l-tile--brand .b4l-tile__title { color: #fff; }
.b4l-tile--brand p { color: rgba(255, 255, 255, .78); }
.b4l-tile--brand .b4l-btn { margin-top: auto; align-self: flex-start; }
.b4l-tile__rings {
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  fill: none;
  stroke: rgba(255, 255, 255, .14);
  stroke-width: 1.2;
}

.b4l-coins {
  display: flex;
  justify-content: flex-end;
  margin: auto 0 0 auto;
  padding: 24px 0 0 12px;
}
.b4l-coins span {
  width: 50px;
  height: 50px;
  margin-left: -12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  border: 3px solid var(--b4l-mist);
  font-family: var(--b4l-font-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.b4l-coins span:nth-child(even) { transform: translateY(-10px); }

.b4l-alerts { margin-top: auto; padding-top: 24px; }
.b4l-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e3edf1;
}
.b4l-alert--back {
  padding-bottom: 32px;
  opacity: .7;
  transform: scale(.92);
  transform-origin: 50% 0;
}
.b4l-alert--front {
  position: relative;
  margin-top: -28px;
  box-shadow: var(--b4l-shadow);
}
.b4l-alert__icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.b4l-alert__icon svg { width: 16px; height: 16px; }
.b4l-alert__icon--warn { background: #fdf0d3; color: #9a6400; }
.b4l-alert__icon--ok { background: #dcf2e8; color: #17795a; }
.b4l-alert__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.b4l-alert__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.b4l-alert__title { font-size: .86rem; font-weight: 600; line-height: 1.3; }
.b4l-alert__time { font-size: .7rem; color: var(--b4l-muted); }
.b4l-alert__meta { font-size: .74rem; color: var(--b4l-slate); }
.b4l-alert__bar { height: 5px; margin-top: 8px; border-radius: 5px; background: #e6eef1; overflow: hidden; }
.b4l-alert__bar span { display: block; height: 100%; border-radius: inherit; background: var(--b4l-sun); }

.b4l-tile--secure { grid-column: span 2; background: #fff; }
.b4l-tile__split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  height: 100%;
}
.b4l-seclist { list-style: none; padding: 0; margin: 0; }
.b4l-seclist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--b4l-mist);
  font-size: .9rem;
  font-weight: 600;
}
.b4l-seclist li:last-child { margin-bottom: 0; }
.b4l-seclist svg { width: 18px; height: 18px; color: var(--b4l-primary); flex: none; }

.b4l-avatars { display: flex; align-items: center; margin-top: auto; padding-top: 22px; }
.b4l-avatars img, .b4l-avatars span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--b4l-mist);
  margin-left: -10px;
  object-fit: cover;
  background: var(--b4l-primary-100);
}
.b4l-avatars img:first-child { margin-left: 0; }
.b4l-avatars span {
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--b4l-deep);
}

.b4l-tile--clear p { margin-bottom: 22px; }
.b4l-donut {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
}
.b4l-donut__chart { position: relative; flex: none; width: 92px; height: 92px; }
.b4l-donut__chart svg { width: 100%; height: 100%; }
.b4l-donut__chart circle { fill: none; stroke-width: 5; }
.b4l-donut__track { stroke: #e6eef1; }
.b4l-donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .66rem;
  color: var(--b4l-slate);
  line-height: 1.2;
}
.b4l-donut__center b {
  font-family: var(--b4l-font-head);
  font-size: .92rem;
  font-weight: 700;
  color: var(--b4l-ink);
  letter-spacing: -.02em;
}
.b4l-donut__legend { flex: 1; min-width: 0; list-style: none; padding: 0; margin: 0; }
.b4l-donut__legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: .82rem;
  font-weight: 500;
}
.b4l-donut__legend li + li { border-top: 1px solid var(--b4l-line); }
.b4l-donut__legend i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c); }
.b4l-donut__legend b { margin-left: auto; font-weight: 700; }

/* 10. Pricing ------------------------------------------------------------ */
.b4l-pricing { padding: var(--b4l-sec-y) 0; background: var(--b4l-mist); }

.b4l-toggle {
  display: inline-flex;
  gap: 2px;
  margin-top: 28px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--b4l-line);
}
.b4l-toggle button {
  border: 0;
  background: transparent;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--b4l-slate);
  transition: background-color .2s, color .2s;
}
.b4l-toggle button span {
  margin-left: 6px;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .7rem;
  background: var(--b4l-primary-100);
  color: var(--b4l-primary-700);
}
.b4l-toggle button.is-active { background: var(--b4l-deep); color: #fff; }
.b4l-toggle button.is-active span { background: rgba(255, 255, 255, .16); color: #fff; }

.b4l-plan {
  position: relative;
  height: 100%;
  padding: 34px 25px 25px;
  background: #fff;
  border: 2px solid var(--b4l-line);
  border-radius: 18px;
  transition: all 0.4s;
}
.b4l-plan:hover{
    border-color: var(--b4l-primary-700);
    box-shadow: 0 30px 60px -30px rgba(15, 100, 128, .4);
}
.b4l-plan__name { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; }
.b4l-plan__desc { margin-top: 8px !important; font-size: .9rem; color: var(--b4l-slate); min-height: 2.9em; }
.b4l-plan__price { margin-top: 22px; }
.b4l-plan__amt {
  font-family: var(--b4l-font-head);
      color: var(--b4l-primary);
  font-weight: 700;
  font-size: 2.9rem;
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.b4l-plan__per { margin: 8px 0 24px !important; font-size: .78rem; font-weight: 600; color: var(--b4l-slate); }
.b4l-plan .b4l-btn { border-radius: 8px; padding-block: .95rem; }
.b4l-plan__fhead { margin-top: 30px !important; font-size: .85rem; font-weight: 600; }
.b4l-plan__list { 
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    background: #ffffff;
 }
.b4l-plan__list li {
  display: flex;
  gap: 10px;
  margin-bottom: 11px;
  font-size: .9rem;
  color: var(--b4l-slate);
}
.b4l-plan__list svg { 
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 2px;
    color: var(--b4l-paper);
    background: var(--b4l-primary);
    border-radius: 50%;
    padding: 2px; 
  }

.b4l-plan--pop {
  border: 2px solid var(--b4l-primary-700);
  padding-top: 70px;
  box-shadow: 0 30px 60px -30px rgba(15, 100, 128, .4);
}
.b4l-plan__band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  background: var(--b4l-primary-700);
  border-radius: 12px 12px 0 0;
}

/* 11. FAQ ---------------------------------------------------------------- */
.b4l-faq { padding: var(--b4l-sec-y) 0; }
.b4l-faq__intro { margin: 18px 0 28px !important; color: var(--b4l-slate); max-width: 26rem; }
.b4l-faq__help {
  padding: 24px;
  border-radius: 20px;
  background: var(--b4l-mist);
  border: 1px solid #e3edf1;
  max-width: 360px;
}
.b4l-faq__help p { margin: 16px 0 18px !important; font-size: .92rem; color: var(--b4l-slate); }
.b4l-faq__help b { color: var(--b4l-deep); }

.b4l-acc__item { border-bottom: 1px solid var(--b4l-line); }
.b4l-acc__item:first-child { border-top: 1px solid var(--b4l-line); }
.b4l-acc__h { font-size: inherit; }
.b4l-acc__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--b4l-font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--b4l-deep);
}
.b4l-acc__icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--b4l-line);
  color: var(--b4l-deep);
  transition: transform .3s var(--b4l-ease), background-color .2s, color .2s, border-color .2s;
}
.b4l-acc__icon svg { width: 16px; height: 16px; }
.b4l-acc__btn:hover .b4l-acc__icon { border-color: var(--b4l-primary); color: var(--b4l-primary); }
.b4l-acc__btn[aria-expanded="true"] .b4l-acc__icon {
  transform: rotate(45deg);
  background: var(--b4l-primary);
  border-color: var(--b4l-primary);
  color: #fff;
}
.b4l-acc__body { padding: 0 62px 26px 0; color: var(--b4l-slate); max-width: 62ch; }

/* 12. Support CTA -------------------------------------------------------- */
.b4l-support__tiles { display: grid; grid-template-columns: 1fr 1fr; }
.b4l-ptile {
  position: relative;
  display: block;
  height: 330px;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(150deg, #6f9aab, #2f5868);
}
.b4l-ptile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--b4l-ease);
}
.b4l-ptile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8, 28, 38, .72) 0%, rgba(8, 28, 38, .25) 55%, rgba(8, 28, 38, .1) 100%);
}
.b4l-ptile__body {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  top: clamp(28px, 4vw, 52px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 340px;
}
.b4l-ptile__title { font-family: var(--b4l-font-head); font-weight: 600; font-size: 1.65rem; letter-spacing: -.02em; }
.b4l-ptile__text { margin-top: 6px; font-size: .92rem; opacity: .85; }
.b4l-ptile__btn {
  align-self: flex-start;
  margin-top: 22px;
  padding: .65rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  transition: background-color .2s, color .2s;
}
.b4l-ptile:hover img { transform: scale(1.04); }
.b4l-ptile:hover .b4l-ptile__btn { background: #fff; color: var(--b4l-deep); }

.b4l-support__band {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 9vw, 120px) 0;
  background: var(--b4l-deep);
  color: #fff;
}
.b4l-chev {
  position: absolute;
  width: 260px;
  fill: none;
  stroke: rgba(255, 255, 255, .07);
  stroke-width: 22;
  pointer-events: none;
}
.b4l-chev--l { left: -40px; top: 10px; }
.b4l-chev--r { right: -30px; bottom: -40px; }

.b4l-support .b4l-support__title {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.028em;
}
.b4l-support__title span { display: block; color: #85aebd; }
.b4l-support__text { margin: 22px auto 34px !important; color: rgba(255, 255, 255, .66); max-width: 34rem; }

/* 13. Footer ------------------------------------------------------------- */
.b4l-footer { padding: 88px 0 32px; background: var(--b4l-mist); }
.b4l-footer__about { margin: 18px 0 30px !important; color: var(--b4l-slate); font-size: .94rem; max-width: 32ch; }

.b4l-news__label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 10px; }
.b4l-news__row {
  display: flex;
  gap: 6px;
  max-width: 380px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--b4l-line);
  transition: border-color .2s, box-shadow .2s;
}
.b4l-news__row:focus-within { border-color: var(--b4l-primary); box-shadow: 0 0 0 3px var(--b4l-primary-50); }
.b4l-news__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font-size: .92rem;
  color: var(--b4l-deep);
  outline: none;
}

.b4l-footer__h { font-size: .95rem; font-weight: 600; margin-bottom: 18px !important; }
.b4l-footer__list { list-style: none; padding: 0; margin: 0; }
.b4l-footer__list li { margin-bottom: 11px; }
.b4l-footer__list a, .b4l-footer__list li { color: var(--b4l-slate); font-size: .93rem; text-decoration: none; transition: color .2s; }
.b4l-footer__list a:hover { color: var(--b4l-deep); }

.b4l-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--b4l-line);
}
.b4l-footer__bottom p { font-size: .86rem; color: var(--b4l-slate); }
.b4l-social { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.b4l-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--b4l-line);
  background: #fff;
  color: var(--b4l-deep);
  transition: border-color .2s, color .2s;
}
.b4l-social a:hover { border-color: var(--b4l-primary); color: var(--b4l-primary); }
.b4l-social svg { width: 17px; height: 17px; }

/* 14. Responsive --------------------------------------------------------- */
@media (min-width: 992px) {
  .b4l-about__copy { margin-left: -150px; }
  .b4l-about__copy .b4l-h2,
  .b4l-about__copy > p,
  .b4l-facts { margin-left: 142px; }
  .b4l-plan--pop { margin-top: -24px; height: calc(100% + 24px); }
  .b4l-steps > li:not(:last-child) .b4l-step::after {
    content: "";
    position: absolute;
    top: 62px;
    right: -25px;
    width: 24px;
    border-top: 1.5px dashed rgba(255, 255, 255, .28);
  }
}

@media (max-width: 1199.98px) {
  .b4l-fcard { padding: 32px; }
}

@media (max-width: 991.98px) {
  :root { --b4l-nav-h: 68px; }

  .b4l-header .navbar-collapse {
    margin: 0 -12px;
    padding: 8px 12px 20px;
  }
  .b4l-nav__links .nav-link { padding: .7rem 0 !important; font-size: 1rem; border-bottom: 1px solid var(--b4l-line); }
  .b4l-nav__actions { padding-top: 18px; justify-content: space-between; }

  .b4l-hero { padding-top: calc(var(--b4l-nav-h) + 40px); }
  .b4l-hero__visual { margin: 24px auto 0; }
  .b4l-banks { margin-top: 48px; }
  .b4l-hero__points { margin-top: 56px; }

  .b4l-sechead--split { grid-template-columns: 1fr; gap: 16px; }
  .b4l-sechead--split .b4l-sechead__text { justify-self: start; }

  /* Stacking turns into a simple list on smaller screens */
  .b4l-stack__item { position: relative; top: auto; margin-bottom: 20px; }
  .b4l-fcard { height: auto; min-height: 0; padding: 24px; border-radius: 24px; transform: none; }
  .b4l-fcard::after { display: none; }
  .b4l-fcard__text { gap: 22px; }
  .b4l-fvis { min-height: 400px; }

  .b4l-about__media { height: 420px; }

  .b4l-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b4l-tile--secure { grid-column: span 2; }

  .b4l-support__tiles { grid-template-columns: 1fr; }
  .b4l-ptile { height: 300px; }
}

@media (max-width: 575.98px) {
  /* Hero composition gets a taller canvas and wider cards so type stays legible */
  .b4l-hero__visual { aspect-ratio: 560 / 600; font-size: 3.3cqw; }
  .b4l-frame--a { left: 2%; top: -2%; width: 82%; height: 44%; }
  .b4l-frame--b { top: 40%; width: 100%; height: 56%; }
  .b4l-ui--profile { left: 6%; top: 2%; width: 72%; }
  .b4l-ui--money { left: 4%; top: 45%; width: 50%; }
  .b4l-ui--photo { left: 57%; top: 41%; width: 40%; height: 39%; }
  .b4l-ui--quote { left: 4%; top: 83%; width: 72%; }

  .b4l-hero__ctas .b4l-btn { width: 100%; }
  .b4l-hero__ctas { gap: 18px; }
  .b4l-banks__list { gap: 14px 26px; }

  .b4l-fcard__title { font-size: 2.3rem; }
  .b4l-fvis { min-height: 380px; border-radius: 18px; }
  .b4l-fvis__v { font-size: 1.6rem; }
  .b4l-bars { left: 18px; right: 18px; gap: 3%; }
  .b4l-bar span { font-size: .66rem; }
  .b4l-insight__total { font-size: 2.1rem; }
  .b4l-insight__pills { margin-top: 58px; gap: 6px; }
  .b4l-insight__pills::after { top: -52px; height: 28px; }
  .b4l-glass-pill { padding: .45rem .6rem; font-size: .7rem; }
  .b4l-budgetbar { left: 14px; right: 14px; bottom: 14px; }
  .b4l-income { left: 14px; bottom: 14px; width: calc(100% - 28px); }
  .b4l-billcard { left: 14px; bottom: 14px; width: 210px; }

  .b4l-about__media { height: 320px; border-radius: 12px 40px 12px 12px; }
  .b4l-slider-card { margin-right: 12px; }

  .b4l-bento { grid-template-columns: 1fr; }
  .b4l-tile--secure { grid-column: auto; }
  .b4l-tile__split { grid-template-columns: 1fr; gap: 22px; }
  .b4l-tile { min-height: 0; }
  .b4l-tile--fx .b4l-coins { margin-top: 24px; }

  .b4l-acc__btn { font-size: 1.02rem; padding: 20px 0; }
  .b4l-acc__body { padding-right: 0; }

  .b4l-ptile { height: 260px; }
}

/* 15. Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .b4l-in, .b4l-frame { opacity: 1; transform: none; transition: none; }
  .b4l-fcard { transform: none; }
  .b4l-fcard::after { display: none; }
  .b4l *, .b4l *::before, .b4l *::after { transition-duration: .01ms !important; }
}

/* 16. Section reveal -------------------------------------------------------
   Drop-in: paste at the end of style.css (after section 15).
   Only active while <html> has .b4l-reveal-on (set by the inline head script).
   Two styles:
   - fade-up  : text blocks, cards, list items (staggered by main.js)
   - mask     : big images rise into view from the bottom edge
   Keep these selector lists in sync with REVEAL_FADE / REVEAL_MASK in main.js.
   ------------------------------------------------------------------------- */
:root { --b4l-ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Fade-up */
.b4l-reveal-on :is(
  .b4l-hero__points > div,
  .b4l-features .b4l-sechead,
  .b4l-fcard__text > *,
  .b4l-about__copy > *,
  .b4l-how__eyebrow, .b4l-how__title, .b4l-steps > li,
  .b4l-why .b4l-sechead, .b4l-bento > .b4l-tile,
  .b4l-pricing .b4l-sechead, .b4l-plans > div,
  .b4l-faq .col-lg-4 > *, .b4l-acc__item,
  .b4l-support__band .container > *,
  .b4l-footer .row > div, .b4l-footer__bottom
) {
  transition:
    opacity .9s var(--b4l-ease-out) var(--rd, 0s),
    transform 1.1s var(--b4l-ease-out) var(--rd, 0s);
}
.b4l-reveal-on :is(
  .b4l-hero__points > div,
  .b4l-features .b4l-sechead,
  .b4l-fcard__text > *,
  .b4l-about__copy > *,
  .b4l-how__eyebrow, .b4l-how__title, .b4l-steps > li,
  .b4l-why .b4l-sechead, .b4l-bento > .b4l-tile,
  .b4l-pricing .b4l-sechead, .b4l-plans > div,
  .b4l-faq .col-lg-4 > *, .b4l-acc__item,
  .b4l-support__band .container > *,
  .b4l-footer .row > div, .b4l-footer__bottom
):not(.is-revealed) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

/* Mask: image rises from the bottom edge while the photo settles from a slight zoom */
.b4l-fvis { --b4l-rr: 26px; }
.b4l-about__media { --b4l-rr: 14px 56px 14px 14px; }

.b4l-reveal-on :is(.b4l-fvis, .b4l-about__media, .b4l-ptile) {
  transition: clip-path 1.25s var(--b4l-ease-out) var(--rd, 0s);
}
.b4l-reveal-on :is(.b4l-fvis, .b4l-about__media, .b4l-ptile):not(.is-revealed) {
  clip-path: inset(100% 0 0 0 round var(--b4l-rr, 0px));
}
.b4l-reveal-on :is(.b4l-fvis, .b4l-about__media, .b4l-ptile).is-revealed {
  clip-path: inset(0 0 0 0 round var(--b4l-rr, 0px));
}
.b4l-reveal-on :is(.b4l-fvis, .b4l-about__media, .b4l-ptile).is-done { clip-path: none; }

.b4l-reveal-on :is(.b4l-fvis, .b4l-about__media, .b4l-ptile):not(.is-done) img {
  transition: transform 1.6s var(--b4l-ease-out) var(--rd, 0s);
}
.b4l-reveal-on :is(.b4l-fvis, .b4l-about__media, .b4l-ptile):not(.is-revealed) img {
  transform: scale(1.1);
}

@media (max-width: 575.98px) {
  .b4l-fvis { --b4l-rr: 18px; }
  .b4l-about__media { --b4l-rr: 12px 40px 12px 12px; }
}