*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

:root {
  --accent: #3300CC;
  --accent-dim: rgba(51, 0, 204, 0.12);
  --accent-glow: rgba(51, 0, 204, 0.4);
  --gold: #D4A843;
  --gold-dim: rgba(212, 168, 67, 0.15);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.15);
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.15);
  --teal: #14b8a6;
  --teal-dim: rgba(20, 184, 166, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

[data-theme="dark"] {
  --bg: #09090b;
  --bg-subtle: #0f0f12;
  --bg-card: #141418;
  --bg-card-hover: #1a1a1f;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.1);
  --nav-bg: rgba(9,9,11,0.85);
  --logo-filter: none;
  --shadow-heavy: rgba(0,0,0,0.5);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #f8f8fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f3f5;
  --text: #09090b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --border: rgba(0,0,0,0.06);
  --border-strong: rgba(0,0,0,0.1);
  --nav-bg: rgba(255,255,255,0.85);
  --logo-filter: brightness(0);
  --shadow-heavy: rgba(0,0,0,0.2);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #09090b; --bg-subtle: #0f0f12; --bg-card: #141418; --bg-card-hover: #1a1a1f;
    --text: #fafafa; --text-secondary: #a1a1aa; --text-muted: #71717a;
    --border: rgba(255,255,255,0.06); --border-strong: rgba(255,255,255,0.1);
    --nav-bg: rgba(9,9,11,0.85); --logo-filter: none; --shadow-heavy: rgba(0,0,0,0.5);
  }
}
@media (prefers-color-scheme: light) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #ffffff; --bg-subtle: #f8f8fa; --bg-card: #ffffff; --bg-card-hover: #f3f3f5;
    --text: #09090b; --text-secondary: #52525b; --text-muted: #a1a1aa;
    --border: rgba(0,0,0,0.06); --border-strong: rgba(0,0,0,0.1);
    --nav-bg: rgba(255,255,255,0.85); --logo-filter: brightness(0); --shadow-heavy: rgba(0,0,0,0.2);
  }
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 22px; width: auto; }
.nav-logo.light-logo { display: none; }
.nav-logo.dark-logo { display: inline; }
[data-theme="light"] .nav-logo.light-logo { display: inline; }
[data-theme="light"] .nav-logo.dark-logo { display: none; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]):not([data-theme="light"]) .nav-logo.light-logo { display: inline; }
  html:not([data-theme="dark"]):not([data-theme="light"]) .nav-logo.dark-logo { display: none; }
}
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  padding: 6px 12px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); text-decoration: none; }
.nav-link.primary {
  background: #3300CC; color: #fff; font-weight: 600;
}
.nav-link.primary:hover { background: #2800A3; }

/* ===== HAMBURGER ===== */
.hamburger {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: 1px solid var(--border-strong); border-radius: 8px;
  cursor: pointer; transition: all 0.2s; position: relative; z-index: 110;
}
.hamburger:hover { background: var(--bg-subtle); }
.hamburger span {
  display: block; width: 18px; height: 2px; background: var(--text);
  border-radius: 1px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(2.5px, 2.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(2.5px, -2.5px); }

.menu-overlay {
  position: fixed; top: 0; right: 0;
  width: fit-content; min-width: 220px; max-width: 280px; height: 100vh;
  background: var(--bg-card); border-left: 1px solid var(--border);
  z-index: 105; padding: 24px 24px 40px;
  transform: translateX(100%); transition: transform 0.3s ease, background 0.3s;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15); overflow-y: auto;
}
.menu-overlay.open { transform: translateX(0); }

.menu-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.3);
  z-index: 104; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }

