.membership-preview {
    padding: 72px 24px 84px;
    background: #f8fafc;
}

.membership-preview__container {
    max-width: 1280px;
}

.membership-preview__heading {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.membership-preview__eyebrow {
    margin: 0 0 8px;
    color: #e5252a;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.membership-preview__heading h2 {
    margin: 0 0 12px;
    color: #0b2748;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.membership-preview__heading p:last-child {
    margin: 0;
    color: #63738a;
    line-height: 1.65;
}

.coverage-toggle {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 455px);
    margin: 0 auto 30px;
    padding: 4px;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    background: #f0f2f5;
    box-shadow: 0 8px 24px rgba(11, 39, 72, 0.08);
}

.coverage-toggle__button {
    min-height: 54px;
    padding: 12px 18px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #586a82;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.coverage-toggle__button:hover:not(.is-active) {
    color: #0b2748;
    background: rgba(255, 255, 255, 0.7);
}

.coverage-toggle__button:focus-visible,
.membership-card__button:focus-visible {
    outline: 3px solid rgba(229, 37, 42, 0.28);
    outline-offset: 3px;
}

.coverage-toggle__button.is-active {
    background: #0b2748;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(11, 39, 72, 0.22);
    transform: translateY(-1px);
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.membership-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 680px;
    flex-direction: column;
    overflow: visible;
    border: 1px solid #dfe4ea;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(11, 39, 72, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.membership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(11, 39, 72, 0.11);
}

.membership-card--popular {
    border-color: #ed272c;
    box-shadow: 0 12px 34px rgba(237, 39, 44, 0.10);
}

.membership-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    z-index: 2;
    min-width: 138px;
    padding: 7px 18px;
    border-radius: 999px;
    background: #ed272c;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.membership-card__header {
    min-height: 235px;
    padding: 28px 30px 25px;
    border-bottom: 1px solid #e2e6eb;
    text-align: center;
}

.membership-card__header h3 {
    margin: 0 0 16px;
    color: #0b2748;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.65rem;
    line-height: 1.1;
}

.membership-card__description {
    min-height: 46px;
    margin: 0 0 16px;
    color: #72829a;
    font-size: 0.95rem;
    line-height: 1.5;
}

.membership-card__price-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
}

.membership-card__price {
    color: #08284d;
    font-size: clamp(2.35rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
}

.membership-card__price.is-changing {
    animation: price-pop 280ms ease;
}

@keyframes price-pop {
    0% { opacity: 0.45; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.membership-card__period {
    color: #71819a;
    font-size: 1rem;
}

.membership-card__tier-label {
    margin: 16px 0 0;
    color: #72829a;
    font-size: 0.94rem;
}

.membership-card__body {
    flex: 1;
    padding: 28px 25px 18px;
}

.membership-card__features {
    display: grid;
    gap: 23px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.membership-card__features li {
    position: relative;
    padding-left: 29px;
    color: #405c7e;
    font-size: 0.98rem;
    line-height: 1.55;
}

.membership-card__features li::before {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 0;
    color: #ed272c;
    font-size: 1.45rem;
    font-weight: 800;
}

.membership-card__footer {
    padding: 18px 24px 24px;
}

.membership-card__button {
    width: 100%;
    min-height: 56px;
    border: 2px solid #0b2748;
    border-radius: 999px;
    background: #ffffff;
    color: #0b2748;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.membership-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(11, 39, 72, 0.14);
}

.membership-card__button--primary {
    border-color: #ed272c;
    background: #ed272c;
    color: #ffffff;
}

.membership-card__button--secondary:hover {
    background: #0b2748;
    color: #ffffff;
}

.membership-card__button--primary:hover {
    background: #d91d23;
}

.membership-disclaimer {
    max-width: 920px;
    margin: 28px auto 0;
    color: #7a8798;
    font-size: 0.84rem;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 980px) {
    .membership-grid {
        grid-template-columns: 1fr;
        width: min(100%, 680px);
        margin: 0 auto;
        gap: 26px;
    }

    .membership-card {
        min-height: auto;
    }

    .membership-card__header,
    .membership-card__description {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .membership-preview {
        padding: 54px 16px 64px;
    }

    .coverage-toggle {
        grid-template-columns: 1fr;
        gap: 5px;
        width: min(100%, 360px);
    }

    .coverage-toggle__button {
        min-height: 50px;
    }

    .membership-card__header {
        padding: 27px 20px 23px;
    }

    .membership-card__body {
        padding: 25px 20px 14px;
    }

    .membership-card__footer {
        padding: 16px 20px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .coverage-toggle__button,
    .membership-card,
    .membership-card__button,
    .membership-card__price {
        animation: none;
        transition: none;
    }
}
