/* ============================================================
   AI FAMILY ROOM — style.css
   EdJustice Collective · Build Systems. Promote Justice.
   EJC Brand System + Gamification Components
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

/* --- CSS Variables (Locked EJC System) --- */
:root {
  /* Brand Colors */
  --teal:       #1ABCB0;
  --teal-dark:  #148F86;
  --teal-deep:  #0D6B64;
  --teal-pale:  #E0F7F5;
  --dark:       #0B1215;
  --dark-mid:   #141E23;
  --dark-card:  #111A1E;
  --text:       #1A2A30;
  --mid:        #4A5C64;
  --light:      #8A9BA3;
  --warm:       #E8EAEA;
  --off:        #F9FAFB;
  --white:      #ffffff;
  --orange:     #F28C38;
  --orange-pal: #FEF3E8;
  --orange-dk:  #D4721E;
  --green:      #34C78A;
  --green-pal:  #E8F9F0;
  --green-dk:   #1FA66E;
  --purple:     #9B8AFA;
  --purple-pal: #F0EEFF;
  --purple-dk:  #6D5CE6;

  /* Gamification Colors */
  --xp-gold:    #F5C842;
  --badge-lock: #C4CDD1;
  --spark:      #1ABCB0;
  --glow:       #F28C38;
  --lit:        #9B8AFA;

  /* Typography */
  --font: 'Poppins', sans-serif;

  /* Spacing */
  --section-pad: 80px 32px;
  --section-pad-sm: 56px 20px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--dark);
  border-bottom: 1px solid rgba(26,188,176,.12);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 9px;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.06);
}

.nav-links a.active { color: var(--teal); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--dark);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* XP Badge in Nav */
.nav-xp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245,200,66,.12);
  border: 1px solid rgba(245,200,66,.25);
  color: var(--xp-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}

.nav-xp:hover { background: rgba(245,200,66,.2); }
.nav-xp .xp-val { font-weight: 900; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--dark-mid);
  border-bottom: 1px solid rgba(26,188,176,.12);
  padding: 20px 24px 28px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

.nav-drawer a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-drawer .nav-cta { margin-top: 12px; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--dark);
  padding: 88px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,188,176,.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,188,176,.2), transparent);
}

.eyebrow {
  display: inline-block;
  background: rgba(26,188,176,.1);
  border: 1px solid rgba(26,188,176,.25);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  max-width: 820px;
  margin: 0 auto 22px;
  letter-spacing: -.03em;
}

.hero h1 .accent { color: var(--teal); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.85;
  font-weight: 300;
}

.hero-sub strong {
  color: var(--white);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--dark);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  padding: 17px 34px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 17px 34px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.18);
  text-decoration: none;
  transition: border-color .2s, transform .15s;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--dark);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  border: none;
  cursor: pointer;
}

.btn-orange:hover {
  opacity: .9;
  transform: translateY(-2px);
}

.btn-teal-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--teal);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
  text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
  cursor: pointer;
}

.btn-teal-outline:hover {
  background: var(--teal);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: 920px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  display: block;
}

.section-h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 14px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.section-h2.white {
  color: var(--white);
}

.section-h2 .accent { color: var(--teal); }

.section-body {
  font-size: 15px;
  color: var(--mid);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.section-body.white {
  color: rgba(255,255,255,.6);
}

.text-center { text-align: center; }

/* ============================================================
   COMMUNITY STAT BAR
   ============================================================ */
.stat-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(26,188,176,.08);
  border: 1px solid rgba(26,188,176,.2);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
}

.stat-bar .stat-num {
  color: var(--teal);
  font-weight: 900;
  font-size: 14px;
}

.stat-bar .stat-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

/* ============================================================
   PATH SELECTOR (3 CARDS)
   ============================================================ */
.path-section {
  background: var(--white);
  padding: var(--section-pad);
  text-align: center;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.path-card {
  background: var(--white);
  border: 2px solid var(--warm);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.path-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,188,176,.1);
}

.path-card.featured {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.path-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 14px;
}

.path-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.path-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.path-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   OUTCOMES SECTION (Dark bg pattern cards)
   ============================================================ */
.outcomes-section {
  background: var(--dark);
  padding: var(--section-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.outcomes-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(26,188,176,.04) 0%, transparent 70%);
  pointer-events: none;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.pattern-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
  transition: border-color .2s, background .2s, transform .2s;
}

.pattern-card:hover {
  border-color: rgba(26,188,176,.3);
  background: rgba(26,188,176,.05);
  transform: translateY(-2px);
}

