/* The pricing page, on top of landing.css.
 *
 * Its own file rather than more of landing.css: the landing page is one long
 * argument and this is a comparison table, which is a different job. Sharing
 * the palette and the faces is the point; sharing the layout rules is not. */

h1 {
  font: 400 clamp(2.6rem, 7vw, 3.6rem)/0.95 'Bebas Neue', ui-sans-serif, sans-serif;
  letter-spacing: 0.02em; text-transform: uppercase; margin: 2.5rem 0 1rem;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 40rem; margin: 0 0 3rem; }

.tiers {
  list-style: none; padding: 0; margin: 0 0 4rem;
  display: grid; gap: 1.25rem;
}
/* Two up before four up. Four 1fr columns at 52rem gives each tier about
 * 12rem, which sets the feature list at four or five words a line and turns a
 * comparison into a wall of ragged text. */
@media (min-width: 44rem) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .tiers { grid-template-columns: repeat(4, 1fr); } }

.tier {
  display: flex; flex-direction: column;
  border: 1px solid var(--edge); border-radius: 12px;
  background: var(--bg2); padding: 1.75rem 1.5rem;
}
/* The middle tier is the one most people should be on, so it is the one the
 * eye lands on. An accent border rather than a "Most popular" ribbon: we have
 * no popularity data, and inventing some to sell a tier is the kind of small
 * lie this product exists to argue against. */
.tier-featured { border-color: var(--accent); }

.tier h2 {
  font: 400 1.5rem/1 'Bebas Neue', ui-sans-serif, sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.75rem;
}
.price {
  font-size: 2.1rem; font-weight: 600; margin: 0 0 0.25rem; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price span {
  display: block; font-size: 0.8rem; font-weight: 400; color: var(--faint);
  letter-spacing: 0.04em;
}
.blurb { color: var(--muted); font-size: 0.92rem; margin: 0.75rem 0 1.25rem; }

.feat { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.feat li {
  position: relative; padding-left: 1.4rem; margin-bottom: 0.55rem;
  font-size: 0.92rem; color: var(--muted);
}
.feat li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.5rem; height: 0.5rem; border-radius: 1px;
  background: var(--accent); opacity: 0.55;
}
.tier .btn { text-align: center; }

.faq { max-width: 42rem; border-top: 1px solid var(--edge); padding-top: 2.5rem; }
.faq h2 {
  font: 400 1.15rem/1 'Bebas Neue', ui-sans-serif, sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 2rem 0 0.6rem;
}
.faq h2:first-child { margin-top: 0; }
.faq p { color: var(--muted); margin: 0; }

footer {
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--edge);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  color: var(--muted); font-size: 0.85rem;
}
footer nav { margin-left: auto; display: flex; gap: 1rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }


/* --- The Enterprise calculator ------------------------------------------
 *
 * A usage tier cannot be sold with a number, so this is the number. It is
 * worked out with the ladder the biller uses, serialized into the page from
 * the same catalog — the page and the invoice cannot disagree.
 */
.calc {
  border: 1px solid var(--edge); border-radius: 12px;
  background: var(--bg2); padding: 2rem 1.75rem; margin: 0 0 4rem;
}
.calc h2 {
  font: 400 1.6rem/1 'Bebas Neue', ui-sans-serif, sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.5rem;
}
.calc-lede { color: var(--muted); max-width: 42rem; margin: 0 0 2rem; }

.calc-grid { display: grid; gap: 1.75rem; margin: 0 0 2rem; }
@media (min-width: 44rem) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }

.calc-field { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; align-items: center; }
.calc-label { font-size: 0.9rem; color: var(--ink); }
.calc-field output {
  font-size: 1.35rem; font-weight: 600; color: var(--accent);
  font-variant-numeric: tabular-nums; text-align: right; min-width: 3.5ch;
}
.calc-field input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.calc-hint { grid-column: 1 / -1; font-size: 0.78rem; color: var(--faint); }

.calc-out { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.calc-out th {
  text-align: left; font-weight: 400; color: var(--muted);
  padding: 0.5rem 0; border-bottom: 1px solid var(--edge);
}
.calc-out td {
  text-align: right; color: var(--ink);
  padding: 0.5rem 0; border-bottom: 1px solid var(--edge);
}
.calc-out tfoot th, .calc-out tfoot td {
  border-bottom: 0; padding-top: 0.9rem; font-size: 1.25rem; color: var(--ink);
}
.calc-out tfoot td { font-weight: 600; }
.calc-note { color: var(--faint); font-size: 0.85rem; margin: 1.25rem 0 0; }
