/* ============================================================
   NeuroAdaptive Leadership — site styles
   Brand v1.0 — navy / gold / Manrope
   ============================================================ */

:root {
  --navy-deep: #0A1628;
  --navy-mid: #162744;
  --navy-light: #1E3A5F;
  --gold: #F5A623;
  --gold-light: #FBBF45;
  --gold-dark: #C97D0E;
  --gold-text-on-light: #7A4D07;
  --white: #FFFFFF;
  --off-white: #F4F7FB;
  --slate-dark: #334155;
  --slate: #94A3B8;
  --border: #E2E8F0;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  --shadow-card: 0 8px 32px -12px rgba(10, 22, 40, 0.18), 0 2px 6px -2px rgba(10, 22, 40, 0.06);
  --shadow-card-dark: 0 24px 64px -24px rgba(0, 0, 0, 0.6), 0 6px 16px -6px rgba(0, 0, 0, 0.4);

  --container: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate-dark);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--navy-deep); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  color: var(--navy-deep);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}
.h-display {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -0.015em; }
h3 { font-size: 24px; line-height: 1.25; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.35; }

.lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--slate-dark);
  max-width: 60ch;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.on-dark .eyebrow { color: var(--gold); }
.on-dark .eyebrow::before { background: var(--gold); }

.gold-N, .gold-A { color: var(--gold); }

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .container { padding: 0 22px; }
}

.on-dark {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark .lead { color: rgba(255, 255, 255, 0.78); }

/* Neural dot grid texture */
.dot-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 166, 35, 0.18) 1px, transparent 1.4px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ============================================================
   Buttons — polished with glow on hover
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    filter 200ms ease;
  position: relative;
  isolation: isolate;
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn .arrow {
  display: inline-block;
  transition: transform 250ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Primary — Gold filled, glow on hover */
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
  box-shadow:
    0 6px 18px -8px rgba(245, 166, 35, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 0 24px rgba(245, 166, 35, 0.55),
    0 0 60px rgba(245, 166, 35, 0.35),
    0 16px 40px -12px rgba(245, 166, 35, 0.6);
  filter: saturate(1.05);
}
.btn-primary:active { transform: translateY(0); }

/* Secondary — Navy outline on light */
.btn-secondary {
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--navy-deep);
}
.btn-secondary:hover {
  background: var(--navy-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow:
    0 0 24px rgba(10, 22, 40, 0.25),
    0 16px 40px -16px rgba(10, 22, 40, 0.45);
}

/* Outline on dark */
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow:
    0 0 22px rgba(245, 166, 35, 0.35),
    0 0 60px rgba(245, 166, 35, 0.2);
}

/* Ghost (text link with arrow) */
.btn-ghost {
  background: transparent;
  color: var(--gold-dark);
  border: none;
  padding: 8px 0;
  border-radius: 0;
  position: relative;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  transition: opacity 200ms ease, transform 250ms ease;
}
.btn-ghost:hover { color: var(--gold-dark); transform: none; }
.btn-ghost:hover::after { opacity: 1; transform: translateY(2px); }
.on-dark .btn-ghost { color: var(--gold); }

/* Sizes */
.btn-lg { padding: 16px 34px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
  position: relative;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--gold);
  filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.4));
}
.nav-brand .mark svg {
  width: 28px;
  height: 28px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 8px; }

/* Hamburger button */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  border-radius: var(--r-md);
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1024px) {
  .nav { height: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: var(--r-md);
  }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { display: flex; width: 100%; justify-content: center; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 32px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.site-footer h5 {
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255, 255, 255, 0.7); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   Hero — home page
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 50%, rgba(245, 166, 35, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 60% at 20% 90%, rgba(245, 166, 35, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  max-width: 58ch;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}
.hero-meta strong { color: var(--gold); font-weight: 700; }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.35), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero-art img.book {
  position: relative;
  z-index: 2;
  max-height: 640px;
  width: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(245, 166, 35, 0.18));
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-art:hover img.book { transform: translateY(-6px); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { aspect-ratio: auto; }
  .hero-art img.book { max-height: 460px; }
  .hero { padding: 64px 0 80px; }
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--r-pill);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-badge .chip {
  display: inline-flex;
  padding: 2px 10px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   Section: Pressure / What you'll learn
   ============================================================ */
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  transition: transform 250ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(245, 166, 35, 0.5);
}
.pillar .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--navy-deep);
  color: var(--gold);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
}
.pillar h4 { color: var(--navy-deep); font-size: 20px; margin-bottom: 10px; }
.pillar p { margin: 0; color: var(--slate-dark); font-size: 15px; line-height: 1.7; }

