/* In-app plan surface injected by /billing.js.
   Lives in a real stylesheet because the site CSP allows style attributes but
   not <style> blocks. Colours read the app's own theme tokens (--card,
   --foreground, --vega-accent, --border) so the surface follows light/dark
   without knowing which is active; the fallbacks cover pages outside the app. */
.fs-banner,
.fs-chip,
.fs-overlay {
  --fs-surface: var(--card, #ffffff);
  --fs-text: var(--foreground, #171628);
  --fs-muted: var(--muted-foreground, #585a76);
  --fs-line: var(--border, #d7d9e8);
  --fs-accent: var(--vega-accent, #6d5cf0);
  font: 14px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- shared buttons ---- */
.fs-btn {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 620;
  cursor: pointer;
  white-space: nowrap;
}
.fs-btn-primary { background: var(--fs-accent); color: #fff; }
.fs-btn-primary:hover { filter: brightness(1.08); }
.fs-btn-line { background: transparent; color: var(--fs-text); border-color: var(--fs-line); }
.fs-btn-line:hover { border-color: var(--fs-accent); color: var(--fs-accent); }
.fs-btn[disabled] { opacity: .6; cursor: progress; }

/* ---- top banner ---- */
.fs-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px;
  background: var(--fs-surface);
  color: var(--fs-text);
  border-bottom: 1px solid var(--fs-line);
  box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .5);
}
.fs-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--fs-accent);
}
.fs-banner-msg { flex: 1 1 auto; min-width: 0; color: var(--fs-muted); }
.fs-banner-msg b { color: var(--fs-text); font-weight: 660; }
.fs-banner-cta { flex: 0 0 auto; }
.fs-banner-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--fs-muted);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
  padding: 0 4px;
}
.fs-banner-close:hover { color: var(--fs-text); }
.fs-banner-ok::before { background: #16a34a; }

@media (max-width: 640px) {
  .fs-banner { gap: 10px; padding: 8px 12px; align-items: flex-start; flex-wrap: wrap; }
  .fs-banner-msg { flex-basis: 100%; font-size: 13px; order: 1; }
  .fs-banner-cta { order: 2; padding: 7px 13px; font-size: 13px; }
  .fs-banner-close { order: 3; margin-left: auto; }
}

/* ---- collapsed entry point, so a dismissed banner never hides the plans ---- */
.fs-chip {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  border: 1px solid var(--fs-line);
  border-radius: 999px;
  padding: 9px 17px;
  background: var(--fs-surface);
  color: var(--fs-accent);
  font: inherit;
  font-weight: 640;
  cursor: pointer;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55);
}
.fs-chip:hover { border-color: var(--fs-accent); }

/* ---- plan dialog ---- */
.fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(10, 11, 16, .58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow-y: auto;
}
.fs-dialog {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: var(--fs-surface);
  color: var(--fs-text);
  border: 1px solid var(--fs-line);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  margin: auto;
}
.fs-dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--fs-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.fs-dialog-close:hover { color: var(--fs-text); }
.fs-dialog-head { margin-bottom: 22px; padding-right: 30px; }
.fs-dialog-title { margin: 0 0 7px; font-size: 22px; font-weight: 680; letter-spacing: -.02em; }
.fs-dialog-sub { margin: 0; color: var(--fs-muted); font-size: 14px; max-width: 56ch; }

.fs-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .fs-plans { grid-template-columns: 1fr; } }

.fs-plan {
  border: 1px solid var(--fs-line);
  border-radius: 13px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fs-plan-featured {
  border-color: var(--fs-accent);
  box-shadow: 0 0 0 1px var(--fs-accent) inset;
}
.fs-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fs-plan-name { font-weight: 660; }
.fs-plan-badge {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: var(--fs-accent);
  border-radius: 999px;
  padding: 3px 9px;
}
.fs-plan-price { display: flex; align-items: baseline; gap: 6px; }
.fs-plan-price b { font-size: 32px; font-weight: 680; letter-spacing: -.03em; }
.fs-plan-price span { color: var(--fs-muted); font-size: 13px; }
.fs-plan-note { color: var(--fs-muted); font-size: 12.5px; min-height: 18px; }
.fs-plan-features { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 9px; }
.fs-plan-features li { position: relative; padding-left: 22px; font-size: 13.5px; }
.fs-plan-features li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--fs-accent);
  border-bottom: 2px solid var(--fs-accent);
  transform: rotate(-45deg);
}
.fs-plan .fs-btn { margin-top: auto; width: 100%; }

.fs-dialog-foot { margin: 20px 0 0; color: var(--fs-muted); font-size: 12.5px; }
.fs-dialog-foot a { color: inherit; text-decoration: underline; }

/* Shared bits for /pricing and /pay, layered on top of landing.css. */
.pay-shell { padding: 90px 0 120px; max-width: 640px; }
.pay-shell h1 { font-size: 2.1rem; margin-bottom: 12px; }
.pay-shell p { color: var(--muted); font-size: 1rem; margin-bottom: 14px; }
.pay-note { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); margin-top: 26px; letter-spacing: 0.02em; }
.faq { max-width: 720px; margin: 70px auto 0; }
.faq h2 { font-size: 1.5rem; margin-bottom: 22px; }
.faq dt { font-weight: 620; margin-top: 22px; }
.faq dd { color: var(--muted); margin: 6px 0 0; font-size: 0.95rem; line-height: 1.65; }
.faq a { text-decoration: underline; }
