/* demo-multisnip.css - the landing page's hero demo (render.mjs landingDemo, static/demo-multisnip.js):
   a stylised desktop in plain shapes - two windows and a taskbar - on which MultiSnip takes two snips
   that all stay open, drawn as the app draws them (title bar, buttons, canvas), one gets a red pen
   stroke, and its gear menu drops down. Linked on the landing page alone,
   after the kit's sheet. The kit's frame (.lp-demo, .lp-cursor, landing.css and demo.js) is used as it
   is. Nothing here is copied from Windows: no logo, no real window controls, no Microsoft artwork.

   Inside the stage the sizes are px, on purpose: it is a picture of a screen at a fixed design size
   (a 1040 x 575 screen in a 1280 x 575 stage), which demo.js scales to the column. render.mjs DEMO_SNIPS holds the boxes that are
   dragged; they sit over the two windows so that every snip shows the crop of the desktop under it.

   What the tour changes, read here:
     stage.is-snipping   the screen is dimmed and .msd-sel is the box being dragged
     stage.is-dim        the screen is dimmed, no box yet (the app starts straight into snipping)
     stage.is-gear       the gear menu of the second snip is open
     .msd-snip.is-away   an open snip steps aside while a new one is taken (as the app hides it)
     .msd-snip.is-open   a snip window is open        .msd-snip.is-drawn   the pen stroke is on (undo un-greys)
     .msd-btn.is-on      the Mark tool is on (its word turns accent)
     stage.is-copied     "Copied to clipboard" stands across the screen's right edge, half off it (every snip, every change) */

/* The stage is wider than the screen it shows: 120 px of page on each side, so the "Copied to clipboard" card can
   stand across the screen's right edge - a note about the demo, not a notification on the PC (Chris, 2026-11-11). */
.msd-stage {
  width: 1280px;
  height: 575px;
  color: var(--c-ink);
  font-size: 12px;
  line-height: 1.3;
  text-align: start;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.msd-screen {
  position: absolute;
  left: 120px;
  top: 0;
  width: 1040px;
  height: 575px;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--c-line-strong), var(--lp-demo-shadow);
}
.msd-stage :where(p, i) { margin: 0; }
.msd-stage i { font-style: normal; }

/* ---- the desktop (also drawn inside every snip, shifted to where its box was) ---- */
.msd-desk { position: absolute; left: 0; top: 0; width: 1040px; height: 527px; overflow: hidden; }
.msd-desk--copy { overflow: visible; }
.msd-wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 18% 110%, color-mix(in srgb, var(--c-accent) 38%, transparent), transparent 70%),
    radial-gradient(50% 60% at 95% 0%, color-mix(in srgb, var(--c-accent) 22%, transparent), transparent 70%),
    var(--c-surface-2);
}
.msd-win {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--c-line-strong);
  border-radius: 8px;
  background: var(--c-surface);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.22);
}
.msd-win--a { left: 40px; top: 36px; width: 500px; height: 400px; }
.msd-win--b { left: 570px; top: 70px; width: 430px; height: 360px; }
.msd-win__bar { display: flex; align-items: center; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--c-line); background: var(--c-surface-2); }
.msd-win__title { width: 96px; height: 8px; border-radius: 4px; background: var(--c-line-strong); }

.msd-line { position: absolute; border-radius: 4px; background: var(--c-line-strong); }
.msd-line--h { left: 24px; top: 52px; width: 160px; height: 10px; }
.msd-bars { position: absolute; left: 30px; bottom: 36px; display: flex; align-items: flex-end; gap: 20px; }
.msd-bars i { display: block; width: 44px; border-radius: 4px 4px 0 0; background: var(--c-line-strong); }
.msd-bars i:nth-child(1) { height: 90px; }
.msd-bars i:nth-child(2) { height: 140px; }
.msd-bars i:nth-child(3) { height: 110px; }
.msd-bars i:nth-child(4) { height: 190px; background: var(--c-accent); }
.msd-bars i:nth-child(5) { height: 150px; }
.msd-bars i:nth-child(6) { height: 230px; }

.msd-note { position: absolute; inset: 32px 0 0 0; }
.msd-avatar { position: absolute; left: 30px; top: 20px; width: 52px; height: 52px; border-radius: 50%; background: var(--c-accent); opacity: 0.85; }
.msd-text { position: absolute; left: 100px; top: 26px; display: grid; gap: 10px; }
.msd-text--wide { left: 30px; top: 98px; gap: 12px; }
.msd-text i { display: block; height: 10px; border-radius: 5px; background: var(--c-line-strong); }
.msd-text i:nth-child(1) { width: 260px; }
.msd-text i:nth-child(2) { width: 200px; }
.msd-text i:nth-child(3) { width: 230px; }
.msd-text--wide i { width: 370px; }
.msd-text--wide i:nth-child(2) { width: 340px; }
.msd-text--wide i:nth-child(3) { width: 360px; }
.msd-text--wide i:nth-child(4) { width: 250px; }

