/* biz-capital.css: the Local Funding Blueprint (src\pages\biz-capital.mjs). Every page's header, close and compare
   come from components.css and the home's compare (copied here, part 4); this file places them for this page. */

/* 1. Header: a glide through an empty restaurant ready to open (no people). The words at the top left; the program's
   box at the bottom right, offset from them: a solid plate (its logo reads on the ink and never sits over footage),
   the stop icon under its corner. Under 1024 px the box stands under the words; under 768 the clip above them. */
.lfb-top { align-items: stretch; }
/* (the windows behind the line are bright: the shade holds the ink to the words' right edge) */
.lfb-top .hero__stage::after {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 84%, transparent) 34%, color-mix(in srgb, var(--c-ink) 40%, transparent) 54%, transparent 70%),
    linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 58%, transparent), transparent 42%);
}
.lfb-top .hero__words.lfb-top__in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-rows: auto 1fr auto; column-gap: var(--space-5);
  align-self: stretch; padding-block: clamp(4rem, 9vh, 6.5rem) clamp(4.5rem, 9vh, 6rem);
}
.lfb-top__words { grid-column: 1 / -1; }
.lfb-top__words h1 { max-width: 11.5em; }
.lfb-top__box { grid-column: 2; grid-row: 3; align-self: end; }
.lfb-top__logo { --prog-logo-h: 74px; margin: 0 0 var(--space-3); }
.btn.lfb-top__btn, .btn.lfb-close__btn { width: 100%; height: auto; min-height: var(--btn-h); padding-block: .85rem; white-space: normal; text-align: left; line-height: 1.25; justify-content: space-between; }
.lfb-top__box .cta-note { margin: .8rem 0 0; color: color-mix(in srgb, var(--c-on-ink) 80%, transparent); font-size: var(--fs-small); }
@media (max-width: 1023px) {
  .lfb-top .hero__words.lfb-top__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; row-gap: var(--space-4); padding-block: var(--space-6) var(--space-6); }
  .lfb-top__box { grid-column: 1; grid-row: 2; justify-self: start; width: min(100%, 470px); }
}
/* (the phone's first screen holds the button: a lower clip, a smaller logo and box) */
@media (max-width: 767px) {
  .lfb-top .hero__stage { height: 250px; }
  .lfb-top .hero__stage::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 40%, transparent) 30%, transparent 56%); }
  .lfb-top .hero__words.lfb-top__in { row-gap: var(--space-3); padding-block: var(--space-2) var(--space-5); }
  .lfb-top__box.panel { padding: 16px; }
  .lfb-top__logo { --prog-logo-h: 46px; margin-bottom: 12px; }
}

/* 2. The problem: the ink, the head centered, the figure as the picture (lfb-gap), its stop icon over the field's
   top right. */
.lfb-problem__head { margin-inline: auto; text-align: center; }
.lfb-problem__stage { position: relative; max-width: 1120px; margin: 0 auto; }
.lfb-problem__scene { width: 100%; }
.lfb-problem__stop { position: absolute; right: 0; top: -54px; z-index: 3; }
/* (on the phone the line runs to the right edge: the head leaves the icon a gap of its own) */
@media (max-width: 767px) { .lfb-problem__head.part-head { margin-bottom: 64px; } .lfb-problem__stop { top: -52px; } }

/* 3. The solution: the head on the paper, then the clip across the page: the owner applying at her counter at the
   left (her face at 20 to 31%), the network in dark glass in the right half, clear of her. Under 700 px the clip is a
   band and the panel stands under it on the ink. */
.lfb-sol { padding-bottom: 0; }
/* (the clip's height lets the head and the whole panel stand on one computer screen) */
.lfb-sol__media { position: relative; height: clamp(560px, 40vw, 640px); margin-top: clamp(var(--space-4), 4vw, var(--space-5)); overflow: hidden; background: var(--c-ink); }
.lfb-sol__clip { position: absolute; inset: 0; }
.lfb-sol__video { object-position: 38% 50%; }
.lfb-sol__clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 42%, transparent) 0%, transparent 46%); }
.lfb-sol .lfb-sol__net { position: absolute; z-index: 2; top: 50%; right: max(var(--gutter), calc(50% - 600px)); width: 420px; height: 480px; translate: 0 -50%; }
.lfb-sol__stop { position: absolute; z-index: 3; top: calc(50% - 240px); right: calc(max(var(--gutter), calc(50% - 600px)) + 432px); }
/* (on the phone the panel stays on the clip, as on a computer: a tall clip drawn from higher up, her face in its top
   third, the panel over the counter below her) */
