/* ── Pricing Matrix (/pricing) ─────────────────────────── */

/* Section intro narrower column constraint comes from inline style on .pp-section-inner.
   This file styles the comparison matrix itself and its responsive collapse. */

.pricing-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  table-layout: fixed;
}

.pricing-matrix col.pricing-col-label {
  width: 13%;
}
.pricing-matrix col.pricing-col-canva,
.pricing-matrix col.pricing-col-cleaning,
.pricing-matrix col.pricing-col-business,
.pricing-matrix col.pricing-col-marketing,
.pricing-matrix col.pricing-col-bundle {
  width: 17.4%;
}

.pricing-matrix thead th {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  vertical-align: top;
  font-weight: 500;
  color: var(--text);
}
.pricing-matrix thead th.pricing-th-label {
  background: var(--white);
  border-right: 1px solid var(--border);
}
.pricing-matrix thead th.pricing-th-bundle {
  background: var(--navy);
  color: var(--white);
  border-bottom-color: var(--navy);
}

.pricing-tier-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.pricing-th-bundle .pricing-tier-name {
  color: var(--white);
}
.pricing-tier-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  margin-bottom: 0.625rem;
}
.pricing-tier-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}
.pricing-th-bundle .pricing-tier-link {
  color: rgba(255, 255, 255, 0.85);
}
.pricing-tier-link:hover { text-decoration: underline; }

.pricing-matrix tbody th.pricing-row-label {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  position: sticky;
  left: 0;
  z-index: 1;
}

.pricing-matrix tbody td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text);
  vertical-align: top;
  line-height: 1.55;
}
.pricing-matrix tbody td:last-child,
.pricing-matrix thead th:last-child {
  border-right: none;
}
.pricing-matrix tbody tr:nth-child(odd) td {
  background: var(--white);
}
.pricing-matrix tbody tr:nth-child(even) td {
  background: var(--bg-alt);
}
.pricing-matrix tbody tr:last-child td,
.pricing-matrix tbody tr:last-child th.pricing-row-label {
  border-bottom: none;
}

.pricing-cell-bundle {
  background: rgba(26, 43, 74, 0.04) !important;
  border-left: 3px solid var(--navy);
  border-right: none !important;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-block;
  margin-right: 0.5rem;
}
.pricing-strike {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pricing-list li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text);
}
.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

.pricing-row-cta td {
  text-align: center;
  padding: 1.5rem 1rem;
  vertical-align: middle;
}
.pricing-row-cta .pp-buy-btn-sm {
  width: 100%;
  justify-content: center;
}
.pricing-row-cta td.pricing-cell-bundle .pp-buy-btn-sm {
  background: var(--navy);
}
.pricing-row-cta td.pricing-cell-bundle .pp-buy-btn-sm:hover {
  background: #243f6b;
}

.pricing-footnote {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.pricing-footnote a:hover { text-decoration: underline; }

/* ── Responsive: collapse matrix to stacked cards ─────── */
@media (max-width: 900px) {
  .pricing-matrix,
  .pricing-matrix thead,
  .pricing-matrix tbody,
  .pricing-matrix tr,
  .pricing-matrix th,
  .pricing-matrix td {
    display: block;
    border: none;
  }
  .pricing-matrix {
    border: none;
    background: transparent;
    border-radius: 0;
  }
  .pricing-matrix colgroup { display: none; }

  /* Hide the label column in stacked mode */
  .pricing-matrix thead th.pricing-th-label,
  .pricing-matrix tbody th.pricing-row-label {
    display: none;
  }

  /* Each tier becomes a card */
  .pricing-matrix thead tr,
  .pricing-matrix tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    padding: 0;
    overflow: hidden;
  }
  .pricing-matrix tbody tr.pricing-row-cta {
    margin-top: -0.75rem;
  }

  .pricing-matrix thead th {
    display: block;
    background: var(--bg-alt);
    text-align: center;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }
  .pricing-matrix thead th.pricing-th-bundle {
    background: var(--navy);
    border-bottom: 1px solid var(--navy);
  }

  .pricing-matrix tbody td {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 1.25rem;
    text-align: left;
  }
  .pricing-matrix tbody td:last-child {
    border-bottom: none;
  }
  .pricing-matrix tbody tr:nth-child(odd) td,
  .pricing-matrix tbody tr:nth-child(even) td {
    background: var(--white);
  }
  .pricing-cell-bundle {
    border-left: none !important;
    background: rgba(26, 43, 74, 0.04) !important;
  }
  .pricing-row-cta td {
    text-align: center;
    background: var(--bg-alt) !important;
    padding: 1.25rem;
  }
}