@media (max-width: 860px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Section: Author / About Jason
   ============================================================ */
.author-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.author-photo {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-card-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
}
.author-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 1;
}
.author-photo .photo-placeholder {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.author-photo .photo-placeholder span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}
.author-photo::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.25), transparent 70%);
  pointer-events: none;
}

.creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.cred {
  padding: 16px 18px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.cred .stat {
  font-weight: 800;
  font-size: 24px;
  color: var(--navy-deep);
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}
.cred .label {
  color: var(--slate-dark);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .author-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   Section: Resources teaser
   ============================================================ */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 250ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(245, 166, 35, 0.5);
}
.resource-cover {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: var(--white);
}
.resource-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(245, 166, 35, 0.3), transparent 60%),
    repeating-linear-gradient(90deg, rgba(245, 166, 35, 0.08) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(245, 166, 35, 0.08) 0 1px, transparent 1px 60px);
  pointer-events: none;
}
.resource-cover .badge {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.resource-cover .type {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.resource-card h4 { color: var(--navy-deep); margin-bottom: 8px; }
.resource-card p { color: var(--slate-dark); font-size: 14px; line-height: 1.65; margin: 0 0 20px; flex: 1; }

@media (max-width: 860px) { .resource-cards { grid-template-columns: 1fr; } }

/* ============================================================
   Tools strip (links to NLI / MissionBuilder)
   ============================================================ */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tool-card {
  position: relative;
  padding: 40px;
  border-radius: var(--r-xl);
  background:
    linear-gradient(155deg, var(--navy-mid), var(--navy-deep));
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.tool-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.25), transparent 60%);
  pointer-events: none;
  transition: transform 500ms ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: var(--shadow-card-dark);
}
.tool-card:hover::after { transform: scale(1.2) translate(-30px, 30px); }
.tool-card .eyebrow { color: var(--gold); }
.tool-card h3 { color: var(--white); font-size: 28px; margin: 16px 0 12px; }
.tool-card p { color: rgba(255, 255, 255, 0.75); font-size: 15px; }
.tool-card .btn { margin-top: 24px; }

@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Page hero (subpages)
   ============================================================ */
.page-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 90% 30%, rgba(245, 166, 35, 0.18), transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.02em;
  margin: 16px 0 18px;
  position: relative;
  z-index: 2;
}
.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  z-index: 2;
  font-size: 19px;
}
.page-hero .eyebrow {
  position: relative;
  z-index: 2;
  color: var(--gold);
}
.page-hero .eyebrow::before { background: var(--gold); }

/* ============================================================
   Resources page — opt-in form & resource list
   ============================================================ */
.optin {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin-top: -64px;
  position: relative;
  z-index: 4;
}
.optin h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.optin .lead { font-size: 16px; margin-bottom: 24px; }

.optin-form {
  display: grid;
  gap: 14px;
}
.optin-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.optin-form input[type="text"],
.optin-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--navy-deep);
  background: var(--off-white);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.optin-form input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
}
.optin-form .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--slate-dark);
  line-height: 1.5;
  margin-top: 4px;
}
.optin-form .checkbox input { margin-top: 3px; accent-color: var(--gold-dark); }
.optin-form button { margin-top: 8px; }
.optin-fineprint {
  font-size: 12px;
  color: var(--slate);
  margin-top: 16px;
}

.optin-success {
  display: none;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 48px;
  text-align: center;
}
.optin-success.show { display: block; }
.optin-success h3 { color: var(--white); }
.optin-success .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 0 32px rgba(245, 166, 35, 0.5);
}

