/* Pricing interval toggle (Monthly | Annual) + the per-month/annual price swap on the
   landing plan cards. State lives on .plans[data-interval="month|year"]; js/pricing-toggle.js
   flips it and swaps [data-month]/[data-year] text. */

.plans-toolbar { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.interval-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.interval-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2); cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease;
}
.interval-btn:hover { color: var(--ink); background: var(--surface-2); }
.interval-btn.is-on { background: var(--sidebar); color: #fff; }
.interval-btn .save {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: var(--r-pill);
  color: var(--aqua); background: color-mix(in srgb, var(--aqua) 12%, transparent);
}
.interval-btn.is-on .save { color: var(--mint); background: rgba(255, 255, 255, 0.14); }

/* the amount inside .price must not pick up the muted "/ month" span styling */
.plan .price .amt { font: inherit; color: inherit; }

/* billed-line: always in the flow so every card keeps the same rhythm; the annual copy is
   only revealed in the annual state (visibility, not display, so the height is reserved). */
.plan .price-sub {
  min-height: 1.35em; margin-bottom: 8px;
  font-size: 0.82rem; color: var(--muted); line-height: 1.35;
  transition: opacity 0.18s ease;
}
.plan .price-sub-annual { white-space: nowrap; }   /* one line always — the reserved height stays equal across cards */
.plans[data-interval="month"] .price-sub-annual { visibility: hidden; opacity: 0; }
.plans[data-interval="year"] .price-sub-annual { color: var(--aqua); font-weight: 500; }

/* "Good to know" facts under the pricing cards */
.plans-goodtoknow { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plans-goodtoknow .gtk { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 16px; }
.plans-goodtoknow .gtk b { display: block; font-size: 0.8rem; color: var(--ink); margin-bottom: 4px; }
.plans-goodtoknow .gtk span { font-size: 0.8rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 900px) { .plans-goodtoknow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plans-goodtoknow { grid-template-columns: 1fr; } }
