/* Welcome popup. Split card on computers (dark offer panel + form), compact banner + bottom sheet on phones. Theme colours with fallbacks. */
.leadpop { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.leadpop[hidden] { display: none; }
.leadpop-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 6, .62); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.leadpop-card { position: relative; display: grid; grid-template-columns: 5fr 6fr; width: 100%; max-width: 46rem; max-height: calc(100vh - 2rem); overflow: hidden; color: var(--c-text, #2b2b2b); background: var(--c-bg, #fff); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1); outline: none; }
.leadpop.is-in .leadpop-backdrop { opacity: 1; }
.leadpop.is-in .leadpop-card { opacity: 1; transform: none; }

/* offer panel: professional banner - warm gradient, glow circle and a real product photo cluster */
.lp-visual { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.8rem 1.5rem 0; overflow: hidden; border-right: 1px solid var(--c-border, #f0e2b8);
  background: radial-gradient(ellipse 85% 55% at 50% 84%, #fff 0, rgba(255, 255, 255, .9) 40%, rgba(255, 255, 255, 0) 100%), radial-gradient(rgba(201, 151, 0, .10) 1px, transparent 1.4px) 0 0 / 14px 14px, linear-gradient(180deg, #fffaf0 0%, #fff1c9 100%); }
.lp-visual > * { position: relative; z-index: 1; }
.lp-offer-top { display: inline-block; padding: .32rem .8rem; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ffd24a; background: #2b2b2b; border-radius: 999px; margin-bottom: .35rem; }
.lp-offer { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.lp-offer-num { font-family: var(--font-heading, 'Poppins', Arial, sans-serif); font-size: clamp(3.2rem, 7vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--c-text, #2b2b2b); }
.lp-offer-word { font-size: 1.9rem; line-height: 1.1; }
.lp-offer-off { font-family: var(--font-heading, 'Poppins', Arial, sans-serif); font-size: 1.6rem; font-weight: 800; letter-spacing: .06em; color: var(--c-gold-deep, #c99700); }
.lp-offer-sub { font-size: .98rem; font-weight: 500; color: #4a453c; }
.lp-offer-bar { display: block; width: 3rem; height: 4px; margin-top: .3rem; border-radius: 4px; background: linear-gradient(90deg, #ffc20e, #ffdd7a); }
.lp-hero { flex: 1 1 0; min-height: 11rem; width: calc(100% + 1.5rem); margin: .4rem -.75rem 0; position: relative; }
.lp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 14px rgba(60, 45, 10, .12)); }

/* form side */
.lp-main { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 2.1rem 1.9rem 1.4rem; overflow-y: auto; }
.leadpop-x { position: absolute; top: .6rem; right: .6rem; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--c-muted, #5f5a52); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.leadpop-x:hover { background: var(--c-bg-alt, #fff8e6); color: var(--c-text, #2b2b2b); }
.leadpop-title { margin: 0 1.4rem .45rem 0; font-size: 1.55rem; line-height: 1.22; letter-spacing: -.01em; }
.leadpop-text { margin: 0 0 1.2rem; color: var(--c-muted, #5f5a52); font-size: .96rem; line-height: 1.55; }
.leadpop-form { display: grid; gap: .75rem; }
.lp-field { display: grid; gap: .3rem; }
.lp-field label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4a453c; }
.lp-input { position: relative; }
.lp-input svg { position: absolute; left: .85rem; top: 50%; margin-top: -9px; color: #a09880; pointer-events: none; transition: color .15s; }
.lp-input:focus-within svg { color: var(--c-gold-deep, #c99700); }
.lp-input input { width: 100%; min-height: 50px; padding: .6rem .9rem .6rem 2.6rem; font: inherit; font-size: 1rem; color: var(--c-text, #2b2b2b); background: #faf8f2; border: 1.5px solid #e8e0c9; border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
.lp-input input::placeholder { color: #aaa392; }
.lp-input input:focus { outline: none; background: #fff; border-color: var(--c-gold, #ffc20e); box-shadow: 0 0 0 4px rgba(255, 194, 14, .28); }
.lp-field.has-error .lp-input input { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, .12); }
.lp-or { display: flex; align-items: center; gap: .7rem; color: #a09880; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.lp-or::before, .lp-or::after { content: ""; flex: 1; height: 1px; background: #ece5d0; }
.lp-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 52px; padding: .75rem 1rem; font-size: 1rem; font-weight: 700; letter-spacing: .02em; color: #2b2b2b; background: linear-gradient(180deg, #ffd24a, #ffc20e); border: 0; border-radius: 12px; box-shadow: 0 8px 20px rgba(255, 194, 14, .45), inset 0 -2px 0 rgba(0, 0, 0, .08); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255, 194, 14, .55), inset 0 -2px 0 rgba(0, 0, 0, .08); background: linear-gradient(180deg, #ffd24a, #ffc20e); color: #2b2b2b; }
.lp-btn svg { transition: transform .15s; } .lp-btn:hover svg { transform: translateX(3px); }
.lp-btn:focus-visible { outline: 3px solid #2b2b2b; outline-offset: 2px; }
.lp-btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.lp-msg { margin: 0; padding: .6rem .8rem; border-radius: 10px; font-size: .88rem; line-height: 1.45; background: #fdecea; color: #9b1c14; border: 1px solid #f3c2bd; }
.lp-msg[hidden] { display: none; }
.lp-skip { display: block; margin: .7rem auto 0; padding: .35rem .6rem; font: inherit; font-size: .86rem; color: var(--c-muted, #5f5a52); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-skip:hover { color: var(--c-text, #2b2b2b); }
.lp-fine { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: .4rem 0 0; font-size: .74rem; line-height: 1.4; color: #8a8372; text-align: center; }
.lp-fine svg { flex: none; }
.lp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* thank-you step */
.leadpop-done[hidden] { display: none; }
.leadpop-done { text-align: center; padding: .5rem 0; }
.leadpop-done .leadpop-title { margin-right: 0; }
.leadpop-badge { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin: 0 0 .8rem; border-radius: 50%; color: #17602d; background: #e0f3e6; box-shadow: 0 0 0 8px #f0f9f3; animation: lp-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes lp-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

html.lp-open, html.lp-open body { overflow: hidden; }
html.lp-open .sn, html.lp-open .salepop, html.lp-open .to-top { display: none !important; }

@media (max-width: 720px) {
  .leadpop { align-items: flex-end; padding: 0; }
  .leadpop-card { grid-template-columns: 1fr; max-width: none; max-height: 94vh; overflow-y: auto; border-radius: 22px 22px 0 0; transform: translateY(60px); }
  .lp-visual { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 .8rem; padding: .9rem 1.2rem .9rem; border-right: 0; border-bottom: 1px solid var(--c-border, #f0e2b8); background: linear-gradient(120deg, #fffaf0 0%, #fff1c9 100%); }
  .lp-offer-top { grid-column: 1; justify-self: start; margin-bottom: .1rem; } .lp-offer { grid-column: 1; } .lp-offer-sub { grid-column: 1; font-size: .85rem; } .lp-offer-bar { display: none; }
  .lp-offer-num { font-size: 2.4rem; } .lp-offer-word { font-size: 1.4rem; } .lp-offer-off { font-size: 1.1rem; }
  .lp-hero { grid-column: 2; grid-row: 1 / span 3; flex: none; width: 8.6rem; height: 6.6rem; min-height: 0; margin: 0 -.3rem 0 0; }
  .lp-main { padding: 1.3rem 1.2rem calc(1.1rem + env(safe-area-inset-bottom, 0px)); overflow: visible; }
  .leadpop-title { margin-right: 0; padding: 0 2.4rem; font-size: 1.3rem; text-align: center; }   /* equal side room: the close button never sits on the heading */
  .leadpop-text { text-align: center; margin-bottom: 1rem; }
  .leadpop-x { top: .5rem; right: .5rem; width: 44px; height: 44px; }
  .leadpop-done .leadpop-title { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .leadpop-backdrop, .leadpop-card, .lp-btn, .lp-btn svg { transition: none; } .leadpop-badge { animation: none; } .leadpop-card { transform: none; } }

/* optional silent video loop in the picture panel (computers only); it fades in once it is really playing, the picture stays underneath */
.lp-video { display: none; }
@media (min-width: 721px) {
  .lp-video { display: block; position: absolute; left: .9rem; right: .9rem; top: .2rem; bottom: 1rem; width: calc(100% - 1.8rem); height: calc(100% - 1.2rem); object-fit: cover; object-position: center 25%; border: 6px solid #fff; border-radius: 20px; background: #1d1d1d; box-shadow: 0 12px 26px rgba(60, 25, 60, .28); opacity: 0; pointer-events: none; transition: opacity .5s ease; }
  .lp-hero.has-video .lp-video { opacity: 1; }
  .lp-hero.has-video > img { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .lp-video { display: none; } }
