/* AMFFL Membership pages — scoped styles (all selectors prefixed .amffl-) */

.amffl-plans, .amffl-home, .amffl-promos, .amffl-promos2 {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.55;
}
.amffl-muted { color: #666; }

/* Full-bleed layout: the membership design stretches edge to edge so there
   are no wide empty gutters on the left/right, regardless of the theme's
   content container width. */
.amffl-plans, .amffl-home, .amffl-promos, .amffl-promos2 {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  padding-left: 48px;
  padding-right: 48px;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Stop the 100vw breakout from creating a page-level horizontal scrollbar. */
body:has(.amffl-home), body:has(.amffl-plans),
body:has(.amffl-promos), body:has(.amffl-promos2) {
  overflow-x: hidden;
  overflow-x: clip;
}

/* ---------- shared ---------- */
.amffl-btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-weight: 700; text-decoration: none; margin: 4px;
}
.amffl-btn-light { background: #fff; color: #0e7a30; }
.amffl-btn-outline { border: 2px solid #fff; color: #fff; }

.amffl-pill {
  border: 2px solid rgba(255,255,255,.7); background: transparent; color: #fff;
  padding: 8px 20px; border-radius: 999px; font-weight: 600; cursor: pointer;
  font-size: 14px;
}
.amffl-pill-active { background: #fff; color: #0e7a30; border-color: #fff; }

.amffl-buy {
  display: block; text-align: center; background: #22a447; color: #fff;
  font-weight: 700; padding: 12px 20px; border-radius: 8px; text-decoration: none;
  margin: 14px 20px 6px;
}
.amffl-buy:hover { background: #1b8a3a; color: #fff; }
.amffl-buy-disabled { background: #bdbdbd; pointer-events: none; }

/* ---------- plans header ---------- */
.amffl-plans-header {
  background: linear-gradient(135deg, #0e7a30 0%, #0a5c24 100%);
  color: #fff; text-align: center; padding: 48px 20px 30px;
  border-radius: 0; margin-bottom: 28px;
}
.amffl-plans-header h1 { color: #fff; font-size: 34px; margin: 0 0 8px; }
.amffl-plans-header h1 span { color: #ffd54f; }
.amffl-plans-header p { color: #e0f2e7; max-width: 640px; margin: 0 auto 22px; }
.amffl-plans-controls {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center;
}
.amffl-group-switch {
  padding: 9px 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,.7);
  background: transparent; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
}
.amffl-group-switch option { color: #1a1a1a; }
.amffl-duration-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.amffl-compare {
  background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.4);
  border-radius: 8px; padding: 8px 18px; font-weight: 600; cursor: pointer; font-size: 14px;
}

/* ---------- plan cards ---------- */
.amffl-plans-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px; max-width: 100%; margin: 0 auto; padding: 0;
}
.amffl-plan-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); border: 1px solid #e8e8e8;
  display: flex; flex-direction: column;
}
.amffl-plan-head { text-align: center; padding: 26px 18px 18px; }
.amffl-tint-blue { background: #e7f3fd; }
.amffl-tint-green { background: #e9f7ef; }
.amffl-tint-yellow { background: #fdf6e3; }
.amffl-plan-icon {
  width: 54px; height: 54px; border-radius: 50%; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 1px 6px rgba(0,0,0,.12); margin-bottom: 8px;
}
.amffl-plan-head h3 { margin: 4px 0 2px; font-size: 22px; }
.amffl-plan-group { margin: 0; color: #666; font-size: 13px; }
.amffl-dots { margin-top: 10px; }
.amffl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c8d8cc; margin: 0 3px; }
.amffl-dot-on { background: #22a447; }

.amffl-plan-price { text-align: center; padding: 16px 10px 4px; }
.amffl-price { font-size: 27px; font-weight: 800; color: #111; }
.amffl-per { display: block; color: #777; font-size: 13px; }
.amffl-not-available { display: block; color: #e65100; font-weight: 700; font-size: 14px; margin-top: 4px; }

.amffl-stats { display: flex; gap: 8px; padding: 12px 20px; }
.amffl-stat {
  flex: 1; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 6px;
  text-align: center; background: #fafafa;
}
.amffl-stat strong { display: block; font-size: 14px; color: #111; }
.amffl-stat span { font-size: 10px; letter-spacing: .5px; color: #888; }

.amffl-cats-summary {
  display: flex; justify-content: space-between; align-items: center;
  margin: 12px 20px 0; padding: 8px 0; font-size: 14px; color: #333;
}
.amffl-cats-summary strong { color: #0e7a30; }
.amffl-cats { list-style: none; margin: 0 20px; padding: 0; }
.amffl-cats li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #f1f1f1; font-size: 14px;
}
.amffl-cats li strong { color: #0e7a30; }
.amffl-cats-hidden, .amffl-features-hidden { display: none; }
.amffl-cats-open .amffl-cats-hidden { display: block; }
.amffl-features-open .amffl-features-hidden { display: block; }
.amffl-toggle-cats, .amffl-toggle-features {
  background: none; border: none; color: #0e7a30; font-weight: 700; cursor: pointer;
  margin: 6px 20px 0; padding: 4px 0; font-size: 14px; text-align: left;
  display: inline-flex; align-items: center; gap: 6px;
}
.amffl-toggle-features { color: #333; margin-top: 10px; }
.amffl-chevron { display: inline-block; transition: transform .2s; font-size: 12px; }
.amffl-open .amffl-chevron { transform: rotate(180deg); }
.amffl-features { list-style: none; margin: 0 20px 22px; padding: 0; }
.amffl-features li { font-size: 13.5px; padding: 5px 0; color: #444; }
.amffl-check { color: #22a447; font-weight: 800; margin-right: 6px; }

.amffl-compare-mode .amffl-cats,
.amffl-compare-mode .amffl-features,
.amffl-compare-mode .amffl-cats-summary,
.amffl-compare-mode .amffl-toggle-cats,
.amffl-compare-mode .amffl-toggle-features { display: none; }

.amffl-note { text-align: center; color: #777; font-size: 13px; max-width: 800px; margin: 30px auto; padding: 0 16px; }

/* ---------- home (client design) ---------- */
.amffl-hero2 {
  background: linear-gradient(135deg, #0d7a2e 0%, #0a5c24 100%);
  border-radius: 0; padding: 64px max(28px, 6vw); color: #fff;
  max-width: 100%; margin: 0;
}
.amffl-hero-badge {
  display: inline-block; background: rgba(255,255,255,.14); color: #fff;
  border-radius: 999px; padding: 7px 18px; font-size: 13.5px; font-weight: 600;
  margin-bottom: 22px;
}
.amffl-hero2 h1 { color: #fff; font-size: 46px; line-height: 1.12; margin: 0 0 16px; max-width: 640px; font-weight: 800; }
.amffl-hero2-sub { color: #d9ecdf; font-size: 16.5px; max-width: 620px; margin: 0 0 30px; }
.amffl-hero2-actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.amffl-btn2 {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 15px;
}
.amffl-btn2-white { background: #fff; color: #0d7a2e; }
.amffl-btn2-white:hover { color: #0a5c24; }
/* Higher specificity so theme link styles can't recolor the hero buttons. */
.amffl-hero2-actions .amffl-btn2-white { color: #0d7a2e; text-decoration: none; }
.amffl-hero2-actions .amffl-btn2-white:hover { color: #0a5c24; }
.amffl-hero2-actions .amffl-btn2-ghost {
  border: 1.5px solid rgba(255,255,255,.7); color: #fff;
  background: rgba(255,255,255,.08); text-decoration: none;
  padding: 15px 34px; margin: 4px 2px;
}
.amffl-hero2-actions .amffl-btn2-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

.amffl-perks2 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; max-width: 100%; margin: 26px auto 0; padding: 0;
}
.amffl-perk2 {
  background: #fff; border: 1px solid #e9eef0; border-radius: 16px; padding: 28px 26px;
}
.amffl-perk2-icon { margin-bottom: 14px; }
.amffl-perk2 h3 { margin: 0 0 6px; font-size: 17.5px; color: #101828; }
.amffl-perk2 p { margin: 0; color: #667085; font-size: 14.5px; }

.amffl-cats2-section { max-width: 100%; margin: 40px auto 10px; padding: 0; }
.amffl-cats2-section h2 { font-size: 22px; color: #101828; margin: 0 0 18px; }
.amffl-cat2-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.amffl-cat2-card {
  background: #fff; border: 1px solid #e9eef0; border-radius: 16px; padding: 28px 26px;
}
.amffl-cat2-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.amffl-cat2-icon svg { width: 26px; height: 26px; display: block; }
.amffl-cat2-card h3 { margin: 0 0 8px; font-size: 18px; color: #101828; }
.amffl-cat2-card p { margin: 0 0 16px; color: #667085; font-size: 14.5px; }
.amffl-cat2-link { color: #0d7a2e; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.amffl-cat2-link:hover { text-decoration: underline; }

/* Guard: no card or grid child may force content past the page edge. */
.amffl-perk2, .amffl-cat2-card, .amffl-plan-card, .amffl-promos2 > * {
  min-width: 0;
  overflow-wrap: break-word;
}

/* ---------- promotions (client design) ---------- */
/* NOTE: do NOT set margin or max-width here — the full-bleed rule at the top
   of this file gives .amffl-promos2 its 100vw breakout via negative margins.
   A later `margin: 0 auto` (equal specificity, later in the file) silently
   killed the breakout and reintroduced the centered ~1200px gutters. */
.amffl-promos2 { padding-top: 8px; }
.amffl-promos2-header { margin: 18px 0 26px; }
.amffl-promos2-header h1 { font-size: 32px; color: #101828; margin: 0 0 6px; font-weight: 800; }
.amffl-promos2-header p { color: #667085; font-size: 15.5px; margin: 0; }

.amffl-promo2-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.amffl-promo2-card {
  background: #fff; border: 1px solid #e9eef0; border-radius: 18px; padding: 26px 24px;
}
.amffl-promo2-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.amffl-promo2-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 52px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.amffl-promo2-head h3 { margin: 0; font-size: 18px; color: #101828; }
.amffl-promo2-tag { font-size: 13px; color: #667085; }
.amffl-promo2-desc { color: #475467; font-size: 14.5px; margin: 0 0 16px; }

.amffl-combo-rows { display: flex; flex-direction: column; gap: 10px; }
.amffl-combo-row {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid #e9eef0; border-radius: 12px; padding: 12px 16px;
  text-decoration: none; color: #344054; font-size: 14.5px;
  transition: border-color .15s ease, background .15s ease;
}
.amffl-combo-row:hover { border-color: #0d7a2e; background: #f6faf7; }
.amffl-combo-row strong { color: #101828; font-size: 15px; }

.amffl-credit-engine {
  background: #fff; border: 1px solid #e9eef0; border-radius: 18px;
  padding: 32px 30px; margin: 30px 0 10px;
}
.amffl-credit-engine h2 { font-size: 21px; color: #101828; margin: 0 0 6px; }
.amffl-credit-engine .amffl-muted { margin: 0 0 18px; }
.amffl-engine-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.amffl-engine-item {
  background: #f8fafc; border-radius: 10px; padding: 12px 16px;
  font-size: 14.5px; color: #344054;
}
.amffl-engine-note { color: #98a2b3; font-size: 13.5px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .amffl-plans, .amffl-home, .amffl-promos, .amffl-promos2 {
    padding-left: 22px; padding-right: 22px;
  }
  .amffl-plans-header h1, .amffl-hero h1 { font-size: 26px; }
  .amffl-plan-card { margin: 0 4px; }
  .amffl-stats { flex-wrap: wrap; }
  .amffl-credit-balance { flex-direction: column; align-items: flex-start; }
}
