/* ============================================================
   NSTOCK — nstk.css
   Full-site design system (agent-2 reads and reuses only)
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  /* Palette */
  --nstk-bg-deep: #131020;
  --nstk-bg-elevated: #1C1A2E;
  --nstk-border-dark: #2A273D;
  --nstk-text-primary-dark: #F2F0EC;
  --nstk-text-secondary-dark: #9E9BB5;
  --nstk-accent-on-dark: #A88FD1;
  --nstk-bg-light: #F7F5F0;
  --nstk-bg-light-alt: #EDEAE3;
  --nstk-bg-white: #FFFFFF;
  --nstk-bg-cream: #FAF8F4;
  --nstk-border-light: #D8D4E0;
  --nstk-text-primary-light: #1A1828;
  --nstk-text-body-light: #3D3B4A;
  --nstk-text-muted-light: #6B6880;
  --nstk-accent-on-light: #7B5EA7;
  --nstk-accent-hover-light: #5A3F82;
  --nstk-btn-primary-bg: #7B5EA7;
  --nstk-btn-primary-text: #FFFFFF;
  --nstk-btn-primary-hover: #5A3F82;

  /* Spacing */
  --nstk-section-py: clamp(4rem, 8vw, 7rem);
  --nstk-container-px: clamp(1rem, 4vw, 2.5rem);
  --nstk-container-max: 1200px;
  --nstk-nav-h: 72px;

  /* Typography */
  --nstk-font-serif: 'Instrument Serif', Georgia, serif;
  --nstk-font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --nstk-font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--nstk-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--nstk-bg-light);
  color: var(--nstk-text-body-light);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Page theme contexts ───────────────────────────────── */
body.nstk-page--dark-top {
  background: var(--nstk-bg-deep);
  color: var(--nstk-text-primary-dark);
}
body.nstk-page--light-top {
  background: var(--nstk-bg-light);
  color: var(--nstk-text-body-light);
}

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--nstk-font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--nstk-text-primary-light);
}
body.nstk-page--dark-top h1,
body.nstk-page--dark-top h2,
body.nstk-page--dark-top h3 {
  color: var(--nstk-text-primary-dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; font-family: var(--nstk-font-sans); font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.nstk-eyebrow {
  display: inline-block;
  font-family: var(--nstk-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nstk-accent-on-light);
  margin-bottom: 0.75rem;
}
.nstk-eyebrow--dark {
  color: var(--nstk-accent-on-dark);
}

/* ── Layout Utilities ──────────────────────────────────── */
.nstk-container {
  max-width: var(--nstk-container-max);
  margin: 0 auto;
  padding-left: var(--nstk-container-px);
  padding-right: var(--nstk-container-px);
}

.nstk-section {
  padding-top: var(--nstk-section-py);
  padding-bottom: var(--nstk-section-py);
}
.nstk-section--dark {
  background: var(--nstk-bg-deep);
  color: var(--nstk-text-primary-dark);
}
.nstk-section--dark h2,
.nstk-section--dark h3,
.nstk-section--dark h4 {
  color: var(--nstk-text-primary-dark);
}
.nstk-section--elevated {
  background: var(--nstk-bg-elevated);
  color: var(--nstk-text-primary-dark);
}
.nstk-section--elevated h2,
.nstk-section--elevated h3 {
  color: var(--nstk-text-primary-dark);
}
.nstk-section--light {
  background: var(--nstk-bg-light);
  color: var(--nstk-text-body-light);
}
.nstk-section--cream {
  background: var(--nstk-bg-cream);
  color: var(--nstk-text-body-light);
}
.nstk-section--white {
  background: var(--nstk-bg-white);
  color: var(--nstk-text-body-light);
}
.nstk-section--alt {
  background: var(--nstk-bg-light-alt);
  color: var(--nstk-text-body-light);
}

.nstk-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.nstk-section-header p {
  font-size: 1.1rem;
  color: var(--nstk-text-muted-light);
  margin-top: 0.75rem;
}
.nstk-section--dark .nstk-section-header p,
.nstk-section--elevated .nstk-section-header p {
  color: var(--nstk-text-secondary-dark);
}

/* Light sections on dark-top pages: force dark text so headings don't inherit near-white */
.nstk-section--cream h1, .nstk-section--cream h2, .nstk-section--cream h3,
.nstk-section--cream h4, .nstk-section--cream h5, .nstk-section--cream h6,
.nstk-section--light h1, .nstk-section--light h2, .nstk-section--light h3,
.nstk-section--light h4, .nstk-section--light h5, .nstk-section--light h6,
.nstk-section--white h1, .nstk-section--white h2, .nstk-section--white h3,
.nstk-section--white h4, .nstk-section--white h5, .nstk-section--white h6,
.nstk-section--alt h1, .nstk-section--alt h2, .nstk-section--alt h3 {
  color: var(--nstk-text-primary-light) !important;
}
.nstk-section--cream p, .nstk-section--cream li,
.nstk-section--light p, .nstk-section--light li,
.nstk-section--white p, .nstk-section--white li,
.nstk-section--alt p, .nstk-section--alt li {
  color: var(--nstk-text-body-light);
}

/* ── Nav ───────────────────────────────────────────────── */
.nstk-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nstk-nav-h);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* dark-top pages: nav transparent over dark hero initially */
body.nstk-page--dark-top .nstk-nav {
  background: transparent;
}
/* light-top pages: nav always has a solid bg since no dark hero underneath */
body.nstk-page--light-top .nstk-nav {
  background: var(--nstk-bg-white);
  border-bottom: 1px solid var(--nstk-border-light);
}

/* Scrolled state: always dark */
.nstk-nav--scrolled {
  background: var(--nstk-bg-deep) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4) !important;
  border-bottom: none !important;
}

