/* ============================================
   College of Knowledge Toolkit
   ============================================ */

:root {
  --yellow: #feb52c;
  --yellow-hover: #e9a526;
  --yellow-soft: #fef7e6;
  --yellow-glow: rgba(254, 181, 44, 0.15);
  --pink: #E84B7A;
  --pink-hover: #d43d6a;
  --pink-soft: #fce8ee;
  --pink-glow: rgba(232, 75, 122, 0.15);
  --gray-900: #101828;
  --gray-800: #1D2939;
  --gray-700: #344054;
  --gray-600: #475467;
  --gray-500: #667085;
  --gray-400: #98a2b3;
  --gray-300: #d0d5dd;
  --gray-200: #eaecf0;
  --gray-100: #f2f4f7;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --success: #12b76a;
  --success-soft: #ecfdf3;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sidebar-w: 260px;
  --content-max: 780px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--gray-600); background: var(--gray-50); height: 100%; line-height: 1.6; font-size: 16px; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input { font-family: inherit; }
ul, ol { list-style: none; }
.hidden { display: none !important; }

/* ============================================ LOGIN ============================================ */
#login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--gray-50); }
.login-card { width: 100%; max-width: 420px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 48px 40px; text-align: center; position: relative; overflow: hidden; }
.login-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--yellow), var(--pink)); }
.login-logo { width: 160px; margin: 0 auto 32px; display: block; }
.login-card h1 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.login-subtitle { font-size: 15px; color: var(--gray-500); margin-bottom: 32px; line-height: 1.6; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-input { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 15px; color: var(--gray-900); outline: none; transition: border-color 200ms, box-shadow 200ms; }
.login-input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-glow); }
.login-input::placeholder { color: var(--gray-400); }
.login-btn { width: 100%; padding: 12px; background: var(--yellow); color: var(--gray-900); font-weight: 600; font-size: 15px; border-radius: var(--radius-sm); border: 1px solid var(--yellow); transition: all 200ms; }
.login-btn:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.login-error { padding: 12px 16px; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-sm); color: #991b1b; font-size: 14px; line-height: 1.5; margin-top: 12px; }
.login-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.login-success { padding: 20px; background: var(--yellow-soft); border-radius: var(--radius-sm); color: var(--gray-700); font-size: 15px; line-height: 1.6; }
.login-footer { margin-top: 24px; font-size: 13px; color: var(--gray-400); }
.login-footer a { color: var(--yellow); font-weight: 500; }
.login-footer a:hover { text-decoration: underline; }

.dev-banner { position: fixed; bottom: 0; left: 0; right: 0; padding: 8px; background: var(--gray-900); color: var(--yellow); font-size: 12px; font-weight: 600; text-align: center; z-index: 1000; font-family: monospace; cursor: pointer; }

/* ============================================ APP SHELL ============================================ */
#app-view { display: flex; height: 100vh; }

/* --- Sidebar (Light) --- */
.sidebar { width: var(--sidebar-w); height: 100vh; background: var(--white); border-right: 1px solid var(--gray-200); display: flex; flex-direction: column; flex-shrink: 0; position: fixed; left: 0; top: 0; z-index: 50; overflow-y: auto; }
.sidebar-brand { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.sidebar-logo { width: 140px; display: block; }
.sidebar-brand-label { display: block; font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 6px; }
.sidebar-nav { flex: 1; padding: 16px 12px; }
.sidebar-section-label { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.1em; padding: 12px 12px 6px; }

.sidebar-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--gray-500); transition: all 150ms; cursor: pointer; position: relative; }
.sidebar-link:hover { color: var(--gray-900); background: var(--gray-50); }
.sidebar-link.active { color: var(--gray-900); background: var(--yellow-soft); font-weight: 600; }
.sidebar-link.active::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 2px 2px 0; background: var(--yellow); }
.sidebar-link svg:not(.sidebar-progress-circle) { width: 18px; height: 18px; flex-shrink: 0; color: var(--gray-400); }
.sidebar-link.active svg:not(.sidebar-progress-circle) { color: var(--gray-700); }

