.tab-active {
    border-bottom: 3px solid #6366f1;
    color: #6366f1 !important;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 120px;
}

#alternatives {
    scroll-margin-top: 120px;
}

/* Tab navigation - hide scrollbar but keep functionality */
.tab-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

/* Description content styling */
.description-content p {
    margin-bottom: 1rem;
}

.description-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.description-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.description-content ul {
    list-style-type: disc;
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

.description-content strong {
    font-weight: 600;
    color: #1e293b;
}

@media (min-width: 768px) {
    section[id] {
        scroll-margin-top: 140px;
    }

    #alternatives {
        scroll-margin-top: 140px;
    }

    .description-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .description-content h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .description-content ul {
        margin-left: 1.5rem;
    }
}

/* Mobile pricing card slide-up animation */
@media (max-width: 1023px) {
    .pricing-card-mobile {
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Summary content styling for inline links/tags */
.summary-content a {
    color: #6366f1;
    text-decoration: none;
}

.summary-content a:hover {
    text-decoration: underline;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 0.75rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Product CTA Buttons */
.product-cta-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.product-cta-btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

.product-cta-btn.demo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
}

.product-cta-btn.demo:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.product-cta-btn.pricing {
    background: white;
    color: #6366f1;
    border: 1.5px solid #6366f1;
}

.product-cta-btn.pricing:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-1px);
}

@media (min-width: 640px) {
    .product-cta-btn {
        padding: 0.5rem 1.125rem;
        font-size: 0.875rem;
    }

    .product-cta-btn svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Inline Lead Form (sidebar widget inside product-profile) */
.inline-lead-form input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.inline-lead-form input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.inline-lead-form input::placeholder {
    color: #9ca3af;
}

.inline-lead-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 400px) {
    .inline-lead-form .form-row {
        grid-template-columns: 1fr;
    }
}

.inline-lead-form .submit-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.inline-lead-form .submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.inline-lead-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.inline-lead-form .submit-btn.loading {
    position: relative;
    color: transparent;
}

.inline-lead-form .submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 50%;
    left: 50%;
    margin-left: -0.625rem;
    margin-top: -0.625rem;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.inline-lead-form .success-message {
    text-align: center;
    padding: 1.5rem;
}

.inline-lead-form .success-message .icon {
    width: 3rem;
    height: 3rem;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.inline-lead-form .success-message .icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}