/* eMembership features hub (Dec 2026). Loaded after em-hex.css on /features only. Classes: mf- (shares .mp-kicker with the pricing page) */
.mf-jump, .mf-group, .mf-platform { --ink: #0C142B; --pink: #E71B5E; --pink-hi: #FF4F86; --wine: #8E1640; --muted: #5B6475; --line: #E6E9F0; --soft: #F6F7FB; }

/* ---------- Kicker (same as pricing) ---------- */
.mp-kicker { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 0.9rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink, #E71B5E); }
.mp-kicker::before { content: ""; width: 12px; height: 12px; background: var(--em-hex-pink); -webkit-mask: var(--hex-mask) center / contain no-repeat; mask: var(--hex-mask) center / contain no-repeat; }
.mf-group .mp-kicker::before { display: none; }
.mf-num { display: inline-grid; place-items: center; width: 30px; height: 30px; color: #fff; font-size: 0.72rem; letter-spacing: 0; background: var(--em-hex-pink); -webkit-mask: var(--hex-mask) center / contain no-repeat; mask: var(--hex-mask) center / contain no-repeat; }
.mf-group--soft .mf-num { background: var(--em-hex-wine); }

/* ---------- Group jump bar ---------- */
.mf-jump { position: sticky; top: 72px; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.mf-jump ul { list-style: none; margin: 0; padding: 0.7rem 0; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.mf-jump ul::-webkit-scrollbar { display: none; }
.mf-jump a { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 0.88rem; font-weight: 700; text-decoration: none; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.mf-jump a:hover, .mf-jump a:focus-visible { border-color: var(--pink); color: var(--pink); }
.mf-jump a.mf-jump-plans { margin-left: auto; background: var(--ink); border-color: var(--ink); color: #fff; }
.mf-jump a.mf-jump-plans i { color: var(--pink-hi); font-size: 0.8em; }
.mf-jump a.mf-jump-plans:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.mf-jump a.mf-jump-plans:hover i { color: #fff; }

/* ---------- Groups ---------- */
.mf-group { padding: clamp(3.5rem, 6vw, 5.5rem) 0; background: #fff; scroll-margin-top: 130px; }
.mf-group--soft { background: var(--soft); }
.mf-group-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.mf-group-head { position: sticky; top: 150px; }
.mf-h2 { font-size: clamp(1.65rem, 2.5vw, 2.15rem) !important; line-height: 1.1; letter-spacing: -0.04em; font-weight: 800; color: var(--ink); margin: 0 0 1rem !important; text-wrap: balance; }
.mf-h2 em { font-style: normal; color: var(--pink); }
.mf-lede { font-size: 1.04rem; line-height: 1.7; color: var(--muted); margin: 0; text-wrap: pretty; }

.mf-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.mf-card {
    position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem 1.35rem 1.25rem; border-radius: 20px;
    background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mf-group--soft .mf-card { border-color: #e3e6ee; }
.mf-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.mf-card:hover { transform: translateY(-3px); border-color: rgba(231, 27, 94, 0.3); box-shadow: 0 18px 44px rgba(12, 20, 43, 0.09); }
.mf-card:hover::before { transform: scaleX(1); }
.mf-card:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.mf-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.2rem; }
.mf-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; color: #fff; font-size: 1.05rem; background: var(--em-hex-pink); -webkit-mask: var(--hex-mask) center / contain no-repeat; mask: var(--hex-mask) center / contain no-repeat; }
.mf-card:nth-child(even) .mf-icon { background: var(--em-hex-wine); }
.mf-plan { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.mf-plan--realise { color: var(--pink); background: rgba(231, 27, 94, 0.08); }
.mf-plan--evolve { color: var(--wine); background: rgba(142, 22, 64, 0.09); }
.mf-plan--transform { color: #fff; background: var(--ink); }
.mf-card h3 { font-size: 1.14rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.mf-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.mf-card ul { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mf-card li { font-size: 0.8rem; font-weight: 650; color: var(--ink); background: var(--soft); border-radius: 8px; padding: 0.3rem 0.55rem; line-height: 1.3; }
.mf-group--soft .mf-card li { background: #f1f3f8; }
.mf-more { margin-top: auto; padding-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 750; color: var(--pink); }
.mf-more i { font-size: 0.8em; transition: transform 0.2s ease; }
.mf-card:hover .mf-more i { transform: translateX(3px); }

/* ---------- Built on eAutomate (light, so it does not merge with the navy CTA) ---------- */
.mf-platform {
    padding: clamp(3.5rem, 6vw, 5rem) 0; overflow: hidden; border-top: 1px solid var(--line);
    background-color: #fff;
    background-image: url(/images/em-hero-comb.svg), radial-gradient(ellipse 50% 70% at 100% 0%, rgba(231, 27, 94, 0.07), transparent 70%);
    background-repeat: no-repeat, no-repeat;
    background-size: 340px auto, auto;
    background-position: left -120px bottom -110px, 0 0;
}
.mf-platform-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.mf-platform .mf-lede { margin-bottom: 1.5rem; }
.mf-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--pink); font-weight: 750; text-decoration: none; }
.mf-link i { font-size: 0.85em; transition: transform 0.2s ease; }
.mf-link:hover i { transform: translateX(3px); }
.mf-pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.mf-pillars li { display: grid; grid-template-columns: 46px minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.85rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(12, 20, 43, 0.05); }
.mf-pillars li:nth-child(even) .mf-icon { background: var(--em-hex-wine); }
.mf-pillars strong { color: var(--ink); font-size: 1rem; }
.mf-pillars span:last-child { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .mf-group-grid { grid-template-columns: 1fr; }
    .mf-group-head { position: static; max-width: 720px; }
    .mf-platform-grid { grid-template-columns: 1fr; }
}
@media (max-width: 968px) {
    .mf-jump { top: 0; position: relative; }
}
@media (max-width: 680px) {
    .mf-cards { grid-template-columns: 1fr; }
    .mf-pillars li { grid-template-columns: 46px minmax(0, 1fr); }
    .mf-pillars span:last-child { grid-column: 2; }
    .mf-jump a.mf-jump-plans { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .mf-card, .mf-card::before, .mf-more i, .mf-link i { transition: none; }
    .mf-card:hover { transform: none; }
}

/* Community page: static cards and the plan label in the hero */
.mf-card--static { cursor: default; }
.mf-card--static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.mf-card--static:hover::before { transform: scaleX(0); }
.mf-hero-plan { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1.2rem; padding: 0.45rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.mf-hero-plan i { color: #FF4F86; }
.mf-lede a { color: var(--pink); font-weight: 700; text-decoration: none; }
.mf-lede a:hover { text-decoration: underline; }