/* ============================================
   GrapoliX Pricing Component
   DESIGN.md — UI Components — PRICING TABLE
   ============================================ */

/* ── Pricing Grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

/* ── Pricing Card ── */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px;
  position: relative;
  transition: border-color 200ms ease, transform 200ms ease;
}

.pricing-card:hover {
  border-color: rgba(232, 213, 163, 0.3);
  transform: translateY(-2px);
}

/* ── Featured Pricing Card ── */
.pricing-card--featured {
  border-color: rgba(232, 213, 163, 0.4);
  background: rgba(22, 20, 16, 0.9);
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 5px 16px;
  border-radius: 0 0 3px 3px;
  white-space: nowrap;
}

/* ── Plan Name ── */
.pricing-card__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.pricing-card--featured .pricing-card__name {
  color: var(--gold);
}

/* ── Price ── */
.pricing-card__price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-card__currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
}

.pricing-card__amount {
  font-size: 56px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -2px;
}

.pricing-card__period {
  font-size: 12px;
  color: var(--muted);
  align-self: flex-end;
  margin-bottom: 8px;
}

/* ── Price Description ── */
.pricing-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* ── Feature List ── */
.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.pricing-card__feature::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l4 4 6-6' stroke='%23E8D5A3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1px;
}

.pricing-card__feature--unavailable {
  color: var(--muted);
  opacity: 0.5;
}

.pricing-card__feature--unavailable::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%238A8A8E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
