/* ════════════════════════════════════════════
   Compatibility — checkmark-first trust block
   Gradient checkmark badges + device/OS icons in
   V2-family cards (or a compact list). Optional
   muted "not supported" state. Full-width, no
   images, no schema.
   Depends on scw-base (tokens + .scw-section).
   ════════════════════════════════════════════ */

.scw-cp {
    background: var(--scw-cp-bg, #FFFFFF);
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scw-cp *,
.scw-cp *::before,
.scw-cp *::after {
    box-sizing: border-box;
}

.scw-cp--left {
    text-align: left;
}

/* Screen-reader-only supported/unsupported suffix */
.scw-cp__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Header ── */
.scw-cp__header {
    margin-bottom: 40px;
}

.scw-cp__heading {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--scw-cp-heading, #0F0F0F);
    margin: 0 0 12px;
}

.scw-cp__subtitle {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: #000000;
    margin: 0;
}

/* ── Grid (cards layout) ── */
.scw-cp__grid {
    display: grid;
    grid-template-columns: repeat(var(--scw-cp-cols, 3), minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* ── Item ── */
.scw-cp__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: var(--scw-cp-card-bg, #F7F7F9);
    border: 1px solid var(--scw-cp-border, #EAEAF0);
    border-radius: 20px;
    transition: transform 0.25s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.scw-cp__item:hover {
    transform: translateY(-3px);
}

/* ── Checkmark badge — the star of the show ── */
.scw-cp__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--scw-cp-a1, #A855F7) 0%, var(--scw-cp-a2, #EC4899) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(15, 15, 15, 0.14);
}

.scw-cp__check svg {
    width: 16px;
    height: 16px;
}

/* ── Device icon — quiet, secondary to the check ── */
.scw-cp__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    background: #FFFFFF;
    border: 1px solid var(--scw-cp-border, #EAEAF0);
    color: var(--scw-cp-heading, #0F0F0F);
}

.scw-cp__icon svg {
    width: 20px;
    height: 20px;
}

/* ── Text ── */
.scw-cp__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.scw-cp__label {
    position: relative;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--scw-cp-heading, #0F0F0F);
}

.scw-cp__note {
    font-size: 13px;
    line-height: 1.45;
    color: var(--scw-cp-text, #52525B);
    margin-top: 2px;
}

/* ── Unsupported state — muted, gray cross ── */
.scw-cp__item.is-unsupported {
    opacity: 0.6;
}

.scw-cp__item.is-unsupported .scw-cp__check {
    background: #D4D4DB;
    box-shadow: none;
}

.scw-cp__item.is-unsupported .scw-cp__label {
    text-decoration: line-through;
    text-decoration-color: rgba(15, 15, 15, 0.35);
}

/* ── Body text under the grid ── */
.scw-cp__body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--scw-cp-text, #52525B);
    margin: 32px 0 0;
}

.scw-cp__body p {
    margin: 0 0 16px;
}

.scw-cp__body p:last-child {
    margin-bottom: 0;
}

.scw-cp__body a {
    color: var(--scw-cp-a2, #EC4899);
    text-decoration: none;
}

.scw-cp__body a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════════
   Compact list layout — checkmark rows, no cards
   ════════════════════════════════════════════ */
.scw-cp--list .scw-cp__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
}

.scw-cp--list.scw-cp--left .scw-cp__grid {
    justify-content: flex-start;
}

.scw-cp--list .scw-cp__item {
    padding: 8px 4px;
    background: transparent;
    border: none;
    border-radius: 0;
    gap: 12px;
}

.scw-cp--list .scw-cp__item:hover {
    transform: none;
}

.scw-cp--list .scw-cp__check {
    width: 26px;
    height: 26px;
}

.scw-cp--list .scw-cp__check svg {
    width: 13px;
    height: 13px;
}

.scw-cp--list .scw-cp__icon {
    display: none;
}

.scw-cp--list .scw-cp__label {
    font-size: 15px;
}

.scw-cp--list .scw-cp__note {
    display: none;
}

/* ════════════════════════════════════════════
   Responsive — Tablet (≤ 1023px)
   ════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .scw-cp__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scw-cp__heading {
        font-size: clamp(24px, 3vw, 32px);
    }

    .scw-cp__header {
        margin-bottom: 32px;
    }
}

/* ════════════════════════════════════════════
   Responsive — Mobile (≤ 640px)
   ════════════════════════════════════════════ */
@media (max-width: 640px) {
    .scw-cp__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .scw-cp__item {
        padding: 16px 18px;
        gap: 12px;
        border-radius: 16px;
    }

    .scw-cp__check {
        width: 28px;
        height: 28px;
    }

    .scw-cp__check svg {
        width: 14px;
        height: 14px;
    }

    .scw-cp__icon {
        width: 36px;
        height: 36px;
    }

    .scw-cp__label { font-size: 15px; }

    .scw-cp__subtitle { font-size: 15px; }

    .scw-cp--list .scw-cp__grid {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .scw-cp--list.scw-cp--left .scw-cp__grid {
        align-items: flex-start;
    }
}

/* ── Elementor Editor Overrides ── */
.elementor-editor-active .scw-cp {
    min-height: 100px;
}
