/* The workflow pages: the overview (/workflows, site/workflows.html) and the
   six examples (/workflows/<slug>, site/journey.html). Both stand on the
   feature pages' styles (.fp) and scenes (.fs) of features.css; here is only
   what the workflow pages add. */

.wf [id] { scroll-margin-top: 58px; }
a.fp-badge { transition: border-color 0.15s, color 0.15s; }
a.fp-badge:hover { border-color: var(--fp-p2); color: var(--fp-p); }

/* The hero's scene of an example: the big picture as somebody sketches it
   on a sheet. „Der Plan“ is underlined, a pen's arrow runs from top to
   bottom along the steps (step 1), the note stands (2), then the six steps
   fill with purple one after the other (3–8) – the count-down to the page
   going to the first step by itself (9, site/steps.js). Without the player
   the sheet stands finished and unfilled. */
.wf-plan { --pen: var(--fp-p); --hand: "Caveat", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; max-width: 440px; gap: 0; }
.wf-plan.is-out { opacity: 1; }
.wf-plan__sheet { position: relative; padding: 26px 30px 26px; background: #fff; border: 1px solid var(--fp-line); border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(122, 88, 184, 0.16); transform: rotate(-1.2deg); }
.wf-plan__title { position: relative; display: inline-block; font-family: var(--hand); font-size: 34px; font-weight: 700; line-height: 1; color: var(--fp-ink); margin: 0 0 22px 4px; }
.wf-plan__title svg { position: absolute; left: -4px; bottom: -9px; width: calc(100% + 14px); height: 10px; }
.wf-plan svg path { stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wf-plan__flow { position: relative; padding-left: 34px; }
.wf-plan__arrow { position: absolute; left: 0; top: 10px; bottom: 2px; width: 30px; display: flex; flex-direction: column; align-items: center; }
.wf-plan__shaft { flex: 1; min-height: 0; width: 20px; }
.wf-plan__head { flex: none; width: 30px; height: 20px; margin-top: -15px; }
.wf-plan ol { display: flex; flex-direction: column; gap: 4px; }
.wf-plan li a { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 12px 7px 6px; border-radius: 10px; overflow: hidden; isolation: isolate; }
/* The purple that fills a step from the left. */
.wf-plan li a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #7a58b8, #8a69c6); transform: scaleX(0); transform-origin: left; }
.wf-plan li a:hover, .wf-plan li a:focus-visible { background: var(--fp-soft); outline: none; }
.wf-plan__num { flex: none; width: 30px; text-align: center; font-family: var(--hand); font-size: 32px; font-weight: 700; line-height: 1; color: var(--pen); }
.wf-plan__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wf-plan__text b { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--fp-ink); }
.wf-plan__text small { font-size: 12.5px; color: var(--fp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-plan__num, .wf-plan__text b, .wf-plan__text small { transition: color 0.3s 0.25s; }
.wf-plan__next { display: block; margin-top: 18px; padding: 16px 4px 0; border-top: 1px dashed rgba(0, 0, 0, 0.14); }
.wf-plan__next span { font-family: var(--hand); font-size: 24.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; color: var(--pen); }
/* While the player runs: each part comes at its step. */
.wf-plan.is-playing .wf-plan__shaft path, .wf-plan.is-playing .wf-plan__head path { stroke-dashoffset: 1; }
.wf-plan.is-playing .wf-plan__next span { opacity: 0; transition: opacity 0.4s; }
.wf-plan.s1 .wf-plan__shaft path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease-in-out; }
.wf-plan.s2 .wf-plan__head path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.3s; }
.wf-plan.s2 .wf-plan__next span { opacity: 1; }
.wf-plan.is-playing.s3 li:nth-child(1) a::before, .wf-plan.is-playing.s4 li:nth-child(2) a::before, .wf-plan.is-playing.s5 li:nth-child(3) a::before, .wf-plan.is-playing.s6 li:nth-child(4) a::before, .wf-plan.is-playing.s7 li:nth-child(5) a::before, .wf-plan.is-playing.s8 li:nth-child(6) a::before { transform: none; transition: transform 0.7s linear; }
.wf-plan.is-playing.s3 li:nth-child(1) :is(.wf-plan__num, b), .wf-plan.is-playing.s4 li:nth-child(2) :is(.wf-plan__num, b), .wf-plan.is-playing.s5 li:nth-child(3) :is(.wf-plan__num, b), .wf-plan.is-playing.s6 li:nth-child(4) :is(.wf-plan__num, b), .wf-plan.is-playing.s7 li:nth-child(5) :is(.wf-plan__num, b), .wf-plan.is-playing.s8 li:nth-child(6) :is(.wf-plan__num, b) { color: #fff; }
.wf-plan.is-playing.s3 li:nth-child(1) small, .wf-plan.is-playing.s4 li:nth-child(2) small, .wf-plan.is-playing.s5 li:nth-child(3) small, .wf-plan.is-playing.s6 li:nth-child(4) small, .wf-plan.is-playing.s7 li:nth-child(5) small, .wf-plan.is-playing.s8 li:nth-child(6) small { color: rgba(255, 255, 255, 0.8); }
/* Once the page went on, or the visitor took over, nothing counts down. */
.wf-plan.is-seen li a::before { transform: scaleX(0) !important; transition: none !important; }
.wf-plan.is-seen :is(.wf-plan__num, b, small) { transition: none; }
.wf-plan.is-seen .wf-plan__num { color: var(--pen) !important; }
.wf-plan.is-seen .wf-plan__text b { color: var(--fp-ink) !important; }
.wf-plan.is-seen .wf-plan__text small { color: var(--fp-muted) !important; }

/* The steps: each a page of its own – copy and scene side by side, the
   sides alternating. The scroll clicks into place at a step: site/steps.js
   pages with the wheel and the keys and settles a scroll that ends between
   two steps; the snap here is what holds without it. The dots at the right
   edge say which step is on screen. On a phone a step may be longer than
   the screen and is then only caught near its start. */
html:has(.wf-steps) { scroll-snap-type: y proximity; }
.wf .wf-step[id] { scroll-margin-top: 0; }
.wf-step { scroll-snap-align: start; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 90px 0 32px; }
.wf-step > .fp-container { width: 100%; }
.wf-step:nth-of-type(even) { background: var(--fp-soft); }
.wf-step__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; padding-right: 56px; }
.wf-step__grid > * { min-width: 0; }
.wf-step__scene { display: flex; justify-content: flex-end; }
.wf-step:nth-of-type(even) .wf-step__copy { order: 2; }
.wf-step:nth-of-type(even) .wf-step__scene { justify-content: flex-start; }
.wf-step__num { display: inline-block; font-family: var(--fp-mono); font-weight: 500; letter-spacing: 0; color: var(--fp-p); background: var(--fp-accent); border-radius: 99px; padding: 3px 10px; margin-right: 12px; }
.wf-step:nth-of-type(even) .wf-step__num { background: #fff; }
.wf-step h2 em { display: block; font-style: normal; color: var(--fp-p2); }
.wf-step__copy > p { font-size: 17px; line-height: 1.65; color: var(--fp-muted); max-width: 520px; margin-top: 22px; }
/* The systems of a step, each with logo and name: Mühelos' own parts under
   its icon, another vendor's product under its logo, an optional one dashed. */
.wf-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.wf-tools li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 6px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 600; color: var(--fp-ink); }
.wf-tools img { width: 18px; height: 18px; object-fit: contain; border-radius: 5px; }
.wf-tools .wf-tools__optional { border-style: dashed; border-color: rgba(0, 0, 0, 0.22); background: transparent; color: var(--fp-gray); padding-left: 11px; }
/* An optional chip flips through its products, one above the other. */
.wf-flip { display: inline-grid; height: 18px; overflow: hidden; }
.wf-flip > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; height: 18px; white-space: nowrap; animation: 7.8s infinite backwards wf-flip-3; animation-delay: calc(var(--i) * 2.6s); }
.wf-flip--2 > span { animation-name: wf-flip-2; animation-duration: 5.2s; }
.wf-flip--1 > span { animation: none; }
@keyframes wf-flip-3 { 0% { transform: translateY(110%); opacity: 0; } 5%, 33.3% { transform: none; opacity: 1; } 38.3%, 100% { transform: translateY(-110%); opacity: 0; } }
@keyframes wf-flip-2 { 0% { transform: translateY(110%); opacity: 0; } 7.5%, 50% { transform: none; opacity: 1; } 57.5%, 100% { transform: translateY(-110%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wf-flip > span { animation: none; } .wf-flip > span + span { display: none; } }
.wf-tools small { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fp-muted); }
.wf-step__copy > .wf-takeaway { display: flex; gap: 10px; font-size: 15px; font-weight: 600; color: var(--fp-ink); margin-top: 28px; }
.wf-takeaway::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--fp-accent); color: var(--fp-p); font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.wf-step:nth-of-type(even) .wf-takeaway::before { background: #fff; }
.wf-dots { position: fixed; z-index: 30; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.wf-dots.is-on { opacity: 1; visibility: visible; }
.wf-dots a { position: relative; display: flex; align-items: center; justify-content: center; width: 28px; height: 22px; }
.wf-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(0, 0, 0, 0.22); transition: height 0.25s, background 0.25s; }
.wf-dots a:hover i { background: var(--fp-p2); }
.wf-dots a[aria-current] { height: 34px; }
.wf-dots a[aria-current] i { height: 22px; background: var(--fp-p); }
.wf-dots a:focus-visible { outline: 2px solid var(--fp-p2); outline-offset: -2px; border-radius: 8px; }
.wf-dots span { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 7px; background: var(--fp-nav); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.wf-dots a:hover span, .wf-dots a:focus-visible span { opacity: 1; }

/* The result: the six steps once more as one line. */
.wf-result .fp-eyebrow, .wf-result h2 { text-align: center; }
.wf-path { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 56px; }
.wf-path a { display: block; height: 100%; border-top: 2px solid var(--fp-p2); padding: 22px 16px 0 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: #fff; transition: color 0.15s; }
.wf-path a:hover { color: var(--fp-p2); }
.wf-path span { display: block; font-family: var(--fp-mono); font-size: 12px; font-weight: 500; color: var(--fp-p); margin-bottom: 8px; }
.wf-result__note { max-width: 640px; margin: 56px auto 0; text-align: center; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.6); }

/* The overview's cards. */
.wf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wf-card { display: flex; flex-direction: column; padding: 36px 34px 32px; }
.wf-card h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 14px; }
.wf-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 28px 0 8px; padding-top: 24px; border-top: 1px solid var(--fp-line); }
.wf-stops li { font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--fp-gray); }
.wf-stops span { display: block; font-family: var(--fp-mono); font-size: 11px; font-weight: 500; color: var(--fp-p); margin-bottom: 3px; }
.wf-card .fp-related__more { margin-top: auto; padding-top: 22px; }
.wf-note { max-width: 720px; margin: 44px auto 0; font-size: 14px; line-height: 1.7; color: var(--fp-muted); text-align: center; }

