/* The flow demo: two phones, six beats, shown in the hero and on
   animation.html. Everything is scoped under .demo; the markup is built by
   js/demo.js. Tokens mirror style.css :root. */

.demo {
  --ink: #08090A; --ink-raised: #141618; --milk: #FDF7F4; --blush: #FFC2D1;
  --violet: #6D4AFF; --azure: #2C7CFF;
  --positive: #0FB77E; --positive-dark: #0A7355;
  --slate-60: #6B7280;
  --white-60: rgba(255,255,255,.62); --white-12: rgba(255,255,255,.12);
  --grad-brand: linear-gradient(135deg,#6D4AFF 0%,#2C7CFF 100%);
  --r-pill: 999px; --r-card: 24px; --r-tight: 12px;
  --font-display: "Cabinet Grotesk","Helvetica Neue",Arial,sans-serif;
  --font-text: "Satoshi","Helvetica Neue",Arial,sans-serif;
  --ease-enter: cubic-bezier(.32,.72,0,1); --ease-state: cubic-bezier(.4,0,.2,1);
  --W: 760px; --H: 600px;
  position: relative; width: 100%; max-width: var(--W); margin: 0 auto;
  font-family: var(--font-text); color: var(--milk);
  -webkit-font-smoothing: antialiased; user-select: none;
}
.demo *, .demo *::before, .demo *::after { box-sizing: border-box; margin: 0; padding: 0; }
.demo-frame { width: var(--W); height: var(--H); transform-origin: top left; position: relative; overflow: hidden; }

/* ---------- what each person is doing, next to their name ---------- */
.demo .who-say { color: var(--white-60); font-weight: 500; white-space: nowrap; }
.demo .who-say.strong { color: var(--milk); }

/* ---------- deck: the two phones ---------- */
.demo .deck { position: relative; display: grid; grid-template-columns: 300px 88px 300px; padding: 24px 36px 0; }
/* Column states: .dim = whole column back; .hold = phone frozen dark while the
   name line is being written; neither = this phone is playing. */
.demo .col .who { transition: opacity 500ms var(--ease-state); }
.demo .col .phone { transition: filter 500ms var(--ease-state); }
/* A scrim darkens a phone that is not in play. Opacity would let the
   background through and make the phone look like glass; this keeps it a
   solid object that is simply in shadow. */
.demo .phone::after { content: ""; position: absolute; inset: 0; background: rgba(8,9,10,.74); opacity: 0; transition: opacity 500ms var(--ease-state); z-index: 20; pointer-events: none; border-radius: inherit; }
.demo .col.dim .phone::after, .demo .col.hold .phone::after { opacity: 1; }
.demo .col.dim .phone, .demo .col.hold .phone { filter: saturate(.5); }
.demo .col.dim .who { opacity: .35; }
.demo .col.hold .who, .demo .col:not(.dim) .who { opacity: 1; }
.demo .who-caret { display: inline-block; width: 1.5px; height: 13px; background: var(--milk); margin-left: 1px; vertical-align: -2px; opacity: 0; }
.demo .who-caret.on { opacity: 1; animation: demo-blink 1s step-end infinite; }
.demo .who { height: 40px; padding-bottom: 8px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--white-60); letter-spacing: .01em; }
.demo .who .avatar { font-variant-numeric: tabular-nums; color: var(--milk); font-size: 13px; font-weight: 700; margin-right: 2px; }
.demo .who b { color: var(--milk); font-weight: 700; }
.demo .phone { width: 300px; height: 480px; border-radius: 28px; overflow: hidden; position: relative; z-index: 1; display: flex; flex-direction: column; background: var(--milk); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(8,9,10,.45), 0 0 0 1px rgba(255,255,255,.1); }
.demo .p-body { flex: 1; position: relative; overflow: hidden; }
/* A new screen inflates into place — a little small and low, then swelling
   just past full size and settling, the way a held message's reactions do.
   Slow enough to follow, nothing like the sideways swing of the deck, so a
   new screen and a new person never read as the same move. The old screen
   stays put and opaque underneath until the new one has landed. */