.sidebar-progress-ring { width: 32px; height: 32px; flex-shrink: 0; margin-left: auto; position: relative; }
.sidebar-progress-circle { width: 32px; height: 32px; transform: rotate(-90deg); }
.sidebar-progress-bg { fill: none; stroke: var(--gray-200); stroke-width: 3; }
.sidebar-progress-fill { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 500ms var(--ease-bounce); }
.sidebar-progress-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--gray-500); font-family: var(--font-heading); }

.sidebar-user { padding: 16px 20px; border-top: 1px solid var(--gray-200); }
.sidebar-user-name { font-size: 14px; font-weight: 500; color: var(--gray-900); margin-bottom: 2px; }
.sidebar-user-email { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
.sidebar-signout { font-size: 12px; color: var(--gray-400); padding: 4px 0; transition: color 150ms; }
.sidebar-signout:hover { color: var(--gray-900); }

/* Mobile */
.mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; height: 56px; background: var(--white); border-bottom: 1px solid var(--gray-200); z-index: 40; align-items: center; padding: 0 16px; gap: 12px; }
.hamburger { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--gray-700); }
.hamburger svg { width: 24px; height: 24px; }
.mobile-brand { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--gray-900); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 45; }
.sidebar-overlay.visible { display: block; }

/* Main */
.main { flex: 1; margin-left: var(--sidebar-w); overflow-y: auto; height: 100vh; background: var(--white); }
.module { display: none; padding: 48px 40px; max-width: calc(var(--content-max) + 80px); margin: 0 auto; }
.module.active { display: block; }

/* ============================================ WELCOME / HOMEPAGE ============================================ */
.welcome-hero { margin-bottom: 48px; }
.welcome-hero h1 { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.welcome-hero p { font-size: 17px; color: var(--gray-500); max-width: 560px; line-height: 1.7; }
.welcome-section-label { font-family: var(--font-heading); font-size: 12px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }

/* Homepage status sections */
.home-status-section { margin-bottom: 32px; }

.welcome-module-card { display: flex; align-items: center; gap: 20px; padding: 24px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; transition: all 200ms; margin-bottom: 12px; }
.welcome-module-card:hover { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-glow); transform: translateY(-2px); }
.welcome-module-icon { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--yellow-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.welcome-module-icon svg { width: 28px; height: 28px; color: var(--yellow); }
.welcome-module-info h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.welcome-module-info p { font-size: 14px; color: var(--gray-500); line-height: 1.5; }
.welcome-module-meta { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--gray-400); font-weight: 500; }

/* Compact card for completed modules */
.welcome-module-card.compact { padding: 16px 24px; gap: 16px; background: var(--gray-50); border-color: var(--gray-200); opacity: 0.8; }
.welcome-module-card.compact:hover { opacity: 1; transform: translateY(-1px); }
.welcome-module-card.compact .welcome-module-icon { width: 40px; height: 40px; }
.welcome-module-card.compact .welcome-module-icon svg { width: 20px; height: 20px; }
.welcome-module-card.compact .welcome-module-info p,
.welcome-module-card.compact .welcome-module-meta { display: none; }
.welcome-module-card.compact .welcome-module-info h3 { font-size: 15px; margin-bottom: 0; color: var(--gray-500); }

/* Homepage card badges */
.home-card-badges { margin-bottom: 4px; }

/* Live badge on homepage cards */
.home-live-badge {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: var(--gray-900);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  width: fit-content;
}
.home-live-badge.visible { display: inline-flex; }

.live-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* Homepage card progress indicator */
.home-card-progress {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
}
.home-card-progress.visible { display: block; }

.welcome-coming-soon { margin-top: 32px; padding: 24px; border: 1px dashed var(--gray-300); border-radius: var(--radius); text-align: center; }
.welcome-coming-soon h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--gray-700); margin-bottom: 4px; }
.welcome-coming-soon p { font-size: 14px; color: var(--gray-400); }

/* ============================================ SPRINT MODULE ============================================ */

/* Sprint branded header */
.sprint-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.sprint-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sprint-icon svg { width: 24px; height: 24px; color: var(--gray-900); }
.sprint-brand-text h1 { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--gray-900); line-height: 1.2; }
.sprint-brand-text .sprint-tag { font-family: var(--font-heading); font-size: 11px; font-weight: 700; color: var(--pink); text-transform: uppercase; letter-spacing: 0.08em; }

.sprint-subtitle { font-size: 16px; color: var(--gray-500); line-height: 1.7; max-width: 600px; margin-bottom: 28px; }

