/* the client's whole journey (#forloebet) as two actors on a stage (journey.js): the client's phone and the behandler's
   desk, one in front while the other waits behind, smaller and out of focus, and what passes between them thrown
   across. A screen's resting style is its end state; its animations run from the start state while the step is on. */

.flow {
    --step: 0;
    --brand: #3f8f6b;
    --brand-deep: #2f6f53;
    --screen: #ffffff;
    --ink: #10232c;
    --ink-2: #66777f;
    --rule: #e6ecef;
    --wash: #f2f6f8;
    --slide: cubic-bezier(.65, 0, .35, 1);
}
.flow-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.flow svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.flow {
    --st-shade: #0a2430;
    --st-warm: #f7b24a;
}
@media (prefers-color-scheme: dark) {
    .flow { --st-shade: #000000; --st-warm: #f39814; }
}
#forloebet { overflow-x: clip; }
/* (the intro ends in a lead-in, and the stage takes it from there) */
#forloebet .section-head .lead + .lead { margin-top: 12px; color: var(--text); font-weight: 600; }

/* ---- the stage: drawn at a design size and scaled to the width (journey.js) ---- */
.flow-stage { position: relative; user-select: none; -webkit-user-select: none; }
/* a sideways swipe is ours (it changes the step); an up-or-down one still scrolls the page */
.flow-swipe { touch-action: pan-y; }
/* (cut at its sides: the behandler comes in from off to the right; not below, where the floor's soft shadow and the
   labels reach a little past it) */
.flow-scene { position: relative; height: 430px; overflow-x: clip; overflow-y: visible; }
.flow-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.flow .st-back, .flow .st-front { position: absolute; left: 0; top: 0; overflow: visible; fill: none; stroke: none; pointer-events: none; }
.st-back { z-index: 1; }
.st-front { z-index: 5; }
.st-shade { stop-color: var(--st-shade); }
.st-warm { stop-color: var(--st-warm); }
.flow .st-mark { fill: none; stroke: var(--line); stroke-width: 2; }
.flow .st-trail { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flow .st-trail-halo { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .28; filter: blur(4px); }
.flow .st-wave { fill: none; stroke-width: 2; }
.flow .st-clap { stroke-width: 3.5; stroke-linecap: round; }

/* ---- the two (journey.js places them), each with the screens of its app ---- */
.dev { position: absolute; z-index: 2; left: 0; top: 0; transform-origin: 0 0; isolation: isolate; will-change: transform, filter; }
/* the screens lie on top of each other; the step's own opens out of the middle over the one before, which holds still
   underneath (were it to move, the header the two share would jump) */
.track { display: grid; grid-template: 100% / 100%; height: 100%; }
.scr { grid-area: 1 / 1; position: relative; min-width: 0; overflow: hidden; background: var(--screen); color: var(--ink); line-height: 1.3; visibility: hidden; }
.scr.on, .scr.was { visibility: visible; }
.scr.on { z-index: 2; }
.scr.was { z-index: 1; }
.m-ui, .d-ui { --ox: 50%; --oy: 45%; isolation: isolate; }
.flow.moved .scr.on { animation: fw-open .9s cubic-bezier(.77, 0, .18, 1) both; }

.who {
    position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px;
    border-radius: 999px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(12, 44, 57, .18);
}
.pro .who { background: var(--teal-700); }
.who i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.who svg { width: 14px; height: 14px; stroke-width: 2.2; }
.who.hop { animation: flow-hop .55s var(--hop) both; }

/* ---- the client's app: a tall card with rounded corners ---- */
.m-ui {
    position: relative; font-size: 11px; width: 17em; height: 31em;
    border-radius: 2.6em; background: var(--screen); overflow: hidden;
    box-shadow: 0 0 0 1px rgba(12, 44, 57, .06), 0 26px 50px -14px rgba(12, 44, 57, .32);
}
.m-ui .scr { padding: 0 1.2em 1.2em; }
.ph-top { display: flex; align-items: center; gap: .55em; margin: 0 -1.2em 1em; padding: 1.5em 1.2em .8em; background: var(--brand); color: #fff; font-weight: 600; font-size: 1.05em; white-space: nowrap; }
.ph-top b { display: grid; place-items: center; flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: rgba(255, 255, 255, .25); font-size: .8em; }
.ph-h { font-size: 1.4em; font-weight: 600; margin-bottom: .25em; }
.ph-sub { color: var(--ink-2); font-size: .95em; margin-bottom: .9em; }
.ph-note { color: var(--ink-2); margin: .9em 0; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.slots span { position: relative; padding: .6em 0; border: 1px solid var(--rule); border-radius: .65em; text-align: center; font-size: .95em; }
.slots .pick { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.tap { position: absolute; left: 50%; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; background: rgba(16, 35, 44, .25); opacity: 0; }
.ph-btn { display: block; margin-top: 1em; padding: .75em; border-radius: .8em; background: var(--brand); color: #fff; text-align: center; font-weight: 600; }
.q, .ck { display: flex; align-items: center; gap: .6em; padding: .6em 0; border-bottom: 1px solid var(--rule); font-size: .95em; }
.box { flex: none; display: grid; place-items: center; width: 1.35em; height: 1.35em; border-radius: .35em; background: var(--brand); border: 1.5px solid var(--brand); }
.box::after { content: ""; width: .65em; height: .35em; border: solid #fff; border-width: 0 0 .17em .17em; transform: translateY(-.08em) rotate(-45deg); }
.field { display: flex; justify-content: space-between; margin-top: .9em; padding: .6em .75em; border: 1px solid var(--rule); border-radius: .65em; color: var(--ink-2); font-size: .95em; }
.field b { color: var(--ink); }
.field .typed { font-variant-numeric: tabular-nums; }
.field.wide { margin: 0 0 .9em; }
.appt { display: flex; align-items: center; gap: .7em; padding: .8em; border: 1px solid var(--rule); border-radius: .8em; background: var(--wash); }
.appt svg { flex: none; width: 2em; height: 2em; color: var(--brand); }
.appt span { font-weight: 600; font-size: 1.05em; }
.appt small { display: block; color: var(--ink-2); font-weight: 400; font-size: .85em; }
.ph-dim { display: grid; gap: .55em; margin-top: 1em; }
.ph-dim span { height: 2.6em; border-radius: .65em; background: var(--wash); }
.site .url { margin: 0 -1.2em .9em; padding: 1.4em 1em .6em; background: var(--wash); text-align: center; }
.site .url span { display: inline-block; padding: .2em .9em; border-radius: 999px; background: var(--screen); color: var(--ink-2); font-size: .85em; }
.site-hero { margin-bottom: .8em; padding: 1.1em 1em; border-radius: .8em; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.site-hero b { display: block; font-size: 1.35em; }
.site-hero span { font-size: .9em; opacity: .85; }
.pkg { position: relative; margin-bottom: .6em; padding: .75em .85em; border: 1px solid var(--rule); border-radius: .75em; }
.pkg > b { display: block; }
.pkg > span:not(.buy):not(.cta) { color: var(--ink-2); font-size: .9em; }
.buy { position: absolute; right: .7em; top: 50%; margin-top: -1em; display: grid; padding: .35em .85em; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: .9em; }
.buy > span { grid-area: 1 / 1; text-align: center; }
.buy .b1 { opacity: 0; }
.dist { display: flex; height: .8em; margin: .2em 0 1em; border-radius: .4em; overflow: hidden; }
.dist i { width: var(--w); }
.dist i:nth-child(1), .dist-key span:nth-child(1)::before { background: #f3b24a; }
.dist i:nth-child(2), .dist-key span:nth-child(2)::before { background: var(--periwinkle); }
.dist i:nth-child(3), .dist-key span:nth-child(3)::before { background: var(--brand); }
.dist-key { display: flex; gap: 1.2em; margin: -.4em 0 1em; color: var(--ink-2); font-size: .85em; }
.dist-key span::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .35em; border-radius: .2em; }
.meal { display: flex; align-items: center; gap: .55em; padding: .55em 0; border-bottom: 1px solid var(--rule); font-size: .95em; }
.meal i { width: .7em; height: .7em; border-radius: 50%; background: var(--brand); }
.meal b { margin-left: auto; }
.ring { position: relative; width: 9.5em; height: 9.5em; margin: .2em auto .9em; }
/* the journal step's phone: the real app's day with its ring (img/phone-today.webp, its top: the date and the ring) */
.real-ring { aspect-ratio: 2 / 1; margin: .2em 0 .8em; border-radius: .8em; background: #16526a url(img/phone-today.webp) center 17% / 100% auto no-repeat; }
.days.day-types { grid-template-columns: repeat(3, 1fr); margin-top: .5em; }
.days.day-types span { background: #fff3e2; color: #b86a00; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.4; }
.ring .trk { stroke: #e8eef1; }
.ring .val { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 38; }
.ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--ink-2); font-size: .85em; }
.ring b { display: block; color: var(--ink); font-size: 1.7em; }
.post { display: flex; gap: .6em; margin-bottom: .6em; padding: .7em; border-radius: .8em; background: var(--wash); }
.post p { flex: 1; min-width: 0; font-size: .92em; line-height: 1.35; }
.post b { display: block; }
.post.reply { margin-left: 1.6em; background: #e8f3ed; }
.av { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #f6d7a8; color: #7a4a05; font-style: normal; font-weight: 600; font-size: .85em; }
.av.kn { background: var(--brand); color: #fff; }
.news { display: flex; align-items: center; gap: .5em; margin-top: .8em; padding: .6em .7em; border: 1px dashed #cfd9de; border-radius: .7em; color: var(--ink-2); font-size: .9em; }
.news svg { flex: none; width: 1.5em; height: 1.5em; color: var(--brand); }
.chart { height: 11em; margin: .4em 0 .9em; padding: .6em; border-radius: .7em; background: var(--wash); }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .goal { stroke: #9fb3bd; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart .curve { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.won { display: block; padding: .65em; border-radius: 999px; background: var(--orange); color: #fff; text-align: center; font-weight: 600; }
.field + .won { margin-top: .9em; }

/* ---- the behandler's desk: a wide card with a window bar and the app's side menu ---- */
.d-ui {
    position: relative; font-size: 11px; width: 42em; height: 27em; display: flex; flex-direction: column;
    border-radius: 1.2em; background: var(--screen); overflow: hidden;
    box-shadow: 0 0 0 1px rgba(12, 44, 57, .06), 0 26px 50px -14px rgba(12, 44, 57, .32);
}
.d-bar { flex: none; display: flex; align-items: center; gap: .5em; height: 2.3em; padding: 0 1em; background: #eef2f4; border-bottom: 1px solid var(--rule); }
.d-bar i { width: .8em; height: .8em; border-radius: 50%; background: #cfd8dd; }
.d-ui .track { flex: 1; min-height: 0; }
.d-ui .scr { display: grid; grid-template-columns: 3.4em 1fr; }
.lt-side { display: flex; flex-direction: column; align-items: center; gap: .9em; padding-top: 1.3em; background: var(--teal-800); }
.lt-side i { width: 1.4em; height: 1.4em; border-radius: .4em; background: rgba(255, 255, 255, .22); }
.lt-side i.here { background: var(--orange); }
/* (the marker pops in where the desk now is) */
.on .lt-side i.here { animation: flow-pop .4s .25s cubic-bezier(.3, 1.6, .5, 1) both; }
.lt-main { min-width: 0; padding: 1.1em 1.4em; }
.lt-h { margin-bottom: .8em; font-size: 1.25em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45em; height: 16em; }
.cal > div { display: flex; flex-direction: column; gap: .4em; padding: .45em; border-radius: .55em; background: var(--wash); }
.cal small { text-align: center; color: var(--ink-2); font-weight: 600; font-size: .85em; }
.cal span { display: block; height: var(--h, 2.2em); border-radius: .4em; background: #dbe4e9; }
.cal span.new { height: auto; padding: .4em; background: var(--orange); color: #fff; font-weight: 600; font-size: .9em; line-height: 1.25; }
.badge { display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em; border-radius: 999px; background: #e3f2ea; color: var(--brand-deep); font-weight: 600; }
.badge svg { width: 1.4em; height: 1.4em; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; margin-top: 1.1em; }
.tiles span { padding: .7em; border-radius: .6em; background: var(--wash); font-weight: 600; }
.tiles small { display: block; color: var(--ink-2); font-weight: 400; font-size: .85em; }
.jr { padding: .9em 1em; border: 1px solid var(--rule); border-radius: .65em; }
.jr b { display: block; margin-bottom: .7em; }
.ln { display: block; width: var(--w, 80%); height: .65em; margin-bottom: .6em; border-radius: .35em; background: #dde5ea; }
.post .ln { margin: .5em 0 0; background: #c9dccf; }
.kg { display: inline-block; margin-top: .3em; padding: .3em .8em; border-radius: 999px; background: #e3f2ea; color: var(--brand-deep); font-weight: 600; font-size: .95em; }
.d-ui .ck { font-size: 1em; padding: .7em 0; }
.d-ui .box { background: var(--teal-700); border-color: var(--teal-700); }
.d-ui .chart { height: 9.5em; margin-top: 0; }
.d-ui .tiles { margin-top: 0; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45em; }
.days span { padding: .8em .3em; border-radius: .5em; background: var(--wash); text-align: center; font-size: .85em; font-weight: 600; }
.mem { display: flex; align-items: center; gap: .7em; padding: .65em 0; border-bottom: 1px solid var(--rule); font-weight: 600; white-space: nowrap; }
.act { padding: .15em .6em; border-radius: 999px; background: #e3f2ea; color: var(--brand-deep); font-size: .8em; }
.act.quiet { background: #fdecd2; color: #9a5a00; }
.kc { margin-left: auto; width: 7em; height: .6em; border-radius: .3em; background: var(--wash); overflow: hidden; }
.kc i { display: block; width: var(--w); height: 100%; background: var(--brand); }
/* (on the stage, at the size they stand in front of us) */
.m-ui { font-size: 10px; }
.d-ui { font-size: 10.5px; width: 34em; }
/* the clinic's site scrolls down past the other packages to the one bought (under its address bar) */
.site .url { position: relative; z-index: 1; }
/* (down to the first forløb, a pause on it, then on past it to the one bought; --s1 and --s2 are how far) */
.site .page { --s1: 9em; --s2: 20.3em; transform: translateY(calc(-1 * var(--s2))); }
.on .page { animation: st-scroll 1.6s var(--d) linear both; }
@keyframes st-scroll {
    0% { transform: none; animation-timing-function: cubic-bezier(.6, 0, .3, 1); }
    32%, 55% { transform: translateY(calc(-1 * var(--s1))); }
    55% { animation-timing-function: cubic-bezier(.6, 0, .3, 1); }
    100% { transform: translateY(calc(-1 * var(--s2))); }
}
.pkg.big { padding: .95em 6em .95em .9em; }
.pkg em { display: block; margin-top: .45em; color: var(--brand-deep); font-style: normal; font-weight: 600; }
.pkg .cta { position: absolute; right: .7em; top: 50%; margin-top: -1em; padding: .3em .85em; border: 1.5px solid var(--brand); border-radius: 999px; color: var(--brand); font-weight: 600; font-size: .9em; }
.site-pic { display: block; height: 6em; margin-top: .9em; border-radius: .6em; background: radial-gradient(circle at 70% 35%, rgba(255, 255, 255, .45) 0 1.4em, transparent 1.5em), linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06)); }
/* a speaker in the top right corner of whoever talks, as a browser tab playing sound shows one; its waves pulse */
.spk { position: absolute; z-index: 6; display: grid; place-items: center; opacity: 0; transition: opacity .25s; pointer-events: none; }
.dev.talking .spk { opacity: 1; }
.flow .spk svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; }
.flow .spk .body { fill: currentColor; stroke: none; }
.m-ui .spk { top: 1.75em; right: 1.1em; width: 2.1em; height: 2.1em; padding: .35em; border-radius: 50%; background: rgba(16, 35, 44, .55); color: #fff; }
.d-ui .spk { top: .45em; right: .9em; width: 1.5em; height: 1.5em; border-radius: 0; background: none; color: var(--ink-2); }
.dev.talking .spk .w1, .dev.talking .spk .w2 { animation: spk-wave 1.2s ease-in-out infinite; }
.dev.talking .spk .w2 { animation-delay: .25s; }
@keyframes spk-wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* the client's back, seen as it turns to leave: blank, a camera, and a pear with a bite out of it */
.back { position: absolute; z-index: 5; inset: 0; display: none; background: linear-gradient(160deg, #f5f8f9, #dde6e9); }
.dev.turned .back { display: block; }
.dev.turned .track, .dev.turned .who { visibility: hidden; }
.back .cam { position: absolute; left: 1.3em; top: 1.3em; width: 4.2em; height: 4.2em; border-radius: 1.3em; background: #d0d9dd; }
.back .cam::before, .back .cam::after { content: ""; position: absolute; left: .55em; top: .55em; width: 1.4em; height: 1.4em; border-radius: 50%; background: #33464f; box-shadow: 0 0 0 .25em #bfcbd0; }
.back .cam::after { top: 2.25em; }
.flow .back svg { position: absolute; left: 50%; top: 50%; width: 4.4em; height: 5.7em; transform: translate(-50%, -58%); fill: #a9b8bf; stroke: none; }
.flow .back .stem { fill: none; stroke: #a9b8bf; stroke-width: 2.4; stroke-linecap: round; }
/* a screen pushed up over the step's first one: the next thing the client does */
.sheet { position: absolute; inset: 0; z-index: 3; padding: 0 1.2em 1.2em; background: var(--screen); }
.note { margin-bottom: .9em; padding: .8em .8em .3em; border: 1px solid var(--rule); border-radius: .7em; }
.entry { margin-bottom: .6em; padding: .7em .8em; border-radius: .8em; background: var(--wash); font-size: .92em; line-height: 1.35; }
.entry b { display: block; margin-bottom: .15em; }
.d-ui .entry { font-size: 1em; }
.order { display: flex; align-items: center; gap: .8em; margin-bottom: .9em; padding: .75em .9em; border: 1px solid var(--rule); border-radius: .75em; }
.order > svg { flex: none; width: 1.9em; height: 1.9em; color: var(--brand); }
.order > span:not(.paid):not(.d-btn) { min-width: 0; }
.order b { display: block; }
.order small { display: block; color: var(--ink-2); font-size: .85em; }
.paid { flex: none; display: grid; margin-left: auto; padding: .3em .85em; border-radius: 999px; background: #e3f2ea; color: var(--brand-deep); font-weight: 600; font-size: .9em; }
.paid > span { grid-area: 1 / 1; text-align: center; }
.paid .p1 { opacity: 0; }
.order .d-btn, .order .kg { flex: none; margin: 0 0 0 auto; }
.client-card { display: flex; align-items: center; gap: .8em; padding: .8em .9em; border-radius: .75em; background: var(--wash); }
.client-card .av { width: 2.8em; height: 2.8em; font-size: 1em; }
.client-card b { display: block; font-size: 1.1em; }
.client-card small { color: var(--ink-2); font-size: .85em; }
.chips { display: flex; gap: .5em; margin-top: .8em; }
.d-btn { display: inline-flex; align-items: center; gap: .45em; margin-top: .9em; padding: .55em 1.1em; border-radius: 999px; background: var(--teal-700); color: #fff; font-weight: 600; }
.d-btn svg { width: 1.3em; height: 1.3em; stroke-width: 2.2; }
/* a mouse pointer comes in and clicks the desk's button (Send, under the behandler's comment) */
.d-btn { position: relative; }
.cursor { position: absolute; z-index: 2; left: 64%; top: 52%; width: 1.25em; height: 1.4em; opacity: 0; pointer-events: none; }
.flow .cursor svg { width: 100%; height: 100%; fill: #10232c; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.on .cursor { animation: cur-in .7s calc(var(--d) - .75s) cubic-bezier(.3, .7, .3, 1) both, cur-click .22s var(--d) both, cur-out .35s calc(var(--d) + .55s) forwards; }
@keyframes cur-in { from { opacity: 0; transform: translate(3.2em, 2.4em); } to { opacity: 1; transform: none; } }
@keyframes cur-click { 50% { transform: scale(.8); } }
@keyframes cur-out { from { opacity: 1; } to { opacity: 0; } }
/* the desk's window dots wink: red, yellow, green, one after the other */
.dev.wink .d-bar i:nth-child(1) { animation: wink-r 1.3s both; }
.dev.wink .d-bar i:nth-child(2) { animation: wink-y 1.3s both; }
.dev.wink .d-bar i:nth-child(3) { animation: wink-g 1.3s both; }
@keyframes wink-r { 8%, 82% { background: #ff5f57; } }
@keyframes wink-y { 0%, 14% { background: #cfd8dd; } 22%, 82% { background: #febc2e; } }
@keyframes wink-g { 0%, 28% { background: #cfd8dd; } 36%, 82% { background: #28c840; } }
/* the journal: a GDPR badge at the desk's top right corner, its check drawn in */
.gdpr-ok {
    position: absolute; z-index: 4; top: -16px; right: -28px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 5px;
    border-radius: 999px; background: #fff; color: var(--brand-deep); font-size: 14px; font-weight: 700; letter-spacing: .05em;
    box-shadow: 0 6px 18px rgba(12, 44, 57, .2); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; pointer-events: none;
}
.gdpr-ok.on { opacity: 1; transform: none; transition: none; }
.gdpr-ok i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); }
.flow .gdpr-ok svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.flow.narrow .gdpr-ok { top: -26px; right: -40px; gap: 10px; padding: 7px 20px 7px 7px; font-size: 22px; }
.flow.narrow .gdpr-ok i { width: 36px; height: 36px; }
.flow.narrow .gdpr-ok svg { width: 22px; height: 22px; }

/* ---- what is thrown: an icon on a glowing disc (journey.js moves it) ---- */
.tok { position: absolute; z-index: 6; left: 0; top: 0; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.tok > b {
    position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff;
    background: radial-gradient(circle at 34% 28%, #ffc35e, var(--orange-strong) 72%);
    box-shadow: 0 0 0 4px rgba(243, 152, 20, .18), 0 10px 22px rgba(224, 133, 10, .4), inset 0 -3px 6px rgba(120, 60, 0, .18);
}
.tok > b::before { content: ""; position: absolute; z-index: -1; inset: -22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 110, .55), transparent); }
.tok svg { width: 22px; height: 22px; stroke-width: 2.1; }
.tok.pc > b {
    background: radial-gradient(circle at 34% 28%, var(--teal-600), var(--teal-800) 72%);
    box-shadow: 0 0 0 4px rgba(124, 195, 222, .25), 0 10px 22px rgba(12, 44, 57, .35), inset 0 -3px 6px rgba(0, 0, 0, .2);
}
.tok.pc > b::before { background: radial-gradient(closest-side, rgba(150, 215, 240, .55), transparent); }
.tok.gold > b { width: 54px; height: 54px; background: radial-gradient(circle at 34% 28%, #ffe08a, #f2a516 72%); box-shadow: 0 0 0 5px rgba(247, 177, 60, .25), 0 12px 30px rgba(224, 133, 10, .5); }
.tok.gold svg { fill: #fff; }

/* the goal's burst: rays from the middle */
.w-burst .ray { stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .45 2; stroke-dashoffset: -1; opacity: 0; }
.w-burst .ray.k1 { stroke: #f0607e; }
.w-burst .ray.k2 { stroke: var(--brand); }
.w-burst .ray.k3 { stroke: var(--sky); }

/* ---- the step's animations: from the start state to the resting (end) state ---- */
.on .w-burst .ray { animation: fw-ray 1.1s var(--d) cubic-bezier(.15, .7, .3, 1) both; }
.gdpr-ok.on { animation: flow-pop .5s 2.2s cubic-bezier(.3, 1.5, .5, 1) both; }
.gdpr-ok.on svg { animation: st-check .45s 2.55s ease-out both; }
.on .sheet { animation: st-sheet .7s var(--d) cubic-bezier(.7, 0, .2, 1) both; }
.on .paid .p1 { animation: flow-out .2s var(--d) both; }
.on .paid .p2 { animation: flow-in .2s var(--d) both; }
.on .tap { animation: flow-tap .6s var(--d, .45s) ease-out both; }
.on .pick { animation: flow-pick .25s calc(var(--d, .45s) + .15s) both; }
.on .press { animation: flow-press .35s var(--d) both; }
.on .pop { animation: flow-pop .5s var(--d) cubic-bezier(.3, 1.5, .5, 1) both; }
.on .grow { animation: flow-grow .45s var(--d) ease-out both; }
.on .grow-x { animation: flow-wipe .6s var(--d) ease-out both; }
.on .q .box, .on .ck .box { animation: flow-tick .25s var(--d) both; }
.on .typed { animation: flow-type .6s var(--d, 1.6s) steps(var(--n, 8)) both; }
/* (outlined like the other packages' buttons until it is tapped; then it fills) */
.on .buy { animation: buy-fill .18s calc(var(--d, .8s) - .08s) both, flow-press .35s var(--d, .8s) both; }
@keyframes buy-fill { from { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); } }
.on .buy .b1 { animation: flow-out .2s calc(var(--d, .8s) + .2s) both; }
.on .buy .b2 { animation: flow-in .2s calc(var(--d, .8s) + .2s) both; }
.on .ring .val { animation: flow-ring 1.3s .3s ease-out both; }
.on .curve { animation: flow-draw 1.5s var(--d, .3s) ease-in-out both; }

@keyframes st-sheet { from { transform: translateY(104%); } }
@keyframes st-check { from { stroke-dashoffset: 1; } }
/* (gone at the end: a dash run off the line's end still leaves its round cap behind) */
@keyframes fw-ray { from { stroke-dashoffset: .45; opacity: 1; } 85% { opacity: 1; } }
@keyframes fw-open { from { clip-path: circle(0% at var(--ox) var(--oy)); } to { clip-path: circle(150% at var(--ox) var(--oy)); } }
@keyframes flow-tap { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes flow-pick { from { background: transparent; border-color: var(--rule); color: var(--ink); } }
@keyframes flow-press { 50% { transform: scale(.93); } }
@keyframes flow-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes flow-grow { from { width: 0; } }
@keyframes flow-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes flow-tick { from { background: transparent; border-color: #c9d4da; } }
@keyframes flow-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes flow-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes flow-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes flow-ring { from { stroke-dashoffset: 97.4; } }
@keyframes flow-draw { from { stroke-dashoffset: 1; } }
@keyframes flow-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flow-hop { 0%, 100% { transform: translateX(-50%); } 40% { transform: translateX(-50%) translateY(-9px); } 70% { transform: translateX(-50%) translateY(1px); } }

/* out of view everything stands still (the first step frozen at its start until the stage is seen) */
.flow.waiting .on, .flow.waiting .on *, .flow.waiting .who, .flow.waiting .bar > i, .flow.waiting .spk * { animation-play-state: paused !important; }

/* ---- captions, under the stage ---- */
.flow-caps { margin-top: 30px; }
.flow-captions li { --cap: .3s; }
/* the words lie on top of each other (the tallest sets the height, so nothing jumps); the step's own rise into focus */
.flow-captions { list-style: none; padding: 0; margin: 0; display: grid; }
.flow-captions li { grid-area: 1 / 1; padding: 0 8px; text-align: center; opacity: 0; transition: opacity .35s; }
.flow-captions li.on { opacity: 1; transition: none; }
.flow-captions li.on > * { animation: fw-rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.flow-captions li.on > span { animation: fw-num .7s cubic-bezier(.3, 1.6, .5, 1) both; }
/* (they come up just after the step starts) */
.flow-captions li.on > span { animation-delay: var(--cap, 0s); }
.flow-captions li.on > h3 { animation-delay: calc(var(--cap, 0s) + .12s); }
.flow-captions li.on > p { animation-delay: calc(var(--cap, 0s) + .24s); }
@keyframes fw-rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes fw-num { from { opacity: 0; transform: scale(.3) rotate(-90deg); } }
.flow-captions li > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.flow-captions span { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 600; }
.flow-captions h3 { font-size: 22px; margin-bottom: 6px; }
.flow-captions p { color: var(--muted); font-size: 16.5px; }


/* ---- the step buttons: a bar per step that fills while it plays ---- */
.flow-nav { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; }
.flow-dot {
    flex: 0 1 104px; display: grid; gap: 7px; padding: 8px 3px; border: 0; background: none; cursor: pointer;
    color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap;
}
.flow-dot.active, .flow-dot.done { color: var(--text); }
.bar { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar > i { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.flow-dot.done .bar > i, .flow-dot.active .bar > i { transform: scaleX(1); }
.flow.playing .flow-dot.active .bar > i { animation: flow-fill var(--dwell) linear both; }
.flow.hold .bar > i { animation-play-state: paused; }
.flow-play {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-right: 8px; padding: 0;
    border: 1.5px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer;
}
.flow-play svg { display: none; width: 18px; height: 18px; }
.flow-play .i-play { fill: currentColor; }
.flow.playing .i-pause, .flow:not(.playing) .i-play { display: block; }
.flow.reduce .flow-play { display: none; }
.flow-dot:focus-visible, .flow-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }


/* ---- a phone: the narrower stage (journey.js), its labels drawn larger so they read once it is scaled down; the step
   bars without words ---- */
.flow.narrow .who { bottom: -30px; gap: 8px; padding: 6px 18px 6px 6px; font-size: 21px; }
.flow.narrow .who i { width: 32px; height: 32px; }
.flow.narrow .who svg { width: 20px; height: 20px; }
/* (on a phone the stage is scaled down to about half: the screens keep their size but are drawn larger, with fewer
   details — no subtitles, placeholders or side menu, fewer rows) */
.flow.narrow .m-ui { width: 170px; height: 310px; font-size: 14.5px; }
.flow.narrow .d-ui { width: 357px; height: 284px; font-size: 17px; }
.flow.narrow .d-ui .scr { grid-template-columns: 1fr; }
.flow.narrow .lt-side,
.flow.narrow .ph-sub,
.flow.narrow .ph-dim,
.flow.narrow .ph-note,
.flow.narrow .order small,
.flow.narrow .client-card small,
.flow.narrow .pkg > span:not(.buy):not(.cta),
.flow.narrow .site-pic,
.flow.narrow .dist-key,
.flow.narrow .slots span:nth-child(n+5),
.flow.narrow .cal > div:nth-child(n+4),
.flow.narrow .days span:nth-child(n+3),
.flow.narrow .mem:nth-child(n+4),
.flow.narrow .kc,
.flow.narrow .meal:nth-child(n+7),
.flow.narrow .tiles span:first-child,
.flow.narrow .chips .kg:first-child { display: none; }
.flow.narrow .cal { grid-template-columns: repeat(3, 1fr); height: 8em; }
.flow.narrow .days { grid-template-columns: repeat(2, 1fr); }
.flow.narrow .tiles { grid-template-columns: repeat(2, 1fr); }
.flow.narrow .lt-main { padding: .8em 1em; }
.flow.narrow .chart { height: 6.5em; }
.flow.narrow .ring { width: 6.5em; height: 6.5em; }
.flow.narrow .pkg { padding-right: 5.6em; }
.flow.narrow .site .page { --s1: 5em; --s2: 14.9em; }
.flow.narrow .order > svg { display: none; }
.flow.narrow .order .d-btn, .flow.narrow .order .kg { padding: .45em .8em; font-size: .8em; }
@media (max-width: 680px) {
    .flow-caps { margin-top: 26px; }
    .flow-captions h3 { font-size: 20px; }
    .flow-captions p { font-size: 16px; }
    .flow-nav { gap: 4px; margin-top: 16px; }
    .flow-dot { flex: 1 1 0; gap: 0; padding: 14px 1px; }
    .flow-dot span { display: none; }
}

/* ---- no JS: the captions as a plain list, no stage, no buttons ---- */
.flow:not(.live) .flow-scene { display: none; }
.flow:not(.live) .flow-captions { gap: 22px; }
.flow:not(.live) .flow-captions li { grid-area: auto; opacity: 1; }
.flow:not(.live) .flow-nav { display: none; }

/* ---- reduced motion: no throws; each step shows where the two end up, and how its screens end ---- */
@media (prefers-reduced-motion: reduce) {
    .flow *, .flow *::before, .flow *::after { animation: none !important; transition: none !important; }
}