.pattern-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.pattern-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.pattern-body {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
}

/* ============================================================
   TOOL CARDS (3-up)
   ============================================================ */
.tools-section {
  background: var(--off);
  padding: var(--section-pad);
  text-align: center;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.tool-card {
  background: var(--white);
  border: 1.5px solid var(--warm);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: left;
  transition: border-color .2s, transform .2s;
}

.tool-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.tool-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.tool-position {
  font-size: 12px;
  color: var(--teal-deep);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 14px;
  display: block;
}

.tool-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 14px;
}

.tool-privacy {
  font-size: 10px;
  color: var(--light);
  background: var(--off);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-bottom: 16px;
  display: block;
  line-height: 1.5;
}

.tool-privacy::before {
  content: '🔒 ';
}

.tool-cost {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cost-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.cost-free {
  background: var(--teal-pale);
  color: var(--teal-deep);
}

.cost-paid {
  background: var(--warm);
  color: var(--mid);
}

/* ============================================================
   SOCIAL PROOF / COMMUNITY BAND
   ============================================================ */
.proof-section {
  background: var(--dark-mid);
  border-top: 1px solid rgba(26,188,176,.1);
  border-bottom: 1px solid rgba(26,188,176,.1);
  padding: 64px 32px;
}

.proof-inner {
  max-width: 740px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.proof-stat {
  text-align: center;
  flex-shrink: 0;
}

.proof-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  display: block;
}

.proof-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
}

.proof-body {
  border-left: 3px solid var(--teal);
  padding-left: 28px;
}

.proof-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  display: block;
}

.proof-quote {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  font-style: italic;
}

.proof-source {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  margin-top: 10px;
  font-weight: 600;
  display: block;
}

/* ============================================================
   CTA SECTION (closing dark band)
   ============================================================ */
.cta-section {
  background: var(--dark);
  padding: 88px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,188,176,.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  max-width: 640px;
  margin: 0 auto 18px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.cta-section h2 .accent { color: var(--teal); }

.cta-section p {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-note {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  letter-spacing: .06em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 32px 32px;
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  display: block;
}

.footer-brand .footer-tagline {
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
  text-decoration: none;
}

.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,.25);
}

.footer-privacy {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  max-width: 480px;
  line-height: 1.5;
  text-align: right;
}

.footer-privacy a {
  color: var(--teal);
}

/* ============================================================
   GAMIFICATION — MISSION CARDS
   ============================================================ */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.mission-card {
  background: var(--white);
  border: 1.5px solid var(--warm);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--warm);
  border-radius: 4px 0 0 4px;
}

/* Track color accents */
.mission-card.track-foundations::before { background: var(--spark); }
.mission-card.track-glow::before       { background: var(--glow); }
.mission-card.track-milspouse::before  { background: var(--lit); }

.mission-card.available:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26,188,176,.1);
}

.mission-card.complete {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.mission-card.complete::before { background: var(--teal); }

.mission-card.locked {
  opacity: .55;
  cursor: not-allowed;
}

.mission-card.locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.4);
  border-radius: var(--radius);
}

.mission-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-available { color: var(--teal); }
.status-complete  { color: var(--green-dk); }
.status-locked    { color: var(--light); }

.mission-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--light);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mission-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.mission-desc {
  font-size: 11px;
  color: var(--mid);
  line-height: 1.6;
  flex: 1;
}

.mission-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.mission-tool {
  font-size: 10px;
  font-weight: 600;
  color: var(--mid);
  background: var(--off);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}

.mission-xp {
  font-size: 10px;
  font-weight: 700;
  color: var(--xp-gold);
  background: rgba(245,200,66,.1);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}

.mission-badge-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--purple-dk);
  background: var(--purple-pal);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}

/* ============================================================
   GAMIFICATION — BADGE CABINET
   ============================================================ */
.badge-section {
  background: var(--dark);
  padding: var(--section-pad);
  text-align: center;
}

.badge-cabinet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 680px;
  margin: 40px auto 0;
}

.badge-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  transition: border-color .2s, background .2s;
}

.badge-slot.earned {
  border-color: rgba(26,188,176,.3);
  background: rgba(26,188,176,.06);
}

.badge-slot.earned:hover {
  border-color: rgba(26,188,176,.6);
  background: rgba(26,188,176,.1);
}

.badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  position: relative;
}

.badge-slot.earned .badge-icon {
  background: rgba(26,188,176,.15);
  box-shadow: 0 0 20px rgba(26,188,176,.2);
}

