/* Pricing page */

.pricing-page-hero {
  padding: calc(var(--section-pad) - 20px) 0 48px;
  text-align: center;
}

.pricing-page-hero .section-head {
  margin: 0 auto;
  max-width: 640px;
}

.billing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.billing-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 50px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.billing-toggle button {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.billing-toggle button.active {
  background: var(--chip-bg);
  color: #111111;
}

.billing-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.billing-hint strong {
  color: var(--accent);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: var(--section-pad);
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border-color));
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
    var(--shadow, 0 8px 32px rgba(0, 0, 0, 0.07));
}

.price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--chip-bg);
  color: #111111;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.price-card-head {
  margin-bottom: 20px;
}

.price-card-head h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.price-card-head p {
  color: var(--muted);
  font-size: 14px;
  min-height: 42px;
}

.price-amount {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.price-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price-prefix {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}

.price-value .price-number {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.price-value .currency {
  font-size: 28px;
  font-weight: 700;
}

.price-period {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.price-features li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.price-card .btn-primary,
.price-card .btn-secondary {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.pricing-note {
  text-align: center;
  padding-bottom: calc(var(--section-pad) - 20px);
  color: var(--muted);
  font-size: 14px;
}

.pricing-note a {
  color: var(--accent-text, var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .billing-toggle button {
    padding: 10px 16px;
    font-size: 13px;
  }
}

html[data-theme="light"] .price-card,
:root[data-theme="light"] .price-card {
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .price-card.featured,
:root[data-theme="light"] .price-card.featured {
  box-shadow: 0 8px 32px rgba(214, 255, 63, 0.18);
}

html[data-theme="light"] .billing-toggle,
:root[data-theme="light"] .billing-toggle {
  background: var(--bg-surface);
}
