/* Calculaza Motion System v2.28.13
 * Lightweight, opt-in enhancements. Content remains visible without JavaScript.
 */
:root {
  --cz-motion-fast: 140ms;
  --cz-motion-ui: 190ms;
  --cz-motion-card: 230ms;
  --cz-motion-reveal: 420ms;
  --cz-motion-ease: cubic-bezier(.2,.75,.25,1);
}

/* Consistent hover and press feedback across tool, category, article and personal cards. */
:where(.cz-home-lab .cz-lab-category,.cz-home-lab .cz-lab-popular-card,.cz-home-lab .cz-lab-tool-card,
.cz-home-tool-card,.cz-category-card,.cz-subcategory-card,.cz-directory-category,
.cz-directory-subcategory,.cz-directory-tool-card,.cz-blog-card,.cz-related-tool-card,
.cz-personal-tool-card,.cz-about-category-card,.cz-support-feature,.cz-faq-item) {
  transition: transform var(--cz-motion-card) var(--cz-motion-ease),
    box-shadow var(--cz-motion-card) ease, border-color var(--cz-motion-ui) ease,
    background-color var(--cz-motion-ui) ease;
  transform-origin: center;
}
@media (hover:hover) and (pointer:fine) {
  :where(.cz-home-lab .cz-lab-category,.cz-home-lab .cz-lab-popular-card,.cz-home-lab .cz-lab-tool-card,
  .cz-home-tool-card,.cz-category-card,.cz-subcategory-card,.cz-directory-category,
  .cz-directory-subcategory,.cz-directory-tool-card,.cz-blog-card,.cz-related-tool-card,
  .cz-personal-tool-card,.cz-about-category-card,.cz-support-feature):hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(25,45,85,.09);
  }
}
:where(.cz-site-header button,.cz-site-header a,.cz-tools-directory button,.cz-blog-archive button,
.cz-blog-archive a,.cz-tool-shell button,.cz-home-lab button,.cz-support-page button,
.cz-support-page a,.cz-page-wrap button):active {
  transform: translateY(1px) scale(.985);
}
:where(.cz-site-header button,.cz-tools-directory button,.cz-blog-archive button,.cz-tool-shell button,
.cz-home-lab button,.cz-support-page button,.cz-page-wrap button):focus-visible {
  transition: outline-offset var(--cz-motion-fast) ease, box-shadow var(--cz-motion-fast) ease;
}

/* Header dropdowns fade and slide instead of abruptly appearing. */
.cz-site-header .cz-header__dropdown {
  display: block !important;
  visibility: hidden;
  opacity: 0;
  transform: translateY(7px) scale(.985);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity var(--cz-motion-ui) ease, transform var(--cz-motion-ui) var(--cz-motion-ease), visibility var(--cz-motion-ui) ease;
  will-change: opacity, transform;
}
.cz-site-header .cz-header__category:hover .cz-header__dropdown,
.cz-site-header .cz-header__category:focus-within .cz-header__dropdown,
.cz-site-header .cz-header__category.is-open .cz-header__dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cz-site-header.cz-header-menu-open .cz-header__controls {
  animation: cz-motion-menu-in 210ms var(--cz-motion-ease) both;
}
@keyframes cz-motion-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width:820px) {
  .cz-site-header .cz-header__dropdown { transform: translateY(-4px); transform-origin: top; }
  .cz-site-header .cz-header__category:hover .cz-header__dropdown:not(:focus-within) { visibility:hidden; opacity:0; pointer-events:none; }
  .cz-site-header .cz-header__category:focus-within .cz-header__dropdown,
  .cz-site-header .cz-header__category.is-open .cz-header__dropdown { transform: translateY(0); }
}

/* Search suggestions use opacity/transform only; they never alter document flow. */
:where(.cz-lab-suggestions,.cz-home-v181-suggestions,.cz-home-suggestions,.cz-directory-suggestions) {
  transform-origin: top center;
  transition: opacity var(--cz-motion-ui) ease, transform var(--cz-motion-ui) var(--cz-motion-ease), box-shadow var(--cz-motion-ui) ease;
}
:where(.cz-lab-suggestion,.cz-home-v181-suggestion,.cz-home-suggestion,.cz-directory-suggestion) {
  transition: background-color var(--cz-motion-fast) ease, color var(--cz-motion-fast) ease, padding-inline var(--cz-motion-fast) ease;
}