.nstk-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nstk-nav-h);
  max-width: var(--nstk-container-max);
  margin: 0 auto;
  padding: 0 var(--nstk-container-px);
}

.nstk-nav__logo img {
  height: 28px;
  width: auto;
}

/* Logo visibility logic */
.nstk-logo-light { display: block; }
.nstk-logo-dark { display: none; }

body.nstk-page--light-top .nstk-logo-light { display: none; }
body.nstk-page--light-top .nstk-logo-dark { display: block; }

/* Scrolled state logo: always light (on dark bg) */
.nstk-nav--scrolled .nstk-logo-light { display: block !important; }
.nstk-nav--scrolled .nstk-logo-dark { display: none !important; }

.nstk-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nstk-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

/* dark-top pages: light links */
body.nstk-page--dark-top .nstk-nav__link {
  color: var(--nstk-text-secondary-dark);
}
body.nstk-page--dark-top .nstk-nav__link:hover {
  color: var(--nstk-text-primary-dark);
}

/* light-top pages: dark links */
body.nstk-page--light-top .nstk-nav__link {
  color: var(--nstk-text-body-light);
}
body.nstk-page--light-top .nstk-nav__link:hover {
  color: var(--nstk-text-primary-light);
}

/* Scrolled state: light links (on dark bg) */
.nstk-nav--scrolled .nstk-nav__link {
  color: var(--nstk-text-secondary-dark) !important;
}
.nstk-nav--scrolled .nstk-nav__link:hover {
  color: var(--nstk-text-primary-dark) !important;
}

.nstk-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.nstk-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nstk-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  transition: background 0.2s;
}
body.nstk-page--dark-top .nstk-nav__hamburger span {
  background: var(--nstk-text-primary-dark);
}
body.nstk-page--light-top .nstk-nav__hamburger span {
  background: var(--nstk-text-primary-light);
}
.nstk-nav--scrolled .nstk-nav__hamburger span {
  background: var(--nstk-text-primary-dark) !important;
}

/* Mobile nav overlay */
.nstk-nav__mobile {
  display: none;
  position: fixed;
  top: var(--nstk-nav-h);
  left: 0;
  right: 0;
  background: var(--nstk-bg-deep);
  border-top: 1px solid var(--nstk-border-dark);
  z-index: 999;
  padding: 1.5rem var(--nstk-container-px);
  flex-direction: column;
  gap: 1rem;
}
.nstk-nav__mobile.nstk-nav__mobile--open {
  display: flex;
}
.nstk-nav__mobile .nstk-nav__link {
  color: var(--nstk-text-secondary-dark) !important;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--nstk-border-dark);
}
.nstk-nav__mobile .nstk-btn {
  align-self: flex-start;
}

/* ── Buttons ────────────────────────────────────────────── */
.nstk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--nstk-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.nstk-btn:hover { transform: translateY(-1px); }
.nstk-btn:active { transform: translateY(0); }

/* Primary */
.nstk-btn--primary {
  background: var(--nstk-btn-primary-bg);
  color: var(--nstk-btn-primary-text);
  border-color: var(--nstk-btn-primary-bg);
}
.nstk-btn--primary:hover {
  background: var(--nstk-btn-primary-hover);
  border-color: var(--nstk-btn-primary-hover);
}

/* Outline on dark bg */
.nstk-btn--outline-dark {
  background: transparent;
  color: var(--nstk-text-secondary-dark);
  border-color: var(--nstk-border-dark);
}
.nstk-btn--outline-dark:hover {
  border-color: var(--nstk-accent-on-dark);
  color: var(--nstk-text-primary-dark);
}

/* Outline on light bg */
.nstk-btn--outline-light {
  background: transparent;
  color: var(--nstk-text-body-light);
  border-color: var(--nstk-border-light);
}
.nstk-btn--outline-light:hover {
  border-color: var(--nstk-accent-on-light);
  color: var(--nstk-accent-on-light);
}

/* Ghost on dark */
.nstk-btn--ghost-dark {
  background: transparent;
  color: var(--nstk-text-secondary-dark);
  border-color: transparent;
}
.nstk-btn--ghost-dark:hover {
  color: var(--nstk-text-primary-dark);
}

/* Ghost on light bg */
.nstk-btn--ghost-light {
  background: transparent;
  color: var(--nstk-text-body-light);
  border-color: transparent;
}
.nstk-btn--ghost-light:hover {
  color: var(--nstk-accent-on-light);
}

/* Nav CTA button — scrolled state always ghost-dark context */
.nstk-nav--scrolled .nstk-btn--ghost-light,
.nstk-nav--scrolled .nstk-btn--outline-light {
  color: var(--nstk-text-secondary-dark) !important;
  border-color: var(--nstk-border-dark) !important;
}
.nstk-nav--scrolled .nstk-btn--ghost-light:hover,
.nstk-nav--scrolled .nstk-btn--outline-light:hover {
  color: var(--nstk-text-primary-dark) !important;
  border-color: var(--nstk-accent-on-dark) !important;
}

/* Large button variant */
.nstk-btn--lg {
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
}

/* ── Hero (index.html) ──────────────────────────────────── */
.nstk-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--nstk-bg-deep);
  overflow: hidden;
  padding-top: var(--nstk-nav-h);
}

.nstk-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--nstk-container-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--nstk-container-px);
}

