/* Grid + gap: @sem may obfuscate Tailwind grid/gap */
.badge-tower-grid {
    display: grid;
    width: 100%;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
    .badge-tower-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Badge anchor: stable vertical offset (bs had top-0; tw -top-8 was too low vs 5rem circle) */
.philosophy-v3-badge-decor {
    top: -4.25rem;
}

.philosophy-large-badge {
    width: 5rem;
    height: 5rem;
}

.philosophy-bg__img {
    object-fit: cover;
}

/* Steps v29 — Split-Screen Steps with Sticky Icon Panel and Scrollable List */

/* Shared split-screen grid: sticky rail (narrow) + scrollable list (wide).
   No Bootstrap equivalent for an arbitrary grid-template-columns split,
   so this single custom class drives the layout in both TW and BS renders. */
.twin-pane__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .twin-pane__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }
}

/* Sticky icon/intro rail — position:sticky is standard CSS, framework-agnostic */
@media (min-width: 992px) {
    .twin-pane__rail {
        position: sticky;
        top: 6rem;
        align-self: flex-start;
    }
}

/* Fixed-size icon badge — no Bootstrap utility matches this exact box size */
.twin-pane__icon-box {
    width: 3rem;
    height: 3rem;
}

/* Remove trailing divider/spacing on the last step item (no BS :last-child utility) */
.twin-pane__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

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

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

/* Tile size variants (no-color: dimensions only) — used by bs branch that lacks w-*/h-* utilities */
.integrations__icon-tile--lg {
    width: 4rem;
    height: 4rem;
}
.integrations__icon-tile--md {
    width: 3rem;
    height: 3rem;
}

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

/* Hover effects moved out of the sem directive (custom classes, framework-independent) */
.integrations-v12__fx-featured .integrations__icon-tile,
.integrations-v12__fx-plain .integrations__icon-tile { transition: transform 0.3s ease; }
.integrations-v12__fx-featured:hover .integrations__icon-tile { transform: scale(1.1); }
.integrations-v12__fx-plain:hover .integrations__icon-tile { transform: rotate(6deg); }
@media (prefers-reduced-motion: reduce) {
    .integrations-v12__fx-featured:hover .integrations__icon-tile,
    .integrations-v12__fx-plain:hover .integrations__icon-tile { transform: none; }
}

