/* The tour's own chrome. The app inside the frame is untouched — this is the
   panel beside it, and it borrows the same palette so the two read as one
   thing rather than as a page with a product embedded in it. */

.demo-body { overflow: hidden; }

.demo-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  height: 100%;
}

.demo-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  background: var(--headerbar-bg);
  border-right: 1px solid var(--separator);
  overflow-y: auto;
}

.demo-head { display: flex; align-items: center; justify-content: space-between; }
.demo-back { color: var(--dim); text-decoration: none; font-size: 13px; }
.demo-back:hover { color: var(--window-fg); }

.demo-dots { display: flex; gap: 5px; }
.demo-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--btn-active);
}
.demo-dots i.past { background: var(--dim); }
.demo-dots i.now { background: var(--accent-bg); transform: scale(1.25); }

.demo-step { flex: 1; }
.demo-step h1 {
  font-size: 19px; font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.demo-step p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.demo-hint { color: var(--dim); font-size: 13px !important; }

.demo-tasks { margin: 4px 0 12px; padding: 0; list-style: none; }
.demo-task {
  position: relative; padding: 4px 0 4px 24px;
  font-size: 13.5px; line-height: 1.45; color: var(--window-fg);
}
.demo-task::before {
  content: "";
  position: absolute; left: 2px; top: 8px;
  width: 12px; height: 12px; border-radius: 3px;
  border: 1.5px solid var(--separator);
}
/* ticked as it happens, so which part is still outstanding is never a guess */
.demo-task.ticked { color: var(--dim); }
.demo-task.ticked::before {
  background: var(--accent-bg); border-color: var(--accent-bg);
}
.demo-task.ticked::after {
  content: "✓";
  position: absolute; left: 4px; top: 3px;
  font-size: 10px; font-weight: 700; color: var(--accent-fg);
}

.demo-handout {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-top: 6px;
  background: var(--card-bg); border: 1px solid var(--separator);
  border-radius: 10px; cursor: grab; font-size: 13px;
}
.demo-handout:active { cursor: grabbing; }
.demo-handout small { display: block; color: var(--dim); font-size: 12px; }
.demo-file {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 6px; border-radius: 4px;
  background: var(--accent-bg); color: var(--accent-fg);
}

.demo-done {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent-bg) 12%, transparent);
  font-size: 13px; line-height: 1.45;
}
.demo-tick { color: var(--accent-bg); font-weight: 700; }

.demo-foot { display: flex; gap: 6px; }
.demo-foot button { flex: 1; font-size: 13px; padding: 7px 10px; border-radius: 8px; }
.demo-foot button:disabled { opacity: .45; }

.demo-stage { position: relative; min-width: 0; }
.demo-stage iframe { width: 100%; height: 100%; border: 0; display: block; }

/* the closing card, over the app it is talking about */
.demo-end {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--window-bg) 78%, transparent);
  backdrop-filter: blur(3px);
}
.demo-end-card {
  max-width: 460px; padding: 28px 30px;
  background: var(--popover-bg); border: 1px solid var(--separator);
  border-radius: 16px; box-shadow: var(--popover-shadow);
}
.demo-end-card h1 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; }
.demo-end-card p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; }
.demo-end-row { display: flex; gap: 10px; align-items: center; }
.demo-cta {
  padding: 9px 16px; border-radius: 9px; text-decoration: none;
  background: var(--accent-bg); color: var(--accent-fg); font-size: 14px;
}

/* Narrow: the panel goes on top and the app keeps the rest. The tour asks for
   gestures, so the app must never be the part that gets squeezed out. */
@media (max-width: 860px) {
  .demo-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .demo-panel { border-right: 0; border-bottom: 1px solid var(--separator); max-height: 46vh; }
}