.nstk-hero__text {}
.nstk-hero__text h1 {
  color: var(--nstk-text-primary-dark);
  margin-bottom: 1.25rem;
}
.nstk-hero__text p {
  font-size: 1.15rem;
  color: var(--nstk-text-secondary-dark);
  margin-bottom: 2rem;
  max-width: 480px;
}
.nstk-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero equity dashboard inline mock */
.nstk-hero__visual {
  position: relative;
}
.nstk-equity-mock {
  background: var(--nstk-bg-elevated);
  border: 1px solid var(--nstk-border-dark);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: var(--nstk-font-sans);
}
.nstk-equity-mock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--nstk-border-dark);
  padding-bottom: 0.75rem;
}
.nstk-equity-mock__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nstk-text-secondary-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nstk-equity-mock__badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(168, 143, 209, 0.15);
  color: var(--nstk-accent-on-dark);
  border: 1px solid rgba(168, 143, 209, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
}
.nstk-equity-mock__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.nstk-equity-mock__stat {
  background: rgba(42, 39, 61, 0.6);
  border-radius: 8px;
  padding: 0.75rem;
}
.nstk-equity-mock__stat-val {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--nstk-text-primary-dark);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.nstk-equity-mock__stat-label {
  font-size: 0.68rem;
  color: var(--nstk-text-secondary-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nstk-equity-mock__rows {}
.nstk-equity-mock__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(42, 39, 61, 0.5);
}
.nstk-equity-mock__row:last-child { border-bottom: none; }
.nstk-equity-mock__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(168, 143, 209, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #F2F0EC;
  flex-shrink: 0;
}
.nstk-equity-mock__row-name {
  font-size: 0.82rem;
  color: var(--nstk-text-primary-dark);
  flex: 1;
}
.nstk-equity-mock__row-pct {
  font-size: 0.75rem;
  color: var(--nstk-accent-on-dark);
  font-family: var(--nstk-font-mono);
}
.nstk-equity-mock__row-type {
  font-size: 0.68rem;
  color: var(--nstk-text-secondary-dark);
  background: rgba(42, 39, 61, 0.7);
  border-radius: 3px;
  padding: 2px 6px;
}
.nstk-equity-mock__bar-wrap {
  margin-top: 1rem;
  height: 6px;
  background: rgba(42, 39, 61, 0.8);
  border-radius: 3px;
  overflow: hidden;
}
.nstk-equity-mock__bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--nstk-accent-on-dark), #7B5EA7);
  width: 68%;
}

/* ── Sub-page Hero ─────────────────────────────────────── */
.nstk-subhero {
  background: var(--nstk-bg-light);
  padding-top: calc(var(--nstk-nav-h) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--nstk-border-light);
}
.nstk-subhero--dark {
  background: var(--nstk-bg-deep);
  border-bottom: 1px solid var(--nstk-border-dark);
}
.nstk-subhero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--nstk-container-max);
  margin: 0 auto;
  padding: 0 var(--nstk-container-px);
}
.nstk-subhero__inner--centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 700px;
}
.nstk-subhero__text h1 {
  margin-bottom: 1rem;
  color: var(--nstk-text-primary-light);
}
.nstk-subhero--dark .nstk-subhero__text h1 {
  color: var(--nstk-text-primary-dark);
}
.nstk-subhero__text p {
  font-size: 1.05rem;
  color: var(--nstk-text-muted-light);
  margin-bottom: 0;
}
.nstk-subhero--dark .nstk-subhero__text p {
  color: var(--nstk-text-secondary-dark);
}
.nstk-subhero__visual {
  display: flex;
  justify-content: flex-end;
}

/* Stat fragment for sub-page hero visual weight */
.nstk-stat-fragment {
  background: var(--nstk-bg-white);
  border: 1px solid var(--nstk-border-light);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 220px;
}
.nstk-stat-fragment--dark {
  background: var(--nstk-bg-elevated);
  border-color: var(--nstk-border-dark);
}
.nstk-stat-fragment__item {}
.nstk-stat-fragment__num {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--nstk-font-sans);
  color: var(--nstk-accent-on-light);
  line-height: 1;
}
.nstk-stat-fragment--dark .nstk-stat-fragment__num {
  color: var(--nstk-accent-on-dark);
}
.nstk-stat-fragment__label {
  font-size: 0.8rem;
  color: var(--nstk-text-muted-light);
}
.nstk-stat-fragment--dark .nstk-stat-fragment__label {
  color: var(--nstk-text-secondary-dark);
}

/* ── Problem / Stat band (index) ───────────────────────── */
.nstk-stat-band {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--nstk-bg-elevated);
  border-top: 1px solid var(--nstk-border-dark);
  border-bottom: 1px solid var(--nstk-border-dark);
}
.nstk-stat-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.nstk-stat-band__num {
  font-family: var(--nstk-font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--nstk-accent-on-dark);
  margin-bottom: 0.4rem;
}
.nstk-stat-band__label {
  font-size: 0.9rem;
  color: var(--nstk-text-secondary-dark);
}

