/* terransoul.com/pricing: the billing-term switch and the price table (PRICE-200-1). Colours and type come only from
   tokens.css. The markup is generated by scripts/site/build-pricing.mjs from pricing/terransoul-pricing.json.
   The switch is CSS only, so the page needs no script. A browser without :has() shows the price of every term in each
   cell, each one named: longer, still correct. */
.term-tabs { border: 0; padding: 0; margin: 1.25rem 0 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.term-tabs legend { padding: 0; margin: 0 0 0.6rem; color: var(--ink-soft); font-size: var(--t-small); }
.term-tabs label {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; border: 1px solid var(--rule-strong); border-radius: 999px; cursor: pointer;
}
.term-tabs label:hover { background: var(--paper-sunk); }
.save {
  display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px;
  background: var(--clay-soft); border: 1px solid var(--clay-ring); color: var(--ink);
  font-size: var(--t-small); font-weight: 600; white-space: nowrap;
}
.prices th { white-space: normal; font-weight: 500; }
.prices th[scope=col] { font-weight: 600; }
.prices .term { margin: 0 0 0.6rem; max-width: none; }
.prices .term:last-child { margin-bottom: 0; }
.prices .amount { font-family: var(--serif); font-size: var(--t-h3); color: var(--ink); white-space: nowrap; }
.prices s { color: var(--ink-faint); }

@supports selector(:has(*)) {
  .term-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
  .term-tabs label:has(input:checked) { background: var(--clay); border-color: var(--clay); color: var(--on-clay); }
  .term-tabs label:has(input:checked) .save { background: transparent; border-color: currentColor; color: inherit; }
  .term-tabs label:has(input:focus-visible) { outline: 2px solid var(--clay); outline-offset: 2px; }
  /* One term at a time: its name is on the switch, so the name inside the cell is dropped. */
  .prices .term { display: none; margin: 0; }
  .prices .term b { display: none; }
  .price-terms:has(.term-tabs label:nth-of-type(1) input:checked) .t1,
  .price-terms:has(.term-tabs label:nth-of-type(2) input:checked) .t2,
  .price-terms:has(.term-tabs label:nth-of-type(3) input:checked) .t3,
  .price-terms:has(.term-tabs label:nth-of-type(4) input:checked) .t4 { display: block; }
}
/* TS-PRICE-VS-ODOO-ZOHO: the signed-in-only comparison button and its table (site/assets/price-compare.js). */
#price-compare { margin-top: 1.25rem; }
#price-compare .btn.small { font-size: var(--t-small); padding: 0.35rem 0.8rem; }
#price-compare .compare-panel { margin-top: 0.75rem; }
#price-compare .compare { width: 100%; }
