body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(79, 70, 229, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(124, 58, 237, 0.06), transparent 50%),
    var(--bg);
  font-family: inherit;
}

.demo-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.demo-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 20;
}

.demo-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.demo-nav a:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.demo-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.demo-nav .spacer { flex: 1; }

.demo-brand {
  text-align: center;
  margin-bottom: 24px;
}

.demo-brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}

.demo-brand h1 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.demo-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

.demo-card h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

.demo-card .hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-muted);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.demo-btn, button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
  text-decoration: none;
}

.demo-btn:hover, button[type="submit"]:hover {
  background: var(--accent-hover);
}

.demo-btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.demo-btn.secondary:hover { background: var(--bg-subtle); }

.demo-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.demo-btn-row .demo-btn { width: 100%; }

.journey-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  font-size: 0.86rem;
}

.journey-steps .step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--surface-inset);
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

.product-card .price {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.dead-zone {
  margin-top: 20px;
  padding: 16px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  background: var(--surface-inset);
  transition: border-color 0.15s, color 0.15s;
}

.dead-zone:hover {
  border-color: var(--accent-muted);
  color: var(--text-secondary);
}

.demo-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
}

.demo-footer a { font-weight: 600; }

.api-log {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
}

.cart-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.inj-warn {
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.inj-console-help {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.inj-console-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.inj-snippet {
  margin-top: 8px;
  max-height: 220px;
}

.thanks-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