.menu-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: none; border: none;
  color: var(--text-muted); cursor: pointer; border-radius: 6px;
  transition: color 0.2s, background 0.2s; margin-bottom: 12px;
}
.menu-close:hover { color: var(--text); background: var(--bg-subtle); }
.menu-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.menu-items { display: flex; flex-direction: column; gap: 2px; }
.menu-group-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); padding: 12px 12px 4px;
}
.menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; font-size: 13px; font-weight: 500;
  color: var(--text); text-decoration: none; border-radius: 10px;
  transition: all 0.2s;
}
.menu-item:hover { background: var(--bg-subtle); text-decoration: none; }
.menu-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.menu-item.cta-item {
  background: var(--border-strong); font-weight: 600; margin-bottom: 4px; width: fit-content;
}
.menu-item.cta-item:hover { background: var(--text-muted); color: #fff; }
.menu-item.section-link {
  font-size: 12px; font-weight: 400; padding: 6px 12px; color: var(--text-secondary);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex; align-items: center; gap: 2px;
  padding: 4px; background: var(--bg-subtle);
  border: 1px solid var(--border-strong); border-radius: 8px;
  width: fit-content;
}
.theme-btn {
  width: 30px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 6px; cursor: pointer;
  transition: all 0.2s; color: var(--text-muted);
}
.theme-btn:hover { color: var(--text); }
.theme-btn.active { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.theme-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HUB PAGE ===== */
.hero { text-align: center; padding: 80px 24px 48px; }
.hero h1 { font-size: 36px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 12px; }
.hero p { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

.product-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; max-width: 900px; margin: 0 auto 80px; padding: 0 24px;
  grid-auto-rows: 1fr;
}
.product-grid > a { display: flex; text-decoration: none; color: inherit; }
@media (max-width: 768px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 12px;
  width: 100%;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.product-card-icon svg { width: 22px; height: 22px; stroke-width: 2; fill: none; }
.product-card h3 { font-size: 18px; font-weight: 650; }
.product-card .subtitle { font-size: 13px; color: var(--accent); font-weight: 600; }
.product-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.product-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent); margin-top: auto;
}
.product-card .card-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== DEMO PAGE LAYOUT ===== */
.demo-page { padding: 48px 0 80px; }
.demo-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: start;
}
@media (max-width: 768px) { .demo-layout { grid-template-columns: 1fr; } }

/* Explainer (left) */
.explainer { padding: 8px 0; }
.explainer .product-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent); margin-bottom: 16px;
}
.explainer .product-label svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.explainer h2 { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 8px; }
.explainer .tagline { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.6; }

.explainer-section { margin-bottom: 24px; }
.explainer-section h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px;
}
.explainer-section ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.explainer-section li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.5;
}
.explainer-section li svg {
  width: 16px; height: 16px; stroke: #22c55e; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; margin-top: 2px;
}

.explainer .cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: background 0.2s;
}
.explainer .cta-btn:hover { background: #2800A3; text-decoration: none; }

/* ===== WIZARD PANEL (right) ===== */
.wizard-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky; top: 80px;
}

