/* Hero v5 Animation Styles */

@keyframes hero-v5-particle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes hero-v5-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.particle {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: hero-v5-particle-float 6s ease-in-out infinite;
}

.hero-v5-particle--1 { animation-delay: 0s; top: 20%; left: 10%; }
.hero-v5-particle--2 { animation-delay: 1s; top: 40%; left: 30%; }
.hero-v5-particle--3 { animation-delay: 2s; top: 60%; left: 50%; }
.hero-v5-particle--4 { animation-delay: 3s; top: 30%; left: 70%; }
.hero-v5-particle--5 { animation-delay: 4s; top: 50%; left: 90%; }
.hero-v5-particle--6 { animation-delay: 5s; top: 70%; left: 20%; }

.animate-fade-in-up {
    animation: hero-v5-fade-in-up 0.8s ease-out both;
}

.hero-v5-fade--1 { animation-delay: 0.2s; }
.hero-v5-fade--2 { animation-delay: 0.4s; }
.hero-v5-fade--3 { animation-delay: 0.6s; }
.hero-v5-fade--4 { animation-delay: 1s; }
.hero-v5-fade--5 { animation-delay: 1.2s; }

.hero-v5-blob--delayed { animation-delay: 2s; }

.hero-v5-bounce--1 { animation-delay: 0.5s; }
.hero-v5-bounce--2 { animation-delay: 1s; }

.hero-v5-ring--slow {
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    max-width: 100%;
    animation-duration: 20s;
}

.hero-v5-ring--reverse {
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    max-width: 100%;
    animation-duration: 15s;
    animation-direction: reverse;
}

.hero-v5-scroll-track {
    width: 1.5rem;
    height: 2.5rem;
}

.hero-v5-scroll-thumb {
    width: 0.25rem;
    height: 0.75rem;
}

.hero-v5-scroll-wrap {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    margin-left: -0.75rem;
}

.hero-v5-max-desc {
    max-width: 42rem;
}

.hero-v5-blob-nw {
    top: 3rem;
    left: 3rem;
    width: 18rem;
    height: 18rem;
    filter: blur(64px);
}

.hero-v5-blob-se {
    bottom: 3rem;
    right: 3rem;
    width: 24rem;
    height: 24rem;
    filter: blur(64px);
}

.hero-v5-card-fixed {
    width: 24rem;
    height: 24rem;
    max-width: 100%;
}

.hero-v5-card-glass {
    backdrop-filter: blur(4px);
}

.hero-v5-overlay-inner {
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
}

.hero-v5-dot--top-end {
    top: -0.5rem;
    right: -0.5rem;
    width: 2rem;
    height: 2rem;
}