/* ============================================ CONSOLIDATED STATUS BAR ============================================ */
.module-status-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 40px;
  margin: -48px -40px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 10;
}
.module-status-bar.visible { display: flex; }

.status-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.status-bar-right {
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--success-soft);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  white-space: nowrap;
}
.status-live strong {
  color: var(--gray-700);
  font-weight: 600;
}

.status-progress {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
}

.status-bar-track {
  width: 100%;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  flex-basis: 100%;
}

.status-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 500ms var(--ease-bounce);
  width: 0%;
}

/* Pink variant for CoS */
.module-status-bar.pink .status-progress { color: var(--pink); }
.status-badge.pink { background: var(--pink-soft); color: var(--pink); }
.status-dot.pink { background: var(--pink); }
.status-bar-fill.pink { background: var(--pink); }

/* ============================================ PATH TOGGLE (CoS Module 2) ============================================ */
.path-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.path-toggle-btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--gray-50);
  color: var(--gray-500);
  text-align: center;
  transition: all 200ms;
  cursor: pointer;
}
.path-toggle-btn:not(.active):hover { background: var(--gray-100); color: var(--gray-700); }
.path-toggle-btn.active { background: var(--pink); color: var(--white); }
.cos-path-content { display: none; }
.cos-path-content.active { display: block; }

/* CoS prereqs section */
.cos-prereqs-content { padding: 0 18px 16px; }
.cos-prereqs-content .step { border: none; background: transparent; margin-bottom: 4px; }
.cos-prereqs-content .step-header { padding: 10px 0; }

/* ============================================ COMMIT SECTION ============================================ */
.sprint-commit { margin-bottom: 24px; padding: 28px 32px; background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius); text-align: center; }
.sprint-commit h2 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.sprint-commit p { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; }
.commit-btn { display: inline-block; padding: 12px 36px; background: var(--yellow); color: var(--gray-900); font-weight: 700; font-size: 15px; border-radius: var(--radius-sm); border: 1px solid var(--yellow); transition: all 200ms; }
.commit-btn:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================ PRE-COMMIT LOCKED STATE ============================================ */
.module.not-committed .sprint-prereqs,
.module.not-committed .week-tabs,
.module.not-committed .week-content,
.module.not-committed .sprint-celebration {
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
  transition: opacity 400ms var(--ease);
}

/* CoS prereqs note (course link) */
.cos-prereqs-note {
  font-size: 14px;
  color: var(--gray-600);
  padding: 6px 0 10px;
}
.cos-prereqs-note span {
  color: var(--pink);
  font-weight: 600;
}
.cos-prereqs-note a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: underline;
}
.cos-prereqs-note a:hover {
  color: var(--pink-hover);
}

/* ============================================ MARK AS COMPLETE ============================================ */
.mark-complete-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--white);
  color: var(--yellow);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--yellow);
  transition: all 200ms;
  cursor: pointer;
}
.mark-complete-btn:hover {
  background: var(--yellow);
  color: var(--gray-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.complete-msg {
  display: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--success);
  padding: 12px 0;
}
.complete-msg.visible { display: block; }

/* ============================================ PROGRESS (legacy — kept for sidebar) ============================================ */
.sprint-progress { margin-bottom: 20px; padding: 14px 18px; background: var(--gray-50); border-radius: var(--radius-sm); border: 1px solid var(--gray-200); }
.sprint-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sprint-progress-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.sprint-progress-count { font-size: 13px; font-weight: 700; color: var(--yellow); }
.sprint-progress-track { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.sprint-progress-fill { height: 100%; background: var(--yellow); border-radius: 3px; transition: width 500ms var(--ease-bounce); width: 0%; }

/* Before You Start — collapsible */
.sprint-prereqs { margin-bottom: 20px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.sprint-prereqs-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none; }
.prereq-checkbox { width: 22px; height: 22px; border-radius: var(--radius-xs); border: 2px solid var(--gray-300); background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 200ms var(--ease-bounce); cursor: pointer; }
.prereq-checkbox:hover { border-color: var(--yellow); }
.prereq-checkbox svg { width: 13px; height: 13px; stroke-width: 3; color: var(--white); opacity: 0; transform: scale(0); transition: all 200ms var(--ease-bounce); }
.prereq-checkbox.checked { background: var(--yellow); border-color: var(--yellow); }
.prereq-checkbox.checked svg { opacity: 1; transform: scale(1); }
.sprint-prereqs-header h3 { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--gray-900); flex: 1; }
.sprint-prereqs-header .prereq-chevron { width: 18px; height: 18px; color: var(--gray-400); transition: transform 300ms var(--ease); flex-shrink: 0; }
.sprint-prereqs.collapsed .prereq-chevron { transform: rotate(-90deg); }
.sprint-prereqs-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 300ms var(--ease); }
.sprint-prereqs.collapsed .sprint-prereqs-body { grid-template-rows: 0fr; }
.sprint-prereqs-body-inner { overflow: hidden; }
.sprint-prereqs-content { padding: 0 18px 16px 52px; }
.sprint-prereqs-content ul { display: flex; flex-direction: column; gap: 6px; }
.sprint-prereqs-content li { font-size: 14px; color: var(--gray-600); padding-left: 20px; position: relative; }
.sprint-prereqs-content li::before { content: '\2192'; position: absolute; left: 0; color: var(--yellow); font-weight: 600; }
.sprint-prereqs.done .sprint-prereqs-header h3 { color: var(--gray-400); text-decoration: line-through; text-decoration-color: var(--gray-300); }

