/* Pricing page — dark atmospheric */

:root {
  --bg:        #0d0b14;
  --surface:   #161322;
  --surface2:   #1e1a2e;
  --border:    #2a2540;
  --accent:    #7c5cfc;
  --accent2:   #4a9eff;
  --gold:      #f5c842;
  --text:      #e8e4f0;
  --text-muted:#8a82a0;
  --radius:    12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
}
nav .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
nav .logo span { color: var(--accent); }
nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
nav a:hover { color: var(--text); }

/* HERO */
.pricing-hero {
  text-align: center;
  padding: 80px 24px 40px;
}
.pricing-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #e8e4f0 0%, #7c5cfc 60%, #4a9eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 32px;
}
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.billing-toggle input { display: none; }
.toggle-track {
  width: 44px; height: 24px;
  background: var(--surface2);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
  border: 1px solid var(--border);
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-track.annual { background: var(--accent); border-color: var(--accent); }
.toggle-track.annual::after { transform: translateX(20px); }

/* SAVE BADGE */
.save-badge {
  display: inline-block;
  background: rgba(245, 200, 66, 0.15);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(245,200,66,0.25);
  margin-left: 10px;
  vertical-align: middle;
}

/* PLAN GRID */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 0 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

/* PLAN CARD */
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.plan-card:hover { transform: translateY(-4px); }

.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, #1a1535 0%, var(--surface) 100%);
}
.plan-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #9d7cff);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.plan-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-price {
  margin-bottom: 4px;
}
.plan-price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.plan-price .amount.zero { color: #5fd97a; }
.plan-price .period { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }

.plan-annual-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 20px;
}
.plan-annual-note .save { color: var(--gold); font-weight: 600; }

.plan-credits {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
.plan-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.plan-features li.dim { color: #4a4560; }
.plan-features li.dim::before { color: #4a4560; }

.plan-cta {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  width: 100%;
}
.plan-cta.primary {
  background: var(--accent);
  color: #fff;
}
.plan-cta.primary:hover { background: #6a4ae0; }
.plan-cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.plan-cta.secondary:hover { border-color: var(--accent); color: var(--accent); }

/* BACKUP CARD */
.backup-card {
  grid-column: 1 / -1;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.backup-card .plan-name { color: var(--gold); }

/* FOOTER */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  .pricing-hero { padding: 60px 20px 32px; }
  .pricing-hero h1 { font-size: 2rem; }
  .plans-grid { padding: 0 20px 60px; }
  .plan-card { padding: 24px 20px; }
}