/* Mini configurator demo on the home page (see /src/demo-configurator.js) */
.demo-group + .demo-group { margin-top: 1.5rem; }
.demo-group legend {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #6b7280; margin-bottom: 0.625rem;
}
html.dark .demo-group legend { color: #94a3b8; }
.demo-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.demo-opt {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border: 1px solid #e5e7eb; border-radius: 9999px;
  font-size: 0.875rem; color: #1a1a1a; cursor: pointer; user-select: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.demo-opt:hover { border-color: #1a1a1a; }
.demo-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.demo-opt:has(input:focus-visible) { outline: 2px solid #0369a1; outline-offset: 2px; }
.demo-opt.is-selected { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.demo-opt small { opacity: .6; font-size: 0.75rem; }
html.dark .demo-opt { border-color: rgba(255,255,255,.15); color: #e2e8f0; }
html.dark .demo-opt:hover { border-color: #fff; }
html.dark .demo-opt.is-selected { background: #e2e8f0; border-color: #e2e8f0; color: #0f172a; }

.demo-quote {
  border: 1px solid #e5e7eb; padding: 1.5rem; background: #fff;
}
html.dark .demo-quote { border-color: rgba(255,255,255,.1); background: rgba(24,24,27,.7); }
.demo-quote.is-updated { animation: demo-flash .5s ease-out; }
@keyframes demo-flash {
  0% { box-shadow: 0 0 0 0 rgba(3,105,161,.45); }
  100% { box-shadow: 0 0 0 14px rgba(3,105,161,0); }
}
.demo-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border-radius: 9999px; margin-bottom: 1rem;
}
.demo-status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.demo-status.ok { color: #047857; background: #ecfdf5; }
.demo-status.bad { color: #b91c1c; background: #fef2f2; }
html.dark .demo-status.ok { color: #6ee7b7; background: rgba(6,95,70,.35); }
html.dark .demo-status.bad { color: #fca5a5; background: rgba(153,27,27,.35); }
.demo-issues { margin: 0 0 1rem; padding: 0; list-style: none; }
.demo-issues li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  padding: 0.6rem 0; border-top: 1px solid #fecaca; font-size: 0.875rem; color: #991b1b;
}
html.dark .demo-issues li { border-color: rgba(248,113,113,.3); color: #fca5a5; }
.demo-issues button {
  font-size: 0.75rem; letter-spacing: 0.06em; padding: 0.3rem 0.7rem; border-radius: 9999px;
  border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; white-space: nowrap;
}
.demo-issues button:hover { background: #991b1b; color: #fff; border-color: #991b1b; }
.demo-lines { margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.demo-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid #f3f4f6; }
html.dark .demo-lines li { border-color: rgba(255,255,255,.08); }
.demo-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: 0.5rem; padding-top: 0.9rem; border-top: 1px solid #1a1a1a;
}
html.dark .demo-total { border-color: rgba(255,255,255,.4); }
.demo-total strong { font-size: 1.75rem; font-weight: 400; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-quote.is-bad .demo-total strong { text-decoration: line-through; opacity: .45; }
.demo-lead { margin-top: 0.5rem; font-size: 0.875rem; color: #6b7280; }
html.dark .demo-lead { color: #94a3b8; }
.demo-note { margin-top: 1.25rem; font-size: 0.75rem; color: #9ca3af; }
html.dark .demo-note { color: #71717a; }
