/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.nav-scrolled {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.03);
    border-bottom-color: transparent;
}

/* Healthtech gradient backgrounds */
.gradient-hero {
    background: linear-gradient(135deg, #ECFDF5 0%, #F0FDFA 40%, #F8FAFC 100%);
}
.gradient-section {
    background: linear-gradient(180deg, #ECFDF5 0%, #FFFFFF 100%);
}
.gradient-cta {
    background: linear-gradient(135deg, #047857 0%, #0D9488 50%, #0E7490 100%);
}
.gradient-stats {
    background: linear-gradient(135deg, #ECFDF5 0%, #F0FDFA 50%, #F0FDF4 100%);
}

/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Feature card hover */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Trust badge pulse */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* WhatsApp Phone Mock — refined */
.whatsapp-phone {
    width: 320px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    border: 6px solid #1C1C1E;
    background: #1C1C1E;
}
.whatsapp-phone-sm {
    width: 300px;
}

.whatsapp-header {
    background: linear-gradient(135deg, #075E54, #128C7E);
    padding: 14px 16px;
}

.whatsapp-body {
    background: #ECE5DD;
    padding: 12px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.whatsapp-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    position: relative;
    word-wrap: break-word;
}

.whatsapp-bubble.bot {
    background: #FFFFFF;
    color: #303030;
    align-self: flex-start;
    border-top-left-radius: 2px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.whatsapp-bubble.user {
    background: #DCF8C6;
    color: #303030;
    align-self: flex-end;
    border-top-right-radius: 2px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.whatsapp-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

/* FAQ Accordion */
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
    transform: rotate(180deg);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-content {
    max-height: 500px;
}

/* Focus styles for accessibility — teal */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Pricing card highlight glow */
.pricing-highlight {
    box-shadow: 0 0 0 2px #059669, 0 8px 30px rgba(5, 150, 105, 0.12);
}

/* Stat counter */
.stat-number {
    background: linear-gradient(135deg, #047857, #0D9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .whatsapp-phone {
        width: 280px;
    }
    .whatsapp-phone-sm {
        width: 260px;
    }
    .whatsapp-bubble {
        font-size: 12px;
    }
}
