/* ==================================================================
   REVOCH public V110 — FREE TOOLS PAGE UPGRADE
   1. Live calculate: results update as inputs change (debounced
      auto-click of each card's own Calculate button — the page's
      own formulas do the math)
   2. Result pop animation
   3. "From estimate to real CRM" mapping cards with stagger + hover
   Progressive: reduced motion / Motion pause show the static page.
   ================================================================== */

/* ---------- tool cards ---------- */
.page-free-tools .v68-tool-card { position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; }
.page-free-tools .v68-tool-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.4); box-shadow: 0 20px 44px rgba(30,41,90,.13); }
.page-free-tools .v68-tool-card::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-free-tools .v68-tool-card:hover::before { width: 56px; }
.page-free-tools .v68-tool-card .tool-result { transition: color .3s ease; }
.page-free-tools .v68-tool-card .tool-result.v110-pop { animation: v110-result-pop .5s cubic-bezier(.2,.7,.2,1); }
@keyframes v110-result-pop { 0% { transform: scale(.97); color: #4f46e5; } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* ---------- mapping cards ---------- */
.v110-map-section { position: relative; }
.v110-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.v110-map-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 7px; 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; }
.v110-map-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.4); box-shadow: 0 18px 40px rgba(30,41,90,.13); }
.v110-map-card > 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; }
.v110-map-card > b { font-size: 13px; color: #131c44; }
.v110-map-card > em { font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #6474b8; }
.v110-map-card > p { margin: 0; font-size: 11px; line-height: 1.5; color: var(--muted, #5f6f89); }
.v110-map-card::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); }
.v110-map-card:hover::before { width: 52px; }

/* stagger (JS-gated) */
.page-free-tools.v110-ready .v110-map-card { opacity: 0; transform: translateY(20px); animation: v110-map-in .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--v110d, 0) * 80ms); }
@keyframes v110-map-in { to { opacity: 1; transform: none; } }

@media (max-width: 1000px) { .v110-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .v110-grid { grid-template-columns: 1fr; } }

/* ---------- guards ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-free-tools.v110-ready .v110-map-card { animation: none !important; opacity: 1 !important; transform: none !important; }
  .page-free-tools .v68-tool-card, .v110-map-card { transform: none !important; transition: none !important; }
  .page-free-tools .v68-tool-card .tool-result.v110-pop { animation: none !important; }
}
.page-free-tools.v77-paused .v110-map-card { animation: none !important; opacity: 1 !important; transform: none !important; }
