/* Viselumo motion system. Respects prefers-reduced-motion. */
:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

/* Sticky header with scroll shadow */
nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.88); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); transition: box-shadow 0.25s ease; }
nav.scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,0.25); }

/* Page load: hero entrance (CSS only, no flash) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-left > * { animation: rise 0.8s var(--ease) both; }
.hero-left > :nth-child(1) { animation-delay: 0.05s; }
.hero-left > :nth-child(2) { animation-delay: 0.12s; }
.hero-left > :nth-child(3) { animation-delay: 0.2s; }
.hero-left > :nth-child(4) { animation-delay: 0.28s; }
.hero-left > :nth-child(5) { animation-delay: 0.36s; }
.hero-left > :nth-child(6) { animation-delay: 0.44s; }
.hero-form-card { animation: rise 0.9s var(--ease) 0.2s both; }
.page-hero > *, .page-hero-inner > * { animation: rise 0.8s var(--ease) both; }
.page-hero > :nth-child(2), .page-hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.page-hero > :nth-child(3), .page-hero-inner > :nth-child(3) { animation-delay: 0.16s; }
.page-hero > :nth-child(4), .page-hero-inner > :nth-child(4) { animation-delay: 0.24s; }
.page-hero > :nth-child(5), .page-hero-inner > :nth-child(5) { animation-delay: 0.32s; }
.page-hero > .page-hero-copy { animation: none; }
.page-hero-copy > * { animation: rise 0.8s var(--ease) both; }
.page-hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.page-hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.page-hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.page-hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.page-hero > .hero-collage { animation: rise 0.9s var(--ease) 0.2s both; }
.hero-collage .cell { animation: rise-soft 0.8s var(--ease) both; }
.hero-collage .c1 { animation-delay: 0.3s; } .hero-collage .c2 { animation-delay: 0.42s; } .hero-collage .c3 { animation-delay: 0.54s; } .hero-collage .c4 { animation-delay: 0.66s; }
.pricing-hero, .ty-hero { animation: rise 0.8s var(--ease) both; }

/* Scroll reveal (classes added by motion.js, so no JS means no hidden content) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* Bars grow from the left */
.m-bar { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease); transition-delay: calc(0.25s + var(--i, 0) * 120ms); }
.in .m-bar, .m-bar.in { transform: scaleX(1); }

/* Gauge arcs draw in */
.m-arc { transition: stroke-dashoffset 1.3s var(--ease) 0.2s; }

/* Hover lifts */
.insight-card, .step-card, .industry-pill, .case-card, .support-card, .gauge, .value-cell { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s ease; }
.insight-card:hover, .step-card:hover, .gauge:hover, .support-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(0,0,0,0.3); }
.industry-pill:hover, .value-cell:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -16px rgba(0,0,0,0.3); }
.case-card:hover { box-shadow: 0 24px 48px -30px rgba(0,0,0,0.28); }
.media img { transition: transform 0.9s var(--ease); }
.insight-card:hover .media img, .case-card:hover .media img { transform: scale(1.04); }

/* Buttons */
.run-btn, .cta-btn-full, .cta-white-btn, .hero-cta, .pay-btn { transition: transform 0.2s var(--ease), box-shadow 0.25s ease, opacity 0.2s ease, background 0.2s ease; }
.run-btn:hover, .cta-btn-full:hover, .cta-white-btn:hover, .hero-cta:hover, .pay-btn:hover { transform: translateY(-2px); }
.run-btn:active, .cta-btn-full:active, .cta-white-btn:active, .hero-cta:active, .pay-btn:active { transform: translateY(0) scale(0.99); }
input, select, textarea { transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(232,68,42,0.12); }

/* Attention pulse on the "your business" row */
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(232,68,42,0.28); } 70% { box-shadow: 0 0 0 10px rgba(232,68,42,0); } 100% { box-shadow: 0 0 0 0 rgba(232,68,42,0); } }
.mock-row.you { animation: ring 2.6s ease-out 1.2s infinite; }
.hero-badge-dot { animation: ring 2.2s ease-out infinite; }

/* Success icon pop */
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.ty-icon { animation: pop 0.7s var(--ease) 0.15s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ty-icon svg path, .ty-icon svg rect { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 0.8s var(--ease) 0.55s forwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .m-bar { opacity: 1 !important; transform: none !important; }
  .ty-icon svg path, .ty-icon svg rect { stroke-dashoffset: 0 !important; }
}