@media (max-width: 699px) {
  .lfb-sol__media { height: 700px; }
  .lfb-sol__clip .lfb-sol__video { top: -55%; bottom: auto; height: calc(155% + 2px); object-position: 18% 50%; }
  .lfb-sol__clip::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 55%, transparent) 0%, transparent 60%); }
  .lfb-sol .lfb-sol__net { top: auto; right: 12px; left: 12px; bottom: 14px; width: auto; height: 424px; translate: none; }
  .lfb-sol__stop { top: 14px; right: 14px; }
}

/* 4. Bank or alternative: the home's compare (kit), each side its own photo. The bank's in grey, the officer's face at
   the left (his hand near the line). On a computer the alternative's photo is drawn mirrored (it holds no writing),
   so the owner at her phone stands in the right half (her face at 66 to 77%, her phone just right of the line) and
   the photo still fills the box; its cards at the foot right, over her lap, clear of her face and her phone. On the
   phone it is drawn as it is, her face in the right half. */
.compare { position: relative; height: clamp(480px, 44vw, 600px); border-radius: var(--radius-l); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-l); touch-action: pan-y; background: var(--c-ink); }
.compare__side { position: absolute; inset: 0; }
.compare__side--before { clip-path: inset(0 calc(100% - var(--kit-v, .5) * 100%) 0 0); background: var(--c-ink); }
.compare__pic { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.compare__pic--before { object-position: 30% 30%; filter: grayscale(1) brightness(.84) contrast(.96); }
.compare__pic--after { object-position: 20% 40%; }
@media (min-width: 768px) { .compare__pic--after { transform: scaleX(-1); object-position: 100% 40%; } }
.compare__tag { position: absolute; top: 20px; box-sizing: border-box; display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font: 600 var(--fs-small)/1 var(--font-ui); white-space: nowrap; }
.compare__side--before .compare__tag { left: 20px; background: color-mix(in srgb, var(--c-ink) 74%, transparent); color: var(--c-on-ink); }
.compare__side--after .compare__tag { right: 72px; background: var(--c-brand); color: var(--c-on-brand); }
.compare__cards { position: absolute; bottom: 24px; display: grid; gap: 10px; width: min(300px, 38%); }
.compare__side--before .compare__cards { left: 24px; }
.compare__side--after .compare__cards { right: 24px; width: min(280px, 34%); }
.ccard {
  display: block; padding: 14px 16px; border-radius: var(--radius-m); box-sizing: border-box;
  background: color-mix(in srgb, var(--c-paper) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--c-ink); font: 600 var(--fs-ui)/1.3 var(--font-ui); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--c-ink) 60%, transparent);
}
.ccard--good { display: flex; align-items: center; gap: 10px; }
.ccard--good .icon { flex: none; width: 22px; height: 22px; color: var(--c-brand-text); }
.ccard--good b { font-weight: 700; }
.ccard--stat { color: var(--c-ink-soft); font-weight: 500; }
.ccard--stat b { margin-right: .3em; color: var(--c-ink); font: 800 1.3rem/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.ccard--win { background: var(--c-ink); color: color-mix(in srgb, var(--c-on-ink) 82%, transparent); }
.ccard--win b { color: var(--c-brand-on-ink); }
.compare__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.handle { position: absolute; top: 0; bottom: 0; left: calc(var(--kit-v, .5) * 100%); z-index: 4; width: 0; pointer-events: none; }
.handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--c-paper); box-shadow: 0 0 14px color-mix(in srgb, var(--c-ink) 40%, transparent); }
.handle__knob { position: absolute; top: 50%; left: 0; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); transform: translate(-50%, -50%); box-shadow: var(--shadow-m); font-size: 1.1rem; }
.handle__knob .icon:first-child { transform: rotate(90deg); margin-right: -4px; }
.handle__knob .icon:last-child { transform: rotate(-90deg); margin-left: -4px; }
.handle__hint { position: absolute; top: calc(50% - 64px); left: 0; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c-ink) 70%, transparent); color: var(--c-on-ink); font: 600 13px/1 var(--font-ui); }
.compare[data-kit-touched] .handle__hint { opacity: 0; }
.compare__range:focus-visible ~ .handle .handle__knob { outline: 3px solid var(--c-teal); outline-offset: 3px; }
.compare__stop { position: absolute; right: 20px; top: 17px; z-index: 6; }
@media (max-width: 767px) {
  .compare { height: 600px; }
  .compare__pic--before { object-position: 27% 30%; }
  .compare__pic--after { object-position: 20% 40%; }
  .compare__tag { top: 16px; max-width: calc(50% - 26px); padding: 7px 10px; font-size: 13px; line-height: 1.2; white-space: normal; }
  .compare__side--before .compare__tag { left: 60px; max-width: calc(50% - 72px); }
  .compare__side--after .compare__tag { right: 12px; top: 16px; }
  .compare__cards { width: calc(50% - 22px); bottom: 14px; gap: 8px; }
  .compare__side--before .compare__cards { left: 10px; }
  .compare__side--after .compare__cards { right: 10px; width: calc(50% - 22px); }
  .ccard { padding: 10px 11px; font-size: 13px; }
  .ccard--stat b { font-size: 1rem; }
  .ccard--good { gap: 7px; align-items: flex-start; }
  .ccard--good .icon { width: 18px; height: 18px; }
  .compare__stop { right: auto; left: 12px; top: 14px; bottom: auto; transform: none; }
  .handle__hint { top: calc(50% + 40px); }
}
.lfb-src { margin: var(--space-3) 0 0; color: var(--c-ink-soft); font-size: var(--fs-small); }
.band--ink .lfb-src { color: color-mix(in srgb, var(--c-on-ink) 66%, transparent); }

