/* Interactive demo embed — case study / solution detail pages */
.za-interactive-demo {
    margin: 3rem 0;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.04) 0%, rgba(59, 130, 246, 0.06) 100%);
    overflow: hidden;
    box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.25);
}

.za-interactive-demo__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.za-interactive-demo__eyebrow {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #3b82f6;
    margin-bottom: 0.35rem;
}

.za-interactive-demo__title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    color: var(--clr-heading, #0f172a);
}

.za-interactive-demo__lead {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--clr-text-muted, #64748b);
    max-width: 52ch;
}

.za-interactive-demo__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.za-interactive-demo__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: #fff;
    color: #1e40af;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.za-interactive-demo__btn:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: #3b82f6;
}

.za-interactive-demo__frame-wrap {
    position: relative;
    background: #0b1220;
    min-height: 420px;
}

.za-interactive-demo__frame {
    display: block;
    width: 100%;
    border: 0;
    min-height: 420px;
    background: #0b1220;
}

.za-interactive-demo__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    background: linear-gradient(160deg, #0b1220 0%, #111827 100%);
}

.za-interactive-demo__fallback[hidden] {
    display: none !important;
}

.za-interactive-demo__fallback code {
    font-size: 0.82rem;
    color: #93c5fd;
}

.za-interactive-demo__hint {
    padding: 0.75rem 1.75rem 1.25rem;
    font-size: 0.75rem;
    color: var(--clr-text-muted, #94a3b8);
}

@media (max-width: 768px) {
    .za-interactive-demo__head {
        padding: 1.25rem 1.25rem 0.85rem;
    }
    .za-interactive-demo__title {
        font-size: 1.15rem;
    }
}
