/* Wealth-only styles for metrics sliders and totals */
.comparison-table-wrapper {
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  max-width: 1024px; /* match index container width feel */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}
/* Grid-based comparison layout */
.pm-feature-comparison-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  width: 100%;
  background: #fff;
}
.pm-feature-comparison-grid .grid-header {
  display: contents;
}
.pm-feature-comparison-grid .grid-row {
  display: contents;
}
.pm-feature-comparison-grid .grid-cell {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
}
.pm-feature-comparison-grid .grid-header .grid-cell {
  font-weight: 700;
  color: #0f172a;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.pm-feature-comparison-grid .grid-row:nth-of-type(odd) .grid-cell { background: rgba(255,255,255,0.95); }
.pm-feature-comparison-grid .grid-row:nth-of-type(even) .grid-cell { background: rgba(37,99,235,0.03); }
.pm-feature-comparison-grid .grid-row:hover .grid-cell { background: rgba(37,99,235,0.06); }

/* Emphasize PM Hub column */
.pm-feature-comparison-grid .grid-col-pmhub {
  background: rgba(37,99,235,0.06);
  border-left: 3px solid var(--primary-color);
  font-weight: 600;
  position: relative;
}
.pm-feature-comparison-grid .grid-col-pmhub::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--secondary-color);
  margin-right: 8px;
  position: absolute;
  left: 12px;
}
.pm-feature-comparison-grid .grid-col-pmhub { padding-left: 32px; }

