/* ===== Pricing dynamics: billing toggle · Most-Popular · Founding-Member banner =====
   Loaded only by index.html. Colors come from the shared tokens in main.css so the
   section tracks light/dark automatically. No colored edge stripes — meaning is
   carried by the icon, the badge, and the numbers (see the house style). */

/* ── Monthly / annual toggle ─────────────────────────────────────────────── */
.interval-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}
.interval-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.interval-opt {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.interval-opt:hover { color: var(--text); }
.interval-opt:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.interval-opt.is-active {
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.interval-save {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

/* Business seat-picker billing toggle. Reuses the .interval-toggle pill + .interval-save
   badge, but its buttons use .seat-iv (not .interval-opt) so the Pro pricing controller
   never syncs/hijacks them — bindSeatPicker in app.js owns this toggle. */
.seat-interval { display: flex; justify-content: center; margin: 2px 0 14px; }
.seat-iv {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.seat-iv:hover { color: var(--text); }
.seat-iv:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.seat-iv.is-active { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }
.seat-annual-note { text-align: center; font-size: 13px; margin: -6px 0 14px; }
/* Monthly mode keeps the note's box (height) but hides its paint, so toggling the
   billing period never resizes the seat-picker card. visibility (not display) also
   removes the stale annual copy from the a11y tree. */
.seat-annual-note.is-hidden { visibility: hidden; }

/* ── Featured Pro card + "Most Popular" badge ────────────────────────────── */
.price-card-featured {
  position: relative;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--bg);          /* inverts correctly against --primary in both themes */
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.price-sub {
  margin: -8px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}

/* ── Founding-Member banner ──────────────────────────────────────────────── */
.founding-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: 980px;
  margin: 0 auto 26px;
  padding: 20px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.founding-banner-main { flex: 1 1 340px; min-width: 0; }
.founding-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
}
.founding-headline {
  margin: 8px 0 4px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.founding-headline b { color: var(--primary); font-weight: 800; }
.founding-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 62ch;
}
.founding-banner-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}
.founding-seats { display: flex; align-items: baseline; gap: 7px; }
.founding-seats-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.founding-seats-label {
  font-size: 12.5px;
  color: var(--text-soft);
  max-width: 12ch;
  line-height: 1.25;
}
.founding-countdown {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* ── Credit-pack spec (under the pricing grid) ───────────────────────────── */
.credit-note {
  max-width: 460px;
  margin: 22px auto 0;
}
.credit-note-lead {
  margin: 0 0 12px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
}
.credit-note-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  transition: opacity .15s;
}
.credit-note-link:hover { opacity: .8; }
.credit-note-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}
.credit-note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.credit-note-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-soft);
}
.credit-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Price-number flip animation on billing toggle ───────────────────────── */
[data-role="price-amount"],
[data-role="price-unit"] {
  transition: opacity .1s ease;
}
[data-role="price-amount"].price-updating,
[data-role="price-unit"].price-updating {
  opacity: 0;
}

/* ── Upgrade-modal additions ─────────────────────────────────────────────── */
.upgrade-interval { display: flex; justify-content: center; margin: 4px 0 16px; }
.upgrade-founding-note {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--primary);
  font-weight: 600;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .founding-banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
  .founding-banner-meta { flex-direction: row; align-items: center; text-align: left; gap: 14px; }
  .founding-seats-label { max-width: none; }
}
