/* === Hero demo === */

.demo-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  position: relative;
  font-family: var(--font);
}
.demo-chrome {
  height: 36px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}
.demo-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.demo-chrome .url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-left: 12px;
  letter-spacing: 0.02em;
}
.demo-body { padding: 20px 22px 22px; }
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.demo-head h4 {
  font-size: 14px;
  letter-spacing: -0.005em;
}
.demo-head .pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
}
.demo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.demo-stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.demo-stat .lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.demo-stat .val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.demo-stat .delta { font-size: 11px; font-weight: 600; color: var(--green); }
.demo-table {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.demo-table-head,
.demo-row { grid-template-columns: 80px 1fr 110px 90px; }
.demo-table-head {
  display: grid;
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.demo-row {
  display: grid;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  align-items: center;
  transition: background .25s;
}
.demo-row:first-child { border-top: 0; }
.demo-row.highlight { background: color-mix(in oklab, var(--accent) 15%, transparent); }
.demo-row .id { font-family: var(--font-mono); color: var(--ink-3); font-size: 12px; }
.demo-row .name { color: var(--ink); font-weight: 500; }
.demo-row .stage {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
}
.stage-quoted   { background: var(--blue-soft);   color: var(--blue); }
.stage-progress { background: var(--accent-soft); color: #8a6a1d; }
.stage-ready,
.stage-paid     { background: var(--green-soft);  color: var(--green); }
.stage-invoiced { background: var(--plum-soft);   color: var(--plum); }
.demo-row .progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.demo-row .progress > span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width .6s cubic-bezier(.4,.1,.3,1);
}
.demo-toast {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  font-weight: 500;
}
.demo-toast.show { opacity: 1; transform: translateY(0); }
.demo-toast .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
