/* Last modified: 2026-11-19--1213 */
/* "Out of the way while you read": a closed Duo with a blank page you can scroll (scrolldemo.js). Everything inside
   the device is laid out in the Duo's own points (466 x 678 glass), then the whole device is scaled by --k. */
.duo-demo { --k:1; display:flex; flex-direction:column; align-items:center; gap:20px; width:100%; }
.duo-stage { position:relative; width:calc(524.667px * var(--k)); height:calc(731.333px * var(--k)); }
.duo-device { position:absolute; left:0; top:0; width:524.667px; height:731.333px; transform:scale(var(--k)); transform-origin:0 0; }
.duo-bezel { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; user-select:none; -webkit-user-select:none; cursor:default; }
.duo-screen { position:absolute; left:29.333px; top:26.667px; width:466px; height:678px; overflow:hidden; background:var(--dp-bg);
  -webkit-mask-image:url(img/duo-closed-mask.png); mask-image:url(img/duo-closed-mask.png);
  -webkit-mask-size:100% 100%; mask-size:100% 100%;
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; }

/* two pages: pure white, pure black */
/* The page stays quiet so the controls read first (owner, 2026-11-17: "the content is too loud and too bright ... not
   contrasting with the controls enough"): faint, softened shapes; solid glass with a firm edge and a deep shadow. */
.duo-demo[data-theme="white"] { --dp-bg:#fff; --dp-line:#f0f0f2; --dp-head:#e4e4e8; --dp-block:#f4f4f6; --dp-ink:#000;
  /* mild glass, still a little darker grey for contrast (owner, 2026-11-17): a translucent grey tint over the blurred
     page, a sheen at the top, a crisp light rim with a faint dark hairline, a softer shadow */
  --dp-glass:linear-gradient(180deg, rgba(255,255,255,.46) 0%, rgba(255,255,255,.1) 52%, rgba(255,255,255,0) 100%), rgba(196,196,204,.56);
  --dp-edge:rgba(0,0,0,.17);
  --dp-shadow:0 12px 30px rgba(0,0,0,.2), 0 2px 7px rgba(0,0,0,.11);
  --dp-hi:inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.42), inset 0 -1px 0 rgba(0,0,0,.05); }
.duo-demo[data-theme="black"] { --dp-bg:#000; --dp-line:#141416; --dp-head:#232326; --dp-block:#0e0e10; --dp-ink:#fff;
  --dp-glass:rgba(62,62,66,.82); --dp-edge:rgba(255,255,255,.24);
  --dp-shadow:0 14px 34px rgba(0,0,0,.8), 0 3px 8px rgba(0,0,0,.5); --dp-hi:inset 0 1px 0 rgba(255,255,255,.22); }

/* Dusk (the start page's gradient, as in the store shots; owner, 2026-11-18: "use the purple, not black screen on black
   webpage bg"): faint white shapes, lavender glass, black icons. Sampled from store-dusk.png. */
