/* ─────────────────────────────────────────────────────────────────────────────
   Sure Pass Nursing Review — Main Stylesheet
   Design: Clinical Authority — Editorial precision meets patriotic confidence.
   Aesthetic: High-contrast typographic editorial. Diagonal geometry. Bold numbers.
   Palette: Deep patriot blue + flag red + clinical white + ink black.
   Typography: Barlow Condensed (display) + Source Serif 4 (body) + IBM Plex Mono (data)
   Layout: Asymmetric split-panels, diagonal dividers, oversized anchor type.
───────────────────────────────────────────────────────────────────────────── */

/* ── Google Fonts import ────────────────────────────────────────────────────── */
/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Brand — SPNR patriotic authority */
  --ink:         #050f1f;
  --ink-mid:     #0d2b5e;
  --blue:        #1a5fa8;
  --blue-light:  #2575cc;
  --blue-pale:   #deeaf8;
  --red:         #00bfff;
  --red-dark:    #a81b20;
  --red-pale:    #fce8e9;
  --white:       #ffffff;
  --off-white:   #f5f7fa;
  --rule:        #dde3ed;

  /* Legacy aliases for components that use them */
  --navy:        #0d2b5e;
  --navy-mid:    #1a3a72;
  --navy-soft:   #1e4f8c;
  --teal:        #1a5fa8;
  --teal-light:  #2575cc;
  --teal-pale:   #deeaf8;
  --cream:       #f5f7fa;
  --cream-mid:   #dde3ed;
  --surface-0:   #ffffff;
  --surface-1:   #f5f7fa;
  --surface-2:   #dde3ed;
  --surface-dark: #050f1f;
  --color-success: #16a34a;
  --color-danger:  #cc2229;
  --color-warning: #d97706;
  --color-info:    #1a5fa8;
  --text-primary:   #050f1f;
  --text-secondary: #2d4270;
  --text-muted:     #6b7fa3;
  --text-on-dark:   #deeaf8;

  /* Typography */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-ui:      'Source Serif 4', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Radii — sharper, more clinical */
  --radius-sm:  3px;
  --radius-md:  6px;
  --radius-lg:  10px;
  --radius-xl:  14px;
  --radius-pill: 999px;

  /* Shadows — deeper, more structured */
  --shadow-sm:  0 1px 4px rgba(5,15,31,.08), 0 1px 2px rgba(5,15,31,.05);
  --shadow-md:  0 6px 20px rgba(5,15,31,.12), 0 2px 6px rgba(5,15,31,.07);
  --shadow-lg:  0 16px 48px rgba(5,15,31,.18), 0 6px 16px rgba(5,15,31,.10);
  --shadow-xl:  0 32px 80px rgba(5,15,31,.25), 0 12px 28px rgba(5,15,31,.14);

  /* Transitions */
  --t-fast:   140ms ease;
  --t-normal: 240ms ease;
  --t-slow:   380ms ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px; scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family: var(--font-body);
  font-size: 1rem; line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  width: 100%; max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue-light); }
button { cursor: pointer; font-family: var(--font-body); }
ul { list-style: none; }

/* ── Typography — editorial scale ──────────────────────────────────────────── */
h1,h2,h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.0;
  color: var(--ink);
}
h4,h5,h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
h1 { font-size: clamp(3.5rem, 8vw, 7rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
p  { margin-bottom: var(--sp-4); }

.spnr-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex; align-items: center; gap: 8px;
}
.spnr-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.nex-container { max-width: 1240px; margin: 0 auto; padding: 0 var(--sp-8); width: 100%; }
.nex-container--narrow { max-width: 780px; }
.nex-container--wide   { max-width: 1440px; }
@media (max-width: 480px) { .nex-container { padding: 0 20px; } }

.nex-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.nex-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.nex-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-6); }
@media (max-width: 900px) { .nex-grid-3,.nex-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .nex-grid-2,.nex-grid-3,.nex-grid-4 { grid-template-columns: 1fr; } }

