/* AEM Labs → Landing → Voice Demo CSS
   =================================== */

.call-demo {
    position: relative;
}

.voice-signal {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    gap: 5px;
    height: 36px;
    padding-bottom: 2px; 
}

.voice-signal span {
    width: 4px;
    height: 100%;
    min-height: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-color-1) 0%, var(--accent-color-2) 100%);
    box-shadow: 0 0 12px rgba(var(--accent-color-1-rgb), 0.35);
    transform-origin: bottom center;
    transform: scaleY(0.2);
    animation-timing-function: cubic-bezier(0.45, 0.02, 0.2, 1);
    animation-iteration-count: infinite;
    will-change: transform;
}

.voice-signal span:nth-child(1) {
    animation-name: call-demo-voice-a;
    animation-duration: 2.88s;
    animation-delay: -0.2s;
}

.voice-signal span:nth-child(2) {
    animation-name: call-demo-voice-b;
    animation-duration: 2.44s;
    animation-delay: -1.24s;
}

.voice-signal span:nth-child(3) {
    animation-name: call-demo-voice-c;
    animation-duration: 3.36s;
    animation-delay: -0.48s;
}

.voice-signal span:nth-child(4) {
    animation-name: call-demo-voice-d;
    animation-duration: 2.72s;
    animation-delay: -1.92s;
}

.voice-signal span:nth-child(5) {
    animation-name: call-demo-voice-b;
    animation-duration: 3.04s;
    animation-delay: -0.88s;
}

.voice-signal span:nth-child(6) {
    animation-name: call-demo-voice-a;
    animation-duration: 2.2s;
    animation-delay: -1.56s;
}

.voice-signal span:nth-child(7) {
    animation-name: call-demo-voice-d;
    animation-duration: 3.16s;
    animation-delay: -0.28s;
}

.voice-signal span:nth-child(8) {
    animation-name: call-demo-voice-c;
    animation-duration: 2.52s;
    animation-delay: -2.08s;
}

.voice-signal span:nth-child(9) {
    animation-name: call-demo-voice-a;
    animation-duration: 3.24s;
    animation-delay: -0.72s;
}

.voice-signal span:nth-child(10) {
    animation-name: call-demo-voice-c;
    animation-duration: 2.64s;
    animation-delay: -1.64s;
}

.voice-signal span:nth-child(11) {
    animation-name: call-demo-voice-b;
    animation-duration: 2.96s;
    animation-delay: -1.12s;
}

.voice-signal span:nth-child(12) {
    animation-name: call-demo-voice-d;
    animation-duration: 2.32s;
    animation-delay: -0.6s;
}

@keyframes call-demo-voice-a {

    0%,
    100% {
        transform: scaleY(0.08);
        opacity: 0.45;
    }

    18% {
        transform: scaleY(0.42);
        opacity: 0.72;
    }

    34% {
        transform: scaleY(0.88);
        opacity: 1;
    }

    52% {
        transform: scaleY(0.26);
        opacity: 0.58;
    }

    71% {
        transform: scaleY(0.64);
        opacity: 0.86;
    }

    88% {
        transform: scaleY(0.14);
        opacity: 0.52;
    }
}

@keyframes call-demo-voice-b {

    0%,
    100% {
        transform: scaleY(0.12);
        opacity: 0.5;
    }

    12% {
        transform: scaleY(0.55);
        opacity: 0.78;
    }

    28% {
        transform: scaleY(0.22);
        opacity: 0.55;
    }

    46% {
        transform: scaleY(0.95);
        opacity: 1;
    }

    61% {
        transform: scaleY(0.34);
        opacity: 0.62;
    }

    78% {
        transform: scaleY(0.7);
        opacity: 0.88;
    }

    92% {
        transform: scaleY(0.18);
        opacity: 0.48;
    }
}

@keyframes call-demo-voice-c {

    0%,
    100% {
        transform: scaleY(0.1);
        opacity: 0.48;
    }

    15% {
        transform: scaleY(0.32);
        opacity: 0.65;
    }

    32% {
        transform: scaleY(0.18);
        opacity: 0.52;
    }

    44% {
        transform: scaleY(0.82);
        opacity: 0.95;
    }

    58% {
        transform: scaleY(0.28);
        opacity: 0.6;
    }

    74% {
        transform: scaleY(0.58);
        opacity: 0.8;
    }

    90% {
        transform: scaleY(0.15);
        opacity: 0.5;
    }
}

@keyframes call-demo-voice-d {

    0%,
    100% {
        transform: scaleY(0.06);
        opacity: 0.42;
    }

    10% {
        transform: scaleY(0.28);
        opacity: 0.58;
    }

    24% {
        transform: scaleY(0.76);
        opacity: 0.92;
    }

    38% {
        transform: scaleY(0.2);
        opacity: 0.54;
    }

    51% {
        transform: scaleY(0.48);
        opacity: 0.74;
    }

    66% {
        transform: scaleY(1);
        opacity: 1;
    }

    81% {
        transform: scaleY(0.3);
        opacity: 0.6;
    }

    94% {
        transform: scaleY(0.12);
        opacity: 0.46;
    }
}

@media (prefers-reduced-motion: reduce) {
    .voice-signal span {
        animation: none;
        transform: scaleY(0.5);
        opacity: 0.85;
    }
}


/* Tabs */
.toggle-tabs {
    display: flex;
    justify-content: center;
    width: fit-content;
    gap: 8px;
    margin: 20px 0 16px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-tabs button,
.tab-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-tabs button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.tab-panel button:hover {
    filter: brightness(1.2);
}

.toggle-tabs button[aria-selected="true"],
.tab-panel button {
    color: var(--bg-color-2);
    background: linear-gradient(180deg, var(--accent-color-1), var(--accent-color-2));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.toggle-tabs button:focus-visible {
    outline: 2px solid var(--accent-color-1);
    outline-offset: 2px;
}

.tab-panel {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
}

.tab-panel > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-panel p {
    margin-bottom: 12px !important;
    font-size: 14px;
    font-weight: 500;
    color: #ddd;
}

.tab-panel h3 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
}

.tab-panel h3 a {
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid rgba(var(--accent-color-1-rgb), 0.5);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-panel h3 a:hover {
    color: var(--accent-color-1);
    border-color: var(--accent-color-1);
}