/* ── Feature grid (index + product) ─────────────────────── */
.nstk-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.nstk-feature-card {
  background: var(--nstk-bg-elevated);
  border: 1px solid var(--nstk-border-dark);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.nstk-feature-card:hover {
  border-color: var(--nstk-accent-on-dark);
}
.nstk-feature-card__icon {
  width: 40px;
  height: 40px;
  background: rgba(168, 143, 209, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--nstk-accent-on-dark);
  font-size: 1.1rem;
}
.nstk-feature-card h3 {
  font-size: 1.1rem;
  font-family: var(--nstk-font-sans);
  font-weight: 600;
  color: var(--nstk-text-primary-dark);
  margin-bottom: 0.5rem;
}
.nstk-feature-card p {
  font-size: 0.9rem;
  color: var(--nstk-text-secondary-dark);
}

/* Feature cards on light bg */
.nstk-feature-card--light {
  background: var(--nstk-bg-white);
  border-color: var(--nstk-border-light);
}
.nstk-feature-card--light:hover {
  border-color: var(--nstk-accent-on-light);
}
.nstk-feature-card--light .nstk-feature-card__icon {
  background: rgba(123, 94, 167, 0.1);
  color: var(--nstk-accent-on-light);
}
.nstk-feature-card--light h3 {
  color: var(--nstk-text-primary-light);
}
.nstk-feature-card--light p {
  color: var(--nstk-text-muted-light);
}

/* ── How It Works (3-step, index) ─────────────────────── */
.nstk-how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.nstk-how-step {
  text-align: center;
}
.nstk-how-step__num {
  font-family: var(--nstk-font-mono);
  font-size: 0.75rem;
  color: var(--nstk-accent-on-dark);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.nstk-how-step__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: rgba(168, 143, 209, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nstk-accent-on-dark);
  font-size: 1.5rem;
}
.nstk-how-step h3 {
  font-size: 1.15rem;
  font-family: var(--nstk-font-sans);
  font-weight: 600;
  color: var(--nstk-text-primary-dark);
  margin-bottom: 0.5rem;
}
.nstk-how-step p {
  font-size: 0.9rem;
  color: var(--nstk-text-secondary-dark);
}

/* ── Two-col feature detail (product page) ──────────────── */
.nstk-feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.nstk-feature-detail--flip {
  direction: rtl;
}
.nstk-feature-detail--flip > * {
  direction: ltr;
}
.nstk-feature-detail__text h2 {
  margin-bottom: 1rem;
}
.nstk-feature-detail__text p {
  color: var(--nstk-text-muted-light);
  margin-bottom: 1.5rem;
}
.nstk-feature-detail__checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.nstk-feature-detail__check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--nstk-text-body-light);
}
.nstk-feature-detail__check-item i {
  color: var(--nstk-accent-on-light);
  margin-top: 2px;
  flex-shrink: 0;
}
.nstk-feature-detail__image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--nstk-border-light);
}
.nstk-feature-detail__image img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Compliance mock (product page) */
.nstk-compliance-mock {
  background: var(--nstk-bg-white);
  border: 1px solid var(--nstk-border-light);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: var(--nstk-font-sans);
}
.nstk-compliance-mock__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nstk-text-muted-light);
  margin-bottom: 1rem;
}
.nstk-compliance-mock__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--nstk-border-light);
}
.nstk-compliance-mock__item:last-child { border-bottom: none; }
.nstk-compliance-mock__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.nstk-compliance-mock__status--ok { background: #22c55e; }
.nstk-compliance-mock__status--warn { background: #f59e0b; }
.nstk-compliance-mock__label {
  font-size: 0.85rem;
  color: var(--nstk-text-body-light);
  flex: 1;
}
.nstk-compliance-mock__tag {
  font-size: 0.7rem;
  color: var(--nstk-text-muted-light);
  background: var(--nstk-bg-light-alt);
  border-radius: 3px;
  padding: 2px 6px;
}

/* ── Info panel / value cards ───────────────────────────── */
.nstk-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.nstk-value-card {
  background: var(--nstk-bg-white);
  border: 1px solid var(--nstk-border-light);
  border-radius: 10px;
  padding: 2rem;
}
.nstk-value-card__icon {
  font-size: 1.5rem;
  color: var(--nstk-accent-on-light);
  margin-bottom: 1rem;
}
.nstk-value-card h3 {
  font-size: 1.1rem;
  font-family: var(--nstk-font-sans);
  font-weight: 600;
  color: var(--nstk-text-primary-light);
  margin-bottom: 0.5rem;
}
.nstk-value-card p {
  font-size: 0.9rem;
  color: var(--nstk-text-muted-light);
}

/* ── Team grid ──────────────────────────────────────────── */
.nstk-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.nstk-team-card {
  background: var(--nstk-bg-white);
  border: 1px solid var(--nstk-border-light);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}
.nstk-team-card__photo {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--nstk-bg-light-alt);
}
.nstk-team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.nstk-team-card__initials {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--nstk-accent-on-light);
  background: rgba(123, 94, 167, 0.1);
}
.nstk-team-card__body {
  padding: 1.25rem;
}
.nstk-team-card__name {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--nstk-font-sans);
  color: var(--nstk-text-primary-light);
  margin-bottom: 0.2rem;
}
.nstk-team-card__role {
  font-size: 0.8rem;
  color: var(--nstk-accent-on-light);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.nstk-team-card__bio {
  font-size: 0.85rem;
  color: var(--nstk-text-muted-light);
  line-height: 1.5;
}

/* ── Pricing ────────────────────────────────────────────── */
.nstk-pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.nstk-pricing-toggle__label {
  font-size: 0.9rem;
  color: var(--nstk-text-muted-light);
  font-weight: 500;
}
.nstk-pricing-toggle__label--active {
  color: var(--nstk-text-primary-light);
  font-weight: 600;
}
/* JS state hooks for pricing toggle — no own visual style */
.nstk-toggle-monthly,
.nstk-toggle-annual {
  transition: color 0.2s, font-weight 0.15s;
}
.nstk-pricing-toggle__switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--nstk-border-light);
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.nstk-pricing-toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nstk-bg-white);
  transition: transform 0.2s;
}
.nstk-pricing-toggle__switch.nstk-active {
  background: var(--nstk-accent-on-light);
}
.nstk-pricing-toggle__switch.nstk-active::after {
  transform: translateX(20px);
}
.nstk-pricing-badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(123, 94, 167, 0.15);
  color: #5A3F82;
  border-radius: 4px;
  padding: 2px 7px;
}

/* JS hook: receives .nstk-pricing--annual class to reveal annual prices */
.nstk-pricing-wrap { width: 100%; }

