/* ============================================================
   KIT FLOW  —  studio status screens
   Shared visual language for every page AFTER the signup form:
   check-email, confirm/welcome, expired, download, success.
   Borderless & blended into the page (like the login/auth screen):
   no card frame, content centered on a soft studio background, sized
   with dvh so the whole screen fits without scrolling. Studio tokens
   from tokens.css. Prefixed .nlx-* to avoid colliding with the
   landing's .nl-*.
   ============================================================ */

/* ---- full-height centered stage + soft studio background ---- */
.nlx-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Fill the viewport minus chrome so content sits dead-centre and fits
     without scroll. Mobile chrome = navbar (4rem); desktop adds the
     quicklinks bar (+2rem). dvh accounts for mobile browser UI. */
  min-height: calc(100dvh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
@media (min-width: 1024px) { .nlx-stage { min-height: calc(100dvh - 6rem); } }

.nlx-stage__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.nlx-blob { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .38; }
.nlx-blob--1 { width: 28rem; height: 28rem; top: -11rem; left: -9rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.nlx-blob--2 { width: 24rem; height: 24rem; bottom: -11rem; right: -7rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 50%, transparent), transparent 70%); }
.nlx-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 18%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 42%, #000 18%, transparent 72%);
          mask-image: radial-gradient(ellipse 68% 58% at 50% 42%, #000 18%, transparent 72%);
  opacity: .4;
}

/* ---- content block (borderless — blends with the page) ---- */
.nlx-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
  text-align: center;
  font-family: var(--font-body);
  animation: nlx-rise .5s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes nlx-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Left-aligned variant for the lead-magnet form */
.nlx-card--form { text-align: left; max-width: 32rem; }

/* ---- icon medallion + glow (no frame) ---- */
.nlx-badge {
  position: relative;
  width: 4.25rem; height: 4.25rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.nlx-badge::before {
  content: ""; position: absolute; inset: -34%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%);
  filter: blur(15px); opacity: .55;
  animation: nlx-pulse 5s ease-in-out infinite;
}
@keyframes nlx-pulse { 0%, 100% { opacity: .42; transform: scale(1); } 50% { opacity: .66; transform: scale(1.08); } }
.nlx-badge svg { width: 2.1rem; height: 2.1rem; }

/* variants */
.nlx-badge--success { color: var(--signal); background: color-mix(in srgb, var(--signal) 15%, transparent); }
.nlx-badge--success::before { background: radial-gradient(circle, color-mix(in srgb, var(--signal) 45%, transparent), transparent 70%); }
.nlx-badge--warn { color: var(--accent-3); background: color-mix(in srgb, var(--accent-3) 16%, transparent); }
.nlx-badge--warn::before { background: radial-gradient(circle, color-mix(in srgb, var(--accent-3) 45%, transparent), transparent 70%); }

/* animated check-draw on the success medallion */
.nlx-badge--success svg path {
  stroke-dasharray: 30; stroke-dashoffset: 30;
  animation: nlx-draw .55s .25s ease forwards;
}
@keyframes nlx-draw { to { stroke-dashoffset: 0; } }

/* ---- typography ---- */
.nlx-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  line-height: 1.14;
  margin-bottom: .6rem;
}
.nlx-lead {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 26rem;
  margin: 0 auto;
}
.nlx-lead + .nlx-lead { margin-top: .5rem; }
.nlx-lead strong { color: var(--ink); font-weight: 600; }

/* ---- email chip (borderless, subtle fill) ---- */
.nlx-email {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 1.1rem auto 0;
  padding: .5rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  max-width: 100%;
}
.nlx-email svg { width: 1rem; height: 1rem; color: var(--accent); flex: none; }
.nlx-email span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- "what happens next" steps (check-email pages) ---- */
.nlx-steps {
  text-align: left;
  margin: 1.4rem auto 0;
  max-width: 22rem;
  display: grid;
  gap: .7rem;
}
.nlx-step { display: flex; gap: .75rem; align-items: flex-start; }
.nlx-step__num {
  flex: none;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.nlx-step__text { color: var(--muted); font-family: var(--font-body); font-size: .92rem; line-height: 1.5; }
.nlx-step__text strong { color: var(--ink); font-weight: 600; }

/* ---- inline hint (spam note, expiry) — centered caption, icon inline ---- */
.nlx-hint {
  max-width: 25rem;
  margin: 1.4rem auto 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .85rem;
  line-height: 1.55;
}
.nlx-hint svg { display: inline-block; width: .9rem; height: .9rem; vertical-align: -2px; margin-right: .3rem; color: var(--muted); }

/* ---- "what you'll get" tag row (welcome page) — borderless ---- */
.nlx-tags { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: 1.3rem; }
.nlx-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .75rem;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 500;
  color: var(--ink);
}
.nlx-tag svg { width: .9rem; height: .9rem; color: var(--signal); }

/* ---- action buttons ---- */
.nlx-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.nlx-actions .lw-btn { min-width: 10rem; }

/* ---- lead-magnet landing (form + optional sidebar) ---- */
/* overflow lives on .nlx-stage__bg (which clips the blobs), so this section
   stays overflow-visible and the sidebar's sticky ads keep working. */
.nlx-lm { position: relative; isolation: isolate; padding: 2.5rem 1.25rem; }
.nlx-lm__inner { position: relative; z-index: 1; }
.nlx-lm__inner--center { min-height: calc(100dvh - 9rem); display: flex; align-items: center; justify-content: center; }

@media (max-width: 420px) {
  .nlx-actions { flex-direction: column; }
  .nlx-actions .lw-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nlx-card { animation: none; }
  .nlx-badge::before { animation: none; }
  .nlx-badge--success svg path { animation: none; stroke-dashoffset: 0; }
}
