/* ─────────────────────────────────────────────────────────────────
 * Scionecx · Polish Layer · scx-polish.css
 * Subtle visual upgrades applied to EXISTING class names.
 * Removable by unlinking this file. Does NOT redesign — does NOT
 * change layouts. Only refines spacing, shadows, transitions,
 * hover states, focus rings.
 * ───────────────────────────────────────────────────────────────── */

/* ─── Better focus rings everywhere ─── */
*:focus-visible {
  outline: 2px solid #FF4D1F;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Smoother button hovers on CTAs ─── */
.nx-btn,
.btn,
.nx-input-card .nx-btn {
  transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1),
              background 0.14s ease,
              box-shadow 0.14s ease,
              border-color 0.14s ease;
}
.nx-btn:hover,
.btn:hover {
  transform: translateY(-1px);
}
.nx-btn.tang:hover,
.btn.btn-d:hover {
  box-shadow: 0 12px 28px rgba(255, 77, 31, 0.28);
}

/* ─── Hero CTA row: more breathing room ─── */
.nx-cta-row {
  gap: 0.8rem;
}

/* ─── Promo eyebrow: gentle shimmer on the dot ─── */
.nx-promo .dot {
  position: relative;
  display: inline-block;
}
.nx-promo .dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 31, 0.45) 0%, transparent 70%);
  animation: scxPolishPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scxPolishPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.4); }
}

/* ─── Input card: soft shadow on hover (depth cue) ─── */
.nx-input-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.nx-input-card:hover {
  box-shadow: 0 22px 48px rgba(10, 10, 11, 0.06),
              0 4px 12px rgba(10, 10, 11, 0.04);
}

/* ─── Audience-mode label: clearer selection state ─── */
input[name="ns-audience"]:checked + .nx-aud-label {
  border-color: #FF4D1F !important;
  background: linear-gradient(135deg, rgba(255, 77, 31, 0.04) 0%, rgba(255, 247, 237, 0.6) 100%) !important;
  box-shadow: 0 0 0 1px rgba(255, 77, 31, 0.18);
}

/* ─── Tighter typography on the meta strip ─── */
.nx-meta-strip {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.nx-meta-strip .item b {
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ─── Result panel: more refined card edges, smoother shadows ─── */
#ns-result [data-ls-card-id],
#ns-result > div > div {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
#ns-result [data-ls-card-id]:hover {
  box-shadow: 0 8px 24px rgba(10, 10, 11, 0.06),
              0 1px 3px rgba(10, 10, 11, 0.04);
}

/* ─── Loader: tighter motion, premium feel ─── */
#ls .ls-orb {
  animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
}
#ls.out {
  transition: opacity 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

/* ─── Smoother nav appearance ─── */
.nav.sc,
nav.sc {
  transition: background 0.18s ease, backdrop-filter 0.18s ease,
              box-shadow 0.18s ease, border-color 0.18s ease;
}
.nav.sc.scrolled,
nav.sc.scrolled {
  box-shadow: 0 1px 0 rgba(10, 10, 11, 0.06),
              0 8px 24px rgba(10, 10, 11, 0.04);
}

/* ─── Reduce layout shift around dynamic insert points ─── */
#ns-result {
  scroll-margin-top: 90px;
}
#nav-mount {
  min-height: 72px;
}

/* ─── Tighter, more modern selection color ─── */
::selection {
  background: rgba(255, 77, 31, 0.22);
  color: #0A0A0B;
}

/* ─── Better small-text legibility ─── */
small,
.small,
.nx-input-eyebrow,
.eyebrow {
  font-feature-settings: "ss01" 1;
}

/* ─── Subtle improvement to the .nx-hero-chip if used ─── */
.nx-hero-chip {
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.nx-hero-chip:hover {
  transform: translateY(-1px);
}

/* ─── Mobile-tightening: reduce overpadding on small screens ─── */
@media (max-width: 640px) {
  .nx-cta-row { flex-direction: column; align-items: stretch; }
  .nx-cta-row .nx-btn { justify-content: center; text-align: center; }
}

/* ─── Print-mode: hide non-essentials cleanly ─── */
@media print {
  #ls, #nav-mount, .nav.sc, footer, [data-scx-hero-ext] { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}
