/* leadgen-w3c.css — free lead-gen funnel UI (W3-C).
 *
 * Three surfaces, all injected by leadgen-w3c.js: (1) the moment-of-value email
 * capture card, (2) the desktop exit-intent modal, (3) the post-2nd-render
 * interstitial. Retro Netscape voice to match the landing, but scoped entirely
 * under .mts-lg-* so it never touches canon chrome. Everything is self-contained
 * (no external assets) and honors prefers-reduced-motion.
 */

.mts-lg-card,
.mts-lg-modal,
.mts-lg-backdrop {
  box-sizing: border-box;
  font-family: "Courier New", ui-monospace, monospace;
}
.mts-lg-card *,
.mts-lg-modal * { box-sizing: border-box; }

/* ── (1) Moment-of-value capture card ─────────────────────────────────────── */
.mts-lg-card {
  position: relative;
  margin: 14px 0 4px;
  border: 3px solid #000080;
  background: #f4f4ff;
  color: #10103a;
  box-shadow: 4px 4px 0 rgba(0, 0, 128, 0.35);
  padding: 14px 16px;
  animation: mts-lg-slide-in 0.28s ease-out both;
}
.mts-lg-card__close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 1px solid #000080;
  background: #c0c0c0;
  color: #000080;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  font-family: inherit;
}
.mts-lg-card__close:hover { background: #ffff66; }
.mts-lg-card__title {
  margin: 0 24px 4px 0;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.3px;
}
.mts-lg-card__sub {
  margin: 0 0 10px;
  font-size: 12px;
  color: #3a3a6a;
}
.mts-lg-form { display: flex; gap: 8px; flex-wrap: wrap; }
.mts-lg-input {
  flex: 1 1 180px;
  min-width: 0;
  border: 2px solid #000080;
  background: #fff;
  color: #10103a;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
}
.mts-lg-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ffff66;
}
.mts-lg-btn {
  flex: 0 0 auto;
  border: 2px solid #000;
  background: #ffff66;
  color: #000080;
  font-family: inherit;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}
.mts-lg-btn:hover { background: #fffea0; }
.mts-lg-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.mts-lg-btn[disabled] { opacity: 0.6; cursor: wait; }
.mts-lg-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #3a3a6a;
  min-height: 14px;
}
.mts-lg-note.is-ok { color: #0a7d24; font-weight: bold; }
.mts-lg-note.is-err { color: #b91c1c; font-weight: bold; }

/* ── (2)+(3) Modal + interstitial (shared shell) ──────────────────────────── */
.mts-lg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* above canon chrome, below nothing user-critical */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 40, 0.66);
  animation: mts-lg-fade-in 0.2s ease-out both;
}
.mts-lg-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  border: 3px solid #c0c0c0;
  background: #1a1a4d;
  color: #e8e8f0;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
  padding: 22px 22px 20px;
  text-align: center;
  animation: mts-lg-pop-in 0.26s ease-out both;
}
.mts-lg-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 1px solid #c0c0c0;
  background: #2b2b66;
  color: #e8e8f0;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 2px 7px;
  font-family: inherit;
}
.mts-lg-modal__close:hover { background: #ffff66; color: #000080; }
.mts-lg-modal__meme {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 4px auto 14px;
  border: 2px solid #000;
  background: #000;
}
.mts-lg-modal__title {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: #ffff66;
  text-shadow: 2px 2px 0 #000;
}
.mts-lg-modal__body {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}
.mts-lg-modal__cta {
  display: inline-block;
  background: #ffff66;
  color: #000080;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  padding: 10px 22px;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
}
.mts-lg-modal__cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.mts-lg-modal__dismiss {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: #9a9ac8;
  font-family: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.mts-lg-modal__dismiss:hover { color: #e8e8f0; }

@keyframes mts-lg-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mts-lg-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mts-lg-pop-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mts-lg-card,
  .mts-lg-backdrop,
  .mts-lg-modal { animation: none; }
}
