/* Integration landing pages under /integrations/<slug>/ built from frontend/home/integrations/integration_page/ */
/* Also styles the new cards on the /integrations/ hub (cm-intg-hub-card) */

/* Hero */
.cm-intg-hero-badge
{
    display: flex;
    justify-content: center;
}
.cm-intg-hero-cta
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.cm-intg-hero-points
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}
.cm-intg-hero-points li
{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}
@media (min-width: 992px)
{
    .cm-intg-hero-badge,
    .cm-intg-hero-cta
    {
        justify-content: flex-start;
    }
}
@media (max-width: 575px)
{
    .cm-intg-hero-points
    {
        grid-template-columns: 1fr;
    }
}

/* Hero visual: the two logos joined, then the builder block with its actions */
.cm-intg-visual
{
    max-width: 440px;
    margin: 24px auto 0;
}
.cm-intg-pair
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.cm-intg-logo-tile
{
    width: 92px;
    height: 92px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cm-intg-logo-tile img
{
    width: 48px;
    height: 48px;
    object-fit: contain; /* CDN integration logos are 40x40, keep them near native size */
}
.cm-intg-link
{
    position: relative;
    width: 96px;
    height: 4px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 10px, transparent 10px 18px);
}
.cm-intg-link-dot
{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.25);
}
.cm-intg-block
{
    margin-top: 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}
.cm-intg-block-head
{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #eef1f6;
    background: #f8fafc;
}
.cm-intg-block-head img
{
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.cm-intg-block-title
{
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}
.cm-intg-block-tag
{
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    background: #e6f0ff;
    border-radius: 999px;
    padding: 2px 10px;
}
.cm-intg-block-body
{
    padding: 14px 16px 16px;
}
.cm-intg-block-label
{
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}
.cm-intg-chips
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cm-intg-chip
{
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 9px;
}

/* Use-case cards */
.cm-intg-usecase
{
    height: 100%;
    background: #ffffff;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    padding: 26px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cm-intg-usecase:hover
{
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.cm-intg-usecase-icon
{
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.cm-intg-icon-teal
{
    background: #e3f8f2;
    color: #00796b;
}
.cm-intg-icon-blue
{
    background: #e6f0ff;
    color: #2563eb;
}
.cm-intg-icon-amber
{
    background: #fff4dd;
    color: #b7791f;
}
.cm-intg-icon-violet
{
    background: #f3eefe;
    color: #7c3aed;
}
.cm-intg-icon-rose
{
    background: #ffe9ec;
    color: #e11d48;
}
.cm-intg-icon-green
{
    background: #e7f9ef;
    color: #16a34a;
}
.cm-intg-usecase h3
{
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.cm-intg-usecase p
{
    margin-bottom: 0;
    line-height: 1.75;
    color: #475569;
}

/* Actions table (action -> what it does) */
.cm-intg-actions
{
    background: #ffffff;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    overflow: hidden;
}
.cm-intg-action-row
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.6fr);
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #eef1f6;
}
.cm-intg-action-row:last-child
{
    border-bottom: 0;
}
.cm-intg-action-name
{
    font-weight: 700;
    color: #0f172a;
}
.cm-intg-action-arrow
{
    color: #22c55e;
    text-align: center;
}
.cm-intg-action-desc
{
    color: #475569;
    line-height: 1.6;
}
@media (max-width: 575px)
{
    .cm-intg-action-row
    {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .cm-intg-action-arrow
    {
        display: none;
    }
}

/* Check list */
.cm-intg-checks
{
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}
.cm-intg-checks li
{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
    line-height: 1.7;
}
.cm-intg-checks li i
{
    color: #16a34a;
    margin-top: 5px;
    flex-shrink: 0;
}

/* Steps */
.cm-intg-step
{
    height: 100%;
    background: #ffffff;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    padding: 26px 24px;
}
.cm-intg-step-number
{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #004956;
    color: #baf3e6;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.cm-intg-step h3
{
    font-size: 1.05rem;
    font-weight: 700;
}
.cm-intg-step p
{
    margin-bottom: 0;
    color: #475569;
    line-height: 1.75;
}

/* Learn more (video tutorial / docs) */
.cm-intg-learn
{
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    padding: 22px 24px;
    color: #0f172a;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cm-intg-learn:hover
{
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}
.cm-intg-learn-icon
{
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.cm-intg-learn-title
{
    font-weight: 700;
    margin-bottom: 2px;
}
.cm-intg-learn-desc
{
    color: #475569;
    font-size: 14px;
}

/* Related integrations */
.cm-intg-related
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.cm-intg-related-item
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    padding: 10px 16px;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}
.cm-intg-related-item:hover
{
    border-color: #3b7ddd;
    color: #3b7ddd;
}
.cm-intg-related-item img
{
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* FAQ (accordion markup from the shared landing pattern) */
.cm-intg-faq-toggle
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* /integrations/ hub cards added with these pages (no inline hover handlers) */
.cm-intg-hub-card
{
    transition: transform 0.2s ease;
}
.card.cm-intg-hub-card:hover
{
    transform: translateY(-10px);
}