/* Shared look for the three small "How it works" animations.
   Each scene is drawn on a fixed 1600 x 900 stage (16:9, for videos) and scaled to the window.
   ?embed  = used inside the website card: transparent background, fills the frame (edges may be cut)
   ?zoom=1.2 = zoom in a little (cuts more of the edges) */
:root {
  --bg: #eef4f1; --paper: #ffffff; --ink: #0f2620; --muted: #8aa197; --line: #d4e1db; --accent: #1d7a58;
  --orange: #f0953a; --orange-fill: #fdf0e3; --green: #7cc24f; --green-fill: #edf6e6; --select: #cde9db;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1613; --paper: #14201c; --ink: #e6f0eb; --muted: #6f877d; --line: #2a3d36; --accent: #46c08e;
    --orange-fill: #3a2714; --green-fill: #1c2d14; --select: #1f4a38; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); }
html.embed, html.embed body { background: transparent; }
.stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0;
  font: 500 72px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); }
.abs { position: absolute; }
/* the note: a sheet of paper */
.sheet { position: absolute; background: var(--paper); border: 3px solid var(--line); border-radius: 28px; }
.line { position: absolute; left: 56px; white-space: pre; transition: font-size .35s ease, font-weight .35s ease; }
.line { font-size: 64px; }
.line.heading { font-weight: 800; font-size: 76px; }
.hash { color: var(--muted); font-weight: 700; }
.caret { display: inline-block; width: 6px; height: 1em; margin-left: 4px; vertical-align: -.12em; background: var(--accent); border-radius: 3px; animation: blink 1s steps(1) infinite; }
.caret.off { visibility: hidden; animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.sel { background: var(--select); border-radius: 8px; }
/* the map */
svg.links { position: absolute; left: 0; top: 0; overflow: visible; }
svg.links path { fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round; }
.root { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--green-fill); border: 9px solid var(--green); }
.bubble { position: absolute; padding: 16px 40px; border-radius: 999px; background: var(--orange-fill); border: 7px solid var(--orange); font-size: 48px; font-weight: 700; white-space: pre; transform-origin: 0 50%; }
.bubble.child { background: var(--green-fill); border-color: var(--green); }
/* the dashed line between the note (left) and the map (right) */
.divider { position: absolute; top: 110px; height: 680px; border-left: 4px dashed var(--line); }
.bubble.pick { box-shadow: 0 0 0 12px var(--select); }
/* mouse pointer */
.cursor { position: absolute; left: 0; top: 0; width: 64px; height: 64px; transition: transform .7s cubic-bezier(.5, 0, .2, 1); z-index: 9; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.cursor.tap { animation: tap .25s ease; }
@keyframes tap { 50% { scale: .8; } }
.fade { transition: opacity .5s ease; }
