/* ============================================================
   BUNDLE-1-POPUP.CSS  |  M Web Design
   Self-contained advertising popup for Bundle 1.
   Prefix: b1p-  (no clashes with the rest of the site)
   Needs nothing else: the popup HTML is injected by bundle-1-popup.js
   ============================================================ */

.b1p {
  --b1p-blue: #074BFF;
  --b1p-ink:  #0a0a0a;
  --b1p-line: rgba(10,10,10,0.10);
  --b1p-muted: rgba(10,10,10,0.64);
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  font-family: 'Roboto', 'Manrope', 'DM Sans', system-ui, sans-serif;
  color: var(--b1p-ink);
  -webkit-font-smoothing: antialiased;
  opacity: 0; pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.b1p.is-open { opacity: 1; pointer-events: auto; }
.b1p[hidden] { display: none; }

/* Override the site's global element styles inside the popup */
.b1p p, .b1p h2 { margin: 0; color: inherit; font-family: inherit; }
.b1p ul { margin: 0; padding: 0; list-style: none; }
.b1p a { text-decoration: none; }

.b1p__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; }

.b1p__box {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  width: 100%; max-width: 860px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 28px; outline: none;
  box-shadow: 0 32px 90px rgba(0,0,0,0.4);
  transform: translateY(18px) scale(0.98);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}
.b1p.is-open .b1p__box { transform: none; }
.b1p--noimg .b1p__box { max-width: 500px; grid-template-columns: 1fr; }

.b1p__x {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border-radius: 50%; border: 1px solid var(--b1p-line); background: #fff; color: var(--b1p-ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background 220ms, color 220ms, border-color 220ms;
}
.b1p__x:hover { background: var(--b1p-ink); border-color: var(--b1p-ink); color: #fff; }

.b1p__media { position: relative; min-height: 100%; background: #e8e8e4; }
.b1p__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.b1p__body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.b1p__tag { margin-bottom: 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--b1p-blue); }
.b1p__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 900; line-height: 1.18; letter-spacing: -0.04em; color: #000; }
.b1p__mark {
  background: var(--b1p-blue); color: #000; font-weight: 900; padding: 0.02em 0.2em; margin: 0 -0.05em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.b1p__lead { margin-top: 16px; font-size: 1rem; line-height: 1.65; color: var(--b1p-muted); }
.b1p__list { display: grid; gap: 9px; margin-top: 18px; font-size: 0.9375rem; font-weight: 500; }
.b1p__list li { position: relative; padding-left: 26px; }
.b1p__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--b1p-blue); font-weight: 800; }

.b1p__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.b1p__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 10px; border: 2px solid var(--b1p-ink);
  background: var(--b1p-ink); color: #fff; font-family: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer;
  transition: background 220ms, border-color 220ms, transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms;
}
.b1p__btn:hover { background: var(--b1p-blue); border-color: var(--b1p-blue); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(7,75,255,0.3); }
.b1p__later { padding: 8px 0; border: 0; background: none; color: var(--b1p-muted); font-family: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; }
.b1p__later:hover { color: var(--b1p-ink); text-decoration: underline; }
.b1p__fine { margin-top: 18px; font-size: 0.78rem; color: var(--b1p-muted); }

.b1p :focus-visible { outline: 2px solid var(--b1p-blue); outline-offset: 3px; }

@media (max-width: 700px) {
  .b1p { align-items: flex-end; padding: 10px; }
  .b1p__box { grid-template-columns: 1fr; border-radius: 24px; }
  .b1p__media { min-height: 0; aspect-ratio: 16 / 9; }
  .b1p__body { padding: 24px 22px 26px; }
  .b1p__btn { width: 100%; }
  .b1p__actions { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .b1p, .b1p__box, .b1p__btn { transition: none !important; }
}