.pv-membership {
    max-width: 72rem;
    padding-block: clamp(2rem, 6vw, 5rem);
    color: var(--theme-text);
    overflow-wrap: anywhere;
}
.pv-membership :where(h1, h2, p) { margin: 0; }
.pv-membership :where(p, dt) { color: var(--theme-muted); }
.pv-membership h1 { max-width: 19ch; margin: 0; font-size: clamp(2.1rem, 5vw, 4rem); }
.pv-membership h2 { margin: 0; font-size: clamp(1.22rem, 2vw, 1.65rem); }
.pv-membership a { color: var(--theme-link); }
.pv-masthead, .pv-plans-note, .pv-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}
.pv-masthead, .pv-plans-note { justify-content: space-between; }
.pv-masthead { margin-block-end: clamp(1.35rem, 3vw, 2.3rem); align-items: end; }
.pv-masthead p { max-width: 55ch; margin-top: .8rem; line-height: 1.6; }
.pv-period { display: inline-flex; flex-wrap: wrap; gap: .25rem; border: 1px solid var(--theme-border); border-radius: 2rem; background: var(--theme-surface); padding: .18rem; }
.pv-period a, .pv-membership .pv-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .45rem .95rem;
    font: inherit;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}
.pv-period a { border-radius: 2rem; }
.pv-period a[aria-current] { background: var(--theme-primary); color: var(--theme-on-primary); }
.pv-plans, .pv-account-grid { display: grid; gap: clamp(.65rem, 2vw, 1.3rem); }
.pv-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pv-plan, .pv-section-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
    min-width: 0;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background-color: var(--theme-surface);
    padding: clamp(1rem, 2.4vw, 1.8rem);
}
.pv-plan { border-top: 3px solid var(--theme-control); }
.pv-plan-plus { border-top-color: var(--theme-link); }
.pv-plan-pro { border-color: var(--theme-bronze); background-color: var(--theme-raised); }
.pv-plan-pro h2 { color: var(--theme-bronze); }
.pv-plan h2 { font-size: .98rem; letter-spacing: .12em; }
.pv-plan :where(p, form), .pv-section-card :where(p, form) { margin: 0; }
.pv-plan .pv-plan-description { min-height: 3.2em; }
.pv-plan > .pv-action, .pv-plan > form { margin-top: auto; }
.pv-price { display: flex; align-items: baseline; gap: .4rem; font-variant-numeric: tabular-nums; }
.pv-price b { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1; letter-spacing: -.05em; }
.pv-price span { font-size: .8rem; font-weight: 700; }
.pv-saving { display: block; color: var(--theme-link); margin-top: .15rem; font-size: .9rem; }
.pv-membership .pv-action {
    border: 1px solid var(--theme-control);
    border-radius: .5rem;
    background-color: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}
.pv-plan-pro .pv-action, .pv-membership .pv-action:hover, .pv-membership .pv-action:focus-visible { background-color: var(--theme-primary); color: var(--theme-on-primary); }
.pv-membership :focus-visible { outline: 3px solid var(--theme-link); outline-offset: 3px; }
.pv-plans-note { align-items: baseline; margin: 1rem 0 2.5rem; }
.pv-plans-note p { flex: 1 1 33rem; }
.pv-membership .pv-comparison { margin-block: 1.8rem; }
.pv-comparison table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 1rem 0 .75rem; }
.pv-comparison :is(th,td) { padding: .7rem .5rem; border-bottom: 1px solid var(--theme-border); vertical-align: middle; text-align: center; }
.pv-comparison thead { background: var(--theme-surface); }
.pv-comparison th:first-child { text-align: start; width: 49%; }
.pv-yes { color: var(--theme-link); font-weight: 750; }
.pv-membership .pv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pv-membership .pv-tier-title { color: var(--theme-link); font-weight: 700; font-size: 1.7rem; }
.pv-details { margin: 0; width: 100%; }
.pv-details > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .7rem; padding: .48rem 0; border-bottom: 1px solid var(--theme-border); }
.pv-details dt { font-weight: 500; }
.pv-details dd { margin: 0; font-variant-numeric: tabular-nums; }
.pv-account-grid + .pv-actions, .pv-manage { margin-top: 1.4rem; }
.pv-manage + .pv-actions { margin-top: 1.4rem; }
.pv-manage form { display: grid; justify-items: start; gap: .55rem; max-width: 100%; }
.pv-manage form + form { margin-block-start: .5rem; padding-top: 1rem; border-top: 1px solid var(--theme-border); width: 100%; }
.pv-manage select { max-width: 100%; min-height: 44px; }
.pv-membership .pv-consent { margin-bottom: .65rem; font-size: .9rem; }
.pv-membership .pv-confirm { display: flex; align-items: baseline; gap: .55rem; min-height: 44px; padding: .35rem 0; }
.pv-membership .pv-confirm input { flex: 0 0 auto; inline-size: 1.05rem; block-size: 1.05rem; min-height: 0; margin: 0; }
.pv-terms { max-width: 54rem; }
.pv-terms section { border-top: 1px solid var(--theme-border); padding: 1.35rem 0; }
.pv-terms section :is(p,address) { margin: .5rem 0; }
@media (min-width: 43.01rem) {
    @supports (grid-template-rows: subgrid) {
        .pv-plan {
            display: grid;
            grid-row: span 5;
            grid-template-rows: subgrid;
            justify-items: start;
            align-items: start;
        }
        .pv-plan .pv-plan-description { min-height: 0; }
    }
}
@media (max-width: 43rem) {
    .pv-membership { padding-inline: 1rem; }
    .pv-plans, .pv-account-grid { grid-template-columns: 1fr; }
    .pv-plan, .pv-section-card { gap: .65rem; }
    .pv-plan .pv-plan-description { min-height: 0; }
    .pv-comparison :is(th,td) { padding: .55rem .2rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pv-membership .pv-action { transition: none; }
}

/* Shared anchors retain their button contrast when the site's link styles apply. */
.pv-membership a.pv-action:is(:hover, :focus-visible, :active),
.pv-membership button.pv-action:is(:hover, :focus-visible, :active),
.pv-membership .pv-plan-pro a.pv-action {
    background-color: #253f37;
    color: #fff !important;
    border-color: #253f37;
    text-decoration: none;
}
[data-pitvu-theme="dark"] .pv-membership a.pv-action:is(:hover, :focus-visible, :active),
[data-pitvu-theme="dark"] .pv-membership button.pv-action:is(:hover, :focus-visible, :active),
[data-pitvu-theme="dark"] .pv-membership .pv-plan-pro a.pv-action {
    background-color: #b5d8c9;
    color: #172d25 !important;
    border-color: #b5d8c9;
}

/* PRO account comparison: independent of global button palette. */
html body #main .pv-membership [data-account-tier="pro"] .pv-actions > a.pv-action {
    color: #301d48 !important;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%) 100% 0 / 300% 100% no-repeat, #e9def8 !important;
    border: 1px solid #f1e8ff !important;
    text-decoration: none;
    min-height: 44px;
    box-sizing: border-box;
    max-width: 100%;
    transition: background-position .55s ease, box-shadow .25s ease;
}
html body #main .pv-membership [data-account-tier="pro"] .pv-actions > a.pv-action:is(:hover,:focus-visible,:active) {
    color: #301d48 !important;
    background-position: 0 0 !important;
    box-shadow: 0 0 0 2px rgba(233,222,248,.25);
}
@media (prefers-reduced-motion: reduce) {
    html body #main .pv-membership [data-account-tier="pro"] .pv-actions > a.pv-action { transition: none; }
}