.demo .screen { position: absolute; inset: 0; overflow: hidden; opacity: 0; transform: scale(.8) translateY(18px); transform-origin: 50% 62%; display: flex; flex-direction: column; z-index: 0; }
.demo .screen.visible { opacity: 1; transform: none; z-index: 2; animation: demo-inflate 780ms cubic-bezier(.2, .8, .2, 1) both; }
.demo .screen.leaving { opacity: 1; transform: none; z-index: 1; animation: none; }
/* Small and low → swells past full, a touch wider than tall → squeezes back
   the other way → settles. The squash is what makes it feel held, not shown. */
@keyframes demo-inflate {
  0%   { opacity: 0; transform: scale(.8) translateY(18px); }
  45%  { opacity: 1; }
  58%  { transform: scale(1.045, .975) translateY(-3px); }
  78%  { transform: scale(.985, 1.012) translateY(1px); }
  100% { opacity: 1; transform: none; }
}
.demo .s-milk { background: var(--milk); color: var(--ink); }
.demo .s-blush { background: var(--blush); color: var(--ink); }
.demo .p-pad { padding: 20px 18px; height: 100%; overflow: hidden; font-size: 14px; }
/* Pieces of a screen arrive one at a time, in step with the person. */
.demo .reveal { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--ease-enter), transform 420ms var(--ease-enter); }
.demo .reveal.in { opacity: 1; transform: none; }
.demo .p-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.demo .p-field-label { font-size: 12px; font-weight: 500; margin-top: 16px; display: flex; align-items: center; gap: 4px; color: rgba(8,9,10,.7); }
.demo .name-tip { display: inline-flex; align-items: center; color: rgba(8,9,10,.4); }
.demo .name-tip .tip-bubble { display: none; }
.demo .p-input { width: 100%; height: 44px; margin-top: 6px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid rgba(8,9,10,.3); background: transparent; font-size: 15px; color: var(--ink); display: flex; align-items: center; transition: border-color 240ms, box-shadow 240ms; }
.demo .p-input.filled { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(109,74,255,.18); }
.demo .p-input.code { letter-spacing: .12em; font-weight: 700; font-family: var(--font-display); font-size: 16px; flex: 0 1 140px; height: 44px; }
.demo .p-input.code.empty { color: rgba(8,9,10,.35); letter-spacing: .05em; font-weight: 500; font-family: var(--font-text); font-size: 14px; }
.demo .p-input-cursor { display: inline-block; width: 1.5px; height: 14px; background: var(--violet); margin-left: 1px; animation: demo-blink 1s step-end infinite; }
@keyframes demo-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.demo .btn { height: 44px; padding: 0 22px; border-radius: var(--r-pill); font-family: var(--font-text); font-size: 15px; font-weight: 500; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform 120ms var(--ease-state), opacity 240ms; }
.demo .btn.pressing { transform: scale(.96); }
.demo .btn-primary { background: var(--ink); color: var(--milk); }
.demo .btn-accent { background: var(--blush); color: var(--ink); }
.demo .s-blush .btn-accent { background: var(--ink); color: var(--milk); }
.demo .btn-secondary { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.demo .btn-small { height: 30px; padding: 0 12px; font-size: 11px; }
.demo .btn.dim { opacity: .38; }
.demo .control-row { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.demo .note { font-size: 13px; color: rgba(8,9,10,.55); margin-top: 12px; min-height: 16px; }
.demo .note.lit { color: var(--ink); font-weight: 500; }
.demo .code-display { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; padding: 8px 18px; border-radius: var(--r-pill); background: rgba(8,9,10,.06); }
.demo .code-text { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .12em; }
.demo .people { list-style: none; }
.demo .people li { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(8,9,10,.14); font-size: 15px; transition: opacity 400ms; }
.demo .people li:last-child { border-bottom: none; }
.demo .people .person { font-weight: 500; }
.demo .people .you { font-weight: 400; opacity: .6; }
.demo .people .status { color: var(--slate-60); font-variant-numeric: tabular-nums; }
.demo .people .status.good { color: var(--positive-dark); font-weight: 500; }
.demo .tick { color: var(--positive-dark); font-weight: 700; }
.demo .timeline { list-style: none; margin-top: 14px; transition: opacity 400ms; }
.demo .tl-row { padding: 12px 0; border-bottom: 1px solid rgba(8,9,10,.14); }
.demo .tl-row:last-child { border-bottom: none; }
.demo .tl-head { font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.demo .tl-states { display: flex; gap: 5px; margin-top: 8px; list-style: none; }
.demo .tl-state { padding: 3px 10px; border-radius: var(--r-pill); border: 1.5px solid rgba(8,9,10,.2); opacity: .4; font-size: 12px; font-weight: 500; transition: opacity 240ms, background 240ms, color 240ms, border-color 240ms; white-space: nowrap; }
.demo .tl-state.on { opacity: 1; background: var(--ink); color: var(--milk); border-color: var(--ink); }
.demo .tl-state.done { opacity: 1; background: var(--positive-dark); color: var(--milk); border-color: transparent; }
.demo .tl-state.done::before { content: "✓ "; }
.demo .card { margin-top: 4px; padding: 18px; border-radius: var(--r-card); background: rgba(255,255,255,.55); opacity: 0; transform: translateY(6px); transition: opacity 400ms var(--ease-enter), transform 400ms var(--ease-enter); }
.demo .card.in { opacity: 1; transform: none; }
.demo .card-text { font-size: 16px; font-weight: 500; }
.demo .terms { list-style: none; margin-top: 10px; }
.demo .terms li { font-size: 14px; padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.demo .terms li::before { content: "·"; width: 18px; text-align: center; opacity: .5; }
.demo .verdict { margin-top: 12px; padding: 16px 18px; border-radius: var(--r-card); font-size: 16px; font-weight: 500; background: rgba(15,183,126,.16); color: var(--positive-dark); opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease-enter), transform 600ms var(--ease-enter); display: flex; gap: 10px; align-items: flex-start; line-height: 1.3; }
.demo .verdict.visible { opacity: 1; transform: none; }
.demo .verdict svg { flex: none; margin-top: 1px; }
.demo .p-toast { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--ink); color: var(--milk); font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: var(--r-pill); white-space: nowrap; opacity: 0; transition: opacity 240ms var(--ease-enter), transform 240ms var(--ease-enter); pointer-events: none; z-index: 10; }
.demo .p-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.demo .panel-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 6px; }
.demo .panel-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.demo #hLockLine { position: absolute; left: 16px; right: 16px; bottom: 14px; }

/* ---------- camera ---------- */
.demo .camera { flex: 1; background: radial-gradient(120% 90% at 50% 40%, #232629 0%, #121416 60%, #0b0c0d 100%); position: relative; overflow: hidden; }
.demo .camera::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); pointer-events: none; }
.demo .face { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo .face .head { transition: transform 700ms var(--ease-enter); transform-box: fill-box; transform-origin: 50% 60%; }
.demo .face .feat { transition: transform 700ms var(--ease-enter); transform-box: fill-box; transform-origin: 50% 50%; }
.demo .cam-guide { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.demo .cam-guide ellipse { transition: stroke 300ms, opacity 300ms; }
.demo .cam-guide.ok ellipse { stroke: var(--positive); opacity: .9; }
.demo .cam-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; z-index: 3; }
.demo .cam-dots { display: flex; gap: 5px; }
.demo .cam-dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: rgba(255,255,255,.3); transition: background 240ms, transform 240ms; }
.demo .cam-dot.on { background: var(--milk); transform: scale(1.35); }
.demo .cam-dot.done { background: var(--positive); transform: none; }
.demo .cam-local { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--milk); background: rgba(8,9,10,.72); padding: 4px 9px 4px 7px; border-radius: var(--r-pill); }
.demo .cam-panel { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(8,9,10,.72); color: var(--milk); opacity: 0; transition: opacity 300ms; z-index: 3; }
.demo .cam-panel.in { opacity: 1; }
.demo .cam-instruction { font-size: 17px; font-weight: 500; line-height: 1.25; }
.demo .cam-hint { font-size: 13px; color: var(--white-60); margin-top: 2px; min-height: 15px; }
.demo .cam-hint:empty { display: none; }
.demo .cam-cue { position: absolute; width: 48px; height: 48px; border-radius: var(--r-pill); background: rgba(8,9,10,.78); color: var(--milk); display: grid; place-items: center; opacity: 0; transition: opacity 240ms, top 300ms var(--ease-state), left 300ms var(--ease-state); z-index: 3; top: 50%; left: 50%; margin: -24px 0 0 -24px; }
.demo .cam-cue.visible { opacity: 1; animation: demo-cue-pulse 1.4s var(--ease-state) infinite; }
.demo .cam-cue svg { transition: transform 200ms var(--ease-state); }
.demo .cam-cue.left { left: 34px; } .demo .cam-cue.left svg { transform: rotate(-90deg); }
.demo .cam-cue.right { left: calc(100% - 34px); } .demo .cam-cue.right svg { transform: rotate(90deg); }
.demo .cam-cue.up { top: 62px; }
.demo .cam-cue.down { top: calc(100% - 96px); } .demo .cam-cue.down svg { transform: rotate(180deg); }
.demo .cam-cue.shuffle { animation: none; opacity: 1; }
@keyframes demo-cue-pulse { 0%,100% { opacity: .95; } 50% { opacity: .5; } }
.demo .cam-ring { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: var(--r-pill); border: 3px solid rgba(255,255,255,.22); border-top-color: var(--milk); animation: demo-spin 900ms linear infinite; opacity: 0; transition: opacity 200ms; z-index: 3; }
.demo .cam-ring.visible { opacity: 1; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo .cam-mark { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: 0; transition: opacity 200ms; z-index: 3; }
.demo .cam-mark.visible { opacity: 1; }
.demo .cam-mark .mark-ring { stroke-dasharray: 180; stroke-dashoffset: 180; }
.demo .cam-mark .mark-check { stroke-dasharray: 80; stroke-dashoffset: 80; }
.demo .cam-mark.visible .mark-ring { animation: demo-draw 500ms var(--ease-enter) forwards; }
.demo .cam-mark.visible .mark-check { animation: demo-draw 360ms var(--ease-enter) 440ms forwards; }
@keyframes demo-draw { to { stroke-dashoffset: 0; } }

/* ---------- the wire between the phones ---------- */
.demo .wire { position: relative; height: 480px; margin-top: 40px; }
.demo .wire-line { position: absolute; left: 10px; right: 10px; top: 50%; height: 0; border-top: 1.5px dashed rgba(255,255,255,.14); }
.demo .packet { position: absolute; top: 50%; left: 0; transform: translate(0,-50%); height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--milk); color: var(--ink); font-size: 11px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.6); pointer-events: none; }
.demo .packet.good { background: var(--positive); color: var(--ink); }

