/* PallyPilot website — "Watch it work" animated demo (chat window 3.0).
   Everything inside .dm-stage is a drawing of a computer screen (HTML + CSS, no video).
   The stage is laid out at 1200×740 and scaled down to fit by demo.js.
   All class names start with dm- / d- so they never clash with the rest of the site. */

html:not(.js) #demo { display: none; }
.dm-wrap { margin-bottom: 64px; }
.dm-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 740;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e4e8fb;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.dm-stage {
  position: absolute; top: 0; left: 0;
  width: 1200px; height: 740px;
  transform-origin: 0 0;
  overflow: hidden;
  font-size: 13px; line-height: 1.45; text-align: left;
  color: #1d2238;
  user-select: none; -webkit-user-select: none;
}
.dm-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dm-tab {
  flex: 1 1 200px; position: relative; overflow: hidden;
  display: grid; gap: 2px; text-align: start;
  padding: 12px 16px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; cursor: pointer; transition: border-color .2s;
}
.dm-tab b { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.dm-tab b i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.dm-tab span { font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }
.dm-tab .dm-p { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--grad); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .5s ease; opacity: 0; }
html[dir='rtl'] .dm-tab .dm-p { transform-origin: right; }
.dm-tab[aria-pressed='true'] { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.dm-tab[aria-pressed='true'] .dm-p { opacity: 1; }
.dm-pause {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; min-height: 48px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.dm-pause svg { width: 14px; height: 14px; }
.dm-note { margin-top: 14px; text-align: center; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 640px) { .dm-tab span { display: none; } .dm-tab { flex-basis: 30%; } .dm-pause { flex: 1 1 100%; justify-content: center; } }

/* ------------------------------------------------ desktop */
.d-wall { position: absolute; inset: 0; background:
  radial-gradient(700px 520px at 92% 4%, rgba(124,58,237,.30), transparent 62%),
  radial-gradient(760px 560px at 2% 100%, rgba(79,70,229,.30), transparent 60%),
  linear-gradient(160deg, #f5f6ff 0%, #e1e5fb 100%); }
.d-menu { position: absolute; top: 0; left: 0; right: 0; height: 28px; display: flex; align-items: center; gap: 18px; padding: 0 16px; font-size: 12.5px; background: rgba(255,255,255,.55); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.7); z-index: 20; }
.d-menu .d-clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.d-win { position: absolute; background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px -26px rgba(22,28,70,.45), 0 0 0 1px rgba(22,28,70,.10); }
.d-title { flex: none; height: 38px; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; padding: 0 14px; background: #f6f7fb; border-bottom: 1px solid #e3e6ef; font-size: 12.5px; }
.d-dots { display: flex; gap: 7px; }
.d-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.d-dots i:nth-child(2) { background: #febc2e; } .d-dots i:nth-child(3) { background: #28c840; }
.d-tt { display: flex; justify-content: center; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.d-fi { display: inline-block; width: 13px; height: 15px; border-radius: 3px; background: var(--fc, #888); flex: none; position: relative; }
.d-fi::after { content: ""; position: absolute; right: 0; top: 0; border: 3px solid; border-color: rgba(255,255,255,.75) rgba(255,255,255,.75) transparent transparent; border-radius: 0 3px 0 0; }
.d-fi.xls { --fc: #1d7a45; } .d-fi.pdf { --fc: #c2352b; } .d-fi.ppt { --fc: #c4522a; }

/* ------------------------------------------------ PallyPilot window (chat window 3.0, matches the real app) */
.d-pp { left: 22px; top: 46px; width: 384px; height: 632px; z-index: 6; background: #1b1d29; color: #e8e9f3; box-shadow: 0 30px 60px -24px rgba(10,12,40,.6), 0 0 0 1px rgba(255,255,255,.08); }
.d-robot { width: 100%; height: 100%; display: block; object-fit: contain; }
.d-pbar { flex: none; height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid #2c2f44; }
.d-pav { width: 34px; height: 34px; position: relative; flex: none; }
.d-live { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #2bc266; border: 2px solid #1b1d29; }
.d-pp[data-s='work'] .d-live { background: #8b7bff; animation: d-pulse 1s ease-in-out infinite; }
.d-pid { display: grid; line-height: 1.25; }
.d-pid b { font-size: 15px; color: #fff; }
.d-status { font-size: 12px; color: #9a9cb5; }
.d-picons { margin-inline-start: auto; display: flex; gap: 16px; color: #c9cbe0; }
.d-picons svg { width: 15px; height: 15px; display: block; }
.d-feed { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px; scroll-behavior: smooth; transition: opacity .3s; }
.d-feed.out { opacity: 0; }
.d-av { width: 28px; height: 28px; flex: none; }
.d-home { margin: auto 0; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 6px 4px; animation: d-in .45s both; }
.d-home > img { width: 76px; height: 76px; margin-bottom: 4px; animation: d-float 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(91,79,224,.45)); }
.d-home b { font-size: 18px; color: #fff; }
.d-home > span { color: #9a9cb5; max-width: 290px; }
.d-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 14px; }
.d-goal { display: flex; align-items: center; gap: 8px; text-align: start; padding: 11px 12px; font-size: 12.5px; font-weight: 500; color: #e2e4f2; background: #24263a; border: 1px solid #33364d; border-radius: 12px; line-height: 1.3; }
.d-goal i { font-style: normal; font-size: 17px; }
.d-user { align-self: flex-end; max-width: 84%; display: grid; gap: 7px; background: #5b4fe0; color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; animation: d-in .35s both; flex: none; }
[dir='rtl'] .d-user { border-radius: 14px 14px 14px 4px; }
.d-ushot { display: block; width: 140px; height: 80px; border-radius: 8px; background: linear-gradient(160deg, #eef1ff, #c9cff5); position: relative; overflow: hidden; }
.d-ushot::after { content: ""; position: absolute; left: 34px; top: 22px; width: 72px; height: 38px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px #c9cfe6, inset 0 9px 0 #e8eaf3; }
.d-bot { display: flex; gap: 10px; align-items: flex-start; flex: none; animation: d-in .35s both; }
.d-stack { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.d-stack > * { animation: d-in .35s both; }
.d-card { background: #24263a; border: 1px solid #33364d; border-radius: 12px; padding: 10px 12px; color: #e2e4f2; }
.d-say { line-height: 1.5; }
.d-typing { display: flex; gap: 4px; padding: 13px 12px; width: max-content; }
.d-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8d8fae; animation: d-hop 1s infinite; }
.d-typing i:nth-child(2) { animation-delay: .15s; } .d-typing i:nth-child(3) { animation-delay: .3s; }
.d-steps { display: grid; gap: 8px; padding: 10px 12px; }
.d-step { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #c9cbe0; animation: d-in .3s both; }
.d-ic { width: 16px; height: 16px; border-radius: 50%; flex: none; position: relative; border: 1.6px solid #3f3a7a; border-top-color: #9c8dff; animation: d-spin .75s linear infinite; }
.d-step[data-s='done'] .d-ic { animation: d-pop .3s; border: 0; background: #1e4a33; }
.d-step[data-s='done'] .d-ic::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 3.5px; height: 7px; border: solid #3ddc84; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.d-step[data-s='done'] { color: #9a9cb5; }
.d-fold { font-size: 12px; color: #9a9cb5; padding: 2px 4px; animation: d-in .3s both; }
.d-plan { border-color: #3e3a86; }
.d-plan .d-pt { font-size: 11.5px; font-weight: 600; color: #b9b2ff; margin-bottom: 6px; }
.d-plan ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.d-plan li { display: flex; gap: 8px; }
.d-plan li::before { content: ""; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: #8b7bff; flex: none; }
.d-plan .d-bk { margin-top: 8px; font-size: 12px; color: #9a9cb5; display: flex; gap: 7px; align-items: center; }
.d-plan .d-bk svg { width: 14px; height: 14px; color: #3ddc84; display: block; flex: none; }
.d-okrow { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.d-okrow b { color: #fff; font-size: 14px; margin-inline-end: auto; }
.d-yes, .d-no { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 9px; transition: all .2s; }
.d-yes { background: #5b4fe0; color: #fff; }
.d-no { border: 1px solid #4a4d68; color: #c9cbe0; }
.d-okrow.picked .d-no { opacity: .35; }
.d-okrow.picked .d-yes { box-shadow: 0 0 0 3px rgba(123,109,255,.35); }
.d-file { display: flex; align-items: center; gap: 9px; border-color: #3e3a86; padding: 10px; background: linear-gradient(135deg, #2a2a52, #24263a); }
.d-file .d-fi { width: 22px; height: 27px; border-radius: 4px; }
.d-fn { flex: 1; min-width: 0; display: grid; }
.d-fn b { font-size: 13.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-fn small { font-size: 11px; color: #9a9cb5; }
.d-open { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 8px; background: #5b4fe0; color: #fff; white-space: nowrap; }
.d-show { font-size: 12px; padding: 5px 9px; border-radius: 8px; border: 1px solid #4a4d68; color: #c9cbe0; white-space: nowrap; }
.d-fixed { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #17402c, #1f3a2c); border-color: #2c6b48; }
.d-fixed b { color: #fff; font-size: 13.5px; }
.d-big { width: 28px; height: 28px; border-radius: 50%; background: #2bc266; color: #0f2a1b; display: grid; place-items: center; font-weight: 800; flex: none; animation: d-pop .5s; }
.d-next { flex: none; padding-inline-start: 38px; animation: d-in .4s .2s both; }
.d-next p { font-size: 11.5px; color: #9a9cb5; margin: 0 0 6px; }
.d-next div { display: flex; flex-wrap: wrap; gap: 6px; }
.d-next span { font-size: 12px; padding: 6px 11px; border-radius: 99px; border: 1px solid #4b44b8; color: #d6d2ff; background: rgba(91,79,224,.12); }
/* composer */
.d-pin { flex: none; padding: 10px 12px 12px; border-top: 1px solid #2c2f44; }
.d-att { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #c9cbe0; margin-bottom: 8px; animation: d-in .3s both; }
.d-att[hidden] { display: none; }
.d-shot { width: 46px; height: 28px; border-radius: 5px; background: linear-gradient(160deg, #eef1ff, #c9cff5); box-shadow: 0 0 0 1px #4b44b8; }
.d-box3 { display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 8px; border: 1.5px solid #3a3d58; border-radius: 16px; background: #1f2133; transition: border-color .2s, box-shadow .2s; }
.d-box3:has(.focus) { border-color: #7b6dff; box-shadow: 0 0 0 3px rgba(123,109,255,.22); }
.d-tool { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; color: #a9abc6; transition: background .2s, color .2s; }
.d-tool svg { width: 17px; height: 17px; display: block; }
.d-tool.hot { background: #33307a; color: #fff; }
.d-field { flex: 1; min-width: 0; height: 38px; padding: 3px 4px; font-size: 12.5px; line-height: 1.35; color: #fff; overflow: hidden; display: flex; flex-wrap: wrap; align-content: center; }
.d-ph { color: #7f82a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-ph[hidden] { display: none; }
.d-caret { display: none; width: 1.5px; height: 14px; background: #9c8dff; margin-inline-start: 1px; animation: d-blink 1s steps(1) infinite; }
.focus .d-caret { display: inline-block; }
.d-send { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #3b3593; color: #c9c4ff; transition: background .2s, color .2s, transform .2s; }
.d-send svg { width: 16px; height: 16px; display: block; }
.d-send.hot { background: #5b4fe0; color: #fff; transform: scale(1.06); }

/* ------------------------------------------------ app windows (shared) */
.d-app { left: 424px; top: 46px; width: 752px; height: 632px; z-index: 5; opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.d-app.show { opacity: 1; transform: none; }
.d-app.busy { box-shadow: 0 30px 60px -26px rgba(22,28,70,.45), 0 0 0 2px rgba(124,58,237,.55), 0 0 0 7px rgba(124,58,237,.12); }
.d-drive { position: absolute; top: 7px; right: 12px; transform: translateY(-4px); opacity: 0; display: flex; align-items: center; gap: 8px; padding: 6px 13px 6px 10px; border-radius: 99px; background: rgba(22,22,42,.9); color: #fff; font-size: 11.5px; font-weight: 500; transition: opacity .3s, transform .3s; z-index: 8; white-space: nowrap; }
.d-drive i { width: 7px; height: 7px; border-radius: 50%; background: #a98bff; animation: d-pulse 1s ease-in-out infinite; }
.busy .d-drive { opacity: 1; transform: none; }
.d-toast { position: absolute; top: 50px; right: 16px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #16162a; color: #fff; font-size: 12px; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; z-index: 9; }
.d-toast.show { opacity: 1; transform: none; }
.d-toast i { width: 15px; height: 15px; border-radius: 50%; background: #27a864; position: relative; }
.d-toast i::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.d-tools { flex: none; display: flex; align-items: center; gap: 4px; padding: 7px 12px; border-bottom: 1px solid #e3e6ef; color: #3a3f58; }
.d-tb { height: 28px; min-width: 28px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; }
.d-tb svg { width: 15px; height: 15px; display: block; }
.d-sep { width: 1px; height: 20px; background: #e3e6ef; margin: 0 6px; }
.d-sp { flex: 1; }
.d-muted { font-size: 12px; color: #6b7290; padding: 0 8px; font-variant-numeric: tabular-nums; }

/* spreadsheet */
.d-fbar { flex: none; display: flex; align-items: center; height: 32px; border-bottom: 1px solid #e3e6ef; font-size: 12.5px; }
.d-nb { width: 78px; padding: 0 10px; border-inline-end: 1px solid #e3e6ef; height: 100%; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.d-fxi { padding: 0 10px; color: #6b7290; font-style: italic; font-family: Georgia, serif; border-inline-end: 1px solid #e3e6ef; height: 100%; display: flex; align-items: center; }
.d-fx { padding: 0 10px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; white-space: nowrap; }
.d-gw { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.d-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; }
.d-grid th { background: #f3f4f7; color: #6b7290; font-weight: 500; font-size: 11.5px; height: 24px; border: 1px solid #e4e6ed; padding: 0; }
.d-grid td { height: 27px; border: 1px solid #e4e6ed; padding: 0 8px; white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; transition: background .35s, color .35s; }
.d-grid td.num { text-align: right; }
.d-grid td.flash { animation: d-flash .7s; }
.d-grid td.hd { background: #2f49c8; color: #fff; font-weight: 700; border-color: #2a40b0; }
.d-grid td.tot { font-weight: 700; border-top: 2px solid #1d2238; }
.d-grid td.bad { background: #fce4e4; color: #b4232a; }
.d-grid td.neg { color: #b4232a; }
.d-sel { position: absolute; display: none; border: 2px solid #1d7a45; background: rgba(29,122,69,.06); pointer-events: none; transition: all .14s ease; z-index: 2; }
.d-sel.on { display: block; }
.d-sel.slow { transition: all .55s cubic-bezier(.4,0,.2,1); }
.d-ants { position: absolute; border: 2px dashed #4f46e5; pointer-events: none; z-index: 2; animation: d-pulse .8s ease-in-out infinite; }
.d-tabs { flex: none; height: 30px; display: flex; padding: 0 12px; background: #f6f7fb; border-top: 1px solid #e3e6ef; font-size: 12px; }
.d-tabs span { padding: 0 14px; display: flex; align-items: center; background: #fff; color: #1d7a45; font-weight: 600; box-shadow: inset 0 -2px 0 #1d7a45; }

/* program that won't open (Windows) */
.dm-stage.win .d-menu { display: none; }
.dm-stage.win .d-wall { background: radial-gradient(900px 600px at 70% 30%, #3f6fd8 0%, #1d3a8a 55%, #0f1e52 100%); }
.dm-stage.win .d-dock { left: 0; right: 0; bottom: 0; transform: none; justify-content: center; border-radius: 0; height: 52px; padding: 6px; background: rgba(240,243,250,.82); border: 0; border-top: 1px solid rgba(255,255,255,.6); }
.dm-stage.win .d-dk { width: 38px; height: 38px; border-radius: 8px; }
.dm-stage.win .d-dk.on::after { bottom: -4px; width: 14px; margin-left: -7px; height: 3px; border-radius: 2px; background: #2f6ee0; }
.dm-stage.win .d-pp, .dm-stage.win .d-app { top: 22px; }
.d-app[data-app='err'] { background: transparent; box-shadow: none; overflow: visible; }
.d-desk { position: relative; flex: 1; }
.d-dlg { position: absolute; left: 150px; top: 170px; width: 450px; background: #fff; border-radius: 8px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.12); font-family: 'Segoe UI', system-ui, sans-serif; font-size: 13px; color: #1b1b1b; transition: opacity .5s, transform .5s; }
.d-dlg-t { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 12px; }
.d-dlg-t i { font-style: normal; color: #555; }
.d-dlg-b { display: flex; gap: 14px; padding: 6px 18px 18px; line-height: 1.45; }
.d-dlg-b p { margin: 0; }
.d-dlg-x { width: 32px; height: 32px; border-radius: 50%; background: #c42b1c; color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: none; }
.d-dlg-f { display: flex; justify-content: flex-end; padding: 12px 16px; background: #f3f3f3; border-radius: 0 0 8px 8px; }
.d-dlg-f span { padding: 5px 26px; border: 1px solid #c5c5c5; border-radius: 4px; background: #fff; font-size: 12px; }
.d-app.err .d-dlg { animation: d-shake .5s .3s; }
.d-app.fixed .d-dlg { opacity: 0; transform: scale(.94); }
.d-gp { position: absolute; left: 40px; top: 30px; width: 670px; height: 520px; border-radius: 10px; overflow: hidden; background: #f5f8fc; box-shadow: 0 30px 60px -24px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.1); opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .6s .2s, transform .7s .2s cubic-bezier(.2,.8,.2,1); }
.d-app.fixed .d-gp { opacity: 1; transform: none; }
.d-gp-t { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; background: #0f4c81; color: #fff; font-size: 14px; }
.d-gp-ic { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.d-gp-ic svg, .d-dk[data-app='err'] svg { width: 16px; height: 16px; display: block; }
.d-gp-b { padding: 26px; display: grid; gap: 18px; }
.d-lp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.d-lp-kpis div { display: grid; gap: 6px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #dfe6f0; animation: d-in .5s both; }
.d-lp-kpis span { font-size: 13px; color: #5b6b80; }
.d-lp-kpis b { font-size: 22px; color: #0f2f4f; font-variant-numeric: tabular-nums; }
.d-lp-kpis .ok b { color: #15803d; }
.d-lp-chart { height: 230px; display: flex; align-items: flex-end; gap: 14px; padding: 18px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #dfe6f0; }
.d-lp-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #2f80c9, #0f4c81); transform-origin: bottom; animation: d-barup .7s both; }
.d-lp-chart i:nth-child(n+5) { animation-delay: .15s; }
.d-gp-b p { margin: 0; font-size: 17px; font-weight: 600; color: #0f2f4f; }
.d-gp-plot i:nth-child(2n)::after { content: "🌷 🌼 🌷"; }
.d-gp-plot i:nth-child(3n)::after { content: "🥕 🥬 🥕"; }
.d-uac { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(10,16,40,0); transition: background .35s; }
.d-uac[hidden] { display: none; }
.d-uac.show { background: rgba(10,16,40,.55); }
.d-uacbox { width: 420px; background: #1f1f1f; color: #fff; border-radius: 8px; overflow: hidden; font-family: 'Segoe UI', system-ui, sans-serif; box-shadow: 0 30px 60px rgba(0,0,0,.6); opacity: 0; transform: scale(.94); transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1); }
.d-uac.show .d-uacbox { opacity: 1; transform: none; }
.d-uacq { margin: 0; padding: 22px 22px 16px; font-size: 18px; line-height: 1.35; font-weight: 600; background: #0b4a8f; }
.d-uacapp { display: flex; gap: 12px; align-items: center; padding: 18px 22px; font-size: 12.5px; color: #cfd3dc; }
.d-uacapp b { display: block; font-size: 14px; color: #fff; }
.d-uacic { width: 36px; height: 36px; border-radius: 8px; background: #2f6ee0; color: #fff; display: grid; place-items: center; flex: none; }
.d-uacic svg { width: 20px; height: 20px; display: block; }
.d-uacbtn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 22px 20px; }
.d-uacbtn span { text-align: center; padding: 8px; border-radius: 4px; font-size: 13px; }
.d-uacbtn .y { background: #4ca0f0; color: #0b1a2e; font-weight: 600; }
.d-uacbtn .n { background: #3a3a3a; }

/* invoice */
.d-viewer { flex: 1; min-height: 0; background: #e7e9f0; display: flex; justify-content: center; padding-top: 16px; overflow: hidden; }
.d-inv { width: 470px; height: max-content; min-height: 520px; background: #fff; box-shadow: 0 2px 14px rgba(20,25,60,.14); padding: 26px 30px; font-size: 11.5px; color: #22263a; text-align: start; position: relative; overflow: hidden; }
.d-inv::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: linear-gradient(90deg, #16a34a, #0e7490); }
.d-inv-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.d-inv-logo { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.d-inv-logo i { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fde047, #f59e0b); }
.d-inv-tt { display: grid; text-align: end; gap: 2px; color: #626a85; }
.d-inv-tt b { font-size: 22px; letter-spacing: .04em; color: #0e7490; }
.d-inv-to { display: grid; gap: 1px; margin-bottom: 16px; padding: 10px 12px; background: #f4f7fb; border-radius: 6px; }
.d-inv-to em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #626a85; }
.d-ir { display: grid; grid-template-columns: 1fr 50px 74px 80px; gap: 8px; padding: 8px 4px; border-bottom: 1px solid #e8ebf2; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.d-ir.h { opacity: 1; transform: none; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: #0e7490; border-radius: 4px; border: 0; }
.d-ir.in { opacity: 1; transform: none; }
.d-ir .n { text-align: end; font-variant-numeric: tabular-nums; }
.d-ir .b { font-weight: 600; }
.d-isum { display: grid; grid-template-columns: 1fr 100px; gap: 6px 10px; width: 230px; margin-inline-start: auto; margin-top: 14px; font-variant-numeric: tabular-nums; }
.d-isum .n { text-align: end; min-height: 1em; }
.d-isum .t { font-size: 14px; font-weight: 800; color: #fff; background: #0e7490; padding: 7px 8px; margin: 4px 0 0; }
.d-isum span.t:first-of-type { border-radius: 4px 0 0 4px; }
.d-isum .n.t { border-radius: 0 4px 4px 0; }
.d-stamp { position: absolute; left: 34px; bottom: 34px; padding: 6px 14px; border: 2.5px solid #16a34a; color: #16a34a; border-radius: 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: opacity .3s, transform .45s cubic-bezier(.3,1.6,.5,1); }
.d-stamp.in { opacity: .9; transform: rotate(-8deg); }

/* slides */
.d-pbody { flex: 1; display: flex; min-height: 0; background: #e8eaf1; }
.d-rail { width: 150px; flex: none; background: #f6f7fb; border-inline-end: 1px solid #e3e6ef; padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.d-th { display: flex; gap: 7px; font-size: 11px; color: #6b7290; animation: d-in .35s both; }
.d-mini { width: 108px; height: 61px; background: #fff; border: 1px solid #e3e6ef; border-radius: 3px; position: relative; overflow: hidden; outline: 2px solid transparent; outline-offset: 1px; transition: outline-color .2s; }
.d-th.on .d-mini { outline-color: #c4522a; }
.d-mini .d-sl { position: absolute; left: 0; top: 0; transform: scale(.2); transform-origin: 0 0; display: block; box-shadow: none; }
.d-mini .d-sl * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
.d-canvas { flex: 1; min-width: 0; display: grid; place-items: center; }
.d-sl { width: 540px; height: 304px; background: #f8f7ff; box-shadow: 0 4px 20px rgba(20,25,60,.14); position: relative; display: none; overflow: hidden; color: #1d1b4b; text-align: start; }
.d-sl.cur { display: block; animation: d-slin .6s both; }
.d-sl .h { position: absolute; inset-inline: 32px; top: 22px; margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.d-sl .hb { position: absolute; inset-inline-start: 32px; top: 56px; width: 46px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #4f46e5, #c026d3); }
.d-sl1 { background: radial-gradient(120% 130% at 100% 0%, #4c3bc4 0%, #1e1b5c 55%, #120f3a 100%); color: #fff; }
.d-sl1 .c1, .d-sl1 .c2 { position: absolute; border-radius: 50%; }
.d-sl1 .c1 { width: 220px; height: 220px; inset-inline-end: -60px; top: -70px; background: radial-gradient(circle, rgba(192,38,211,.55), transparent 70%); animation: d-float 5s ease-in-out infinite; }
.d-sl1 .c2 { width: 160px; height: 160px; inset-inline-end: 90px; bottom: -80px; background: radial-gradient(circle, rgba(79,70,229,.7), transparent 70%); }
.d-sl1 .k { position: absolute; inset-inline-start: 40px; top: 84px; margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c4b5fd; animation: d-in .5s .2s both; }
.d-sl1 .t { position: absolute; inset-inline: 40px; top: 106px; margin: 0; font-size: 34px; font-weight: 800; line-height: 1.15; animation: d-in .6s .35s both; }
.d-sl1 .u { position: absolute; inset-inline-start: 40px; top: 160px; height: 4px; width: 70px; border-radius: 2px; background: linear-gradient(90deg, #a78bfa, #f0abfc); animation: d-grow .6s .7s both; transform-origin: left; }
.d-sl1 .s { position: absolute; inset-inline-start: 40px; top: 176px; margin: 0; font-size: 13px; color: #d8d4ff; animation: d-in .5s .8s both; }
.d-kp { position: absolute; inset-inline: 32px; top: 92px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.d-kp div { background: #fff; border-radius: 12px; padding: 18px 14px; display: grid; gap: 4px; box-shadow: 0 4px 14px rgba(40,30,120,.1); border-top: 4px solid #4f46e5; animation: d-up .5s both; }
.d-kp div:nth-child(2) { border-color: #7c3aed; animation-delay: .15s; } .d-kp div:nth-child(3) { border-color: #c026d3; animation-delay: .3s; }
.d-kp b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.d-kp span { font-size: 11px; color: #5b5f7c; }
.d-kp em { font-style: normal; font-size: 11px; font-weight: 700; color: #16a34a; }
.d-ch { position: absolute; inset-inline: 32px; top: 80px; bottom: 22px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: end; }
.d-bars { height: 100%; display: flex; align-items: flex-end; justify-content: space-around; border-bottom: 2px solid #c9c6ea; padding: 0 6px; }
.d-bars span { width: 54px; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(#7c3aed, #4f46e5); position: relative; transform-origin: bottom; animation: d-barup .8s cubic-bezier(.2,.8,.2,1) both; }
.d-bars span:nth-child(2) { animation-delay: .15s; } .d-bars span:nth-child(3) { animation-delay: .3s; background: linear-gradient(#c026d3, #7c3aed); }
.d-bars b { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; color: #3b3680; }
.d-take { align-self: center; padding: 14px; border-radius: 12px; background: #fff; border-inline-start: 4px solid #c026d3; display: grid; gap: 6px; animation: d-in .5s .9s both; box-shadow: 0 4px 14px rgba(40,30,120,.1); }
.d-take em { font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #a21caf; font-weight: 700; }
.d-take span { font-size: 13px; font-weight: 600; line-height: 1.4; }
.d-proc { position: absolute; inset-inline: 32px; top: 120px; display: flex; align-items: center; }
.d-proc span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: #fff; padding: 22px 6px; background: #4f46e5; clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 12% 50%); margin-inline-start: -6px; animation: d-in .45s both; }
[dir='rtl'] .d-proc span, .d-proc[dir='rtl'] span { clip-path: polygon(12% 0, 100% 0, 88% 50%, 100% 100%, 12% 100%, 0 50%); }
.d-proc .q1 { background: #4f46e5; clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%); }
.d-proc .q2 { background: #6d3fe6; animation-delay: .2s; } .d-proc .q3 { background: #8b35dc; animation-delay: .4s; } .d-proc .q4 { background: #b026c8; animation-delay: .6s; }

/* dock + pointer */
.d-dock { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; padding: 7px 10px; background: rgba(255,255,255,.55); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.75); border-radius: 18px; z-index: 12; }
.d-dk { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; position: relative; background: var(--dc); }
.d-dk svg { width: 20px; height: 20px; display: block; }
.d-dk.on::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #1d2238; }
.d-dk.bounce { animation: d-dockb .6s ease; }
.d-cur { position: absolute; left: 0; top: 0; z-index: 50; pointer-events: none; will-change: transform; }
.d-cur svg { position: absolute; left: -3px; top: -2px; width: 24px; height: 24px; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); transition: transform .1s; transform-origin: 3px 2px; }
.d-cur.down svg { transform: scale(.86); }
.d-ring { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #7c3aed; animation: d-ring .55s ease-out forwards; }

@keyframes d-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes d-blink { 50% { opacity: 0; } }
@keyframes d-spin { to { transform: rotate(360deg); } }
@keyframes d-pulse { 50% { opacity: .45; } }
@keyframes d-hop { 0%, 60%, 100% { transform: none; opacity: .6; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes d-flash { from { background: #ddf3e6; } to { background: transparent; } }
@keyframes d-flash2 { from { background: #e9efff; } to { background: transparent; } }
@keyframes d-ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
@keyframes d-dockb { 30% { transform: translateY(-12px); } 60% { transform: none; } 80% { transform: translateY(-4px); } }
@keyframes d-pop { 50% { transform: scale(1.2); } }
@keyframes d-float { 50% { transform: translateY(-6px); } }
@keyframes d-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes d-slin { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes d-grow { from { transform: scaleX(0); } }
@keyframes d-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes d-barup { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) {
  .dm-stage *, .dm-stage *::before, .dm-stage *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .d-app, .d-sel, .d-ir, .d-gp, .d-dlg, .d-uacbox { transition-duration: .15s !important; }
}

/* ---------- Slides demo: "Family trip to Japan" ---------- */
.d-sl.jp1 { background: linear-gradient(180deg, #ff9a8b 0%, #ff6a88 38%, #7b4397 78%, #3b2a6b 100%); color: #fff; }
.jp1 .sun { position: absolute; width: 120px; height: 120px; border-radius: 50%; inset-inline-end: 70px; top: 48px; background: radial-gradient(circle, #fff6d5 0%, #ffd27a 55%, rgba(255,210,122,0) 72%); animation: jp-rise 1.4s cubic-bezier(.2,.8,.2,1) both; }
.jp1 .cl { position: absolute; height: 14px; border-radius: 99px; background: rgba(255,255,255,.55); }
.jp1 .c1 { width: 90px; inset-inline-end: 160px; top: 70px; animation: jp-drift 9s linear infinite; }
.jp1 .c2 { width: 60px; inset-inline-end: 40px; top: 120px; animation: jp-drift 12s linear infinite reverse; }
.jp1 .fuji { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; animation: d-up .8s .1s both; }
.jp1 .k { position: absolute; inset-inline-start: 36px; top: 34px; margin: 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #ffe3ec; animation: d-in .5s .3s both; }
.jp1 .t { position: absolute; inset-inline-start: 36px; inset-inline-end: 200px; top: 56px; margin: 0; font-size: 34px; font-weight: 800; line-height: 1.12; text-shadow: 0 2px 12px rgba(80,20,60,.35); animation: d-in .6s .45s both; }
.jp1 .s { position: absolute; inset-inline-start: 36px; top: 140px; margin: 0; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.22); animation: d-in .5s .8s both; }
.d-sl.jp2, .d-sl.jp3, .d-sl.jp4 { background: #fffaf6; }
.jp2 .hb, .jp3 .hb, .jp4 .hb { background: linear-gradient(90deg, #ff6a88, #7b4397); }
.jp-kp div { border-top-color: #ff6a88; text-align: center; justify-items: center; }
.jp-kp div:nth-child(2) { border-top-color: #c2477f; } .jp-kp div:nth-child(3) { border-top-color: #7b4397; }
.jp-kp i { font-style: normal; font-size: 28px; line-height: 1; }
.jp-kp b { font-size: 30px; color: #3b2a6b; }
.jp-money { position: absolute; inset-inline: 32px; top: 78px; bottom: 20px; display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto; column-gap: 22px; row-gap: 12px; align-items: center; }
.jp-donut { grid-row: span 2; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#ff6a88 0 40%, #c2477f 0 70%, #7b4397 0 85%, #f2b04c 0 100%); animation: jp-spin .9s cubic-bezier(.2,.8,.2,1) both; position: relative; }
.jp-donut::before { content: ''; position: absolute; inset: 30px; border-radius: 50%; background: #fffaf6; }
.jp-donut span { position: relative; font-size: 15px; font-weight: 800; color: #3b2a6b; }
.jp-leg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 12px; color: #4a3f66; }
.jp-leg li { display: flex; align-items: center; gap: 6px; animation: d-in .4s both; }
.jp-leg li::before { content: ''; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.jp-leg .a::before { background: #ff6a88; } .jp-leg .b::before { background: #c2477f; } .jp-leg .c::before { background: #7b4397; } .jp-leg .e::before { background: #f2b04c; }
.jp-leg li:nth-child(2) { animation-delay: .15s; } .jp-leg li:nth-child(3) { animation-delay: .3s; } .jp-leg li:nth-child(4) { animation-delay: .45s; }
.jp-leg b { color: #3b2a6b; }
.jp-tip { border-inline-start-color: #ff6a88; padding: 10px 12px; }
.jp-tip em { color: #c2477f; }
.jp-tip span { font-size: 12px; }
.jp-route { position: absolute; inset-inline: 30px; top: 100px; height: 170px; display: grid; grid-template-columns: repeat(4, 1fr); }
.jp-line { position: absolute; left: 12%; right: 12%; top: 26px; height: 0; border-top: 3px dashed #d9a7c7; }
.jp-train { position: absolute; top: 8px; left: 10%; font-style: normal; font-size: 26px; animation: jp-ride 2.6s .3s cubic-bezier(.45,0,.55,1) both; }
.jp-route .st { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding-top: 44px; animation: d-up .5s both; }
.jp-route .st i { position: absolute; top: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 24px; background: #fff; box-shadow: 0 0 0 3px #ff6a88, 0 6px 14px rgba(120,40,90,.2); }
.jp-route .s2 { animation-delay: .5s; } .jp-route .s2 i { box-shadow: 0 0 0 3px #c2477f, 0 6px 14px rgba(120,40,90,.2); }
.jp-route .s3 { animation-delay: 1s; } .jp-route .s3 i { box-shadow: 0 0 0 3px #7b4397, 0 6px 14px rgba(120,40,90,.2); }
.jp-route .s4 { animation-delay: 1.5s; } .jp-route .s4 i { box-shadow: 0 0 0 3px #f2b04c, 0 6px 14px rgba(120,40,90,.2); }
.jp-route .st b { margin-top: 18px; font-size: 14px; color: #3b2a6b; }
.jp-route .st span { font-size: 11px; color: #7a6f90; }
@keyframes jp-rise { from { transform: translateY(60px); opacity: 0; } }
@keyframes jp-drift { 0% { transform: translateX(0); } 50% { transform: translateX(-24px); } 100% { transform: translateX(0); } }
@keyframes jp-spin { from { transform: rotate(-90deg) scale(.6); opacity: 0; } }
@keyframes jp-ride { from { left: 10%; } to { left: 84%; } }
@media (prefers-reduced-motion: reduce) { .jp1 .sun, .jp1 .cl, .jp-donut, .jp-train { animation: none; } .jp-train { left: 84%; } }
/* polish */
.jp1 .c1 { inset-inline-end: 24px; top: 30px; }
.jp1 .c2 { inset-inline-end: 150px; top: 158px; width: 70px; }
.jp-kp { top: 100px; }
.jp-kp div { padding: 22px 14px; gap: 6px; }
.jp-route { top: 92px; }
.jp-train { top: -28px; z-index: 2; }
.jp-route .st { padding-top: 62px; gap: 2px; }
.jp-route .st b { margin-top: 0; }
.jp-route .st { align-content: start; }
.jp-route { top: 116px; }

/* ---------- Excel demo: Sales 2026 (more columns, data bars, growth arrows, chart) ---------- */
.d-grid2 { font-size: 11.5px; }
.d-grid2 td { padding: 0 6px; height: 26px; }
.d-grid td.xbar { background-image: linear-gradient(90deg, var(--bc) 0 var(--w), transparent var(--w)); background-repeat: no-repeat; background-size: calc(100% - 6px) 60%; background-position: 3px 50%; }
.d-grid td.xbar-ok { --bc: #bfe6cc; }
.d-grid td.xbar-low { --bc: #f6c9c9; }
.d-grid td.pos { color: #15803d; font-weight: 600; }
.d-grid td.best { background-color: #dcf5e4; color: #0f5132; font-weight: 700; }
.d-grid td.bad.xbar, .d-grid td.best.xbar { background-color: transparent; }
.d-xchart { position: absolute; right: 14px; bottom: 10px; width: 420px; height: 150px; padding: 10px 12px 8px; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px -10px rgba(20,40,30,.35), 0 0 0 1px #dfe5e2; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); z-index: 3; display: flex; flex-direction: column; }
.d-xchart.on { opacity: 1; transform: none; }
.d-xchart p { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; color: #1d7a45; }
.d-xbars { flex: 1; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1.5px solid #cfd8d3; padding: 0 4px; }
.d-xbars span { flex: 1; position: relative; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(#34a46b, #1d7a45); transform-origin: bottom; }
.d-xchart.on .d-xbars span { animation: d-barup .7s var(--d) cubic-bezier(.2,.8,.2,1) both; }
.d-xbars b { position: absolute; top: -15px; left: -6px; right: -6px; text-align: center; font-size: 9.5px; color: #33443b; font-weight: 600; }
.d-xbars i { position: absolute; bottom: -16px; left: -8px; right: -8px; text-align: center; font-style: normal; font-size: 9px; color: #6b7a72; white-space: nowrap; }
.d-xchart .d-xbars { margin: 14px 0 14px; }