.badge-slot.locked .badge-icon {
  background: rgba(255,255,255,.05);
  filter: grayscale(1);
  opacity: .4;
}

.badge-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.3;
}

.badge-slot.locked .badge-name {
  color: rgba(255,255,255,.3);
}

.badge-hint {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  text-align: center;
  line-height: 1.5;
}

.badge-track-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.track-label-foundations { color: var(--teal); background: rgba(26,188,176,.1); }
.track-label-glow        { color: var(--orange); background: rgba(242,140,56,.1); }
.track-label-milspouse   { color: var(--purple); background: rgba(155,138,250,.1); }

/* ============================================================
   GAMIFICATION — XP BAR
   ============================================================ */
.xp-bar-section {
  background: var(--dark-mid);
  padding: 32px;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.xp-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.xp-level-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
}

.xp-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--xp-gold);
}

.xp-track {
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
}

.xp-fill {
  background: linear-gradient(90deg, var(--teal), var(--xp-gold));
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width .8s cubic-bezier(.34,1.56,.64,1);
}

.xp-next {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  margin-top: 8px;
  text-align: right;
  display: block;
}

/* ============================================================
   GAMIFICATION — BADGE REVEAL MODAL
   ============================================================ */
.badge-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,18,21,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.badge-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.badge-modal {
  background: var(--dark-mid);
  border: 2px solid rgba(26,188,176,.4);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  transform: scale(.8);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}

.badge-modal-overlay.show .badge-modal {
  transform: scale(1);
}

.badge-modal-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,188,176,.15) 0%, transparent 65%);
  pointer-events: none;
}

.badge-modal-icon {
  font-size: 4rem;
  display: block;
  margin: 0 auto 20px;
  animation: badgePop .6s cubic-bezier(.34,1.56,.64,1) .1s both;
}

@keyframes badgePop {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.badge-modal-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}

.badge-modal-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.badge-modal-desc {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 28px;
}

.badge-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.badge-modal-dismiss {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  transition: color .2s;
}

.badge-modal-dismiss:hover { color: rgba(255,255,255,.6); }

/* ============================================================
   MISSION PAGE — PROMPT CARD
   ============================================================ */
.prompt-card {
  background: var(--teal-pale);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 28px 28px 20px;
  margin: 32px 0;
  position: relative;
}

.prompt-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
  display: block;
}

.prompt-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 18px;
}

.prompt-text em {
  font-style: normal;
  font-weight: 700;
  color: var(--teal-deep);
}

.prompt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--dark);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.copy-btn:hover { background: var(--teal-dark); }

.copy-btn.copied {
  background: var(--green-dk);
  color: var(--white);
}

.open-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--teal-deep);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--teal);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.open-tool-btn:hover {
  background: var(--teal);
  color: var(--dark);
}

/* ============================================================
   MISSION PAGE — WHAT HAPPENED BOX
   ============================================================ */
.insight-box {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 28px 28px;
  margin: 32px 0;
}

.insight-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  display: block;
}

.insight-text {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
}

.insight-text strong {
  color: var(--white);
}

/* ============================================================
   MISSION COMPLETE SECTION
   ============================================================ */
.mission-complete-section {
  background: var(--teal);
  padding: 56px 32px;
  text-align: center;
}

.mission-complete-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
}

.mission-complete-section p {
  font-size: 14px;
  color: rgba(11,18,21,.7);
  margin-bottom: 28px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.complete-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--teal);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  padding: 18px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.complete-btn:hover {
  background: var(--dark-mid);
  transform: translateY(-2px);
}

.complete-btn.done {
  background: var(--green-dk);
  color: var(--white);
  pointer-events: none;
}

/* ============================================================
   MIL-SPOUSE LANES
   ============================================================ */
.milspouse-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0f1f28 100%);
  padding: 88px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.milspouse-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,138,250,.07) 0%, transparent 65%);
  pointer-events: none;
}

.lane-section {
  padding: 72px 32px;
  border-bottom: 1px solid var(--warm);
}

.lane-section:nth-child(even) {
  background: var(--off);
}

.lane-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.lane-left h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.lane-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.lane-problem {
  font-size: 13px;
  color: var(--mid);
  font-style: italic;
  margin-bottom: 14px;
  border-left: 3px solid var(--warm);
  padding-left: 14px;
  line-height: 1.65;
}

