/* SAINT7 public website: light motion (CSS + js/s7w-motion.js, no libraries).
   Colours and layout come from website.css; this file only adds movement.
   Without JavaScript, or with "reduce motion" switched on, everything is simply shown. */

@keyframes s7w-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes s7w-slide-in { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes s7w-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes s7w-highlight { from { background-size: 0% .14em; } to { background-size: 100% .14em; } }
@keyframes s7w-pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 183, 76, .45); } 50% { box-shadow: 0 0 0 6px rgba(0, 183, 76, 0); } }

/* 1) Hero: text rises in, one line after the other; the example panel slides in and floats gently.
      overflow-x: clip keeps the sliding panel from widening the page on phones. */
.s7w-hero { overflow-x: clip; }
.s7w-hero .s7w-pill,
.s7w-hero .s7w-eyebrow { animation: s7w-rise .6s ease both; }
.s7w-hero h1 { animation: s7w-rise .7s ease .08s both; }
.s7w-hero .s7w-lead { animation: s7w-rise .7s ease .18s both; }
.s7w-hero .s7w-hero-actions,
.s7w-hero .s7w-ticks { animation: s7w-rise .7s ease .28s both; }
.s7w-hero .s7w-hero-note,
.s7w-hero .s7w-facts,
.s7w-hero .s7w-info-card,
.s7w-hero .s7w-mini-stat { animation: s7w-rise .7s ease .38s both; }
.s7w-hero .s7w-mock { animation: s7w-slide-in .8s cubic-bezier(.2, .7, .2, 1) .25s both, s7w-float 6s ease-in-out 1.4s infinite; }
.s7w-hero .s7w-mock-body > * { animation: s7w-rise .5s ease both; }
.s7w-hero .s7w-mock-body > :nth-child(1) { animation-delay: .55s; }
.s7w-hero .s7w-mock-body > :nth-child(2) { animation-delay: .7s; }
.s7w-hero .s7w-mock-body > :nth-child(3) { animation-delay: .85s; }
.s7w-hero .s7w-mock-body > :nth-child(4) { animation-delay: 1s; }
.s7w-hero .s7w-mock-body > :nth-child(5) { animation-delay: 1.15s; }
.s7w-hero .s7w-mock-body > :nth-child(6) { animation-delay: 1.3s; }
.s7w-pill .dot { animation: s7w-pulse-dot 2.4s ease-in-out infinite; }

/* The blue words of the main heading get a soft highlight that draws in (same blue, lighter). */
.s7w-hero h1 .s7w-accent {
    background-image: linear-gradient(rgba(37, 99, 235, .16), rgba(37, 99, 235, .16));
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 100% .14em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    animation: s7w-highlight .9s cubic-bezier(.2, .7, .2, 1) .75s both;
}

/* 2) Sections reveal as they scroll into view (classes added by js/s7w-motion.js). */
.s7w-motion .s7w-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.s7w-motion .s7w-reveal.s7w-in { opacity: 1; transform: none; }

/* 3) Hover: cards lift, icons nudge, buttons float a little. */
.s7w-card, .s7w-stat, .s7w-steps li, .s7w-info-card, .s7w-side-card, .s7w-mini-stat {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.s7w-card:hover, .s7w-stat:hover, .s7w-steps li:hover, .s7w-info-card:hover, .s7w-side-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -20px rgba(31, 43, 55, .35);
}
.s7w-icon { transition: transform .25s ease; }
.s7w-card:hover .s7w-icon, .s7w-feature:hover .s7w-icon { transform: scale(1.08) rotate(-4deg); }
.s7w .btn { transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .2s ease, transform .2s ease; }
.s7w .btn:hover { transform: translateY(-2px); }
.s7w .btn:active { transform: none; }
.s7w .s7w-link-arrow i { display: inline-block; transition: transform .2s ease; }
.s7w .s7w-link-arrow:hover i { transform: translateX(3px); }

/* FAQ (Pricing page): open/close smoothly, highlight the open question. */
@keyframes s7w-faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.s7w-faq details { transition: border-color .25s ease, box-shadow .25s ease; }
.s7w-faq details:hover { border-color: rgba(37, 99, 235, .35); }
.s7w-faq details[open] { border-color: rgba(37, 99, 235, .45); box-shadow: 0 12px 28px -20px rgba(37, 99, 235, .45); }
.s7w-faq summary { transition: color .2s ease; }
.s7w-faq details[open] summary { color: var(--w-blue); }
.s7w-faq summary::after { transition: transform .3s cubic-bezier(.2, .7, .2, 1), color .2s ease; }
.s7w-faq details[open] summary::after { color: var(--w-blue); }
.s7w-faq details[open] > p { animation: s7w-faq-open .35s ease both; }
/* Browsers that can animate to "auto" height also slide the answer open and closed. */
@supports (interpolate-size: allow-keywords) {
    .s7w-faq { interpolate-size: allow-keywords; }
    .s7w-faq details::details-content { height: 0; overflow: hidden; transition: height .35s ease, content-visibility .35s allow-discrete; }
    .s7w-faq details[open]::details-content { height: auto; }
}

/* Header gets a soft shadow once the page is scrolled (class added by js/s7w-motion.js). */
.s7w-header { transition: box-shadow .25s ease; }
.s7w-header.s7w-scrolled { box-shadow: 0 6px 20px -14px rgba(31, 43, 55, .35); }

@media (prefers-reduced-motion: reduce) {
    .s7w *, .s7w *::before, .s7w *::after { animation: none !important; transition: none !important; }
    .s7w-motion .s7w-reveal { opacity: 1; transform: none; }
}
