/* Sample version: the welcome screen, the sample bar above every page, and the "What to try" list. */

.demo-tag {
  display: inline-flex; align-items: center; justify-self: center; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px;
  background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(242, 169, 59, 0.35);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- welcome screen ---------- */
.lock { place-items: start center; }
.lock-card.demo-card { width: min(560px, 100%); gap: 16px; margin: auto 0; padding: 12px 0 20px; }
.demo-card h1 { font-size: 2.4rem; }
.demo-lead { color: var(--ink); font-size: 1rem; max-width: 46ch; margin: 0 auto; }
.demo-features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; text-align: left;
}
.demo-features li {
  display: grid; gap: 2px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.demo-features b { font-size: 0.9rem; }
.demo-features span { color: var(--muted); font-size: 0.8rem; }
.demo-choose { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.demo-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.demo-role {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  min-height: 84px; padding: 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.demo-role:hover { border-color: var(--amber); background: #33373c; }
.demo-role .ico { width: 1.6em; height: 1.6em; color: var(--amber); margin-top: 2px; }
.demo-role > span { display: grid; gap: 4px; }
.demo-role b { font-size: 0.98rem; }
.demo-role > span > span { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.demo-role:first-child { border-color: rgba(242, 169, 59, 0.5); }
.demo-role[disabled] { opacity: 0.6; cursor: progress; }
.demo-role.busy { opacity: 1; border-color: var(--amber); }
.demo-role.busy b::after { content: " · opening…"; color: var(--amber); font-weight: 500; }
.demo-fine { max-width: 52ch; margin: 0 auto; }
.demo-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 0.86rem; color: var(--muted); }
.demo-links a { color: var(--amber); text-underline-offset: 3px; }

@media (max-width: 520px) {
  .demo-features, .demo-roles { grid-template-columns: minmax(0, 1fr); }
  .demo-card h1 { font-size: 2rem; }
  .demo-role { min-height: 0; }
}

/* ---------- the sample bar above every page ---------- */
.main { grid-template-rows: auto auto auto minmax(0, 1fr); }
.demo-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px var(--gutter);
  background: #15171a; border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.demo-text { color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-actions { display: flex; gap: 6px; flex: none; }
.demo-actions .btn.sm { min-height: 30px; }

@media (max-width: 1024px) { .demo-cta { display: none; } }
@media (max-width: 720px) {
  .demo-bar { gap: 8px; padding-top: calc(6px + env(safe-area-inset-top)); padding-bottom: 6px; }
  .demo-text { display: none; }
  .demo-actions { flex: 1; justify-content: flex-end; }
  .demo-actions .btn.sm { padding: 0 8px; }
  .page-head { padding-top: 10px; }
}
@media (max-width: 380px) { #demoTour { display: none; } }

/* ---------- "What to try" ---------- */
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.demo-step {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
}
.demo-step:hover { border-color: var(--amber); }
.demo-step > span:last-child { display: grid; gap: 2px; }
.demo-step-n {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 999px;
  background: var(--amber-soft); color: var(--amber); font: 600 0.8rem var(--font-mono);
}

@media print { .demo-bar { display: none !important; } }
