/*! The PPServer download-count pill — shared by the product page and the
    download page, so there is one place to change how it looks.
    Markup + behaviour: assets/downloads.js. */
/* ── "100 downloads" ───────────────────────────────────────────────────
   Social proof belongs beside the decision, so it sits in the button row —
   but it is NOT a third button, and the styling has to say so: no fill, a
   hairline that borrows the brand hue, and the number carrying the weight.

   Three small movements, all of which stop dead under prefers-reduced-motion:
   the pill fades up as it is revealed, a slow sheen crosses it once a visitor
   has had time to look at the buttons, and the arrow nudges downward on the
   same beat. The count itself animates from zero in script.

   It ships `hidden` and is revealed only when a real number arrives, so a
   cold cache or a dead endpoint shows nothing rather than "0 downloads". */
.ps-dlc{position:relative;display:inline-flex;align-items:center;gap:9px;
  padding:10px 16px 10px 12px;border-radius:999px;overflow:hidden;cursor:default;
  font:600 13px/1 system-ui,-apple-system,sans-serif;color:var(--ink-2);
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--brand) 10%,transparent),
                            color-mix(in srgb,var(--brand-2,var(--brand)) 5%,transparent));
  border:1px solid color-mix(in srgb,var(--brand) 22%,transparent);
  box-shadow:0 1px 2px color-mix(in srgb,var(--brand) 12%,transparent);
  align-self:center;animation:ps-dlc-in .5s cubic-bezier(.2,.9,.3,1.2) both}
.ps-dlc[hidden]{display:none}
@keyframes ps-dlc-in{from{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:none}}

/* the sheen — one slow pass, a few seconds in, then it rests */
.ps-dlc::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(105deg,transparent 35%,
    color-mix(in srgb,var(--brand) 22%,transparent) 50%,transparent 65%);
  transform:translateX(-120%);animation:ps-dlc-sheen 5.5s ease-in-out 1.6s 2}
@keyframes ps-dlc-sheen{0%{transform:translateX(-120%)}30%,100%{transform:translateX(120%)}}

.ps-dlc-ic{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:50%;
  background:color-mix(in srgb,var(--brand) 16%,transparent)}
.ps-dlc-ic svg{width:14px;height:14px;fill:none;stroke:var(--brand);stroke-width:2.1;
  stroke-linecap:round;stroke-linejoin:round;animation:ps-dlc-bob 5.5s ease-in-out 1.6s 2}
@keyframes ps-dlc-bob{0%,70%,100%{transform:translateY(0)}78%{transform:translateY(2.5px)}86%{transform:translateY(-1px)}}

.ps-dlc b{font-size:15px;font-weight:800;letter-spacing:-.01em;color:var(--ink);
  font-variant-numeric:tabular-nums}
.ps-dlc-l{opacity:.75}

@media (prefers-reduced-motion:reduce){
  .ps-dlc,.ps-dlc::after,.ps-dlc-ic svg{animation:none}
  .ps-dlc::after{content:none}
}
