/* nsl-trust.css — No Strings Labs SOTA trust layer (Wave 4A).
   5 components: social-proof counter, testimonial cards, trust badges + featured
   bar, live activity ticker (fixed bottom), social proof toast (bottom-left).

   Theming: dark by default. Light products override inline on <body>, e.g.
   cardyield: style="--nsl-bg:#f6faf7; --nsl-ink:#10241c"
   Accent per product: --nsl-accent (set inline or via NSL_TRUST.accent in
   nsl-trust.js, which writes it to :root). */

:root {
  --nsl-bg: #0b0f14;
  --nsl-ink: #e8eef5;
  --nsl-accent: #ffcb05;
  --nsl-good: #22c55e;
  --nsl-muted: rgba(127, 137, 147, .72);
  --nsl-surface: rgba(127, 137, 147, .10);
  --nsl-border: rgba(127, 137, 147, .26);
}

/* ── 1. Social proof counter (above fold, count-up on scroll-into-view) ── */
.nsl-counter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 4px;
}
.nsl-counter-row { display: flex; align-items: baseline; gap: 9px; }
.nsl-counter-num {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--nsl-accent);
  font-variant-numeric: tabular-nums;
}
.nsl-counter-label { font-size: 13px; color: var(--nsl-muted); }

/* ── 2. Testimonial cards (3 cards, stars + VERIFIED) ── */
.nsl-testimonials {
  margin: 44px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.nsl-t-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 14px;
  background: var(--nsl-surface);
  border: 1px solid var(--nsl-border);
}
.nsl-stars { color: var(--nsl-accent); font-size: 15px; letter-spacing: 2px; }
.nsl-t-quote { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--nsl-ink); }
.nsl-t-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.nsl-t-name { font-size: 13px; font-weight: 700; color: var(--nsl-ink); }
.nsl-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--nsl-good);
  color: var(--nsl-good);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nsl-verified::before { content: '\2713'; font-weight: 900; }

/* ── 3. Trust badges + featured bar (footer) ── */
.nsl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 18px 0 6px;
}
.nsl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--nsl-border);
  background: var(--nsl-surface);
  color: var(--nsl-ink);
  font-size: 12.5px;
}
.nsl-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nsl-good);
  flex: none;
}
.nsl-featured {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--nsl-border);
  text-align: center;
  font-size: 12px;
  color: var(--nsl-muted);
}
.nsl-featured b { color: var(--nsl-ink); font-weight: 600; }

/* ── 4. Live activity ticker (fixed bottom, rotates every 4s) ── */
.nsl-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 11px 44px;
  background: var(--nsl-ink);
  color: var(--nsl-bg);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .01em;
  text-align: center;
}
.nsl-hot {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  transition: opacity .3s;
}
.nsl-hot::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--nsl-accent);
  vertical-align: 1px;
  animation: nsl-pulse 2s infinite;
}
.nsl-hot.nsl-fade { opacity: 0; }
body.nsl-has-ticker { padding-bottom: 40px; }
@keyframes nsl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── 5. Social proof toast (bottom-left, 5s every 15–20s) ── */
.nsl-toast {
  position: fixed;
  left: 16px;
  bottom: 56px;
  z-index: 9999;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--nsl-ink);
  color: var(--nsl-bg);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.nsl-toast.show { opacity: 1; transform: translateY(0); }
.nsl-toast .nsl-toast-ago { opacity: .65; margin-left: 6px; }

@media (prefers-reduced-motion: reduce) {
  .nsl-hot::before { animation: none; }
  .nsl-hot, .nsl-toast { transition: none; }
}

@media (max-width: 560px) {
  .nsl-toast { left: 10px; right: 10px; max-width: none; bottom: 52px; }
  .nsl-ticker { padding: 10px 16px; font-size: 12px; }
}
