/* 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: clean warm panel with real product photos from the shop */
.lp-visual { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.9rem 1.5rem 1.5rem; background: var(--c-bg-alt, #fff8e6); border-right: 1px solid var(--c-border, #f0e2b8); }
.lp-offer-top { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted, #5f5a52); }
.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(3rem, 7vw, 4.2rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; 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.5rem; font-weight: 600; letter-spacing: .08em; color: var(--c-gold-deep, #c99700); }
.lp-offer-sub { font-size: .95rem; color: var(--c-muted, #5f5a52); }
.lp-photos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; margin-top: auto; padding-top: 1.1rem; }
.lp-photos-2 { grid-template-columns: 1fr 1fr; } .lp-photos-3 .lp-photo:first-child { grid-column: 1 / -1; }
.lp-photo { display: block; aspect-ratio: 1; padding: .4rem; background: #fff; border: 1px solid var(--c-border, #eadfbd); border-radius: 12px; box-shadow: 0 2px 8px rgba(60, 45, 10, .07); overflow: hidden; }
.lp-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* 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; border-right: 0; border-bottom: 1px solid var(--c-border, #f0e2b8); }
  .lp-offer-top { grid-column: 1; } .lp-offer { grid-column: 1; } .lp-offer-sub { grid-column: 1; font-size: .85rem; }
  .lp-offer-num { font-size: 2.3rem; } .lp-offer-word { font-size: 1.4rem; } .lp-offer-off { font-size: 1.1rem; }
  .lp-photos { grid-column: 2; grid-row: 1 / span 3; display: flex; width: auto; margin: 0; padding: 0; gap: .35rem; }
  .lp-photos .lp-photo { width: 54px; height: 54px; aspect-ratio: auto; padding: .2rem; border-radius: 10px; } .lp-photos .lp-photo:nth-child(n+4) { display: none; }
  .lp-main { padding: 1.3rem 1.2rem calc(1.1rem + env(safe-area-inset-bottom, 0px)); overflow: visible; }
  .leadpop-title { margin-right: 0; font-size: 1.3rem; text-align: center; } .leadpop-text { text-align: center; margin-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .leadpop-backdrop, .leadpop-card, .lp-btn, .lp-btn svg { transition: none; } .leadpop-badge { animation: none; } .leadpop-card { transform: none; } }
