/* Hero stage: a live HTML recreation of the Pullback pull (app/Sources/Pullback/Resources/web/drag) over a neutral desktop.
   Scene is 1200×750 logical px, scaled to the frame. Every frame is a pure function of time (hero.js), so it can be scrubbed. */
.stage-wrap { width: 100%; max-width: 1080px; margin-top: 64px; perspective: 1600px; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: #0b0b0d; isolation: isolate;
  box-shadow: 0 0 0 1px var(--line2), 0 30px 80px -20px rgba(0,0,0,.35), 0 10px 30px -10px rgba(0,0,0,.2); transform-origin: 50% 0; will-change: transform; }
.scene { position: absolute; left: 0; top: 0; width: 1200px; height: 750px; transform-origin: 0 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  color: #f5f5f7; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; pointer-events: none;
  --g-bg: rgba(30,30,34,.62); --g-fg: #f5f5f7; --g-fg2: rgba(235,235,245,.6); --g-fg3: rgba(235,235,245,.32); --g-line: rgba(255,255,255,.1); --g-sel: rgba(255,255,255,.09);
  --g-shadow: inset 0 0 0 .5px rgba(255,255,255,.18), 0 0 0 .5px rgba(0,0,0,.5), 0 18px 50px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.25); --mb-fg: #fff; }

