/* =====================================================================
   MSM Markets — New Player Kit modal.
   Reuses the design tokens defined in event-preview.css (loaded first);
   this file adds only the modal-specific rules. No build step, no
   external assets, no ActiveCampaign default styling of any kind.
   ===================================================================== */

.msm-btn-secondary {
  background: transparent;
  border-color: var(--msm-gold-500);
  color: var(--msm-gold-400);
}
.msm-btn-secondary:hover { color: var(--msm-navy-900); background: var(--msm-gold-500); transform: translateY(-2px); }

/* ---------- Modal shell ---------- */
.msm-npk-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.msm-npk-modal[hidden] { display: none; }

.msm-npk-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 16, 0.72);
  backdrop-filter: blur(2px);
}

.msm-npk-dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: var(--msm-navy-800);
  border: 1px solid var(--msm-line-strong);
  border-radius: var(--msm-radius-lg);
  box-shadow: var(--msm-shadow);
  padding: 2rem;
}

.msm-npk-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--msm-line-strong);
  background: var(--msm-surface-2);
  color: var(--msm-ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.msm-npk-close:hover { background: var(--msm-red-500); border-color: var(--msm-red-500); }
.msm-npk-close:focus-visible,
.msm-npk-input:focus-visible,
.msm-npk-submit:focus-visible {
  outline: 2px solid var(--msm-gold-400);
  outline-offset: 2px;
}

.msm-npk-image {
  margin: -2rem -2rem 1.25rem;
  border-radius: var(--msm-radius-lg) var(--msm-radius-lg) 0 0;
  overflow: hidden;
}
.msm-npk-image img { display: block; width: 100%; height: auto; }

.msm-npk-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--msm-gold-400);
}

.msm-npk-headline { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); margin-bottom: 0.5rem; }
.msm-npk-description { color: var(--msm-ink-dim); }

/* Kit-contents checklist (2026-09-05; checkmarks + tighter spacing
   added same day per follow-up feedback) -- deliberately NO font-size/
   weight/family override: this inherits the exact same typography as
   .msm-npk-description above via the shared body.msm-preview rule both
   sit under (event-preview.css), so the two always stay in sync even
   if that base font ever changes. Only color is explicitly matched to
   .msm-npk-description's own override -- body's default color is a
   brighter tone than the description deliberately uses, so leaving
   color to inherit would NOT match. Checkmark is a CSS ::before, not an
   extra element/icon asset, matching this file's "no build step, no
   external assets" rule at the top. gap tightened from 0.4rem to
   0.15rem so the 4 short items read as one compact block, not 4
   separate paragraph-spaced lines. */
.msm-npk-checklist {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.msm-npk-checklist li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--msm-ink-dim);
}
.msm-npk-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--msm-gold-400);
  font-weight: 700;
}

.msm-npk-form { margin-top: 1.25rem; }
.msm-npk-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--msm-ink-dim);
  margin-bottom: 0.4rem;
}
.msm-npk-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--msm-radius-sm);
  border: 1px solid var(--msm-line-strong);
  background: var(--msm-surface);
  color: var(--msm-ink);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.msm-npk-input.msm-npk-input-invalid { border-color: var(--msm-red-500); }

.msm-npk-error {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--msm-red-500);
}
.msm-npk-error[hidden] { display: none; }

.msm-npk-submit { width: 100%; margin-top: 0.4rem; }
.msm-npk-submit[disabled] { opacity: 0.6; cursor: wait; }

/* Small reassurance line directly under the submit button -- quiet on
   purpose, shouldn't compete with the button above it. */
.msm-npk-trust-note {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: var(--msm-ink-faint);
  text-align: center;
}

.msm-npk-success { margin-top: 1rem; }
.msm-npk-success p { margin: 0; color: var(--msm-ink); }

/* Social proof footer (2026-09-03, relocated to the bottom 2026-09-04)
   -- the very last thing in .msm-npk-panel, separated from the content
   above it by a thin, quiet top border (same border-top-divider
   convention used elsewhere on the site, e.g. .msm-sponsor-section).
   Small, single-line, deliberately NOT styled as large numbers (unlike
   the hero's own .msm-hero-trust-num/-label pair this reuses the copy
   from) -- one uniform small size for the whole line, same visual
   weight as .msm-npk-label above. */
.msm-npk-social-proof {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--msm-line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--msm-ink-dim);
}
.msm-npk-social-proof-sep { color: var(--msm-ink-faint); }

/* ---------- Scroll lock ---------- */
body.msm-npk-locked { overflow: hidden; }

/* ---------- Mobile ---------- */
@media (max-width: 540px) {
  .msm-npk-modal { padding: 0; align-items: flex-end; }
  .msm-npk-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--msm-radius-lg) var(--msm-radius-lg) 0 0;
  }
}
