/* Lease Agreements page, Inside the Lease Builder: a rotating deck of the lease creation screens
   (app/features/public_website/ui/_leases_builder_deck.html, static/js/lease-builder-deck.js).
   Each screen is drawn at app width and scaled to fit its card whole; .lbx-* classes draw the screen. */
.lb-deck { position: relative; width: 100%; aspect-ratio: 2.1; overflow: hidden; isolation: isolate; }
.lb-deck figure { position: absolute; margin: 0; top: 6%; bottom: 3%; left: 28%; width: 44%; overflow: hidden; border-radius: 20px; opacity: 0; z-index: 0;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .4);
  transition: left .7s cubic-bezier(.4, 0, .2, 1), top .7s cubic-bezier(.4, 0, .2, 1), width .7s cubic-bezier(.4, 0, .2, 1), opacity .5s ease, filter .5s ease; }
.lb-deck figure.is-prev { left: .5%; opacity: .8; z-index: 1; filter: blur(2.5px) saturate(.9); cursor: pointer; }
.lb-deck figure.is-next { left: 55.5%; opacity: .8; z-index: 1; filter: blur(2.5px) saturate(.9); cursor: pointer; }
.lb-deck figure:is(.is-prev, .is-next):hover { opacity: 1; filter: blur(1px); }
.lb-deck figure.is-front { left: 25%; top: 0; width: 50%; opacity: 1; z-index: 3; }
.lb-deck figure.is-leaving { left: -46%; }
.lb-deck figure.is-coming { left: 102%; }
.lb-deck figure[data-tint="lavender"] { background: radial-gradient(60% 70% at 12% 16%, #D2C2FF 0, transparent 62%), radial-gradient(55% 60% at 90% 86%, #C9B8FF 0, transparent 64%), #E4DAFF; }
.lb-deck figure[data-tint="lime"] { background: radial-gradient(60% 70% at 12% 85%, #DCF08C 0, transparent 62%), radial-gradient(55% 60% at 90% 12%, #E9F7A8 0, transparent 64%), #EEF7C2; }
.lb-deck figure[data-tint="sky"] { background: radial-gradient(60% 70% at 88% 18%, #B9DCFF 0, transparent 62%), radial-gradient(55% 60% at 10% 85%, #C6E6FF 0, transparent 64%), #D9ECFF; }
.lb-deck figure[data-tint="pink"] { background: radial-gradient(60% 70% at 10% 15%, #FFCBF1 0, transparent 62%), radial-gradient(55% 60% at 92% 88%, #FFC2E0 0, transparent 64%), #FBDDF0; }
.lb-deck figure[data-tint="mint"] { background: radial-gradient(60% 70% at 88% 84%, #A9EBD8 0, transparent 62%), radial-gradient(55% 60% at 10% 14%, #BDF1E2 0, transparent 64%), #D2F4E9; }
.lb-win { position: absolute; top: 6%; left: 5%; right: 5%; bottom: 0; overflow: hidden; background: #fff; border-radius: 10px 10px 0 0; box-shadow: 0 10px 30px -14px rgba(15, 23, 42, .35); }

.lb-now { max-width: 640px; margin: 20px auto 0; text-align: center; color: var(--fp-navy, #042238); }
.lb-now b { display: block; font-weight: 700; }
.lb-now span { display: block; color: var(--fp-grey, #475569); }
.lb-dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.lb-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.lb-dots button span { display: block; width: 10px; height: 10px; border-radius: 50%; background: #8A93A0; transition: width .3s, background .3s; }
.lb-dots button:hover span { background: #5B6472; }
.lb-dots button[aria-current="true"] span { width: 28px; border-radius: 6px; background: #6B48E0; }
.lb-dots button:focus-visible { outline: 2px solid #6B48E0; outline-offset: -6px; border-radius: 8px; }

/* The screen itself */
.lbx { position: absolute; top: 0; left: 0; width: 640px; padding: 20px 26px 24px; transform-origin: 0 0; pointer-events: none; background: #fff;
  font: 400 14px/1.45 "Open Sans", Arial, sans-serif; color: #1B1C1A; text-align: left; }
.lbx * { margin: 0; }
/* typography.css forces Inter on every element; the screens and caption keep the app's Open Sans, as the hero cards do. */
#main-content .lb :is(.lbx, .lbx *, .lb-now b, .lb-now span) { font-family: "Open Sans", Arial, sans-serif !important; }
.lbx b { font-weight: 700; }
.lbx-back { display: block; color: #006CB4; font-size: 14px; font-weight: 600; }
.lbx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.lbx b.lbx-title { font-size: 24px; line-height: 1.3; font-weight: 600; }
.lbx-tb { flex: none; color: #006CB4; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lbx-prog { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; font-size: 13px; color: #5B6472; white-space: nowrap; }
.lbx-prog i { flex: 1; height: 6px; border-radius: 99px; background: #E8EBF0; overflow: hidden; }
.lbx-prog i u { display: block; height: 100%; border-radius: 99px; background: #6B48E0; }
.lbx-sub { margin-top: 2px; font-size: 14px; color: #5B6472; }
.lbx-h { margin-top: 14px; font-size: 18px; font-weight: 600; }
.lbx-q { margin: 12px 0 6px; font-size: 16px; font-weight: 700; }
.lbx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lbx-fld { margin-top: 10px; }
.lbx-lab { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; }
.lbx-lab i { font-style: normal; color: #D8293E; }
.lbx-box { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border: 1px solid #C9D0DA; border-radius: 4px; font-size: 16px; background: #fff; white-space: nowrap; overflow: hidden; }
.lbx-box.sel::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: 8px; border-right: 2px solid #5B6472; border-bottom: 2px solid #5B6472; transform: rotate(45deg) translate(-2px, -2px); }
.lbx-box.ph { color: #6B7280; }
.lbx-money .lbx-lab { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5B6472; }
.lbx-ul { display: flex; align-items: center; gap: 6px; height: 36px; border-bottom: 1px solid #9AA3AF; font-size: 16px; }
.lbx-ul s { text-decoration: none; color: #5B6472; }
.lbx-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lbx-opts.col { flex-direction: column; gap: 4px; }
.lbx-opt { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 16px; }
.lbx-r, .lbx-c { display: inline-block; width: 18px; height: 18px; flex: none; border: 2px solid #8A93A0; }
.lbx-r { border-radius: 50%; }
.lbx-r.on { border-color: #6B48E0; background: radial-gradient(circle, #6B48E0 0 4px, #fff 5px); }
.lbx-c { position: relative; border-radius: 3px; }
.lbx-c.on { border-color: #6B48E0; background: #6B48E0; }
.lbx-c.on::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lbx-rec { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 99px; background: #E3EEFF; color: #0B3A75; font-size: 12px; font-weight: 600; }
.lbx-rec::before { content: "\2713"; font-weight: 700; }
.lbx-pill { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 18px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #1B1C1A; background: #E5E7EB; white-space: nowrap; }
.lbx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lbx-pill.active { background: #74C600; }
.lbx-pill.info { background: #2B7FFF; }
.lbx-chip { display: inline-flex; align-items: center; flex: none; height: 24px; padding: 0 10px; border-radius: 99px; background: #D1F48C; font-size: 12px; font-weight: 600; }
.lbx-note { display: flex; gap: 8px; align-items: flex-start; width: fit-content; max-width: 100%; margin-top: 10px; padding: 8px 12px; border-radius: 4px; background: #C9ECFF; color: #042238; font-size: 14px; }
.lbx-note::before { content: "i"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #042238; color: #C9ECFF; font: 700 12px/1 Georgia, serif; }
.lbx-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.lbx-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 99px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.lbx-btn.pri { background: linear-gradient(90deg, #00B330, #2FD458 55%, #6BE36A); color: #1B1C1A; }
.lbx-btn.sec { background: #fff; border: 1px solid #6B48E0; color: #6B48E0; }
.lbx-card { padding: 12px; border: 2px solid #DCE1E7; border-radius: 4px; background: #fff; }
.lbx-list > div { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #E8EBF0; }
.lbx-list > div:first-child { border-top: 0; padding-top: 2px; }
.lbx-num { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #EDE7FF; color: #6B48E0; font-size: 12px; font-weight: 700; }
.lbx-num.done { background: #D1F48C; color: #1B1C1A; }
.lbx-grow { flex: 1; min-width: 0; }
.lbx-grow b { display: block; font-size: 15px; }
.lbx-grow small { display: block; font-size: 13px; color: #5B6472; }
.lbx-split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; align-items: start; margin-top: 12px; }
.lbx-gt { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5B6472; }
.lbx-gv { font-size: 14px; font-weight: 600; }
.lbx-tbl > div { display: grid; grid-template-columns: 1fr 88px 88px; align-items: center; min-height: 34px; border-bottom: 1px solid #EEF0F3; font-size: 14px; }
.lbx-tbl > div > span:not(:first-child) { justify-self: center; }
.lbx-tbl > div:first-child { min-height: 28px; border-bottom-color: #DCE1E7; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5B6472; }
.lbx-tbl.c4 > div { grid-template-columns: 1fr 1fr 1fr 60px; }
.lbx-tbl.c4 > div > span:not(:first-child) { justify-self: start; }
.lbx-yn { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid #EEF0F3; font-size: 15px; }
.lbx-yn .lbx-opts { flex: none; gap: 14px; }
.lbx-rule { margin-top: 12px; padding: 10px 12px; border-radius: 4px; background: #F4F1FF; font-size: 13px; }
.lbx-rule b:first-child { display: block; margin-bottom: 4px; font-size: 14px; }
.lbx-who { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #EEF0F3; }
.lbx-who:first-of-type { border-top: 0; }
.lbx-av { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #EDE7FF; color: #6B48E0; font-size: 12px; font-weight: 700; }
.lbx-ok { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 15px; }
.lbx-ok::before { content: "\2713"; color: #287A4A; font-weight: 700; }
.lbx.is-narrow { padding: 16px 18px 20px; }
.lbx.is-narrow .lbx-title { font-size: 21px; }
.lbx.is-narrow :is(.lbx-split, .lbx-row2) { grid-template-columns: 1fr; }
.lbx.is-narrow .lbx-acts { justify-content: stretch; }
.lbx.is-narrow .lbx-acts .lbx-btn { flex: 1; justify-content: center; padding: 0 10px; }

@media (max-width: 767px) {
  .lb-deck { aspect-ratio: .74; }
  .lb-deck figure { border-radius: 14px; }
  .lb-deck figure.is-front { left: 7%; width: 86%; }
  .lb-deck figure.is-prev { left: -62%; width: 70%; }
  .lb-deck figure.is-next { left: 92%; width: 70%; }
  .lb-win { top: 4%; left: 4%; right: 4%; }
  .lb-deck { touch-action: pan-y; }
  /* Nine dots fit the phone width; the deck also swipes and its side cards can be tapped. */
  .lb-dots { gap: 0; }
  .lb-dots button { width: 36px; }
  .lb-dots button[aria-current="true"] span { width: 22px; }
}
@media (max-width: 360px) { .lb-dots button { width: 32px; } }
@media (prefers-reduced-motion: reduce) { .lb-deck figure, .lb-dots button span { transition: none; } }

/* The deck sits on a soft desk photo (lease-builder-backdrop-v1, GPT) with a light veil. */
.lb-backdrop { position: relative; padding-top: 28px; overflow: hidden; border-radius: 20px; background: #F1EEF8 url("/images/how-it-works/lease-builder-backdrop-v1.webp") center / cover no-repeat; }
.lb-backdrop::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .35)); }
@media (max-width: 767px) { .lb-backdrop { padding-top: 16px; border-radius: 14px; } }