/* Parts of the workflow scenes the feature scenes do not have. */
/* An advertisement: a picture with its line, drawn in CSS. */
.fs-ad { position: relative; height: 128px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #eaf3fb 0 62%, #cfe5cf 62% 100%); }
.fs-ad::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: 12px; height: 44px; background: repeating-linear-gradient(90deg, #d2ae86 0 15px, transparent 15px 23px); border-radius: 3px 3px 0 0; }
.fs-ad::after { content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 4px; background: #b08a63; box-shadow: 0 -20px 0 #b08a63; }
.fs-ad b { position: absolute; left: 14px; top: 12px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--fp-ink); }
.fs-ad i { position: absolute; right: 22px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: #f6d274; }
/* A vehicle with its plate, and the rooms of a floor. */
.fs-vehicle { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 8px; border: 1px solid var(--fp-line); border-radius: 10px; background: var(--fp-soft); }
.fs-car { width: 78%; max-width: 300px; height: auto; }
.fs-plate { font-family: var(--fp-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--fp-ink); background: #fff; border: 1px solid rgba(0, 0, 0, 0.2); border-left: 6px solid var(--fp-p); border-radius: 4px; padding: 3px 10px; }
.fs-rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fs-room { padding: 12px 4px; border: 1px solid var(--fp-line); border-radius: 10px; background: #fff; font-family: var(--fp-mono); font-size: 13px; text-align: center; color: var(--fp-muted); transition: border-color 0.3s, box-shadow 0.3s, color 0.3s; }
.fs.s1 .fs-room[data-hl="1"] { color: var(--fp-p); font-weight: 600; }
/* A week of a calendar: five days, an appointment that lands in one. */
.fs-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fs-day { display: flex; flex-direction: column; gap: 5px; min-height: 148px; padding: 8px 6px; border: 1px solid var(--fp-line); border-radius: 10px; background: #fff; transition: border-color 0.3s, box-shadow 0.3s; }
.fs-day > b { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fp-muted); text-align: center; padding-bottom: 3px; }
.fs-event { border-radius: 6px; padding: 5px 6px; background: rgba(0, 0, 0, 0.05); font-size: 10.5px; font-weight: 600; line-height: 1.35; color: var(--fp-gray); overflow: hidden; }
.fs-event small { display: block; font-family: var(--fp-mono); font-size: 9.5px; font-weight: 500; opacity: 0.75; }
.fs-event--new { background: var(--fp-p); color: #fff; margin-top: 21px; padding-block: 14px; }
/* A document: its letterhead and lines, a signature that is written. */
.fs-paper { display: flex; flex-direction: column; gap: 8px; }
.fs-letter { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 4px 10px; border-bottom: 2px solid var(--fp-ink); }
.fs-letter b { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fp-ink); }
.fs-letter span { font-family: var(--fp-mono); font-size: 11.5px; color: var(--fp-muted); }
.fs-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 4px; font-size: 13px; color: var(--fp-gray); }
.fs-line b { font-family: var(--fp-mono); font-weight: 500; color: var(--fp-ink); white-space: nowrap; }
.fs-sign { flex: 1; min-width: 0; min-height: 38px; border-bottom: 1.5px solid rgba(0, 0, 0, 0.3); padding: 0 6px 2px; display: flex; align-items: flex-end; font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; font-size: 22px; line-height: 1; color: var(--fp-p); white-space: nowrap; }
.fs-sign span { display: inline-block; overflow: hidden; }
.fs .fs-sign span[data-at] { opacity: 1; transform: none; max-width: 0; transition: max-width 1.1s ease-in-out; }
.fs.s1 .fs-sign span[data-at="1"], .fs.s2 .fs-sign span[data-at="2"], .fs.s3 .fs-sign span[data-at="3"], .fs.s4 .fs-sign span[data-at="4"], .fs.s5 .fs-sign span[data-at="5"], .fs.s6 .fs-sign span[data-at="6"] { max-width: 220px; }
/* Two things held against each other. */
.fs-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.fs-match > .fs-row { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; padding: 12px; }
.fs-match__eq { width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, 0.06); color: var(--fp-muted); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background 0.3s, color 0.3s; }
.fs.s1 .fs-match__eq[data-on="1"], .fs.s2 .fs-match__eq[data-on="2"], .fs.s3 .fs-match__eq[data-on="3"], .fs.s4 .fs-match__eq[data-on="4"], .fs.s5 .fs-match__eq[data-on="5"], .fs.s6 .fs-match__eq[data-on="6"] { background: #1f9d55; color: #fff; }
/* A signal: bars that fill at their step. */
.fs-signal { display: flex; align-items: flex-end; gap: 4px; height: 26px; flex: none; }
.fs-signal i { width: 6px; border-radius: 2px; background: rgba(0, 0, 0, 0.1); transition: background 0.4s; }
.fs-signal i:nth-child(1) { height: 30%; background: #d92d20; }
.fs-signal i:nth-child(2) { height: 53%; }
.fs-signal i:nth-child(3) { height: 76%; }
.fs-signal i:nth-child(4) { height: 100%; }
.fs.s1 .fs-signal[data-on="1"] i, .fs.s2 .fs-signal[data-on="2"] i, .fs.s3 .fs-signal[data-on="3"] i, .fs.s4 .fs-signal[data-on="4"] i, .fs.s5 .fs-signal[data-on="5"] i, .fs.s6 .fs-signal[data-on="6"] i { background: #1f9d55; }
.fs-signal i:nth-child(2) { transition-delay: 0.15s; }
.fs-signal i:nth-child(3) { transition-delay: 0.3s; }
.fs-signal i:nth-child(4) { transition-delay: 0.45s; }
/* A source that flows into the hub: fs-bar under a row. */
.fs-row--stack { flex-wrap: wrap; }
.fs-row--stack > .fs-bar { flex: 0 0 100%; }
.fs-ico img { width: 20px; height: 20px; object-fit: contain; }
.fs-ico--sym { font-family: inherit; font-size: 15px; font-weight: 600; }
.fs-ico--plain { background: #fff; border: 1px solid var(--fp-line); }
.fs-ico--ai { background: var(--fp-p); color: #fff; font-family: inherit; font-size: 15px; }
.fs-ico--ok { background: #e6f4ec; color: var(--fp-ok); font-family: inherit; font-size: 15px; }
.fs-bubble--in { align-self: flex-start; background: #fff; border: 1px solid var(--fp-line); color: var(--fp-ink); border-bottom-left-radius: 4px; }
.fs-done .fs-box { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; margin-bottom: 10px; }

@media (max-width: 1020px) {
  .wf-step { padding: 82px 0 28px; }
  .wf-step__grid { grid-template-columns: 1fr; gap: 32px; padding-right: 36px; }
  .wf-step:nth-of-type(even) .wf-step__copy { order: 0; }
  .wf-step__scene, .wf-step:nth-of-type(even) .wf-step__scene { justify-content: center; }
  .wf-step__copy > p { font-size: 16px; margin-top: 16px; max-width: 640px; }
  .wf-tools, .wf-step__copy > .wf-takeaway { margin-top: 20px; }
  .wf-path { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .wf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wf-step { align-items: flex-start; padding: 78px 0 36px; }
  .wf-step__grid { gap: 26px; padding-right: 14px; }
  .wf-step__copy > p { font-size: 15px; line-height: 1.6; }
  .wf-step__copy > .wf-takeaway { display: none; }
  .wf-dots { right: 2px; }
  .wf-dots a { width: 20px; height: 18px; }
  .wf-dots a[aria-current] { height: 28px; }
  .wf-dots a[aria-current] i { height: 18px; }
  .wf-dots i { width: 5px; height: 5px; }
  .wf-dots span { display: none; }
  .wf-plan__sheet { padding: 22px 18px 24px; }
  .wf-plan__next span { font-size: 21px; }
  .wf-card { padding: 28px 22px 26px; }
  .wf-stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-week { gap: 4px; }
  .fs-day { padding: 6px 3px; }
  .fs-event { font-size: 9.5px; padding: 4px; }
  .fs-match { grid-template-columns: 1fr; justify-items: center; }
  .fs-match > .fs-row { width: 100%; }
}
