/* ============ PLANS & PRICING PAGE — builds on css/styles.css theme tokens ============ */
body { display: flex; flex-direction: column; min-height: 100vh; }
.plans-main { flex: 1; padding: 52px 0 72px; }

/* ---- hero ---- */
.plans-hero { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.plans-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--brand-bright);
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-dim);
  border: 1px solid rgba(255, 168, 7, 0.26);
  margin-bottom: 18px;
}
.plans-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 10px var(--brand-bright);
}
.plans-title {
  font-size: 46px; font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05;
  color: var(--text);
}
.plans-title .grad,
.sales-title .grad {
  background: var(--accent-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.plans-sub {
  margin-top: 14px;
  font-size: 15.5px; color: var(--text-muted); line-height: 1.6;
}

/* ---- personal / enterprise toggle ---- */
.plans-toggle {
  display: inline-flex; gap: 4px;
  margin-top: 28px; padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.plans-toggle-btn {
  padding: 9px 26px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  color: var(--text-muted); transition: 160ms;
}
.plans-toggle-btn:hover { color: var(--text); }
.plans-toggle-btn.active {
  background: var(--accent-gradient);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(253, 29, 96, 0.75);
}

/* ---- panels ---- */
.plans-panel { display: none; }
.plans-panel.active { display: block; animation: fadeIn 250ms ease-out; }

/* ---- plan cards ---- */
.plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; align-items: stretch;
  max-width: 1080px; margin: 0 auto;
}
.plan-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.plan-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 26px 54px -30px rgba(0, 0, 0, 0.85);
}
.plan-card.featured {
  border-color: rgba(253, 29, 96, 0.38);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(253, 29, 96, 0.10), transparent 55%),
    var(--surface);
  box-shadow: 0 24px 60px -28px rgba(253, 29, 96, 0.38);
}
.plan-card.featured:hover {
  border-color: rgba(253, 29, 96, 0.55);
  box-shadow: 0 30px 68px -28px rgba(253, 29, 96, 0.48);
}
.plan-card.featured::before {
  content: ""; position: absolute;
  top: 0; left: 22px; right: 22px; height: 3px;
  background: var(--accent-gradient);
  background-size: 200% auto;
  border-radius: 0 0 3px 3px;
}
.plan-badge {
  position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px;
  background: var(--accent-gradient);
  background-size: 200% auto;
  color: #fff;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(253, 29, 96, 0.7);
}

.plan-head { margin-bottom: 20px; }
.plan-name {
  font-size: 30px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em; line-height: 1.05;
}
/* the featured tier's name carries the accent gradient, like the hero title */
.plan-card.featured .plan-name {
  background: var(--accent-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.plan-tag { font-size: 13px; color: var(--text-muted); margin-top: 5px; }

/* ---- price ---- */
.plan-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 18px; }
.price-num {
  font-size: 44px; font-weight: 800;
  color: var(--text); letter-spacing: -0.04em; line-height: 1;
}
.price-cents { font-size: 22px; font-weight: 700; color: var(--text-muted); letter-spacing: -0.02em; }
.price-cur { font-size: 22px; font-weight: 700; color: var(--brand-bright); }
.price-per { font-size: 13px; color: var(--text-subtle); }

/* ---- headline quota chips ---- */
.plan-quota {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-faint);
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 8px;
}
.plan-quota svg { color: var(--brand-bright); flex-shrink: 0; }
.plan-quota b { color: var(--text); font-family: var(--mono); font-weight: 600; font-size: 13.5px; }
.plan-card.featured .plan-quota { border-color: rgba(253, 29, 96, 0.18); }
.plan-card.featured .plan-quota svg { color: var(--danger-bright); }

/* ---- feature list ---- */
.plan-feats {
  list-style: none;
  margin: 14px 0 22px; padding: 16px 2px 0;
  border-top: 1px solid var(--border-faint);
  display: flex; flex-direction: column; gap: 11px;
  flex: 1;
}
.plan-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text-muted); line-height: 1.45;
}
.feat-check {
  width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--success-bg); color: var(--success);
  margin-top: 1px;
}
.plan-cta { justify-content: center; }
.btn-block { width: 100%; }

/* ---- coming-soon pill (feature lists + included band) ---- */
.soon-pill {
  display: inline-block; vertical-align: 1px;
  padding: 2px 8px; margin-left: 2px;
  border-radius: 999px;
  background: var(--brand-dim);
  border: 1px solid rgba(255, 168, 7, 0.28);
  color: var(--brand-bright);
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.09em;
  line-height: 1.5; white-space: nowrap;
}

/* ---- "included in every paid plan" band ---- */
.included-card {
  max-width: 1080px; margin: 26px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 20px 24px 24px;
  background: var(--bg-soft);
}
.included-tile {
  position: relative;
  padding: 18px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-faint);
  border-radius: 13px;
  transition: 170ms;
}
.included-soon { position: absolute; top: 12px; right: 12px; margin-left: 0; }
.included-tile:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
  transform: translateY(-3px);
}
.included-ico {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 13px;
  background: var(--brand-dim); color: var(--brand-bright);
  box-shadow: 0 0 22px -8px rgba(255, 168, 7, 0.45);
}
.included-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.included-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

