/* Mobile plan cards (memberships page). Markup lives in an Elementor HTML widget. */

.aa-plan-cards {
    --aa-plan-navy: #002856;
    --aa-plan-navy-hover: #0b396c;
    --aa-plan-red: #A32035;
    --aa-plan-red-hover: #861a2b;
    --aa-plan-text: #2b313b;
    --aa-plan-muted: #4a5260;
    --aa-plan-on-red: #f6dfe3;
    --aa-plan-border: #dde2ec;
    --aa-plan-soft: #f5f7fb;
    --aa-plan-focus: #2f6fde;
    --aa-plan-scroll-offset: 100px; /* Set to the sticky mobile header height. */
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 560px;
    margin: 0 auto;
    font-family: "Montserrat", sans-serif;
    color: #333a45;
    text-align: left;
}

.aa-plan-cards p,
.aa-plan-cards ul[role="list"],
.aa-plan-cards ul[role="list"] li {
    margin: 0;
    padding: 0;
}

.aa-plan-cards ul[role="list"],
.aa-plan-cards ul[role="list"] li {
    list-style: none;
}

.aa-plan-cards ul[role="list"] li::before,
.aa-plan-cards ul[role="list"] li::marker {
    content: none;
}

.aa-plan-cards ul {
    list-style: none;
}

.aa-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Focus (3:1 or better on every background used here) */
.aa-plan-cards a:focus-visible,
.aa-plan-cards button:focus-visible,
.aa-plan-cards summary:focus-visible {
    outline: 3px solid var(--aa-plan-focus);
    outline-offset: 2px;
}

/* ---------- Billing toggle (shown only once JS runs) ---------- */

.aa-plan-cards__billing {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.aa-plan-cards.aa-js .aa-plan-cards__billing {
    display: flex;
}

.aa-plan-cards__bill-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--aa-plan-muted);
}

.aa-plan-cards__toggle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #e3e8f2;
}

.aa-plan-cards .aa-plan-cards__seg {
    min-height: 44px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: var(--aa-plan-navy);
    font: 700 15px/1.2 "Montserrat", sans-serif;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
}

.aa-plan-cards .aa-plan-cards__seg:hover {
    background: #d3dae8;
    color: var(--aa-plan-navy);
}

.aa-plan-cards .aa-plan-cards__seg[aria-pressed="true"] {
    background: var(--aa-plan-navy);
    color: #fff;
}

.aa-plan-cards__save {
    font-size: 12px;
    font-weight: 700;
    color: #1f6b35;
}

.aa-plan-cards__seg[aria-pressed="true"] .aa-plan-cards__save {
    color: #a8e6b8;
}

/* ---------- Monthly / yearly prices ---------- */
/* Without JS both prices show ("$14.99/mo or $149.99/yr"). With JS only the chosen period shows. */

.aa-plan-cards.aa-js .aa-plan-or,
.aa-plan-cards.aa-js[data-billing="mo"] [data-period="yr"],
.aa-plan-cards.aa-js[data-billing="yr"] [data-period="mo"] {
    display: none;
}

/* ---------- Jump links ---------- */

.aa-plan-cards__jump {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.aa-plan-cards__jump a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 6px 4px;
    border: 1px solid #cfd6e3;
    border-radius: 0;
    background: #fff;
    color: var(--aa-plan-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.aa-plan-cards__jump a span {
    color: var(--aa-plan-navy);
    font-size: 13px;
    font-weight: 700;
}

.aa-plan-cards__jump a:hover {
    border-color: var(--aa-plan-navy);
}

/* ---------- Card ---------- */

.aa-plan-card {
    overflow: hidden;
    border: 1px solid var(--aa-plan-border);
    border-radius: 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(13, 37, 81, 0.08);
    scroll-margin-top: var(--aa-plan-scroll-offset);
}

.aa-plan-card__head {
    padding: 20px 20px 18px;
    background: var(--aa-plan-navy);
    color: #fff;
}

.aa-plan-card__tier {
    color: #FFF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aa-plan-cards .aa-plan-card__name {
    margin: 2px 0 12px;
    padding: 0;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: uppercase;
}

.aa-plan-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.aa-plan-card__amount {
    font-size: 34px;
    font-weight: 600;
    line-height: 1;
}

.aa-plan-card__per {
    margin-left: 4px;
    color: var(--aa-plan-on-red);
    font-size: 15px;
    font-weight: 600;
}

.aa-plan-card__price .aa-plan-or {
    color: var(--aa-plan-on-red);
    font-size: 15px;
}

.aa-plan-cards .aa-plan-card__fee {
    margin-top: 6px;
    color: #FFF;
    font-size: 13px;
}

.aa-plan-card__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px 20px;
}

.aa-plan-card__lead {
    color: var(--aa-plan-navy);
    font-size: 15px;
    font-weight: 700;
}

/* ---------- Benefits (native details/summary) ---------- */

.aa-plan-card__benefits li {
    border-bottom: 1px solid #edf0f5;
}

.aa-plan-card__benefits summary {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    padding: 11px 0;
    box-sizing: border-box;
    list-style: none;
    cursor: pointer;
}

.aa-plan-card__benefits summary::-webkit-details-marker {
    display: none;
}

.aa-plan-card__label {
    flex: 1;
    color: var(--aa-plan-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.aa-plan-card__benefits details p {
    margin: 0 0 12px 30px;
    color: var(--aa-plan-muted);
    font-size: 14px;
    line-height: 1.5;
}

.aa-plan-icon {
    flex: none;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.aa-plan-icon--check {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    stroke: #1f7a3a;
    stroke-width: 3;
}

.aa-plan-icon--chev {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    stroke: #5b6472;
    stroke-width: 2.25;
    transition: transform 0.15s;
}

.aa-plan-card__benefits details[open] .aa-plan-icon--chev {
    transform: rotate(180deg);
}

/* ---------- Not-included note ---------- */

.aa-plan-card__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 0;
    background: #fdf1f0;
    color: var(--aa-plan-red);
    font-size: 14px;
    line-height: 1.45;
}

.aa-plan-icon--x {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    stroke: var(--aa-plan-red);
    stroke-width: 3;
}

/* ---------- Add-ons ---------- */

.aa-plan-card__addons {
    padding: 12px 14px;
    border-radius: 0;
    background: var(--aa-plan-soft);
}

.aa-plan-cards .aa-plan-card__addons-title {
    margin-bottom: 6px;
    color: var(--aa-plan-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.aa-plan-card__addons ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aa-plan-card__addons li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--aa-plan-text);
    font-size: 14px;
    line-height: 1.4;
}

.aa-plan-card__addon-price {
    color: var(--aa-plan-navy);
    font-weight: 700;
    text-align: right;
}

.aa-plan-cards.aa-js .aa-plan-card__addon-price {
    white-space: nowrap;
}

/* ---------- Call to action ---------- */

.aa-plan-cards .aa-plan-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 16px;
    border-radius: 0;
    background: var(--aa-plan-red);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.aa-plan-cards .aa-plan-card__cta:hover,
.aa-plan-cards .aa-plan-card__cta:focus-visible {
    background: var(--aa-plan-red-hover);
    color: #fff;
}

/* ---------- Enrollment fee box ---------- */

.aa-plan-cards__fee-box {
    padding: 16px 18px;
    border: 1px solid var(--aa-plan-border);
    border-radius: 0;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.aa-plan-cards .aa-plan-cards__fee-title {
    margin-bottom: 6px;
    color: var(--aa-plan-navy);
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    .aa-plan-icon--chev {
        transition: none;
    }
}
