/* RouteFlow wheel, hero variant. One calm light stage nearly the width of the screen: a white dial at rest beside the hero's words, each piece its own solid colour when it comes apart. */
.rfw{--muted:var(--rf-ink-3);--acc:var(--rf-brand-500);--rfw-grid:min(1640px,calc(100% - 32px));--rfw-gy:clamp(8px,2.2vh,24px);--rfw-in:40px;--rfw-run:3;position:relative;height:calc(100vh - var(--rfw-top,0px) + 100vh*var(--rfw-run));background:#fff;color:var(--ink);font-family:var(--rf-font);isolation:isolate}
@supports (height:1svh){.rfw{height:calc(100svh - var(--rfw-top,0px) + 100svh*var(--rfw-run))}}
.rfw *{box-sizing:border-box}
.rfw-defs{position:absolute}
/* The pin is CSS sticky: no pin spacer in the host page, and the page's own scroll stays on the compositor. */
.rfw-pin{position:sticky;top:var(--rfw-top,0px);height:calc(100vh - var(--rfw-top,0px));overflow:hidden;overflow:clip}
@supports (height:1svh){.rfw-pin{height:calc(100svh - var(--rfw-top,0px))}}
/* The stage: one rounded light tile on the page grid. White page all round, so it hands off to the sections above and below. */
.rfw-tile{position:absolute;top:var(--rfw-gy);bottom:var(--rfw-gy);left:0;right:0;width:var(--rfw-grid);margin:0 auto;border-radius:var(--rf-r-stage);background:var(--tint)}
.rfw-cvw{position:absolute;left:0;top:0;overflow:hidden;border-radius:inherit}
.rfw-cv{position:absolute;left:0;top:0;display:block;touch-action:pan-y;will-change:transform}
.rfw-wheel{position:absolute;left:50%;top:50%;width:1px;height:1px;pointer-events:none}
.rfw-b{position:absolute;inset:0;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none}
/* The one object: sized once per layout, moved by one transform per frame. */
.rfw-tok{position:absolute;left:0;top:0;z-index:2;width:0;height:0;pointer-events:none;visibility:hidden;will-change:transform}
.rfw-tok svg{position:absolute;max-width:none;width:var(--tok,120px);height:calc(var(--tok,120px)*.8889);left:calc(var(--tok,120px)*-.5);top:calc(var(--tok,120px)*-.6389);overflow:visible}
.rfw-tip{position:absolute;left:0;top:0;z-index:4;padding:6px 13px;border-radius:999px;background:#fff;color:var(--ink);font-size:15px;line-height:20px;font-weight:500;white-space:nowrap;box-shadow:0 0 0 1px rgba(15,27,45,.06),0 6px 16px rgba(15,27,45,.1);opacity:0;transition:opacity .2s ease;pointer-events:none}
.rfw-tip.on{opacity:1}
/* One reading column beside the wheel, every beat, where the hero's words were. */
.rfw-words{position:absolute;inset:0;z-index:3;pointer-events:none}
.rfw-title{margin:0;font-weight:650;line-height:1.06;letter-spacing:-.034em;text-wrap:balance}
.rfw-sub{margin:14px 0 0;font-size:clamp(18px,1.45vw,21px);line-height:1.35;letter-spacing:-.01em;color:var(--rf-ink-2);text-wrap:pretty}
.rfw-eye{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:15px;line-height:1.3;font-weight:500;color:var(--muted)}
.rfw-t .rfw-eye::before{content:"";flex:none;width:9px;height:9px;border-radius:50%;background:var(--pc,var(--rf-brand-700))}
.rfw-h,.rfw-s{position:absolute;top:var(--rfw-in);bottom:var(--rfw-in);left:var(--rfw-l,var(--rfw-in));display:flex;flex-direction:column;justify-content:center;width:clamp(320px,31%,430px)}
.rfw-s{gap:22px}
.rfw-h .rfw-title{font-size:clamp(40px,3.9vw,56px)}
.rfw-t .rfw-title{font-size:clamp(34px,3vw,44px);letter-spacing:-.03em}
.rfw-hint{position:absolute;margin:0;font-size:16px;line-height:20px;font-weight:500;white-space:nowrap;color:var(--rf-link);will-change:transform,opacity}
.rfw-h,.rfw-t,.rfw-card{visibility:hidden}
.rfw-t,.rfw-card{opacity:0}
/* Words and cards fade and rise on their own layers, so a beat changing never repaints the page. */
.rfw-h,.rfw-t{contain:layout style;will-change:transform,opacity}
/* One screen of the product at a time: white, a hairline edge and one soft neutral shadow. */
.rfw-card,.uc-card{--c-tx:var(--app-ink);--c-mu:var(--app-ink-3);--c-li:var(--app-line);--c-so:var(--app-sunken)}
.rfw-card{position:relative;padding:16px 20px 8px;border-radius:12px;color:var(--c-tx);background:#fff;box-shadow:var(--rf-sh-sample);font-size:16px;line-height:1.3;contain:layout style;will-change:transform,opacity}
.uc-card{margin:0;padding:14px 16px 6px;border-radius:12px;color:var(--c-tx);background:#fff;box-shadow:var(--rf-sh-sample);font-size:15px;line-height:1.3}
.uc-card .rfw-id b{font-size:16px;letter-spacing:0}
.uc-card .rfw-id span{font-size:14px}
.uc-card .rfw-row{min-height:34px;padding:4px 0}
.uc-card .rfw-row.t .m{font-size:16px;letter-spacing:0}
.rfw-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px}
.rfw-id b{display:block;font-size:17px;font-weight:600;letter-spacing:-.01em}
.rfw-id span{display:block;margin-top:1px;font-size:15px;color:var(--c-mu)}
.rfw-pill{flex:none;display:inline-flex;align-items:center;gap:6px;height:21px;padding:0 9px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:11px;line-height:1;font-weight:600;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap}
.rfw-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.rfw-pill.was{background:var(--c-so);color:var(--c-mu)}
/* Status colours follow the app (packages/ui/src/web/Badge.tsx). Draft is grey, Pending and Sent amber, Confirmed and in-progress blue, Paid, Received, Approved green. */
.rfw-pill.was[data-was="Pending"],.rfw-pill.was[data-was="Sent"]{background:#fef3c7;color:#b45309}
.rfw-pill--info,.rfw-card .rfw-pill[data-was="Pending"]:not(.was){background:#e0f2fe;color:#0369a1}
.rfw-row{display:flex;align-items:center;gap:12px;min-height:38px;padding:5px 0;border-top:1px solid var(--c-li)}
.rfw-row .n{flex:1;min-width:0}.rfw-row .q{color:var(--c-mu)}
.rfw-row .m{font-variant-numeric:tabular-nums;font-weight:500;text-align:right;white-space:nowrap}
.rfw-row.t{font-weight:600}.rfw-row.t .m{font-weight:600;font-size:17px;letter-spacing:-.01em}
.rfw-tk{display:block;width:20px;height:20px}
.rfw-tk path{fill:none;stroke:var(--rf-ok);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1}
.rfw-big{display:flex;align-items:baseline;gap:10px;padding:0 0 8px;font-size:clamp(38px,3.4vw,48px);line-height:1.05;font-weight:600;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.rfw-big small{font-size:17px;font-weight:500;letter-spacing:-.01em;color:var(--c-mu)}
.rfw-list{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rfw-keys{display:none}
/* Static: no JavaScript, or a browser that cannot run the wheel. The whole wheel, calm, on the same stage, every word readable. */
.rfw--static{height:auto}
/* Waiting to be built: the height the live wheel will take, so nothing below it ever shifts. */
.rfw--static.rfw-wait{display:flow-root;height:calc(100vh - var(--rfw-top,0px) + 100vh*var(--rfw-run))}
@supports (height:1svh){.rfw--static.rfw-wait{height:calc(100svh - var(--rfw-top,0px) + 100svh*var(--rfw-run))}}
.rfw--static .rfw-pin{position:relative;top:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);align-items:center;gap:clamp(32px,4.4vw,72px);width:var(--rfw-grid);height:auto;margin:var(--rfw-gy) auto;padding:clamp(28px,4.4vw,64px);border-radius:var(--rf-r-stage);background:var(--tint);overflow:visible}
.rfw--static .rfw-wheel{position:relative;left:auto;top:auto;width:100%;height:auto;aspect-ratio:1;pointer-events:auto;filter:drop-shadow(0 14px 30px rgba(15,27,45,.1))}
.rfw--static .rfw-stage{position:static;pointer-events:auto}
.rfw--static .rfw-title{font-size:clamp(36px,3.9vw,56px)}
.rfw--static .rfw-sub{color:var(--rf-ink-2)}.rfw--static .rfw-eye{color:var(--muted)}
.rfw-svg{display:block;width:100%;height:100%;overflow:visible;font-family:var(--rf-font)}
.rfw-w{fill:#fff;stroke:#fff;stroke-width:20;stroke-linejoin:round}
.rfw-w.g{fill:#fafafc;stroke:#fafafc}
.rfw-ln{fill:none;stroke:rgba(15,27,45,.09);stroke-width:22;stroke-linejoin:round}
.rfw-lb{fill:var(--ink);font-size:31px;font-weight:600;letter-spacing:-.01em;text-anchor:middle}
.rfw-icw{transform:translateY(-24px) scale(1.3)}
.rfw-i2w{transform:scale(1.25)}
.rfw-ic{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}
.rfw-ic *{vector-effect:non-scaling-stroke;stroke-width:1.25px}
.rfw-svg .mk{fill:none;stroke:#fff;stroke-width:13;stroke-linecap:round;stroke-linejoin:round}
/* An older copy of the still wheel, pasted into a page, stays calm too. */
.rfw--static .rfw-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:20px 0 0;padding:0;list-style:none;font-size:17px;line-height:1.3;font-weight:500;letter-spacing:-.01em}
.rfw-keys li{padding:9px 0;border-top:1px solid var(--line)}
.rfw-keys span{display:block;margin-top:2px;font-size:15px;font-weight:400;letter-spacing:0;color:var(--muted)}
.rfw-keyh{margin:24px 0 0;font-size:15px;font-weight:500;color:var(--muted)}
.rfw-keyh+.rfw-keys{margin-top:8px}
@media (max-width:899px) and (min-height:600px),(max-width:899px) and (max-aspect-ratio:1/1){
  .rfw{--rfw-run:2;--rfw-grid:calc(100% - 24px)}
  .rfw-h,.rfw-s{left:var(--rfw-in);right:var(--rfw-in);width:auto;text-align:center}
  .rfw-h{justify-content:flex-start}
  .rfw-s{justify-content:space-between;gap:10px}
  .rfw-h .rfw-title{font-size:clamp(32px,9.4vw,40px);letter-spacing:-.03em}
  .rfw-h .rfw-sub{margin-top:8px;font-size:17px}
  .rfw-hint{font-size:15px}
  .rfw-t .rfw-eye{display:none}
  .rfw-t .rfw-title{font-size:clamp(28px,8.2vw,34px)}
  .rfw-t .rfw-sub{margin-top:6px;font-size:16px}
  .rfw-card{padding:10px 14px 4px;font-size:15px;text-align:left}
  .rfw-hd{padding-bottom:6px}
  .rfw-id b{font-size:16px;letter-spacing:0}
  .rfw-id span{font-size:14px}
  .rfw-row{min-height:32px;padding:3px 0}
  .rfw-row.t .m{font-size:16px;letter-spacing:0}
  .rfw-big{font-size:32px;padding-bottom:4px}
  .rfw-big small{font-size:15px}
  .rfw--static .rfw-pin{grid-template-columns:minmax(0,1fr);gap:24px;padding-block:32px}
  .rfw--static .rfw-wheel{width:min(84vw,460px);justify-self:center}
  .rfw--static .rfw-lb{display:none}
  .rfw--static .rfw-icw{transform:scale(2)}
  .rfw--static .rfw-i2w{transform:scale(1.5)}
  .rfw--static .rfw-keys{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-contrast:more){
  .rfw-tile{background:#fff;box-shadow:inset 0 0 0 1px var(--rf-ink)}
  .rfw-card,.uc-card{box-shadow:inset 0 0 0 1px var(--rf-ink)}
  .rfw-sub,.rfw-eye{color:var(--ink)}
}
/* The page's own grid gets narrower gutters on small phones. */
@media (max-width:560px){.rfw{--rfw-grid:calc(100% - 16px)}}
