/* The one-minute demo ("Watch a 1-minute demo"): a recording of the real flow, in the Direction E look. White
   ground, ink text, one blue, the highlighter for the current step and a picked item, the five band colors.
   Every color, radius and typeface is a design token; the block below repeats the tokens on .demo, so the demo
   looks the same on a page that does not load them. Motion keeps to three speeds:
   150ms for hover and press, 250ms for things arriving, 600ms for counts. None under prefers-reduced-motion. */
/* tokens:start */
/* Generated from tokens.json version 3 by tools/brand/build-tokens.mjs. Do not edit by hand. */
.demo{
  --bg:#FFFFFF;
  --bg-card:#F6F7F9;
  --bg-elevated:#FFFFFF;
  --border:#E4E7EC;
  --line:#EEF0F4;
  --line2:#D9DCE3;
  --text:#0B1020;
  --text-muted:#5B6170;
  --text-dim:#B9BECA;
  --blue:#2563EB;
  --blue-hover:#1D4ED8;
  --blue-glow:#2563EB;
  --on-blue:#FFFFFF;
  --blue-tint:#EEF4FF;
  --highlight:#FFD60A;
  --highlight-soft:#FFF7CC;
  --highlight-panel:#FFF4B8;
  --state-hover:var(--bg-card);
  --state-selected:var(--highlight-soft);
  --focus-ring:var(--blue);
  --band-strong:#17663F;
  --band-steady:#1F5FA8;
  --band-mixed:#7A5200;
  --band-fast:#A3470F;
  --band-fastest:#9B2226;
  --band-strong-soft:#E6F4EC;
  --band-steady-soft:#E8F0FA;
  --band-mixed-soft:#FBF1DC;
  --band-fast-soft:#FCEBDD;
  --band-fastest-soft:#FBE9E9;
  --band-fastest-option-plum:#6D2E6B;
  --cost-1:#CFE0FF;
  --cost-2:#8FB4FF;
  --cost-3:#3D7BFF;
  --cost-4:#1741A6;
  --accent-teal:#14b8a6;
  --thoob-yellow:#fde047;
  --font-display:"Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-sans:"Inter", system-ui, sans-serif;
  --font-mono:"DM Mono", ui-monospace, monospace;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-7:28px;
  --space-8:32px;
  --radius-sm:12px;
  --radius-md:16px;
  --radius-card:20px;
  --radius-lg:28px;
  --radius-pill:999px;
  --radius-full:50%;
  --shadow-paper:0 14px 34px rgba(11,16,32,0.10);
  --shadow-pin:0 1px 3px rgba(11,16,32,0.25);
  --target-min:44px;
  --ask-first-screen:600px;
}
/* tokens:end */
.demo{color:var(--text);font-family:var(--font-sans);background:var(--bg);border-radius:var(--radius-card);padding:var(--space-3)}
.demo *{box-sizing:border-box}
.demo-head{display:flex;flex-direction:column;gap:var(--space-3);margin-bottom:var(--space-3)}
.demo-head h2{font-family:var(--font-display);font-weight:800;font-size:clamp(24px,6vw,30px);line-height:1.1;letter-spacing:-.03em;margin:0;color:var(--text)}
.demo-head h2 em{font-style:normal;color:var(--blue)}
.demo-tabs{display:flex;gap:6px;flex-wrap:wrap}
.demo-tabs button{min-height:var(--target-min);padding:0 18px;border-radius:var(--radius-pill);border:1.5px solid var(--text);background:var(--bg);color:var(--text);font:600 15px var(--font-sans);cursor:pointer;transition:background .15s,color .15s}
.demo-tabs button:hover{background:var(--state-hover)}
.demo-tabs button[aria-selected="true"]{background:var(--text);color:var(--on-blue)}
.demo :focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}

.demo-stage{position:relative;background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-card);overflow:hidden;display:flex;flex-direction:column;height:560px}
.demo-top{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1.5px solid var(--line)}
.demo-face{width:34px;height:34px;flex:none;border-radius:var(--radius-full);background:var(--blue)}
.demo-top b{font-size:15px;font-weight:600;white-space:nowrap}
.demo-pill{margin-left:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:600;color:var(--text);white-space:nowrap;box-shadow:inset 0 -3px 0 var(--highlight);padding:4px 2px}
.demo-clock{flex:none;font:500 18px var(--font-mono);font-variant-numeric:tabular-nums;min-width:52px;text-align:right;color:var(--text)}
.demo-stage[data-clock="paused"] .demo-clock{color:var(--band-mixed);animation:demo-blink 1s steps(2) infinite}
.demo-stage[data-clock="stopped"] .demo-clock{color:var(--band-strong)}
@keyframes demo-blink{50%{opacity:.35}}

.demo-feed{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;scrollbar-width:none}
.demo-feed::-webkit-scrollbar{display:none}
.demo-feed>*{opacity:0;transform:translateY(10px);transition:opacity .25s ease,transform .25s ease}
.demo-feed>.in{opacity:1;transform:none}