/* ---- enterprise cards ----
 * The enterprise tier carries a gold/brand identity to set it apart from the
 * pink personal tab: the recommended card glows orange, and the quota chips
 * become proper stat tiles. */
.plan-card.ent-featured {
  border-color: rgba(255, 168, 7, 0.38);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 168, 7, 0.10), transparent 55%),
    var(--surface);
  box-shadow: 0 24px 60px -28px rgba(255, 168, 7, 0.38);
}
.plan-card.ent-featured:hover {
  border-color: rgba(255, 168, 7, 0.55);
  box-shadow: 0 30px 68px -28px rgba(255, 168, 7, 0.48);
}
.plan-card.ent-featured::before {
  content: ""; position: absolute;
  top: 0; left: 22px; right: 22px; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright), var(--brand));
  border-radius: 0 0 3px 3px;
}
.plan-card.ent-featured .plan-name {
  background: linear-gradient(to right, var(--brand-bright), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.plan-badge.gold {
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  color: #1a0d05;
  box-shadow: 0 10px 24px -10px rgba(255, 168, 7, 0.7);
}
.btn-gold {
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  background-size: 200% auto;
  color: #1a0d05;
  box-shadow: 0 12px 26px -15px rgba(255, 168, 7, 0.85);
}
.btn-gold:hover { background-position: right center; transform: translateY(-1px); }

/* quota stat tiles (API calls / seats) */
.ent-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-bottom: 8px;
}
.ent-stat {
  padding: 14px 15px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border-faint);
  border-radius: 12px;
  transition: 160ms;
}
.ent-stat:hover { border-color: var(--border-strong); }
.ent-stat svg { color: var(--brand-bright); margin-bottom: 11px; }
.ent-stat-num {
  font-family: var(--mono); font-size: 23px; font-weight: 600;
  color: var(--text); letter-spacing: -0.02em; line-height: 1;
}
.ent-stat-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-subtle); margin-top: 6px;
}
.plan-card.ent-featured .ent-stat { border-color: rgba(255, 168, 7, 0.2); }

/* sales banner */
.ent-banner {
  max-width: 1080px; margin: 26px auto 0;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(130% 130% at 0% 0%, rgba(255, 168, 7, 0.13), transparent 55%),
    var(--surface);
  border: 1px solid rgba(255, 168, 7, 0.25);
}
.ent-banner-ico {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--brand-dim); color: var(--brand-bright);
  display: grid; place-items: center;
  box-shadow: 0 0 32px -8px rgba(255, 168, 7, 0.55);
}
.ent-banner-text { flex: 1; min-width: 260px; }
.ent-banner-title { font-size: 16.5px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.ent-banner-desc { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.55; }
.ent-banner .btn { flex-shrink: 0; }

/* ---- contact-sales modal ----
   Shell classes (vx-modal-*) come from styles.css; the centered gradient
   header mirrors the page hero. Opened by the [data-sales-open] CTAs. */
.sales-head {
  text-align: center;
  margin: 6px 0 20px;
  padding: 0 10px;
}
.sales-title {
  font-size: 23px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.15;
  color: var(--text);
  margin: 0 0 10px;
}
.sales-sub {
  max-width: 360px; margin: 0 auto;
  font-size: 13.5px; line-height: 1.6; color: var(--text-muted);
}
.sales-mail-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 168, 7, 0.3);
  border-radius: var(--radius);
  color: var(--brand-bright);
}
.sales-mail-addr {
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px; font-weight: 600; color: var(--text);
  user-select: all;
}
.sales-mail-copy {
  padding: 6px 12px;
  font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 700;
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; transition: 150ms;
}
.sales-mail-copy:hover { color: var(--text); border-color: rgba(255, 168, 7, 0.45); }
.sales-mail-copy.ok { color: #4DD89C; border-color: rgba(77, 216, 156, 0.45); }
.sales-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}
.sales-list li {
  position: relative; padding-left: 20px;
  font-size: 13px; line-height: 1.55; color: var(--text-muted);
}
.sales-list li::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  box-shadow: 0 0 8px rgba(255, 168, 7, 0.5);
}
.sales-note {
  margin: 14px 0 0;
  font-size: 12.5px; color: var(--text-subtle);
}

/* ---- CTA forms (checkout / billing-portal POSTs) ----
   display:contents removes the form box from layout, so the button sits in
   the card's flex column exactly like the anchor CTAs. */
.plan-cta-form { display: contents; }
.plan-cta[disabled] { opacity: 0.55; cursor: default; }

/* ---- billing notice (?billing= / ?checkout= redirects) ---- */
.plans-notice {
  max-width: 640px; margin: 18px auto 0;
  padding: 11px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13.5px; color: var(--text-muted); line-height: 1.5;
  text-align: center;
}
.plans-notice.warn { border-color: rgba(255, 168, 7, 0.45); }

/* ---- footnote ---- */
.plans-footnote {
  margin-top: 34px;
  text-align: center;
  font-size: 12.5px; color: var(--text-subtle);
}

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 480px; }
  .plan-card.featured, .plan-card.ent-featured { order: -1; }
}
@media (max-width: 560px) {
  .plans-title { font-size: 34px; }
  .plans-main { padding-top: 36px; }
}
