/* Plans page */

.plans-intro {
  margin-bottom: var(--space-10);
  max-width: 600px;
}

.plans-intro h1 {
  color: var(--color-brand-text);
}

.plans-intro p {
  color: var(--color-muted);
  font-size: var(--text-lg);
  margin-top: var(--space-3);
}

/* Comparison table — plans layout */
.plans-table-wrapper {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-10);
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

.plans-table {
  background: var(--color-surface);
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 600px;
  width: 100%;
}

/* Column headers — plan names */
.plans-table thead th {
  background: var(--color-brand);
  border-right: 1px solid rgb(255 255 255 / 10%);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  vertical-align: top;
}

.plans-table thead th:first-child {
  background: #162e23; /* slightly darker for the feature-label column */
  text-align: left;
  width: 40%;
}

.plans-table thead th:last-child {
  border-right: none;
}

.plan-name {
  color: var(--color-white);
  display: block;
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-1);
}

.plan-price {
  color: var(--color-gold-light);
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.plan-price-sub {
  color: rgb(255 255 255 / 60%);
  font-size: var(--text-xs);
  font-style: italic;
  font-weight: 400;
}

.plan-tagline {
  color: rgb(255 255 255 / 70%);
  display: block;
  font-size: var(--text-xs);
  font-style: italic;
  margin-top: var(--space-2);
}

/* Recommended badge */
.plan-recommended {
  background: var(--color-gold-light);
  border-radius: var(--radius-pill);
  color: var(--color-brand);
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-top: var(--space-2);
  padding: 0.15rem 0.55rem;
  text-transform: uppercase;
}

/* Row headers — feature names */
.plans-table tbody th[scope='row'] {
  background: var(--color-table-header-cell);
  border-right: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  vertical-align: middle;
}

.feature-hint {
  color: var(--color-muted);
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  margin-top: 2px;
}

/* Value cells */
.plans-table tbody td {
  border-right: 1px solid var(--color-border);
  color: var(--color-text);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  vertical-align: middle;
}

.plans-table tbody td:last-child {
  border-right: none;
}

.plans-table tbody tr:nth-child(even) {
  background: var(--color-table-stripe);
}

/* Check / cross marks */
.check {
  color: var(--color-success);
  font-size: var(--text-lg);
}

.cross {
  color: var(--color-cross-mark);
  font-size: var(--text-lg);
}

/* CTA row */
.plans-table tfoot td {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: var(--space-5);
  text-align: center;
}

.plans-table tfoot td:last-child {
  border-right: none;
}

.plans-table tfoot td:first-child {
  background: var(--color-table-header-cell);
  border-right: 1px solid var(--color-border);
}

/* FAQ section */
.faq {
  max-width: var(--content-width);
}

.faq h2 {
  color: var(--color-brand-text);
  margin-bottom: var(--space-6);
}

details {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: var(--text-base);
  font-weight: 600;
  gap: var(--space-4);
  justify-content: space-between;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  color: var(--color-brand-text);
  content: '+';
  flex-shrink: 0;
  font-size: var(--text-xl);
  transition: transform var(--transition-fast);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
}
