/* BIL Custom App Download — phone and store links. */
.bilcustom-app-download,.bilcustom-app-download *{box-sizing:border-box}
.bilcustom-app-download{overflow:hidden;border-radius:48px;color:var(--bil-dark,#2d153f);background:var(--bil-surface-03,#dcb7f0);font-family:var(--font-bil,"Mona Sans",sans-serif)}
.bilcustom-app-download--none{background:transparent}
.bilcustom-app-download--white{background:var(--bil-white,#fff)}
.bilcustom-app-download--background{background:var(--bil-background,#ede9ef)}
.bilcustom-app-download--dark{background:var(--bil-dark,#2d153f);color:var(--bil-white,#fff)}
.bilcustom-app-download--purple{background:var(--bil-purple,#702f8a);color:var(--bil-white,#fff)}
.bilcustom-app-download--color01{background:var(--bil-surface-01,#faf3ff)}
.bilcustom-app-download--color02{background:var(--bil-surface-02,#f3d6ff)}
.bilcustom-app-download--color03{background:var(--bil-surface-03,#dcb7f0)}
.bilcustom-app-download--softPurple{background:#e2d7e5}
.bilcustom-app-download__heading-out{text-align:center;padding-inline:20px}
.bilcustom-app-download__heading-out>.bilcustom-section-heading{margin:0 0 22px}
.bilcustom-app-download__heading-in{padding:var(--bilcustom-app-padding,40px) var(--bilcustom-app-padding,40px) 0}
.bilcustom-app-download__heading-in>.bilcustom-section-heading{margin:0 0 22px}
.bilcustom-app-download__subtitle{max-width:none;margin:0 0 64px;font-size:clamp(20px,2vw,32px);line-height:1.35;color:inherit;opacity:.78}
.bilcustom-app-download__heading-in .bilcustom-app-download__subtitle{margin-bottom:0}
.bilcustom-app-download__panel{display:grid;grid-template-columns:minmax(280px,42%) minmax(0,1fr);gap:clamp(32px,5vw,92px);align-items:end;min-height:540px;padding:var(--bilcustom-app-padding,40px) clamp(30px,5vw,88px) 0}
.bilcustom-app-download__phone-wrap{align-self:stretch;position:relative;min-width:0;min-height:510px}
.bilcustom-app-download__phone{position:absolute;display:block;width:min(100%,540px);height:auto;max-height:none;left:50%;bottom:0%;transform:translateX(-50%);object-fit:contain;object-position:bottom center}
.bilcustom-app-download__details{align-self:center;min-width:0;padding-bottom:clamp(24px,4vw,60px)}
.bilcustom-app-download__desktop-copy{margin-bottom:28px}
.bilcustom-app-download__richtext{font-size:clamp(18px,1.5vw,24px);line-height:1.45}
.bilcustom-app-download__richtext p{margin:0 0 .8em}
.bilcustom-app-download__richtext p:last-child{margin-bottom:0}
.bilcustom-app-download__richtext a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.bilcustom-app-download__download-label{margin:20px 0 0;font-size:clamp(18px,1.5vw,24px);font-weight:700;line-height:1.3}
.bilcustom-app-download__stores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,4vw,70px);align-items:start}
.bilcustom-app-download__store{min-width:0;display:flex;flex-direction:column;align-items:center;gap:20px}
.bilcustom-app-download__badge-link{display:block;width:min(100%,275px);min-height:68px}
.bilcustom-app-download__badge-link img{display:block;width:100%;height:68px;object-fit:contain}
.bilcustom-app-download__qr-link{display:grid;place-items:center;width:min(100%,250px);aspect-ratio:1;border:2px solid var(--bil-purple,#702f8a);border-radius:18px;background:#fff;padding:16px}
.bilcustom-app-download__qr-link img{display:block;width:100%;height:100%;object-fit:contain}
.bilcustom-app-download a:focus-visible{outline:3px solid var(--bil-focus,#0063b3);outline-offset:5px;border-radius:8px}
.bilcustom-app-download__mobile-copy,.bilcustom-app-download__mobile-cta{display:none}
@media(max-width:767px){
 .bilcustom-app-download{border-radius:32px}
 .bilcustom-app-download__heading-out{padding-inline:0}
 .bilcustom-app-download__heading-out>.bilcustom-section-heading,.bilcustom-app-download__heading-in>.bilcustom-section-heading{margin-bottom:20px}
 .bilcustom-app-download__subtitle{margin:0 0 18px;font-size:20px}
 .bilcustom-app-download__heading-in{padding:24px 20px 0}
 .bilcustom-app-download__mobile-copy{display:block;text-align:center;padding:0 8px 0;margin-bottom:52px;color:var(--bil-dark,#2d153f)}
 .bilcustom-app-download__mobile-copy .bilcustom-app-download__richtext{font-size:18px;line-height:1.5}
 .bilcustom-app-download__mobile-copy .bilcustom-app-download__download-label{margin-top:12px;font-size:18px}
 .bilcustom-app-download__desktop-copy{display:none}
 .bilcustom-app-download__panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;min-height:0;aspect-ratio:1.75;padding:22px 22px 0;align-items:end}
 .bilcustom-app-download__phone-wrap{min-height:0;align-self:stretch}
 .bilcustom-app-download__phone{width:145%;max-width:none;left:37%;bottom:-12%;object-fit:contain}
 .bilcustom-app-download__details{align-self:center;padding:0 0 12px}
 .bilcustom-app-download__stores{display:block}
 .bilcustom-app-download__store{gap:0}
 .bilcustom-app-download__badge-link{min-height:0;width:100%}
 .bilcustom-app-download__badge-link img{height:auto;max-height:66px}
 .bilcustom-app-download__qr-link{display:none}
 .bilcustom-app-download__mobile-cta{display:block;margin-top:12px;padding:14px 12px;border-radius:16px;background:var(--bil-purple,#702f8a);color:#fff;text-align:center;text-decoration:none;font-weight:700;font-size:16px;line-height:1.25}
 .bilcustom-app-download[data-platform="apple"] .bilcustom-app-download__store--google,
 .bilcustom-app-download[data-platform="android"] .bilcustom-app-download__store--apple{display:none}
 .bilcustom-app-download[data-platform="unknown"] .bilcustom-app-download__mobile-cta{display:none}
 .bilcustom-app-download[data-platform="unknown"] .bilcustom-app-download__stores{display:flex;flex-direction:column;gap:8px}
}
@media(max-width:460px){.bilcustom-app-download__panel{aspect-ratio:1.58;padding:18px 14px 0}.bilcustom-app-download__phone{width:160%;left:32%}.bilcustom-app-download__mobile-cta{padding:12px 8px;font-size:14px}}

/* Light layout: desktop lavender panel and stacked mobile content. */
.bilcustom-app-download-light,
.bilcustom-app-download-light * {
  box-sizing: border-box;
}

.bilcustom-app-download-light {
  --bilcustom-light-radius: clamp(24px, 3vw, 48px);
  --bilcustom-light-panel: var(--bil-surface-03, #dcb7f0);
  color: var(--bil-dark, #2d153f);
  font-family: var(--font-bil, "Mona Sans", sans-serif);
}

.bilcustom-app-download-light__layout {
  display: grid;
  grid-template:
    ". phone ." clamp(64px, 9vw, 124px)
    "stores phone copy" minmax(clamp(220px, 19vw, 290px), auto)
    / minmax(0, 1fr) minmax(0, 1.16fr) minmax(0, 1.5fr);
  column-gap: clamp(12px, 2.5vw, 36px);
  padding-inline: clamp(24px, 5vw, 76px);
  position: relative;
  isolation: isolate;
}

.bilcustom-app-download-light__layout::before {
  content: "";
  grid-area: 2 / 1 / 3 / -1;
  position: absolute;
  inset: 0;
  margin-inline: calc(-1 * clamp(24px, 5vw, 76px));
  z-index: -1;
  border-radius: var(--bilcustom-light-radius);
  background: var(--bilcustom-light-panel);
}

.bilcustom-app-download-light__copy {
  grid-area: copy;
  align-self: center;
  min-width: 0;
  padding-block: 24px;
  text-align: center;
  overflow-wrap: anywhere;
}

.bilcustom-app-download-light__features {
  display: grid;
  grid-template-columns: repeat(var(--bilcustom-light-feature-count, 3), minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 24px);
  max-width: 540px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.bilcustom-app-download-light__features--1 { --bilcustom-light-feature-count: 1; }
.bilcustom-app-download-light__features--2 { --bilcustom-light-feature-count: 2; }
.bilcustom-app-download-light__features--4 { --bilcustom-light-feature-count: 4; }

.bilcustom-app-download-light__feature {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  font-size: clamp(.875rem, 1.2vw, 1rem);
  font-weight: 650;
  line-height: 1.3;
}

.bilcustom-app-download-light__feature img {
  display: block;
  object-fit: contain;
}

.bilcustom-app-download-light__description {
  max-width: 52ch;
  margin-inline: auto;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.5;
}

.bilcustom-app-download-light__features + .bilcustom-app-download-light__description {
  margin-top: 20px;
}

.bilcustom-app-download-light__description > :last-child { margin-bottom: 0; }

.bilcustom-app-download-light__stores {
  grid-area: stores;
  align-self: center;
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  padding-block: 20px;
  overflow-wrap: anywhere;
}

.bilcustom-app-download-light__store-label {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.35;
}

.bilcustom-app-download-light__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  min-height: 48px;
  max-width: 100%;
  border-radius: 8px;
}

.bilcustom-app-download-light__badge img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 48px;
  object-fit: contain;
}

.bilcustom-app-download-light__badge--text {
  padding-inline: 12px;
  border: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}

.bilcustom-app-download-light a:focus-visible {
  outline: 3px solid var(--bil-focus, #0063b3);
  outline-offset: 3px;
}

.bilcustom-app-download-light__phone-wrap {
  grid-area: phone;
  position: relative;
  align-self: stretch;
  min-width: 0;
  pointer-events: none;
}

.bilcustom-app-download-light__phone {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.bilcustom-app-download-light__layout--no-phone {
  grid-template:
    "stores copy" minmax(220px, auto)
    / minmax(0, 1fr) minmax(0, 2fr);
}

.bilcustom-app-download-light__layout--no-phone::before { grid-row: 1 / 2; }

.bilcustom-app-download-light__layout--no-stores:not(.bilcustom-app-download-light__layout--no-phone) {
  grid-template:
    "phone ." clamp(64px, 9vw, 124px)
    "phone copy" minmax(220px, auto)
    / minmax(0, 1fr) minmax(0, 1.55fr);
}

.bilcustom-app-download-light__layout--no-copy:not(.bilcustom-app-download-light__layout--no-phone) {
  grid-template:
    ". phone" clamp(64px, 9vw, 124px)
    "stores phone" minmax(220px, auto)
    / minmax(0, 1fr) minmax(0, 1fr);
}

.bilcustom-app-download-light__layout--no-copy.bilcustom-app-download-light__layout--no-stores .bilcustom-app-download-light__phone-wrap,
.bilcustom-app-download-light__layout--no-copy.bilcustom-app-download-light__layout--no-phone .bilcustom-app-download-light__stores {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 320px);
  justify-items: center;
}

.bilcustom-app-download-light__layout--copy-only {
  grid-template: "copy" auto / minmax(0, 1fr);
}
.bilcustom-app-download-light__layout--copy-only::before { content: none; }

.bilcustom-app-download-light__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-top: clamp(24px, 4vw, 54px);
  text-align: center;
}

.bilcustom-app-download-light__actions p { margin: 0; }

.bilcustom-app-download-light__cta.bilcustom-cta { width: auto; max-width: 100%; }

.bilcustom-app-download-light__cta .bilcustom-cta__link {
  min-height: 44px;
  padding-inline: 24px;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .bilcustom-app-download-light__layout,
  .bilcustom-app-download-light__layout--no-stores:not(.bilcustom-app-download-light__layout--no-phone),
  .bilcustom-app-download-light__layout--no-copy:not(.bilcustom-app-download-light__layout--no-phone) {
    grid-template:
      "copy copy" auto
      "stores phone" minmax(146px, auto)
      / minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 10px;
    padding-inline: clamp(16px, 6vw, 44px);
  }

  .bilcustom-app-download-light__layout::before {
    grid-area: 2 / 1 / 3 / -1;
    margin-inline: calc(-1 * clamp(16px, 6vw, 44px));
  }

  .bilcustom-app-download-light__copy {
    padding: 0 0 54px;
    margin-inline: calc(-1 * clamp(8px, 3vw, 24px));
  }

  .bilcustom-app-download-light__features { gap: 10px; }
  .bilcustom-app-download-light__features--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  .bilcustom-app-download-light__phone { height: calc(100% + 34px); }
  .bilcustom-app-download-light__layout--no-copy { margin-top: 34px; }
  .bilcustom-app-download-light__layout--no-copy.bilcustom-app-download-light__layout--no-phone { margin-top: 0; }
  .bilcustom-app-download-light__layout--no-stores.bilcustom-app-download-light__layout:not(.bilcustom-app-download-light__layout--no-phone) .bilcustom-app-download-light__phone-wrap {
    grid-column: 1 / -1;
    width: min(80%, 260px);
    justify-self: center;
  }
  .bilcustom-app-download-light__layout--no-phone .bilcustom-app-download-light__stores {
    grid-column: 1 / -1;
    justify-items: center;
  }
  .bilcustom-app-download-light__layout--no-phone .bilcustom-app-download-light__copy { padding-bottom: 24px; }
  .bilcustom-app-download-light__layout--copy-only {
    grid-template: "copy" auto / minmax(0, 1fr);
  }
  .bilcustom-app-download-light__layout--copy-only .bilcustom-app-download-light__copy { padding-bottom: 0; }

  .bilcustom-app-download-light__actions { flex-direction: column; }
  .bilcustom-app-download-light__cta.bilcustom-cta,
  .bilcustom-app-download-light__cta .bilcustom-cta__link { width: 100%; }
}
