/* Revisely motion (public pages). Built on the shared tokens in tailwind-public.css:
   --rv-ease-out, --rv-fast, --rv-base, --rv-slow. Everything is visible by default; motion only
   runs when js/rv-motion.js adds .rv-m to <html> (IntersectionObserver available, motion allowed). */

/* ---------- Focal moment: the paper stack lands, the brand ring draws ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv-m .rv-stack__sheet { animation: rv-sheet-in .62s var(--rv-ease-out) both; }
  .rv-m .rv-stack__sheet--back { animation-delay: .12s; --rv-sheet-to: rotate(4deg) translate(14px, -4px); }
  .rv-m .rv-stack__sheet--mid { animation-delay: .04s; --rv-sheet-to: rotate(2deg) translate(6px, 10px); }
  .rv-m .rv-stack > .rv-card { animation: rv-card-in .55s var(--rv-ease-out) both; }
  .rv-m .rv-hero__ring path { stroke-dasharray: 1; animation: rv-draw 1.1s var(--rv-ease-out) .1s both; }
}
@keyframes rv-sheet-in { from { transform: rotate(0deg) translate(0, 0); opacity: 0; } to { transform: var(--rv-sheet-to); opacity: 1; } }
@keyframes rv-card-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rv-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Lists that arrive as lists ---------- */
.rv-m [data-rv-item]:not(.is-in) { opacity: 0; transform: translateY(14px); }
.rv-m [data-rv-item] { transition: opacity .42s var(--rv-ease-out), transform .42s var(--rv-ease-out), border-color var(--rv-base) var(--rv-ease-out), box-shadow var(--rv-base) var(--rv-ease-out); transition-delay: var(--rv-d, 0ms); }
.rv-m [data-rv-item].is-in { transition-delay: var(--rv-d, 0ms), var(--rv-d, 0ms), 0ms, 0ms; }
@media (prefers-reduced-motion: reduce) {
  .rv-m [data-rv-item]:not(.is-in) { transform: none; }
  .rv-m [data-rv-item] { transition: opacity .2s linear; transition-delay: 0ms; }
}

/* ---------- Hover feedback on cards: tint, never jump ---------- */
.lp-tile, .pp-card {
  transition: border-color var(--rv-base) var(--rv-ease-out), box-shadow var(--rv-base) var(--rv-ease-out);
}
@media (hover: hover) {
  .lp-tile:hover, .pp-card:not(.pp-card--pro):hover {
    border-color: rgba(0, 186, 226, .55) !important;
    box-shadow: 0 14px 32px -22px rgba(0, 35, 111, .45);
  }
  .lp-tile .material-symbols-outlined { transition: color var(--rv-base) var(--rv-ease-out), background-color var(--rv-base) var(--rv-ease-out); }
}

/* ---------- State change: Developing -> Secure (mirrors the band-up moment in the app) ---------- */
.rv-cta__chip--b .rv-band-word { display: inline-block; }
.rv-m .rv-cta__chip--b.is-dev { color: #92400e; }
.rv-m .rv-cta__chip--b.is-dev .material-symbols-outlined { color: #d97706; }
.rv-cta__chip--b { transition: color .3s var(--rv-ease-out); }
.rv-cta__chip--b .material-symbols-outlined { transition: color .3s var(--rv-ease-out); }
.rv-cta__chip--b.is-up { background: linear-gradient(#c6f3e3, #c6f3e3) no-repeat 0 0 / 100% 100%; animation: rv-sweep .6s var(--rv-ease-out) both; }
@media (prefers-reduced-motion: no-preference) {
  .rv-cta__chip--b.is-up .rv-band-word { animation: rv-word-in .36s var(--rv-ease-out) both; }
}
@keyframes rv-word-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Score chip counts up (reuses rv-bump) ---------- */
.rv-pupils__chip .rv-count { display: inline-block; transform-origin: center; }
.rv-pupils__chip .rv-count.is-bump { animation: rv-bump .26s var(--rv-ease-out); }