/* Feature/Capability column visuals */
.pm-feature-comparison-grid .grid-col-feature {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.pm-feature-comparison-grid .grid-col-feature::before {
  content: '\f0a4'; /* list-alt icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #374151;
}

/* "Other solutions" column subtle icon */
.pm-feature-comparison-grid .grid-col-other::before {
  content: '\f00c'; /* check icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #9ca3af;
  margin-right: 8px;
}

@media (max-width: 767px) {
  .pm-feature-comparison-grid {
    grid-template-columns: 1fr;
    padding: 0 8px;
  }
  .pm-feature-comparison-grid .grid-header {
    display: grid;
    grid-template-columns: 1fr;
  }
  .pm-feature-comparison-grid .grid-header .grid-cell {
    border-bottom: none;
    background: transparent;
    padding: 8px 12px 0;
  }
  .pm-feature-comparison-grid .grid-row {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 8px 0;
    overflow: hidden;
  }
  .pm-feature-comparison-grid .grid-cell {
    border-bottom: 1px solid #e5e7eb;
  }
  .pm-feature-comparison-grid .grid-col-feature {
    background: #f9fafb;
    font-weight: 600;
  }
  .pm-feature-comparison-grid .grid-col-pmhub {
    border-left: none;
  }
}
.metrics-sliders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.metrics-row {
  display: grid;
  grid-template-columns: 140px 70px 1fr 180px;
  align-items: center;
  gap: 1rem;
}

.metrics-label {
  color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.metrics-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-control-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.user-control-btn:hover { background: var(--accent-color); }
.user-control-btn:disabled { background: #ccc; cursor: not-allowed; }

.metrics-slider { width: 100%; }

.metrics-count {
  text-align: center;
  font-weight: 600;
  min-width: 72px;
}

.metrics-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.metrics-amounts .amount-before,
.metrics-amounts .amount-after {
  display: inline-flex;
  gap: 0.25rem;
  align-items: baseline;
}
.metrics-amounts .amount-after { color: var(--primary-color); font-weight: 600; }

.metrics-total {
  margin: 2rem auto;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  max-width: 720px;
  min-width: 50%;
  text-align: center;
  background: linear-gradient(135deg, transparent, #60c7c2);
  box-shadow: var(--shadow);
  animation: pulseGlow 2s infinite;
}
.metrics-total .total-line {
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
  margin: 0.25rem 0;
  font-size: 1.1rem;
}
.metrics-total .total-label { font-weight: 600; }
.metrics-total .total-before { color: #888; }
.metrics-total .total-before .currency, .metrics-total .total-before #totalAmountBefore { text-decoration: line-through; }
.metrics-total .dont-pay { font-style: italic; margin-left: 0.5rem; }
.metrics-total .total-after { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.metrics-total .total-savings { color: var(--secondary-color); font-weight: 600; }
.metrics-total .savings-percentage { color: var(--accent-color); font-weight: 600; }

.metrics-total .total-actions { margin-top: 0.75rem; }
.get-started-btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--accent-color);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.get-started-btn:hover { background: #d43d25; }

.metrics { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 24px 0; }
.metrics-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.metrics-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.metrics-controls { display: grid; grid-template-columns: 40px 1fr 40px; gap: 12px; align-items: center; }
.control-btn { height: 40px; width: 40px; border-radius: 8px; border: 1px solid #d1d5db; background: #f9fafb; color: #111827; font-size: 20px; line-height: 1; cursor: pointer; transition: all 0.2s ease; }
.control-btn:hover { background: #f3f4f6; }
.metrics-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; color: #374151; }
.amount.before { color: #6b7280; }
.amount.after { color: #111827; font-weight: 600; }

.metrics-total { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 28px 0; }
.totals-wrapper { max-width: 720px; width: 100%; background: rgba(255, 255, 255, 0.2); border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; text-align: center; }
.totals-row { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0; }
.totals-row .total-label { color: #374151; }
.total.before.strikethrough { text-decoration: line-through; color: #9ca3af; }
.totals-row.highlight .total-label { font-size: 18px; font-weight: 600; color: #0f172a; }
.totals-row.highlight .total.after { font-size: 28px; font-weight: 700; color: #2563eb; }
.totals-row.savings { justify-content: center; gap: 8px; color: #065f46; font-weight: 600; }
.totals-row.savings i { color: #065f46; }
#totalsSavingsText { color: #065f46; font-weight: 600; }
.savings-amount { color: #059669; }
.savings-pct { color: #10b981; }
.savings-sep { color: #6b7280; }

.totals-actions { margin-top: 16px; }
.btn.btn-primary.btn-large { display: inline-block; padding: 14px 24px; border-radius: 12px; background: linear-gradient(90deg, #2563eb, #3b82f6); color: #ffffff; font-size: 18px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(37,99,235,0.35); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn.btn-primary.btn-large:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(37,99,235,0.45); }

@media (min-width: 768px) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .metrics-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label count"
      "controls controls"
      "amounts amounts";
    row-gap: 10px;
    align-items: center;
  }
  .metrics-label { grid-area: label; }
  .metrics-count { grid-area: count; justify-self: end; }
  .metrics-controls { grid-area: controls; }
  .metrics-amounts {
    grid-area: amounts;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.pm-btn-get-started {
     background: linear-gradient(159deg, #185B9D 0%, #185B9D 30%, #42CCA2 100%);
    color: white;
    border: none;
    font-size: 1.4em;    
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 7px;
}

.pm-btn-get-started:hover {
   background: linear-gradient(-159deg, #185B9D 0%, #185B9D 30%, #42CCA2 100%);
   
}

.pm-wealth-price {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}
.metrics-row .metrics-count { text-align: right; }
.metrics-amounts .amount-before, .metrics-amounts .amount-after { justify-content: flex-end; }
#totalsSavingsRow { color: #fff; }
#totalsSavingsText { color: #fff; font-weight: 700; }
/* Currency styling for totals rows */
#price-before-discount { font-size: 20px; }
.amount-before .currency { text-decoration: line-through; color: #9ca3af; }
.metrics-row .metrics-count { font-size: 1rem; }
.totals-row.highlight .discounted-price { font-size: 28px; font-weight: 700; color: var(--primary-color); }
.totals-row.highlight .currency { font-size: 28px; font-weight: 700; color: var(--primary-color); }
