.vg-plans__tabs {
    margin-bottom: 32px;
}

.vg-plans__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

@media (min-width: 640px) {
    .vg-plans__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vg-plans__grid--1 {
        grid-template-columns: minmax(0, 420px);
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .vg-plans__grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vg-plans__grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.vg-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px 24px;
    background: var(--vg-surface);
    border: 1px solid var(--vg-border);
    border-top: 4px solid var(--vg-border-strong);
    border-radius: var(--vg-radius-lg);
    box-shadow: var(--vg-shadow-sm);
    transition: transform .25s var(--vg-ease), box-shadow .25s var(--vg-ease);
}

.vg-plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--vg-shadow);
    border-color: var(--vg-border-strong);
}

.vg-plan.is-featured,
.vg-plan.pw-plan--featured {
    border-color: var(--vg-primary-line);
    border-top: 4px solid var(--vg-primary);
    background: linear-gradient(180deg, color-mix(in srgb, var(--vg-primary) 6%, #fff) 0%, var(--vg-surface) 220px);
    box-shadow: var(--vg-shadow);
}

@media (min-width: 992px) {
    .vg-plans__grid--3 .vg-plan.is-featured,
    .vg-plans__grid--4 .vg-plan.is-featured {
        transform: scale(1.03);
    }

    .vg-plans__grid--3 .vg-plan.is-featured:hover,
    .vg-plans__grid--4 .vg-plan.is-featured:hover {
        transform: scale(1.03) translateY(-4px);
    }
}

html[data-theme="dark"] .vg-plan.is-featured,
html[data-theme="dark"] .vg-plan.pw-plan--featured {
    background: color-mix(in srgb, var(--vg-primary) 12%, var(--vg-surface));
}

.vg-plan__top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vg-plan__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--vg-secondary-soft);
    color: var(--vg-secondary);
}

html[data-theme="dark"] .vg-plan__icon {
    color: var(--vg-accent);
}

.vg-plan.is-featured .vg-plan__icon {
    background: var(--vg-primary);
    color: #fff;
}

.vg-plan__icon .vg-ico {
    width: 24px;
    height: 24px;
}

.vg-plan__name {
    font-size: 1.25rem;
}

.vg-plan__desc {
    color: var(--vg-muted);
    font-size: .92rem;
}

.vg-plan__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px dashed var(--vg-border);
    border-bottom: 1px dashed var(--vg-border);
    color: var(--vg-heading);
}

.vg-plan__currency {
    font-size: 1.2rem;
    font-weight: 700;
    align-self: flex-start;
    margin-top: 4px;
}

.vg-plan__amount {
    font-family: var(--vg-font-head);
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

.vg-plan.is-featured .vg-plan__amount,
.vg-plan.is-featured .vg-plan__currency,
.vg-plan.pw-plan--featured .vg-plan__amount {
    color: var(--vg-primary);
}

.vg-plan__amount sup {
    font-size: .45em;
    top: -.9em;
}

.vg-plan__period {
    color: var(--vg-muted);
    font-size: .92rem;
    font-weight: 600;
}

.vg-plan__setup,
.vg-plan__meta {
    margin-top: -8px;
    color: var(--vg-muted);
    font-size: .82rem;
}

.vg-plan__features {
    flex: 1 1 auto;
    font-size: .93rem;
}

.vg-plan__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.vg-plan__notice {
    color: var(--vg-err);
    font-size: .85rem;
}

.vg-plans__more {
    margin-top: 32px;
    text-align: center;
}

.vg-plan-table {
    min-width: 720px;
}

.vg-plan-table .vg-plan__amount {
    font-size: 1.4rem;
}