.lock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lock-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.lock-item .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--navy-deep);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.lock-item h5 { color: var(--navy-deep); margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.lock-item p { margin: 0; font-size: 13px; color: var(--slate-dark); line-height: 1.5; }

@media (max-width: 920px) {
  .optin { grid-template-columns: 1fr; padding: 32px; }
  .optin-form .row { grid-template-columns: 1fr; }
}

/* Resource detail list */
.detail-list { display: grid; gap: 24px; margin-top: 56px; }
.detail-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  transition: border-color 250ms ease, box-shadow 300ms ease;
}
.detail-row:hover {
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: var(--shadow-card);
}
.detail-row .cover {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.detail-row .cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 166, 35, 0.35), transparent 60%);
  pointer-events: none;
}
.detail-row .cover h4 {
  color: var(--white);
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
  position: relative;
  z-index: 2;
}
.detail-row .cover .badge {
  position: relative;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.detail-row .body h3 { font-size: 22px; margin-bottom: 10px; }
.detail-row ul { padding-left: 18px; color: var(--slate-dark); font-size: 14px; line-height: 1.7; }
.detail-row ul li { margin-bottom: 4px; }
.detail-row .meta {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--slate);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (max-width: 800px) {
  .detail-row { grid-template-columns: 1fr; }
  .detail-row .cover { aspect-ratio: 16 / 9; }
}

/* ============================================================
   NLI page assessment styles
   ============================================================ */
.assessment-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.gauge {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.gauge svg { width: 100%; height: 100%; }
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.gauge-center .num {
  font-size: 72px;
  font-weight: 800;
  color: var(--navy-deep);
  line-height: 1;
  letter-spacing: -0.03em;
}
.gauge-center .lbl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 8px;
}
.gauge-center .sub {
  font-size: 13px;
  color: var(--slate-dark);
  margin-top: 12px;
  max-width: 22ch;
}

.dim-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.dim {
  display: grid;
  grid-template-columns: 28px 1fr 56px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.dim .n {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 12px;
}
.dim .label { font-weight: 600; color: var(--navy-deep); font-size: 14px; }
.dim .score { font-weight: 800; color: var(--navy-deep); text-align: right; font-size: 16px; }
.dim .bar {
  grid-column: 2 / 4;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.dim .bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 2px;
}

@media (max-width: 860px) {
  .assessment-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MissionBuilder page
   ============================================================ */
.mb-preview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 8px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mb-window {
  background: var(--off-white);
  border-radius: 12px;
  overflow: hidden;
}
.mb-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--slate);
}
.mb-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mb-titlebar .dot:first-child { background: #FF5F57; }
.mb-titlebar .dot:nth-child(2) { background: #FEBC2E; }
.mb-titlebar .dot:nth-child(3) { background: #28C840; }
.mb-titlebar .url {
  margin-left: 12px;
  padding: 4px 12px;
  background: var(--off-white);
  border-radius: var(--r-pill);
}
.mb-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 420px;
}
.mb-side {
  background: var(--navy-deep);
  color: var(--white);
  padding: 32px 28px;
}
.mb-side h4 { color: var(--white); margin-bottom: 4px; font-size: 16px; }
.mb-side p { color: rgba(255,255,255,0.65); font-size: 13px; margin: 0; }
.mb-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.mb-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  border-left: 2px solid transparent;
  transition: background 150ms ease;
}
.mb-step .idx {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  width: 20px;
  color: var(--slate);
}
.mb-step.active {
  background: rgba(245, 166, 35, 0.1);
  border-left-color: var(--gold);
  color: var(--white);
}
.mb-step.active .idx { color: var(--gold); }
.mb-step.done .idx { color: var(--gold); }
.mb-step.done::after {
  content: "✓";
  margin-left: auto;
  color: var(--gold);
}

.mb-main { padding: 36px 36px 32px; }
.mb-main .eyebrow { color: var(--gold-dark); }
.mb-main h3 { font-size: 26px; line-height: 1.15; margin: 12px 0 8px; }
.mb-main .helper { font-size: 13px; color: var(--slate); margin-bottom: 18px; }
.mb-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
}
.mb-card.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.06), rgba(245, 166, 35, 0));
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
}
.mb-card h5 { margin: 0 0 4px; color: var(--navy-deep); font-size: 15px; font-weight: 700; }
.mb-card p { margin: 0; font-size: 13px; color: var(--slate-dark); }
.mb-card .check {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
}
.mb-card.selected .check {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
}
.mb-actions { display: flex; justify-content: space-between; margin-top: 22px; }
.mb-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 18px;
}
.mb-progress i {
  display: block;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}

@media (max-width: 860px) {
  .mb-body { grid-template-columns: 1fr; }
}

/* ============================================================
   Misc / CTA bands
   ============================================================ */
.cta-band {
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(245, 166, 35, 0.18), transparent 60%),
    var(--navy-deep);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); max-width: 22ch; margin: 0 auto 16px; }
.cta-band .lead { color: rgba(255,255,255,0.78); margin: 0 auto 32px; }

/* Feature list (used on NLI / MB) */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.feature-list .feat {
  display: flex; gap: 14px;
  padding: 18px;
  background: var(--off-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.feature-list .feat .ic {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--navy-deep);
  color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.feature-list .feat h5 { margin: 0 0 2px; font-size: 14px; color: var(--navy-deep); }
.feature-list .feat p { margin: 0; font-size: 13px; color: var(--slate-dark); line-height: 1.55; }
@media (max-width: 720px) { .feature-list { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
