/* Reusable before/after comparison slider (IDEA-005) */

.ba-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.ba-slider {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    cursor: col-resize;
    user-select: none;
    touch-action: none;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
}

.ba-slider:focus-visible {
    box-shadow: 0 0 0 3px rgba(14, 148, 110, 0.45), 0 32px 80px rgba(0, 0, 0, 0.5);
}

.ba-layer {
    position: absolute;
    inset: 0;
}

.ba-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ba-after {
    clip-path: inset(0 0 0 50%);
}

.ba-label {
    position: absolute;
    bottom: 16px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 2;
}

.ba-label--before {
    right: 16px;
    background: rgba(255, 80, 80, 0.85);
    color: #fff;
}

.ba-label--after {
    left: 16px;
    background: rgba(14, 148, 110, 0.9);
    color: #fff;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    margin-left: -22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: col-resize;
    z-index: 3;
}

.ba-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background: rgba(255, 255, 255, 0.85);
    pointer-events: none;
}

.ba-handle-knob {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    pointer-events: none;
}

.ba-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.ba-metric {
    text-align: center;
}

.ba-metric__label {
    font-size: 0.82rem;
    color: var(--t2, #9fb1ab);
    margin-bottom: 8px;
}

.ba-metric__compare {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.ba-metric__old {
    font-size: 1.4rem;
    font-weight: 800;
    color: rgba(255, 80, 80, 0.8);
    text-decoration: line-through;
}

.ba-metric__new {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pl, #5ef0c4);
}

.ba-metric__arrow {
    color: var(--t2, #9fb1ab);
    font-size: 1.2rem;
}

/* Landing showcase */
.ba-showcase {
    padding: 56px 5% 64px;
    background: var(--d2, #080f0d);
    border-top: 1px solid rgba(14, 148, 110, 0.1);
}

.ba-showcase__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.ba-showcase__head {
    text-align: center;
    margin-bottom: 32px;
}

.ba-showcase__head .sec-lbl,
.ba-showcase__head .ba-showcase__lbl {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #5ef0c4;
    margin-bottom: 10px;
}

.ba-showcase__head h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    color: var(--t1, #e6f2ee);
    margin-bottom: 10px;
}

.ba-showcase__head h2 span {
    color: #5ef0c4;
}

.ba-showcase__head p {
    color: var(--t2, #9fb1ab);
    font-size: 14px;
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 16px;
}

.ba-showcase__link {
    display: inline-flex;
    color: #5ef0c4;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ba-showcase__link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .ba-slider {
        border-radius: 14px;
    }

    .ba-handle-knob {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
