@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Nunito+Sans:wght@400;500&display=swap');

/* Arlekino pricing table — mint/teal vibe */

.ap-pricing {
    --arl-mint-50:  #f3fbf8;
    --arl-mint-100: #e8f7f1;
    --arl-mint-200: #dff3ec;
    --arl-text-900: #0f1f1e;
    --arl-text-600: #6b7b75;
    --arl-accent:   #2fc2a8;
    --arl-border:   rgba(70, 150, 130, 0.16);
    --arl-shadow:   0 16px 40px rgba(100, 180, 160, 0.16);
    --arl-cols:     minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px 8px;
    font-family: 'Inter', 'Nunito Sans', system-ui, -apple-system, sans-serif;
    color: var(--arl-text-900);
    box-sizing: border-box;
}

.ap-pricing *,
.ap-pricing *::before,
.ap-pricing *::after {
    box-sizing: border-box;
}

/* Force head + rows to share exact same outer box — no theme bleed */
.ap-pricing__head,
.ap-pricing__row {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.ap-pricing__rows {
    width: 100%;
}

/* Header — desktop only */
.ap-pricing__head {
    display: none;
    grid-template-columns: var(--arl-cols);
    gap: 10px;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(180deg, #f9fcff, var(--arl-mint-200));
    border: 1px solid var(--arl-border);
    border-radius: 18px;
    box-shadow: var(--arl-shadow);
    margin-bottom: 12px;
    margin-top: 0;
    font-family: 'Inter', 'Nunito Sans', sans-serif;
}

.ap-pricing__head > span {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--arl-text-600);
}

/* Rows list */
.ap-pricing .ap-pricing__rows {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ap-pricing .ap-pricing__row {
    list-style: none;
    margin: 0;
}

.ap-pricing .ap-pricing__row::marker,
.ap-pricing .ap-pricing__row::before {
    content: none;
}

/* Row — default (mobile + tablet): stacked card */
.ap-pricing__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    background: var(--arl-mint-100);
    border: 1px solid var(--arl-border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(100, 180, 160, 0.12);
}

.ap-pricing__row.is-alt {
    background: var(--arl-mint-50);
}

/* Cells */
.ap-cell {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    font-family: 'Inter', 'Nunito Sans', sans-serif;
}

.ap-cell--name {
    font-weight: 600;
}

.ap-price {
    font-weight: 600;
    white-space: nowrap;
}

/* Mobile + tablet: cells show their label inline */
@media (max-width: 1024px) {
    .ap-cell {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 12px;
    }
    .ap-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--arl-text-600);
        font-size: 14px;
        flex: 0 0 auto;
    }
    .ap-cell--name {
        font-size: 16px;
        padding-bottom: 8px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--arl-border);
        justify-content: flex-start;
    }
    .ap-cell--name::before {
        display: none;
    }
}

/* Desktop (matches Elementor's desktop breakpoint) */
@media (min-width: 1025px) {
    .ap-pricing__head {
        display: grid;
    }
    .ap-pricing__row {
        display: grid;
        grid-template-columns: var(--arl-cols);
        gap: 10px;
        align-items: center;
        padding: 14px 18px;
    }
    /* Program name stays left-aligned; every other column is centred */
    .ap-pricing__head > span:not(:first-child),
    .ap-pricing__row > .ap-cell:not(:first-child) {
        text-align: center;
    }
}