.wizard-progress {
  display: flex; align-items: center; gap: 0;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.wizard-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.3s, transform 0.3s;
}
.wizard-dot.active { background: var(--accent); transform: scale(1.25); }
.wizard-dot.done { background: #22c55e; }
.wizard-line { flex: 1; height: 2px; background: var(--border-strong); transition: background 0.3s; }
.wizard-line.done { background: #22c55e; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wizard-body { padding: 24px; }
.wizard-body h3 { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.wizard-body .subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

/* ===== SHARED WIZARD COMPONENTS ===== */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 9px 12px; border-radius: 8px; font-size: 14px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  outline: none;
}

.btn-primary {
  width: 100%; padding: 12px 16px; border: none; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s; margin-top: 4px;
  min-height: 44px;
}
.btn-primary:hover { background: #2800A3; }
.btn-secondary {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: transparent; color: var(--text); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.2s; margin-top: 8px;
  min-height: 44px;
}
.btn-secondary:hover { background: var(--bg-card-hover); }

.confirm-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.confirm-icon.green { background: rgba(34,197,94,0.12); }
.confirm-icon.green svg { stroke: #22c55e; }
.confirm-icon.purple { background: var(--accent-dim); }
.confirm-icon.purple svg { stroke: var(--accent); }
.confirm-icon.red { background: rgba(239,68,68,0.12); }
.confirm-icon.red svg { stroke: #ef4444; }
.confirm-icon.amber { background: rgba(245,158,11,0.12); }
.confirm-icon.amber svg { stroke: #f59e0b; }
.confirm-icon svg { width: 24px; height: 24px; fill: none; stroke-width: 2.5; }

.confirm-text { text-align: center; margin-bottom: 20px; }
.confirm-text h3 { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.confirm-text p { font-size: 13px; color: var(--text-muted); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge.green { background: rgba(34,197,94,0.12); color: #22c55e; }
.badge.red { background: rgba(239,68,68,0.12); color: #ef4444; }
.badge.amber { background: rgba(245,158,11,0.12); color: #f59e0b; }
.badge.blue { background: rgba(59,130,246,0.12); color: #3b82f6; }
.badge.purple { background: var(--accent-dim); color: var(--accent); }
.badge.teal { background: var(--teal-dim); color: var(--teal); }

/* ===== EMOJI PICKER (Tempo-specific) ===== */
.emoji-row {
  display: flex; gap: 8px; margin-bottom: 16px; justify-content: center;
}
.emoji-option {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 8px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  min-width: 64px; background: var(--bg-subtle);
}
.emoji-option:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.emoji-option.selected { border-color: var(--accent); background: var(--accent-dim); }
.emoji-option .emoji { font-size: 24px; line-height: 1; }
.emoji-option .emoji-label { font-size: 10px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }

.notes-field {
  width: 100%; padding: 8px 12px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  outline: none; resize: none; font-family: inherit;
  margin-top: 8px;
}

.question-counter {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
  text-align: right; margin-bottom: 4px;
}

/* ===== TEMPO SCORE ARC (Dashboard-specific) ===== */
.score-display {
  text-align: center; padding: 20px 0;
}
.score-arc {
  width: 168px; height: 168px; margin: 0 auto 12px;
  position: relative;
}
.score-number {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 48px; font-weight: 800; letter-spacing: -2px;
}
.score-label {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}

/* Score color utilities */
.score-high { color: #22c55e; }
.score-mid { color: #eab308; }
.score-low { color: #ef4444; }

/* ===== ENTITY LIST (Dashboard drill-down) ===== */
.entity-tabs {
  display: flex; gap: 2px; margin-bottom: 16px;
  background: var(--bg-subtle); border-radius: 8px; padding: 3px;
}
.entity-tab {
  flex: 1; padding: 6px 8px; border-radius: 6px; border: none;
  background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.entity-tab.active { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.entity-list { display: flex; flex-direction: column; gap: 4px; }
.entity-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.entity-row:hover { border-color: var(--accent); }
.entity-name { font-size: 14px; font-weight: 500; }
.entity-score { font-size: 14px; font-weight: 700; }

/* ===== STATS ROW ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-subtle); border-radius: 10px; padding: 14px;
  text-align: center;
}
.stat-card .stat-number { font-size: 22px; font-weight: 800; }
.stat-card .stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* ===== COURSE CARD (Courses-specific) ===== */
.course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
  margin-bottom: 16px;
}
.course-card {
  padding: 16px; border-radius: 12px; border: 1px solid var(--border-strong);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.course-card:hover { border-color: var(--accent); }
.course-card.selected { border-color: var(--accent); background: var(--accent-dim); }
.course-card h4 { font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.course-card .course-meta { font-size: 11px; color: var(--text-muted); }

.progress-bar {
  height: 6px; border-radius: 3px; background: var(--border-strong);
  overflow: hidden; margin-top: 8px;
}
.progress-fill {
  height: 100%; border-radius: 3px; background: var(--accent);
  transition: width 0.8s ease;
}

/* Lesson sidebar */
.lesson-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.lesson-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 6px; font-size: 13px;
  transition: background 0.2s;
}
.lesson-item.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.lesson-item.complete { color: var(--text-muted); }
.lesson-item .lesson-icon { width: 16px; height: 16px; flex-shrink: 0; }
.lesson-item .lesson-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Quiz */
.quiz-options { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.quiz-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border-strong);
  cursor: pointer; transition: border-color 0.2s;
  font-size: 14px;
}
.quiz-option:hover { border-color: var(--accent); }
.quiz-option.selected { border-color: var(--accent); background: var(--accent-dim); }
.quiz-option.correct { border-color: #22c55e; background: rgba(34,197,94,0.08); }
.quiz-option.wrong { border-color: #ef4444; background: rgba(239,68,68,0.08); }
.quiz-radio {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border-strong); flex-shrink: 0;
}
.quiz-option.selected .quiz-radio { border-color: var(--accent); background: var(--accent); }

/* ===== SMS PHONE MOCKUP ===== */
.phone-frame {
  background: var(--bg-subtle); border-radius: 24px; padding: 20px 16px;
  border: 2px solid var(--border-strong); max-width: 320px; margin: 0 auto;
}
.phone-header {
  text-align: center; font-size: 11px; color: var(--text-muted);
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  margin-bottom: 12px; font-weight: 600;
}
.sms-thread { display: flex; flex-direction: column; gap: 8px; }
.sms-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  font-size: 13px; line-height: 1.4; white-space: pre-line;
}
.sms-bubble.incoming {
  background: var(--border-strong); color: var(--text);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.sms-bubble.outgoing {
  background: var(--accent); color: #fff;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.sms-timestamp {
  font-size: 10px; color: var(--text-muted); text-align: center;
  margin: 4px 0;
}

/* ===== ALERT CARD ===== */
.alert-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border-radius: 10px; border: 1px solid;
  margin-bottom: 12px;
}
.alert-card.critical { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.alert-card.warning { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.05); }
.alert-card.info { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.05); }
.alert-card .alert-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-card .alert-icon svg { width: 20px; height: 20px; fill: none; stroke-width: 2; }
.alert-card.critical .alert-icon svg { stroke: #ef4444; }
.alert-card.warning .alert-icon svg { stroke: #f59e0b; }
.alert-card .alert-body h4 { font-size: 13px; font-weight: 650; margin-bottom: 2px; }
.alert-card .alert-body p { font-size: 12px; color: var(--text-muted); }

/* ===== AGGREGATE BARS (Live Session) ===== */
.agg-bars { display: flex; flex-direction: column; gap: 12px; }
.agg-bar-row {
  display: flex; align-items: center; gap: 12px;
}
.agg-bar-label { font-size: 12px; font-weight: 600; min-width: 70px; color: var(--text-secondary); }
.agg-bar-track {
  flex: 1; height: 24px; border-radius: 6px; background: var(--border-strong);
  overflow: hidden; position: relative;
}
.agg-bar-fill {
  height: 100%; border-radius: 6px; transition: width 1s ease;
  display: flex; align-items: center; padding-left: 8px;
  font-size: 11px; font-weight: 700; color: #fff;
}
.agg-bar-fill.mental { background: #3300CC; }
.agg-bar-fill.energy { background: #f59e0b; }
.agg-bar-fill.emotional { background: #3b82f6; }
.agg-bar-fill.physical { background: #22c55e; }
.agg-bar-fill.social { background: #14b8a6; }
.agg-bar-value { font-size: 13px; font-weight: 700; min-width: 36px; text-align: right; }

/* ===== REPLAY BAR ===== */
.replay-bar {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: center;
}
.replay-btn {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.replay-btn:hover { color: var(--text); }
.replay-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== IMPLEMENTATION SPEC ===== */
.impl-spec { margin-top: 40px; }
.impl-toggle {
  width: 100%; padding: 14px 20px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius); color: var(--text-muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s, border-color 0.2s;
}
.impl-toggle:hover { color: var(--text); border-color: var(--accent); }
.impl-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s; }
.impl-toggle.open svg { transform: rotate(180deg); }
.impl-content {
  display: none; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}
.impl-content.open { display: block; }
.impl-content h4 { font-size: 13px; font-weight: 700; color: var(--text); margin: 12px 0 4px; }
.impl-content h4:first-child { margin-top: 0; }
.impl-content code {
  font-family: 'Geist Mono', monospace; font-size: 12px;
  background: var(--bg); padding: 2px 6px; border-radius: 4px;
}

/* ===== VISION CARD ===== */
.vision-card {
  padding: 20px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-dim), var(--gold-dim));
  border: 1px solid var(--accent);
}
.vision-card h4 { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.vision-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border); padding: 40px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.footer-top img { height: 22px; width: auto; opacity: 0.8; }
.footer-top .light-logo { display: none; }
.footer-top .dark-logo { display: inline; }
[data-theme="light"] .footer-top .light-logo { display: inline; }
[data-theme="light"] .footer-top .dark-logo { display: none; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]):not([data-theme="light"]) .footer-top .light-logo { display: inline; }
  html:not([data-theme="dark"]):not([data-theme="light"]) .footer-top .dark-logo { display: none; }
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-divider {
  border: none; border-top: 1px solid var(--border); margin: 0 0 24px;
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-muted);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav { padding: 12px 16px; }
  .hero { padding: 60px 16px 32px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .product-card { padding: 24px; }
  .wizard-panel { position: static; }
  .wizard-body { padding: 20px 16px; }
  .explainer { padding: 0 4px; }
  .explainer h2 { font-size: 24px; }
  .explainer .tagline { font-size: 14px; }
  .emoji-row { gap: 4px; flex-wrap: wrap; }
  .emoji-option { min-width: 56px; padding: 8px 6px; }
  .phone-frame { max-width: 100%; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .course-grid { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom {
    flex-direction: column; align-items: flex-start; gap: 16px;
  }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
}
