/* W23: "How it works in your business" chips in 02 and the workflow pop-up they open. */
.wf { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(209,173,106,.18); }
.wf__k { margin: 0 0 10px; font: 500 13px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.wf__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wf__chip { --c: 209,173,106; position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 9px 14px 9px 10px; border-radius: 12px; border: 1px solid rgba(var(--c), .42); background: linear-gradient(180deg, rgba(var(--c), .12), rgba(var(--c), .03)); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color .25s, background .25s, box-shadow .25s, transform .25s; }
.wf__chip:hover, .wf__chip:focus-visible { border-color: rgba(var(--c), .9); background: linear-gradient(180deg, rgba(var(--c), .2), rgba(var(--c), .06)); box-shadow: 0 10px 28px -14px rgba(var(--c), .9); }
.wf__chip:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wf__chip:active { transform: translateY(1px); }
.wf__ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(var(--c), .16); }
.wf__ic svg { width: 18px; height: 18px; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wf__chip .wf__go { flex: none; width: 14px; height: 14px; fill: none; stroke: rgba(var(--c), .9); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step__line + .wf { margin: 0 0 18px; padding: 0 0 14px; border-top: 0; border-bottom: 1px solid rgba(209,173,106,.18); }
.wf__chip .wf__pg { flex: none; padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(240,217,166,.42); font: 500 13px/1 var(--f-mono); letter-spacing: .04em; color: var(--brass-2, #f0d9a6); white-space: nowrap; }

/* The pop-up */
.wfd { --wb: 209,173,106; position: fixed; inset: 0; margin: auto; width: min(760px, calc(100vw - 32px)); max-width: none; height: fit-content; max-height: min(88vh, 860px); padding: 0; border: 1px solid rgba(var(--wb), .38); border-radius: 18px; color: var(--ink); background: radial-gradient(120% 60% at 100% 0%, rgba(255,106,43,.13), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(var(--wb), .09), transparent 60%), #0b0c0e; box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03) inset; overflow: hidden; }
.wfd::backdrop { background: rgba(4,5,6,.74); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.wfd[open] { display: flex; flex-direction: column; }
.wfd::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brass) 25%, var(--ember) 75%, transparent); opacity: .85; pointer-events: none; }
.wfd__in { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 26px 30px 24px; }
.wfd__hd { position: relative; padding-right: 52px; }
.wfd__k { margin: 0 0 8px; font: 500 13px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.wfd__t { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.wfd__s { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: rgba(242,239,232,.74); }
.wfd__x { position: absolute; top: -6px; right: -10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(var(--wb), .3); background: rgba(255,255,255,.03); color: var(--ink); cursor: pointer; }
.wfd__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.wfd__x:hover, .wfd__x:focus-visible { border-color: var(--brass); outline: none; box-shadow: 0 0 0 2px rgba(var(--wb), .35); }

.wfd__flow { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: wfn; }
.wfd__n { --d: calc(var(--i, 0) * 110ms); position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 0 0 18px; }
.wfd__n:last-child { padding-bottom: 4px; }
.wfd__n::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, rgba(var(--wb), .85), rgba(255,106,43,.55)); transform-origin: top; }
.wfd__n:last-child::after { display: none; }
.wfd__b { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--brass); background: radial-gradient(circle at 35% 30%, rgba(240,217,166,.28), rgba(11,12,14,1) 70%); font: 600 15px/1 var(--f-mono); color: #f0d9a6; box-shadow: 0 0 0 4px #0b0c0e, 0 0 22px -6px rgba(255,106,43,.7); }
.wfd__n--prog .wfd__b { border-style: dashed; color: rgba(240,217,166,.8); box-shadow: 0 0 0 4px #0b0c0e; }
.wfd__c { min-width: 0; padding: 8px 14px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.025); }
.wfd__c b { display: block; font-size: 17px; line-height: 1.3; font-weight: 650; }
.wfd__c span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: rgba(242,239,232,.74); }
.wfd__c .perk__tag { display: inline-block; margin: 8px 0 0; }
.wfd__src { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: rgba(242,239,232,.56); }
/* A separate track or an In progress add-on: no number, so it never reads as a step of the live chain. */
.wfd__aside { margin: 10px 0 0 56px; padding: 10px 14px 12px; border-radius: 12px; border: 1px dashed rgba(var(--wb), .38); background: rgba(var(--wb), .04); }
.wfd__aside b { display: block; font-size: 16px; line-height: 1.3; font-weight: 650; }
.wfd__aside span:not(.perk__tag) { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: rgba(242,239,232,.74); }
.wfd__aside .perk__tag { display: inline-block; margin: 0 0 8px; }

.wfd__ft { position: relative; flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 30px 18px; border-top: 1px solid rgba(var(--wb), .2); background: #0b0c0e; }
.wfd__ft::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; margin-bottom: 1px; background: linear-gradient(180deg, rgba(11,12,14,0), #0b0c0e); pointer-events: none; }
.wfd__st { flex: 1 1 260px; display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; line-height: 1.5; color: rgba(242,239,232,.82); }
.wfd__dot { flex: none; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: rgb(111,214,160); box-shadow: 0 0 0 3px rgba(111,214,160,.16), 0 0 12px rgba(111,214,160,.7); }
.wfd__st .perk__tag { margin-top: 1px; }
.wfd__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.wfd__acts .btn { min-height: 44px; }

/* Reveal: the rail draws down and each node rises in turn. */
.wfd.is-in .wfd__n { animation: wfUp .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
.wfd.is-in .wfd__n::after { animation: wfDraw .5s ease-out both; animation-delay: calc(var(--d) + 180ms); }
.wfd.is-in .wfd__b { animation: wfGlow 1s ease-out both; animation-delay: var(--d); }
@keyframes wfUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wfDraw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wfGlow { 0% { box-shadow: 0 0 0 4px #0b0c0e, 0 0 0 0 rgba(255,106,43,.0); } 40% { box-shadow: 0 0 0 4px #0b0c0e, 0 0 26px 2px rgba(255,106,43,.75); } 100% { box-shadow: 0 0 0 4px #0b0c0e, 0 0 22px -6px rgba(255,106,43,.7); } }
@media (prefers-reduced-motion: reduce) { .wfd.is-in .wfd__n, .wfd.is-in .wfd__n::after, .wfd.is-in .wfd__b { animation: none; } }

/* Wide screens: two columns of nodes would break the line, so keep one column but give it room. */
@media (min-width: 900px) { .wfd__flow { display: grid; grid-template-columns: 1fr; } }

/* Phones: a bottom sheet that scrolls inside. */
@media (max-width: 599px) {
  .wfd { inset: auto 0 0 0; width: 100vw; max-height: 92svh; margin: 0; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .wfd__in { padding: 20px 16px 16px; }
  .wfd__ft { gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .wfd__st { flex-basis: 100%; line-height: 1.4; }
  .wfd__acts { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .wfd__aside { margin-left: 46px; padding: 9px 12px 11px; }
  .wf { margin: 18px 0 22px; padding-top: 0; border-top: 0; }
  .wf__chip { display: grid; grid-template-columns: 28px minmax(0, 1fr) 14px; column-gap: 10px; row-gap: 6px; }
  .wf__chip .wf__ic { grid-row: 1 / span 2; align-self: center; }
  .wf__chip > span:not(.wf__ic):not(.wf__pg) { grid-column: 2; }
  .wf__chip .wf__pg { grid-column: 2; grid-row: 2; justify-self: start; }
  .wf__chip .wf__go { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .wfd__hd { padding-right: 50px; }
  .wfd__x { top: -4px; right: -4px; }
  .wfd__t { font-size: 24px; }
  .wfd__n { grid-template-columns: 34px 1fr; column-gap: 12px; padding-bottom: 14px; }
  .wfd__b { width: 34px; height: 34px; font-size: 14px; }
  .wfd__n::after { left: 16px; top: 36px; }
  .wfd__c { padding: 7px 12px 10px; }
  .wfd__c b { font-size: 16px; }
  .wfd__acts { width: 100%; }
  .wfd__acts .btn { justify-content: center; }
  .wf__chip { width: 100%; }
}