/* 5. The race (signature): a dark plate on the ink, the scene across it; the stop icon at its top right, where the
   calendar is empty. */
.lfb-race__plate { position: relative; padding: clamp(18px, 2.6vw, 34px); border-radius: var(--radius-l); background: color-mix(in srgb, var(--c-on-ink) 4%, var(--c-ink)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), inset 0 0 0 1px rgb(255 255 255 / .08), var(--shadow-l); }
/* (the head and the whole plate on one computer screen: the wide layout needs about 500 px, the rows about 555) */
.lfb-race .part-head { margin-bottom: var(--space-4); }
.lfb-race__scene { width: 100%; height: 505px; }
.lfb-race__stop { position: absolute; z-index: 3; top: 12px; right: 12px; }
@media (max-width: 1000px) { .lfb-race__scene { height: 580px; } }
@media (max-width: 699px) { .lfb-race__plate { margin-inline: calc(12px - var(--gutter)); padding: 16px 14px; } }

/* 6. The fundings: twelve cards, each over its trade's empty place, the days to fund on top, the amount, the term
   and what it paid for at the foot; the order buttons reorder them (assets\js\pages\biz-capital.js). Phone: two
   columns, the buttons on one row. */
.lfb-fund__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-bottom: clamp(var(--space-4), 4vw, var(--space-5)); }
.lfb-fund__head .part-head { margin-bottom: 0; max-width: 42rem; }
.lfb-sort { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--c-paper-alt); box-shadow: inset 0 0 0 1px var(--c-line); }
.lfb-sort__b { appearance: none; border: 0; margin: 0; background: transparent; height: 42px; padding: 0 16px; border-radius: 999px; color: var(--c-ink-soft); font: 600 var(--fs-ui)/1 var(--font-ui); white-space: nowrap; cursor: pointer; }
.lfb-sort__b[aria-pressed="true"] { background: var(--c-ink); color: var(--c-on-ink); }
@media (hover: hover) and (pointer: fine) { .lfb-sort__b[aria-pressed="false"]:hover { color: var(--c-ink); background: color-mix(in srgb, var(--c-ink) 6%, transparent); } }
.lfb-sort__b:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }
.lfb-fund__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin: 0; padding: 0; list-style: none; }
.fcard { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden; isolation: isolate; background: var(--c-ink); color: var(--c-on-ink); box-shadow: var(--shadow-m); }
.fcard__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.fcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 30%, transparent) 0%, transparent 22%, transparent 36%, color-mix(in srgb, var(--c-ink) 86%, transparent) 66%, color-mix(in srgb, var(--c-ink) 94%, transparent) 100%); }
.fcard__days { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 8px; border-radius: 999px; background: var(--c-brand); color: var(--c-on-brand); font: 700 14px/1 var(--font-ui); white-space: nowrap; box-shadow: 0 8px 18px -8px rgb(0 0 0 / .6); }
.fcard__days .icon { width: 17px; height: 17px; }
.fcard__body { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.fcard__body p { margin: 0; }
.fcard__ind { margin-bottom: 4px !important; color: color-mix(in srgb, var(--c-on-ink) 76%, transparent); font: 600 13px/1.2 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; }
.fcard__amt { font: 800 clamp(1.3rem, .9rem + 1vw, 1.7rem)/1.15 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fcard__meta { margin: 4px 0 8px !important; color: color-mix(in srgb, var(--c-on-ink) 74%, transparent); font: 500 14px/1.3 var(--font-ui); }
.fcard__use { font: 500 15px/1.35 var(--font-ui); }
@media (max-width: 1099px) { .lfb-fund__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .lfb-fund__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lfb-sort { display: flex; width: 100%; box-sizing: border-box; }
  .lfb-sort__b { flex: 1; padding: 0 6px; font-size: 14px; }
  .fcard { aspect-ratio: auto; height: 300px; }
  .fcard__days { top: 10px; left: 10px; height: 28px; padding: 0 9px 0 7px; font-size: 13px; }
  .fcard__body { left: 12px; right: 12px; bottom: 12px; }
  .fcard__ind { font-size: 12px; letter-spacing: .03em; }
  .fcard__amt { font-size: 1.15rem; }
  .fcard__meta { margin: 3px 0 6px !important; font-size: 13px; }
  .fcard__use { font-size: 14px; line-height: 1.3; }
}

/* 7. Close: the café owner on her call, smiling (her face mid-frame): the clip in the right 64%, its left edge into
   the ink, the words at the left; under 1200 px the clip is a band above the words. */
/* F5: Edgard's "24-48 hours" never breaks at its hyphen */
.lfb-close__nb { white-space: nowrap; }
.lfb-close .close__in { z-index: 5; display: flex; flex-direction: column; align-items: flex-start; }
.lfb-close .close__in > * { max-width: 30rem; }
/* (its last word, "consultation.", is long in Unbounded: the headline takes a wider column and a smaller size) */
.lfb-close .close__in h2 { max-width: 40rem; font-size: clamp(1.75rem, 1.1rem + 2vw, 2.6rem); }
.lfb-close .close__in .lfb-close__btn { max-width: 30rem; margin-top: var(--space-4); }
.lfb-close .close__media { inset: 0 0 0 auto; width: 64%; }
.lfb-close .close__video { object-position: 54% 40%; }
.lfb-close .close__media::after { background: linear-gradient(90deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 50%, transparent) 14%, transparent 34%), linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 35%, transparent), transparent 30%); }
@media (max-width: 1199px) {
  .lfb-close { padding-block: 0 clamp(4.5rem, 8vw, 6.5rem); }
  .lfb-close .close__media { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; max-height: 520px; }
  .lfb-close .close__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 35%, transparent) 24%, transparent 48%); }
  .lfb-close .close__in { margin-top: calc(-1 * var(--space-4)); }
  .lfb-close .close__stop { top: 16px; }
}
@media (max-width: 599px) {
  .lfb-close .close__media { aspect-ratio: 4 / 5; }
  .lfb-close .close__video { object-position: 54% 40%; }
}
