/* Why Teams Love — SolutionsContent.tsx WhyTeamsLove */

/* -------------------------------------------------------------------------
   Section & rails
------------------------------------------------------------------------- */

.wtl {
    position: relative;
    padding: 48px 24px 64px;
    background: var(--color-brand-light);
    overflow: clip;
}

.wtl-rails {
    display: none;
}

.wtl-rails-inner {
    position: relative;
    height: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.wtl-rail {
    position: absolute;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--border-grid);
}

.wtl-rail--start {
    left: 0;
}

.wtl-rail--end {
    right: 0;
}

.wtl-inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------------
   Header
------------------------------------------------------------------------- */

.wtl-header {
    margin-bottom: 40px;
    text-align: left;
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.wtl-header.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.wtl-header h2 {
    margin: 0 0 20px;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.wtl-header > p {
    margin: 0;
    font-size: 15px;
    line-height: 1.625;
    color: var(--color-accent);
    max-width: 560px;
}

/* -------------------------------------------------------------------------
   Matrix & grid
------------------------------------------------------------------------- */

.wtl-matrix {
    position: relative;
}

.wtl-matrix-lines {
    display: none;
}

.wtl-line {
    position: absolute;
    left: 50%;
    width: 100vw;
    height: 1px;
    background: var(--border-grid);
    transform: translateX(-50%);
}

.wtl-line--top {
    top: 0;
}

.wtl-line--mid {
    top: 50%;
}

.wtl-line--bottom {
    bottom: 0;
}

.wtl-line--vert {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    transform: translateX(-50%);
}

.wtl-corner {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 8px;
    height: 8px;
    box-sizing: border-box;
    border: 1px solid var(--border-grid);
    background: var(--color-brand-light);
    transform: translate(-50%, -50%);
    z-index: 2;
}

.wtl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------------
   Cards
------------------------------------------------------------------------- */

.wtl-card {
    margin: 0;
    padding: 20px 28px;
    background: var(--card);
    border-radius: 12px;
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.2s ease;
    transition-delay: calc(var(--i) * 85ms);
}

.wtl-grid.is-revealed .wtl-card {
    opacity: 1;
    transform: translateY(0);
}

.wtl-iconbox {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--color-brand-light);
    color: var(--color-brand);
    transition: background-color 0.2s ease;
    svg {
        stroke: #4a7732;
        stroke-width: 1.5px;
        width: 18px;
        height: 18px;
    }
}

.wtl-iconbox img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.wtl-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

.wtl-card > p {
    margin: 0;
    font-size: 13px;
    line-height: 1.625;
    color: var(--color-accent);
}

/* -------------------------------------------------------------------------
   Responsive
------------------------------------------------------------------------- */

@media (min-width: 768px) {
    .wtl {
        padding: 80px 24px 120px;
    }

    .wtl-rails {
        display: block;
        position: absolute;
        inset: 0;
        pointer-events: none;
        overflow: hidden;
        z-index: 0;
    }

    .wtl-header {
        margin-bottom: 80px;
        text-align: center;
    }

    .wtl-header > p {
        margin-left: auto;
        margin-right: auto;
    }

    .wtl-matrix-lines {
        display: block;
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
    }

    .wtl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .wtl-card {
        border-radius: 0;
        background: transparent;
        padding: 28px;
    }

    .wtl-card:hover {
        background: var(--card);
    }

    .wtl-iconbox {
        background: var(--card);
    }

    .wtl-card:hover .wtl-iconbox {
        background: var(--color-brand-light);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wtl-header,
    .wtl-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