/* ── Buttons — sharp, authoritative ────────────────────────────────────────── */
.nex-btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: all var(--t-normal);
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
}
.nex-btn--primary {
  background: var(--red); color: var(--white);
  border-color: var(--red);
}
.nex-btn--primary:hover {
  background: var(--red-dark); border-color: var(--red-dark);
  color: var(--white); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,191,255,.35);
}
.nex-btn--secondary {
  background: var(--blue); color: var(--white);
  border-color: var(--blue);
}
.nex-btn--secondary:hover {
  background: var(--ink-mid); border-color: var(--ink-mid);
  color: var(--white); transform: translateY(-2px);
}
.nex-btn--outline {
  background: transparent; color: var(--blue); border-color: var(--blue);
}
.nex-btn--outline:hover { background: var(--blue); color: var(--white); }
.nex-btn--dark {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.nex-btn--dark:hover { background: var(--ink-mid); }
.nex-btn--ghost {
  background: transparent; color: var(--text-secondary);
  border-color: var(--rule);
}
.nex-btn--ghost:hover { background: var(--surface-1); color: var(--ink); border-color: var(--blue); }
.nex-btn--light {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.nex-btn--light:hover {
  background: var(--ink); color: var(--white);
  border-color: var(--ink);
}
.nex-btn--sm { padding: 9px 18px; font-size: .7rem; }
.nex-btn--lg { padding: 18px 44px; font-size: .82rem; }
.nex-btn[disabled] { opacity: .45; pointer-events: none; }

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.nex-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}
.nex-card:hover { box-shadow: var(--shadow-md); }
.nex-card--hover:hover { transform: translateY(-3px); }
.nex-card--dark {
  background: var(--ink-mid); border-color: rgba(255,255,255,.08);
  color: var(--text-on-dark);
}
.nex-card--teal { background: var(--blue-pale); border-color: var(--blue); }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.nex-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: .65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.nex-badge--teal    { background: var(--blue-pale); color: var(--blue); border: 1px solid rgba(26,95,168,.2); }
.nex-badge--navy    { background: var(--ink-mid); color: var(--blue-pale); }
.nex-badge--success { background: #dcfce7; color: #15803d; }
.nex-badge--danger  { background: #fee2e2; color: #b91c1c; }
.nex-badge--warning { background: #fef3c7; color: #92400e; }
.nex-badge--gray    { background: var(--surface-2); color: var(--text-secondary); }

/* ── Eyebrow — kept for compatibility ──────────────────────────────────────── */
.nex-eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER — Horizontal rule precision
═══════════════════════════════════════════════════════════════════════════════ */
.nex-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.nex-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00bfff 0%, #00bfff 30%, #050f1f 70%, #050f1f 100%);
}
.nex-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-8); height: 60px;
  max-width: 100%;
}
.nex-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nex-logo__mark {
  width: 38px; height: 38px;
  background: var(--red);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  /* #00bfff bg — icon colour set to ink in header.php */
}
.nex-logo__text {
  display: flex; flex-direction: column;
}
.nex-logo__name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--white); line-height: 1;
}
.nex-logo__tagline {
  font-family: var(--font-mono);
  font-size: .58rem; color: rgba(255,255,255,.4);
  letter-spacing: .12em; text-transform: uppercase;
  margin-top: 3px;
}
.nex-nav { display: flex; }
.nex-nav__list {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.nex-nav__list li a {
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.88);
  padding: 0 16px;
  height: 60px; display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: all var(--t-fast);
  text-decoration: none;
}
.nex-nav__list li a:hover,
.nex-nav__list li.current-menu-item a {
  color: var(--white);
  border-bottom-color: var(--red);
}
.nex-header__right { display: flex; align-items: center; gap: 12px; }
.nex-header__badge {
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); background: rgba(0,191,255,.12);
  border: 1px solid rgba(0,191,255,.3);
  padding: 4px 10px; border-radius: 3px;
}
.nex-header__actions { display: flex; align-items: center; gap: 10px; }
.nex-header__actions--desktop {}
.nex-header__mobile-right { display: none; }
@media (max-width: 900px) {
  .nex-header__actions--desktop { display: none; }
  .nex-header__mobile-right { display: flex; align-items: center; gap: 10px; }
  .nex-nav { display: none; }
  .nex-header__badge { display: none; }
}
/* User pill */
.nex-header__user-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 6px 12px 6px 6px;
  text-decoration: none;
  transition: all var(--t-fast);
}
.nex-header__user-pill:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.nex-header__avatar {
  width: 28px; height: 28px;
  background: var(--red);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--ink);
  font-family: var(--font-mono);
}
.nex-header__user-info { display: flex; flex-direction: column; }
.nex-header__username { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; color: var(--white); }
.nex-header__plan { font-family: var(--font-mono); font-size: .6rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .06em; }
.nex-header__logout {
  font-family: var(--font-mono); font-size: .7rem;
  color: rgba(255,255,255,.4); text-transform: uppercase;
  letter-spacing: .08em;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid rgba(255,255,255,.1);
  border-radius: 3px;
  transition: all var(--t-fast);
  text-decoration: none;
}
.nex-header__logout:hover { color: var(--white); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.nex-hdr-avatar-btn {
  width: 34px; height: 34px;
  background: var(--red); border: none;
  border-radius: 4px;
  font-family: var(--font-mono); font-size: .8rem;
  font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.nex-hdr-avatar-btn__img {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  border-radius: 4px; display: block;
}
.nex-hdr-trial-badge {
  font-family: var(--font-mono); font-size: .62rem;
  background: var(--red); color: var(--white);
  padding: 3px 8px; border-radius: 3px;
  font-weight: 700; letter-spacing: .06em;
  text-decoration: none;
}
/* Bell */
.nex-ann-bell {
  background: none; border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px; padding: 7px 9px;
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast); position: relative;
  cursor: pointer;
}
.nex-ann-bell svg { width: 16px; height: 16px; }
.nex-ann-bell:hover { color: var(--white); border-color: rgba(255,255,255,.3); }
.nex-ann-bell__badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: var(--white);
  font-family: var(--font-mono); font-size: .6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nex-ann-bell__badge:empty { display: none; }
[data-count="0"] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO — Split-panel asymmetric, oversized editorial type
═══════════════════════════════════════════════════════════════════════════════ */
.nex-hero {
  background: #ffffff;
  min-height: 92vh;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  justify-content: center;
  width: 100%;
}

/* Vertical red stripe — structural accent */
.nex-hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red) 0%, rgba(0,191,255,.2) 100%);
  z-index: 2;
}

