/* Presentation of the existing workflow SVGs. Source component artwork is unchanged. */
.home-page .home-workflow {
  --workflow-art-height: 236px;
  --workflow-card-padding: 24px;
  align-items: stretch;
}

.home-page .home-workflow > li {
  --workflow-delay: 0s;
  display: block;
  min-width: 0;
  padding: 0 var(--workflow-card-padding) 30px;
}

.home-page .home-workflow > li:nth-child(2) { --workflow-delay: .8s; }
.home-page .home-workflow > li:nth-child(3) { --workflow-delay: 1.6s; }
.home-page .home-workflow > li:nth-child(4) { --workflow-delay: 2.4s; }

.home-page .home-workflow .ed-workflow-art {
  position: relative;
  display: flex;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  width: auto;
  height: var(--workflow-art-height);
  margin: 0 calc(-1 * var(--workflow-card-padding)) 26px;
  border: 0;
  border-bottom: 1px solid #E7E7E7;
  border-radius: 0;
  background: #FAFAFA;
}

.home-page .home-workflow .ed-workflow-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 35px 16px 35px;
  background-image: linear-gradient(#E7E7E7 1px, transparent 1px), linear-gradient(90deg, #E7E7E7 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
  opacity: .55;
  pointer-events: none;
}

.home-page .home-workflow .ed-workflow-art::after {
  content: "Cel / teza / materiał";
  position: absolute;
  inset: auto 16px 18px;
  color: #666666;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  overflow-wrap: anywhere;
}

.home-page .home-workflow > li:nth-child(2) .ed-workflow-art::after { content: "Rama / sekcje / akcent"; }
.home-page .home-workflow > li:nth-child(3) .ed-workflow-art::after { content: "Treść / układ / źródło"; }
.home-page .home-workflow > li:nth-child(4) .ed-workflow-art::after { content: "Format / plik / podgląd"; }

.home-page .home-workflow .ed-workflow-art > span {
  top: 16px;
  left: 20px;
  color: #666666;
  font-size: 14px;
  line-height: 20px;
}

.home-page .home-workflow .ed-workflow-art svg {
  display: block;
  width: 140px;
  height: 128px;
  max-width: calc(100% - 36px);
  margin-bottom: 8px;
  overflow: visible;
  color: #888888;
}

.home-page .home-workflow .ed-workflow-art svg > rect:first-child {
  fill: #FFFFFF;
}

.home-page .home-workflow .ed-workflow-art .ed-hot {
  stroke: #FE4A23;
}

.home-page .home-workflow > li:nth-child(2) .ed-workflow-art rect.ed-hot {
  fill: #FFF2ED;
}

.home-page .home-workflow > li:nth-child(3) .ed-workflow-art circle {
  fill: #FFF2ED;
  fill-opacity: .7;
}

.home-page .home-workflow > li:not(:last-child)::after {
  display: none;
}

.home-page .home-workflow > li > .home-label {
  display: block;
  font-size: 14px !important;
  line-height: 22px !important;
}

.home-page .home-workflow h3 {
  margin-top: 12px;
  font-size: 25px;
  line-height: 31px;
  overflow-wrap: normal;
}

.home-page .home-workflow p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 25px;
  overflow-wrap: anywhere;
}

/* The complete diagram is the no-JS state. Enhancement draws each process once. */
.home-page .home-workflow[data-workflow-enhanced="true"] .ed-workflow-art svg > :is(rect, path, circle) {
  animation-duration: 1.1s;
  animation-delay: var(--workflow-delay);
  animation-timing-function: cubic-bezier(.22, .61, .36, 1);
  animation-iteration-count: 1;
  animation-fill-mode: both;
  animation-play-state: paused;
}

.home-page .home-workflow[data-workflow-enhanced="true"][data-running="true"] > li[data-workflow-visible="true"] .ed-workflow-art svg > :is(rect, path, circle) {
  animation-play-state: running;
}

.home-page .home-workflow[data-workflow-enhanced="true"] > li:nth-child(1) .ed-workflow-art svg > path:not(.ed-hot) {
  animation-name: dealyo-workflow-document;
  stroke-dasharray: 66;
}

.home-page .home-workflow[data-workflow-enhanced="true"] > li:nth-child(1) .ed-workflow-art .ed-hot {
  animation-name: dealyo-workflow-confirm;
  animation-delay: calc(var(--workflow-delay) + .45s);
  stroke-dasharray: 36;
}