.nstk-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.nstk-pricing-card {
  background: var(--nstk-bg-white);
  border: 1px solid var(--nstk-border-light);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.2s;
}
.nstk-pricing-card--featured {
  border-color: var(--nstk-accent-on-light);
  box-shadow: 0 0 0 2px rgba(123, 94, 167, 0.15), 0 8px 32px rgba(0,0,0,0.08);
}
.nstk-pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nstk-accent-on-light);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nstk-pricing-card__tier {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nstk-text-muted-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.nstk-pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.3rem;
}
.nstk-pricing-card__currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nstk-text-body-light);
}
.nstk-pricing-card__amount {
  font-size: 2.8rem;
  font-weight: 700;
  font-family: var(--nstk-font-sans);
  color: var(--nstk-text-primary-light);
  line-height: 1;
}
.nstk-pricing-card__period {
  font-size: 0.85rem;
  color: var(--nstk-text-muted-light);
}
.nstk-pricing-card__desc {
  font-size: 0.88rem;
  color: var(--nstk-text-muted-light);
  margin: 0.75rem 0 1.5rem;
  line-height: 1.5;
}
.nstk-pricing-card__cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.nstk-pricing-card__features {
  border-top: 1px solid var(--nstk-border-light);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.nstk-pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--nstk-text-body-light);
}
.nstk-pricing-card__feature i {
  color: var(--nstk-accent-on-light);
  margin-top: 1px;
  flex-shrink: 0;
}
.nstk-pricing-card__feature--disabled {
  color: var(--nstk-text-muted-light);
}
.nstk-pricing-card__feature--disabled i {
  color: var(--nstk-border-light);
}

/* Price display for annual/monthly toggle */
.nstk-price-monthly { display: flex; align-items: baseline; gap: 0.2rem; }
.nstk-price-annual { display: none; align-items: baseline; gap: 0.2rem; }
.nstk-pricing--annual .nstk-price-monthly { display: none; }
.nstk-pricing--annual .nstk-price-annual { display: flex; }

/* ── FAQ Accordion ──────────────────────────────────────── */
.nstk-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--nstk-border-light);
  border-radius: 10px;
  overflow: hidden;
}
.nstk-faq-item {
  border-bottom: 1px solid var(--nstk-border-light);
}
.nstk-faq-item:last-child { border-bottom: none; }
.nstk-faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nstk-text-primary-light);
  background: var(--nstk-bg-white);
  cursor: pointer;
  transition: background 0.15s;
  gap: 1rem;
}
.nstk-faq-item__q:hover {
  background: var(--nstk-bg-light);
}
.nstk-faq-item__q i {
  font-size: 0.8rem;
  color: var(--nstk-text-muted-light);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.nstk-faq-item--open .nstk-faq-item__q {
  background: var(--nstk-bg-light);
  color: var(--nstk-accent-on-light);
}
.nstk-faq-item--open .nstk-faq-item__q i {
  transform: rotate(180deg);
  color: var(--nstk-accent-on-light);
}
.nstk-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--nstk-bg-light);
}
.nstk-faq-item--open .nstk-faq-item__a {
  max-height: 400px;
}
.nstk-faq-item__a-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--nstk-text-body-light);
  line-height: 1.65;
}

/* ── CTA Band ───────────────────────────────────────────── */
.nstk-cta-band {
  background: var(--nstk-bg-deep);
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) var(--nstk-container-px);
}
.nstk-cta-band h2 {
  color: var(--nstk-text-primary-dark);
  margin-bottom: 1rem;
}
.nstk-cta-band p {
  color: var(--nstk-text-secondary-dark);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.nstk-cta-band__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Two-col CTA (about page) */
.nstk-cta-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.nstk-cta-two-col__text h2 { margin-bottom: 1rem; }
.nstk-cta-two-col__text p {
  color: var(--nstk-text-muted-light);
  margin-bottom: 1.5rem;
}
.nstk-cta-two-col__text .nstk-btn { margin-right: 0.75rem; }
.nstk-cta-two-col__contact {
  background: var(--nstk-bg-white);
  border: 1px solid var(--nstk-border-light);
  border-radius: 12px;
  padding: 2rem;
}
.nstk-cta-two-col__contact h3 {
  font-size: 1.1rem;
  font-family: var(--nstk-font-sans);
  font-weight: 600;
  color: var(--nstk-text-primary-light);
  margin-bottom: 1.25rem;
}
.nstk-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nstk-contact-info__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--nstk-text-body-light);
}
.nstk-contact-info__row i {
  color: var(--nstk-accent-on-light);
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}

/* ── Contact page form ──────────────────────────────────── */
.nstk-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.nstk-contact-form {
  display: flex;
  flex-direction: column;
}
.nstk-contact-form-wrap {
  background: var(--nstk-bg-white);
  border: 1px solid var(--nstk-border-light);
  border-radius: 12px;
  padding: 2rem;
}
.nstk-contact-info__items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.nstk-contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9rem;
}
.nstk-contact-info__item i {
  color: var(--nstk-accent-on-light);
  margin-top: 2px;
  width: 16px;
  flex-shrink: 0;
}
.nstk-contact-info__item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nstk-text-muted-light);
  margin-bottom: 2px;
}
.nstk-contact-info__item a,
.nstk-contact-info__item span {
  color: var(--nstk-text-body-light);
}
.nstk-contact-confirm {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.nstk-contact-confirm__icon {
  font-size: 2.5rem;
  color: var(--nstk-accent-on-light);
  margin-bottom: 1rem;
}

/* ── Form elements (auth + contact) ─────────────────────── */
.nstk-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}
.nstk-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nstk-text-primary-light);
}
.nstk-form-input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-family: var(--nstk-font-sans);
  background: var(--nstk-bg-white);
  border: 1.5px solid var(--nstk-border-light);
  border-radius: 6px;
  color: var(--nstk-text-primary-light);
  transition: border-color 0.2s;
  outline: none;
}
.nstk-form-input:focus {
  border-color: var(--nstk-accent-on-light);
  box-shadow: 0 0 0 3px rgba(123, 94, 167, 0.12);
}
.nstk-form-input::placeholder {
  color: var(--nstk-text-muted-light);
}
textarea.nstk-form-input {
  min-height: 120px;
  resize: vertical;
}
.nstk-form-error {
  font-size: 0.8rem;
  color: #dc2626;
  display: none;
}
.nstk-form-error--visible {
  display: block;
}
.nstk-form-helper {
  font-size: 0.8rem;
  color: var(--nstk-text-muted-light);
}
.nstk-form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Auth form on dark bg */
.nstk-auth-form .nstk-form-label {
  color: var(--nstk-text-secondary-dark);
}
.nstk-auth-form .nstk-form-input {
  background: rgba(42, 39, 61, 0.5);
  border-color: var(--nstk-border-dark);
  color: var(--nstk-text-primary-dark);
}
.nstk-auth-form .nstk-form-input:focus {
  border-color: var(--nstk-accent-on-dark);
  box-shadow: 0 0 0 3px rgba(168, 143, 209, 0.15);
}
.nstk-auth-form .nstk-form-input::placeholder {
  color: var(--nstk-text-secondary-dark);
}