.lane-uses {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.lane-uses li {
  font-size: 12px;
  color: var(--mid);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.lane-uses li::before {
  content: '→';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.lane-badge-note {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-dk);
  background: var(--purple-pal);
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   START PAGE — 60-SECOND WIN
   ============================================================ */
.win-section {
  background: var(--white);
  padding: 80px 32px;
}

.win-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.win-step {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-pale);
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.win-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.win-sub {
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* After-action box */
.after-action {
  background: var(--dark-mid);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 24px;
  text-align: left;
}

.after-action-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}

.after-action p {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
}

.after-action strong {
  color: var(--white);
}

/* ============================================================
   CONCEPT CARDS (3-col explainer)
   ============================================================ */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.concept-card {
  border: 1.5px solid var(--warm);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.concept-card.positive { border-color: var(--teal); background: var(--teal-pale); }
.concept-card.caution  { border-color: var(--orange); background: var(--orange-pal); }
.concept-card.neutral  { border-color: var(--warm); background: var(--off); }

.concept-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }

.concept-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.concept-body {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.65;
}

/* ============================================================
   DO / PAUSE / DON'T
   ============================================================ */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.rules-col {
  border-radius: var(--radius);
  padding: 24px 20px;
}

.rules-col.do     { background: var(--teal-pale); border: 2px solid var(--teal); }
.rules-col.pause  { background: var(--orange-pal); border: 2px solid var(--orange); }
.rules-col.donot  { background: #fff3f3; border: 2px solid #F28B82; }

.rules-col-title {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rules-col.do .rules-col-title     { color: var(--teal-deep); }
.rules-col.pause .rules-col-title  { color: var(--orange-dk); }
.rules-col.donot .rules-col-title  { color: #B83232; }

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-list li {
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}

/* ============================================================
   JOIN PAGE — TALLY EMBED WRAPPER
   ============================================================ */
.join-section {
  background: var(--off);
  padding: var(--section-pad);
}

.join-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.tally-wrapper {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--warm);
  background: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .path-grid,
  .tools-grid,
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-cabinet { grid-template-columns: repeat(3, 1fr); }
  .lane-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --section-pad: 56px 20px; }

  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 64px 20px 56px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a, .hero-ctas button { text-align: center; justify-content: center; }

  .path-grid,
  .tools-grid,
  .concept-grid,
  .rules-grid,
  .pattern-grid { grid-template-columns: 1fr; }

  .mission-grid { grid-template-columns: 1fr; }
  .badge-cabinet { grid-template-columns: repeat(2, 1fr); }

  .proof-inner { grid-template-columns: 1fr; gap: 24px; }
  .proof-stat { text-align: left; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .footer-privacy { text-align: left; }

  .lane-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS & TRANSITIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.animate-up {
  animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both;
}

.animate-up-2 { animation-delay: .1s; }
.animate-up-3 { animation-delay: .2s; }
.animate-up-4 { animation-delay: .3s; }

/* Skeleton loader for dynamic content */
.skeleton {
  background: linear-gradient(90deg, var(--warm) 25%, var(--off) 50%, var(--warm) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   PAGE-TEMPLATE CLASS-NAME ALIASES
   Pages use shorter class names than the original CSS targets.
   These aliases keep the same visual rules without touching the
   page HTML. Anything below this block is purely additive.
   ============================================================ */

/* Nav container (HTML: <nav class="nav">) */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Burger button (HTML: <button class="nav-burger">) */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s;
}

/* Footer container (HTML: <footer class="footer">) */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 32px 32px;
}

/* Footer grid (HTML: <div class="footer-grid">) */
.footer-grid {
  max-width: 920px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

/* Footer brand column (HTML: first <div> inside .footer-grid) */
.footer-grid > div:first-child .footer-logo,
.footer .footer-logo {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  display: block;
}
.footer .footer-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}
.footer .footer-about {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  max-width: 260px;
}

/* White-on-dark heading + body aliases (HTML uses .white-text and .white) */
.h2.white-text,
h2.white-text,
.h2.white,
h2.white {
  color: var(--white);
}

.body-text.white,
p.white,
.white-body {
  color: rgba(255,255,255,.7);
}

/* Softer top nav — active link is teal text only (no pill background) */
.nav-links a.active {
  background: transparent;
  color: var(--teal);
}
.nav-links a.active:hover {
  background: rgba(26,188,176,.08);
}

/* Outlined Join CTA — less weight than the solid teal fill */
.nav-cta {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.nav-cta:hover {
  background: var(--teal);
  color: var(--dark);
}

/* Responsive — match the original breakpoints */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { padding: 12px 20px; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