.home-page .home-workflow[data-workflow-enhanced="true"] > li:nth-child(2) .ed-workflow-art svg > rect:first-child {
  animation-name: dealyo-workflow-frame;
  stroke-dasharray: 200;
}

.home-page .home-workflow[data-workflow-enhanced="true"] > li:nth-child(2) .ed-workflow-art svg > path {
  animation-name: dealyo-workflow-grid;
  animation-delay: calc(var(--workflow-delay) + .2s);
  stroke-dasharray: 84;
}

.home-page .home-workflow[data-workflow-enhanced="true"] > li:nth-child(2) .ed-workflow-art rect.ed-hot {
  animation-name: dealyo-workflow-accent;
  animation-delay: calc(var(--workflow-delay) + .55s);
}

.home-page .home-workflow[data-workflow-enhanced="true"] > li:nth-child(3) .ed-workflow-art svg > path:not(.ed-hot) {
  animation-name: dealyo-workflow-review;
}

.home-page .home-workflow[data-workflow-enhanced="true"] > li:nth-child(3) .ed-workflow-art circle {
  animation-name: dealyo-workflow-lens;
  animation-delay: calc(var(--workflow-delay) + .2s);
  stroke-dasharray: 90;
}

.home-page .home-workflow[data-workflow-enhanced="true"] > li:nth-child(3) .ed-workflow-art path.ed-hot {
  animation-name: dealyo-workflow-confirm;
  animation-delay: calc(var(--workflow-delay) + .55s);
  stroke-dasharray: 36;
}

.home-page .home-workflow[data-workflow-enhanced="true"] > li:nth-child(4) .ed-workflow-art svg > path:first-child {
  animation-name: dealyo-workflow-export;
  stroke-dasharray: 180;
}

.home-page .home-workflow[data-workflow-enhanced="true"] > li:nth-child(4) .ed-workflow-art path.ed-hot {
  animation-name: dealyo-workflow-confirm;
  animation-delay: calc(var(--workflow-delay) + .55s);
  stroke-dasharray: 36;
}

@keyframes dealyo-workflow-document {
  from { stroke-dashoffset: 66; opacity: .15; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes dealyo-workflow-confirm {
  from { stroke-dashoffset: 36; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes dealyo-workflow-frame {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}
@keyframes dealyo-workflow-grid {
  from { stroke-dashoffset: 84; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes dealyo-workflow-accent {
  from { fill-opacity: 0; stroke-opacity: 0; }
  to { fill-opacity: 1; stroke-opacity: 1; }
}
@keyframes dealyo-workflow-review {
  0% { stroke: #888888; opacity: .3; }
  55% { stroke: #FE4A23; opacity: 1; }
  100% { stroke: #888888; opacity: 1; }
}
@keyframes dealyo-workflow-lens {
  from { stroke-dashoffset: 90; fill-opacity: 0; }
  to { stroke-dashoffset: 0; fill-opacity: .7; }
}
@keyframes dealyo-workflow-export {
  from { stroke-dashoffset: 180; opacity: .15; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@media (max-width: 1023px) {
  .home-page .home-workflow { --workflow-card-padding: 26px; }
}

@media (max-width: 600px) {
  .home-page .home-workflow {
    --workflow-art-height: 216px;
    --workflow-card-padding: 22px;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-workflow > li:nth-child(n) { --workflow-delay: 0s; }

  .home-page .home-workflow > li {
    display: block;
    min-height: 0;
    padding: 0 var(--workflow-card-padding) 28px;
  }

  .home-page .home-workflow .ed-workflow-art {
    width: auto;
    height: var(--workflow-art-height);
    margin: 0 calc(-1 * var(--workflow-card-padding)) 23px;
    border: 0;
    border-bottom: 1px solid #E7E7E7;
  }

  .home-page .home-workflow .ed-workflow-art svg {
    width: 132px;
    height: 120px;
  }

  .home-page .home-workflow > li:not(:last-child)::after {
    display: none;
  }

  .home-page .home-workflow > li > .home-label {
    font-size: 14px;
    line-height: 22px;
  }

  .home-page .home-workflow h3 {
    margin-top: 10px;
    font-size: 26px;
    line-height: 32px;
  }

  .home-page .home-workflow p {
    margin-top: 11px;
    font-size: 16px;
    line-height: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-workflow .ed-workflow-art svg > :is(rect, path, circle) {
    animation: none !important;
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
}