.duo-demo[data-theme="dusk"], .duo-mock[data-theme="dusk"] { --dp-bg:linear-gradient(180deg, #1E2A4A 0%, #4A3B6B 100%);
  --dp-line:rgba(255,255,255,.08); --dp-head:rgba(255,255,255,.11); --dp-block:rgba(255,255,255,.05); --dp-ink:#000;
  --dp-glass:rgba(190,182,222,.82); --dp-edge:rgba(255,255,255,.35);
  --dp-shadow:0 12px 30px rgba(10,6,30,.45), 0 2px 7px rgba(10,6,30,.3); --dp-hi:inset 0 1px 0 rgba(255,255,255,.55); }

/* the page: nothing to read, only shapes */
.dp-page { position:absolute; inset:0; overflow-x:hidden; overflow-y:scroll; scrollbar-width:none; overscroll-behavior:contain;
  touch-action:pan-y; user-select:none; -webkit-user-select:none; cursor:grab; outline:none; }
.dp-page::-webkit-scrollbar { display:none; }
.dp-page.dragging { cursor:grabbing; }
.dp-content { position:relative; width:466px; filter:blur(1.2px); }
.dp-content > i { position:absolute; display:block; border-radius:5px; background:var(--dp-line); }
.dp-content > i.h { background:var(--dp-head); border-radius:7px; }
.dp-content > i.b { background:var(--dp-block); border-radius:14px; }
.dp-content > i.c { background:var(--dp-head); border-radius:50%; }

/* the controls: Liquid-Glass-ish capsules */
.dp-glass { position:absolute; background:var(--dp-glass); color:var(--dp-ink);
  -webkit-backdrop-filter:blur(14px) saturate(1.8); backdrop-filter:blur(14px) saturate(1.8);
  box-shadow:var(--dp-shadow), var(--dp-hi), 0 0 0 .5px var(--dp-edge); }
.dp-pill { position:absolute; inset:0; pointer-events:none; }
/* the camera button (Keep Clear of Camera), 60 pt above back: measured from store-dusk.png */
.dp-cam { left:398px; top:418px; width:50px; height:50px; border-radius:25px; pointer-events:auto; }
.dp-cam .dp-icon { left:12px; top:14.5px; width:26px; height:21px; }
.dp-back { left:398px; top:478px; width:50px; height:50px; border-radius:25px; pointer-events:auto; }
.dp-cap { left:398px; top:538px; width:50px; height:100px; border-radius:25px; pointer-events:auto; }
.dp-icon { position:absolute; left:13px; width:24px; height:24px; }
.dp-back .dp-icon { top:13px; }
.dp-cap .dp-plus { top:13px; }
.dp-cap .dp-tabs { top:63px; }
.dp-bar { cursor:pointer; overflow:hidden; }
.dp-host { position:absolute; left:0; right:0; top:50%; transform:translateY(-50%); text-align:center; font-weight:600;
  letter-spacing:-.2px; white-space:nowrap; line-height:1; }
/* Safari's bar (1.0.1): ≡ centred 25 pt in, reload (13 pt symbol) centred 22.5 pt in from the right end */
.dp-menu { position:absolute; left:16.5px; top:50%; width:17px; height:13px; margin-top:-6.5px; }
.dp-reload { position:absolute; right:14px; top:50%; width:17px; height:17px; margin-top:-8.5px; }
/* 1.0's bar (data-bar="v1", for before / after pictures) */
.duo-demo[data-bar="v1"] .dp-menu { left:14px; }
.duo-demo[data-bar="v1"] .dp-reload { right:13px; width:22px; height:22px; margin-top:-11px; }
.dp-measure { position:absolute; visibility:hidden; white-space:nowrap; font-weight:600; letter-spacing:-.2px; font-size:15px; }
.dp-press { transition:transform .12s ease; }
.dp-press:active { transform:scale(.93); }
/* the tap on the small bar (autoplay): the site's cyan ring */
.dp-tap { position:absolute; width:58px; height:58px; margin:-29px 0 0 -29px; border-radius:50%; border:3px solid #22d3ee;
  box-shadow:0 0 0 2px rgba(34,211,238,.3), 0 0 20px rgba(34,211,238,.55); opacity:0; pointer-events:none; }

/* under the device: White | Black, and the hint */
.dp-ui { display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; }
.dp-seg { display:inline-flex; padding:3px; border-radius:999px; background:#1c1c1e; border:1px solid #2c2c2e; }
.dp-seg button { appearance:none; -webkit-appearance:none; border:0; background:transparent; color:#a1a1a6; cursor:pointer;
  font:500 14px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif; padding:9px 18px; border-radius:999px; }
.dp-seg button[aria-pressed="true"] { background:#3a3a3c; color:#fff; }
.dp-hint { color:#86868b; font-size:14px; }
/* The left-handed demo (owner, 2026-11-19): not scrollable, no touches on its screen (a swipe over it scrolls the
   website); only Left | Right below it does anything. */
.dp-flip-only .duo-screen { pointer-events:none; }
.dp-flip-only .dp-page { overflow:hidden; cursor:default; touch-action:auto; }
