/* Guided flow strip above the configurator: 4 tilted "pinned print" cards that play on their own until an image is added. */
.vv-root .vv-flow {
    --flow-gradient: linear-gradient(110deg, #2563eb, #7c3aed 40%, #db2777 70%, #f97316);
    --flow-badge: 52px;
    --flow-spring: cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 44px 28px 32px;
    text-align: center;
}
.vv-root .vv-flow-heading {
    position: relative;
    display: inline-block;
    margin: 0 auto 40px;
    color: var(--vv-text);
    font: 700 21px/1.25 var(--vv-font-head);
    letter-spacing: -.015em;
}
.vv-root .vv-flow-heading::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -7px;
    height: 4px;
    border-radius: 4px;
    background: var(--flow-gradient);
    transform: rotate(-.8deg);
    opacity: .55;
}
.vv-root .vv-flow-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Card: white print with a colour wash, a strip of tape and its own tilt and height. */
.vv-root .vv-flow-step {
    --tilt: -2.2deg;
    --lift: 0px;
    --wash: rgba(37, 99, 235, .10);
    --tape: rgba(37, 99, 235, .22);
    position: relative;
    z-index: calc(10 - var(--i));
    border: 1px solid var(--vv-border);
    border-radius: 16px;
    background: radial-gradient(120% 90% at 100% 0, var(--wash), transparent 60%), var(--vv-bg);
    box-shadow: 0 10px 26px rgba(17, 24, 39, .07);
    rotate: var(--tilt);
    translate: 0 var(--lift);
    transition: rotate .7s var(--flow-spring), translate .7s var(--flow-spring), scale .7s var(--flow-spring), box-shadow .5s, border-color .5s;
    animation: vv-flow-in .7s cubic-bezier(.2, .8, .2, 1) backwards;
    animation-delay: calc(var(--i) * 130ms + 80ms);
}
.vv-root .vv-flow-step[data-flow-step="2"] { --tilt: 1.6deg; --lift: 14px; --wash: rgba(124, 58, 237, .11); --tape: rgba(124, 58, 237, .22); }
.vv-root .vv-flow-step[data-flow-step="3"] { --tilt: -1.2deg; --lift: -4px; --wash: rgba(219, 39, 119, .10); --tape: rgba(219, 39, 119, .2); }
.vv-root .vv-flow-step[data-flow-step="4"] { --tilt: 2deg; --lift: 10px; --wash: rgba(249, 115, 22, .12); --tape: rgba(249, 115, 22, .24); }
.vv-root .vv-flow-step::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 58px;
    height: 18px;
    margin-left: -29px;
    border-radius: 2px;
    background: var(--tape);
    rotate: calc(var(--tilt) * -2);
}
.vv-root .vv-flow-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 20px 12px 16px;
    border: 0;
    border-radius: 16px;
    background: none;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.vv-root .vv-flow-btn:focus-visible { outline: 2px solid var(--vv-accent); outline-offset: 3px; }
.vv-root .vv-flow-step:hover { rotate: 0deg; scale: 1.03; box-shadow: 0 16px 34px rgba(124, 58, 237, .14); }

/* Hand-drawn arrow to the next card. */
.vv-root .vv-flow-arrow {
    position: absolute;
    top: 34%;
    right: -31px;
    width: 32px;
    height: 16px;
    fill: none;
    stroke: #a78bfa;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    rotate: calc(var(--tilt) * -1);
    pointer-events: none;
}
.vv-root .vv-flow-arrow path:first-child { stroke-dasharray: 60; stroke-dashoffset: 0; }
.vv-root .vv-flow-step.is-active .vv-flow-arrow path:first-child { animation: vv-flow-draw-arrow 1.3s ease-out .3s both; }

