.cpit-grid {
    display: grid;
    gap: 24px;
    width: 100%;
}

.cpit-grid--1 { grid-template-columns: 1fr; }
.cpit-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cpit-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cpit-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cpit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 32px;
    border: 1px solid rgba(21, 35, 82, 0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20, 35, 85, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.cpit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(20, 35, 85, 0.11);
}

.cpit-service-icon {
    width: auto;
    height: auto;
    margin-bottom: 18px;
    color: #6577df;
    font-size: 42px;
}

.cpit-card-title {
    margin: 0 0 14px;
    color: #182558;
    font-size: 22px;
    line-height: 1.3;
}

.cpit-card-title a {
    color: inherit;
    text-decoration: none;
}

.cpit-card-text,
.cpit-plan-description {
    margin: 0 0 22px;
    color: #4e5875;
    font-size: 16px;
    line-height: 1.65;
}

.cpit-plan-description p { margin: 0; }

.cpit-text-link {
    margin-top: auto;
    color: #586bdd;
    font-weight: 700;
    text-decoration: none;
}

/* Hostinger-inspired pricing presentation, adapted to CPIT branding. */
.cpit-pricing-plans {
    align-items: stretch;
    gap: 28px;
}

.cpit-pricing-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid #d9dcf2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(24, 37, 88, 0.07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.cpit-pricing-card:hover {
    transform: translateY(-5px);
    border-color: #aeb7f1;
    box-shadow: 0 20px 48px rgba(24, 37, 88, 0.13);
}

.cpit-pricing-card.is-recommended {
    border: 2px solid #6577df;
    box-shadow: 0 20px 52px rgba(88, 107, 221, 0.18);
}

.cpit-popular-bar {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    min-height: 42px;
    padding: 11px 18px;
    background: #6577df;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
}

.cpit-pricing-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 34px 30px 32px;
}

.cpit-pricing-card.is-recommended .cpit-pricing-card__body {
    padding-top: 72px;
}

.cpit-discount-pill {
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e9ecff;
    color: #4456c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.cpit-pricing-title {
    margin: 0 0 10px;
    color: #182558;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.22;
}

.cpit-pricing-card .cpit-plan-description {
    min-height: 78px;
    margin-bottom: 20px;
}

.cpit-original-price {
    min-height: 24px;
    margin-bottom: 3px;
    color: #777f98;
    font-size: 15px;
}

.cpit-original-price span {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.cpit-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin: 2px 0 8px;
    color: #182558;
}

.cpit-currency {
    font-size: 22px;
    font-weight: 800;
}

.cpit-price-value {
    overflow-wrap: anywhere;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1;
}

.cpit-period {
    color: #616a85;
    font-size: 15px;
    font-weight: 600;
}

.cpit-term-text {
    min-height: 22px;
    margin: 0 0 5px;
    color: #303b66;
    font-size: 14px;
    font-weight: 700;
}

.cpit-price-note {
    min-height: 42px;
    margin: 0 0 20px;
    color: #747c94;
    font-size: 13px;
    line-height: 1.55;
}

.cpit-price-qualifier {
    margin: 0 0 8px;
    color: #0755a5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cpit-price-label {
    margin: 4px 0 18px;
    color: #182558;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.cpit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    padding: 13px 20px;
    border: 2px solid #6577df;
    border-radius: 8px;
    background: #6577df;
    color: #ffffff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.cpit-pricing-card:not(.is-recommended) .cpit-button {
    background: #ffffff;
    color: #5265d8;
}

.cpit-button:hover,
.cpit-button:focus {
    transform: translateY(-1px);
    background: #4e60ca;
    color: #ffffff;
}

.cpit-feature-divider {
    width: 100%;
    height: 1px;
    margin: 26px 0 22px;
    background: #e5e7f3;
}

.cpit-feature-title {
    margin: 0 0 15px;
    color: #182558;
    font-size: 16px;
    font-weight: 800;
}

.cpit-feature-list {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cpit-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #424c6b;
    font-size: 14px;
    line-height: 1.5;
}

.cpit-feature-list .dashicons {
    flex: 0 0 20px;
    margin-top: 1px;
    color: #38a169;
    font-size: 20px;
}

.cpit-empty {
    padding: 18px;
    border: 1px dashed #aeb6d2;
    background: #f7f8fd;
    color: #4e5875;
}

.cpit-pricing-empty {
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid #d9e3ed;
    background: #f3f7fb;
    text-align: center;
}
.cpit-pricing-empty h3 { margin: 0 0 12px; color: #071d36; }
.cpit-pricing-empty p { max-width: 650px; margin: 0 auto 22px; color: #4e5875; }
.cpit-pricing-empty .cpit-button { width: auto; min-width: 190px; }

@media (max-width: 1024px) {
    .cpit-grid--3,
    .cpit-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cpit-pricing-card .cpit-plan-description,
    .cpit-term-text,
    .cpit-price-note {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .cpit-grid--2,
    .cpit-grid--3,
    .cpit-grid--4 {
        grid-template-columns: 1fr;
    }

    .cpit-card {
        padding: 26px;
    }

    .cpit-pricing-card__body {
        padding: 30px 24px 28px;
    }

    .cpit-pricing-card.is-recommended .cpit-pricing-card__body {
        padding-top: 68px;
    }
}
