.intro-split-icon {
    width: 3rem;
    height: 3rem;
}

/* Як TW: w-64 → sm:w-80 → lg:w-96 (одна шкала для обох фреймворків) */
.intro-split-thumb {
    width: 16rem;
    height: 16rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .intro-split-thumb {
        width: 20rem;
        height: 20rem;
    }
}

@media (min-width: 1024px) {
    .intro-split-thumb {
        width: 24rem;
        height: 24rem;
    }
}

/* Bootstrap: flex + gap (no .row negative margins; works with section overflow). Tailwind grid ignores flex on items. */
@media (min-width: 576px) {
    .intro-split-benefits__row > * {
        flex: 1 1 0%;
        min-width: 0;
    }
}

/* cash-loop — two-card bento: gradient dashboard card + oval stage with ticker band and photo */
.cash-loop__eyebrow {
    letter-spacing: 0.12em;
}

.cash-loop__heading {
    letter-spacing: -0.02em;
}

.cash-loop__micro {
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Left gradient card */
.cash-loop__panel {
    min-height: 0;
}

.cash-loop__glow {
    width: 18rem;
    height: 18rem;
    transform: translate(35%, 35%);
    filter: blur(10px);
}

.cash-loop__frost {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.cash-loop__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cash-loop__track {
    height: 0.25rem;
}

.cash-loop__fill {
    width: 0;
    animation: cash-loop-fill 1.8s ease forwards;
}

.cash-loop__fill--1 { --cash-loop-end: 84%; animation-delay: 0.15s; }
.cash-loop__fill--2 { --cash-loop-end: 52%; animation-delay: 0.4s; }
.cash-loop__fill--3 { --cash-loop-end: 68%; animation-delay: 0.65s; }

@keyframes cash-loop-fill {
    from { width: 0; }
    to { width: var(--cash-loop-end); }
}

/* Right oval stage */
.cash-loop__stage {
    min-height: 9rem;
}

.cash-loop__band {
    left: -3rem;
    right: -3rem;
    transform: translateY(-50%);
}

.cash-loop__marquee {
    width: max-content;
    animation: cash-loop-marquee 28s linear infinite;
}

@keyframes cash-loop-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.cash-loop__photo {
    width: 11rem;
    aspect-ratio: 1 / 1;
}

.cash-loop__img {
    object-fit: cover;
}

.cash-loop__chip {
    transform: translate(-40%, 18%);
    min-width: 8rem;
}

.cash-loop__desc {
    max-width: 28rem;
}

@media (min-width: 768px) {
    .cash-loop__photo {
        width: 13rem;
        aspect-ratio: 21 / 20;
    }

    .cash-loop__chip {
        transform: translate(-75%, 20%);
    }

    .cash-loop__band {
        left: -7rem;
        right: -7rem;
    }

    .cash-loop__oval.cash-loop__oval {
        border-radius: 50% !important;
        min-height: 22rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cash-loop__marquee,
    .cash-loop__fill {
        animation: none;
    }

    .cash-loop__fill--1 { width: 84%; }
    .cash-loop__fill--2 { width: 52%; }
    .cash-loop__fill--3 { width: 68%; }
}

/* advantages — metric bento: layout, sizes and transforms only (no colors) */
.metric-bento__eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.18em;
}

.metric-bento__heading {
    letter-spacing: -0.025em;
}

.metric-bento__mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .metric-bento__mosaic {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .metric-bento__tile--adv-1 { grid-column: span 3; }
    .metric-bento__tile--adv-2 { grid-column: span 3; }
    .metric-bento__tile--heat { grid-column: span 4; }
    .metric-bento__tile--insights { grid-column: span 2; }
    .metric-bento__tile--adv-3 { grid-column: span 2; }
    .metric-bento__tile--adv-4 { grid-column: span 2; }
    .metric-bento__tile--adv-5 { grid-column: span 2; }
    .metric-bento__tile--chart { grid-column: span 6; }
}

.metric-bento__toggle {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
    outline-offset: -2px;
    width: 100%;
    text-align: left;
}

.metric-bento__num {
    min-width: 2rem;
    font-variant-numeric: tabular-nums;
}

.metric-bento__chevron {
    transition: transform 200ms ease;
}

.metric-bento__card.is-open .metric-bento__chevron {
    transform: rotate(180deg);
}

.metric-bento__heatmap {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.metric-bento__heat {
    aspect-ratio: 1.5 / 1;
    animation: metric-heat-pulse 2.8s ease-in-out infinite;
    will-change: opacity, transform;
}

.metric-bento__heat:nth-child(7n + 1) { animation-delay: 0s; }
.metric-bento__heat:nth-child(7n + 2) { animation-delay: 0.2s; }
.metric-bento__heat:nth-child(7n + 3) { animation-delay: 0.4s; }
.metric-bento__heat:nth-child(7n + 4) { animation-delay: 0.6s; }
.metric-bento__heat:nth-child(7n + 5) { animation-delay: 0.8s; }
.metric-bento__heat:nth-child(7n + 6) { animation-delay: 1s; }
.metric-bento__heat:nth-child(7n + 7) { animation-delay: 1.2s; }

@keyframes metric-heat-pulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.94);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.metric-bento__tiny {
    font-size: 0.6875rem;
    line-height: 1rem;
}

.metric-bento__icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.metric-bento__insight-body {
    min-width: 0;
}

.metric-bento__chart {
    height: 8rem;
    overflow: visible;
}

.metric-bento__chart-fill {
    animation: metric-chart-fill 3.6s ease-in-out infinite;
    transform-origin: center bottom;
}

.metric-bento__chart-line {
    stroke-dasharray: 520;
    stroke-dashoffset: 0;
    animation: metric-chart-draw 4.8s ease-in-out infinite;
}

.metric-bento__chart-guide {
    animation: metric-chart-guide 4.8s ease-in-out infinite;
}

.metric-bento__chart-mark,
.metric-bento__chart-dot {
    animation: metric-chart-mark 4.8s ease-in-out infinite;
}

@keyframes metric-chart-fill {
    0%, 100% {
        opacity: 0.7;
        transform: scaleY(0.92);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes metric-chart-draw {
    0% {
        stroke-dashoffset: 520;
        opacity: 0.35;
    }
    35% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    70%, 100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes metric-chart-guide {
    0%, 20% { opacity: 0; }
    45%, 100% { opacity: 1; }
}

@keyframes metric-chart-mark {
    0%, 30% {
        opacity: 0;
        transform: translateY(6px);
    }
    45%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-bento__heatmap > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .metric-bento__heat,
    .metric-bento__chart-fill,
    .metric-bento__chart-line,
    .metric-bento__chart-guide,
    .metric-bento__chart-mark,
    .metric-bento__chart-dot {
        animation: none;
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
    }
}

/* utility classes are renamed in production builds, so closed panels rely on the hidden attribute */
.metric-bento__panel[hidden] { display: none !important; }

/* month labels under the heatmap: one line each, trimmed if long, so neighbours never collide */
.metric-bento__heatmap.metric-bento__tiny > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-bento__card :is(h3, h4) { overflow-wrap: anywhere; }

/* integrations — unified hover (layout; shadow + lift; respect reduced motion) */
.integrations-card-hover {
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.integrations-card-hover:hover {
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
    transform: translateY(-2px) scale(1.03);
}

.integrations-card-hover--shadow-only {
    transition: box-shadow 0.35s ease;
}

.integrations-card-hover--shadow-only:hover {
    transform: none;
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .integrations-card-hover:hover {
        transform: none;
    }
}

/* Compact card width parity (TW w-32 = 8rem; BS has no w-32 utility) */
.integrations__tile-compact {
    width: 8rem;
}

/* Primary tile: wpg-preview --tw-primary-* | --bs-primary-scale-*; inherited --bs-primary hex */
.integrations__icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    color: #fff;
    --_ie-from: rgb(var(--tw-primary-500, var(--bs-primary-scale-500, 99 102 241)) / 1);
    --_ie-to: rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1);
    background-color: var(--bs-primary, rgb(var(--tw-primary-600, var(--bs-primary-scale-600, 79 70 229)) / 1));
    background-image: linear-gradient(to bottom right, var(--_ie-from), var(--_ie-to));
}
.integrations__icon-tile i {
    color: inherit;
}
.integrations__icon-tile svg,
.integrations__icon-tile :is(path, circle, rect, polygon) {
    fill: currentColor;
}

/* Softer card hover shadow (avoids muddy stack with shadow-lg / BS cards) */
.integrations-card-hover:hover {
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.07);
}
.integrations-card-hover--shadow-only:hover {
    box-shadow: 0 0.375rem 1rem rgba(15, 23, 42, 0.07);
}

/* cta v38 — surge band: rising area chart + staggered copy reveal (no colors) */
.cta-surge__band { isolation: isolate; }
.cta-surge__chart { pointer-events: none; top: auto !important; bottom: 0 !important; height: 55% !important; }
.cta-surge__rise { transform-box: view-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1400ms cubic-bezier(.2, .8, .2, 1); }
.cta-surge__rise path[data-line] { transition: stroke-dashoffset 2200ms ease 300ms; }
[data-surge].is-visible .cta-surge__rise { transform: scaleY(1); }

.cta-surge__pulse { width: .875rem; height: .875rem; opacity: 0; transform: translate(-50%, -50%); transition: opacity 400ms ease 1800ms; }
.cta-surge__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid; animation: cta-surge-ping 2s ease-out infinite; }
[data-surge].is-visible .cta-surge__pulse { opacity: 1; }

.cta-surge__eyebrow { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cta-surge__fade { opacity: 0; transform: translateY(1.25rem); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1); }
.cta-surge__fade--2 { transition-delay: 120ms; }
.cta-surge__fade--3 { transition-delay: 240ms; }
[data-surge].is-visible .cta-surge__fade { opacity: 1; transform: none; }

.cta-surge__stat { opacity: 0; transform: translateY(1rem); transition: opacity 600ms ease, transform 600ms ease; }
[data-surge].is-visible .cta-surge__stat { opacity: 1; transform: none; }
[data-surge].is-visible li:nth-child(2) .cta-surge__stat { transition-delay: 150ms; }
[data-surge].is-visible li:nth-child(3) .cta-surge__stat { transition-delay: 300ms; }

@keyframes cta-surge-ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .cta-surge__rise, .cta-surge__fade, .cta-surge__stat { transition: none; transform: none; opacity: 1; }
    .cta-surge__rise path[data-line] { transition: none; }
    .cta-surge__pulse { transition: none; }
    .cta-surge__pulse::after { animation: none; }
}

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