/* Light-background form variants (contact page) */
.nstk-form-label--light {
  color: var(--nstk-text-primary-light);
}
.nstk-form-input--light {
  background: var(--nstk-bg-light);
  border-color: var(--nstk-border-light);
  color: var(--nstk-text-primary-light);
}
.nstk-form-input--light:focus {
  border-color: var(--nstk-accent-on-light);
  box-shadow: 0 0 0 3px rgba(123, 94, 167, 0.12);
}
.nstk-form-input--light::placeholder {
  color: var(--nstk-text-muted-light);
}
.nstk-form-textarea {
  min-height: 130px;
  resize: vertical;
}

/* ── Auth pages ─────────────────────────────────────────── */
.nstk-auth-page {
  min-height: 100vh;
  background: var(--nstk-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--nstk-container-px);
}
.nstk-auth-card {
  background: var(--nstk-bg-elevated);
  border: 1px solid var(--nstk-border-dark);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
}
.nstk-auth-card__logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}
.nstk-auth-card__logo img {
  height: 28px;
  width: auto;
}
.nstk-auth-card h1 {
  font-size: 1.6rem;
  color: var(--nstk-text-primary-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}
.nstk-auth-card__sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--nstk-text-secondary-dark);
  margin-bottom: 1.75rem;
}
.nstk-auth-card__footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--nstk-text-secondary-dark);
}
.nstk-auth-card__footer a {
  color: var(--nstk-accent-on-dark);
  font-weight: 600;
}
.nstk-auth-card__footer a:hover {
  text-decoration: underline;
}
.nstk-auth-card__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
}
.nstk-auth-card__links a {
  color: var(--nstk-text-secondary-dark);
}
.nstk-auth-card__links a:hover {
  color: var(--nstk-text-primary-dark);
}
.nstk-auth-divider {
  position: relative;
  text-align: center;
  margin: 1rem 0;
}
.nstk-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--nstk-border-dark);
}
.nstk-auth-divider span {
  position: relative;
  background: var(--nstk-bg-elevated);
  padding: 0 0.75rem;
  font-size: 0.78rem;
  color: var(--nstk-text-secondary-dark);
}