/* Grid-line texture — ink toned for white bg */
.nex-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(5,15,31,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,15,31,.032) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.nex-hero__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative; z-index: 1;
  align-items: center;
  min-height: 92vh;
  gap: 48px;
}

/* Left panel — the editorial statement */
.nex-hero__content {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  position: relative;
  min-width: 0;
  overflow: visible;
}

/* Vertical rule between panels */
.nex-hero__content::after {
  content: '';
  position: absolute; top: 10%; bottom: 10%;
  right: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(5,15,31,.1) 30%, rgba(5,15,31,.1) 70%, transparent);
}

.nex-hero__eyebrow {
  margin-bottom: 28px;
}

/* The oversized hero number — editorial anchor */
.spnr-hero-anchor {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: .88;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.12);
  text-stroke: 1px rgba(255,255,255,.12);
  position: absolute;
  top: 50%; transform: translateY(-60%);
  left: -10px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -.03em;
}

.nex-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 5.5vw, 5.5rem);
  color: var(--ink);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-6);
  position: relative; z-index: 1;
  word-break: break-word;
  hyphens: none;
}
.nex-hero__title em {
  color: var(--red);
  font-style: italic;
  font-weight: 700;
  display: inline;
}

.nex-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: var(--sp-8);
  max-width: 460px;
  line-height: 1.65;
  position: relative; z-index: 1;
}

.nex-hero__tagline {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--red);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-8);
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 1;
}
.nex-hero__tagline::before {
  content: '';
  display: inline-block; width: 32px; height: 2px;
  background: var(--red); flex-shrink: 0;
}

.nex-hero__actions {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; position: relative; z-index: 1;
  margin-bottom: var(--sp-10);
}

/* Stats — mono data display */
.nex-hero__stats {
  display: flex; gap: 0;
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-8);
  position: relative; z-index: 1;
}
.nex-hero__stat {
  flex: 1;
  padding-right: var(--sp-6);
  border-right: 1px solid var(--rule);
  margin-right: var(--sp-6);
}
.nex-hero__stat:last-child { border-right: none; margin-right: 0; }
.nex-hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.02em;
}
.nex-hero__stat-num span { color: var(--blue); }
.nex-hero__stat-label {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 5px;
}