/* ---------- the handshake pieces: chips, stage, slot, stamp ---------- */
.demo .p-eyebrow { font-size: 11px; font-weight: 500; color: var(--slate-60); margin-bottom: 4px; letter-spacing: .02em; }
.demo .p-sub { font-size: 13px; line-height: 1.45; color: rgba(8,9,10,.75); margin-top: 12px; }
.demo .p-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.demo .p-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); border: 1.5px solid rgba(8,9,10,.18); font-size: 12px; font-weight: 500; white-space: nowrap; }
.demo .p-chip.ok { background: rgba(15,183,126,.14); border-color: transparent; color: var(--positive-dark); }
.demo .p-stage { margin-top: 16px; height: 150px; border-radius: 22px; background: var(--ink-raised); display: grid; place-items: center; box-shadow: 0 20px 40px -16px rgba(8,9,10,.5); }
.demo .btn-primary-dark { background: var(--milk); color: var(--ink); }
.demo .p-slot { margin-top: 14px; padding: 12px; border-radius: 16px; border: 1.5px dashed rgba(8,9,10,.3); transition: border-color 300ms, background 300ms; }
.demo .p-slot.filled { border-style: solid; border-color: rgba(8,9,10,.16); background: rgba(255,255,255,.55); }
.demo .p-slot-empty { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.demo .p-slot.filled .p-slot-empty { display: none; }
.demo .p-slot-text { font-size: 13px; font-weight: 500; }
.demo .p-slot .tl-states { margin-top: 6px; flex-wrap: wrap; }
.demo .p-slot .tl-state { font-size: 10.5px; padding: 2px 8px; }
.demo .p-slot-card { display: none; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
.demo .p-slot.filled .p-slot-card { display: grid; animation: demo-arrive 700ms var(--ease-enter) both; }
@keyframes demo-arrive { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.demo .p-stamp { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #232629 0%, #121416 60%, #0b0c0d 100%); transition: opacity 600ms var(--ease-state), filter 600ms var(--ease-state), transform 600ms var(--ease-enter); }
.demo .p-stamp.blank { background: rgba(8,9,10,.08); }
.demo .p-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo .p-stamp-code { position: absolute; left: 6px; bottom: 5px; font-size: 6px; font-weight: 500; color: rgba(253,247,244,.9); background: rgba(8,9,10,.55); padding: 1px 5px; border-radius: var(--r-pill); letter-spacing: .04em; }
.demo .p-stamp.seen { opacity: .18; filter: blur(2px); transform: scale(.96); }
.demo .p-stamp-cap { font-size: 12px; font-weight: 500; color: var(--slate-60); margin-bottom: 8px; }
.demo .p-stamp-cap.good { color: var(--positive-dark); }
.demo .p-review { display: grid; grid-template-columns: 84px 1fr; gap: 12px; margin-top: 14px; align-items: start; }
.demo .p-review .p-chips { margin-top: 0; }
.demo .verdict.small { font-size: 13px; padding: 10px 12px; margin-top: 0; gap: 6px; line-height: 1.3; }
.demo .p-slot-card .p-chips { margin-top: 8px; }
.demo .p-accept { height: 32px; padding: 0 14px; font-size: 12px; }
.demo #hDoneRow { margin-top: 12px; }
.demo .cam-instruction.count { font-family: var(--font-display); font-size: 30px; line-height: 1; animation: demo-pop 320ms var(--ease-enter); }
@keyframes demo-pop { from { transform: scale(.9); } to { transform: none; } }
.demo .screen.snap .camera { box-shadow: inset 0 0 0 5px var(--milk); }
.demo .camera { transition: box-shadow 200ms; }

/* ---------- stack mode: one phone at a time, on a phone ----------
   Under 680px the two phones become a deck. The one in play sits centred;
   the other waits at the edge, turned away like a card about to be swiped.
   Switching sides swings them past each other. */
.demo.stack { --ps: 1; }
.demo.stack .demo-frame { width: 100%; height: auto; transform: none !important; }
.demo.stack .deck { display: grid; grid-template-columns: 1fr; grid-template-rows: 44px calc(480px * var(--ps)); padding: 12px 12px 16px; align-items: center; justify-items: center; }
.demo.stack .col { display: contents; }
/* One name line at a time, in the same spot: the person in play. The other
   one's line is off until the deck swings to them. */
/* The name line is part of the card: same width as the phone, same left
   edge at every screen width, and it swings out with the same move and
   timing as the phone below it. */
.demo.stack .who { grid-area: 1 / 1; justify-self: center; width: calc(300px * var(--ps)); padding-left: 4px; height: 44px; padding-bottom: 12px; font-size: 14px; transition: opacity 400ms var(--ease-state), transform 760ms cubic-bezier(.22,1,.36,1); }
.demo.stack[data-front="guest"] #hostCol .who { opacity: 0; transform: translateX(-64%); pointer-events: none; }
.demo.stack[data-front="host"] #guestCol .who { opacity: 0; transform: translateX(64%); pointer-events: none; }
.demo.stack .phone { grid-area: 2 / 1; transition: transform 760ms cubic-bezier(.22,1,.36,1), opacity 400ms var(--ease-state), visibility 400ms, filter 500ms var(--ease-state); transform: scale(var(--ps)); }
.demo.stack[data-front="guest"] #hostCol .phone { transform: translateX(-64%) rotate(-11deg) scale(calc(.86 * var(--ps))); z-index: 0; opacity: 0; visibility: hidden; pointer-events: none; }
.demo.stack[data-front="host"] #guestCol .phone { transform: translateX(64%) rotate(11deg) scale(calc(.86 * var(--ps))); z-index: 0; opacity: 0; visibility: hidden; pointer-events: none; }
.demo.stack .wire { grid-area: 2 / 1; width: 100%; height: 100%; margin: 0; pointer-events: none; z-index: 3; }
.demo.stack .wire-line { display: none; }
.demo.stack .packet { top: calc(240px * var(--ps)); }
.demo.stack .demo-controls { margin-top: 14px; margin-bottom: 8px; }
.demo.stack .outro-wordmark { font-size: 30px; }

/* ---------- controls: play, pause, reset, circle timer pie beneath cards ---------- */
.demo .demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  position: relative;
  z-index: 60;
  pointer-events: auto;
}
.demo .demo-ctrl-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 22, 24, .75);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.demo .demo-ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--white-60);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 150ms var(--ease-state), color 150ms var(--ease-state), transform 120ms var(--ease-state);
}
.demo .demo-ctrl-btn:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--milk);
}
.demo .demo-ctrl-btn:active {
  transform: scale(.92);
}
.demo .demo-ctrl-btn.active {
  background: rgba(255, 255, 255, .18);
  color: var(--milk);
}
.demo .demo-ctrl-btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.demo .demo-ctrl-btn .icon-play {
  display: block;
  margin-left: 1px;
}
.demo .demo-ctrl-btn .icon-pause {
  display: none;
}
.demo .demo-ctrl-btn.is-playing .icon-play {
  display: none;
}
.demo .demo-ctrl-btn.is-playing .icon-pause {
  display: block;
}
.demo .demo-ctrl-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, .16);
  margin: 0 2px;
}
.demo .demo-pie {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .28);
  background: conic-gradient(var(--milk) var(--deg, 0deg), rgba(255, 255, 255, .12) var(--deg, 0deg));
  background-clip: padding-box;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  flex: none;
  transition: border-color 150ms var(--ease-state), transform 150ms var(--ease-state);
}
.demo .demo-pie:hover {
  border-color: rgba(255, 255, 255, .6);
  transform: scale(1.12);
}
.demo .demo-pie:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.demo .outro { position: absolute; inset: 0; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 800ms ease; z-index: 50; }
.demo .outro.visible { opacity: 1; }
.demo .outro-wordmark { font-family: var(--font-display); font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--milk); }
.demo .outro-sub { color: var(--white-60); font-size: 15px; margin-top: 10px; }
.demo .outro-mark { width: 56px; height: 56px; margin-bottom: 20px; }
.demo .outro-mark .mark-ring { stroke-dasharray: 180; stroke-dashoffset: 180; }
.demo .outro-mark .mark-check { stroke-dasharray: 80; stroke-dashoffset: 80; }
.demo .outro.visible .mark-ring { animation: demo-draw 500ms var(--ease-enter) 200ms forwards; }
.demo .outro.visible .mark-check { animation: demo-draw 360ms var(--ease-enter) 640ms forwards; }
.demo .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  

/* ---------- living inside style.css ----------
   The demo reuses the app's class names on purpose, so it reads as the app.
   style.css therefore also matches these nodes; anything it sets that the
   demo does not is undone here. */
.demo .btn, .demo .btn-small { min-height: 0; }
.demo .terms li { text-indent: 0; }
.demo .card, .demo .people li, .demo .tl-row, .demo .tl-state { animation: none; }
.demo .code-display { margin-top: 12px; }
.demo .p-input, .demo .btn { cursor: default; }
.demo .p-title { max-width: none; }
