/* The glow: light running round the edge of the one thing to do next (send your sheet, get my offer, accept the offer).
   A sharp ring of bind's purple on the edge, flaring white-lilac and breaking into lavender, violet and orchid, plus a
   soft halo of the same light outside it; one turn every 5 s. The admin uses the same light. Rare on purpose: one per
   screen. Off while the button is disabled, still with reduced motion.
   How: glow.js puts a <glow-fx> in each .glow element: a ring masked to the edge, turning a square of conic light
   with transform (the graphics card's job, so it costs the page nothing per frame), and a soft still halo of the same
   purple around it. Spinning a CSS angle instead, and blurring the turning light into a halo, repainted every frame
   and took most of a phone's main thread. */
.glow { position: relative; --glow-r: 999px; }
glow-fx[hidden] { display: none; }
glow-fx { position: absolute; inset: 0; display: block; pointer-events: none; border-radius: var(--glow-r); transition: opacity .4s ease;
  box-shadow: 0 0 18px 1px rgba(139, 92, 246, .42), 0 0 5px rgba(221, 210, 255, .28); }
/* the ring: 1.5 px on the edge */
glow-fx > b { position: absolute; inset: -1.5px; display: block; padding: 1.5px; border-radius: calc(var(--glow-r) + 1.5px); overflow: hidden; container-type: size; opacity: .95;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* the light: a square of it, the box's diagonal a side, turning about the middle */
glow-fx i { position: absolute; left: 50%; top: 50%; display: block; width: 150%; width: calc(hypot(100cqw, 100cqh) + 6px); aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(#f6f2ff 0deg, #ddd2ff 14deg, #a78bfa 36deg, rgba(124, 58, 237, .3) 62deg, rgba(167,139,250,.12) 86deg, #8b5cf6 114deg, rgba(139,92,246,.22) 140deg,
  rgba(167,139,250,.12) 162deg, #c4b5fd 188deg, #7c3aed 210deg, rgba(109,40,217,.25) 238deg, rgba(167,139,250,.12) 260deg, #d8b4fe 288deg,
  rgba(192,132,252,.22) 318deg, #ede6ff 346deg, #f6f2ff 360deg);
  animation: glow-spin 5s linear infinite; animation-delay: var(--glow-t, 0s); will-change: transform; }
@keyframes glow-spin { to { transform: rotate(360deg); } }
.glow:disabled > glow-fx { opacity: 0; }
.glow:disabled > glow-fx i, .glow.hidden > glow-fx i { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { glow-fx i { animation: none; } }

/* Gradient masses (forms.js): a grainy purple mass breathing behind an element's content, filling it */
.gf-host { position: relative; isolation: isolate; overflow: hidden; }
.gf-canvas { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.gf-on > .gf-canvas { opacity: 1; }
/* the closing card: the mass on its right, behind the code; on a phone (text over it) it steps back */
.end-card.gf-host { border-color: rgba(167, 139, 250, .16); }
@media (max-width: 899px) { .end-card > .gf-canvas { opacity: .55; } }
/* sign in: the mass behind the form, fading out at the section's top and bottom */
.auth.gf-host > .gf-canvas { -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
@media (max-width: 899px) { .auth.gf-host > .gf-canvas { opacity: .6; } }
.gf-off > .gf-canvas { opacity: 0; }
.gf-host.gf-off { overflow: visible; isolation: auto; } /* switched off: the element is just itself */
/* app home: the deal waiting on you (its offer, mostly): the mass on the right, its button lit */
.deal-hero.gf-host { border-color: rgba(167, 139, 250, .22); }
.deal-hero.gf-host .dh-amt { text-shadow: 0 1px 14px rgba(12, 4, 40, .6); }
/* the deal number sits where the light is brightest: give it a dark chip so it reads */
.deal-hero.gf-host .dh-ref, .cash-hero.gf-on:not(.gf-off) #copy-ref { padding: 2px 8px; border-radius: 6px; background: rgba(8, 6, 20, .72); color: rgba(255, 255, 255, .82); }
/* deal page: once it's paid, the hero turns to the mass */
.cash-hero.gf-host.is-paid { box-shadow: 0 0 0 1px rgba(167, 139, 250, .2), var(--float, none); }
.cash-hero.gf-on.is-paid { background: #05060a; }
.cash-hero.gf-host > .gf-canvas { -webkit-mask-image: linear-gradient(#000 0, #000 240px, transparent 420px); mask-image: linear-gradient(#000 0, #000 240px, transparent 420px); }
/* the app's screens: one gradient each, on the thing the screen is about (Deals: what you've sold; Refer: your 5%;
   Account: you; Payouts: where your money goes). Numbers and links over the light get a soft shadow */
.sd-hero.gf-host, .invite.gf-host, .acct-head.gf-host, .pv-way.gf-host { border-color: rgba(167, 139, 250, .2); }
.sd-hero.gf-host .sd-amt, .invite.gf-host .inv-pct, .acct-head.gf-host .acct-av { text-shadow: 0 1px 14px rgba(12, 4, 40, .6); }
.pv-way.gf-host .pv-way-act { color: #fff; text-shadow: 0 1px 8px rgba(12, 4, 40, .85); }
/* the invite card runs long (your link, friends): the light stays in its top, behind the 5% */
.invite.gf-host > .gf-canvas { -webkit-mask-image: linear-gradient(#000 0, #000 110px, transparent 230px); mask-image: linear-gradient(#000 0, #000 110px, transparent 230px); }
.sd-hero.gf-host .sd-soon em { padding: 2px 8px; border-radius: 6px; background: rgba(8, 6, 20, .72); color: rgba(255, 255, 255, .82); }
.ref-lock.gf-host .lock-ic { background: rgba(8, 6, 20, .6); }
/* the story sheet's link sticker sits on the gradient (like it would on a story); its Copy button keeps a dark backing */
.story-box.gf-host { border-color: rgba(167, 139, 250, .22); }
.story-box.gf-host .btn { background: rgba(8, 6, 20, .72); border-color: rgba(255, 255, 255, .18); color: #fff; }

/* the app's signed-out home, "How it works": step 4 (get paid) sits on the gradient. It's a card the width of the
   list plus 12px each side, so its number stays in the column; the line into it comes from step 3 (the card clips) */
.how li.how-paid { margin: 0 -12px; padding: 12px; border-radius: 16px; border: 1px solid rgba(167, 139, 250, .2); }
.how li.how-paid::before { content: none; }
.how li:has(+ .how-paid)::after { content: ""; position: absolute; left: 15px; bottom: -12px; height: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.how li.how-paid > .gf-canvas { opacity: 0; }
.how li.how-paid.gf-on > .gf-canvas { opacity: .7; }
#home-out .how-paid .how-n { border-color: rgba(255,255,255,.4); background: rgba(12,10,20,.35); }
.how .how-paid div span { color: rgba(255,255,255,.8); }