/* Week Tabs */
.week-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.week-tab { flex: 1; padding: 14px 16px; text-align: center; color: var(--gray-500); border-bottom: 3px solid transparent; transition: all 200ms; margin-bottom: -1px; }
.week-tab:hover { color: var(--gray-700); }
.week-tab.active { color: var(--gray-900); border-bottom-color: var(--yellow); }
.week-tab-number { display: block; font-family: var(--font-heading); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pink); margin-bottom: 2px; }
.week-tab-title { display: block; font-size: 14px; font-weight: 500; }
.week-tab.active .week-tab-title { font-weight: 600; }
.week-tab-progress { display: block; font-size: 11px; color: var(--gray-400); margin-top: 4px; font-weight: 600; }
.week-tab.active .week-tab-progress { color: var(--yellow); }

.week-content { display: none; }
.week-content.active { display: block; }
.week-intro { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; padding-left: 2px; line-height: 1.6; }
.week-intro strong { color: var(--gray-700); }

/* ============================================ WEEK CELEBRATIONS ============================================ */
.week-celebration {
  display: none;
  margin: 24px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--yellow-soft), rgba(254, 181, 44, 0.08));
  border: 1px solid rgba(254, 181, 44, 0.3);
  border-radius: var(--radius);
  text-align: center;
  animation: fadeIn 500ms var(--ease);
}
.week-celebration.visible { display: block; }

.week-celebration h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.week-celebration p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.6;
}

.celebration-prompt {
  display: inline-block;
  text-align: left;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
  border: 1px solid var(--gray-200);
  max-width: 500px;
}
.celebration-prompt strong {
  color: var(--gray-700);
}

.week-celebration .circle-cta-btn {
  margin-top: 4px;
}

/* ============================================ STEP ACCORDION ============================================ */
.step { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 8px; background: var(--white); transition: all 250ms; overflow: hidden; }
.step:hover { border-color: var(--gray-300); }
.step.completed { border-color: rgba(254,181,44,0.3); background: linear-gradient(135deg, var(--white) 0%, var(--yellow-soft) 100%); }
.step-header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; user-select: none; }

/* Step checkbox (NO numbers — just a checkbox) */
.step-check {
  width: 24px; height: 24px;
  border-radius: var(--radius-xs);
  border: 2px solid var(--gray-300);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 200ms var(--ease-bounce);
  cursor: pointer;
}
.step-check:hover { border-color: var(--yellow); background: var(--yellow-soft); }
.step-check svg { width: 14px; height: 14px; stroke-width: 3; color: var(--white); opacity: 0; transform: scale(0); transition: all 200ms var(--ease-bounce); }
.step.completed .step-check { background: var(--yellow); border-color: var(--yellow); }
.step.completed .step-check svg { opacity: 1; transform: scale(1); }

.step-title-text { flex: 1; font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--gray-900); transition: color 200ms; }
.step.completed .step-title-text { color: var(--gray-400); text-decoration: line-through; text-decoration-color: var(--gray-300); }