/* wallpaper: neutral silk, CSS only (no Apple wallpaper, no AI image) */
.sc-wall { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 0%, #2b2b31 0%, #18181b 55%, #101012 100%); }
.sc-wall::before, .sc-wall::after { content: ""; position: absolute; left: -20%; width: 140%; height: 46%; border-radius: 50%; filter: blur(28px); }
.sc-wall::before { top: 34%; transform: rotate(-14deg); background: radial-gradient(50% 50% at 50% 50%, rgba(205,205,220,.22), rgba(140,140,155,.08) 55%, transparent 72%); }
.sc-wall::after { top: 58%; transform: rotate(-22deg); background: radial-gradient(50% 40% at 56% 50%, rgba(255,255,255,.12), transparent 70%); }
/* menu bar */
.sc-mb { position: absolute; inset: 0 0 auto; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; z-index: 30;
  color: var(--mb-fg); font-size: 13.5px; letter-spacing: -.08px; background: linear-gradient(rgba(0,0,0,.22), rgba(0,0,0,0)); }
.sc-mb > span { display: flex; align-items: center; gap: 18px; height: 100%; }
.sc-mb b { font-weight: 700; }
.sc-mb svg { fill: currentColor; }
.sc-mb .clock { font-variant-numeric: tabular-nums; }
.sc-dot { position: relative; width: 28px; height: 22px; margin: 0 -6px; border-radius: 6px; display: grid; place-items: center; }
.sc-dot i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px var(--mb-fg); position: relative; }
.sc-dot i::after { content: ""; position: absolute; inset: 4.5px; border-radius: 50%; background: #ff453a; box-shadow: 0 0 6px rgba(255,69,58,.8); }
.sc-dot.on { background: rgba(255,255,255,.2); }

/* background windows */
.sc-win { position: absolute; border-radius: 16px; overflow: hidden; background: #1f1f23; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12), 0 0 0 .5px rgba(0,0,0,.6), 0 24px 60px rgba(0,0,0,.45); }
.sc-win .tb { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: .5px solid rgba(255,255,255,.07); font-size: 13px; font-weight: 600; color: rgba(245,245,247,.86); }
.sc-win .tl { display: flex; gap: 7px; margin-right: 10px; }
.sc-win .tl i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.16); }
.sc-win .tb small { font-weight: 400; color: rgba(235,235,245,.45); margin-left: 4px; }
.doc { left: 64px; top: 76px; width: 500px; height: 560px; }
.doc .pg { padding: 36px 44px; display: flex; flex-direction: column; gap: 11px; }
.doc h4 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: rgba(245,245,247,.92); margin-bottom: 4px; }
.doc h5 { font-size: 13px; font-weight: 600; color: rgba(245,245,247,.75); margin-top: 12px; }
.doc i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); }
.doc .caret { width: 2px; height: 16px; background: #ff9f0a; border-radius: 1px; margin-top: 2px; }
.doc .todo { font-size: 13px; color: rgba(235,235,245,.38); font-style: italic; }
.call { left: 708px; top: 520px; width: 340px; height: 186px; }
.call .bd { display: flex; align-items: center; gap: 14px; padding: 22px 20px; }
.call .av { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #5d5d66, #34343a); display: grid; place-items: center; font-size: 19px; font-weight: 600; color: rgba(255,255,255,.85); }
.call b { display: block; font-size: 15px; font-weight: 600; color: rgba(245,245,247,.9); }
.call small { font-size: 12.5px; color: rgba(235,235,245,.5); }
.call .bt { margin: 0 20px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 12.5px; color: rgba(235,235,245,.6); }

/* the pull */
.sc-panel { position: absolute; border-radius: 22px; background: var(--g-bg); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); box-shadow: var(--g-shadow); z-index: 10; }
.sc-line { position: absolute; width: 3px; margin-left: -1.5px; border-radius: 2px; background: rgba(255,255,255,.9); box-shadow: 0 0 10px rgba(255,255,255,.3); z-index: 12; }
.sc-head { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #ff453a; z-index: 14; box-shadow: 0 0 0 2.5px #fff, 0 0 14px rgba(255,69,58,.8), 0 2px 6px rgba(0,0,0,.4); }
.sc-pill { position: absolute; height: 46px; min-width: 112px; padding: 0 16px; margin-left: -56px; border-radius: 23px; z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(22,22,26,.78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.28), 0 10px 28px rgba(0,0,0,.4); }
.sc-pill b { font-size: 16.5px; font-weight: 650; letter-spacing: -.2px; line-height: 19px; }
.sc-pill small { font-size: 11px; opacity: .62; line-height: 13px; }
.sc-row { position: absolute; left: 0; height: 40px; border-radius: 12px; z-index: 11; overflow: hidden; color: var(--g-fg); }
.sc-row.sel { background: var(--g-sel); }
.sc-row .hd { height: 40px; display: grid; grid-template-columns: 22px 46px 1fr auto; gap: 10px; align-items: center; padding: 0 12px; }
.sc-row .ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18); }
.sc-row .ic svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sc-row time { font-size: 13px; color: var(--g-fg2); font-variant-numeric: tabular-nums; }
.sc-row .ti { font-size: 14px; font-weight: 500; letter-spacing: -.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-row .st { font-size: 12.5px; font-weight: 600; color: var(--g-fg2); display: inline-flex; align-items: center; gap: 6px; }
.sc-row .st.acc { color: #ff6b61; }
.sc-row.now time { color: var(--g-fg); font-weight: 600; }
.sc-row.done .ti { color: var(--g-fg2); }
.sc-row .bd { padding: 0 12px 0 90px; }
.sc-row .say { font-size: 13.5px; line-height: 19px; color: var(--g-fg); }
.sc-row .say q { color: var(--g-fg2); quotes: "“" "”"; }
.sc-row .ft { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sc-row .meta { font-size: 12px; color: var(--g-fg2); flex: 1; white-space: nowrap; }
.sc-go { height: 28px; padding: 0 8px 0 13px; border-radius: 14px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; background: #fff; color: #111; }
.sc-go kbd { font: 500 11px inherit; font-family: inherit; padding: 1px 5px; border-radius: 5px; background: rgba(0,0,0,.08); }
.sc-prog { flex: 1; height: 4px; border-radius: 2px; background: var(--g-line); overflow: hidden; }
.sc-prog i { display: block; height: 100%; background: #ff453a; border-radius: 2px; }
.sc-node { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; z-index: 13; }
.sc-node.open { background: rgba(24,24,28,.95); box-shadow: inset 0 0 0 1.8px rgba(255,255,255,.9), 0 1px 3px rgba(0,0,0,.4); }
.sc-node.fill { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: rgba(255,255,255,.55); }
.sc-node.acc { background: #ff453a; box-shadow: 0 0 0 1.5px rgba(255,255,255,.7), 0 0 10px rgba(255,69,58,.6); }
.mring { width: 13px; height: 13px; border-radius: 50%; background: conic-gradient(currentColor var(--p, 10%), color-mix(in srgb, currentColor 25%, transparent) 0);
  -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.6px); mask: radial-gradient(circle, transparent 4px, #000 4.6px); }

/* the deliverable */
.sc-draft { position: absolute; left: 132px; top: 132px; width: 430px; border-radius: 20px; z-index: 20; background: rgba(36,36,40,.82); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: var(--g-shadow); color: var(--g-fg); overflow: hidden; }
.sc-draft .dh { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-size: 13px; font-weight: 600; border-bottom: .5px solid var(--g-line); }
.sc-draft .dh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; }
.sc-draft .dh small { margin-left: auto; font-weight: 500; color: var(--g-fg2); font-size: 12px; }
.sc-draft .fl { padding: 9px 18px; font-size: 13px; border-bottom: .5px solid var(--g-line); color: var(--g-fg2); }
.sc-draft .fl b { color: var(--g-fg); font-weight: 500; }
.sc-draft .mb { padding: 14px 18px 4px; font-size: 13.5px; line-height: 20px; }
.sc-draft .mb p + p { margin-top: 10px; }
.sc-draft .df { display: flex; align-items: center; gap: 8px; padding: 14px 18px 16px; }
.sc-draft .df span { font-size: 12px; color: var(--g-fg3); margin-right: auto; }
.sc-draft .bt { height: 28px; padding: 0 12px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.12); }
.sc-draft .bt.pri { background: #fff; color: #111; }
.sc-draft .bt kbd { font: inherit; font-weight: 500; opacity: .55; }

.sc-cursor { position: absolute; left: 0; top: 0; width: 24px; height: 30px; z-index: 40; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); transform-origin: 3px 2px; }

/* light theme: pale desktop, light glass (the real app's light panel) */
:root[data-theme="light"] .scene, .scene.light {
  --g-bg: rgba(248,248,250,.7); --g-fg: #1d1d1f; --g-fg2: rgba(60,60,67,.62); --g-fg3: rgba(60,60,67,.35); --g-line: rgba(0,0,0,.08); --g-sel: rgba(0,0,0,.05);
  --g-shadow: inset 0 0 0 .5px rgba(255,255,255,.7), 0 0 0 .5px rgba(0,0,0,.14), 0 18px 50px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08); }
.scene.light .sc-draft { background: rgba(250,250,252,.82); }
.scene.light .sc-go { background: #111; color: #fff; }
.scene.light .sc-go kbd { background: rgba(255,255,255,.18); }
.scene.light .sc-draft .bt { background: rgba(0,0,0,.06); }
.scene.light .sc-draft .bt.pri { background: #111; color: #fff; }
.scene.light .sc-node.open { background: #fff; box-shadow: inset 0 0 0 1.8px #1d1d1f, 0 1px 3px rgba(0,0,0,.2); }
.scene.light .sc-node.fill { background: rgba(0,0,0,.3); }
.scene.light .sc-row .st.acc { color: #e0362c; }
.scene.light .sc-pill { background: rgba(28,28,32,.82); }

/* mobile: taller frame, cropped on the pull */
@media (max-width: 640px) {
  .stage-wrap { margin-top: 32px; }
  .stage { aspect-ratio: 4 / 5; border-radius: 22px; }
}

.scene.m .sc-draft { top: 330px; width: 452px; }

/* light desktop */
.scene.light { --mb-fg: #1d1d1f; color: #1d1d1f; }
.scene.light .sc-wall { background: radial-gradient(120% 90% at 70% 0%, #f7f7f9 0%, #e4e4e9 60%, #d6d6dc 100%); }
.scene.light .sc-wall::before { background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.95), rgba(255,255,255,.3) 55%, transparent 72%); }
.scene.light .sc-wall::after { background: radial-gradient(50% 40% at 56% 50%, rgba(170,170,185,.35), transparent 70%); }
.scene.light .sc-mb { background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0)); }
.scene.light .sc-dot.on { background: rgba(0,0,0,.1); }
.scene.light .sc-win { background: #fff; box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 24px 60px rgba(0,0,0,.14); }
.scene.light .sc-win .tb { color: #1d1d1f; border-bottom-color: rgba(0,0,0,.07); }
.scene.light .sc-win .tl i { background: rgba(0,0,0,.12); }
.scene.light .sc-win .tb small, .scene.light .call small { color: rgba(60,60,67,.55); }
.scene.light .doc h4, .scene.light .call b { color: #1d1d1f; }
.scene.light .doc h5 { color: rgba(29,29,31,.75); }
.scene.light .doc i { background: rgba(0,0,0,.07); }
.scene.light .doc .todo { color: rgba(60,60,67,.45); }
.scene.light .call .av { background: linear-gradient(135deg, #c9c9cf, #a3a3ab); color: #fff; }
.scene.light .call .bt { background: rgba(0,0,0,.05); color: rgba(60,60,67,.7); }
.scene.light .sc-line { background: rgba(29,29,31,.85); box-shadow: none; }
