/* ========================================
   INTEGRATION DETAIL PAGE STYLES
   ======================================== */

/* ── Hero ────────────────────────────────── */

.detail-hero {
    background: var(--ls-gradient-hero);
    padding: 8rem 0 3rem;
}

.detail-hero__container {
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.detail-hero__icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background: var(--ls-white);
    padding: 0.75rem;
    object-fit: contain;
    flex-shrink: 0;
}

.detail-hero__text {
    flex: 1;
}

.detail-hero__breadcrumb {
    font-size: 0.875rem;
    color: var(--ls-gray-400);
    margin-bottom: 0.5rem;
}

.detail-hero__breadcrumb a {
    color: var(--ls-gray-400);
    text-decoration: none;
    transition: color 0.15s;
}

.detail-hero__breadcrumb a:hover {
    color: var(--ls-white);
}

.detail-hero__title {
    font-family: var(--ls-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--ls-weight-bold);
    color: var(--ls-white);
    margin-bottom: 0.5rem;
}

.detail-hero__desc {
    font-size: 1.125rem;
    color: var(--ls-gray-300);
    line-height: 1.6;
    max-width: 640px;
}

.detail-hero__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
}

.detail-hero__badge--email-marketing { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
.detail-hero__badge--crm { background: rgba(22, 163, 74, 0.2); color: #86efac; }
.detail-hero__badge--communication { background: rgba(202, 138, 4, 0.2); color: #fde047; }
.detail-hero__badge--sms { background: rgba(219, 39, 119, 0.2); color: #f9a8d4; }
.detail-hero__badge--spreadsheets { background: rgba(5, 150, 105, 0.2); color: #6ee7b7; }
.detail-hero__badge--field-service { background: rgba(234, 88, 12, 0.2); color: #fdba74; }
.detail-hero__badge--webhook-api { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
.detail-hero__badge--automotive { background: rgba(234, 88, 12, 0.2); color: #fdba74; }

/* ── Features ────────────────────────────── */

.detail-features {
    background: var(--ls-white);
    padding: 2rem 0;
}

.detail-features__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.detail-features__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem 2rem;
}

.detail-features__item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--ls-gray-600);
    line-height: 1.4;
}

.detail-features__check {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

@media (max-width: 640px) {
    .detail-features__list {
        grid-template-columns: 1fr;
    }
}

/* ── Source Combinations ──────────────────── */

.detail-sources {
    background: var(--ls-gray-50);
    padding: 3rem 0 4rem;
}

.detail-sources__container {
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.detail-sources__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ls-gray-900);
    margin-bottom: 0.5rem;
    text-align: center;
}

.detail-sources__subtitle {
    font-size: 1rem;
    color: var(--ls-gray-600);
    text-align: center;
    margin-bottom: 2rem;
}

.detail-sources__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ── Source Card ──────────────────────────── */

.source-card {
    background: var(--ls-white);
    border: 1px solid var(--ls-gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.source-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.source-card__flow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.source-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.source-card__arrow {
    color: var(--ls-gray-400);
    flex-shrink: 0;
}

.source-card__dest-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    object-fit: contain;
    flex-shrink: 0;
}

.source-card__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ls-gray-900);
    margin-bottom: 0.25rem;
}

.source-card__sublabel {
    font-size: 0.8125rem;
    color: var(--ls-gray-500);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.source-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ls-accent);
}

.source-card:hover .source-card__cta {
    text-decoration: underline;
}

/* ── Source Section CTA ─────────────────── */

.detail-sources__cta {
    text-align: center;
    margin-bottom: 2rem;
}

.detail-sources__cta-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ls-white);
    background: var(--ls-accent);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.detail-sources__cta-btn:hover {
    background: var(--ls-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.detail-sources__cta-btn:visited,
.detail-sources__cta-btn:active,
.detail-sources__cta-btn:focus {
    color: var(--ls-white);
}

.detail-sources__cta-note {
    display: block;
    font-size: 0.8125rem;
    color: var(--ls-gray-500);
    margin-top: 0.75rem;
}

/* ── Social Proof Bar ────────────────────── */

.detail-proof {
    background: var(--ls-white);
    border-top: 1px solid var(--ls-gray-200);
    border-bottom: 1px solid var(--ls-gray-200);
    padding: 1.25rem 0;
}

.detail-proof__container {
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.detail-proof__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.detail-proof__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 2.5rem;
    gap: 0.125rem;
}

.detail-proof__value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ls-gray-900);
    line-height: 1.2;
    margin: 0;
}

.detail-proof__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ls-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.detail-proof__divider {
    width: 1px;
    height: 2rem;
    background: var(--ls-gray-200);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .detail-proof__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .detail-proof__divider {
        display: none;
    }

    .detail-proof__item {
        padding: 0.75rem 1rem;
    }
}

/* ── How It Works ────────────────────────── */

.detail-how {
    background: var(--ls-white);
    padding: 4rem 0;
}

.detail-how__container {
    max-width: var(--ls-container-xl);
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.detail-how__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ls-gray-900);
    margin-bottom: 2.5rem;
}

.detail-how__steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail-how__step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

.detail-how__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ls-accent);
    color: var(--ls-white);
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.detail-how__step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ls-gray-900);
    margin-bottom: 0.5rem;
}