/* Auth confirm view (show after submit) */
.nstk-auth-confirm {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.nstk-auth-confirm--visible {
  display: block;
}
.nstk-auth-confirm__icon {
  font-size: 2.5rem;
  color: var(--nstk-accent-on-dark);
  margin-bottom: 1rem;
}
.nstk-auth-confirm h2 {
  font-size: 1.3rem;
  color: var(--nstk-text-primary-dark);
  margin-bottom: 0.5rem;
}
.nstk-auth-confirm p {
  font-size: 0.9rem;
  color: var(--nstk-text-secondary-dark);
  margin-bottom: 0;
}

/* ── Journal / Blog listing ─────────────────────────────── */
.nstk-journal-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.nstk-journal-featured__cover {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--nstk-border-light);
}
.nstk-journal-featured__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nstk-journal-featured__text {}
.nstk-journal-featured__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.nstk-journal-featured__text h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 0.75rem;
  color: var(--nstk-text-primary-light);
}
.nstk-journal-featured__text h2 a {
  color: inherit;
}
.nstk-journal-featured__text h2 a:hover {
  color: var(--nstk-accent-on-light);
}
.nstk-journal-featured__excerpt {
  color: var(--nstk-text-muted-light);
  margin-bottom: 1.25rem;
}
.nstk-journal-featured__meta {
  font-size: 0.82rem;
  color: var(--nstk-text-muted-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nstk-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.nstk-article-card {
  background: var(--nstk-bg-white);
  border: 1px solid var(--nstk-border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nstk-article-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.nstk-article-card__cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--nstk-bg-light-alt);
}
.nstk-article-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nstk-article-card__body {
  padding: 1.25rem;
}
.nstk-article-card__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.nstk-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(123, 94, 167, 0.1);
  color: var(--nstk-accent-on-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nstk-article-card h3 {
  font-size: 1rem;
  font-family: var(--nstk-font-sans);
  font-weight: 600;
  color: var(--nstk-text-primary-light);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.nstk-article-card h3 a {
  color: inherit;
}
.nstk-article-card h3 a:hover {
  color: var(--nstk-accent-on-light);
}
.nstk-article-card__excerpt {
  font-size: 0.85rem;
  color: var(--nstk-text-muted-light);
  margin-bottom: 1rem;
  line-height: 1.55;
}
.nstk-article-card__meta {
  font-size: 0.78rem;
  color: var(--nstk-text-muted-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Article / Journal article page ─────────────────────── */
.nstk-article-hero {
  background: var(--nstk-bg-deep);
  padding-top: calc(var(--nstk-nav-h) + clamp(2rem, 4vw, 3.5rem));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.nstk-article-hero__inner {
  max-width: var(--nstk-container-max);
  margin: 0 auto;
  padding: 0 var(--nstk-container-px);
}
.nstk-article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--nstk-accent-on-dark);
  margin-bottom: 1.5rem;
  transition: gap 0.2s;
}
.nstk-article-back:hover {
  gap: 0.6rem;
  color: var(--nstk-text-primary-dark);
}
.nstk-article-hero__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.nstk-article-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--nstk-text-primary-dark);
  margin-bottom: 1rem;
  max-width: 800px;
}
.nstk-article-hero__meta {
  font-size: 0.85rem;
  color: var(--nstk-text-secondary-dark);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.nstk-article-hero__cover {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  max-width: 860px;
  aspect-ratio: 16/9;
}
.nstk-article-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article body prose */
.nstk-article-body {
  background: var(--nstk-bg-light);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.nstk-article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--nstk-container-px);
}
.nstk-article-content h2 {
  font-size: 1.7rem;
  color: var(--nstk-text-primary-light);
  margin: 2rem 0 0.75rem;
}
.nstk-article-content h3 {
  font-size: 1.25rem;
  font-family: var(--nstk-font-sans);
  font-weight: 600;
  color: var(--nstk-text-primary-light);
  margin: 1.5rem 0 0.5rem;
}
.nstk-article-content p {
  color: var(--nstk-text-body-light);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.nstk-article-content ul, .nstk-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: disc;
  color: var(--nstk-text-body-light);
}
.nstk-article-content ol { list-style: decimal; }
.nstk-article-content li { margin-bottom: 0.4rem; }
.nstk-article-content blockquote {
  border-left: 3px solid var(--nstk-accent-on-light);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--nstk-text-muted-light);
  font-style: italic;
}
.nstk-article-content a {
  color: var(--nstk-accent-on-light);
  text-decoration: underline;
  text-decoration-color: rgba(123, 94, 167, 0.4);
}
.nstk-article-content a:hover {
  text-decoration-color: var(--nstk-accent-on-light);
}
.nstk-article-content pre {
  background: var(--nstk-bg-deep);
  border: 1px solid var(--nstk-border-dark);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  max-width: 100%;
  font-family: var(--nstk-font-mono);
  font-size: 0.85rem;
  color: var(--nstk-text-primary-dark);
  margin-bottom: 1.25rem;
}
.nstk-article-content code {
  font-family: var(--nstk-font-mono);
  font-size: 0.875em;
  background: var(--nstk-bg-light-alt);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--nstk-accent-on-light);
}

/* Related articles */
.nstk-article-related {
  background: var(--nstk-bg-cream);
  padding: clamp(3rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--nstk-border-light);
}

/* ── Security page ──────────────────────────────────────── */
.nstk-security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.nstk-security-card {
  background: var(--nstk-bg-white);
  border: 1px solid var(--nstk-border-light);
  border-radius: 10px;
  padding: 1.75rem;
}
.nstk-security-card__icon {
  font-size: 1.5rem;
  color: var(--nstk-accent-on-light);
  margin-bottom: 1rem;
}
.nstk-security-card h3 {
  font-size: 1.05rem;
  font-family: var(--nstk-font-sans);
  font-weight: 600;
  color: var(--nstk-text-primary-light);
  margin-bottom: 0.5rem;
}
.nstk-security-card p {
  font-size: 0.875rem;
  color: var(--nstk-text-muted-light);
}

/* ── Prose block (about, long-form) ─────────────────────── */
.nstk-prose-block {
  max-width: 720px;
  margin: 0 auto;
  color: var(--nstk-text-body-light);
}
.nstk-prose-block h2 {
  margin-bottom: 1rem;
}
.nstk-prose-block p {
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
}

/* ── Legal pages ─────────────────────────────────────────── */
.nstk-legal-page {
  background: var(--nstk-bg-white);
  color: var(--nstk-text-body-light);
}
.nstk-legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nstk-nav-h) + 3rem) var(--nstk-container-px) clamp(4rem, 8vw, 7rem);
  color: var(--nstk-text-body-light);
}
.nstk-legal-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--nstk-text-primary-light);
  margin-bottom: 0.5rem;
}
.nstk-legal-content .nstk-legal-updated {
  font-size: 0.82rem;
  color: var(--nstk-text-muted-light);
  margin-bottom: 2rem;
}
.nstk-legal-content h2 {
  font-size: 1.25rem;
  font-family: var(--nstk-font-sans);
  font-weight: 600;
  color: var(--nstk-text-primary-light);
  margin: 2rem 0 0.6rem;
}
.nstk-legal-content p, .nstk-legal-content li {
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  color: var(--nstk-text-body-light);
}
.nstk-legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.nstk-legal-content a {
  color: var(--nstk-accent-on-light);
  text-decoration: underline;
}

/* ── Footer ─────────────────────────────────────────────── */
.nstk-footer {
  background: var(--nstk-bg-deep);
  border-top: 1px solid var(--nstk-border-dark);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
  color: var(--nstk-text-secondary-dark);
}
.nstk-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--nstk-container-max);
  margin: 0 auto;
  padding: 0 var(--nstk-container-px);
}
.nstk-footer__brand img {
  height: 24px;
  margin-bottom: 1rem;
}
.nstk-footer__brand p {
  font-size: 0.875rem;
  color: var(--nstk-text-secondary-dark);
  max-width: 280px;
  line-height: 1.6;
}
.nstk-footer__contact {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.nstk-footer__contact a {
  font-size: 0.82rem;
  color: var(--nstk-text-secondary-dark);
  transition: color 0.2s;
}
.nstk-footer__contact a:hover { color: var(--nstk-text-primary-dark); }
.nstk-footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nstk-text-primary-dark);
  margin-bottom: 1rem;
}
.nstk-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.nstk-footer__col ul li a {
  font-size: 0.875rem;
  color: var(--nstk-text-secondary-dark);
  transition: color 0.2s;
}
.nstk-footer__col ul li a:hover { color: var(--nstk-text-primary-dark); }
.nstk-footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--nstk-border-dark);
  padding: 1.25rem var(--nstk-container-px);
  max-width: var(--nstk-container-max);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.nstk-footer__copyright {
  font-size: 0.8rem;
  color: var(--nstk-text-secondary-dark);
}
.nstk-footer__legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nstk-footer__legal-links a {
  font-size: 0.8rem;
  color: var(--nstk-text-secondary-dark);
  transition: color 0.2s;
}
.nstk-footer__legal-links a:hover { color: var(--nstk-text-primary-dark); }

