.section-pricing {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

#pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
}

.pricing-headline {
    font-family: var(--title-font-family);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin: 0;
}

/* Cards */

.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 32px 16px;
    align-items: center;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 40px;
    border-radius: 40px;
    background-color: var(--gray-50);
    position: relative;
    min-width: 260px;
}

.pricing-card--yearly {
    background-color: var(--lilac-100);
    color: white;
}

/* Selectable state — only when .pricing-cards--selectable */

.pricing-cards--selectable .pricing-card {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.pricing-cards--selectable
    .pricing-card:has(.pricing-card-radio:not(:checked)) {
    opacity: 0.55;
}

.pricing-cards--selectable .pricing-card:has(.pricing-card-radio:checked) {
    box-shadow: 0 0 0 3px var(--lilac-100);
}

.pricing-cards--selectable
    .pricing-card--yearly:has(.pricing-card-radio:checked) {
    box-shadow: 0 0 0 3px var(--cherry-100);
}

.pricing-card-radio {
    display: none;
}

.pricing-card-badge {
    position: absolute;
    top: -12px;
    background-color: var(--tangerine-100);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-card-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-card-value {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
}

.pricing-card-period {
    font-size: 20px;
    font-weight: 600;
}

.pricing-card-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Note */

.pricing-note {
    font-size: 13px;
    opacity: 0.55;
    margin-top: -12px;
}

/* Perks */

.pricing-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.05rem;
}

.pricing-perks li::before {
    content: "✓ ";
    font-weight: 700;
    color: var(--lilac-100);
}

.pricing-compare {
    font-size: 0.95rem;
    color: var(--tangerine-100);
    text-decoration: underline;
}

/* Actions */

.pricing-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pricing-free-trial {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-free-trial > div:last-child {
    font-size: 13px;
    margin-top: 6px;
    opacity: 0.6;
}

/* Student offer */

.student-offer {
    font-size: 0.8rem;
    font-style: italic;
}

.student-offer > a {
    text-decoration: underline;
}

@media only screen and (min-width: 650px) {
    .pricing-cards {
        flex-direction: row;
        align-items: stretch;
    }
}