/* Result, tabs, favourite and copy feedback. */
.cz-tool-shell .cz-result.is-visible,
.cz-page-wrap .cz-result.is-visible { animation: cz-motion-result-in 280ms var(--cz-motion-ease) both; }
@keyframes cz-motion-result-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
:where(.cz-tool-shell [role="tab"],.cz-home-lab [role="tab"],.cz-tools-directory [role="tab"]) {
  transition: color var(--cz-motion-ui) ease, background-color var(--cz-motion-ui) ease, border-color var(--cz-motion-ui) ease, box-shadow var(--cz-motion-ui) ease;
}
.cz-motion-favorite-pop { animation: cz-motion-favorite-pop 360ms var(--cz-motion-ease) both; }
@keyframes cz-motion-favorite-pop {
  0% { transform: scale(.92); }
  48% { transform: scale(1.16) rotate(-7deg); }
  100% { transform: scale(1); }
}
.cz-motion-action-feedback { animation: cz-motion-action-feedback 280ms ease both; }
@keyframes cz-motion-action-feedback {
  0% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
  45% { box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
}
.cz-tool-app-individual [aria-busy="true"] { cursor: progress; }
.cz-tool-app-individual [aria-busy="true"] :where(input,select,textarea) { transition: border-color var(--cz-motion-fast) ease; }

/* Chart lines opt into a measured SVG path draw in motion-system.js. */
/* Scroll reveals are armed by JS only; no-JS and unsupported browsers keep content visible. */
html[data-cz-motion-state="active"] .cz-motion-reveal-pending {
  opacity: .01;
  transform: translateY(14px);
  transition: opacity var(--cz-motion-reveal) var(--cz-motion-ease), transform var(--cz-motion-reveal) var(--cz-motion-ease);
  will-change: opacity, transform;
}
html[data-cz-motion-state="active"] .cz-motion-reveal-pending.cz-motion-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
html[data-cz-motion-state="active"] .cz-motion-stagger > * {
  transition-delay: var(--cz-motion-stagger-delay, 0ms);
}
.cz-lab-hero .cz-lab-hero-copy,
.cz-lab-hero .cz-premium-hero-visual {
  animation: cz-motion-hero-in 460ms var(--cz-motion-ease) both;
}
.cz-lab-hero .cz-premium-hero-visual { animation-delay: 90ms; }
@keyframes cz-motion-hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Respect a user's explicit choice as well as the operating-system preference. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  :where(.cz-site-header,.cz-site-footer,.cz-tools-directory,.cz-blog-archive,.cz-tool-shell,.cz-home-lab,.cz-support-page,.cz-page-wrap) *,
  :where(.cz-site-header,.cz-site-footer,.cz-tools-directory,.cz-blog-archive,.cz-tool-shell,.cz-home-lab,.cz-support-page,.cz-page-wrap) *::before,
  :where(.cz-site-header,.cz-site-footer,.cz-tools-directory,.cz-blog-archive,.cz-tool-shell,.cz-home-lab,.cz-support-page,.cz-page-wrap) *::after {
    scroll-behavior: auto !important; animation: none !important; transition: none !important;
  }
  html[data-cz-motion-state="active"] .cz-motion-reveal-pending { opacity: 1; transform: none; }
}
html[data-cz-motion-preference="reduce"] {
  scroll-behavior: auto !important;
}
html[data-cz-motion-preference="reduce"] :where(.cz-site-header,.cz-site-footer,.cz-tools-directory,.cz-blog-archive,.cz-tool-shell,.cz-home-lab,.cz-support-page,.cz-page-wrap),
html[data-cz-motion-preference="reduce"] :where(.cz-site-header,.cz-site-footer,.cz-tools-directory,.cz-blog-archive,.cz-tool-shell,.cz-home-lab,.cz-support-page,.cz-page-wrap) *,
html[data-cz-motion-preference="reduce"] :where(.cz-site-header,.cz-site-footer,.cz-tools-directory,.cz-blog-archive,.cz-tool-shell,.cz-home-lab,.cz-support-page,.cz-page-wrap) *::before,
html[data-cz-motion-preference="reduce"] :where(.cz-site-header,.cz-site-footer,.cz-tools-directory,.cz-blog-archive,.cz-tool-shell,.cz-home-lab,.cz-support-page,.cz-page-wrap) *::after {
  scroll-behavior: auto !important; animation: none !important; transition: none !important; transform: none !important;
}
html[data-cz-motion-preference="reduce"] .cz-motion-reveal-pending { opacity: 1 !important; transform: none !important; }

@media (hover:none), (pointer:coarse) {
  :where(.cz-home-lab .cz-lab-category,.cz-home-lab .cz-lab-popular-card,.cz-home-lab .cz-lab-tool-card,
  .cz-home-tool-card,.cz-category-card,.cz-subcategory-card,.cz-directory-category,
  .cz-directory-subcategory,.cz-directory-tool-card,.cz-blog-card,.cz-related-tool-card,
  .cz-personal-tool-card,.cz-about-category-card,.cz-support-feature):hover { transform:none; box-shadow:inherit; }
}
@media (max-width:820px) {
  /* Keep the static mobile menu collapsed; only an open/focused category occupies space. */
  .cz-site-header .cz-header__dropdown { display:none !important; }
  .cz-site-header .cz-header__category:focus-within .cz-header__dropdown,
  .cz-site-header .cz-header__category.is-open .cz-header__dropdown { display:block !important; }
}
html[data-cz-motion-preference="reduce"] .cz-home-tool-card::after,
html[data-cz-motion-preference="reduce"] .cz-lab-hero::before { display:none !important; }
