.product-demo {
  --demo-ink: #183f32;
  --demo-line: #d5dbce;
  --demo-lime: #d3ef8b;
  width: 100%;
  min-width: 0;
  padding: 25px 26px 19px;
  border: 1px solid #f7f6ef;
  border-radius: 22px;
  background: #f7f6ef;
  color: var(--demo-ink);
  box-shadow: 0 24px 70px #061e2933, 0 3px 0 #b8c4a8;
}
.product-demo-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-demo .product-demo-eyebrow { margin: 0; font-size: 11px; font-weight: 750; line-height: 1.5; letter-spacing: .08em; }
.product-demo-local { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.product-demo-local::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #648d36; }
.product-demo .product-demo-heading { margin: 12px 0 20px; font-size: clamp(25px, 2.5vw, 36px); font-weight: 750; letter-spacing: -.055em; line-height: 1.15; color: var(--demo-ink); }
.product-demo-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: #e9e9dc; }
.product-demo-switcher button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 0; border-radius: 7px; background: transparent; color: #526456; padding: 7px 5px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.product-demo-switcher .demo-step-number { font-size: 10px; opacity: .65; }
.product-demo-switcher button[aria-pressed='true'] { background: var(--demo-ink); color: #f7f6ef; box-shadow: 0 2px 5px #183f321a; }
.product-demo-switcher button:hover:not([aria-pressed='true']) { background: #dce3ce; }
.product-demo-panel { margin-top: 18px; }
.product-demo-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 35px; padding: 0 1px 10px; border-bottom: 1px solid var(--demo-line); }
.product-demo .product-demo-panel h3 { margin: 0; font-size: 12px; line-height: 1.5; font-weight: 700; color: var(--demo-ink); }
.product-demo-detail { font-size: 10px; line-height: 1.5; color: #627261; white-space: nowrap; }
.product-demo-stage { position: relative; height: 328px; isolation: isolate; background-image: radial-gradient(#b6c2a5 1px, transparent 1px); background-size: 19px 19px; }
.product-demo-files { list-style: none; padding: 0; margin: 0; }
.demo-file {
  --file-accent: #476c56; --file-paper: #fffef8; --file-soft: #e7eddf;
  position: absolute; z-index: 3; left: var(--scattered-x); top: var(--scattered-y);
  width: 116px; height: 110px; padding: 13px 11px 10px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  background: var(--file-paper); color: var(--demo-ink); border: 1px solid #d6daca; border-radius: 7px;
  box-shadow: 0 6px 13px #183f321c;
  transform: translate(-50%, -50%) rotate(var(--scattered-angle));
  transition: left .72s cubic-bezier(.22, 1, .36, 1), top .72s cubic-bezier(.22, 1, .36, 1), transform .72s cubic-bezier(.22, 1, .36, 1), width .72s cubic-bezier(.22, 1, .36, 1), height .72s cubic-bezier(.22, 1, .36, 1), padding .72s cubic-bezier(.22, 1, .36, 1), box-shadow .72s ease;
  transition-delay: var(--file-delay);
}
.demo-file[data-kind='finance'] { --file-accent: #8b5636; --file-paper: #fff4d4; --file-soft: #f6df9b; border-color: #e1cf9e; }
.demo-file[data-kind='photo'] { --file-accent: #574b86; --file-paper: #ede8fb; --file-soft: #d8cef4; border-color: #cdc4e2; }
.demo-file:nth-child(1) { --scattered-x: 21%; --scattered-y: 25%; --scattered-angle: -13deg; --sorted-x: 16.666%; --preview-y: 26%; --file-y: 50%; --file-delay: 0ms; }
.demo-file:nth-child(2) { --scattered-x: 51%; --scattered-y: 35%; --scattered-angle: 8deg; --sorted-x: 16.666%; --preview-y: 59%; --file-y: 72%; --file-delay: 30ms; }
.demo-file:nth-child(3) { --scattered-x: 78%; --scattered-y: 23%; --scattered-angle: 12deg; --sorted-x: 50%; --preview-y: 26%; --file-y: 50%; --file-delay: 60ms; }
.demo-file:nth-child(4) { --scattered-x: 24%; --scattered-y: 66%; --scattered-angle: -6deg; --sorted-x: 50%; --preview-y: 59%; --file-y: 72%; --file-delay: 90ms; }
.demo-file:nth-child(5) { --scattered-x: 54%; --scattered-y: 76%; --scattered-angle: -14deg; --sorted-x: 83.333%; --preview-y: 26%; --file-y: 50%; --file-delay: 120ms; }
.demo-file:nth-child(6) { --scattered-x: 81%; --scattered-y: 63%; --scattered-angle: 10deg; --sorted-x: 83.333%; --preview-y: 59%; --file-y: 72%; --file-delay: 150ms; }
.demo-file-visual { display: flex; align-items: flex-start; justify-content: space-between; color: var(--file-accent); }
.demo-file-visual svg { width: 27px; height: 32px; flex-shrink: 0; }
.demo-file-type { display: inline-flex; align-items: center; font-size: 8px; line-height: 1; font-weight: 800; letter-spacing: .06em; padding: 4px 4px; background: var(--file-soft); border-radius: 3px; }
.product-demo-filename { display: block; min-width: 0; font-size: 11px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.demo-file-destination { position: absolute; left: 0; right: 0; bottom: -23px; text-align: center; font-size: 10px; line-height: 1.5; font-weight: 700; color: var(--file-accent); opacity: 0; transition: opacity .2s ease; }
.demo-file-destination::before { content: '↓ '; }
.demo-destinations { position: absolute; inset: 0; pointer-events: none; }
.demo-destination {
  position: absolute; z-index: 1; left: var(--folder-x); top: 88%; width: calc(33.333% - 12px); height: 31px;
  transform: translate(-50%, -50%) translateY(12px); opacity: 0; padding: 8px 6px; border: 1px dashed #8fa67d; border-radius: 7px; background: #e3eacb;
  transition: top .7s cubic-bezier(.22, 1, .36, 1), height .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, border-color .3s ease;
}
.demo-destination:nth-child(1) { --folder-x: 16.666%; --folder-color: #d3e4ac; --folder-line: #b7ca91; }
.demo-destination:nth-child(2) { --folder-x: 50%; --folder-color: #f3dca0; --folder-line: #d9be7c; background: #f6e6bc; border-color: #c4a86a; }
.demo-destination:nth-child(3) { --folder-x: 83.333%; --folder-color: #d8cef1; --folder-line: #b6a6d5; background: #e6dff5; border-color: #b5a4d0; }
.demo-destination::before { content: ''; position: absolute; top: -10px; left: -1px; width: 45%; height: 15px; border: 1px solid var(--folder-line); border-bottom: 0; border-radius: 7px 9px 0 0; background: var(--folder-color); opacity: 0; transition: opacity .2s; }
.demo-destination-label { position: relative; z-index: 2; display: flex; justify-content: center; gap: 5px; align-items: center; font-size: 11px; font-weight: 750; line-height: 1.2; }
.demo-folder-icon { width: 12px; height: 10px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.demo-folder-icon::before { content: ''; position: absolute; left: -1px; top: -4px; width: 5px; height: 3px; border: 1px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.demo-folder-count { display: block; text-align: center; margin-top: 4px; color: #506148; font-size: 9px; font-weight: 650; opacity: 0; }
.product-demo[data-product-state='preview'] .demo-file { left: var(--sorted-x); top: var(--preview-y); width: calc(33.333% - 20px); height: 85px; transform: translate(-50%, -50%) rotate(0deg); box-shadow: 0 3px 7px #183f3210; }
.product-demo[data-product-state='preview'] .demo-file:nth-child(even) .demo-file-destination { opacity: 1; transition-delay: .65s; }
.product-demo[data-product-state='preview'] .demo-destination { opacity: 1; transform: translate(-50%, -50%); }
.product-demo[data-product-state='after'] .demo-file { left: var(--sorted-x); top: var(--file-y); width: calc(33.333% - 30px); height: 43px; padding: 7px; flex-direction: row; align-items: center; gap: 5px; transform: translate(-50%, -50%) rotate(0deg); box-shadow: 0 2px 3px #183f3212; }
.product-demo[data-product-state='after'] .demo-file-visual svg { width: 15px; height: 19px; }
.product-demo[data-product-state='after'] .demo-file-type { display: none; }
.product-demo[data-product-state='after'] .product-demo-filename { font-size: 10px; font-weight: 650; }
.product-demo[data-product-state='after'] .demo-destination { top: 52%; height: 200px; opacity: 1; transform: translate(-50%, -50%); background: var(--folder-color); border: 1px solid var(--folder-line); border-radius: 0 9px 9px 9px; padding-top: 12px; box-shadow: 0 8px 16px #183f3214; }
.product-demo[data-product-state='after'] .demo-destination::before { opacity: 1; }
.product-demo[data-product-state='after'] .demo-folder-count { opacity: 1; }
.product-demo[data-product-state='after'] .demo-folder-icon { display: none; }
.product-demo-status { min-height: 55px; padding: 3px 0 12px; }
.product-demo .product-demo-note { margin: 0; font-size: 12px; line-height: 1.6; color: #526456; }
.product-demo-actions { display: flex; gap: 10px; align-items: center; min-height: 46px; }
.product-demo-action { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 46px; flex: 1; padding: 11px 15px; border: 1px solid var(--demo-ink); border-radius: 7px; background: var(--demo-ink); color: #f7f6ef; font-size: 13px; line-height: 1.4; font-weight: 750; }
.product-demo-action:hover { background: #2b5941; }
.product-demo-action > span[aria-hidden] { font-size: 18px; }
.product-demo-undo { flex: 0 0 auto; min-height: 44px; padding: 9px 11px; border: 1px solid #a9b69d; border-radius: 7px; background: transparent; color: var(--demo-ink); font-size: 11px; font-weight: 650; line-height: 1.3; }
.product-demo-undo:hover { background: #e7eddf; }
.product-demo-undo[hidden] { display: none; }
.product-demo-disclaimer { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--demo-line); }
.product-demo .product-demo-disclaimer p { margin: 0; max-width: 55%; color: #64725e; font-size: 9px; line-height: 1.5; }
.product-demo .product-demo-disclaimer p:last-child { text-align: right; }
@media (max-width: 760px) {
  .product-demo { max-width: 580px; margin-inline: auto; padding: 22px 20px 17px; border-radius: 17px; }
  .product-demo .product-demo-heading { font-size: 29px; }
  .product-demo-stage { height: 310px; }
  .demo-file { width: 102px; height: 102px; padding: 11px 9px 9px; }
  .product-demo[data-product-state='after'] .demo-destination { height: 190px; }
  .product-demo[data-product-state='after'] .demo-file { padding: 6px; gap: 4px; }
  .product-demo[data-product-state='after'] .demo-file-visual { display: none; }
  .product-demo[data-product-state='after'] .product-demo-filename { font-size: 10px; }
  .product-demo-panel-heading { min-height: 36px; }
  .product-demo-detail { font-size: 9px; }
}
@media (max-width: 380px) {
  .product-demo { padding: 19px 15px 16px; border-radius: 14px; }
  .product-demo .product-demo-heading { font-size: 25px; }
  .product-demo-local { font-size: 9px; }
  .product-demo .product-demo-eyebrow { font-size: 10px; }
  .product-demo-switcher button { gap: 4px; font-size: 10px; }
  .product-demo-switcher .demo-step-number { font-size: 9px; }
  .product-demo-stage { height: 290px; }
  .demo-file { width: 85px; height: 94px; padding: 9px 7px; }
  .demo-file-visual svg { width: 23px; height: 27px; }
  .demo-file-type { font-size: 7px; }
  .product-demo-filename { font-size: 10px; }
  .product-demo[data-product-state='preview'] .demo-file { width: calc(33.333% - 11px); height: 77px; padding: 9px 6px; }
  .demo-file-destination { font-size: 9px; }
  .demo-destination { width: calc(33.333% - 6px); }
  .product-demo[data-product-state='after'] .demo-destination { height: 174px; }
  .product-demo[data-product-state='after'] .demo-file { width: calc(33.333% - 18px); padding: 5px; }
  .product-demo[data-product-state='after'] .product-demo-filename { font-size: 9.5px; }
  .product-demo .product-demo-panel h3 { font-size: 11px; }
  .product-demo-status { min-height: 64px; }
  .product-demo .product-demo-note { font-size: 11px; }
  .product-demo-action { font-size: 12px; gap: 14px; padding-inline: 10px; }
  .product-demo-undo { font-size: 10px; padding-inline: 8px; }
  .product-demo-disclaimer { gap: 8px; }
  .product-demo .product-demo-disclaimer p { font-size: 8.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-demo *, .product-demo *::before, .product-demo *::after { transition: none !important; animation: none !important; }
}
