/* Page pieces: stats, the tick pipeline, benchmark bars, FAQ and getting-started steps. */

/* ---- stats -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { padding: 1.3rem 0 1.4rem; background: var(--paper); }
.stat__v { font-size: clamp(2.5rem, 11.5vw, 4.5rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__v small { margin-left: .1em; font-size: .42em; font-weight: 500; letter-spacing: -.01em; color: var(--mute); }
.stat__l { margin-top: .55rem; max-width: 15em; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { padding-inline: 1.4rem; } .stat:first-child { padding-left: 0; } }

/* ---- the tick pipeline: a spine with a travelling pulse ----------------- */
.pipe { position: relative; display: grid; padding-left: 28px; }
.pipe::before, .pipe::after { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; }
.pipe::before { background: var(--line-2); }
.pipe::after { background: linear-gradient(180deg, transparent 0%, var(--cobalt) 50%, transparent 100%); background-size: 100% 300%;
  background-repeat: no-repeat; animation: pipe-v 2.8s linear infinite; }
@keyframes pipe-v { from { background-position: 0 150%; } to { background-position: 0 -150%; } }
.pipe__stage { position: relative; padding-bottom: 1.6rem; }
.pipe__stage:last-child { padding-bottom: 0; }
.pipe__dot { position: absolute; left: -28px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--cobalt); animation: pipe-dot 2.8s ease-out infinite; animation-delay: calc(var(--i) * .56s); }
@keyframes pipe-dot { 0% { box-shadow: 0 0 0 5px rgb(41 82 204 / .28); } 30%, 100% { box-shadow: 0 0 0 0 rgb(41 82 204 / 0); } }
.pipe__stage b { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.pipe__stage > span:last-child { display: block; margin-top: .3rem; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); max-width: 24em; }
@media (min-width: 900px) {
  .pipe { grid-template-columns: repeat(5, 1fr); gap: 1rem; padding-left: 0; padding-top: 28px; }
  .pipe::before, .pipe::after { left: 10px; right: 10px; top: 5px; bottom: auto; width: auto; height: 2px; }
  .pipe::after { background: linear-gradient(90deg, transparent 0%, var(--cobalt) 50%, transparent 100%); background-size: 300% 100%; animation: pipe-h 2.8s linear infinite; }
  .pipe__dot { left: 0; top: -28px; }
}
@keyframes pipe-h { from { background-position: -150% 0; } to { background-position: 150% 0; } }

/* ---- benchmark bars ----------------------------------------------------- */
.benchwrap { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .benchwrap { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.bench__t { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.bench__unit { display: block; margin-top: .25rem; font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.bench__row { display: grid; grid-template-columns: minmax(6.5rem, 9.5rem) 1fr 3rem; align-items: center; gap: .6rem; margin-top: .75rem; font-size: .875rem; }
.bench__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.bench__track { position: relative; height: 12px; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.bench__track i { display: block; width: 0; min-width: 4px; height: 100%; border-radius: 3px; background: var(--steel);
  transition: width 1.2s cubic-bezier(.2,.7,.2,1) .15s; }
.bench__val { text-align: right; font-variant-numeric: tabular-nums; }
.bench__row.mine .bench__name, .bench__row.mine .bench__val { font-weight: 600; color: var(--ink); }
.bench__row.mine .bench__track i { background: var(--cobalt); }
.in .bench__track i { width: var(--w); }
.src { margin-top: 1.5rem; max-width: 62em; font-size: .8125rem; line-height: 1.5; color: var(--mute); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__i { border-bottom: 1px solid var(--line); }
.faq__i summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .9rem 0;
  font-size: 1.0625rem; font-weight: 600; list-style: none; }
.faq__x { position: relative; flex: none; width: 18px; height: 18px; }
.faq__x::before, .faq__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  background: var(--ink); transition: transform .25s; }
.faq__x::after { transform: rotate(90deg); }
.faq__i[open] .faq__x::after { transform: none; }
.faq__i p { padding-bottom: 1.1rem; max-width: 46em; font-size: 1rem; color: var(--ink-2); }

/* ---- getting started ---------------------------------------------------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.step { min-width: 0; }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); }
.step__n { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .875rem var(--mono); }
.step h3 { margin-top: .9rem; font-size: 1.125rem; letter-spacing: -.015em; }
.step > p { margin: .35rem 0 .95rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.code { position: relative; overflow: hidden; border-radius: var(--r-s); background: var(--ink); }
.code pre { margin: 0; padding: .95rem 4.4rem .95rem 1rem; overflow-x: auto; font: 400 .8125rem/1.6 var(--mono); color: #E6E9EF; }
.code + .code { margin-top: .6rem; }
.code__copy { position: absolute; top: 6px; right: 6px; min-height: 30px; padding: 0 .6rem; border: 0; border-radius: 5px;
  background: rgb(255 255 255 / .1); color: #fff; font: 600 .75rem var(--font); cursor: pointer; }
.code__copy:hover { background: rgb(255 255 255 / .18); }
