/* ============================================================================
 * showroom.css — showroom-SPECIFIC styles (stage, timeline, cards, panels).
 * SLICE: demo-web-showcase
 *
 * COLOUR RULE (guard #7): this file introduces NO colour of its own. Every colour is a
 * var(--rzr-*) defined in site.css — so the showroom can never drift from the site's palette,
 * and the vendor step (which rewrites site.css) recolours the showroom for free. There are NO
 * hex literals below on purpose.
 *
 * ANIMATION: transform/opacity only, and everything is disabled under prefers-reduced-motion.
 * ==========================================================================*/

.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 { font-size: 2.1rem; margin: 0 0 10px; }
.hero p { color: var(--rzr-muted); font-size: 1.1rem; margin: 0 auto; max-width: 640px; }

.section-title { font-size: 1.3rem; margin: 40px 0 16px; }

/* ── Rooms grid ── */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.room-card {
  background: var(--rzr-surface); border: 1px solid var(--rzr-border);
  border-radius: var(--rzr-radius); padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.room-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--rzr-shadow); border-color: var(--rzr-primary); }
.room-card h3 { margin: 0; font-size: 1.15rem; }
.room-card .benefit { color: var(--rzr-muted); flex: 1; }
.room-card .status-soon { color: var(--rzr-muted); font-weight: 600; font-size: 0.85rem; }
.room-card .enter { align-self: flex-start; }

.btn {
  display: inline-block; border: 1px solid var(--rzr-primary); background: var(--rzr-primary);
  color: var(--rzr-bg); font-weight: 700; padding: 9px 16px; border-radius: 8px; cursor: pointer;
  transition: transform 120ms ease, background 120ms ease; font-size: 0.95rem;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--rzr-primary); }
.btn.btn-live { border-color: var(--rzr-accent); background: var(--rzr-accent); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ── Scenario / dial chooser ── */
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 28px; }
.scenario-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scenario-card {
  background: var(--rzr-surface); border: 1px solid var(--rzr-border); border-radius: var(--rzr-radius);
  padding: 14px; cursor: pointer; transition: border-color 140ms ease, transform 140ms ease;
}
.scenario-card:hover { border-color: var(--rzr-primary); transform: translateY(-2px); }
.scenario-card.selected { border-color: var(--rzr-accent); box-shadow: 0 0 0 2px var(--rzr-glow); }
.scenario-card h4 { margin: 0 0 6px; font-size: 1rem; }
.scenario-card p { margin: 0; color: var(--rzr-muted); font-size: 0.9rem; }
.dials .dial-q { color: var(--rzr-muted); margin-bottom: 10px; }
.dials .dial-opts { display: flex; flex-direction: column; gap: 8px; }
.dial-opt {
  text-align: left; background: var(--rzr-surface-2); border: 1px solid var(--rzr-border);
  color: var(--rzr-text); border-radius: 8px; padding: 10px 12px; cursor: pointer;
}
.dial-opt.selected { border-color: var(--rzr-accent); }

/* ── The stage: seven nodes left → right ── */
.stage-wrap { background: var(--rzr-surface); border: 1px solid var(--rzr-border); border-radius: var(--rzr-radius); padding: 22px; }
.stage { display: flex; align-items: stretch; gap: 0; }
.stage-node {
  flex: 1; text-align: center; padding: 14px 8px; border-radius: 8px; position: relative;
  opacity: 0.4; transform: scale(0.98); transition: opacity 300ms ease, transform 300ms ease, background 300ms ease;
}
.stage-node .node-label { font-weight: 700; font-size: 0.95rem; }
.stage-node .node-sub { color: var(--rzr-muted); font-size: 0.8rem; min-height: 1.1em; }
.stage-node.reached { opacity: 1; }
.stage-node.active { background: var(--rzr-surface-2); box-shadow: 0 0 0 2px var(--rzr-glow); transform: scale(1.03); }
.stage-node.done-closed .node-label { color: var(--rzr-ok); }
.stage-node.done-escalated .node-label { color: var(--rzr-warn); }
.stage-connector { align-self: center; width: 22px; height: 2px; background: var(--rzr-border); transition: background 300ms ease; }
.stage-connector.reached { background: var(--rzr-primary); }

/* ── The three live panels ── */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.panel { background: var(--rzr-surface); border: 1px solid var(--rzr-border); border-radius: var(--rzr-radius); padding: 16px; }
.panel h4 { margin: 0 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--rzr-muted); }
.panel .panel-body { min-height: 3em; }
.autonomy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.autonomy-list li { padding: 7px 10px; border-radius: 7px; border: 1px solid var(--rzr-border); color: var(--rzr-muted); }
.autonomy-list li.chosen { border-color: var(--rzr-accent); color: var(--rzr-text); background: var(--rzr-surface-2); font-weight: 700; }

/* ── Outcome receipt ── */
.receipt { margin-top: 20px; padding: 18px; border-radius: var(--rzr-radius); border: 1px solid var(--rzr-border); background: var(--rzr-surface); }
.receipt.closed { border-color: var(--rzr-ok); }
.receipt.escalated { border-color: var(--rzr-warn); }
.receipt .headline { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.receipt .note { color: var(--rzr-muted); font-family: var(--rzr-font-mono); font-size: 0.9rem; white-space: pre-wrap; }

/* ── Under-the-hood raw timeline ── */
.hood { margin-top: 18px; }
.hood summary { cursor: pointer; color: var(--rzr-muted); font-weight: 600; }
.hood table { width: 100%; border-collapse: collapse; margin-top: 10px; font-family: var(--rzr-font-mono); font-size: 0.82rem; }
.hood td { border-bottom: 1px solid var(--rzr-border); padding: 6px 8px; vertical-align: top; }
.hood .t { color: var(--rzr-muted); white-space: nowrap; }

/* ── Powered by NICI mark ── */
.powered { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--rzr-text); }
.powered .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rzr-accent); box-shadow: 0 0 8px var(--rzr-glow); }
.demo-footnote { color: var(--rzr-muted); font-size: 0.85rem; }

.error-banner { background: var(--rzr-surface-2); border: 1px solid var(--rzr-danger); color: var(--rzr-text); padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.badge-source { font-size: 0.75rem; color: var(--rzr-muted); border: 1px solid var(--rzr-border); padding: 2px 8px; border-radius: 999px; }

@media (max-width: 720px) {
  .chooser, .scenario-cards { grid-template-columns: 1fr; }
  .stage { flex-direction: column; }
  .stage-connector { width: 2px; height: 16px; margin: 0 auto; }
  .panels { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .stage-node { transform: none; }
}
