* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --purple-dark: #5b21b6;
  --green: #16a34a;
  --green-light: #dcfce7;
  --yellow: #d97706;
  --yellow-light: #fef3c7;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --sidebar-w: 240px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: var(--text);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo .logo-icon { font-size: 1.5rem; }
.sidebar-logo .logo-text { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.sidebar-logo .logo-sub  { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }

.sidebar-nav { padding: 12px 10px; flex: 1; }

.nav-group { margin-bottom: 20px; }
.nav-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 4px;
}
.nav-group a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  transition: all 0.12s;
}
.nav-group a:hover { background: var(--gray-light); color: var(--purple); }
.nav-group a.active { background: var(--purple-light); color: var(--purple-dark); font-weight: 600; }
.nav-group a .nav-icon { font-size: 1rem; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--green-light);
  color: var(--green);
}
.nav-badge.wip { background: var(--yellow-light); color: var(--yellow); }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.sidebar-footer strong { display: block; color: var(--text); margin-bottom: 2px; }

/* ── MAIN ── */
.page-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 32px 80px;
  flex: 1;
}

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 36px; }
.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: var(--text-muted); font-size: 0.95rem; max-width: 640px; }
.page-header .updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 99px;
  margin-top: 10px;
}

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  text-align: center;
}
.stat-card.highlight { border-color: var(--purple); background: var(--purple-light); }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--purple); }
.stat-label { font-size: 0.8rem; font-weight: 600; margin: 2px 0; }
.stat-sub { font-size: 0.73rem; color: var(--text-muted); }

/* ── SECTION ── */
.section { margin-bottom: 44px; }
.section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── CARDS ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card h3 { font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.card p  { font-size: 0.85rem; color: var(--text-muted); }
.card .tech { font-size: 0.73rem; font-family: monospace; color: var(--purple); margin-top: 8px; background: var(--purple-light); display: inline-block; padding: 2px 8px; border-radius: 6px; }
.card-icon { font-size: 1.6rem; margin-bottom: 10px; }

/* ── PHASE ROWS ── */
.phase { margin-bottom: 32px; }
.phase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.phase-header h2 { font-size: 1.1rem; font-weight: 700; border: none; padding: 0; margin: 0; }
.phase-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}
.phase-tag.done    { background: var(--green-light); color: var(--green); }
.phase-tag.active  { background: var(--yellow-light); color: var(--yellow); }
.phase-tag.planned { background: var(--gray-light); color: var(--gray); }

/* ── TASK LIST ── */
.tasks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.task {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
}
.task.done { opacity: 0.65; }
.task input[type=checkbox] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--purple);
  cursor: default;
  pointer-events: none;
}
.task .task-body strong { display: block; font-weight: 600; margin-bottom: 2px; }
.task .task-body span { color: var(--text-muted); font-size: 0.8rem; }
.task .task-meta {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── APP GRID ── */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
}
.app-card.live { border-color: #16a34a; }
.app-card .app-icon { font-size: 1.5rem; margin-bottom: 8px; }
.app-card h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; }
.app-card p { font-size: 0.78rem; color: var(--text-muted); }
.app-status {
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
}
.app-status.live    { background: var(--green-light); color: var(--green); }
.app-status.soon    { background: var(--yellow-light); color: var(--yellow); }
.app-status.planned { background: var(--gray-light); color: var(--gray); }

/* ── PRICE CARDS ── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.price-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.price-card.featured { border-color: var(--purple); background: var(--purple-light); }
.price-badge { font-size: 0.72rem; font-weight: 700; background: var(--purple); color: #fff; padding: 3px 10px; border-radius: 99px; display: inline-block; margin-bottom: 12px; }
.price-name { font-size: 1.1rem; font-weight: 800; }
.price-amount { font-size: 2.2rem; font-weight: 800; margin: 8px 0 4px; }
.price-amount span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.price-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.price-features li { font-size: 0.82rem; display: flex; align-items: flex-start; gap: 7px; }
.price-features li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── FLOW ── */
.flow { display: flex; flex-direction: column; gap: 0; }
.flow-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.flow-arrow { text-align: center; color: var(--border); font-size: 1.2rem; padding: 4px 0; }
.flow-step .step-num {
  width: 32px; height: 32px;
  background: var(--purple-light);
  color: var(--purple-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  flex-shrink: 0;
}
.flow-step h3 { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.flow-step p  { font-size: 0.82rem; color: var(--text-muted); }

/* ── INFO BOX ── */
.info-box {
  background: var(--purple-light);
  border: 1px solid #c4b5fd;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.info-box strong { color: var(--purple-dark); }

/* ── TABLE ── */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; font-weight: 700; padding: 10px 14px; background: var(--gray-light); border-bottom: 2px solid var(--border); }
td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafafa; }

/* ── FOOTER ── */
.page-footer {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-footer a { color: var(--purple); text-decoration: none; }

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .page-wrap { margin-left: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .card-grid  { grid-template-columns: 1fr; }
  .app-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 480px) {
  .app-grid { grid-template-columns: 1fr; }
  .page-content { padding: 24px 16px 60px; }
}
