/* ============================================================
   prices.css — Public prices page (free plan, billing toggle, cards)
   Matches project design system (main.css, home.css)
   ============================================================ */

/* ── Paddle info banner (bottom of pricing page, before cta-block) ─ */
.prices-paddle-banner {
  margin-top: 24px;
  margin-bottom: 0;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--muted);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  text-align: center;
}
[data-theme="dark"] .prices-paddle-banner {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
.prices-paddle-banner a {
  color: inherit;
  text-decoration: underline;
}
.prices-btn-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.prices-btn-disabled:hover {
  cursor: not-allowed;
}

/* ── Billing toggle ───────────────────────────────────────── */
.prices-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.prices-toggle {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  box-shadow: var(--shadow);
}
[data-theme="dark"] .prices-toggle {
  background: var(--white);
  border-color: var(--border);
}
.prices-toggle-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.prices-toggle-btn:hover {
  color: var(--text);
}
.prices-toggle-btn.active {
  background: var(--primary);
  color: #fff;
}
.prices-toggle-btn.active:hover {
  color: #fff;
  background: var(--accent);
}
.prices-save-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 100px;
}
[data-theme="dark"] .prices-save-badge {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
}
.prices-save-badge--monthly {
  border: 1px solid rgb(163 22 22 / 30%);
  color: #ff0000;
  background: rgb(163 22 22 / 30%);
  text-decoration: line-through;
}
[data-theme="dark"] .prices-save-badge--monthly {
  border-color: rgb(163 22 22 / 40%);
  background: rgb(163 22 22 / 25%);
}

/* ── Prices page wrapper (centered) ────────────────────────── */
.prices-page-content {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Pricing cards grid ──────────────────────────────────── */
.prices-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}
@media (min-width: 640px) {
  .prices-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .prices-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Pricing card ─────────────────────────────────────────── */
.prices-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-rows: 1fr auto auto;
  transition: box-shadow 0.2s, border-color 0.2s;
  height: 100%;
}
[data-theme="dark"] .prices-card {
  background: var(--white);
  border-color: var(--border);
}
.prices-card:hover {
  box-shadow: var(--shadow-md);
}
.prices-card-top {
  /* Row 1 – grows to align action block across cards */
}
.prices-card-action {
  /* row 2 – aligns across cards */
}
.prices-card.prices-card--popular {
  position: relative;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
[data-theme="dark"] .prices-card.prices-card--popular {
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.18);
}
.prices-card-badge {
  position: absolute;
  top: 5px;
  right: -25px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 15px;
  text-align: center;
  transform: rotate(30deg);
}
.prices-card.prices-card--popular {
  /* padding-top: 52px; */
}
.prices-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}
.prices-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.prices-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.prices-card-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.prices-card-price-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.prices-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  margin-top: 20px;
  height: 150px;
}
.prices-card-features li {
  font-size: 0.875rem;
  color: var(--subtle);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}
.prices-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.prices-card-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.prices-card-cta.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.prices-card-cta.btn-outline:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
}
.prices-card-cta.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}
.prices-card-cta.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}
.prices-card-cta.btn-primary.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.prices-promo-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 28px;
}

/* ── Selectable component (One Component plan) ─────────────── */
.prices-component-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 8px;
}
.prices-component-option:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.04);
}
.prices-component-option.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}
[data-theme="dark"] .prices-component-option.selected {
  background: rgba(59, 130, 246, 0.12);
}
.prices-component-option input {
  margin: 0;
  accent-color: var(--primary);
}
.prices-component-option-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Invite discount banner & badge ───────────────────────────── */
.prices-invite-banner {
  padding: 12px 16px;
  margin-bottom: 20px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
[data-theme="dark"] .prices-invite-banner {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
}
.prices-invite-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--success);
  background: rgba(22, 163, 74, 0.12);
  border-radius: 100px;
}
[data-theme="dark"] .prices-invite-badge {
  background: rgba(34, 197, 94, 0.15);
}