.demo-mono{font:500 14px var(--font-mono);letter-spacing:.02em;color:var(--text-muted)}
.demo-who{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1.5px dashed var(--line2);border-radius:var(--radius-sm)}
.demo-who b{font-weight:600;font-size:15px}
/* the ask screen in small: who is asking, the question, the one box */
.demo-ask{display:flex;flex-direction:column;align-items:center;gap:10px;padding:var(--space-4) var(--space-3)}
.demo-switch{font-size:14px;font-weight:600;color:var(--on-blue);background:var(--text);border-radius:var(--radius-pill);padding:6px 14px}
.demo-q{font-family:var(--font-display);font-weight:800;font-size:24px;line-height:1.1;letter-spacing:-.03em;text-align:center}
.demo-box{display:flex;align-items:center;gap:8px;width:100%;max-width:340px;min-height:48px;padding:4px 4px 4px 18px;border:2.5px solid var(--text);border-radius:var(--radius-pill);background:var(--bg)}
.demo-typed{flex:1;min-width:0;font-size:17px;line-height:1.3;min-height:1.3em}
.demo-go{flex:none;width:40px;height:40px;border-radius:var(--radius-full);background:var(--blue);color:var(--on-blue);display:grid;place-items:center}
/* Mr Thoob and his two lines */
.demo-thoob{display:flex;align-items:center;gap:10px}
.demo-bubble{display:flex;flex-direction:column;padding:8px 14px;border:1.5px solid var(--text);border-radius:var(--radius-md);background:var(--bg)}
.demo-bubble strong{font-family:var(--font-display);font-weight:800;font-size:17px;line-height:1.25;letter-spacing:-.02em}
.demo-bubble span{font-size:14px;line-height:1.35}
.demo-thoob[data-mood="thinking"] .demo-face{animation:demo-think .8s ease-in-out infinite}
@keyframes demo-think{50%{box-shadow:0 0 0 6px var(--blue-tint)}}

.demo-card,.demo-guess,.demo-done{background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-md);padding:12px;display:flex;flex-direction:column;gap:8px}
.demo-title{font-family:var(--font-display);font-weight:800;font-size:19px;line-height:1.2;letter-spacing:-.02em}
.demo-marker{background:linear-gradient(101deg,transparent 0,var(--highlight) 3%,var(--highlight) 96%,transparent 100%);padding:.05em .4em;margin:0 -.15em;border-radius:.45em .15em .5em .2em}
.demo-note{font-size:14px;line-height:1.4;color:var(--text-muted)}
.demo-src{font-size:14px;font-weight:600;color:var(--blue);text-decoration:underline;text-underline-offset:3px;min-height:24px;display:inline-flex;align-items:center}
/* a row: the name and one true line, the band in words with a five-step meter, the score, and the round + */
.demo-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);transition:background .15s,border-color .15s}
.demo-row[data-picked]{background:var(--state-selected);border-color:var(--text)}
.demo-row-main{flex:1;min-width:0;display:grid;gap:2px}
.demo-row-t{font-size:15px;font-weight:600;line-height:1.25}
.demo-row-why,.demo-cost{font-size:14px;line-height:1.35;color:var(--text-muted)}
.demo-cost{color:var(--text)}
.demo-level{flex:none;display:flex;align-items:center;gap:10px;color:var(--band,var(--text))}
.demo-band-w{display:grid;gap:5px;justify-items:end;text-align:right}
.demo-band{font-size:14px;font-weight:600;line-height:1.2;white-space:nowrap}
.demo-meter{display:inline-flex;gap:3px}
.demo-meter i{width:11px;height:5px;border-radius:3px;background:var(--line2)}
.demo-meter i[data-on]{background:currentColor}
.demo-score{min-width:30px;text-align:right;font-family:var(--font-display);font-weight:800;font-size:24px;line-height:1;letter-spacing:-.03em;color:var(--text);font-variant-numeric:tabular-nums}
.demo-add{flex:none;width:30px;height:30px;border-radius:var(--radius-full);border:1.5px solid var(--text);display:grid;place-items:center;color:var(--text);background:var(--bg);transition:background .15s}
.demo-row[data-picked] .demo-add{background:var(--text);color:var(--on-blue)}
.demo [data-band="Strong"]{--band:var(--band-strong)}
.demo [data-band="Steady"]{--band:var(--band-steady)}
.demo [data-band="Mixed"]{--band:var(--band-mixed)}
.demo [data-band="Changing fast"]{--band:var(--band-fast)}
.demo [data-band="Changing fastest"]{--band:var(--band-fastest)}