.detail-how__step-desc {
    font-size: 0.875rem;
    color: var(--ls-gray-600);
    line-height: 1.5;
}

/* ── CTA ─────────────────────────────────── */

.detail-cta {
    background: var(--ls-gradient-hero);
    padding: 4rem 0;
    text-align: center;
}

.detail-cta__container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.detail-cta__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--ls-white);
    margin-bottom: 1rem;
}

.detail-cta__subtitle {
    font-size: 1.125rem;
    color: var(--ls-gray-300);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.detail-cta__btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ls-white);
    background: linear-gradient(135deg, var(--ls-accent) 0%, var(--ls-accent-hover) 100%);
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.detail-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
    color: var(--ls-white);
}

.detail-cta__btn:visited,
.detail-cta__btn:active,
.detail-cta__btn:focus {
    color: var(--ls-white);
}

.detail-cta__note {
    font-size: 0.875rem;
    color: var(--ls-gray-400);
    margin-top: 1rem;
}

/* ── Content Sections ────────────────────── */

.detail-content {
    background: var(--ls-white);
    padding: 3rem 0;
}

.detail-content__container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.detail-content__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ls-gray-900);
    margin-bottom: 1rem;
}

.detail-content__text {
    font-size: 1rem;
    color: var(--ls-gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.detail-content__text:last-child {
    margin-bottom: 0;
}

/* ── FAQ ─────────────────────────────────── */

.detail-faq {
    background: var(--ls-gray-50);
    padding: 4rem 0;
}

.detail-faq__container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.detail-faq__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ls-gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.detail-faq__item {
    border-bottom: 1px solid var(--ls-gray-200);
}

.detail-faq__item:first-child {
    border-top: 1px solid var(--ls-gray-200);
}

.detail-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ls-gray-900);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.detail-faq__question:hover {
    color: var(--ls-accent);
}

.detail-faq__chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.detail-faq__item.is-open .detail-faq__chevron {
    transform: rotate(180deg);
}

.detail-faq__answer {
    display: none;
    padding: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--ls-gray-600);
    line-height: 1.6;
}

.detail-faq__item.is-open .detail-faq__answer {
    display: block;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 640px) {
    .detail-hero__container {
        flex-direction: column;
        text-align: center;
    }

    .detail-hero__desc {
        margin: 0 auto;
    }

    .detail-sources__grid {
        grid-template-columns: 1fr;
    }

    .detail-how__steps {
        flex-direction: column;
        align-items: center;
    }
}