/* Right panel — clinical UI preview */
.nex-hero__visual {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 60px 0 60px 48px;
  gap: 12px;
}

/* Mock exam card */
.nex-mock-card {
  background: #0d2b5e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(5,15,31,.18), 0 4px 16px rgba(5,15,31,.12);
  width: 100%; max-width: 100%;
}
.nex-mock-card__header {
  background: rgba(0,191,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.nex-mock-card__label {
  font-family: var(--font-mono);
  font-size: .65rem; font-weight: 600;
  color: rgba(222,234,248,.9);
  letter-spacing: .1em; text-transform: uppercase;
}
.nex-mock-card__timer {
  font-family: var(--font-mono);
  font-size: .85rem; color: var(--red); font-weight: 600;
}
.nex-mock-card__q {
  font-family: var(--font-body);
  font-size: .84rem; color: #ffffff;
  line-height: 1.6; padding: 14px 16px 10px;
  margin: 0;
}
.nex-mock-card__options {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 12px 14px;
}
.nex-mock-card__opt {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: .8rem; color: rgba(222,234,248,.92);
  display: flex; align-items: flex-start; gap: 10px;
  transition: all var(--t-fast);
}
.nex-mock-card__opt.is-selected {
  background: rgba(26,95,168,.35);
  border-color: var(--blue);
  color: var(--white);
}
.nex-mock-card__opt.is-correct  { background: rgba(22,163,74,.2); border-color: #16a34a; }
.nex-mock-card__opt.is-wrong    { background: rgba(204,34,41,.15); border-color: var(--red); }
.nex-opt-key {
  min-width: 20px; height: 20px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: .65rem; font-weight: 700; flex-shrink: 0;
  color: rgba(222,234,248,.9);
}
.nex-mock-card__opt.is-selected .nex-opt-key {
  background: var(--blue); color: var(--white);
}

/* Smaller stats panel below card */
.spnr-hero-stats-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.spnr-hero-stat-box {
  background: #0d2b5e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.spnr-hero-stat-box__num {
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.6rem;
  color: var(--white); line-height: 1;
  letter-spacing: -.01em;
}
.spnr-hero-stat-box__num b { color: var(--red); }
.spnr-hero-stat-box__label {
  font-family: var(--font-mono);
  font-size: .58rem; color: rgba(222,234,248,.65);
  text-transform: uppercase; letter-spacing: .1em; margin-top: 4px;
}

@media (max-width: 1024px) {
  .nex-hero__inner { grid-template-columns: 1fr 380px; }
}
@media (max-width: 900px) {
  .nex-hero { min-height: auto; }
  .nex-hero__inner { grid-template-columns: 1fr; padding: 64px 20px; min-height: auto; }
  .nex-hero__content { padding: 0; }
  .nex-hero__content::after { display: none; }
  .nex-hero__visual { display: none; }
  .nex-hero__title { font-size: clamp(3rem, 10vw, 5rem); }
}
@media (max-width: 480px) {
  .nex-hero__title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .nex-hero__actions { flex-direction: column; align-items: stretch; }
  .nex-hero__actions .nex-btn { text-align: center; }
  .nex-hero__stats { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TRUST BAR — horizontal ticker-style
═══════════════════════════════════════════════════════════════════════════════ */
.spnr-trust-bar {
  background: var(--red);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
}
.spnr-trust-bar__inner {
  display: flex; align-items: center; gap: 48px;
  justify-content: center; flex-wrap: wrap;
  padding: 0 var(--sp-8);
}
.spnr-trust-item {
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.spnr-trust-item::before {
  content: '✦';
  font-size: .5rem; color: rgba(255,255,255,.6);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FEATURES — Magazine 2-column with numbered editorial blocks
═══════════════════════════════════════════════════════════════════════════════ */
.nex-section { padding: var(--sp-20) 0; }
.nex-section--alt { background: var(--off-white); }
.nex-section--dark { background: var(--ink); }
.nex-section__header {
  text-align: center; margin-bottom: var(--sp-12);
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* Feature grid — editorial number blocks */
.nex-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.nex-feature-grid .nex-card {
  border: none;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: var(--sp-8);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--sp-4);
  align-items: start;
  box-shadow: none;
  transition: background var(--t-fast);
}
.nex-feature-grid .nex-card:hover {
  background: var(--off-white);
  transform: none; box-shadow: none;
}
/* Remove right border for even items (right column) */
.nex-feature-grid .nex-card:nth-child(2n) { border-right: none; }
/* Remove bottom border for last row */
.nex-feature-grid .nex-card:nth-last-child(-n+2) { border-bottom: none; }

.nex-feature-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--red);
  line-height: 1;
  opacity: .25;
  letter-spacing: -.02em;
}
.nex-feature-body {}
.nex-feature-icon {
  font-size: 1.2rem;
  margin-bottom: 6px;
  display: block;
}
.nex-feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.nex-feature-text {
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .nex-feature-grid { grid-template-columns: 1fr; }
  .nex-feature-grid .nex-card { border-right: none; }
  .nex-feature-grid .nex-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .nex-feature-grid .nex-card:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   STATS BAND — full-bleed numbers on dark
═══════════════════════════════════════════════════════════════════════════════ */
.spnr-stats-band {
  background: var(--ink);
  padding: 64px 0;
  position: relative; overflow: hidden;
  display: block;
  width: 100%;
}
.spnr-stats-band::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #00bfff, #050f1f);
}
.spnr-stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}
.spnr-stat-block {
  padding: 0 var(--sp-8);
  border-right: 1px solid rgba(255,255,255,.07);
  text-align: center;
}
.spnr-stat-block:last-child { border-right: none; }
.spnr-stat-block__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: -.03em;
}
.spnr-stat-block__num span { color: var(--red); }
.spnr-stat-block__label {
  font-family: var(--font-mono);
  font-size: .65rem; font-weight: 500;
  color: rgba(222,234,248,.4);
  text-transform: uppercase; letter-spacing: .12em;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .spnr-stats-band__grid { grid-template-columns: 1fr 1fr; }
  .spnr-stat-block { padding: var(--sp-6); border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .spnr-stat-block:nth-child(2n) { border-left: 1px solid rgba(255,255,255,.07); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════════════════════════════ */
.nex-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 1100px) { .nex-pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .nex-pricing-grid { grid-template-columns: 1fr; } }
.nex-plan {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  position: relative;
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}
.nex-plan:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.nex-plan--featured {
  background: var(--ink);
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--red);
}
.nex-plan--featured h4,
.nex-plan--featured .nex-plan__price,
.nex-plan--featured .nex-plan__period { color: var(--text-on-dark); }
.nex-plan--featured .nex-plan__feature { color: rgba(222,234,248,.8); }
.nex-plan h4 {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: var(--sp-4);
}
.nex-plan__price {
  font-family: var(--font-display);
  font-weight: 900; font-size: 3.2rem;
  color: var(--ink); line-height: 1;
  letter-spacing: -.02em;
}
.nex-plan__period {
  font-family: var(--font-mono);
  font-size: .7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: var(--sp-6);
  margin-top: 4px;
}
.nex-plan__divider { border: none; border-top: 1px solid var(--rule); margin: var(--sp-6) 0; }
.nex-plan--featured .nex-plan__divider { border-color: rgba(255,255,255,.1); }
.nex-plan__features { margin-bottom: var(--sp-6); display: flex; flex-direction: column; gap: 10px; }
.nex-plan__feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-body); font-size: .875rem;
  color: var(--text-secondary); line-height: 1.5;
}
.nex-plan__feature-icon { color: var(--blue); flex-shrink: 0; font-weight: 700; margin-top: 2px; }
.nex-plan__feature-icon.off { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════════
   TESTIMONIALS — editorial pull-quote style
═══════════════════════════════════════════════════════════════════════════════ */
.nex-testimonial {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  transition: box-shadow var(--t-normal), transform var(--t-normal);
  display: flex; flex-direction: column;
}
.nex-testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.nex-testimonial__stars { color: #f59e0b; font-size: .9rem; margin-bottom: var(--sp-3); letter-spacing: 3px; }
.nex-testimonial__text {
  font-family: var(--font-body);
  font-size: .95rem; font-style: italic;
  color: var(--ink); line-height: 1.7;
  flex: 1; margin-bottom: var(--sp-5);
  border-left: 2px solid var(--rule); padding-left: var(--sp-4);
}
.nex-testimonial__author-row { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.nex-testimonial__avatar {
  width: 36px; height: 36px; border-radius: 3px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 900;
  color: var(--white); flex-shrink: 0;
  text-transform: uppercase;
}
.nex-testimonial__name {
  font-family: var(--font-body);
  font-weight: 600; font-size: .88rem; color: var(--ink);
}
.nex-testimonial__passed {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6rem; font-weight: 700;
  background: var(--red); color: var(--white);
  padding: 2px 7px; border-radius: 2px;
  margin-left: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
.nex-testimonial__meta { font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════════ */
.nex-footer {
  background: #ffffff;
  color: var(--ink);
  padding: var(--sp-16) 0 var(--sp-8);
  border-top: 3px solid var(--red);
}
.nex-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}
@media (max-width: 900px) {
  .nex-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
@media (max-width: 480px) {
  .nex-footer__grid { grid-template-columns: 1fr; }
}
.nex-footer .nex-logo__name { color: var(--ink); font-size: 1.2rem; }
.nex-footer .nex-logo { margin-bottom: var(--sp-4); }
.nex-footer__brand-desc {
  font-family: var(--font-body);
  font-size: .875rem; line-height: 1.65;
  color: var(--muted); margin: 0;
}
.nex-footer__heading {
  font-family: var(--font-mono);
  font-size: .65rem; font-weight: 600;
  color: var(--ink);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--rule);
}
.nex-footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nex-footer__links a,
.nex-footer__links li a {
  font-family: var(--font-body);
  font-size: .875rem; color: var(--muted);
  text-decoration: none; transition: color var(--t-fast);
}
.nex-footer__links a:hover,
.nex-footer__links li a:hover { color: var(--blue); }
.nex-footer__bottom {
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-6);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
}
.nex-footer__copy {
  font-family: var(--font-mono);
  font-size: .65rem; color: var(--muted);
  letter-spacing: .04em; margin: 0;
}

/* ── Toast notifications ────────────────────────────────────────────────────── */
.nex-toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 9999; max-width: 360px;
}
.nex-toast {
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: .875rem; color: var(--white);
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s ease;
}
.nex-toast--success { border-left-color: #16a34a; }
.nex-toast--error   { border-left-color: var(--red); }
.nex-toast--warning { border-left-color: #d97706; }
@keyframes toastIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }

/* ── Announcement modal ─────────────────────────────────────────────────────── */
.nex-ann-modal {
  position: fixed; inset: 0; z-index: 9990;
  display: none; align-items: center; justify-content: flex-end;
}
.nex-ann-modal.is-open { display: flex; }
.nex-ann-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,15,31,.6); backdrop-filter: blur(4px);
}
.nex-ann-modal__panel {
  position: relative; z-index: 1;
  width: 420px; max-width: 100%; height: 100vh;
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.nex-ann-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  background: var(--ink);
  border-bottom: 2px solid var(--red);
}
.nex-ann-modal__head-title {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.1rem;
  color: var(--white); text-transform: uppercase;
  letter-spacing: .04em;
  display: flex; align-items: center; gap: 10px;
}
.nex-ann-modal__close {
  background: none; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6); width: 28px; height: 28px;
  border-radius: 3px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: all var(--t-fast);
}
.nex-ann-modal__close:hover { color: var(--white); border-color: rgba(255,255,255,.5); }
.nex-ann-modal__body { flex: 1; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.nex-ann-modal__empty { text-align: center; padding: 48px var(--sp-6); color: var(--text-muted); font-size: .9rem; }
.nex-ann-modal__empty span { font-size: 2rem; display: block; margin-bottom: var(--sp-3); }
.nex-ann-modal__footer {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: .65rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.nex-ann-card {
  border: 1px solid var(--rule); border-radius: var(--radius-md);
  padding: var(--sp-4); position: relative; cursor: pointer;
  transition: box-shadow var(--t-fast);
}
.nex-ann-card:hover { box-shadow: var(--shadow-sm); }
.nex-ann-card--unread { background: #fafbff; border-color: var(--blue); }
.nex-ann-card__unread-dot {
  position: absolute; top: 10px; right: 10px;
  width: 8px; height: 8px; background: var(--red); border-radius: 50%;
}
.nex-ann-card__top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--sp-2); }
.nex-ann-card__icon { font-size: 1.2rem; flex-shrink: 0; }
.nex-ann-card__meta {}
.nex-ann-card__type-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  background: var(--off-white); color: var(--text-muted);
  padding: 2px 7px; border-radius: 2px; margin-bottom: 4px;
}
.nex-ann-card__title {
  font-family: var(--font-body);
  font-weight: 600; font-size: .875rem;
  color: var(--ink); margin: 0; line-height: 1.4;
}
.nex-ann-card__body { font-size: .85rem; color: var(--text-secondary); line-height: 1.6; }
.nex-ann-card__date { font-family: var(--font-mono); font-size: .65rem; color: var(--text-muted); margin-top: 8px; }

/* ── Utility ────────────────────────────────────────────────────────────────── */
.nex-page-title {
  font-family: var(--font-display);
  font-weight: 900; font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase; letter-spacing: -.01em;
  color: var(--ink);
}
.nex-page-subtitle { font-family: var(--font-body); color: var(--text-secondary); }
.nex-page-header { margin-bottom: var(--sp-8); padding-bottom: var(--sp-6); border-bottom: 2px solid var(--rule); }
.nex-prose { font-family: var(--font-body); font-size: 1rem; line-height: 1.75; color: var(--text-secondary); }

/* Scroll animation */
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
[data-animate].is-visible { opacity: 1; transform: none; }

/* Upgrade modal promo */
.nxp-promo-overlay {
  position: fixed; inset: 0; z-index: 9980;
  background: rgba(5,15,31,.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.nxp-promo-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  border-top: 4px solid var(--red);
  padding: var(--sp-10);
  max-width: 460px; width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.nxp-promo-modal--cat { border-top-color: var(--blue); }
.nxp-promo-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--off-white); border: none;
  color: var(--text-muted); width: 28px; height: 28px;
  border-radius: 3px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.nxp-promo-close:hover { background: var(--rule); color: var(--ink); }
.nxp-promo-badge {
  font-family: var(--font-mono);
  font-size: .68rem; font-weight: 600;
  background: var(--red); color: var(--white);
  padding: 4px 12px; border-radius: 3px;
  display: inline-block; margin-bottom: var(--sp-4);
  text-transform: uppercase; letter-spacing: .08em;
}
.nxp-promo-hero { text-align: center; margin-bottom: var(--sp-6); }
.nxp-promo-plan-tag {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--red); text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 8px;
}
.nxp-promo-hero h2 {
  font-family: var(--font-display);
  font-weight: 900; font-size: 2.2rem;
  text-transform: uppercase; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 10px;
  line-height: 1;
}
.nxp-promo-hero p { font-size: .9rem; color: var(--text-secondary); margin: 0; }
.nxp-promo-stats {
  display: flex; justify-content: space-around;
  background: var(--off-white); border-radius: var(--radius-md);
  padding: var(--sp-4); margin-bottom: var(--sp-5);
}
.nxp-promo-stat { text-align: center; }
.nxp-promo-stat__num { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--ink); line-height: 1; }
.nxp-promo-stat__label { font-family: var(--font-mono); font-size: .6rem; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }
.nxp-promo-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-6); }
.nxp-promo-feat { font-size: .875rem; color: var(--text-secondary); display: flex; gap: 8px; }
.nxp-promo-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-4); }
.nxp-promo-btn {
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  border: none; cursor: pointer; text-align: center;
  text-decoration: none; display: block;
  transition: all var(--t-normal);
}
.nxp-promo-btn--primary { background: var(--red); color: var(--white); }
.nxp-promo-btn--primary:hover { background: var(--red-dark); }
.nxp-promo-btn--blue { background: var(--blue); color: var(--white); }
.nxp-promo-btn--blue:hover { background: var(--ink-mid); }
.nxp-promo-btn--ghost { background: var(--off-white); color: var(--text-muted); }
.nxp-promo-btn--ghost:hover { color: var(--ink); }
.nxp-promo-footer { font-family: var(--font-mono); font-size: .65rem; color: var(--text-muted); text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.nxp-promo-cat-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-5); }
.nxp-promo-cat-features div { font-size: .875rem; color: var(--text-secondary); }
.nxp-promo-cat-tip {
  background: var(--off-white); border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm); padding: var(--sp-4);
  font-size: .85rem; color: var(--text-secondary); margin-bottom: var(--sp-5);
}