/* the guess */
.demo-guess{border-color:var(--blue);position:relative}
.demo-ring{position:absolute;right:12px;top:10px;width:34px;height:34px;border-radius:var(--radius-full);border:2px solid var(--blue);display:grid;place-items:center;font:500 15px var(--font-mono);animation:demo-pulse 1s ease-in-out infinite}
@keyframes demo-pulse{50%{transform:scale(1.12)}}
.demo-opt{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:10px 12px;border-radius:var(--radius-sm);border:1.5px solid var(--text);background:var(--bg);color:var(--text);font:600 15px var(--font-sans);cursor:pointer;transition:background .15s,border-color .15s;animation:demo-in .25s ease both;animation-delay:calc(var(--i) * 70ms)}
.demo-opt:hover:not(:disabled){background:var(--state-hover)}
.demo-opt:disabled{cursor:default}
.demo-opt.right{border-color:var(--band-strong);background:var(--band-strong-soft)}
.demo-opt.wrong{border-color:var(--band-fast);background:var(--band-fast-soft)}
.demo-opt.other{border-color:var(--border)}
@keyframes demo-in{from{opacity:0;transform:translateY(8px)}}

/* the map */
.demo-map{position:relative;border-radius:var(--radius-sm);overflow:hidden;background:var(--bg-card)}
.demo-map img{display:block;width:100%;height:auto}
.demo-bub{position:absolute;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:var(--radius-full);border:1.5px solid var(--text);background:var(--bg);transform:scale(0);transition:transform .25s cubic-bezier(.3,1.6,.5,1)}
.demo-bub.in{transform:none}
.demo-bub[data-home]{box-shadow:0 0 0 3px var(--highlight)}
.demo [data-cost="cost-1"]{background:var(--cost-1)}
.demo [data-cost="cost-2"]{background:var(--cost-2)}
.demo [data-cost="cost-3"]{background:var(--cost-3)}
.demo [data-cost="cost-4"]{background:var(--cost-4)}
.demo-key{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:14px;color:var(--text-muted)}
.demo-key-step{display:inline-flex;align-items:center;gap:5px}
.demo-key-step i{width:12px;height:12px;border-radius:var(--radius-full);border:1px solid var(--text)}
.demo-state{font-size:15px;font-weight:600}

/* the research document: a bar that counts as picks land, then the paper at the end */
.demo-doc{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;border-top:1.5px solid var(--line);font-size:14px;background:var(--bg-card)}
.demo-doc b{font-weight:600;white-space:nowrap}
.demo-doc-n{color:var(--text-muted);text-align:right}
.demo-doc.flash{animation:demo-flash .6s ease}
@keyframes demo-flash{0%,40%{background:var(--highlight)}100%{background:var(--bg-card)}}
.demo-done{align-items:center;text-align:center;border-color:var(--band-strong);padding:16px}
.demo-done-t{font-family:var(--font-display);font-weight:800;font-size:44px;line-height:1.1;letter-spacing:-.03em;color:var(--band-strong)}
.demo-paper{width:100%;text-align:left;display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:var(--radius-sm);background:var(--bg-card);box-shadow:var(--shadow-paper)}
.demo-paper-t{font-family:var(--font-display);font-weight:800;font-size:17px;line-height:1.2;letter-spacing:-.02em}
.demo-paper-h{display:flex;justify-content:space-between;font-size:14px;font-weight:600;color:var(--text-muted);margin-top:4px}
.demo-paper ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.demo-paper li{display:flex;justify-content:space-between;gap:10px;font-size:14px;font-weight:600;padding:6px 10px;border-radius:10px;background:var(--bg)}
.demo-paper-m{flex:none;font-weight:500;color:var(--text-muted)}
.demo-cta{min-height:52px;padding:0 30px;border-radius:var(--radius-pill);border:0;background:var(--blue);color:var(--on-blue);font:600 17px var(--font-sans);cursor:pointer;margin-top:6px;transition:background .15s}
.demo-cta:hover{background:var(--blue-hover)}

.demo-caption{min-height:3.2em;margin:0;padding:10px 14px 12px;border-top:1.5px solid var(--line);font-size:15px;line-height:1.45;color:var(--text);background:var(--bg)}
.demo-caption.in{animation:demo-in .25s ease}

.demo-ctrl{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:var(--space-3)}
.demo-ctrl button{min-height:var(--target-min);padding:0 16px;border-radius:var(--radius-pill);border:1.5px solid var(--text);background:var(--bg);color:var(--text);font:600 15px var(--font-sans);cursor:pointer;transition:background .15s}
.demo-ctrl button:hover{background:var(--state-hover)}
.demo-ctrl button.primary{background:var(--blue);border-color:var(--blue);color:var(--on-blue)}
.demo-ctrl button.primary:hover{background:var(--blue-hover)}
.demo-ctrl button[aria-pressed="true"]{background:var(--text);color:var(--on-blue)}
.demo-ai{margin-left:auto;font-size:14px;color:var(--text-muted)}
.demo[data-state="playing"] [data-test="demo-play"]{display:none}
.demo[data-state="playing"]:not([data-sound="on"]) [data-test="demo-sound"]{background:var(--blue);border-color:var(--blue);color:var(--on-blue)}
.demo:not([data-state="playing"]) [data-test="demo-skip"]{display:none}

@media (min-width:900px){.demo-stage{height:600px}}
@media (prefers-reduced-motion:reduce){
  .demo *,.demo *::before,.demo *::after{animation:none !important;transition:none !important}
  .demo-feed>*{opacity:1;transform:none}
  .demo-bub{transform:none}
}
