/* Launch offer (owner's choice 2026-11-19): the "split" popup when a visitor arrives, then a strip above the header,
   with the offer text shimmering gold and little stars twinkling around it (assets/js/launch-offer.js).
   Colours come from the site's theme variables, so it follows every mood (Blue, Coral, ...). */

.lo-overlay {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px;
  background: rgba(var(--ink-rgb), 0.72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.35s ease;
}
.lo-overlay.is-open { opacity: 1; }
.lo-card {
  position: relative; width: min(760px, 100%); border-radius: 22px; overflow: hidden;
  background: var(--ink-2); color: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 30px 80px var(--shadow-strong);
  transform: translateY(18px) scale(0.97); transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
}
.lo-overlay.is-open .lo-card { transform: none; }
.lo-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: rgba(var(--ink-rgb), 0.5);
  color: var(--paper); cursor: pointer; font-size: 18px; line-height: 1;
}
.lo-close:hover { border-color: var(--accent); }
.lo-title { margin: 0 0 6px; font: 700 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.1 var(--font-display); }
.lo-price { display: flex; align-items: flex-end; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.lo-price .now { font: 700 2.2rem/1 var(--font-display); }
.lo-price .per { color: var(--muted); font-size: 0.95rem; padding-bottom: 4px; }
.lo-price .was { color: var(--muted); text-decoration: line-through; font-size: 1.05rem; padding-bottom: 4px; }
.lo-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; color: var(--text-2); font-size: 0.95rem; }
.lo-list li { display: flex; gap: 10px; align-items: flex-start; }
.lo-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.lo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lo-actions .btn { justify-content: center; width: 100%; }
.lo-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 0.82rem; }

/* the split card: the big "68% OFF" on a coloured panel, the details beside it */
.lo-v2 { display: grid; grid-template-columns: 240px 1fr; }
.lo-v2-left {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 28px 18px;
  background: linear-gradient(160deg, var(--accent), var(--violet)); color: var(--on-accent);
}
.lo-v2-kicker { font: 700 0.78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.lo-v2-big { font: 800 5.4rem/0.95 var(--font-display); margin-top: 12px; }
.lo-v2-big span:not(.lo-spark):not(.lo-stars) { font-size: 2.6rem; }
.lo-v2-off { font: 800 1.6rem/1 var(--font-display); letter-spacing: .12em; }
.lo-v2-on { margin-top: 10px; font-weight: 600; opacity: .9; }
.lo-v2-right { padding: 28px 28px 22px; }
@media (max-width: 680px) {
  .lo-v2 { grid-template-columns: 1fr; }
  .lo-v2-left { flex-direction: row; gap: 12px; padding: 18px; }
  .lo-v2-big { font-size: 3rem; margin: 0; } .lo-v2-big span:not(.lo-spark):not(.lo-stars) { font-size: 1.5rem; }
  .lo-v2-kicker, .lo-v2-on { display: none; }
}
@media (max-width: 480px) {
  .lo-actions { grid-template-columns: 1fr; }
  .lo-v2-right { padding: 20px; }
}

/* after the popup: a strip above the header (on every page of the visit). It stays at the top while scrolling;
   the site header sticks just under it (the script keeps --lo-strip-h = the strip's height). */
.lo-strip {
  position: sticky; top: 0; z-index: 1003; display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; padding: 9px 16px; text-align: center;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.95), rgba(var(--violet-rgb), 0.9));
  color: var(--on-accent); font: 600 0.9rem/1.3 var(--font-body);
}
.lo-strip b { font-weight: 800; }
.lo-strip a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lo-strip .lo-strip-btn {
  text-decoration: none; padding: 5px 12px; border-radius: 999px; background: var(--on-accent); color: var(--accent);
}
@media (max-width: 560px) { .lo-strip { font-size: 0.82rem; gap: 8px; } .lo-strip .hide-sm { display: none; } }
html.lo-has-strip .header { top: var(--lo-strip-h, 0px); }

/* gold sparkle on the offer text: the letters shimmer gold; stars (added by the script) pop and fade around them */
.lo-spark {
  position: relative; display: inline-block;
  background: linear-gradient(90deg, #FFD54F, #FFF8E1, #FFB300, #FFF8E1, #FFD54F);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: lo-gold 3.2s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 213, 79, 0.35));
}
@keyframes lo-gold { to { background-position: -220% 0; } }
.lo-stars { position: absolute; inset: -6px -10px; pointer-events: none; }
.lo-star {
  position: absolute; transform: translate(-50%, -50%) scale(0); opacity: 0;
  background: #FFF3A6; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 4px rgba(255, 236, 140, 0.95)); animation: lo-twinkle 1.25s ease-in-out forwards;
}
@keyframes lo-twinkle {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0); opacity: 0; }
  45% { transform: translate(-50%, -50%) scale(1) rotate(80deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0) rotate(170deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lo-overlay, .lo-card { transition: none; }
  .lo-spark { animation: none; }
  .lo-stars { display: none; }
}