.step-chevron { width: 20px; height: 20px; color: var(--gray-400); flex-shrink: 0; transition: transform 300ms var(--ease); }
.step.expanded .step-chevron { transform: rotate(180deg); }

.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms var(--ease); }
.step.expanded .step-body { grid-template-rows: 1fr; }
.step-body-inner { overflow: hidden; }
.step-content { padding: 0 20px 24px 58px; }
.step-content p { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.step-content p:last-child { margin-bottom: 0; }
.step-content strong { color: var(--gray-700); font-weight: 600; }
.step-content ul, .step-content ol { margin-bottom: 16px; }
.step-content li { font-size: 15px; color: var(--gray-600); line-height: 1.6; padding-left: 20px; position: relative; margin-bottom: 8px; }
.step-content li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-300); }

.step-note { padding: 14px 18px; background: var(--yellow-soft); border-left: 3px solid var(--yellow); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; color: var(--gray-600); margin: 16px 0; line-height: 1.6; }
.step-note strong { color: var(--gray-900); }

.prompt-block { position: relative; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 16px 20px; padding-top: 36px; margin: 16px 0; font-size: 14px; color: var(--gray-600); line-height: 1.7; white-space: pre-wrap; }
.prompt-block-label { position: absolute; top: 12px; left: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); }
.prompt-copy-btn { position: absolute; top: 8px; right: 8px; padding: 4px 10px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xs); font-size: 11px; font-weight: 600; color: var(--gray-500); transition: all 150ms; }
.prompt-copy-btn:hover { border-color: var(--gray-300); color: var(--gray-700); }
.prompt-copy-btn.copied { background: var(--success-soft); border-color: var(--success); color: var(--success); }

/* Outcome Chips */
.outcome-selector { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.outcome-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--gray-200); border-radius: 24px; font-size: 14px; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: all 200ms; user-select: none; }
.outcome-chip:hover { border-color: var(--yellow); color: var(--gray-800); }
.outcome-chip.selected { background: var(--yellow); border-color: var(--yellow); color: var(--gray-900); font-weight: 600; }
.outcome-chip .chip-check { width: 16px; height: 16px; border: 1.5px solid var(--gray-300); border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all 200ms; }
.outcome-chip.selected .chip-check { background: var(--gray-900); border-color: var(--gray-900); }
.outcome-chip .chip-check svg { width: 10px; height: 10px; color: var(--white); opacity: 0; stroke-width: 3; }
.outcome-chip.selected .chip-check svg { opacity: 1; }

/* Capture Quiz */
.capture-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.capture-chip { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--gray-200); border-radius: 24px; font-size: 14px; font-weight: 500; color: var(--gray-600); cursor: pointer; transition: all 200ms; user-select: none; }
.capture-chip:hover { border-color: var(--pink); }
.capture-chip.selected { background: var(--pink-soft); border-color: var(--pink); color: var(--pink); font-weight: 600; }
.capture-recommendations { display: none; }
.capture-recommendations.visible { display: block; }
.capture-rec-item { display: none; padding: 12px 16px; background: var(--gray-50); border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 14px; color: var(--gray-600); line-height: 1.6; border-left: 3px solid var(--pink); animation: slideIn 250ms var(--ease); }
.capture-rec-item.visible { display: block; }
.capture-rec-item strong { color: var(--gray-900); display: block; margin-bottom: 2px; font-size: 13px; }

/* Tool Tabs */
.tool-tabs { margin: 16px 0; }
.tool-tab-buttons { display: flex; border: 1px solid var(--gray-200); border-radius: var(--radius-sm) var(--radius-sm) 0 0; overflow: hidden; border-bottom: none; }
.tool-tab-btn { flex: 1; padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--gray-500); background: var(--gray-50); border-right: 1px solid var(--gray-200); transition: all 150ms; }
.tool-tab-btn:last-child { border-right: none; }
.tool-tab-btn:hover { color: var(--gray-700); background: var(--gray-100); }
.tool-tab-btn.active { color: var(--gray-900); background: var(--white); }
.tool-tab-content { display: none; padding: 20px; border: 1px solid var(--gray-200); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--white); font-size: 14px; color: var(--gray-600); line-height: 1.7; }
.tool-tab-content.active { display: block; }
.tool-tab-content ol { counter-reset: tool-step; }
.tool-tab-content ol li { counter-increment: tool-step; padding-left: 28px; position: relative; margin-bottom: 10px; }
.tool-tab-content ol li::before { content: counter(tool-step); position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--gray-100); font-size: 11px; font-weight: 700; color: var(--gray-500); display: flex; align-items: center; justify-content: center; }
.tool-tab-content code { background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 13px; color: var(--pink); font-weight: 600; }

