/* Memberships page
   Same patterns as Calendar, Online Booking, Client Management, Telemedicine and AP Photo. */

.mem-page {
    --mem-ink: #111827;
    --mem-text: #58616f;
    --mem-muted: #7b8492;
    --mem-border: #e8edef;
    --mem-teal: #137f8c;
    --mem-gold: #d99a2b;
    --mem-green: #4fa82a;
    background: #ffffff;
    color: var(--mem-ink);
    float: left;
    overflow: hidden;
    width: 100%;
}

header {
    background-color: #001d33;
}

.mem-page * {
    box-sizing: border-box;
}

.mem-page ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mem-container {
    margin: 0 auto;
    max-width: 1210px;
    padding: 0 24px;
    width: 100%;
}

.mem-section {
    padding: 72px 0;
}

.mem-nowrap {
    white-space: nowrap;
}

/* Type */
.mem-page h1,
.mem-page h2,
.mem-page h3 {
    color: var(--mem-ink);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.mem-page h1 {
    font-size: 56px;
    line-height: 1.05;
    text-wrap: balance;
}

.mem-page h2 {
    font-size: 38px;
    line-height: 1.16;
    text-wrap: balance;
}

.mem-page h3 {
    font-size: 28px;
    line-height: 1.2;
}

.mem-page p {
    color: var(--mem-text);
    font-size: 17px;
    line-height: 1.58;
    margin: 0;
}

.mem-eyebrow {
    color: #58616f !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.4 !important;
    margin: 0 0 12px !important;
}

/* Hero */
.mem-hero {
    background:
        radial-gradient(circle at 10% 28%, rgba(167, 234, 242, 0.55), transparent 28%),
        radial-gradient(circle at 88% 34%, rgba(255, 205, 116, 0.34), transparent 30%),
        linear-gradient(145deg, #f4fbfc 0%, #ffffff 50%, #fff8ec 100%);
    padding: 126px 0 72px;
    position: relative;
}

.mem-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    bottom: 0;
    content: "";
    height: 120px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.mem-hero > .mem-container {
    position: relative;
    z-index: 1;
}

.mem-hero-grid {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.mem-hero-copy {
    min-width: 0;
}

.mem-page .mem-lede {
    margin-top: 22px;
    max-width: 36em;
}

/* Hero stats */
.mem-page .mem-stats {
    border-top: 1px solid #e3e9ec;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
    max-width: 560px;
    padding-top: 22px;
}

.mem-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mem-stats strong {
    background: linear-gradient(90deg, #4fa82a 0%, #137f8c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

.mem-stats span {
    color: var(--mem-text);
    font-size: 14.5px;
    line-height: 1.4;
}

/* Framed landscape photo + floating cards */
.mem-visual {
    min-width: 0;
    position: relative;
}

.mem-frame {
    aspect-ratio: 3 / 2;
    background: #ffffff;
    border: 6px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(42, 64, 82, 0.1);
    overflow: hidden;
    padding: 10px;
    width: 100%;
}

.mem-frame img {
    border-radius: 12px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mem-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(17, 24, 39, 0.04),
        0 18px 36px -12px rgba(30, 60, 80, 0.28);
    display: flex;
    font-family: 'Roboto', sans-serif;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    position: absolute;
    z-index: 2;
}

.mem-card-tl { left: -26px; top: -22px; }
.mem-card-br { bottom: -24px; right: -20px; }

.mem-card-icon {
    align-items: center;
    background: #e3f4f6;
    border-radius: 10px;
    color: var(--mem-teal);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
}

.mem-card-icon-gold {
    background: #fdf3df;
    color: #c27a12;
}

.mem-card-icon svg {
    display: block;
}

.mem-card-body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.mem-card-body strong {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.mem-card-body small {
    color: #7b8492;
    font-size: 12px;
}

/* AP Payments billing mock (sample data) */
.mem-pay-visual {
    padding: 0 0 58px;
    position: relative;
}

.mem-pay {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(17, 24, 39, 0.04),
        0 24px 48px -18px rgba(30, 60, 80, 0.28);
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    position: relative;
}

.mem-pay-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 22px 22px 14px;
}

.mem-pay-title {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.mem-pay-title strong {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.mem-pay-title small {
    color: var(--mem-teal);
    font-size: 12px;
    font-weight: 600;
}

.mem-pay-month {
    background: #f3f5f7;
    border-radius: 999px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
}

.mem-pay-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 22px 18px;
}

.mem-pay-stats div {
    background: #f7fafb;
    border: 1px solid #eef2f4;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    padding: 12px 14px;
}

.mem-pay-stats small {
    color: #7b8492;
    font-size: 11.5px;
}

.mem-pay-stats strong {
    color: #111827;
    font-size: 21px;
    font-weight: 700;
    margin-top: 2px;
    white-space: nowrap;
}

.mem-pay-stats em {
    color: #6b7280;
    font-size: 11.5px;
    font-style: normal;
}

.mem-pay-stats div:first-child em {
    color: var(--mem-green);
    font-weight: 600;
}

.mem-pay-cols,
.mem-pay-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 1.05fr 1.3fr 0.95fr 0.7fr;
    padding: 10px 22px;
}

.mem-pay-cols {
    background: #9b3c6f;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mem-pay-row {
    border-top: 1px solid #eef1f3;
    color: #1f2937;
    font-size: 13px;
}

.mem-pay-row span:nth-child(2) {
    color: #6b7280;
}

.mem-pay-cols span:last-child,
.mem-pay-row span:last-child {
    font-weight: 600;
    text-align: right;
}

.mem-pay-chip {
    background: #e3f4f6;
    border-radius: 999px;
    color: var(--mem-teal);
    display: inline-block;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    padding: 3px 9px;
    white-space: nowrap;
}

.mem-pay-chip-online {
    background: #eef6e8;
    color: #3d7f1f;
}

.mem-pay-chip-mobile {
    background: #fdf3df;
    color: #a8650c;
}

.mem-card-icon-green {
    background: #eaf6e3;
    color: #3d8f1c;
}

.mem-pay-card {
    bottom: 0;
    left: -24px;
}

@media (max-width: 1199px) {
    .mem-pay-card { left: -12px; }
}

@media (max-width: 767px) {
    .mem-pay-visual {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }

    .mem-pay-card {
        inset: auto;
        margin: 0 auto;
        max-width: 320px;
        position: relative;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .mem-pay-head,
    .mem-pay-stats,
    .mem-pay-cols,
    .mem-pay-row {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mem-pay-stats {
        gap: 8px;
    }

    .mem-pay-stats div {
        padding: 10px;
    }

    .mem-pay-stats strong {
        font-size: 17px;
    }

    .mem-pay-stats em {
        display: none;
    }

    .mem-pay-cols,
    .mem-pay-row {
        grid-template-columns: 1fr auto auto;
    }

    .mem-pay-cols span:nth-child(2),
    .mem-pay-row span:nth-child(2) {
        display: none;
    }
}

/* Split sections */
.mem-split {
    align-items: center;
    display: grid;
    gap: 64px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.mem-split-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mem-copy,
.mem-media {
    min-width: 0;
}

.mem-copy > p {
    margin-top: 20px;
    max-width: 36em;
}

.mem-media img {
    display: block;
    height: auto;
    width: 100%;
}

/* Membership list card (sample data, modeled on the Client Memberships screen) */
.mem-revenue .mem-visual {
    padding-bottom: 70px;
}

.mem-list-card {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
    bottom: 0;
    box-shadow:
        0 1px 2px rgba(17, 24, 39, 0.04),
        0 22px 40px -14px rgba(30, 60, 80, 0.3);
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    position: absolute;
    right: -22px;
    width: 340px;
    z-index: 2;
}

.mem-list-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 14px 16px 12px;
}

.mem-list-head strong {
    color: #111827;
    font-size: 15px;
}

.mem-add {
    background: #e3f4f6;
    border-radius: 999px;
    color: var(--mem-teal);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
}

.mem-list-cols,
.mem-list-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 52px 70px;
    padding: 9px 16px;
}

.mem-list-cols {
    background: #9b3c6f;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mem-list-row {
    border-top: 1px solid #eef1f3;
    color: #1f2937;
    font-size: 13px;
}

.mem-list-cols span:nth-child(n+2),
.mem-list-row span:nth-child(n+2) {
    text-align: right;
}

/* Thin teal checks (shared pattern) */
.mem-page .mem-checks {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.mem-checks li {
    color: var(--mem-ink);
    font-size: 17px;
    line-height: 1.5;
    padding-left: 28px;
    position: relative;
}

.mem-checks li::before {
    border: solid var(--mem-teal);
    border-width: 0 1.75px 1.75px 0;
    content: "";
    height: 11px;
    left: 5px;
    position: absolute;
    top: 0.32em;
    transform: rotate(45deg);
    width: 5.5px;
}

/* AP Payments: copy on a white card with the brand gradient edge */
.mem-edge-card {
    background: #ffffff;
    border-radius: 6px 20px 20px 6px;
    box-shadow: 0 14px 34px rgba(30, 43, 56, 0.07);
    padding: 40px 40px 38px 44px;
    position: relative;
}

.mem-edge-card::before {
    background: linear-gradient(180deg, #29b8c7 0%, #78bd42 50%, #f2b41e 100%);
    border-radius: 4px;
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.mem-link {
    align-items: center;
    color: var(--mem-teal);
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 6px;
    margin-top: 22px;
    text-decoration: none;
}

.mem-link:hover,
.mem-link:focus {
    color: #0f6773;
    text-decoration: underline;
}

/* Membership types */
.mem-types {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 18%, #f8fbfb 82%, #ffffff 100%);
}

.mem-heading {
    margin: 0 auto 32px;
    max-width: 840px;
    text-align: center;
}

.mem-heading p:not(.mem-eyebrow) {
    margin: 16px auto 0;
    max-width: 46em;
}

/* Each membership type: open layout, photo side alternates */
.mem-type + .mem-type {
    margin-top: 96px;
}

.mem-page .mem-type h3 {
    font-size: 36px;
    line-height: 1.15;
}

.mem-panel-top {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.mem-type-flip .mem-panel-photo {
    order: 2;
}

.mem-panel-photo {
    aspect-ratio: 3 / 2;
    background: #ffffff;
    border: 8px solid #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(42, 64, 82, 0.12);
    overflow: hidden;
}

.mem-panel-photo img {
    border-radius: 12px;
}

.mem-panel-photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mem-panel-copy {
    min-width: 0;
}

.mem-h3-note {
    color: var(--mem-text);
    font-weight: 500;
}

.mem-panel-copy > p {
    margin-top: 12px;
}

.mem-page .mem-how {
    color: var(--mem-text);
    font-size: 16px;
    margin-top: 16px;
}

.mem-page .mem-how strong {
    color: var(--mem-ink);
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700 !important;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.mem-why-bar {
    align-items: center;
    background: linear-gradient(90deg, #eef8fa 0%, rgba(238, 248, 250, 0.4) 100%);
    border-left: 3px solid #29b8c7;
    border-radius: 4px 14px 14px 4px;
    display: grid;
    gap: 16px 32px;
    grid-template-columns: 170px minmax(0, 1fr);
    margin-top: 40px;
    padding: 20px 28px;
}

.mem-page .mem-why-label {
    color: var(--mem-ink);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.mem-page .mem-why {
    display: grid;
    gap: 10px 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.mem-why li {
    color: var(--mem-ink);
    font-size: 15.5px;
    line-height: 1.45;
    padding-left: 26px;
    position: relative;
}

.mem-why li::before {
    border: solid var(--mem-teal);
    border-width: 0 1.75px 1.75px 0;
    content: "";
    height: 10px;
    left: 5px;
    position: absolute;
    top: 0.3em;
    transform: rotate(45deg);
    width: 5px;
}

/* Tier cards + revenue example */
.mem-tiers {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
    margin-top: 20px;
}

.mem-tier {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--mem-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    gap: 6px;
    padding: 20px 14px 16px;
    text-align: center;
}

.mem-tier-name {
    font-size: 16px;
    font-weight: 700;
}

.mem-tier-1 .mem-tier-name { color: #1a95a3; }
.mem-tier-2 .mem-tier-name { color: var(--mem-green); }
.mem-tier-3 .mem-tier-name { color: #c27a12; }

.mem-tier-price {
    color: var(--mem-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.mem-tier-price small {
    color: var(--mem-muted);
    font-size: 13px;
    font-weight: 500;
    margin-left: 2px;
}

.mem-tier-desc {
    color: var(--mem-text);
    flex: 1;
    font-size: 13.5px;
    line-height: 1.4;
    min-height: 2.8em;
}

.mem-tier-tag {
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-top: 4px;
    padding: 5px 10px;
    text-transform: uppercase;
}

.mem-tier-1 .mem-tier-tag { background: #e3f4f6; color: #0f6773; }
.mem-tier-2 .mem-tier-tag { background: #eef8e6; color: #3d7f20; }
.mem-tier-3 .mem-tier-tag { background: #fdf3df; color: #9a5f0c; }

.mem-example {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(242, 180, 30, 0.16), transparent 60%),
        radial-gradient(ellipse at 100% 100%, rgba(41, 184, 199, 0.16), transparent 60%),
        linear-gradient(135deg, #fffaf2 0%, #f1fbfc 100%);
    border: 1px solid #e6edf2;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    gap: 2px;
    justify-content: center;
    padding: 20px 22px;
}

.mem-example span {
    color: #b0620f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mem-example strong {
    color: var(--mem-text);
    font-size: 14.5px;
    font-weight: 500;
    margin-top: 6px;
}

.mem-example em {
    color: var(--mem-ink);
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.15;
}

.mem-example small {
    color: var(--mem-text);
    font-size: 13.5px;
}

.mem-page .mem-heading .mem-types-note {
    color: var(--mem-muted);
    font-size: 14px;
    font-style: italic;
    margin-top: 12px;
    text-wrap: balance;
}

/* Final CTA (shared panel) */
.mem-final-cta {
    padding: 24px 0 40px;
}

.mem-cta-panel {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(242, 180, 30, 0.22), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(41, 184, 199, 0.22), transparent 55%),
        linear-gradient(135deg, #fffaf2 0%, #f1fbfc 100%);
    border: 1px solid #e6edf2;
    border-radius: 28px;
    margin: 0 auto;
    max-width: 1000px;
    padding: 80px 64px;
    text-align: center;
}

.mem-page .mem-cta-eyebrow {
    color: #b0620f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.mem-page .mem-cta-panel h2 {
    font-size: 44px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.mem-page .mem-cta-lead {
    color: var(--mem-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    margin: 0 auto;
    max-width: 640px;
}

.mem-cta-btn {
    align-items: center;
    background: linear-gradient(90deg, #e35d24 0%, #f2b41e 100%);
    border-radius: 999px;
    box-shadow: 0 14px 28px -12px rgba(227, 93, 36, 0.55);
    color: #ffffff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    margin-top: 28px;
    min-height: 56px;
    padding: 16px 34px;
    text-decoration: none;
    transition: box-shadow 160ms ease;
}

.mem-cta-btn:hover,
.mem-cta-btn:focus {
    box-shadow: 0 18px 32px -12px rgba(227, 93, 36, 0.65);
    color: #ffffff;
    text-decoration: none;
}

.mem-cta-btn:focus-visible {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px rgba(19, 127, 140, 0.55);
    outline: none;
}

/* Responsive */
@media (max-width: 1199px) {
    .mem-page h1 {
        font-size: 50px;
    }

    .mem-hero-grid,
    .mem-split {
        gap: 44px;
    }

    .mem-card-tl { left: -12px; }

    .mem-card-br,
    .mem-list-card { right: -12px; }

    .mem-tiers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mem-example {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 991px) {
    .mem-hero {
        padding: 112px 0 64px;
    }

    .mem-hero-grid,
    .mem-split,
    .mem-split-reverse,
    .mem-panel-top {
        grid-template-columns: 1fr;
    }

    .mem-hero-copy {
        text-align: center;
    }

    .mem-page .mem-lede,
    .mem-page .mem-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .mem-visual {
        margin: 24px auto 0;
        max-width: 640px;
        width: 100%;
    }

    .mem-copy,
    .mem-media {
        margin: 0 auto;
        max-width: 640px;
        width: 100%;
    }

    .mem-revenue .mem-copy {
        order: -1;
    }

    .mem-panel-top {
        gap: 24px;
    }

    .mem-type-flip .mem-panel-photo {
        order: 0;
    }

    .mem-type + .mem-type {
        margin-top: 72px;
    }

    .mem-why-bar {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .mem-section {
        padding: 62px 0;
    }

    .mem-cta-panel {
        padding: 64px 48px;
    }

    .mem-page .mem-cta-panel h2 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .mem-container {
        padding: 0 18px;
    }

    .mem-page h1 {
        font-size: 40px;
    }

    .mem-page h2 {
        font-size: 31px;
    }

    .mem-page h3 {
        font-size: 24px;
    }

    .mem-page p {
        font-size: 16px;
    }

    .mem-type + .mem-type {
        margin-top: 60px;
    }

    .mem-page .mem-type h3 {
        font-size: 27px;
    }

    .mem-why-bar {
        padding: 18px 20px;
    }

    .mem-page .mem-why {
        grid-template-columns: 1fr;
    }

    .mem-tiers {
        grid-template-columns: 1fr;
    }

    .mem-tier {
        align-items: center;
        display: grid;
        gap: 2px 12px;
        grid-template-columns: 1fr auto;
        text-align: left;
    }

    .mem-tier-desc {
        min-height: 0;
    }

    .mem-tier-price {
        grid-column: 2;
        grid-row: 1 / span 2;
        text-align: right;
    }

    .mem-tier-tag {
        justify-self: start;
    }
}

/* Phones: cards stack above and below the photo */
@media (max-width: 575px) {
    .mem-hero {
        padding: 96px 0 40px;
    }

    .mem-page h1 {
        font-size: 34px;
    }

    .mem-page h2 {
        font-size: 28px;
    }

    .mem-section {
        padding: 52px 0;
    }

    .mem-page .mem-stats {
        gap: 12px;
    }

    .mem-stats strong {
        font-size: 21px;
        white-space: nowrap;
    }

    .mem-stats span {
        font-size: 13px;
    }

    .mem-visual {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mem-card,
    .mem-list-card {
        inset: auto;
        margin: 0 auto;
        max-width: 320px;
        position: relative;
        width: 100%;
    }

    .mem-card-tl { order: 1; }

    .mem-frame { order: 2; }

    .mem-card-br,
    .mem-list-card { order: 3; }

    .mem-revenue .mem-visual {
        padding-bottom: 0;
    }

    .mem-edge-card {
        padding: 28px 22px 26px 26px;
    }

    .mem-nowrap {
        white-space: normal;
    }

    .mem-final-cta {
        padding: 10px 0 24px;
    }

    .mem-cta-panel {
        border-radius: 22px;
        padding: 48px 22px;
    }

    .mem-page .mem-cta-panel h2 {
        font-size: 28px;
    }
}

/* Hero stats: one faint line across the top, no dividers */
.mem-page .mem-stats {
    border-top: 1px solid #edf1f3;
    gap: 0 40px;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    margin-top: 32px;
    max-width: 580px;
    padding-top: 24px;
}

.mem-stats li {
    align-items: center;
    gap: 6px;
    padding: 0;
    position: relative;
    text-align: center;
}

@media (min-width: 576px) {
    .mem-stats span {
        white-space: nowrap;
    }
}



.mem-stats strong {
    font-size: 32px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.mem-stats span {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 991px) {
    .mem-page .mem-stats {
        text-align: center;
    }

    .mem-page .mem-stats {
        justify-content: center;
    }

    .mem-stats li {
        align-items: center;
    }
}

@media (max-width: 575px) {
    .mem-page .mem-stats {
        gap: 0 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mem-stats strong {
        font-size: 19px;
    }

    .mem-stats span {
        font-size: 12.5px;
    }
}

/* Heading breaks as "Create" / "Service-Based Revenue" at every width */
.mem-revenue h2 .mem-h2-line {
    display: block;
    white-space: nowrap;
}

/* Hybrid heading: keep "(Service + Credit)" together */
.mem-type h3 .mem-nowrap {
    white-space: nowrap;
}

/* Quick-jump links to each membership type */
.mem-jump {
    margin: 0 auto 64px;
}

.mem-jump ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mem-jump a {
    background: #ffffff;
    border: 1px solid #d4ecef;
    border-radius: 999px;
    color: #0f6773 !important;
    display: inline-block;
    font-size: 14.5px;
    font-weight: 600;
    padding: 9px 18px;
    text-decoration: none !important;
    transition: background 140ms ease, border-color 140ms ease;
}

.mem-jump a:hover {
    background: #e3f4f6;
    border-color: #9fd3da;
}

.mem-jump a:focus-visible {
    box-shadow: 0 0 0 3px rgba(19, 127, 140, 0.45);
    outline: none;
}

.mem-type {
    scroll-margin-top: 96px;
}

@media (max-width: 767px) {
    .mem-jump {
        margin-bottom: 44px;
    }

    .mem-jump a {
        font-size: 13.5px;
        padding: 8px 14px;
    }
}

/* AP Payments copy: plain white card (no gradient edge) */
.mem-plain-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(30, 43, 56, 0.07);
    padding: 40px;
}

/* Tier tags: plain colored labels, not pill badges */
.mem-tier .mem-tier-tag,
.mem-tier-1 .mem-tier-tag,
.mem-tier-2 .mem-tier-tag,
.mem-tier-3 .mem-tier-tag {
    background: none;
    border-radius: 0;
    padding: 0;
}

.mem-tier-1 .mem-tier-tag { color: #1a8593; }
.mem-tier-2 .mem-tier-tag { color: #4a8f26; }
.mem-tier-3 .mem-tier-tag { color: #b0700f; }

@media (max-width: 575px) {
    .mem-plain-card {
        padding: 28px 22px;
    }

    /* Hero: compact cards half on the frame edge, inset from the screen edges */
    .mem-hero .mem-visual {
        display: block;
        padding: 34px 0 34px;
        position: relative;
    }

    .mem-hero .mem-card {
        gap: 10px;
        inset: auto;
        margin: 0;
        max-width: none;
        padding: 9px 14px 9px 9px;
        position: absolute;
        width: auto;
    }

    .mem-hero .mem-card-tl {
        right: 10px;
        top: 0;
    }

    .mem-hero .mem-card-br {
        bottom: 0;
        left: 10px;
    }

    .mem-hero .mem-card-icon {
        flex: 0 0 34px;
        height: 34px;
        width: 34px;
    }

    .mem-hero .mem-card-body strong {
        font-size: 13px;
    }

    .mem-hero .mem-card-body small {
        font-size: 11px;
        white-space: nowrap;
    }
}