/* ── Cookie Banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 3rem);
  max-width: 700px;
  background: var(--nstk-bg-elevated);
  border: 1px solid var(--nstk-border-dark);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  display: none;
}
.cookie-banner.cookie-banner--visible {
  display: block;
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--nstk-text-secondary-dark);
  line-height: 1.5;
  min-width: 200px;
}
.cookie-banner__text a {
  color: var(--nstk-accent-on-dark);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--nstk-font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner__btn--primary {
  background: var(--nstk-btn-primary-bg);
  color: #ffffff;
  border-color: var(--nstk-btn-primary-bg);
}
.cookie-banner__btn--primary:hover {
  background: var(--nstk-btn-primary-hover);
  border-color: var(--nstk-btn-primary-hover);
}
.cookie-banner__btn--secondary {
  background: transparent;
  color: var(--nstk-text-secondary-dark);
  border-color: var(--nstk-border-dark);
}
.cookie-banner__btn--secondary:hover {
  color: var(--nstk-text-primary-dark);
  border-color: var(--nstk-accent-on-dark);
}

/* ── Fade-in animation ─────────────────────────────────── */
.nstk-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.nstk-fade-in.nstk-visible {
  opacity: 1;
  transform: none;
}

/* ── Misc utilities ─────────────────────────────────────── */
.nstk-text-accent { color: var(--nstk-accent-on-light); }
body.nstk-page--dark-top .nstk-text-accent { color: var(--nstk-accent-on-dark); }
.nstk-mono { font-family: var(--nstk-font-mono); }
.nstk-divider {
  height: 1px;
  background: var(--nstk-border-light);
  border: none;
  margin: 0;
}
.nstk-divider--dark { background: var(--nstk-border-dark); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nstk-hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .nstk-hero__text p { max-width: 100%; }
  .nstk-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .nstk-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .nstk-pricing-grid .nstk-pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nstk-nav__links,
  .nstk-nav__actions { display: none; }
  .nstk-nav__hamburger { display: flex; }

  .nstk-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nstk-hero__actions { justify-content: center; }
  .nstk-hero__text p { margin-left: auto; margin-right: auto; }
  .nstk-hero__visual { justify-content: center; }
  .nstk-equity-mock__stats { grid-template-columns: repeat(3, 1fr); }

  .nstk-subhero__inner {
    grid-template-columns: 1fr;
  }
  .nstk-subhero__visual { justify-content: flex-start; }

  .nstk-stat-band__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nstk-feature-grid { grid-template-columns: 1fr; }
  .nstk-how-steps { grid-template-columns: 1fr; }
  .nstk-value-grid { grid-template-columns: 1fr; }
  .nstk-team-grid { grid-template-columns: 1fr; }
  .nstk-pricing-grid { grid-template-columns: 1fr; }
  .nstk-pricing-grid .nstk-pricing-card:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
  .nstk-journal-grid { grid-template-columns: 1fr; }
  .nstk-journal-featured { grid-template-columns: 1fr; }
  .nstk-security-grid { grid-template-columns: 1fr; }
  .nstk-feature-detail { grid-template-columns: 1fr; }
  .nstk-feature-detail--flip { direction: ltr; }
  .nstk-cta-two-col { grid-template-columns: 1fr; }
  .nstk-contact-layout { grid-template-columns: 1fr; }
  .nstk-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .nstk-footer__bottom { flex-direction: column; align-items: flex-start; }
  .nstk-cta-band__actions { flex-direction: column; align-items: center; }

  .nstk-equity-mock__stats { grid-template-columns: 1fr 1fr; }

  .nstk-auth-card { padding: 1.75rem 1.25rem; }
}

@media (max-width: 480px) {
  .nstk-equity-mock__stats { grid-template-columns: 1fr; }
  .nstk-article-hero__cover { max-width: 100%; }
}

/* ── 2c fixes: contrast + orphan CSS ───────────────────── */

/* CONTRAST-1: check-items and body text inside dark section are near-invisible on #131020
   Override to use the light (on-dark) text tokens */
.nstk-section--dark .nstk-feature-detail__check-item {
  color: var(--nstk-text-primary-dark);
}
.nstk-section--dark .nstk-feature-detail__check-item i {
  color: var(--nstk-accent-on-dark);
}
.nstk-section--dark .nstk-feature-detail__text p {
  color: var(--nstk-text-secondary-dark);
}
.nstk-section--elevated .nstk-feature-detail__text p {
  color: var(--nstk-text-secondary-dark);
}

/* CONTRAST-2: compliance mock tags used #6B6880 (muted-light) on off-white bg = 4.35, below 4.5
   Use body-light (#3D3B4A) instead for adequate contrast */
.nstk-compliance-mock__tag {
  color: var(--nstk-text-body-light);
}

/* ORPHAN-1: nstk-feature-detail__visual — visual anchor panel in feature-detail rows */
.nstk-feature-detail__visual {
  flex: 1;
  min-width: 280px;
  max-width: 520px;
  display: flex;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .nstk-feature-detail__visual {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* ORPHAN-2: nstk-subhero__actions — button row in product page subhero */
.nstk-subhero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
