/* intro v23 — BAPE grunge wizard: film strip, giant numbers, clip-path wipe hover, height-expand step */

/* Full-width step photo — cinematic banner, object-fit has no BS utility */
.intro-grit__photo {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

/* Progress track height (no BS h-N utility) */
.intro-grit__track { height: 0.25rem; }

/* Clip-path reveal on hover: primary wipe grows from the corner */
.intro-grit__wipe {
    clip-path: circle(0% at 90% 10%);
    opacity: 0.12;
    transition: clip-path 420ms ease;
}
.intro-grit__card:hover .intro-grit__wipe {
    clip-path: circle(150% at 90% 10%);
}

/* Height-expand accordion-style step entrance */
.intro-grit__step {
    animation: intro-grit-expand 420ms ease;
    transform-origin: top;
}
@keyframes intro-grit-expand {
    from { opacity: 0; transform: scaleY(0.96) translateY(-0.5rem); }
    to   { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* Progress bar transition */
.intro-grit__bar { transition: width 360ms ease; width: 0; }

/* Stepper dots — state via opacity, colour stays a Tailwind class */
.intro-grit__dot {
    width: 0.625rem;
    height: 0.625rem;
    opacity: 0.35;
    transition: opacity 200ms ease, transform 200ms ease;
}
.intro-grit__dot.is-active {
    opacity: 1;
    transform: scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
    .intro-grit__step { animation: none; }
    .intro-grit__wipe { transition: none; }
}


.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;
    }
}

/* benefits glyph — card micro-illustrations, layout/motion only (no colors) */
.benefits-glyph__seal { width: 3.5rem; height: 3.5rem; }
.benefits-glyph__chip { font-size: .75rem; line-height: 1rem; letter-spacing: .04em; }

.benefits-glyph__card {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 600ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.benefits-glyph.is-visible .benefits-glyph__card { opacity: 1; transform: none; }
.benefits-glyph.is-visible .benefits-glyph__card:hover,
.benefits-glyph.is-visible .benefits-glyph__card:focus-within { transform: translateY(-.5rem); }

.benefits-glyph__stage { aspect-ratio: 4 / 3; overflow: hidden; }
.benefits-glyph__svg { width: 7.5rem; height: 7.5rem; overflow: visible; }

/* lock — shackle drops into the body, keyhole pulses */
.benefits-glyph__shackle { transform: translateY(-12px); transition: transform 600ms cubic-bezier(.5, 1.6, .5, 1); }
.benefits-glyph__keyhole { transform-box: fill-box; transform-origin: center; }
.benefits-glyph__halo { transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-armed .benefits-glyph__shackle { transform: none; }
.is-armed .benefits-glyph__keyhole { animation: benefits-glyph-pulse 2.4s ease-in-out 800ms infinite; }
.is-armed .benefits-glyph__halo { animation: benefits-glyph-ripple 2.4s ease-out 700ms infinite; }

/* stroke drawing */
.benefits-glyph__draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms ease; }
.benefits-glyph__draw--2 { transition-delay: 150ms; }
.benefits-glyph__draw--3 { transition-delay: 300ms; }
.benefits-glyph__draw--4 { transition-delay: 450ms; }
.benefits-glyph__draw--5 { transition-delay: 600ms; }
.benefits-glyph__draw--check { transition-duration: 600ms; transition-delay: 1000ms; }
.is-armed .benefits-glyph__draw { stroke-dashoffset: 0; }

/* fingerprint scan line */
.benefits-glyph__scan { opacity: 0; }
.is-armed .benefits-glyph__scan { animation: benefits-glyph-scan 2.6s ease-in-out 900ms infinite; }

/* shield ping */
.benefits-glyph__ping { transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-armed .benefits-glyph__ping { animation: benefits-glyph-ripple 2.8s ease-out 1600ms infinite; }

/* vault orbit + bobbing pin */
.benefits-glyph__orbit { transform-origin: 60px 70px; }
.benefits-glyph__pin { transform: translateY(-14px); opacity: 0; transition: transform 700ms cubic-bezier(.5, 1.6, .5, 1), opacity 400ms ease; }
.is-armed .benefits-glyph__orbit { animation: benefits-glyph-spin 9s linear infinite; }
.is-armed .benefits-glyph__pin { transform: none; opacity: 1; }

.benefits-glyph__more i { transition: transform 200ms ease; }
.benefits-glyph__more:hover i { transform: translateX(.25rem); }

@keyframes benefits-glyph-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes benefits-glyph-ripple { 0% { transform: scale(.7); opacity: .45; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes benefits-glyph-scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateY(70px); opacity: 0; } }
@keyframes benefits-glyph-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .benefits-glyph__card { opacity: 1; transform: none; transition: none; }
    .benefits-glyph__shackle, .benefits-glyph__pin { transform: none; opacity: 1; transition: none; }
    .benefits-glyph__draw { stroke-dashoffset: 0; transition: none; }
    .is-armed .benefits-glyph__keyhole, .is-armed .benefits-glyph__halo, .is-armed .benefits-glyph__scan,
    .is-armed .benefits-glyph__ping, .is-armed .benefits-glyph__orbit { animation: none; }
}

/* wpg-hidden: utility classes are renamed in production builds, so hidden states must not rely on .hidden / .d-none alone */
.benefits-glyph[hidden], .benefits-glyph [hidden], .benefits-glyph .hidden.d-none { display: none !important; }

/* Bootstrap: explicit grid + gap (row gutters often collapse) */
.tips-grid__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.tips-grid__min-shrink {
    min-width: 0;
}

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

.tips-grid__subtitle {
    max-width: 42rem;
}

.tips-grid__thumb {
    width: 3rem;
    height: 3rem;
}

.faq-insight__summary { cursor: pointer; }
.faq-insight__summary::-webkit-details-marker { display: none; }
.faq-insight__summary::marker { content: ""; }
.faq-insight__tile { width: 3rem; height: 3rem; transition: transform 300ms cubic-bezier(.2, .8, .2, 1); }
.faq-insight__item.is-open .faq-insight__tile { transform: rotate(-6deg) scale(1.05); }

.faq-insight__sign { width: 2.5rem; height: 2.5rem; }
.faq-insight__sign::before, .faq-insight__sign::after { content: ""; position: absolute; top: 50%; left: 50%; width: .875rem; height: 2px; border-top: 2px solid; transform: translate(-50%, -50%); transition: transform 300ms cubic-bezier(.2, .8, .2, 1); }
.faq-insight__sign::before { height: 0; }
.faq-insight__sign::after { height: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq-insight__item.is-open .faq-insight__sign::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-insight__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms cubic-bezier(.2, .8, .2, 1); }
.faq-insight__item.is-open .faq-insight__panel { grid-template-rows: 1fr; }
.faq-insight__inner { overflow: hidden; min-height: 0; }
.faq-insight__inner > * { opacity: 0; transform: translateY(-.5rem); transition: opacity 300ms ease, transform 300ms ease; }
.faq-insight__item.is-open .faq-insight__inner > * { opacity: 1; transform: none; transition-delay: 120ms; }

.faq-insight__stat { align-self: start; }
.faq-insight__ring { width: 5rem; height: 5rem; }
.faq-insight__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.faq-insight__ring [data-arc] { stroke-dasharray: 214; stroke-dashoffset: 214; transition: stroke-dashoffset 1200ms cubic-bezier(.2, .8, .2, 1) 150ms; }
.faq-insight__num { white-space: nowrap; }
.faq-insight__check { margin-top: .2rem; }
.faq-insight__bullet { opacity: 0; transform: translateX(-.5rem); transition: opacity 350ms ease, transform 350ms ease; }
.faq-insight__item.is-open .faq-insight__bullet { opacity: 1; transform: none; }
.faq-insight__item.is-open .faq-insight__bullet:nth-child(2) { transition-delay: 120ms; }
.faq-insight__item.is-open .faq-insight__bullet:nth-child(3) { transition-delay: 240ms; }

.faq-insight__bar { opacity: 0; transform: translateY(1.5rem); transition: opacity 450ms ease, transform 450ms cubic-bezier(.2, .8, .2, 1); }
.faq-insight__bar.is-shown { opacity: 1; transform: none; }
.faq-insight__pulse { width: 2.75rem; height: 2.75rem; }

@media (prefers-reduced-motion: reduce) {
    .faq-insight__tile, .faq-insight__sign::after, .faq-insight__panel, .faq-insight__inner > *, .faq-insight__bullet, .faq-insight__bar, .faq-insight__ring [data-arc] { transition: none; }
    .faq-insight__bar { opacity: 1; transform: none; }
}

/* wpg-hidden: utility classes are renamed in production builds, so hidden states must not rely on .hidden / .d-none alone */
.faq-insight[hidden], .faq-insight [hidden], .faq-insight .hidden.d-none { display: none !important; }

