/* The pricing page: the currency switch, the language switch and the table
 * with the limits the server enforces. The rest of the site uses style.css. */

.pricing-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg-raised);
}

.switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.switcher__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: var(--space-1);
}

.switch {
  border: 1px solid var(--line);
  background: var(--bg, #fff);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.switch:hover {
  border-color: var(--brand, #0b6b5f);
}

.switch.is-active {
  background: var(--brand, #0b6b5f);
  border-color: var(--brand, #0b6b5f);
  color: #fff;
}

.switch:focus-visible {
  outline: 2px solid var(--brand, #0b6b5f);
  outline-offset: 2px;
}

.price-usd {
  font-variant-numeric: tabular-nums;
}

.rate-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: var(--space-3) 0 0;
  max-width: 70ch;
}

.limits-table td,
.limits-table th {
  vertical-align: top;
}

.limits-table td:nth-child(2),
.limits-table td:nth-child(3) {
  white-space: normal;
}

.code-ref {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.plan-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  margin-left: 0.4rem;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .pricing-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .limits-table {
    font-size: 0.9rem;
  }
}