/* Badge: gradient ring, white core, icon / check / number layered inside. */
.vv-root .vv-flow-badge {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--flow-badge);
    height: var(--flow-badge);
    border-radius: 50%;
    background: linear-gradient(var(--vv-bg), var(--vv-bg)) padding-box, linear-gradient(var(--vv-border-strong), var(--vv-border-strong)) border-box;
    border: 2px solid transparent;
    color: var(--vv-text-muted);
    transition: transform .35s var(--flow-spring), color .35s;
}
.vv-root .vv-flow-badge > svg {
    grid-area: 1 / 1;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity .3s, transform .4s var(--flow-spring);
}
.vv-root .vv-flow-check { opacity: 0; transform: scale(.4); stroke-width: 2.6; }
.vv-root .vv-flow-check path { stroke-dasharray: 22; stroke-dashoffset: 22; }
.vv-root .vv-flow-num {
    position: absolute;
    top: -4px;
    right: -6px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--vv-text);
    color: #fff;
    font: 700 11px/1 var(--vv-font-head);
    transition: background .35s, transform .35s;
}
.vv-root .vv-flow-copy { display: flex; flex-direction: column; gap: 3px; }
.vv-root .vv-flow-title {
    color: var(--vv-text);
    font: 700 15.5px/1.25 var(--vv-font-head);
    letter-spacing: -.01em;
}
.vv-root .vv-flow-text { color: var(--vv-text-muted); font-size: 13px; line-height: 1.4; }

