/* The "Built inside itself" chapter, shared by /den (den.njk) and How it works (den-how-it-works.njk) through src/_includes/den-built.njk,
   with src/js/den-built.js. One component, so the two pages count the same way. Loaded after den.css, which supplies the .dd-ch chapter,
   .dd-h and .dd-lead it builds on. The hidden "before" state sits behind html.dd-js (/den) or html.dh-js (How it works): neither is set with
   reduced motion, and each page's own script takes it off again if it never reports ready. No JS, or reduced motion: the finished count and rail. */
/* Products only, by their own marks */
.dd-products{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:clamp(28px,4vw,48px)}
.dd-products li{display:flex;align-items:center;gap:.75rem;border:1px solid var(--rule);border-radius:99px;padding:.45rem 1.2rem .45rem .5rem;font-weight:600}
.dd-products img{width:36px;height:36px;border-radius:8px}
/* Built inside itself: teal, the page's third moment. The real number is in the DOM; the count and the 55 ticks are decoration. */
.dd-proof .dd-h{max-width:14ch}
.dd-proof__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 56px;margin-top:clamp(20px,3vw,36px)}
.dd-proof__row .dd-lead{margin-top:0;color:var(--fg);max-width:36ch}
.dd-products{display:flex;flex-wrap:wrap;gap:12px;margin:0}
.dd-stat{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px clamp(24px,5vw,80px);margin-top:clamp(40px,6vw,88px)}
.dd-stat__n{font-weight:800;font-size:clamp(9rem,31vw,26rem);line-height:.78;letter-spacing:-.06em;color:var(--f-saffron);font-variant-numeric:tabular-nums;margin-left:-.04em}
.dd-stat__t{max-width:34ch;padding-bottom:.6rem;color:var(--sec);font-size:clamp(1.15rem,1rem + .7vw,1.6rem);line-height:1.4}
.dd-stat__t b{display:block;color:var(--fg);font-weight:800;font-size:clamp(1.5rem,1.1rem + 1.4vw,2.4rem);letter-spacing:-.03em;line-height:1.1;margin-bottom:.5rem}
.dd-stat__rest{display:block;margin-top:.6rem;color:var(--fg);font-weight:600}
.dd-rail{display:flex;justify-content:space-between;align-items:flex-end;gap:2px;height:72px;margin-top:clamp(28px,4vw,56px)}
.dd-rail li{flex:1 1 0;max-width:6px;height:100%;background:var(--linen);border-radius:1px;transform-origin:50% 100%}
.dd-rail li:last-child{background:var(--f-saffron);max-width:8px}
.dd-rail__l{display:flex;justify-content:space-between;margin-top:12px;font:400 .875rem/1.3 var(--mono);letter-spacing:.06em;color:var(--fg)}
@media (prefers-reduced-motion:no-preference){
  :is(.dd-js,.dh-js) .dd-proof:not(.run) .dd-rail li{opacity:.25;transform:scaleY(.4)}
  :is(.dd-js,.dh-js) .dd-proof.run .dd-rail li{transition:opacity .35s ease-out,transform .5s var(--ease);transition-delay:calc(var(--i) * 34ms + 250ms)}
}
