:root {
    --ink: #0f172a; --ink-soft: #334155; --muted: #64748b;
    --line: #e2e8f0; --bg: #ffffff; --bg-soft: #f8fafc;
    --accent: #2563eb; --accent-dk: #1d4ed8; --accent-soft: #dbeafe;
  }
  * { box-sizing: border-box; }
  body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg-soft); line-height: 1.55; }
  header.nav { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
  header.nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; margin-left: 18px; }
  .logo { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
  .logo span { color: var(--accent); }

  .container { max-width: 1000px; margin: 0 auto; padding: 56px 24px; }
  h1 { font-size: 38px; margin: 0 0 8px; letter-spacing: -0.02em; text-align: center; font-weight: 700; }
  p.lead { font-size: 17px; color: var(--ink-soft); text-align: center; margin: 0 0 48px; }

  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; margin: 0 auto; align-items: stretch; }
  .plan .badge.badge-pro { background: #9d2553; }
  .tier-section { margin: 36px 0 48px; }
  .tier-head { max-width: 820px; margin: 0 auto 28px; text-align: center; }
  .tier-title { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
  .tier-title .tier-badge { display: inline-block; margin-left: 8px; padding: 3px 10px; font-size: 12px; font-weight: 600; color: #fff; background: #9d2553; border-radius: 999px; vertical-align: middle; }
  .tier-desc { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
  .tier-features { list-style: none; padding: 0; margin: 0 auto 12px; max-width: 720px; text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; font-size: 13px; color: var(--ink-soft); }
  .tier-features li { padding: 4px 0; display: flex; gap: 8px; }
  .tier-features li::before { content: "✓"; color: #059669; font-weight: 700; flex-shrink: 0; }
  .tier-dot-pro { padding-top: 36px; border-top: 1px solid var(--line); }
  .plan h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
  .plan ul.seats { list-style: none; padding: 0; margin: 12px 0 4px; font-size: 13px; color: var(--ink-soft); }
  .plan ul.seats li::before { content: "👥"; }
  @media (max-width: 700px) {
    .tier-features { grid-template-columns: 1fr; }
  }
  .plans .plan { display: flex; flex-direction: column; }
  .plans .plan ul { flex: 1; }
  .plan { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; position: relative; }
  .plan.featured { border-color: var(--accent); border-width: 2px; box-shadow: 0 16px 32px -16px rgba(37,99,235,.25); }
  .plan .badge { position: absolute; top: -10px; right: 24px; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
  .plan h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
  .plan .desc { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
  .plan .price { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
  .plan .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
  .plan ul { list-style: none; padding: 0; margin: 22px 0 28px; }
  .plan li { padding: 6px 0; font-size: 14px; color: var(--ink-soft); display: flex; gap: 8px; }
  .plan li::before { content: "✓"; color: #059669; font-weight: 700; flex-shrink: 0; }
  .btn { display: block; width: 100%; padding: 12px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; text-align: center; cursor: pointer; border: 0; }
  .btn-primary { background: var(--ink); color: #fff; }
  .btn-primary:hover { background: var(--accent-dk); }
  .btn-primary:disabled { opacity: .6; cursor: not-allowed; }
  .btn-ghost { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }

  .current-plan { text-align: center; margin: 28px 0 -16px; padding: 12px 16px; background: var(--accent-soft); color: var(--accent-dk); border-radius: 10px; font-size: 14px; max-width: 540px; margin-left: auto; margin-right: auto; }
  .err { color: #b91c1c; text-align: center; margin: 12px 0; font-size: 13px; min-height: 18px; }
  .footer { text-align: center; margin-top: 56px; color: var(--muted); font-size: 13px; }

  .enterprise-card { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #f1f5f9; border-radius: 14px; padding: 36px 40px; margin: 36px 0 0; max-width: 1100px; margin-left: auto; margin-right: auto; display: grid; grid-template-columns: 1.2fr 1.5fr auto; gap: 32px; align-items: center; }
  .enterprise-card h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
  .enterprise-card p { margin: 0; font-size: 14px; color: #cbd5e1; line-height: 1.55; }
  .enterprise-features { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
  .enterprise-features ul { list-style: none; padding: 0; margin: 0; }
  .enterprise-features li { padding: 4px 0; font-size: 13px; color: #cbd5e1; display: flex; gap: 8px; }
  .enterprise-features li::before { content: "✓"; color: #34d399; font-weight: 700; flex-shrink: 0; }
  .enterprise-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 180px; }
  .enterprise-cta .btn-primary { background: #fff; color: #0f172a; }
  .enterprise-cta .btn-primary:hover { background: #e2e8f0; }
  .enterprise-meta { font-size: 11px; color: #94a3b8; text-align: center; }
  .enterprise-meta a { color: #cbd5e1; }
  @media (max-width: 900px) {
    .enterprise-card { grid-template-columns: 1fr; padding: 28px; }
    .enterprise-features { grid-template-columns: 1fr; }
    .enterprise-cta { min-width: 0; }
  }

  @media (max-width: 980px)  { .plans { grid-template-columns: 1fr 1fr; max-width: 720px; } }
  @media (max-width: 700px)  { .plans { grid-template-columns: 1fr; max-width: 460px; } h1 { font-size: 28px; } }

/* Inline-style replacements for pricing.html (added 2026-05-06). */
.plan-trial-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.plan-price--custom { font-size: 26px; }
.plan-price--custom small { display: block; font-size: 13px; margin-top: 4px; }
.contact-sales-btn { text-decoration: none; }
.current-plan.is-hidden { display: none; }

/* Cadence toggle (monthly vs annual) — appears above the tier sections */
.cadence-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 32px;
  gap: 4px;
}
.container > .cadence-toggle { display: flex; justify-content: center; width: fit-content; margin-left: auto; margin-right: auto; }
.cadence-btn {
  padding: 8px 22px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cadence-btn.active {
  background: #fff;
  color: #161b26;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.cadence-save {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cadence-btn:not(.active) .cadence-save { background: #ecfdf5; }
