/* ============================================================
   ON TRACK — Design System
   Playfair Display (display) + Inter (UI)
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('assets/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('assets/Playfair_Display/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900; font-style: italic; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --cream:   #F3F0EA;
  --black:   #0F1112;
  --gold:    #C9A84C;
  --green:   #1C3A2E;
  --white:   #FFFFFF;
  --muted:   #8A8A7E;
  --border:  rgba(15,17,18,0.09);
  --surface: #ECEAE3;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  28px;

  --nav-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- App Shell ---- */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 60px rgba(0,0,0,0.08);
}

#screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ---- Bottom Nav ---- */
#bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 0 calc(10px + var(--safe-bottom));
  height: var(--nav-h);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}
#bottom-nav.hidden { display: none; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 16px;
  border-radius: 12px;
  transition: color 0.15s;
}
.nav-item.active { color: var(--green); }
.nav-item.active svg { stroke: var(--green); }
.nav-item span { text-transform: uppercase; }

/* ---- Screen wrapper ---- */
.screen {
  min-height: 100%;
  padding-bottom: 24px;
}

/* ---- Typography ---- */
.label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.display-xl {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}
.body-lg { font-size: 16px; line-height: 1.5; }
.body-md { font-size: 14px; line-height: 1.5; color: var(--muted); }
.body-sm { font-size: 12px; line-height: 1.4; color: var(--muted); }
.gold { color: var(--gold); }
.green { color: var(--green); }

/* ---- Page header ---- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}
.page-header-brand {
  display: flex;
  flex-direction: column;
}
.page-header-brand .brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}
.page-header-brand .brand-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-header-actions { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--white);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  transition: background 0.15s;
}
.icon-btn:active { background: var(--border); }

/* ---- Hero area ---- */
.hero { padding: 20px 20px 0; }
.hero .label { margin-bottom: 6px; }
.hero .display-xl { margin-bottom: 6px; }
.hero .subtitle { font-size: 14px; color: var(--muted); }

/* ---- Stat Cards ---- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px 20px 0;
}
.stat-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card .stat-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.stat-card .stat-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--black);
}
.stat-card .stat-value.gold { color: var(--gold); }
.stat-card .stat-value.green { color: var(--green); }
.stat-card .stat-label { font-size: 11px; color: var(--muted); font-weight: 500; }

/* ---- Coaching Card (NEXT UP / dark green) ---- */
.coaching-card {
  margin: 16px 20px 0;
  background: var(--green);
  border-radius: var(--r-lg);
  padding: 20px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.coaching-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.coaching-card .card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.coaching-card .card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
}
.coaching-card .card-body {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-bottom: 16px;
}
.coaching-card .card-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.coaching-card .progress-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}
.coaching-card .progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.coaching-card .progress-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  min-width: 32px;
  text-align: right;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 100px;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.btn-gold:active { opacity: 0.85; }
.btn-gold svg { flex-shrink: 0; }

/* ---- Journey Strip ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 10px;
}
.section-header .label { }
.section-header .view-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.01em;
}
.journey-strip {
  padding: 0 20px;
}
.journey-strip-inner {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.journey-strip-inner::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(18px + 14px);
  right: calc(18px + 14px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.stage-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  flex: 1;
}
.stage-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stage-dot.done {
  background: var(--green);
  color: var(--white);
}
.stage-dot.done svg { stroke: white; }
.stage-dot.active {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}
.stage-dot.locked {
  background: var(--surface);
  color: var(--muted);
}
.stage-name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}
.stage-node.done .stage-name { color: var(--green); }
.stage-node.active .stage-name { color: var(--black); font-weight: 700; }
.stage-status {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-align: center;
}
.stage-node.done .stage-status { color: var(--green); }
.stage-node.active .stage-status { color: var(--gold); font-weight: 600; }

/* ---- Content Cards (2-col) ---- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
}
.content-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}
.content-card:active { transform: scale(0.98); }
.content-card .card-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.content-card .card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.content-card .play-btn {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
}
.content-card .card-meta {
  padding: 10px;
}
.content-card .card-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.content-card .card-title-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--black);
  margin-bottom: 2px;
}
.content-card .card-sub {
  font-size: 10px;
  color: var(--muted);
}

/* ---- Ian Says Card ---- */
.ian-says {
  margin: 0 20px;
  background: var(--green);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
}
.ian-says .photo-area {
  width: 100%;
  height: 160px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.ian-says .photo-area img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.ian-says .photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--green));
}
.ian-says .quote-area {
  padding: 16px 20px 20px;
}
.ian-says .quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  margin-bottom: 12px;
}
.ian-says .more-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  display: flex; align-items: center; gap: 4px;
}

/* ---- Quick Access ---- */
.quick-access {
  padding: 0 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.quick-access::-webkit-scrollbar { display: none; }
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-width: 56px;
}
.quick-btn .qb-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  transition: background 0.15s;
}
.quick-btn:active .qb-icon { background: var(--surface); }
.quick-btn .qb-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

/* ---- Tool List ---- */
.tool-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-row {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.tool-row:active { background: var(--surface); }
.tool-row.locked { opacity: 0.45; cursor: default; }
.tool-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}
.tool-info { flex: 1; min-width: 0; }
.tool-name { font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 2px; }
.tool-desc { font-size: 12px; color: var(--muted); }
.tool-result { text-align: right; flex-shrink: 0; }
.tool-result-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.tool-result-label { font-size: 10px; color: var(--muted); }

