/* ============================================================
   TIER FORWARD — Demo Page Stylesheet
   ============================================================ */

.demo-body {
  background: var(--color-section-alt);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* DEMO HEADER */
.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) clamp(var(--space-5), 5vw, var(--space-10));
  background: white;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: var(--space-4);
}
.demo-back {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}
.demo-back:hover { color: var(--color-navy); }

/* PROGRESS */
.demo-progress-wrap {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) clamp(var(--space-5), 5vw, var(--space-10));
}
.demo-progress-bar {
  height: 5px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  overflow: hidden;
  position: relative;
}
.demo-progress-bar::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 0;
  background: linear-gradient(90deg, var(--color-navy), var(--color-orange));
  border-radius: var(--radius-full);
  width: var(--progress, 16%);
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.demo-steps-nav {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}
.demo-step-pill {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  padding: 0.25em 0.9em;
  border-radius: var(--radius-full);
  background: var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none;
  white-space: nowrap;
}
.demo-step-pill.active {
  background: var(--color-navy);
  color: white;
}
.demo-step-pill.completed {
  background: var(--color-green);
  color: white;
}
.demo-step-pill:hover:not(.active) {
  background: var(--color-navy-light);
  color: white;
}

/* MAIN DEMO AREA */
.demo-main {
  flex: 1;
  padding: clamp(var(--space-8), 5vw, var(--space-12)) clamp(var(--space-5), 5vw, var(--space-12));
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* STEP VISIBILITY */
.demo-step {
  display: none;
  animation: fadeSlide 0.4s cubic-bezier(0.16,1,0.3,1);
}
.demo-step.active { display: flex; flex-direction: column; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* LAYOUTS */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
  width: 100%;
}
.demo-layout-center {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.demo-layout-wide {
  grid-template-columns: 1fr 1.6fr;
}
@media (max-width: 860px) {
  .demo-layout,
  .demo-layout-center,
  .demo-layout-wide {
    grid-template-columns: 1fr;
  }
  .demo-visual { order: -1; }
}

/* NARRATIVE COLUMN */
.demo-step-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-3);
}
.demo-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  color: var(--color-navy);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}
.demo-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.demo-desc strong { color: var(--color-navy); }
.demo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.demo-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}
.demo-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.demo-nav-final { flex-direction: column; align-items: flex-start; }
.demo-contact-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-navy);
  margin-top: var(--space-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-contact-link:hover { color: var(--color-orange); }

/* Q TAGS */
.q-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  color: white;
}
.q-concept   { background: #1B3A6B; }
.q-procedure { background: #F5821F; }
.q-application { background: #3AAA35; }
.q-transfer  { background: #9B59B6; }

/* PM DOTS (narrative) */
.pm-dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.green-dot  { background: var(--color-green); }
.yellow-dot { background: var(--color-yellow-dark); }
.red-dot    { background: #e74c3c; }

/* DECISION BOX */
.decision-box {
  background: #f0f4fc;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-4) 0;
}
.decision-rule {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-navy);
  line-height: 1.6;
}
.rule-icon { font-size: 1.2rem; flex-shrink: 0; }
.accent-navy { color: var(--color-navy); }

/* ============================================================
   APP WINDOW (fake UI)
   ============================================================ */
.app-window {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.app-window-bar {
  background: #f5f5f5;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }
.app-window-title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
}
.app-window-body {
  padding: var(--space-6);
}
.app-page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-section-alt);
}

/* FAKE FORM */
.fake-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.fake-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.fake-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.fake-form-group label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fake-input {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.6em 0.85em;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-section-alt);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.fake-input.filled {
  background: white;
  border-color: var(--color-navy);
  font-weight: 700;
  color: var(--color-navy);
}
.fake-select {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.6em 0.85em;
  font-size: var(--text-sm);
  background: white;
  color: var(--color-navy);
  font-weight: 700;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.fake-btn {
  border-radius: var(--radius-full);
  padding: 0.65em 1.6em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}
.fake-btn:hover { transform: translateY(-1px); }
.fake-btn-primary {
  background: var(--color-orange);
  color: white;
}
.fake-btn-primary:hover { background: var(--color-orange-dark); }

/* ASSESSMENT GRID */
.assessment-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.assessment-q {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
}
.assessment-q.missed {
  background: #fff5f5;
  border-color: #fcc;
}
.assessment-q.correct {
  background: #f0faf0;
  border-color: #c3e6cb;
}
.q-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.q-type {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.q-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}
.q-result {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-display);
}
.q-wrong { color: #c0392b; }
.q-right  { color: var(--color-green-dark); }
.score-summary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--color-navy);
  background: var(--color-section-alt);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-align: center;
}

/* PATHWAY RESULT */
.pathway-result-card {
  background: linear-gradient(135deg, #f0f4fc 0%, #e8f0ff 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1.5px solid #c5d3f0;
}
.pathway-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.pathway-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.targeted { color: var(--color-orange); }
.supported-color { color: var(--color-green); }
.pathway-reason {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.pathway-divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: var(--space-4);
}
.pathway-materials {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.material-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}

/* DASHBOARD */
.dashboard-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.dashboard-class-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-base);
  color: var(--color-navy);
}
.dashboard-skill-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  background: var(--color-navy);
  color: white;
  border-radius: var(--radius-full);
  padding: 0.25em 0.9em;
}
.student-row-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  background: var(--color-section-alt);
}
.student-row-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.student-row-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: white;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.student-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.student-row-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--color-navy);
}
.student-row-pathway {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
  padding: 0.15em 0.7em;
  width: fit-content;
}
.targeted-chip  { background: rgba(245,130,31,0.15); color: var(--color-orange-dark); }
.supported-chip { background: rgba(58,170,53,0.15); color: var(--color-green-dark); }
.student-row-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-base);
  color: var(--color-navy);
}
.pm-section { margin-bottom: var(--space-3); }
.pm-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.pm-dots-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.pm-tile {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.pm-tile-num {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  opacity: 0.7;
}
.pm-tile-score {
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-display);
}
.green-tile  { background: #d4edda; color: #1e7e34; }
.yellow-tile { background: #fff3cd; color: #856404; }
.red-tile    { background: #f8d7da; color: #721c24; }
.empty-tile  { background: var(--color-border); color: var(--color-text-faint); }
.pm-status {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.trend-positive { color: var(--color-green-dark); }
.student-row-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.fake-btn-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  padding: 0.35em 0.9em;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: white;
  color: var(--color-navy);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.fake-btn-sm:hover { background: var(--color-section-alt); }
.fake-btn-sm-orange { background: var(--color-orange); color: white; border-color: var(--color-orange); }
.fake-btn-sm-orange:hover { background: var(--color-orange-dark); }

/* WELCOME STEP VISUALS */
.demo-visual-welcome {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.student-avatar-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  border: 1px solid var(--color-border);
}
.student-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-navy);
  color: white;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.student-avatar-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.student-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-lg);
  color: var(--color-navy);
}
.student-grade {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.tag-yellow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  background: rgba(245,197,24,0.2);
  color: #856404;
  border-radius: var(--radius-full);
  padding: 0.15em 0.7em;
  width: fit-content;
}
.welcome-skill-card {
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: white;
}
.skill-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
}
.skill-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-base);
  color: white;
  margin-bottom: var(--space-2);
}
.skill-alcos {
  font-size: var(--text-sm);
  color: var(--color-yellow);
  font-weight: 700;
  font-family: var(--font-display);
}

/* TYPING ANIMATION */
@keyframes typing-cursor {
  0%, 100% { border-right-color: var(--color-navy); }
  50% { border-right-color: transparent; }
}
.fake-input.typing {
  background: white;
  border-color: var(--color-navy);
  font-weight: 700;
  color: var(--color-navy);
  border-right: 2px solid var(--color-navy);
  animation: typing-cursor 0.8s infinite;
}
