/* ==================================================================
   REVOCH public V109 — CHANGELOG PAGE UPGRADE
   1. Release cards: staggered entrance, hover lift, NEW badge pulse
   2. "INSIDE THE CRM" module grid: staggered cards + hover lift
   Progressive: reduced motion / Motion pause show the static page.
   ================================================================== */

/* ---------- 1. release cards ---------- */
.page-changelog .v87-release-card { position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; }
.page-changelog .v87-release-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.4); box-shadow: 0 20px 44px rgba(30,41,90,.13); }
.page-changelog .v87-release-card .v87-release-meta b { animation: v109-new-pulse 2.6s ease-in-out infinite; }
@keyframes v109-new-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.35); } 50% { box-shadow: 0 0 0 6px rgba(99,102,241,0); } }
.page-changelog .v87-release-card small { background: var(--grad, linear-gradient(135deg,#2563eb,#7c3aed)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* staggered entrance (JS-gated) */
.page-changelog.v109-ready .v87-release-card { opacity: 0; transform: translateY(26px); animation: v109-card-in .55s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--v109d, 0) * 90ms); }
@keyframes v109-card-in { to { opacity: 1; transform: none; } }

/* ---------- 2. inside-the-crm module grid ---------- */
.page-changelog .v109-crm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.page-changelog .v109-crm-grid a { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border: 1px solid rgba(203,214,240,.9); border-radius: 16px; background: linear-gradient(165deg, #fff, #f7f9ff); text-decoration: none; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; }
.page-changelog .v109-crm-grid a:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.4); box-shadow: 0 18px 40px rgba(30,41,90,.13); }
.page-changelog .v109-crm-grid a i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12)); color: #4f46e5; font-style: normal; font-size: 15px; }
.page-changelog .v109-crm-grid a b { font-size: 13px; color: #131c44; }
.page-changelog .v109-crm-grid a small { font-size: 10.5px; line-height: 1.45; color: var(--muted, #5f6f89); }
.page-changelog .v109-crm-grid a::before { content: ""; position: absolute; left: 0; top: 0; height: 2.5px; width: 0; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #2563eb, #7c3aed); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.page-changelog .v109-crm-grid a:hover::before { width: 52px; }

/* stagger (JS-gated) */
.page-changelog.v109-ready .v109-crm-grid a { opacity: 0; transform: translateY(20px); animation: v109-card-in .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.5s + var(--v109d, 0) * 70ms); }

@media (max-width: 1000px) { .page-changelog .v109-crm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .page-changelog .v109-crm-grid { grid-template-columns: 1fr; } }

/* ---------- guards ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-changelog.v109-ready .v87-release-card, .page-changelog.v109-ready .v109-crm-grid a { animation: none !important; opacity: 1 !important; transform: none !important; }
  .page-changelog .v87-release-card .v87-release-meta b { animation: none !important; }
  .page-changelog .v87-release-card, .page-changelog .v109-crm-grid a { transform: none !important; transition: none !important; }
}
.page-changelog.v77-paused .v87-release-card, .page-changelog.v77-paused .v109-crm-grid a { animation: none !important; opacity: 1 !important; transform: none !important; }
