/* Welcome lead pop-up (homepage). */
.lead { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--font-body); }
.lead[hidden] { display: none !important; }
.lead__scrim { position: absolute; inset: 0; background: rgba(13, 13, 13, .62); animation: lead-fade .4s ease both; }
.lead__panel { position: relative; width: min(800px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overscroll-behavior: contain; overflow: auto; background: var(--c-ivory); border-radius: var(--r-lg); box-shadow: 0 24px 64px rgba(13, 13, 13, .32); animation: lead-in .55s var(--ease) both; }
.lead__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.lead__media { position: relative; min-height: 0; overflow: hidden; background: var(--c-navy); }
.lead__img { position: absolute; inset: 0; background-size: cover; background-position: center; animation: settle 6s var(--ease) both; }
.lead__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 33, 89, .25) 0%, rgba(27, 33, 89, .1) 40%, rgba(13, 13, 13, .82) 100%); }
.lead__pitch { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 12px; }
.lead__pitch-title { font-family: var(--font-display); font-size: 22px; line-height: 1.25; color: var(--c-ivory); }
.lead__perks { display: grid; gap: 6px; }
.lead__perks li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.6; color: rgba(250, 248, 244, .86); }
.lead__perks li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--c-gold); }
.lead__body { position: relative; padding: 28px 32px 24px; }
.lead__close { position: absolute; top: 14px; right: 14px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(27, 33, 89, .2); background: var(--c-white); color: var(--c-navy); transition: background .3s ease, color .3s ease; }
.lead__close:hover { background: var(--c-navy); color: var(--c-ivory); }
.lead__form { display: grid; gap: 14px; }
.lead__intro { padding-right: 44px; }
.lead__eyebrow { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-bronze); line-height: 1.7; }
.lead__title { margin-top: 8px; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; color: var(--c-navy); }
.lead__lede { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--c-charcoal); }
.lead__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 12px; }
.lead .chips { margin-top: 8px; gap: 6px; }
.lead .chip { min-height: 36px; padding: 0 12px; }
.lead .lfield__input, .lead .lfield__phone { min-height: 44px; }
.lead__form .lform__note { font-size: 11.5px; line-height: 1.5; }
.lead .lfield__prefix { background: var(--c-mist); }
.lead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.lead__actions .btn-submit { min-height: 48px; }
.lead__submit { flex: 1 1 220px; }
.lead__later { min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid rgba(201, 168, 76, .7); background: none; font-size: var(--fs-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-stone); }
.lead__later:hover { color: var(--c-navy); }
.lead__done { display: grid; gap: 12px; justify-items: start; padding: 32px 44px 16px 0; }
.lead__done .check-ring { width: 52px; height: 52px; }
.lead__done .lead__title { margin-top: 0; font-size: 32px; }
.lead__done p { font-size: 16px; line-height: 1.7; color: var(--c-charcoal); }
.lead__view { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 8px; padding: 0 24px; border-radius: var(--r-lg); border: 1px solid var(--c-navy); color: var(--c-navy); font-size: var(--fs-micro); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: background .3s ease, color .3s ease; }
.lead__view:hover { background: var(--c-navy); color: var(--c-ivory); }
@keyframes lead-in { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lead-fade { from { opacity: 0; } to { opacity: 1; } }
/* Short screens (small laptops, 1280×720 / 1366×768): tighter still, so the whole pop-up fits without scrolling. */
@media (min-width: 761px) and (max-height: 720px) {
  .lead__body { padding: 22px 28px 18px; }
  .lead__form { gap: 11px; }
  .lead__title { font-size: 24px; }
  .lead__lede { font-size: 13.5px; }
  .lead .chip { min-height: 34px; font-size: 12.5px; }
  .lead .lfield__input, .lead .lfield__phone, .lead__actions .btn-submit { min-height: 42px; }
  .lead .lfield__label, .lead legend { font-size: 10.5px; }
}
/* Phones and narrow tablets: form only, as a bottom sheet. */
@media (max-width: 760px) {
  .lead { padding: 0; align-items: flex-end; }
  .lead__grid { grid-template-columns: minmax(0, 1fr); }
  .lead__media { display: none; }
  .lead__panel { width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; max-height: 92dvh; }
  .lead__body { padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); }
  .lead__close { top: 12px; right: 12px; }
  .lead__form { gap: 12px; }
  .lead__title { font-size: 24px; }
  .lead__lede { font-size: 14px; }
  .lead__fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lead__actions { flex-wrap: nowrap; gap: 16px; }
  .lead__submit { flex: 1 1 auto; }
}
/* Very small phones or landscape: chips get smaller so the form stays short. */
@media (max-width: 760px) and (max-height: 700px) {
  .lead__lede { display: none; }
  .lead .chip { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
}
