.mem-card { max-width: 920px; text-align: left; padding: 44px 36px 40px; }
.mem-hero { text-align: center; margin-bottom: 36px; }
.mem-eyebrow {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
}
.mem-hero h1,
.mem-hero-pitch {
    font-size: clamp(1.85rem, 5vw, 2.45rem);
    line-height: 1.12;
    margin: 0 auto 22px;
    max-width: 16em;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.mem-hero-pitch-em {
    display: block;
    margin-top: 0.18em;
    color: #059669;
}
.mem-highlights {
    display: grid;
    gap: 10px 22px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    max-width: 42rem;
    text-align: left;
}
@media (min-width: 600px) {
    .mem-highlights { grid-template-columns: 1fr 1fr; }
}
.mem-highlights li {
    margin: 0;
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #374151;
    font-weight: 500;
}
.mem-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #34d399;
    font-weight: 700;
}
.mem-highlights strong { color: #111827; font-weight: 700; }
.mem-benefits-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 16px;
}
.mem-catalog { margin: 0 0 36px; text-align: center; }
.mem-catalog .mem-benefits-title { margin-bottom: 16px; }
.mem-catalog-window {
    border: 1px solid #d1d5db;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px rgba(15, 23, 42, 0.08);
}
.mem-catalog-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    border-bottom: 1px solid #d1d5db;
}
.mem-catalog-dots {
    display: inline-flex;
    gap: 6px;
}
.mem-catalog-dots i {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}
.mem-catalog-dots i:nth-child(1) { background: #f87171; }
.mem-catalog-dots i:nth-child(2) { background: #fbbf24; }
.mem-catalog-dots i:nth-child(3) { background: #34d399; }
.mem-catalog-chrome-title {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.01em;
}
.mem-catalog-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}
.mem-catalog-toolbar {
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.mem-catalog-toolbar input[type="search"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.92rem;
    color: #0f172a;
    background: #fff;
}
.mem-catalog-toolbar input[type="search"]:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
    border-color: #93c5fd;
}
.mem-catalog-scroll {
    /* ~2 rows × 3 compact cards ≈ 6 tools visible; scroll for the rest */
    max-height: 30.5rem;
    overflow: auto;
    padding: 12px;
    background: #f8fafc;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 720px) {
    .mem-catalog-scroll { max-height: 36rem; }
}
.mem-catalog-scroll .lib-catalog-grid--compact {
    margin: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 720px) {
    .mem-catalog-scroll .lib-catalog-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .mem-catalog-scroll .lib-catalog-grid--compact {
        grid-template-columns: 1fr;
    }
}
.mem-catalog-scroll .lib-catalog-loading,
.mem-catalog-scroll .lib-tools-empty {
    margin: 24px 8px;
    text-align: center;
    color: #64748b;
}
.mem-catalog-scroll .lib-tools-empty a {
    color: #1d4ed8;
    font-weight: 600;
}
.mem-benefits {
    display: grid;
    gap: 14px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}
@media (min-width: 600px) { .mem-benefits { grid-template-columns: 1fr 1fr; } }
.mem-benefit {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 16px 14px;
    background: #fff;
}
.mem-benefit h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    color: #111827;
    line-height: 1.35;
}
.mem-benefit p { margin: 0; font-size: 0.88rem; color: #4b5563; line-height: 1.55; }
.mem-benefit a { color: #1d4ed8; font-weight: 600; }
.mem-fine {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0 0 24px;
    text-align: center;
}
.mem-next-step {
    margin: 0 0 32px;
    padding: 22px 20px 20px;
    border-radius: 14px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    text-align: center;
}
.mem-next-step__title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.25;
}
.mem-next-step__lead {
    margin: 0 auto 10px;
    max-width: 34em;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #334155;
}
.mem-next-step__lead a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.mem-next-step__scope {
    margin: 0 auto 18px;
    max-width: 34em;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748b;
}
.mem-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.mem-cta--in-callout {
    margin-top: 4px;
}
.mem-cta-note {
    text-align: center;
    font-size: 0.88rem;
    color: #6b7280;
    margin: 14px 0 0;
}
.mem-support {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #6b7280;
}
.mem-support a { color: #1d4ed8; font-weight: 600; }
.mem-terms { margin: 0 0 28px; }
.mem-terms-grid {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}
@media (min-width: 640px) { .mem-terms-grid { grid-template-columns: repeat(3, 1fr); } }
.mem-term {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(30, 64, 175, 0.1);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mem-term:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 16px 40px rgba(30, 64, 175, 0.14);
}
.mem-term:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}
.mem-term-head {
    padding: 22px 16px 20px;
    text-align: center;
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    color: #fff;
}
.mem-term-length {
    display: block;
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.mem-term-period {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.92;
}
.mem-term-body {
    flex: 1;
    padding: 18px 16px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(180deg, #fafbff 0%, #fff 48%);
}
.mem-term-price {
    margin: 0 0 4px !important;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    line-height: 1.1 !important;
}
.mem-term-list {
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
}
.mem-term-list s { text-decoration-thickness: 1.5px; }
.mem-term-now {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.mem-term-save {
    margin: 0 0 12px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #059669 !important;
    line-height: 1.35 !important;
}
.mem-term-body p {
    margin: 0;
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.55;
}
.mem-terms .mem-benefits-title { margin-bottom: 0; }
.mem-faq { margin: 36px 0 28px; text-align: left; }
.mem-faq-lead {
    text-align: center;
    font-size: 0.92rem;
    color: #6b7280;
    margin: -8px 0 16px;
    line-height: 1.55;
}
.mem-faq-list { margin: 0; padding: 0; }
.mem-faq-item {
    background: #fafafa;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.mem-faq-item summary {
    position: relative;
    padding: 14px 44px 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    list-style: none;
    line-height: 1.4;
}
.mem-faq-item summary::-webkit-details-marker { display: none; }
.mem-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 400;
    color: #2563eb;
}
.mem-faq-item[open] summary::after { content: '\2212'; }
.mem-faq-item p {
    margin: 0;
    padding: 0 16px 16px;
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.6;
}
.mem-faq-item a { color: #1d4ed8; font-weight: 600; }
.mem-faq-item code {
    font-size: 0.85em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.06);
}

/* Dark mode */
html[data-theme="dark"] .mem-eyebrow {
    color: var(--pft-accent);
}

html[data-theme="dark"] .mem-hero h1,
html[data-theme="dark"] .mem-hero-pitch {
    color: var(--pft-heading);
}

html[data-theme="dark"] .mem-hero-pitch-em {
    color: #34d399;
}

html[data-theme="dark"] .mem-highlights li {
    color: var(--pft-muted-2);
}

html[data-theme="dark"] .mem-highlights li::before {
    color: #34d399;
}

html[data-theme="dark"] .mem-highlights strong {
    color: var(--pft-heading);
}

html[data-theme="dark"] .mem-catalog-count {
    color: var(--pft-muted);
}

html[data-theme="dark"] .mem-catalog-window {
    background: var(--pft-card-muted-bg);
    border-color: var(--pft-card-border);
    box-shadow: var(--pft-card-shadow);
}

html[data-theme="dark"] .mem-catalog-chrome {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-bottom-color: var(--pft-card-border);
}

html[data-theme="dark"] .mem-catalog-chrome-title {
    color: var(--pft-muted-2);
}

html[data-theme="dark"] .mem-catalog-toolbar {
    background: var(--pft-card-bg);
    border-bottom-color: var(--pft-card-border);
}

html[data-theme="dark"] .mem-catalog-toolbar input[type="search"] {
    background: var(--pft-card-muted-bg);
    border-color: var(--pft-card-border);
    color: var(--pft-text);
}

html[data-theme="dark"] .mem-catalog-scroll {
    background: var(--pft-card-muted-bg);
}

html[data-theme="dark"] .mem-catalog-scroll .lib-tools-empty,
html[data-theme="dark"] .mem-catalog-scroll .lib-catalog-loading {
    color: var(--pft-muted);
}

html[data-theme="dark"] .mem-catalog-scroll .lib-tools-empty a {
    color: var(--pft-link);
}

html[data-theme="dark"] .mem-next-step {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.14) 0%, var(--pft-card-muted-bg) 100%);
    border-color: rgba(96, 165, 250, 0.35);
}

html[data-theme="dark"] .mem-next-step__title {
    color: var(--pft-heading);
}

html[data-theme="dark"] .mem-next-step__lead {
    color: var(--pft-muted-2);
}

html[data-theme="dark"] .mem-next-step__lead a {
    color: var(--pft-link);
}

html[data-theme="dark"] .mem-next-step__scope {
    color: var(--pft-muted);
}

html[data-theme="dark"] .mem-benefits-title,
html[data-theme="dark"] .mem-fine,
html[data-theme="dark"] .mem-cta-note,
html[data-theme="dark"] .mem-support,
html[data-theme="dark"] .mem-faq-lead {
    color: var(--pft-muted);
}

html[data-theme="dark"] .mem-benefit {
    background: var(--pft-card-muted-bg);
    border-color: var(--pft-card-border);
}

html[data-theme="dark"] .mem-benefit h3 {
    color: var(--pft-heading);
}

html[data-theme="dark"] .mem-benefit p {
    color: var(--pft-muted-2);
}

html[data-theme="dark"] .mem-benefit a,
html[data-theme="dark"] .mem-support a,
html[data-theme="dark"] .mem-faq-item a {
    color: var(--pft-link);
}

html[data-theme="dark"] .mem-term {
    background: var(--pft-card-bg);
    border-color: var(--pft-card-border);
    box-shadow: var(--pft-card-shadow);
}

html[data-theme="dark"] .mem-term:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .mem-term-body {
    background: var(--pft-card-bg);
    border-top-color: var(--pft-border-subtle);
}

html[data-theme="dark"] .mem-term-body p {
    color: var(--pft-muted-2);
}

html[data-theme="dark"] .mem-term-now {
    color: var(--pft-heading);
}

html[data-theme="dark"] .mem-term-list {
    color: var(--pft-muted);
}

html[data-theme="dark"] .mem-term-save {
    color: #34d399 !important;
}

html[data-theme="dark"] .mem-faq-item {
    background: var(--pft-card-muted-bg);
    border-color: var(--pft-card-border);
}

html[data-theme="dark"] .mem-faq-item summary {
    color: var(--pft-heading);
}

html[data-theme="dark"] .mem-faq-item summary::after {
    color: var(--pft-accent);
}

html[data-theme="dark"] .mem-faq-item p {
    color: var(--pft-muted-2);
}

html[data-theme="dark"] .mem-faq-item code {
    background: rgba(255, 255, 255, 0.08);
    color: var(--pft-text);
}

html[data-theme="dark"] .mem-faq-item strong {
    color: var(--pft-text);
}
