/* =========================================================
   Section · 01 Why Yentrika — rolling numbers and the reasons grid.
   ========================================================= */

/* ---------- Stats ---------- */
/* --cols: how many numbers there are (set by js/ui/content.js when the admin changes them) */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 20px; }
.stat { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.stat__num { color: var(--accent); font-size: clamp(52px, 6.4vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.stat__label { max-width: 15em; margin-top: 14px; font-size: 15px; color: var(--text); }
.roller { display: inline-flex; }
.roller > span { display: inline-block; height: 1em; line-height: 1; }
.roll { position: relative; overflow: hidden; }
.roll__size { visibility: hidden; }
.roll__strip {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 1.6s cubic-bezier(.3, 1.12, .4, 1);
}
.roll__strip span { display: block; height: 1em; line-height: 1; }
.stats.is-in .roll__strip { transform: translateY(calc(var(--n) * -1em)); }

@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }

/* ---------- Why: reasons grid ---------- */
/* hairlines are drawn per cell, so a part-filled last row stays clean */
.reasons {
  display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  margin: clamp(36px, 4.5vw, 56px) 0 0; padding: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); overflow: hidden;
}
.reasons li { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 28px; background: var(--surface); box-shadow: 1px 0 0 var(--edge), 0 1px 0 var(--edge); transition: background-color .25s; }
.reasons li:hover { background: #FAFBFD; }
.reasons__n { font: 500 12px var(--mono); letter-spacing: .14em; color: var(--muted); transition: color .25s; }
.reasons li:hover .reasons__n { color: var(--ink); }
.reasons li:hover .reasons__n::after { content: " ●"; color: var(--accent); }
.reasons h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.15; }
.reasons p { font-size: 15px; color: var(--text); }
@media (max-width: 1024px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* no empty cell beside an odd last one */
}
@media (max-width: 560px) { .reasons { grid-template-columns: minmax(0, 1fr); } }
