/* Membership page (/membership): how it works, plan chart, your plans. */
.mb-page{display:grid;gap:18px;min-width:0}
.mb-page>*{min-width:0}
.mb-page .sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mb-hero h2{margin:12px 0 10px;color:#071a36;font-size:clamp(24px,3vw,32px);font-weight:650;letter-spacing:-.03em;line-height:1.15}
.mb-hero p{max-width:760px;margin:0;color:#4a5d74;font-size:15px;line-height:1.6}
.mb-section h3{margin:0 0 16px;color:#071a36;font-size:18px;font-weight:700}
.mb-small{margin:12px 0 0;color:#5f6f84;font-size:13px;line-height:1.5}

/* Flow diagram */
.mb-flow{display:flex;align-items:stretch;gap:8px;margin:0;padding:0;list-style:none}
.mb-flow>li:not(.mb-arrow){display:flex;flex:1;flex-direction:column;gap:6px;padding:16px;border:1px solid #e3eaf1;border-radius:16px;background:#f8fafc}
.mb-flow b{color:#071a36;font-size:15px}
.mb-flow small{color:#5f6f84;font-size:13px;line-height:1.5}
.mb-flow em{color:#071a36;font-style:normal;font-weight:700}
.mb-arrow{display:grid;flex:none;place-items:center;color:#9aabbd}
.mb-arrow svg{width:20px;height:20px}
.mb-step{display:grid;flex:none;place-items:center;width:38px;height:38px;border-radius:12px;background:#e8eef5;color:#0a294e}
.mb-step svg{width:20px;height:20px}
.mb-step.premium{background:#fff1e6;color:#b4520a}

/* Example timeline */
.mb-timeline{display:flex;gap:3px;margin:18px 0 0;overflow:hidden;border-radius:12px;font-size:12px;font-weight:650}
.mb-bar{display:flex;align-items:center;min-height:44px;padding:6px 10px;line-height:1.3}
.mb-bar.essential{background:#e8eef5;color:#3d5570}
.mb-bar.included{background:#ffe2c7;color:#7a3a00}
.mb-bar.paid{background:#cfe8d8;color:#14532d}

/* Comparison chart */
.mb-table-wrap{overflow-x:auto}
.mb-table{width:100%;min-width:560px;border-collapse:collapse;font-size:14px}
.mb-table th,.mb-table td{padding:12px 14px;border-bottom:1px solid #edf1f5;text-align:center}
.mb-table thead th{color:#071a36;font-size:15px;font-weight:700;vertical-align:bottom}
.mb-table thead small{display:block;margin-top:4px;color:#5f6f84;font-size:12px;font-weight:600}
.mb-table tbody th{display:flex;align-items:center;gap:10px;color:#22364f;font-weight:600;text-align:left}
.mb-table tbody th svg{flex:none;width:16px;height:16px;color:#7b8ca0}
.mb-table .hl{background:#fff8f1}
.mb-table thead .hl{border-radius:12px 12px 0 0}
.mb-table .yes{width:18px;height:18px;color:#15803d}
.mb-table .no{width:18px;height:18px;color:#b8c4d0}

/* Your plans */
.mb-trial{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:12px 14px;border-radius:12px;background:#ecfdf3;color:#14532d;font-size:14px;font-weight:600}
.mb-trial svg{flex:none;width:18px;height:18px}
.mb-people{display:grid;margin:0;padding:0;list-style:none}
.mb-people li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #edf1f5}
.mb-people li>div{display:grid;gap:3px}
.mb-people b{color:#071a36}
.mb-people small,.mb-family small{color:#5f6f84;font-size:13px}
.mb-actions{display:flex;flex-wrap:wrap;gap:8px}
.mb-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;background:#ecfdf3;color:#14532d;font-size:13px;font-weight:650}
.mb-badge svg{width:15px;height:15px}
.mb-badge.warn{background:#fff7e6;color:#7a4b00}
.mb-family{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:16px 0 0;padding:16px;border:1px solid #f3dcc6;border-radius:16px;background:#fffaf5}
.mb-family>div{display:grid;flex:1;gap:3px;min-width:200px}
.mb-family b{color:#071a36}
.mb-billing{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 0;padding:14px 0 0;border-top:1px solid #edf1f5}
.mb-billing p{margin:0;color:#4a5d74;font-size:14px}

/* FAQ */
.mb-faq dl{display:grid;gap:4px;margin:0}
.mb-faq dt{margin-top:10px;color:#071a36;font-weight:700}
.mb-faq dd{margin:0;color:#4a5d74;font-size:14px;line-height:1.6}

@media (max-width:900px){
  .mb-flow{flex-direction:column}
  .mb-arrow{transform:rotate(90deg);padding:2px 0}
  .mb-timeline{flex-direction:column}
  .mb-timeline .mb-bar{flex:none!important}
}
@media (max-width:640px){
  .mb-table{min-width:0;font-size:12px}
  .mb-table th,.mb-table td{padding:9px 5px}
  .mb-table thead th{font-size:12px}
  .mb-table thead small{font-size:10px}
  .mb-table tbody th{display:table-cell;font-size:12px}
  .mb-table tbody th svg{display:none}
  .mb-actions{width:100%}
  .mb-actions .app-button,.mb-family .app-button{flex:1;justify-content:center}
}