.hero-v5-dot--bottom-start {
    bottom: -0.5rem;
    left: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.hero-v5-dot--mid-end {
    top: 50%;
    right: -2rem;
    width: 1rem;
    height: 1rem;
}

.hero-v5-btn-ghost {
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-v5-btn-ghost:hover,
.hero-v5-btn-ghost:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-color: #fff !important;
}

/* -- Button hover states -- */
.hero-btn-primary {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.hero-btn-primary:hover,
.hero-btn-primary:focus {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.hero-btn-outline-secondary {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-secondary:hover,
.hero-btn-outline-secondary:focus {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
    border-color: var(--bs-secondary) !important;
    transform: translateY(-1px);
}

.hero-btn-outline-primary-light {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-primary-light:hover,
.hero-btn-outline-primary-light:focus {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-1px);
}
.features-wave-cards__decor--offset-1 {
    top: 4rem;
    left: 3rem;
    transform: rotate(12deg);
}
.features-wave-cards__decor--offset-2 {
    top: 8rem;
    right: 4rem;
    transform: rotate(-6deg);
}
.features-wave-cards__decor--offset-3 {
    bottom: 6rem;
    left: 5rem;
    transform: rotate(6deg);
}
.features-wave-cards__decor--offset-4 {
    bottom: 8rem;
    right: 3rem;
    transform: rotate(-12deg);
}
.features-wave-cards__decor--pulse {
    animation: features-wave-cards-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.features-wave-cards__decor--bounce {
    animation: features-wave-cards-bounce-kf 2s infinite;
}
.features-wave-cards__decor--ping {
    animation: features-wave-cards-ping-kf 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes features-wave-cards-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
@keyframes features-wave-cards-bounce-kf {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
@keyframes features-wave-cards-ping-kf {
    75%, 100% { transform: scale(2); opacity: 0; }
}

.features-wave-cards__line--offset-1 {
    top: 33%;
    left: 0;
    clip-path: polygon(0% 50%, 25% 0%, 50% 50%, 75% 100%, 100% 50%);
}
.features-wave-cards__line--offset-2 {
    bottom: 25%;
    right: 0;
    clip-path: polygon(0% 50%, 25% 100%, 50% 50%, 75% 0%, 100% 50%);
}

.features-wave-cards__decor--drop-1 {
    top: 25%;
    left: 25%;
}
.features-wave-cards__decor--drop-2 {
    bottom: 33%;
    right: 33%;
}

.features-wave-cards__card--hover {
    transition: transform 0.3s ease;
}
.features-wave-cards__card--hover:hover {
    transform: scale(1.05);
}

.features-wave-cards__overlay-decor {
    top: 0;
    right: 0;
    transform: translate(2rem, -2rem);
}
.features-wave-cards__icon-wrap {
    clip-path: polygon(0% 20%, 100% 0%, 100% 80%, 0% 100%);
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.process__hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process__hover-lift:hover {
    transform: scale(1.04);
}

.process__step-group:hover .process__badge-rise,
.process__step-group:hover .process__icon-rise {
    transform: scale(1.08);
}

/* Менш «важка» анімація (soft / fluid варіанти) */
.process--hover-soft .process__hover-lift:hover,
.process--hover-fluid .process__hover-lift:hover {
    transform: translateY(-3px);
}

.process--hover-soft .process__step-group:hover .process__badge-rise,
.process--hover-soft .process__step-group:hover .process__icon-rise,
.process--hover-fluid .process__step-group:hover .process__badge-rise {
    transform: scale(1.025);
}

.process--hover-fluid .process__hover-lift {
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.process--hover-fluid .process__badge-rise,
.process--hover-fluid .process__deco-rise {
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.process.process--timeline-compact .process__hover-lift:hover {
    transform: translateY(-2px);
}

/* process--timeline-compact: один відступ від осі лінії (TW/BS); картка на всю ширину ряду */
.process.process--timeline-compact .process__step {
    padding-left: 5rem;
}

@media (min-width: 768px) {
    .process.process--timeline-compact .process__step {
        padding-left: 5.5rem;
    }
}

.process.process--timeline-compact .process__card {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}


/* Лише тінь на картці, без scale (soft) */
.process--hover-soft .process__card.process__hover-lift:hover {
    transform: none;
}

/* Контраст цифр на світлому / градієнті */
.process__num-pop {
    box-shadow:
        0 0 0 3px var(--bs-body-bg, #fff),
        0 4px 14px rgba(0, 0, 0, 0.18);
}

.process__meta-on-primary {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Вертикальна лінія: видима ширина (BS) + центр під колом w-12 (3rem) */
.process__vline--through-12 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.5rem;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* Центр під колом w-16 (4rem) — v2 таймлайн */
.process__vline--through-16 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* Вузол w-8, left 1.25rem → центр 2.25rem */
.process__vline--through-node-sm {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2.25rem;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* Горизонтальна лінія таймлайну (v19) */
.process__hline--bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.25rem;
    top: 1.5rem;
    margin-top: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* v3: номер над карточкою (BS/TW) */
.process__float-num-fix {
    top: -1.5rem;
}

.process__float--lifted {
    top: -1.35rem;
    left: 0.75rem;
}

/* Легкий блюр + темний шар (білий заголовок на світлому фото) */
.process__overlay-blur {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(15, 23, 42, 0.62);
}

.process__head-glass {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Відступ під «літаючий» номер (BS часто потребує більше) */
.process__card--float-gap {
    padding-top: 6.75rem;
}

/* v6: центральна вісь на всю висоту */
.process__vline--center-md {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 768px) {
    .process__step-row > .process__dot--center-line {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.process__badge-rise,
.process__icon-rise {
    transition: transform 0.3s ease;
}

.process__decor-dot {
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.process__step-group:hover .process__decor-dot {
    opacity: 1;
}

.process__decor-dot--subtle {
    opacity: 0.28;
}

.process__step-group:hover .process__decor-dot--subtle {
    opacity: 0.7;
}

.process__step-group:hover .process__deco-rise {
    opacity: 0.45;
}

.process__deco-rise {
    transition: opacity 0.3s ease;
}

/* Кола з цифрами — синхрон з Tailwind w-* h-* */
.process__num-fixed--8 {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--10 {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--12 {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--16 {
    width: 4rem;
    height: 4rem;
    min-width: 4rem;
    min-height: 4rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--20 {
    width: 5rem;
    height: 5rem;
    min-width: 5rem;
    min-height: 5rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--24 {
    width: 6rem;
    height: 6rem;
    min-width: 6rem;
    min-height: 6rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--32 {
    width: 8rem;
    height: 8rem;
    min-width: 8rem;
    min-height: 8rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* v2 аватар: квадратне поле + cover → рівне коло з rounded-circle */
.process__avatar-img {
    width: 6rem;
    height: 6rem;
    min-width: 6rem;
    min-height: 6rem;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* v1 @ifRandom декор: якір + розмір (щоб не «літав» у BS) */
.process__decor-blob-fix {
    position: absolute;
    width: 10rem;
    height: 10rem;
    top: -2.5rem;
    right: 1rem;
    z-index: -1;
    pointer-events: none;
}

/* v5 декор тло */
.process__decor-faint-fix {
    position: absolute;
    width: 6rem;
    height: 6rem;
    top: 25%;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* v14 glow */
.process__glow-fix {
    position: absolute;
    width: 16rem;
    height: 16rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .process__hover-lift,
    .process__badge-rise,
    .process__icon-rise,
    .process__decor-dot,
    .process__decor-dot--subtle,
    .process__deco-rise {
        transition: none;
    }

    .process__hover-lift:hover,
    .process--hover-soft .process__hover-lift:hover,
    .process--hover-fluid .process__hover-lift:hover,
    .process.process--timeline-compact .process__hover-lift:hover {
        transform: none;
    }

    .process__step-group:hover .process__badge-rise,
    .process__step-group:hover .process__icon-rise {
        transform: none;
    }

    .process__step-group:hover .process__decor-dot,
    .process__step-group:hover .process__decor-dot--subtle,
    .process__step-group:hover .process__deco-rise {
        opacity: unset;
    }
}

/* FAQ v19 — bento grid (featured full-width, then 2 columns on md+) */
.hints-support__bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 56rem;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .hints-support__bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hints-support__cell--featured {
        grid-column: 1 / -1;
    }

    .hints-support__cell--tile {
        min-width: 0;
    }
}

.hints-support__unit--shift:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Lists: avoid d-flex on ul (markers); spacing between items */
.hints-support__answer-list {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.hints-support__answer-list li + li {
    margin-top: 0.5rem;
}


/* BS fallback: w-1 has no BS utility */
.pitch-beacon__timeline-line {
    width: 0.25rem;
}

.pitch-beacon__timeline-node {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.pitch-beacon__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pitch-beacon__inner {
    max-width: 56rem;
}

.pitch-beacon__story--rise:hover { transform: scale(1.05); transition: transform .2s ease; }

.pitch-beacon__jump--rise:hover { transform: scale(1.05); transition: transform .2s ease; }

