/* The strip across the top of the demo app, and the page around the phone. */
body.demo-app{margin:0;background:#F1F3EF}
.demo-strip{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:10px;padding:8px 14px calc(8px);padding-top:max(8px, env(safe-area-inset-top));background:#FFD200;color:#17212B;font:13px/1.3 "Atkinson Hyperlegible",system-ui,sans-serif;border-bottom:2px solid #17212B}
.demo-strip strong{font-family:"Archivo","Arial Narrow",system-ui,sans-serif;font-weight:800;letter-spacing:.02em;background:#17212B;color:#FFD200;border-radius:4px;padding:2px 7px}
.demo-strip span{flex:1}
.demo-strip a{color:#17212B;font-weight:700}
.demo-strip a:focus-visible{outline:3px solid #1F5FBF;outline-offset:2px}
/* Landing page */
.demo-hero .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(2rem,5vw,5rem);align-items:start}
.demo-hero h1{max-width:12ch}
.demo-try{margin:1.5rem 0;padding:0;list-style:none;display:grid;gap:.85rem}
.demo-try li{display:grid;grid-template-columns:2.2rem 1fr;gap:.75rem;align-items:start}
.demo-try b{display:grid;place-items:center;width:2.2rem;height:2.2rem;border-radius:50%;background:#17212B;color:#FFD200;font-family:var(--font-display);font-weight:800}
.demo-try span{padding-top:.2rem}
.demo-note{display:flex;gap:.6rem;align-items:flex-start;background:#fff;border:1px solid var(--rule);border-left:4px solid var(--plate);border-radius:8px;padding:.85rem 1rem;color:var(--slate);font-size:var(--step--1);max-width:46ch}
.demo-phone{position:sticky;top:1.5rem;width:390px;height:min(812px,calc(100vh - 3rem));border:12px solid #17212B;border-radius:44px;background:#17212B;box-shadow:0 30px 60px -20px rgba(23,33,43,.45);overflow:hidden}
.demo-phone iframe{display:block;width:100%;height:100%;border:0;border-radius:32px;background:#F1F3EF}
.demo-open{display:none}
@media (max-width:900px){.demo-hero .wrap{grid-template-columns:1fr}.demo-phone{display:none}.demo-open{display:inline-flex}}
/* "Take it for a test drive": a card with a QR code to scan or click (computers), a button (phones) */
.demo-qr { position: relative; display: flex; align-items: center; gap: 1.1rem; max-width: 31rem; margin-top: var(--space-m, 1.5rem); padding: .8rem 3.2rem .8rem .8rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.demo-qr:hover { border-color: var(--ink); box-shadow: 0 12px 26px -16px rgba(23, 33, 43, .5); }
.demo-qr:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.demo-qr-code { flex: none; width: 132px; height: 132px; }
.demo-qr-code svg { display: block; width: 100%; height: 100%; }
.demo-qr-text { display: grid; gap: .3rem; font-size: var(--step--1); line-height: 1.45; color: var(--slate); }
.demo-qr-text strong { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.15; color: var(--ink); }
.demo-qr-cursor { position: absolute; right: .7rem; bottom: .6rem; width: 2.6rem; height: 2.6rem; transition: transform .15s ease; }
.demo-qr:hover .demo-qr-cursor { transform: translate(-2px, -2px); }
.button.demo-qr-mobile { display: none; margin-top: var(--space-s, 1rem); }
@media (max-width: 56rem), (pointer: coarse) { .demo-qr { display: none; } .button.demo-qr-mobile { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .demo-qr, .demo-qr-cursor { transition: none; } .demo-qr:hover .demo-qr-cursor { transform: none; } }
/* Dashboard demo */
body.demo-manager{margin:0;background:#F1F3EF}
body.demo-manager .demo-strip{position:sticky}
.demo-toast{position:fixed;right:18px;bottom:18px;z-index:60;display:grid;gap:4px;max-width:360px;padding:12px 14px;background:#17212B;color:#fff;border-left:6px solid #FFD200;border-radius:10px;box-shadow:0 18px 40px -16px rgba(23,33,43,.6);font:14px/1.4 "Atkinson Hyperlegible",system-ui,sans-serif}
.demo-toast strong{font-family:"Archivo","Arial Narrow",system-ui,sans-serif;font-weight:800;font-size:15px;color:#FFD200}
.demo-toast[hidden]{display:none}
.demo-board{display:grid;grid-template-columns:minmax(0,1fr);gap:14px 24px;align-items:start;padding:14px 24px 32px;max-width:1700px;margin:0 auto}
.demo-board.with-phone{grid-template-columns:minmax(0,1fr) 360px}
.demo-board-bar{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.demo-board-hint{font-size:var(--step--1);color:var(--slate)}
.demo-board.with-phone .demo-board-hint{visibility:hidden}
.demo-side[hidden]{display:none!important}
.demo-side-prompt{margin:0;font-size:var(--step--1);text-align:center}
.demo-side-close{border:0;background:none;padding:4px 8px;font:inherit;font-size:var(--step--1);color:var(--ink);text-decoration:underline;cursor:pointer}
.demo-side-close:focus-visible{outline:3px solid var(--focus,#1F5FBF);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.demo-board.with-phone .demo-side{animation:demo-slide .25s ease-out}}
@keyframes demo-slide{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
.demo-board .demo-screen{height:calc(100vh - 150px);min-height:620px;border:1px solid var(--rule,#DCE0DA);border-radius:14px;overflow:hidden;background:#F1F3EF;box-shadow:0 20px 50px -30px rgba(23,33,43,.45)}
.demo-board .demo-screen iframe{display:block;width:100%;height:100%;border:0}
.demo-board .demo-side{position:sticky;top:18px;display:grid;gap:14px;justify-items:center}
.demo-board .demo-phone{position:static;width:340px;height:min(700px,calc(100vh - 200px));border-width:10px;border-radius:40px}
.demo-board .demo-phone iframe{border-radius:30px}
.demo-side p{margin:0;font-size:var(--step--1);color:var(--slate);max-width:34ch;text-align:center}
.demo-tag{display:inline-block;padding:1px 7px;border-radius:999px;font-size:12px;font-weight:700;background:#E5F4E4;color:#1E5B3A}
.demo-tag.plus{background:#17212B;color:#FFD200}
.demo-small-screen{display:none;max-width:40rem;margin:2rem auto;padding:0 16px}
@media (max-width:1100px){.demo-board.with-phone{grid-template-columns:minmax(0,1fr) 320px}.demo-board .demo-phone{width:300px}}
@media (max-width:820px){.demo-board,.demo-tour{display:none}.demo-small-screen{display:block}}
.demo-dash-link{margin:.9rem 0 0;font-size:var(--step--1)}
@media (max-width:820px){.demo-dash-link{display:none}}
.demo-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 48px;align-items:start;padding:22px 24px 4px;max-width:1700px;margin:0 auto}
.demo-intro h1{margin:0 0 .4rem;font-size:var(--step-3)}
.demo-intro p{margin:0;max-width:62ch;color:var(--slate)}
.demo-tour h2{margin:0 0 .35rem;font-size:var(--step-0);font-family:var(--font-display);font-weight:800}
.demo-tour ul{list-style:none;margin:0;padding:0;display:grid;gap:5px;font-size:var(--step--1)}
.demo-tour li{display:flex;align-items:center;gap:8px;padding-left:24px;position:relative}
.demo-tour li::before{content:"";position:absolute;left:2px;top:50%;width:6px;height:11px;margin-top:-8px;border:solid #1E7B4F;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.demo-full-toggle{margin-left:auto}
.demo-board.is-full{position:fixed;inset:0;z-index:1000;max-width:none;margin:0;padding:12px 16px;background:#F1F3EF;grid-template-rows:auto 1fr;overflow:hidden}
.demo-board.is-full .demo-screen{height:calc(100vh - 82px);min-height:0}
.demo-board.is-full .demo-phone{height:calc(100vh - 150px)}
html.demo-no-scroll,html.demo-no-scroll body{overflow:hidden}
@media (max-width:1100px){.demo-intro{grid-template-columns:1fr}}
