/* 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; }
}

/* features pillars — circular icon tile size + column dividers (layout only, no colors) */
.features-pillars__tile {
    width: 4rem;
    height: 4rem;
}

.features-pillars__col:not(:first-child) {
    border-top-width: 1px;
    border-top-style: solid;
}

@media (min-width: 768px) {
    /* equal-width columns regardless of text length (basis 0 + min-width:0 lets a text-heavy item shrink) */
    .features-pillars__col {
        flex: 1 1 0%;
        min-width: 0;
    }

    .features-pillars__col:not(:first-child) {
        border-top-width: 0;
        border-left-width: 1px;
        border-left-style: solid;
    }
}

/* 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;
    }

    .integrations__marquee-ltr,
    .integrations__marquee-rtl {
        animation: none;
    }
}

/* Primary tile: wpg-preview --tw-primary-* | --bs-primary-scale-*; inherited --bs-primary hex */
.integrations__icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    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);
}

/* Marquee — two equal sets; -50% lands on set boundary for seamless loop */
@keyframes integrations-v15-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.integrations-v15__marquee-set {
    display: flex;
    flex-shrink: 0;
}

.integrations__marquee-ltr,
.integrations__marquee-rtl {
    display: flex;
    width: max-content;
    will-change: transform;
}

.integrations__marquee-ltr {
    animation: integrations-v15-marquee 30s linear infinite;
}

.integrations__marquee-rtl {
    animation: integrations-v15-marquee-rtl 35s linear infinite;
}

@keyframes integrations-v15-marquee-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

.integrations__marquee-fade-left {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.03), transparent);
}

.integrations__marquee-fade-right {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.03), transparent);
}

/* v15 — icon tile & fade sizes (no colors) */
.integrations-v15__tile-md {
    width: 2rem;
    height: 2rem;
}

.integrations-v15__tile-sm {
    width: 1.75rem;
    height: 1.75rem;
}

.integrations-v15__fade {
    width: 6rem;
}

