/* ==============================================
   FORCE MATRIX MLM SOFTWARE PAGE
   force-matrix.css — Page-specific styles
   Extends: css/style.css
   ============================================== */

/* ===========================
   BREADCRUMB BAR
   =========================== */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.625rem 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb a { color: var(--gray-500); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li[aria-current="page"] { color: var(--gray-900); font-weight: 600; }
.breadcrumb i { color: var(--gray-400); font-size: 0.65rem; }

/* ===========================
   EEAT AUTHOR BOX
   =========================== */
.eeat-author-box {
  display: flex;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(99,102,241,0.04));
  border: 1px solid rgba(37,99,235,0.15);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}
.eeat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.375rem;
  flex-shrink: 0;
}
.eeat-name { font-weight: 700; font-size: 0.9375rem; color: var(--gray-900); margin-bottom: 0.5rem; }
.eeat-creds { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 0.625rem; }
.eeat-creds span { display: flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }
.eeat-creds i { color: var(--primary); font-size: 0.75rem; }
.eeat-summary { font-size: 0.875rem; color: var(--gray-600); line-height: 1.7; margin: 0; }

/* ===========================
   BG SECTION VARIANTS
   =========================== */
.bg-light-section { background: var(--gray-50); }
.bg-dark-section { background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%); }

/* ===========================
   HERO — FORCE MATRIX TWO-COLUMN LAYOUT
   =========================== */
.hero-fm {
  min-height: 640px;
  padding: 4.5rem 0 5rem;
}
.hero-fm-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-fm-copy { max-width: 560px; }

/* ===========================
   FORCE MATRIX HERO DIAGRAM  (fmhd-*)
   =========================== */
.fmhd-diagram {
  background: var(--gray-900);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 100px;
}

/* Header row */
.fmhd-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.fmhd-header i { color: #818cf8; flex-shrink: 0; }
.fmhd-badge {
  margin-left: auto;
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Level containers */
.fmhd-level { margin-bottom: 0.75rem; position: relative; }
.fmhd-level-label {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.625rem;
}

/* Connector bar */
.fmhd-connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(99,102,241,0.5), rgba(139,92,246,0.2));
  margin: 0 auto 0.75rem;
}

/* Row alignments */
.fmhd-row { display: flex; justify-content: center; }
.fmhd-row-1 { gap: 0; }
.fmhd-row-3 { gap: 0.875rem; }
.fmhd-row-9 { gap: 0.3rem; flex-wrap: wrap; }

/* Node base */
.fmhd-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: default;
  position: relative;
}
.fmhd-node-inner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fmhd-node-inner:hover { transform: scale(1.1); }
.fmhd-node-name { font-size: 0.65rem; font-weight: 700; color: rgba(255,255,255,0.5); text-align: center; }
.fmhd-node-tag {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35);
}
.fmhd-node-tag.forced { background: rgba(99,102,241,0.2); color: #a5b4fc; }
.fmhd-node-tag.spill  { background: rgba(245,158,11,0.2); color: #fbbf24; }

/* Node variants */
.fmhd-root .fmhd-node-inner {
  border-color: #f59e0b;
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  width: 60px;
  height: 60px;
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(245,158,11,0.3);
}
.fmhd-filled .fmhd-node-inner {
  border-color: #818cf8;
  background: rgba(99,102,241,0.15);
  color: #818cf8;
}
.fmhd-spillover .fmhd-node-inner {
  border-color: #fbbf24;
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
}
.fmhd-open .fmhd-node-inner {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.25);
  border-style: dashed;
}

/* Small nodes (level 2) */
.fmhd-node.sm .fmhd-node-inner { width: 36px; height: 36px; font-size: 0.8rem; }
.fmhd-node.sm .fmhd-node-name  { font-size: 0.58rem; }

/* Tooltip */
.fmhd-node[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: #fff;
  font-size: 0.7rem;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10;
}

/* Summary bar */
.fmhd-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 1rem;
  padding: 0.875rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.fmhd-sum-item { text-align: center; }
.fmhd-sum-num {
  display: block;
  font-size: 1.375rem;
  font-weight: 900;
  color: #818cf8;
  font-family: var(--font-primary);
  line-height: 1;
}
.fmhd-sum-item.total .fmhd-sum-num { color: #f59e0b; font-size: 1.75rem; }
.fmhd-sum-lbl { font-size: 0.65rem; color: rgba(255,255,255,0.4); font-weight: 500; }
.fmhd-sum-sep { font-size: 1.25rem; font-weight: 700; color: rgba(255,255,255,0.2); align-self: flex-start; padding-top: 2px; }

/* Fill progress bar */
.fmhd-progress-wrap { margin-bottom: 1rem; }
.fmhd-progress-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 0.375rem; font-weight: 500; }
.fmhd-progress-pct { font-weight: 700; color: #818cf8; }
.fmhd-progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: var(--radius-full); overflow: hidden; }
.fmhd-progress-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: var(--radius-full); transition: width 1.4s cubic-bezier(0.4,0,0.2,1); }
.fmhd-progress-sub { font-size: 0.65rem; color: rgba(255,255,255,0.35); margin-top: 0.375rem; text-align: center; }