/* ---- the taskbar, with MultiSnip's icon in it ---- */
.msd-taskbar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid var(--c-line-strong);
  background: color-mix(in srgb, var(--c-surface) 88%, transparent);
}
.msd-taskbar i { display: block; width: 28px; height: 28px; border-radius: 7px; background: var(--c-line-strong); }
.msd-taskbar i.msd-tb-ms { display: flex; align-items: center; justify-content: center; padding: 3px; background: var(--c-accent-soft); color: var(--c-accent); }
.msd-tb-ms svg { width: 100%; height: 100%; }


/* ---- a snip: its own frameless window, right where the box was, drawn as the app draws it ----
   The app's own palettes, following the PAGE's theme: the light page shows the app's light look, the
   dark page its dark look. (Same switch as the kit's app.css: data-theme, else the system.) */
.msd-stage {
  --w-bar: #000;
  --w-canvas: #181818;
  --w-ink: #e6e6e6;
  --w-sec: #a0a0a0;
  --w-accent: #4cc2ff;
  --w-pen: #ff6b6b;
  --w-menu: #121212;
  --w-track: #1e1e1e;
  --w-on: #3a3a3a;
  --w-line: #2a2a2a;
  --w-switch-off: #5c5c5c;
  --w-glow: rgb(0 0 0 / 0.43); /* the app's GlowWindow: black, alpha 110 in dark */
  --seg-l-bg: transparent;
  --seg-l-fg: var(--w-sec);
  --seg-d-bg: var(--w-on);
  --seg-d-fg: var(--w-accent);
}
:root[data-theme='light'] .msd-stage {
  --w-bar: #fff;
  --w-canvas: #e8e5df;
  --w-ink: #17191c;
  --w-sec: #565c66;
  --w-accent: #0067c0;
  --w-pen: #d13438;
  --w-menu: #fff;
  --w-track: #eeece7;
  --w-on: #fff;
  --w-line: #e1ded8;
  --w-switch-off: #8a8f98;
  --w-glow: rgb(0 0 0 / 0.22); /* black, alpha 56 in light */
  --seg-l-bg: var(--w-on);
  --seg-l-fg: var(--w-accent);
  --seg-d-bg: transparent;
  --seg-d-fg: var(--w-sec);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .msd-stage {
    --w-bar: #fff;
    --w-canvas: #e8e5df;
    --w-ink: #17191c;
    --w-sec: #565c66;
    --w-accent: #0067c0;
    --w-pen: #d13438;
    --w-menu: #fff;
    --w-track: #eeece7;
    --w-on: #fff;
    --w-line: #e1ded8;
    --w-switch-off: #8a8f98;
    --w-glow: rgb(0 0 0 / 0.22); /* black, alpha 56 in light */
    --seg-l-bg: var(--w-on);
    --seg-l-fg: var(--w-accent);
    --seg-d-bg: transparent;
    --seg-d-fg: var(--w-sec);
  }
}

.msd-snip {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
  background: var(--w-canvas);
  color: var(--w-ink);
  box-shadow: 0 0 0 1px var(--w-line), 0 14px 34px rgb(0 0 0 / 0.38), 0 0 26px -2px var(--w-glow);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.2s ease, transform 0.26s var(--ease-spring, cubic-bezier(0.34, 1.4, 0.5, 1));
}
.msd-snip.is-open { opacity: 1; transform: none; }
.msd-snip.is-open.is-away { opacity: 0; transform: scale(0.97); }
.msd-canvas { position: absolute; inset: 0; background: var(--w-canvas); }
.msd-snip__img { position: absolute; overflow: hidden; }

/* the slim title bar: "Snip 1  300 × 190" on the left, the buttons on the right */
.msd-bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 0 12px;
  background: var(--w-bar);
  font-size: 11.5px;
  white-space: nowrap;
}
/* The title gives way, as in the app: when the buttons need the room (a long translation of New / Save / Mark), the
   snip's name and size end in "..." and the close button stays in the window (Chris, 2026-11-11, German). */
.msd-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--w-sec); }
.msd-dim { margin-inline-start: 10px; }
.msd-btns { flex: none; display: flex; align-items: center; }
.msd-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  font-weight: 400;
  color: var(--w-ink);
}
.msd-btn--ico { padding: 0 6px; }
.msd-btn--chev { padding: 0 2px; margin-inline-start: -4px; }
.msd-btn--undo, .msd-btn--off { color: var(--w-sec); opacity: 0.45; }
.msd-btn--mark .msd-ico { color: var(--w-pen); }
.msd-btn--mark.is-on { color: var(--w-accent); }
.msd-snip.is-drawn .msd-btn--undo { color: var(--w-ink); opacity: 1; }
.msd-ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.msd-btn--x .msd-ico { width: 15px; height: 15px; }