/* ---- Affiliate Card ---- */
.affiliate-card {
  margin: 16px 20px 0;
  background: #FBF8EF;
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.affiliate-card:active { border-color: var(--gold); }
.affiliate-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.affiliate-info { flex: 1; min-width: 0; }
.affiliate-label { font-size: 10px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.affiliate-name { font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 1px; }
.affiliate-desc { font-size: 12px; color: var(--muted); }
.affiliate-arrow { color: var(--muted); flex-shrink: 0; }

/* ---- Tool Calculator Modal ---- */
.calc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.calc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}
.calc-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 28px 28px 0 0;
  padding: 24px 24px calc(32px + var(--safe-bottom));
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.calc-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 24px;
}
.calc-sheet h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.calc-sheet .calc-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.field-group { margin-bottom: 16px; }
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
  display: block;
}
.field-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--black);
  outline: none;
  transition: border-color 0.15s;
}
.field-input:focus { border-color: var(--green); }
.field-prefix-wrap {
  position: relative;
}
.field-prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
}
.field-prefix-wrap .field-input { padding-left: 26px; }
.btn-primary {
  width: 100%;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 15px;
  border-radius: 100px;
  margin-top: 8px;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:active { opacity: 0.85; }
.calc-result {
  margin-top: 24px;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
  border: 2px solid var(--green);
}
.calc-result .result-value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.calc-result .result-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.calc-result .result-context {
  font-size: 13px;
  color: var(--black);
  line-height: 1.5;
}
.btn-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}

/* ---- Learn Screen ---- */
.featured-video {
  margin: 16px 20px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--black);
}
.featured-video img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.featured-video .fv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.featured-video .stage-badge {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
}
.featured-video .fv-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 4px;
}
.featured-video .fv-meta { font-size: 12px; color: rgba(255,255,255,0.6); }
.featured-video .play-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
}

.video-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.video-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  background: var(--white);
  border-radius: var(--r-md);
  transition: background 0.15s;
}
.video-row:active { background: var(--surface); }
.video-thumb {
  width: 72px; height: 48px;
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .thumb-play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
}
.video-info { flex: 1; min-width: 0; }
.video-title { font-size: 13px; font-weight: 600; color: var(--black); line-height: 1.35; margin-bottom: 3px; }
.video-meta { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.video-meta .watched { color: var(--green); font-weight: 600; }
.video-meta .in-progress { color: var(--gold); font-weight: 600; }

.assigned-card {
  margin: 0 20px;
  background: var(--green);
  border-radius: var(--r-lg);
  padding: 18px;
  cursor: pointer;
}
.assigned-card .assigned-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.assigned-card .assigned-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 12px;
}
.assigned-card .assigned-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* ---- Journey Screen ---- */
.journey-screen { padding: 24px 0 32px; }
.journey-stages { padding: 0 20px; }
.journey-stage-row {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}
.journey-stage-row:not(:last-child) .stage-line { flex: 1; }
.stage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  flex-shrink: 0;
}
.stage-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
}
.stage-circle.done { background: var(--green); color: var(--white); }
.stage-circle.active {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}
.stage-circle.locked { background: var(--surface); color: var(--muted); }
.stage-line {
  width: 2px;
  background: var(--border);
  flex: 1;
  min-height: 24px;
  margin: 4px 0;
}
.stage-line.done { background: var(--green); }
.stage-content { flex: 1; padding-bottom: 28px; }
.stage-content-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  padding-top: 6px;
}
.stage-content-header .s-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
}
.stage-content-header .s-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.s-status.done { background: rgba(28,58,46,0.1); color: var(--green); }
.s-status.active { background: rgba(201,168,76,0.15); color: #9A6B0A; }
.s-status.locked { background: var(--surface); color: var(--muted); }
.stage-content .s-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.stage-milestones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.milestone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.milestone.done { color: var(--black); }
.milestone .m-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.milestone.done .m-check {
  background: var(--green);
  border-color: var(--green);
}
.milestone.done .m-check svg { display: block; }
.milestone .m-check svg { display: none; }

/* ---- Onboarding ---- */
.onboarding {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}
.onboarding-header {
  padding: 48px 28px 0;
  text-align: center;
}
.onboarding-logo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.onboarding-body {
  flex: 1;
  padding: 0 28px 40px;
  display: flex;
  flex-direction: column;
}
.question-block { flex: 1; }
.question-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.question-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.question-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.option-btn {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.4;
  transition: all 0.15s;
}
.option-btn:active,
.option-btn.selected {
  border-color: var(--green);
  background: rgba(28,58,46,0.04);
  color: var(--green);
  font-weight: 600;
}
.name-input-wrap { margin-bottom: 28px; }
.name-input-wrap input {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--black);
  outline: none;
  transition: border-color 0.15s;
}
.name-input-wrap input:focus { border-color: var(--green); }
.name-input-wrap input::placeholder { color: var(--muted); }
.progress-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}
.progress-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, width 0.2s;
}
.progress-dots span.active {
  background: var(--green);
  width: 20px;
  border-radius: 3px;
}
.progress-dots span.done { background: var(--green); opacity: 0.4; }

/* ---- Util ---- */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
.flex-row { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