/* Legend */
.fmhd-legend { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.fmhd-leg-item { display: flex; align-items: center; gap: 0.375rem; font-size: 0.7rem; color: rgba(255,255,255,0.4); }
.fmhd-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid; flex-shrink: 0; }
.fmhd-dot.filled   { border-color: #818cf8; background: rgba(99,102,241,0.3); }
.fmhd-dot.open     { border-color: rgba(255,255,255,0.2); background: transparent; border-style: dashed; }
.fmhd-dot.spill    { border-color: #fbbf24; background: rgba(245,158,11,0.2); }
.fmhd-dot.root     { border-color: #f59e0b; background: rgba(245,158,11,0.35); }

/* ===========================
   INTRO TEXT & CONCEPT CARDS
   =========================== */
.fm-intro-text { max-width: 860px; margin: 0 auto 3rem; }
.fm-intro-text p { font-size: 1rem; color: var(--gray-700); line-height: 1.85; margin-bottom: 1.25rem; }
.fm-intro-text p:last-child { margin-bottom: 0; }

.fm-intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.fmic-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.fmic-card:hover { border-color: var(--primary); box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.fmic-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.375rem;
  flex-shrink: 0;
}
.fmic-card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin: 0; }
.fmic-card p  { font-size: 0.875rem; color: var(--gray-600); line-height: 1.75; margin: 0; }

/* ===========================
   HOW FORCE MATRIX WORKS — STEP GRID
   =========================== */
.fm-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.fmhg-step {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.fmhg-step:hover { border-color: var(--primary); box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.fmhg-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s;
}
.fmhg-step:hover::before { opacity: 1; }
.fmhg-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  display: flex; align-items: center; justify-content: center;
  color: #6366f1;
  font-size: 1.375rem;
  flex-shrink: 0;
}
.fmhg-step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(99,102,241,0.07);
  font-family: var(--font-primary);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.25rem;
}
.fmhg-step h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin: 0; line-height: 1.4; }
.fmhg-step p  { font-size: 0.875rem; color: var(--gray-600); line-height: 1.75; margin: 0; }

/* ===========================
   TYPES OF FORCE MATRIX — ACCORDION (fmt-*)
   =========================== */
.fm-types-accordion {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.fmt-item { border-bottom: 1px solid var(--gray-200); }
.fmt-item:last-child { border-bottom: none; }

.fmt-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.375rem 1.5rem;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background 0.2s;
}
.fmt-trigger:hover { background: var(--gray-50); }
.fmt-item.open .fmt-trigger { background: rgba(99,102,241,0.03); }

