/* pricing.html — standalone (Plus Jakarta Sans, own header/footer) */
:root {
  --deep-indigo: #3730a3;
  --deep-indigo-600: #4f46e5;
  --deep-indigo-500: #6366f1;
  --deep-indigo-100: #e0e7ff;
  --deep-indigo-50: #eef2ff;
  --neon-blue: #0ea5e9;
  --neon-blue-500: #3b82f6;
  --white: #ffffff;
  --grey-50: #fafafa;
  --grey-100: #f4f4f5;
  --grey-200: #e4e4e7;
  --grey-300: #d4d4d8;
  --grey-400: #a1a1aa;
  --grey-500: #71717a;
  --grey-600: #52525b;
  --grey-700: #3f3f46;
  --grey-800: #27272a;
  --grey-900: #18181b;
  --footer-bg: #18181b;
  --footer-text: #a1a1aa;
  --footer-heading: #fafafa;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--grey-50); color: var(--grey-900); -webkit-font-smoothing: antialiased; }

.landing-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--grey-200);
}
.landing-nav {
  max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; height: 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.landing-logo {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none;
  color: var(--grey-900); font-weight: 700; font-size: 1.125rem; flex-shrink: 0;
}
.landing-logo-icon {
  width: 2rem; height: 2rem; background: linear-gradient(135deg, var(--deep-indigo) 0%, var(--neon-blue-500) 100%);
  border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
}
.landing-logo-icon svg { width: 1.125rem; height: 1.125rem; color: var(--white); }
.nav-center { display: flex; align-items: center; gap: 2rem; }
.nav-center a { font-size: 0.875rem; font-weight: 500; color: var(--grey-600); text-decoration: none; }
.nav-center a:hover { color: var(--deep-indigo); }
.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-right .link { font-size: 0.875rem; font-weight: 500; color: var(--grey-600); text-decoration: none; }
.nav-right .link:hover { color: var(--grey-900); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600;
  color: var(--white); background: linear-gradient(135deg, var(--deep-indigo) 0%, var(--deep-indigo-600) 100%);
  border-radius: 0.5rem; text-decoration: none; border: none; font-family: var(--font);
  box-shadow: 0 2px 8px rgba(55,48,163,0.35);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 4px 12px rgba(55,48,163,0.4); }
@media (max-width: 768px) { .nav-center { display: none; } }

.pricing-main { padding: calc(4rem + clamp(5rem, 10vw, 7rem)) 1.5rem clamp(4rem, 8vw, 6rem); }

.billing-toggle {
  display: inline-flex; gap: 0.25rem; padding: 0.25rem;
  background: var(--white); border: 1px solid var(--grey-200); border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 2.5rem;
}
.billing-toggle-wrap { display: flex; justify-content: center; }
.billing-toggle button {
  padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600; font-family: var(--font);
  border: none; border-radius: 0.375rem; cursor: pointer;
  background: transparent; color: var(--grey-600);
  transition: background 0.2s, color 0.2s;
}
.billing-toggle button:hover { color: var(--grey-900); }
.billing-toggle button.active { background: linear-gradient(135deg, var(--deep-indigo) 0%, var(--deep-indigo-600) 100%); color: var(--white); }
.billing-toggle button.has-badge { position: relative; padding-right: 1.75rem; }
.billing-toggle .save-badge { position: absolute; top: -0.5rem; right: -0.5rem; background: #22c55e; color: white; font-size: 0.6875rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 9999px; }

.plans-scroll-wrap {
  overflow-x: auto; overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1.5rem; padding: 0 1.5rem 0.5rem;
}
.plans-scroll-wrap::-webkit-scrollbar { height: 6px; }
.plans-scroll-wrap::-webkit-scrollbar-track { background: var(--grey-100); border-radius: 3px; }
.plans-scroll-wrap::-webkit-scrollbar-thumb { background: var(--grey-300); border-radius: 3px; }

.plans-grid {
  display: grid; gap: 1.5rem;
  max-width: 64rem; margin: 0 auto;
}
.plans-grid.plans-grid--3 { grid-template-columns: repeat(3, 1fr); }
.plans-grid.plans-grid--4 {
  grid-template-columns: repeat(4, minmax(280px, 320px));
  width: max-content;
  max-width: 100%;
}
@media (max-width: 900px) {
  .plans-grid.plans-grid--3 { grid-template-columns: 1fr; max-width: 24rem; margin-left: auto; margin-right: auto; }
  .plans-grid.plans-grid--4 { grid-template-columns: 1fr; width: 100%; max-width: 24rem; margin-left: auto; margin-right: auto; }
}
.plan-card {
  background: var(--white); border-radius: 1rem; border: 1px solid var(--grey-200);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  padding: 1.5rem; position: relative; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.plan-card:hover { box-shadow: 0 12px 24px -8px rgba(0,0,0,0.12); border-color: var(--grey-300); }
.plan-card.popular { border-color: var(--deep-indigo-500); box-shadow: 0 0 0 2px var(--deep-indigo-50); }
.plan-card.popular:hover { box-shadow: 0 0 0 2px var(--deep-indigo-100), 0 12px 24px -8px rgba(0,0,0,0.12); }
.plan-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.25rem 0.625rem; border-radius: 9999px;
}
.plan-badge.popular { background: var(--deep-indigo-50); color: var(--deep-indigo-600); }
.plan-badge.custom { background: var(--grey-100); color: var(--grey-700); }
.plan-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.plan-icon.free { background: var(--grey-100); color: var(--grey-600); }
.plan-icon.premium { background: var(--deep-indigo-50); color: var(--deep-indigo-600); }
.plan-icon.enterprise { background: var(--grey-200); color: var(--grey-700); }
.plan-icon svg { width: 1.25rem; height: 1.25rem; }
.plan-name { font-size: 1.25rem; font-weight: 700; color: var(--grey-900); margin: 0 0 0.5rem; }
.plan-card-ai-toggle {
  display: flex; gap: 0.25rem; margin-bottom: 0.75rem;
  padding: 0.2rem; background: var(--grey-100); border-radius: 0.375rem;
}
.plan-ai-btn {
  flex: 1; padding: 0.35rem 0.5rem; font-size: 0.75rem; font-weight: 600; font-family: var(--font);
  border: none; border-radius: 0.25rem; cursor: pointer;
  background: transparent; color: var(--grey-600);
  transition: background 0.2s, color 0.2s;
}
.plan-ai-btn:hover { color: var(--grey-900); }
.plan-ai-btn.active { background: var(--white); color: var(--deep-indigo-600); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.plan-desc { font-size: 0.875rem; color: var(--grey-600); margin: 0 0 1.25rem; line-height: 1.45; }
.plan-price { margin-bottom: 1rem; }
.plan-price .amount { font-size: 1.75rem; font-weight: 800; color: var(--grey-900); }
.plan-price .period { font-size: 0.875rem; color: var(--grey-500); margin-left: 0.25rem; }
.plan-price .per-user { font-size: 0.8125rem; color: var(--grey-500); margin-top: 0.25rem; }
.plan-trial { font-size: 0.8125rem; color: #16a34a; font-weight: 600; margin-bottom: 1rem; }
.plan-cta {
  display: block; width: 100%; padding: 0.75rem 1rem; font-size: 0.9375rem; font-weight: 600; font-family: var(--font);
  text-align: center; text-decoration: none; border-radius: 0.5rem; border: none; cursor: pointer;
  margin-bottom: 1.25rem; transition: filter 0.2s, box-shadow 0.2s;
}
.plan-cta.primary { background: linear-gradient(135deg, var(--deep-indigo) 0%, var(--deep-indigo-600) 100%); color: var(--white); box-shadow: 0 2px 8px rgba(55,48,163,0.35); }
.plan-cta.primary:hover { filter: brightness(1.05); }
.plan-cta.secondary { background: var(--white); color: var(--grey-700); border: 2px solid var(--grey-300); }
.plan-cta.secondary:hover { border-color: var(--grey-400); background: var(--grey-50); }
.plan-cta.dark { background: var(--grey-800); color: var(--white); }
.plan-cta.dark:hover { background: var(--grey-900); }
.plan-features { list-style: none; padding: 0; margin: 0; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--grey-700); margin-bottom: 0.5rem; }
.plan-features li svg { flex-shrink: 0; margin-top: 0.15rem; color: #22c55e; }
.price-monthly, .price-yearly { display: none; }
.price-monthly.show, .price-yearly.show { display: block; }

.pricing-state {
  text-align: center; padding: 3rem 1.5rem;
}
.pricing-state p { margin: 0 0 1rem; color: var(--grey-600); font-size: 1rem; }
.pricing-fail-msg { font-weight: 600; color: var(--grey-900); margin: 0 0 0.25rem; }
.pricing-fail-hint { color: var(--grey-600); font-size: 0.9375rem; margin: 0 0 1rem; }
.pricing-fail-banner { padding: 1.5rem; margin-bottom: 1rem; }

/* Skeleton loader */
.plan-card--skeleton { pointer-events: none; }
.plan-card-skeleton__icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--grey-200) 0%, var(--grey-100) 50%, var(--grey-200) 100%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.plan-card-skeleton__title {
  width: 60%; height: 1.5rem; border-radius: 0.25rem; margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--grey-200) 0%, var(--grey-100) 50%, var(--grey-200) 100%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.plan-card-skeleton__desc {
  display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem;
}
.plan-card-skeleton__desc span {
  display: block; height: 0.75rem; border-radius: 0.25rem;
  background: linear-gradient(90deg, var(--grey-200) 0%, var(--grey-100) 50%, var(--grey-200) 100%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.plan-card-skeleton__desc span:nth-child(1) { width: 100%; }
.plan-card-skeleton__desc span:nth-child(2) { width: 90%; }
.plan-card-skeleton__desc span:nth-child(3) { width: 70%; }
.plan-card-skeleton__price {
  width: 5rem; height: 2rem; border-radius: 0.25rem; margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--grey-200) 0%, var(--grey-100) 50%, var(--grey-200) 100%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.plan-card-skeleton__trial {
  width: 7rem; height: 0.875rem; border-radius: 0.25rem; margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--grey-200) 0%, var(--grey-100) 50%, var(--grey-200) 100%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.plan-card-skeleton__cta {
  width: 100%; height: 2.75rem; border-radius: 0.5rem; margin-bottom: 1.25rem;
  background: linear-gradient(90deg, var(--grey-200) 0%, var(--grey-100) 50%, var(--grey-200) 100%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.plan-card-skeleton__features { list-style: none; padding: 0; margin: 0; }
.plan-card-skeleton__features li {
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem;
}
.plan-card-skeleton__features li span {
  flex: 1; max-width: 100%; height: 0.875rem; border-radius: 0.25rem;
  background: linear-gradient(90deg, var(--grey-200) 0%, var(--grey-100) 50%, var(--grey-200) 100%);
  background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.plan-card-skeleton__features li:nth-child(1) span { width: 85%; }
.plan-card-skeleton__features li:nth-child(2) span { width: 75%; }
.plan-card-skeleton__features li:nth-child(3) span { width: 90%; }
.plan-card-skeleton__features li:nth-child(4) span { width: 70%; }
.plan-card-skeleton__features li:nth-child(5) span { width: 80%; }
.plan-card-skeleton__features li:nth-child(6) span { width: 65%; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.landing-footer { margin-top: 4rem; background: var(--footer-bg); color: var(--footer-text); padding: 2.5rem 1.5rem; }
.landing-footer .footer-inner { max-width: 72rem; margin: 0 auto; text-align: center; }
.footer-brand .logo { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; color: var(--footer-heading); text-decoration: none; }
.landing-footer .footer-bottom { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.landing-footer .footer-bottom p { font-size: 0.8125rem; color: var(--grey-500); margin: 0; }
