/* Demo page: same frame as the whitepaper (docs.css), plus the video, the simulator and its two boards. */
.dwrap { max-width: 1120px; margin: 0 auto; padding: clamp(32px, 6vh, 64px) clamp(16px, 5vw, 48px) 96px; }
.dwrap > section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.eyebrow { color: var(--faint); letter-spacing: .16em; text-transform: uppercase; font-size: 11px; margin-bottom: 14px; }
.intro h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.03; font-weight: 300; letter-spacing: -.025em; max-width: 12em; }
.intro h1 strong { font-weight: 700; }
.intro .lede { margin-top: 20px; font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); max-width: 40em; }

.btn { font: 600 15px 'Poppins', system-ui, sans-serif; height: 46px; padding: 0 20px; border-radius: 10px; border: 1.5px solid #fff; background: #fff; color: #000; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, transform .12s; }
.btn:hover { background: transparent; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn.ghost:hover { background: #fff; color: #000; border-color: #fff; }
.btn[aria-pressed="true"] { background: #fff; color: #000; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.film { margin-top: 48px; padding-top: 0; border-top: 0; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: 16px; }
.cap { margin-top: 10px; color: var(--faint); font-size: 12px; }

.sim-head { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: end; justify-content: space-between; }
.sim-head h2 { margin-bottom: 8px; }
.sim-head p { max-width: 34em; font-size: 15px; }
.sim-head b { color: #fff; font-weight: 600; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }

.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stats > div { background: #000; padding: 14px 16px; min-width: 0; }
.stats dt { color: var(--faint); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; }
.stats dd { margin-top: 6px; font-size: clamp(18px, 2vw, 24px); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tag { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid rgba(255,211,107,.45); border-radius: 999px; color: var(--warn); font-size: 9px; letter-spacing: .1em; vertical-align: 1px; }

.log { margin-top: 18px; min-height: 3.4em; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); color: var(--muted); font-size: 14px; line-height: 1.65; }
.log b { color: #fff; font-weight: 600; }
.log .burn { color: #ffb36b; font-weight: 600; }
.log .good, .good { color: var(--good); font-weight: 600; }

.boards { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.board { border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 10px; background: rgba(255,255,255,.02); min-width: 0; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.board h3 { font-size: 15px; font-weight: 600; }
.board h3 small { color: var(--faint); font-weight: 400; font-size: 12px; margin-left: 6px; }
.count { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.next { margin-top: 6px; color: var(--muted); font-size: 13px; min-height: 1.6em; }
.queue, .done { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 0; max-height: 520px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.queue li.q { display: grid; grid-template-columns: 28px minmax(0, 1.1fr) minmax(60px, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.queue li.q:first-child, .done li:first-child { border-top: 0; }
.rank { color: var(--faint); font-size: 12px; text-align: right; }
.who { display: grid; min-width: 0; font-size: 14px; line-height: 1.3; }
.who small, .worth small, .amt small { color: var(--faint); font-size: 11px; }
.worth { text-align: right; display: grid; font-size: 13px; line-height: 1.3; }
.meter { position: relative; height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #5ab8ff, #ffe26b 70%, #fff); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.q.top { background: linear-gradient(90deg, rgba(255,255,255,.06), transparent 70%); border-radius: 8px; }
.q.top .rank { color: #fff; font-weight: 600; }
.mini { font: 500 12px 'Poppins', system-ui, sans-serif; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--muted); cursor: pointer; }
.mini:hover { border-color: #fff; color: #fff; }
.done li.d { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
.done li.d span { color: var(--faint); font-size: 12px; }
.done li.paid .amt { color: var(--good); font-weight: 600; font-size: 13px; }
.done li.exited .amt { color: #fff; font-size: 13px; }
.empty { color: var(--faint); font-size: 13px; padding: 10px 2px; }
.fresh { animation: pop .7s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { background-color: rgba(255,255,255,.16); } to { background-color: transparent; } }
.flash .stats { animation: glow 1.1s ease-out; }
@keyframes glow { from { box-shadow: 0 0 0 1px rgba(138,255,193,.9), 0 0 40px rgba(138,255,193,.25); } to { box-shadow: 0 0 0 1px transparent; } }

.rules .steps li > span { min-width: 0; }
.small { font-size: 13px; margin-top: 16px; }
.honest { border: 1px solid rgba(255,211,107,.4); border-radius: 16px; padding: 22px 22px 24px; }
.honest h2 { color: var(--warn); }
.honest b { color: #fff; }
footer a { color: var(--faint); text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .boards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .controls .btn { width: 100%; padding: 0 10px; }
  .cta-row .btn { flex: 1 1 auto; }
  .queue li.q { grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 8px; }
  .queue li.q .meter { grid-column: 2 / -1; grid-row: 2; }
  .top nav a.opt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fresh, .flash .stats { animation: none; }
  .meter i { transition: none; }
}
