.demo-body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

.demo-app {
  min-height: 100vh;
  padding: 20px 16px 18px;
  font-size: 13px;
}

.demo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.demo-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-brand-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}

.demo-brand {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.demo-section-header h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.12;
}

.score-pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 0 9px;
}

.demo-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.demo-section-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.ghost-icon {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 8px;
}

.demo-progress {
  overflow: hidden;
  height: 8px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.demo-progress span {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 180ms ease;
}

.question-card,
.feedback-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.question-prompt {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
  font-size: 13px;
  padding: 12px;
  text-align: left;
}

.answer-tile .radio {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #9aa4a8;
  border-radius: 50%;
  color: transparent;
  font-size: 11px;
  font-weight: 900;
}

.answer-tile.selected {
  border-color: var(--primary);
  background: #fff0ea;
}

.answer-tile.selected .radio {
  border-color: var(--primary);
  color: var(--primary);
}

.answer-tile.correct {
  border-color: #219653;
  background: #e8f6ee;
}

.answer-tile.correct .radio {
  border-color: #219653;
  background: #219653;
  color: #fff;
}

.answer-tile.wrong {
  border-color: #d64545;
  background: #fdeeee;
}

.answer-tile.wrong .radio {
  border-color: #d64545;
  background: #d64545;
  color: #fff;
}

.feedback-card {
  margin-top: 12px;
}

.feedback-title {
  margin-bottom: 6px;
  font-weight: 900;
}

.feedback-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.feedback-card.correct .feedback-title {
  color: #219653;
}

.feedback-card.wrong .feedback-title {
  color: #d64545;
}

.demo-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.demo-button {
  min-height: 46px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
}

.demo-button.primary {
  border: 0;
  background: var(--primary);
  color: #fff;
}

.demo-button.primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.demo-button.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
}

.hidden {
  display: none;
}

@media (max-width: 380px) {
  .demo-app {
    padding-inline: 12px;
  }

  .question-prompt {
    font-size: 15px;
  }
}