/* Skill Recommender */
.skill-recommender { margin: 16px 0; }
.skill-rec-label { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 10px; }
.skill-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skill-card { padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); transition: all 200ms; }
.skill-card.recommended { border-color: var(--yellow); background: var(--yellow-soft); box-shadow: 0 0 0 2px var(--yellow-glow); }
.skill-card-name { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.skill-card-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin-bottom: 8px; }
.skill-card-match { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); }
.skill-card.recommended .skill-card-match { color: var(--yellow-hover); }

/* Circle CTA */
.circle-cta { display: none; margin-top: 24px; padding: 24px; background: linear-gradient(135deg, var(--gray-900), var(--gray-800)); border-radius: var(--radius); text-align: center; }
.circle-cta.visible { display: block; }
.circle-cta h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.circle-cta p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.circle-cta-btn { display: inline-block; padding: 10px 24px; background: var(--yellow); color: var(--gray-900); font-weight: 600; font-size: 14px; border-radius: var(--radius-sm); transition: all 200ms; }
.circle-cta-btn:hover { background: var(--yellow-hover); transform: translateY(-1px); }

/* Sprint Celebration (final — all 10 steps) */
.sprint-celebration { display: none; margin: 32px 0; padding: 40px; background: linear-gradient(135deg, var(--yellow), #f5a623); border-radius: var(--radius); text-align: center; }
.sprint-celebration.visible { display: block; animation: fadeIn 500ms var(--ease); }
.sprint-celebration h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.sprint-celebration p { font-size: 16px; color: var(--gray-800); }

/* ============================================ MODULE ACTION BUTTONS ============================================ */
.module-action-btn { font-size: 12px; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 150ms var(--ease); border: 1px solid; }
.mark-done-btn { background: var(--yellow); color: var(--gray-900); border-color: var(--yellow); }
.mark-done-btn:hover { opacity: 0.85; }
.pause-btn { background: transparent; color: var(--gray-500); border-color: var(--gray-300); }
.pause-btn:hover { color: var(--gray-700); border-color: var(--gray-400); }

/* ============================================ ANIMATIONS ============================================ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================ RESPONSIVE ============================================ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 300ms var(--ease); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-overlay.visible { display: block; }
  .mobile-header { display: flex; }
  .main { margin-left: 0; padding-top: 56px; }
  .module { padding: 24px 20px; }
  .step-content { padding: 0 16px 20px 16px; }
  .week-tabs { flex-direction: column; gap: 4px; border-bottom: none; }
  .week-tab { text-align: left; border-bottom: none; border-left: 3px solid transparent; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--gray-50); }
  .week-tab.active { border-left-color: var(--yellow); background: var(--yellow-soft); border-bottom: none; }
  .skill-cards { grid-template-columns: 1fr; }
  .sprint-brand-text h1 { font-size: 22px; }
  .welcome-hero h1 { font-size: 26px; }
  .tool-tab-buttons { flex-direction: column; }
  .tool-tab-btn { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .tool-tab-btn:last-child { border-bottom: none; }
  .sprint-commit { padding: 24px 20px; }
  .sprint-brand { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Status bar mobile */
  .module-status-bar { padding: 10px 20px; margin: -24px -20px 16px; gap: 8px; }
  .status-bar-left { gap: 8px; flex-wrap: wrap; }
  .status-live { font-size: 11px; }

  /* Path toggle mobile */
  .path-toggle { flex-direction: column; }
  .path-toggle-btn { border-bottom: 1px solid var(--gray-200); }
  .path-toggle-btn:last-child { border-bottom: none; }

  /* Celebrations mobile */
  .week-celebration { padding: 20px; }
  .week-celebration h3 { font-size: 18px; }
  .celebration-prompt { max-width: 100%; }

  /* Compact cards mobile */
  .welcome-module-card.compact { padding: 12px 16px; }
}