.fmt-trigger-left { display: flex; align-items: center; gap: 1rem; flex: 1; }
.fmt-trig-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.125rem; flex-shrink: 0;
}
.fmt-trig-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.2rem; }
.fmt-trig-sub   { font-size: 0.8rem; color: var(--gray-500); font-weight: 400; }
.fmt-arrow { color: var(--gray-400); font-size: 0.875rem; transition: transform 0.3s; flex-shrink: 0; }
.fmt-item.open .fmt-arrow { transform: rotate(180deg); color: #6366f1; }

.fmt-body { padding: 0 1.5rem 1.5rem 4rem; background: rgba(99,102,241,0.02); }
.fmt-body p { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.8; margin-bottom: 1rem; }
.fmt-body p:last-of-type { margin-bottom: 1.25rem; }

.fmt-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.fmt-stat {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 0.625rem 1rem;
  text-align: center;
  min-width: 90px;
}
.fmt-stat-val { font-size: 1.25rem; font-weight: 900; color: #6366f1; font-family: var(--font-primary); line-height: 1.1; margin-bottom: 0.2rem; }
.fmt-stat-lbl { font-size: 0.7rem; color: var(--gray-500); font-weight: 500; }

/* ===========================
   BENEFITS ACCORDION GRID (fmb-*)
   =========================== */
.fm-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.fmb-column {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.fmb-item { border-bottom: 1px solid var(--gray-200); }
.fmb-item:last-child { border-bottom: none; }

.fmb-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.125rem 1.25rem;
  background: #fff; border: none; cursor: pointer; text-align: left;
  gap: 0.875rem; transition: background 0.2s;
}
.fmb-trigger:hover { background: var(--gray-50); }
.fmb-item.open .fmb-trigger { background: rgba(99,102,241,0.03); }

.fmb-trig-left {
  display: flex; align-items: center; gap: 0.875rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--gray-800); flex: 1;
}
.fmb-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.fmb-arrow { font-size: 0.8rem; color: var(--gray-400); transition: transform 0.3s; flex-shrink: 0; }
.fmb-item.open .fmb-arrow { transform: rotate(45deg); color: #6366f1; }

.fmb-body { padding: 0 1.25rem 1.25rem 3.625rem; background: rgba(99,102,241,0.02); }
.fmb-body p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.8; margin: 0; }

/* ===========================
   COMPARISON TABLE (fmcomp-*)
   =========================== */
.fmcomp-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.fmcomp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 700px;
}
.fmcomp-table thead tr { background: var(--gray-900); }
.fmcomp-table th {
  padding: 1rem 1.125rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 2px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.fmcomp-table th i { margin-right: 0.4rem; }
.fmcomp-feat-col { color: rgba(255,255,255,0.6); width: 22%; }
.fmcomp-fm-col   { color: #a5b4fc; width: 20%; }
.fmcomp-mat-col  { color: #6ee7b7; width: 20%; }
.fmcomp-bin-col  { color: #fcd34d; width: 19%; }
.fmcomp-uni-col  { color: #f9a8d4; width: 19%; }

.fmcomp-table tbody tr { transition: background 0.15s; }
.fmcomp-table tbody tr:hover { background: rgba(99,102,241,0.04); }
.fmcomp-table tbody td {
  padding: 0.7rem 1.125rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  line-height: 1.5;
  vertical-align: middle;
}
.fmcomp-table tbody td.fmcomp-feat-col { color: var(--gray-800); font-weight: 500; }
.fmcomp-table tbody td.fmcomp-fm-col  { background: rgba(99,102,241,0.04); color: var(--gray-700); font-weight: 500; }

/* Badge chips */
.fmcomp-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.fmcomp-badge.fm { background: rgba(99,102,241,0.12); color: #6366f1; }

/* Icon helpers */
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }
.text-warning { color: var(--warning); }

/* Footer row */
.fmcomp-table tfoot tr { background: var(--gray-50); }
.fmcomp-table tfoot td {
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  border-top: 2px solid var(--gray-200);
}
.fmcomp-table tfoot td.fmcomp-feat-col { font-weight: 700; color: var(--gray-900); }
.fmcomp-winner { background: rgba(99,102,241,0.06) !important; color: #6366f1 !important; font-weight: 600; }
.fmcomp-winner i { color: var(--warning); margin-right: 0.375rem; }

/* CTA strip below table */
.fmcomp-cta-strip {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.fmcomp-cta-strip p { flex: 1; font-size: 0.9375rem; color: var(--gray-700); margin: 0; min-width: 200px; }

/* Internal Related Plans Links */
.fm-related-plans {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.fm-related-plans h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fm-related-plans h3 i { color: #6366f1; }
.frp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.frp-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: var(--transition);
}
.frp-card:hover { border-color: #6366f1; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.frp-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.125rem; flex-shrink: 0;
}
.frp-title { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.2rem; }
.frp-sub   { font-size: 0.8rem; color: var(--gray-500); font-weight: 400; line-height: 1.4; }
.frp-arrow { color: var(--gray-400); margin-left: auto; font-size: 0.875rem; flex-shrink: 0; transition: transform 0.2s; }
.frp-card:hover .frp-arrow { transform: translateX(3px); color: #6366f1; }

/* ===========================
   WHO SHOULD USE — GRID (fmwho-*)
   =========================== */
.fm-who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.fmwho-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: var(--transition);
}
.fmwho-card:hover { border-color: #6366f1; box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.fmwho-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  display: flex; align-items: center; justify-content: center;
  color: #6366f1; font-size: 1.375rem;
}
.fmwho-card h3 { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); margin: 0; line-height: 1.4; }
.fmwho-card p  { font-size: 0.85rem; color: var(--gray-600); line-height: 1.75; margin: 0; flex: 1; }
.fmwho-examples { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.25rem; }
.fmwho-examples span {
  background: rgba(99,102,241,0.07);
  color: #6366f1;
  font-size: 0.7rem; font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ===========================
   EARNINGS EXAMPLE SECTION (fm-example-*)
   =========================== */
.fm-example-setup {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.fm-example-setup h3 { color: #fff; font-size: 1.125rem; margin-bottom: 1.5rem; }
.fmes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fmes-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 0.875rem;
}
.fmes-key { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 0.25rem; }
.fmes-val { font-size: 0.9375rem; font-weight: 700; color: #fff; }

/* Main earnings card */
.fm-earnings-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.fm-earnings-card > h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.625rem;
}
.fm-earnings-card > h3 i { color: #818cf8; }
.fm-earnings-card > p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 0.9375rem; line-height: 1.75; }

/* Phase blocks */
.fmec-phase {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.fmec-phase:last-child { margin-bottom: 0; }

.fmec-phase-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(99,102,241,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.fmec-phase-badge {
  background: #6366f1; color: #fff;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem; font-weight: 700; white-space: nowrap;
}
.fmec-phase-title { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.9375rem; }

.fmec-phase-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.5rem;
  align-items: start;
}
.fmec-phase-body.full-width { grid-template-columns: 1fr; }

/* Mini matrix diagrams */
.fmec-matrix-mini { display: flex; flex-direction: column; align-items: center; gap: 0.625rem; }
.fmmm-root {
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem; font-weight: 700; color: #fbbf24;
  display: flex; align-items: center; gap: 0.375rem;
}
.fmmm-level1 { display: flex; gap: 0.5rem; }
.fmmm-level2 { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: center; max-width: 220px; }

.fmmm-node {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 600; gap: 2px;
  transition: transform 0.15s;
}
.fmmm-node:hover { transform: scale(1.08); }
.fmmm-node i { font-size: 0.875rem; }
.fmmm-node span { font-size: 0.6rem; color: rgba(255,255,255,0.6); }

.fmmm-node.filled {
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #818cf8;
}
.fmmm-node.filled.forced {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.35);
  color: #a78bfa;
}
.fmmm-node.empty {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.25);
}

/* Fill bar */
.fmmm-fill-bar {
  width: 100%; max-width: 220px;
  height: 6px; background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full); overflow: hidden;
  position: relative; margin-top: 0.25rem;
}
.fmmm-fill-bar > span {
  position: absolute; top: 10px; left: 0; right: 0;
  font-size: 0.6rem; color: rgba(255,255,255,0.4);
  text-align: center; white-space: nowrap;
}
.fmmm-fill-inner {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: var(--radius-full);
}

/* Earnings tables inside phases */
.fmec-earn-table { overflow-x: auto; }
.fm-earnings-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.fm-earnings-table th {
  background: rgba(255,255,255,0.06);
  padding: 0.625rem 0.875rem;
  text-align: left; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fm-earnings-table td {
  padding: 0.625rem 0.875rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8375rem; line-height: 1.5;
}
.earn-amt { font-weight: 700; text-align: right; white-space: nowrap; }
.earn-green { color: #10b981; }
.earn-gold  { color: #fbbf24; font-size: 1rem; }
.earn-gray  { color: rgba(255,255,255,0.35); }
.earn-blue  { color: #818cf8; }
.earn-subtotal td { background: rgba(99,102,241,0.1); border-top: 1px solid rgba(99,102,241,0.2); }
.earn-subtotal .earn-amt.earn-blue { font-size: 1rem; }

/* Week / Month Summary */
.fm-week-summary {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-top: 2rem;
}
.fm-week-summary h3 {
  color: #fff; font-size: 1.125rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.625rem;
}
.fm-week-summary h3 i { color: #818cf8; }
.fmws-table-wrapper { overflow-x: auto; margin-bottom: 1.5rem; }
.fmws-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
.fmws-table th {
  background: rgba(99,102,241,0.2);
  padding: 0.75rem 1rem;
  text-align: left; font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.fmws-table td { padding: 0.75rem 1rem; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.05); }
.fmws-table .total-col { color: #a5b4fc; font-weight: 600; }
.grand-total-row td { background: rgba(99,102,241,0.15); border-top: 2px solid rgba(99,102,241,0.4); color: rgba(255,255,255,0.9); }
.grand-total-row .total-col.highlight { color: #10b981; font-size: 1.0625rem; font-weight: 700; }

.fmws-insight {
  display: flex; gap: 1rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.75;
}
.fmws-insight i { color: #10b981; font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }

/* ===========================
   CASE STUDY — PREMIUM CARD (fmcs-*)
   =========================== */
.fm-case-study-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.fmcs-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap; gap: 1rem;
}
.fmcs-company { display: flex; align-items: center; gap: 1.25rem; }
.fmcs-logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem; flex-shrink: 0;
}
.fmcs-name { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); }
.fmcs-type { font-size: 0.875rem; color: var(--gray-500); font-weight: 400; }
.fmcs-result-pill {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(20,184,166,0.1));
  border: 1px solid rgba(16,185,129,0.3);
  color: #065f46;
  font-size: 0.875rem; font-weight: 700;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 0.5rem;
}
.fmcs-result-pill i { color: #10b981; }

.fmcs-body { padding: 2rem; }
.fmcs-section { margin-bottom: 1.75rem; }
.fmcs-section h3 {
  font-size: 1.0625rem; font-weight: 700; color: var(--gray-900);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.fmcs-section p { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.8; margin: 0; }

.fmcs-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin: 1.75rem 0; padding: 1.5rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.03));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99,102,241,0.1);
}
.fmcs-metric { text-align: center; }
.fmcs-m-val {
  font-size: 1.75rem; font-weight: 900; color: #6366f1;
  font-family: var(--font-primary); line-height: 1.1; margin-bottom: 0.375rem;
}
.fmcs-m-lbl { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; line-height: 1.3; }

.fmcs-quote {
  background: #f5f3ff;
  border-left: 4px solid #6366f1;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem; margin: 0;
  font-size: 0.9375rem; color: var(--gray-700); line-height: 1.8; font-style: italic;
}
.fmcs-quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--gray-900); font-size: 0.875rem; }

/* ===========================
   WHY CHOOSE ACCORDION (fmw-*)
   =========================== */
.fm-why-accordion {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2rem;
}
.fmw-item { border-bottom: 1px solid var(--gray-200); }
.fmw-item:last-child { border-bottom: none; }

.fmw-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #fff; border: none; cursor: pointer; text-align: left;
  gap: 1rem; transition: background 0.2s;
}
.fmw-trigger:hover { background: var(--gray-50); }
.fmw-item.open .fmw-trigger { background: rgba(99,102,241,0.03); }

.fmw-trig-left {
  display: flex; align-items: center; gap: 1rem;
  font-size: 1rem; font-weight: 600; color: var(--gray-800); flex: 1;
}
.fmw-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  display: flex; align-items: center; justify-content: center;
  color: #6366f1; font-size: 1.0625rem; flex-shrink: 0;
  transition: background 0.2s;
}
.fmw-item.open .fmw-icon { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.fmw-arrow { font-size: 0.875rem; color: var(--gray-400); transition: transform 0.3s; flex-shrink: 0; }
.fmw-item.open .fmw-arrow { transform: rotate(180deg); color: #6366f1; }

.fmw-body { padding: 0 1.5rem 1.5rem 4rem; background: rgba(99,102,241,0.02); }
.fmw-body p { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.8; margin: 0; }

/* ===========================
   VALUE PROPS STRIP
   =========================== */
.value-props-strip {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 2rem; padding: 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
}
.vp-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); }
.vp-item i { color: #6366f1; font-size: 1.0625rem; }

/* ===========================
   RESPONSIVE — FORCE MATRIX PAGE
   =========================== */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .hero-fm-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-fm-copy { max-width: 100%; }
  .fmhd-diagram { position: static; }
  .fm-intro-cards { grid-template-columns: repeat(2, 1fr); }
  .fm-how-grid { grid-template-columns: repeat(2, 1fr); }
  .fm-who-grid { grid-template-columns: repeat(2, 1fr); }
  .fm-benefits-grid { grid-template-columns: 1fr; }
  .fmes-grid { grid-template-columns: repeat(2, 1fr); }
  .fmec-phase-body { grid-template-columns: 1fr; }
  .fmcs-metrics { grid-template-columns: repeat(2, 1fr); }
  .frp-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet Small (≤768px) */
@media (max-width: 768px) {
  .eeat-author-box { flex-direction: column; }
  .eeat-creds { gap: 0.5rem; }
  .fmhd-row-3 { gap: 0.5rem; }
  .fmhd-row-9 { gap: 0.2rem; }
  .fmhd-node-inner { width: 40px; height: 40px; }
  .fmhd-root .fmhd-node-inner { width: 52px; height: 52px; }
  .fmhd-node.sm .fmhd-node-inner { width: 32px; height: 32px; font-size: 0.75rem; }
  .fmhd-summary { gap: 0.375rem; }
  .fmhd-sum-num { font-size: 1rem; }
  .fm-intro-cards { grid-template-columns: 1fr; }
  .fm-how-grid { grid-template-columns: 1fr; }
  .fmt-body { padding-left: 1.25rem; }
  .fmb-body { padding-left: 1.125rem; }
  .fmw-body { padding-left: 1.5rem; }
  .fm-who-grid { grid-template-columns: 1fr 1fr; }
  .fmcs-header { flex-direction: column; align-items: flex-start; }
  .fmcs-metrics { grid-template-columns: repeat(2, 1fr); }
  .fmcs-body { padding: 1.25rem; }
  .fm-earnings-card { padding: 1.5rem; }
  .fmec-phase-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .fmes-grid { grid-template-columns: 1fr 1fr; }
  .fm-week-summary { padding: 1.25rem; }
  .fmws-table { font-size: 0.8rem; }
  .fmws-table th, .fmws-table td { padding: 0.5rem 0.625rem; }
  .frp-grid { grid-template-columns: 1fr; }
  .value-props-strip { gap: 1.125rem; }
  .fmcomp-cta-strip { flex-direction: column; align-items: flex-start; }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  .fmhd-node.sm .fmhd-node-inner { width: 28px; height: 28px; font-size: 0.6rem; }
  .fmhd-row-9 { gap: 2px; }
  .fm-who-grid { grid-template-columns: 1fr; }
  .fmes-grid { grid-template-columns: 1fr; }
  .fmcs-metrics { grid-template-columns: 1fr 1fr; }
  .fmt-trig-title { font-size: 0.9375rem; }
  .fmt-trig-sub   { font-size: 0.75rem; }
  .fmb-trig-left  { font-size: 0.875rem; }
  .fmmm-node { width: 30px; height: 30px; }
  .fmmm-level2 { max-width: 180px; }
  .fmcs-m-val { font-size: 1.375rem; }
  .fmhd-badge { margin-left: 0; margin-top: 0.375rem; }
}

/* ===========================
   COMPARISON TABLE — Column Highlight (JS-driven)
   =========================== */
.fmcomp-fm-col.col-highlight {
  background: rgba(99,102,241,0.09) !important;
}

/* ===========================
   SCROLL REVEAL ANIMATIONS (JS-driven)
   =========================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Tooltip active state for keyboard users */
.fmhd-node.tooltip-active::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: #fff;
  font-size: 0.7rem;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10;
}

/* Form error state */
.demo-form input.error,
.demo-form select.error,
.demo-form textarea.error {
  border-color: var(--danger, #ef4444) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.error-msg {
  display: block;
  font-size: 0.8rem;
  color: var(--danger, #ef4444);
  margin-top: 0.25rem;
  min-height: 1.1em;
}

/* Form success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
}
.form-success i {
  font-size: 3rem;
  color: var(--success, #10b981);
  transition: transform 0.3s ease;
}
.form-success h3 { font-size: 1.5rem; color: var(--gray-900); }
.form-success p  { color: var(--gray-600); font-size: 0.9375rem; max-width: 360px; }

/* btn-success (WhatsApp green) */
.btn-success {
  background: #25d366;
  color: #fff;
  border: none;
}
.btn-success:hover { background: #1ebe5d; color: #fff; }
