/* ==========================================================================
   ChatGenius Feature Pages — Shared Styles
   Used by: chatgenius-comment-auto-dm, chatgenius-booking, chatgenius-knowledge-base,
            chatgenius-content-studio, chatgenius-ai-followups, chatgenius-multilingual,
            chatgenius-sentiment-analysis, chatgenius-market-intel, chatgenius-webhook-api,
            chatgenius-lead-capture
   ========================================================================== */

/* Feature pages use 6 footer columns (adds Features column) */
.footer-content {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
}

/* Hero */
.service-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0 4rem;
    position: relative;
    z-index: 1;
}

.service-hero h1 {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.service-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin-bottom: 2rem;
}

.meta-badge img {
    height: 28px;
    filter: brightness(0) invert(1);
}

.meta-badge span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    justify-content: center;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb .sep {
    color: rgba(255, 255, 255, 0.3);
}

/* CTA Group */
.cta-group {
    margin-top: 2rem;
}

.btn-large {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-large:hover {
    background: #fff;
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 2.5rem !important;
    padding-top: 0.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Section Styles */
.content-section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Satoshi', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Trust Bar */
.trust-bar {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 10;
    background: transparent;
}

.trust-bar-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 2rem;
}

.trust-bar-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.trust-bar-logos img {
    height: 36px;
    width: auto;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.trust-bar-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.trust-bar-logos .logo-meta { height: 40px; }
.trust-bar-logos .logo-openai { height: 32px; filter: brightness(0) invert(1); }
.trust-bar-logos .logo-stripe { height: 40px; }
.trust-bar-logos .logo-twilio { height: 38px; }
.trust-bar-logos .logo-pusher { height: 36px; filter: brightness(0) invert(1); }
.trust-bar-logos .logo-gcal { height: 38px; }

/* How It Works Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    counter-reset: step;
}

.step-card {
    text-align: center;
    position: relative;
    counter-increment: step;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: 'Satoshi', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
}

.step-card h3 {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.use-case-card {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.2s ease;
}

.use-case-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.use-case-card .industry-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.use-case-card h3 {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.use-case-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Tier Availability Table */
.tier-table {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.tier-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
    font-size: 0.9rem;
}

.tier-row:last-child {
    border-bottom: none;
}

.tier-row.header {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.tier-row .check { color: #4ade80; }
.tier-row .cross { color: rgba(255, 255, 255, 0.25); }
.tier-row .limit { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

/* Related Features */
.related-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.related-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.related-link .arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.faq-section h2 {
    font-family: 'Satoshi', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 1.25rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.faq-question:hover {
    color: #fff;
}

.faq-icon {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Bottom CTA */
.bottom-cta {
    padding: 5rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.bottom-cta h2 {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.bottom-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.sticky-mobile-cta.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-mobile-cta a {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #fff;
    color: #000;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
}

/* Hero animations */
.service-hero .breadcrumb,
.service-hero .meta-badge,
.service-hero h1,
.service-hero > .container > p,
.service-hero .cta-group {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease-out forwards;
}
.service-hero .breadcrumb { animation-delay: 0.05s; }
.service-hero .meta-badge { animation-delay: 0.1s; }
.service-hero h1 { animation-delay: 0.2s; }
.service-hero > .container > p { animation-delay: 0.3s; }
.service-hero .cta-group { animation-delay: 0.4s; }

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

/* AOS pointer fix */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .service-hero {
        min-height: 75vh;
        padding: 6rem 0 2rem;
    }

    .service-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .service-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .meta-badge {
        padding: 8px 14px;
        gap: 8px;
        margin-bottom: 1.5rem;
    }

    .meta-badge img { height: 22px; }
    .meta-badge span { font-size: 0.8rem; }

    .breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        display: block;
    }

    .cta-note {
        margin-top: 1.5rem !important;
        font-size: 0.8rem;
    }

    .trust-bar { padding: 2.5rem 0; }
    .trust-bar-logos { gap: 2rem; }
    .trust-bar-logos img { height: 28px; }
    .trust-bar-logos .logo-stripe { height: 32px; }

    .content-section { padding: 3rem 0; }
    .section-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .feature-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .feature-icon { width: 40px; height: 40px; margin-bottom: 0.75rem; }
    .feature-icon svg { width: 26px; height: 26px; }
    .feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .feature-card p { font-size: 0.875rem; line-height: 1.5; }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .use-case-card { padding: 1.25rem; }

    .tier-table { border-radius: 12px; }
    .tier-row {
        font-size: 0.75rem;
        padding: 0.6rem 0.75rem;
    }

    .related-features {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-section { padding: 3rem 0; }
    .faq-section h2 { font-size: 1.5rem; margin-bottom: 2rem; }
    .faq-question { font-size: 0.95rem; padding: 1rem 0; }

    .bottom-cta { padding: 3rem 0; }
    .bottom-cta h2 { font-size: 1.5rem; }
    .bottom-cta p { font-size: 0.95rem; }

    .sticky-mobile-cta { display: block; }
    body { padding-bottom: 80px; }

    /* Disable AOS on mobile */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
    }

    .content-section,
    .faq-section,
    .feature-card,
    .step-card,
    .use-case-card,
    .section-title,
    .section-subtitle {
        opacity: 1 !important;
        visibility: visible !important;
    }
}