.msd-pen { position: absolute; inset: 0; width: 100%; height: 100%; }
.msd-pen path {
  fill: none;
  stroke: var(--w-pen);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.8s linear;
}
.msd-snip.is-drawn .msd-pen path { stroke-dashoffset: 0; }

/* ---- the gear menu: drops down from the gear of the second snip ---- */
.msd-gearmenu {
  position: absolute;
  z-index: 3;
  padding: 8px 0 6px;
  border-radius: 0 0 14px 14px;
  background: var(--w-menu);
  color: var(--w-ink);
  font-size: 11.5px;
  box-shadow: 0 16px 36px rgb(0 0 0 / 0.4), 0 0 0 1px var(--w-line);
  transform-origin: top right;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition: clip-path 0.28s ease, opacity 0.18s ease;
}
.msd-stage.is-gear .msd-gearmenu { clip-path: inset(0 -40px -40px -40px); opacity: 1; }
.msd-gearmenu h4 {
  margin: 0;
  padding: 5px 16px 6px;
  font: 500 9.5px/1.2 var(--font-body, inherit);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w-sec);
}
.msd-gearmenu hr { height: 1px; margin: 6px 0 3px; border: 0; background: var(--w-line); }
.msd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 25px; padding: 0 16px; }
.msd-switch { position: relative; width: 34px; height: 17px; flex: none; border-radius: 9px; border: 1px solid var(--w-switch-off); }
.msd-switch b { position: absolute; left: 3px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--w-switch-off); }
.msd-switch.is-on { border-color: var(--w-accent); background: var(--w-accent); }
.msd-switch.is-on b { left: 20px; background: var(--w-menu); }
.msd-seg { display: flex; gap: 2px; margin: 2px 16px 4px; padding: 3px; border-radius: 9px; background: var(--w-track); }
.msd-seg i { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 28px; border-radius: 7px; font-size: 10.5px; color: var(--w-sec); }
.msd-seg i[data-seg='light'] { background: var(--seg-l-bg); color: var(--seg-l-fg); }
.msd-seg i[data-seg='dark'] { background: var(--seg-d-bg); color: var(--seg-d-fg); }
.msd-seg i.is-sel { background: var(--w-on); color: var(--w-accent); }
.msd-seg .msd-ico { width: 13px; height: 13px; }
.msd-a1 { font-size: 9.5px !important; }
.msd-a2 { font-size: 11.5px !important; }
.msd-a3 { font-size: 14px !important; }
.msd-link { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 16px; height: 22px; }
.msd-link span { flex: 1; }
.msd-link .msd-ico { width: 13px; height: 13px; color: var(--w-sec); }
.msd-foot { padding: 4px 16px 0; font-size: 10.5px; color: var(--w-sec); }

/* ---- snipping: the screen dims and the box is dragged ---- */
.msd-sel {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  outline: 1.5px solid var(--c-accent);
  box-shadow: 0 0 0 2000px color-mix(in srgb, var(--c-canvas) 55%, transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.msd-stage.is-snipping .msd-sel { opacity: 1; }
.msd-stage.is-dim .msd-sel { opacity: 1; outline-color: transparent; }
.msd-stage.is-dim .msd-size { opacity: 0; }
.msd-size {
  position: absolute;
  inset-inline-start: 0;
  top: -26px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font: 600 12px/1.3 var(--font-mono, monospace);
  white-space: nowrap;
}
.msd-aim { position: absolute; left: 0; top: 0; width: 1px; height: 1px; }

/* ---- "Copied to clipboard": the app puts every snip, and every change to one, on the clipboard by itself
   (Chris, 2026-11-11). A card across the screen's right edge, half on the page beside it, with the picture that was copied. ---- */
.msd-clip {
  position: absolute;
  left: 1040px;
  bottom: 120px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 236px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--c-line-strong);
  border-radius: 10px;
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: var(--lp-demo-shadow);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  opacity: 0;
  transform: translateX(28px);
  transition: transform 0.38s var(--ease-spring, cubic-bezier(0.34, 1.4, 0.5, 1)), opacity 0.2s ease;
}
.msd-stage.is-copied .msd-clip { opacity: 1; transform: none; }
.msd-clip__thumb { position: relative; flex: none; width: 64px; height: 40px; overflow: hidden; border-radius: 5px; background: var(--w-canvas); box-shadow: 0 0 0 1px var(--c-line); }
.msd-clip__thumb > .msd-snip__img { transform-origin: 0 0; }
.msd-clip__thumb.is-drawn .msd-pen path { stroke-dashoffset: 0; transition: none; }
.msd-clip__text { display: inline-flex; align-items: center; gap: 6px; }
.msd-clip__text .msd-ico { width: 15px; height: 15px; color: var(--c-accent); }
