/* Sticky-stack cards — sits between the hero/why section and the "features"
   section. Cascading effect is pure CSS (position: sticky + descending
   z-index per card, same technique paddle.com uses), no scroll-jacking JS.
   Reuses the site's --primary-gradient (neon green) for the accent border/CTA. */

.stacked-reveal {
    position: relative;
    background: #0b0f0d;
    padding: 6rem 0 6rem;
}

.stacked-reveal__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stacked-reveal__set {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1.4fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.75rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, #182620 0%, #101a16 100%);
    box-shadow:
        0 32px 48px -12px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(31, 219, 149, 0.12) inset;
}

.stacked-reveal__set::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--primary-gradient, linear-gradient(94.71deg, #0aa06a 17.91%, #1fdb95 79.7%));
    opacity: 0.55;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.stacked-reveal__eyebrow {
    display: inline-block;
    font-family: Montserrat, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--primary-gradient, linear-gradient(94.71deg, #0aa06a 17.91%, #1fdb95 79.7%));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
}

.stacked-reveal__title {
    font-family: Montserrat, sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    font-weight: 700;
    color: #f5fff9;
    margin-bottom: 0.9rem;
    line-height: 1.25;
}

.stacked-reveal__desc {
    font-family: "Hind Siliguri", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(235, 245, 240, 0.72);
    margin-bottom: 1.75rem;
}

.stacked-reveal__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #06140e;
    background: var(--primary-gradient, linear-gradient(94.71deg, #0aa06a 17.91%, #1fdb95 79.7%));
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stacked-reveal__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(31, 219, 149, 0.55);
    color: #06140e;
}

.stacked-reveal__media {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(31, 219, 149, 0.18);
    box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.6);
    background: #0d1512;
}

.stacked-reveal__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile: the sticky cascade needs real scroll room per card to read well;
   on small screens it just reads as jitter, so cards sit in a normal
   static stack instead. */
@media (max-width: 1023.98px) {
    .stacked-reveal {
        padding: 3rem 0;
    }

    .stacked-reveal__inner {
        gap: 1.5rem;
    }

    .stacked-reveal__set {
        position: static;
        grid-template-columns: 1fr;
        padding: 1.75rem;
        gap: 1.5rem;
    }

    .stacked-reveal__media {
        order: -1;
    }
}

/* Section spacing normalization — every top-level section on the inventory
   landing page (Why, FAQ, Pricing, Contact CTA) shares this same 6rem
   top/bottom gap via `.section-spacing` on its wrapper, matching the rhythm
   `.stacked-reveal` already uses. The legacy vendor CSS (why.css, feature.css,
   style.css, pricing.css) bakes ad-hoc margin/padding onto `.home-page__faq`
   and `.home-page__pricing` themselves — reset here so it doesn't stack on
   top of the wrapper spacing and throw sections out of rhythm. */
.section-spacing {
    padding: 6rem 0;
}

.home-page__faq {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

@media (max-width: 1023.98px) {
    .section-spacing {
        padding: 3rem 0;
    }
}

/* DemoVideoBanner's standalone wrapper sits directly after WhySection's own
   trailing .section-spacing padding (plus the shape-gap spacer in between),
   so a second full 6rem on top of that stacked into ~200px of empty gap
   before the banner card even started. Drop the top half; the bottom half
   still gives breathing room before StackedFeatureReveal. */
.home-page__demo-banner-wrap {
    padding-top: 0;
    padding-bottom: 100px;
}

@media (max-width: 1023.98px) {
    .home-page__demo-banner-wrap {
        padding-bottom: 1.5rem;
    }
}