/* Active card (the demo spotlight, then the user's next step): straightens, rises and comes alive. */
.vv-root .vv-flow-step.is-active {
    z-index: 20;
    rotate: 0deg;
    scale: 1.06;
    translate: 0 calc(var(--lift) - 8px);
    border-color: transparent;
    background: radial-gradient(120% 90% at 100% 0, var(--wash), transparent 60%) padding-box, linear-gradient(var(--vv-bg), var(--vv-bg)) padding-box, var(--flow-gradient) border-box;
    box-shadow: 0 20px 40px rgba(124, 58, 237, .18);
}
.vv-root .vv-flow-step.is-active .vv-flow-badge {
    background: linear-gradient(var(--vv-bg), var(--vv-bg)) padding-box, var(--flow-gradient) border-box;
    color: #7c3aed;
    transform: scale(1.06);
}
.vv-root .vv-flow-step.is-active .vv-flow-badge::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 50%;
    background: var(--flow-gradient);
    animation: vv-flow-halo 2.2s ease-out infinite;
}
.vv-root .vv-flow-step.is-active .vv-flow-num { background: #7c3aed; }
.vv-root .vv-flow-step[data-flow-step="1"].is-active .flow-anim { animation: vv-flow-lift 1.4s ease-in-out infinite; }
.vv-root .vv-flow-step[data-flow-step="2"].is-active .flow-knob-a { animation: vv-flow-slide 2.4s ease-in-out infinite; }
.vv-root .vv-flow-step[data-flow-step="2"].is-active .flow-knob-b { animation: vv-flow-slide 2.4s ease-in-out -.8s infinite reverse; }
.vv-root .vv-flow-step[data-flow-step="2"].is-active .flow-knob-c { animation: vv-flow-slide 2.4s ease-in-out -1.6s infinite; }
.vv-root .vv-flow-step[data-flow-step="3"].is-active .flow-anim { transform-box: fill-box; transform-origin: 50% 0; animation: vv-flow-swing 2.2s ease-in-out infinite; }
.vv-root .vv-flow-step[data-flow-step="4"].is-active .flow-anim { transform-box: view-box; transform-origin: 50% 100%; animation: vv-flow-bounce 1.6s var(--flow-spring) infinite; }

/* Done card: filled gradient badge, the check draws itself in. */
.vv-root .vv-flow-step.is-done .vv-flow-badge { background: var(--flow-gradient) border-box; color: #fff; }
.vv-root .vv-flow-step.is-done .vv-flow-icon { opacity: 0; transform: scale(.4) rotate(-20deg); }
.vv-root .vv-flow-step.is-done .vv-flow-check { opacity: 1; transform: scale(1); }
.vv-root .vv-flow-step.is-done .vv-flow-check path { animation: vv-flow-draw .45s .1s ease-out forwards; }
.vv-root .vv-flow-step.is-done .vv-flow-num { transform: scale(0); }
.vv-root .vv-flow-step.is-done .vv-flow-title { color: var(--vv-text-muted); }
.vv-root .vv-flow-step.just-done .vv-flow-badge { animation: vv-flow-pop .5s var(--flow-spring); }

/* Promises under the cards. */
.vv-root .vv-flow-promises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
    color: var(--vv-text-muted);
    font-size: 13.5px;
}
.vv-root .vv-flow-promises li { display: inline-flex; align-items: center; gap: 7px; }
.vv-root .vv-flow-promises svg {
    flex: none;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #7c3aed;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes vv-flow-in { from { opacity: 0; translate: 0 calc(var(--lift) + 22px); } }
@keyframes vv-flow-halo { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes vv-flow-lift { 0%, 100% { transform: translateY(1.5px); } 50% { transform: translateY(-2px); } }
@keyframes vv-flow-slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes vv-flow-swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes vv-flow-bounce { 0%, 60%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-2.5px) scale(1.06); } }
@keyframes vv-flow-draw { to { stroke-dashoffset: 0; } }
@keyframes vv-flow-draw-arrow { from { stroke-dashoffset: 60; } }
.vv-root .vv-flow-caption { display: none; }

@keyframes vv-flow-caption { from { opacity: 0; translate: 0 6px; } }
@keyframes vv-flow-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (max-width: 900px) {
    .vv-root .vv-flow { padding: 32px 16px 24px; }
    .vv-root .vv-flow-list { gap: 22px; }
    .vv-root .vv-flow-arrow { right: -23px; width: 24px; }
    .vv-root .vv-flow-text { font-size: 12px; }
}

/* Phone: one row of small tilted tiles, the active step's text in a caption under them. */
@media (max-width: 700px) {
    .vv-root .vv-flow { --flow-badge: 40px; padding: 24px 0 16px; }
    .vv-root .vv-flow-heading { max-width: 300px; margin-bottom: 28px; font-size: 17px; text-wrap: balance; }
    .vv-root .vv-flow-heading::after { bottom: -6px; height: 3px; }
    .vv-root .vv-flow-list { gap: 7px; padding: 0 6px; }
    .vv-root .vv-flow-step { --lift: 0px; border-radius: 12px; box-shadow: 0 6px 16px rgba(17, 24, 39, .07); }
    .vv-root .vv-flow-step[data-flow-step="2"],
    .vv-root .vv-flow-step[data-flow-step="4"] { --lift: 7px; }
    .vv-root .vv-flow-step::before { top: -6px; width: 30px; height: 11px; margin-left: -15px; }
    .vv-root .vv-flow-step.is-active { scale: 1.08; translate: 0 calc(var(--lift) - 5px); box-shadow: 0 12px 24px rgba(124, 58, 237, .2); }
    .vv-root .vv-flow-step:hover { scale: 1; }
    .vv-root .vv-flow-arrow { display: none; }
    .vv-root .vv-flow-btn { gap: 7px; min-height: 100%; padding: 12px 3px 9px; border-radius: 12px; }
    .vv-root .vv-flow-badge > svg { width: 19px; height: 19px; }
    .vv-root .vv-flow-num { top: -3px; right: -5px; width: 16px; height: 16px; font-size: 9.5px; }
    .vv-root .vv-flow-title { font-size: 11.5px; line-height: 1.2; letter-spacing: 0; hyphens: auto; overflow-wrap: anywhere; }
    .vv-root .vv-flow-text { display: none; }
    .vv-root .vv-flow-caption {
        display: block;
        min-height: 2.8em;
        margin: 16px auto 0;
        max-width: 320px;
        color: var(--vv-text);
        font-size: 13.5px;
        line-height: 1.4;
    }
    .vv-root .vv-flow-caption.is-swap { animation: vv-flow-caption .45s ease-out; }
    .vv-root .vv-flow-promises { gap: 4px 12px; margin-top: 14px; font-size: 11.5px; }
    .vv-root .vv-flow-promises svg { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .vv-root .vv-flow-step { animation: none; transition: none; }
    .vv-root .vv-flow *,
    .vv-root .vv-flow *::before { animation: none !important; transition: none !important; }
    .vv-root .vv-flow-check path { stroke-dashoffset: 0; }
}
