/* intro v18 — Emigre clay: blurred photo, ECG draw, typewriter caret */

/* Blurred background photo, sharp panel sits over it */
.intro-clay [data-photo] {
    width: 66%;
    aspect-ratio: 4 / 3;
}
.intro-clay__img {
    object-fit: cover;
    filter: blur(5px) saturate(1.05);
    transform: scale(1.06);
}

/* Heartbeat / ECG line draw (stroke colour = currentColor from Tailwind text-*) */
.intro-clay__ecg-path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: intro-clay-ecg 4s linear infinite;
}
@keyframes intro-clay-ecg {
    0%   { stroke-dashoffset: 1400; }
    60%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1400; }
}

/* Typewriter caret while typing */
.intro-clay__type .is-typing {
    border-right: 2px solid currentColor;
    animation: intro-clay-caret 800ms step-end infinite;
}
@keyframes intro-clay-caret {
    50% { border-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-clay__ecg-path { animation: none; stroke-dashoffset: 0; }
}

.services-accordion__serif,
[data-serif] {
    font-family: Georgia, "Times New Roman", Times, serif;
}

[data-accordion-toggle] {
    list-style: none;
}
[data-accordion-toggle]::-webkit-details-marker {
    display: none;
}

.services-accordion__chevron {
    transition: transform 200ms ease;
}
[data-accordion-item][open] .services-accordion__chevron {
    transform: rotate(180deg);
}

.header-ui__box-10 {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    flex-shrink: 0;
}

/* v12 - Horizontal carousel: fixed card width + hidden scrollbar (no BS/TW analog) */
.steps-gradient-carousel__track {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.steps-gradient-carousel__track::-webkit-scrollbar {
    display: none;
}

.steps-gradient-carousel__card {
    width: 260px;
}

@media (min-width: 768px) {
    .steps-gradient-carousel__card {
        width: 300px;
    }
}

/* v29 step funnel — badge fixed size (w-16 h-16 has no BS util) */
.perks-funnel__badge {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
}

/* connecting horizontal line — full-width (absolute, no BS util) */
.perks-funnel__line {
    pointer-events: none;
}

/* stagger reveal animation (IntersectionObserver adds .is-visible) */
.perks-funnel__step {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.perks-funnel__step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger delays (max 4 steps) */
.perks-funnel__step:nth-child(1) { transition-delay: 0s; }
.perks-funnel__step:nth-child(2) { transition-delay: 0.1s; }
.perks-funnel__step:nth-child(3) { transition-delay: 0.2s; }
.perks-funnel__step:nth-child(4) { transition-delay: 0.3s; }

/* Лише layout / рух; кольори теми — у Blade */
.socialproof-card-hover {
    transition:
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.socialproof__stat-value,
.socialproof__stat-label {
    transition: transform 0.3s ease, color 0.2s ease;
}

@media (hover: hover) {
    .socialproof-card-hover:hover {
        box-shadow: 0 22px 44px -18px rgba(15, 23, 42, 0.2);
    }

    .dark .socialproof-card-hover:hover {
        box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.5);
    }

    .socialproof-card-hover:hover .socialproof__stat-value {
        transform: scale(1.08);
    }
}

@media (hover: hover) and (min-width: 640px) {
    .socialproof-card-hover--lift:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .socialproof-card-hover,
    .socialproof__stat-value,
    .socialproof__stat-label {
        transition: none;
    }

    .socialproof-card-hover:hover,
    .socialproof-card-hover:hover .socialproof__stat-value,
    .socialproof-card-hover--lift:hover {
        transform: none;
    }
}

/* —— акордеон (класи без номера секції) —— */
.socialproof__acc-panel {
    border-left: 3px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.socialproof__acc-panel[open] {
    border-left-color: var(--color-primary-500, #6366f1);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.dark .socialproof__acc-panel[open] {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.socialproof__acc-summary {
    transition: background-color 0.15s ease;
}

.socialproof__acc-summary::-webkit-details-marker {
    display: none;
}

.socialproof__acc-summary::marker {
    display: none;
}

@media (hover: hover) {
    .socialproof__acc-summary:hover {
        background-color: rgba(99, 102, 241, 0.06);
    }

    .dark .socialproof__acc-summary:hover {
        background-color: rgba(255, 255, 255, 0.04);
    }
}

.socialproof__acc-chevron {
    transition: transform 0.25s ease;
}

.socialproof__acc-panel[open] .socialproof__acc-chevron {
    transform: rotate(180deg);
}

/* Рядок статистики: без накладання (TW + BS) */
.socialproof__acc-stat {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.75rem 1rem;
}

.socialproof__acc-stat-num {
    flex: 0 0 auto;
    width: 4.5rem;
    min-width: 4.5rem;
    max-width: 5.5rem;
    text-align: right;
    line-height: 1.25;
}

.socialproof__acc-stat-num .socialproof__stat-value {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.socialproof__acc-stat-copy {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 575.98px) {
    .socialproof__acc-stat {
        flex-wrap: wrap;
    }

    .socialproof__acc-stat-num {
        width: 100%;
        max-width: none;
        text-align: left;
    }
}

.socialproof__acc-stat.socialproof__stat-row {
    transition: background-color 0.15s ease;
}

@media (hover: hover) {
    .socialproof__acc-stat.socialproof__stat-row:hover {
        background-color: rgba(99, 102, 241, 0.04);
    }

    .dark .socialproof__acc-stat.socialproof__stat-row:hover {
        background-color: rgba(255, 255, 255, 0.04);
    }
}

@keyframes socialproof-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes socialproof-bounce {
    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.socialproof__deco-blob--pulse {
    animation: socialproof-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.socialproof__deco-blob--bounce {
    animation: socialproof-bounce 1s infinite;
}

.socialproof__deco-blob--delay-2 {
    animation-delay: 2s;
}

@media (prefers-reduced-motion: reduce) {
    .socialproof__deco-blob--pulse,
    .socialproof__deco-blob--bounce {
        animation: none;
    }
}

