/* biaX — /pricing
 * Scoped to .pricing-page. The page also carries .page--demo so it inherits the
 * demo palette (--d-muted / --d-dim) and the demo table rules; nothing here
 * redefines a token another page reads.
 *
 * This page is a fork, not a checkout. There is no payment SDK on biax.app and
 * no card field anywhere in this stylesheet — the store buttons and the educator
 * mailto are the only exits.
 */

/* ── Free strip ────────────────────────────────────────────────────────
 * A strip rather than a fourth column. Free is real and is not hidden, but a
 * column of equal weight would read as a recommendation to stay on it.
 */
.free-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}

.free-strip__tier {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.free-strip__amount {
  font-size: 0.9375rem;
  color: var(--d-muted);
}

.free-strip__line {
  font-size: 0.8125rem;
  color: var(--d-dim);
  margin: 0;
}

/* ── The two paid cards ────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 0.9rem;
}

@media (min-width: 44rem) {
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.4rem;
}

.price-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.price-card__tier {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
}

.price-tag {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.6rem;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--d-muted);
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.price-card__num {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
}

.price-card__per {
  font-size: 0.8125rem;
  color: var(--d-dim);
}

.price-card__line {
  font-size: 0.875rem;
  color: var(--d-muted);
  margin: 0 0 0.9rem;
  line-height: 1.6;
}

.price-card__list {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.price-card__list li {
  font-size: 0.8125rem;
  color: var(--d-muted);
  line-height: 1.55;
  padding-left: 0.9rem;
  border-left: 1px solid var(--border);
}

.price-card__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.price-card__cta .btn {
  flex: 1 1 8rem;
}

/* ── Billing notice ────────────────────────────────────────────────────
 * Sits at the foot of the page, deliberately quiet: dim, prose-width, no card
 * chrome. Buying happens in the store, so this is a disclosure rather than a
 * step. It is also the slot web checkout drops into — when that ships, the
 * store route stays here and only the cards' CTA changes.
 */
.billing-note {
  margin: 0 0 2.25rem;
  max-width: var(--max-prose);
}

.billing-note h2 {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d-dim);
  margin: 0 0 0.6rem;
}

.billing-note p {
  font-size: 0.8125rem;
  color: var(--d-dim);
  line-height: 1.7;
  margin: 0 0 0.6rem;
}

/* ── Comparison table ──────────────────────────────────────────────────
 * Transcribed from app/core/gating_matrix.py. Column order matches the plan
 * rank in app/core/entitlements.py (_PLAN_RANK free < basic < pro).
 */
.cmp__band th {
  color: var(--d-dim);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 1.1rem;
}

.demo-page .cmp td,
.demo-page .cmp th.mark {
  text-align: center;
  white-space: nowrap;
}

.demo-page .cmp tbody th {
  text-align: left;
  font-weight: 300;
  width: 46%;
}

.mark--yes {
  color: var(--text-primary);
}

.mark--no {
  color: var(--d-dim);
}

/* ── Educator band ─────────────────────────────────────────────────────
 * Deliberately not a third column. The buyer is a different person, the unit
 * is a seat rather than an account, and it is not sold through the stores —
 * three differences a column would flatten.
 */
.edu {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  margin: 2.25rem 0 1.25rem;
}

.edu__amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  margin: 0.35rem 0 0.8rem;
}

.edu__num {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1;
}

.edu__per {
  font-size: 0.8125rem;
  color: var(--d-dim);
}

.edu p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0 0 0.7rem;
  max-width: var(--max-prose);
}

.edu__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

/* ── Sign-in row — the doorway biax.app did not have until now ───────── */
.signin {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0.95rem 1.1rem;
  margin-bottom: 2.25rem;
}

.signin p {
  font-size: 0.875rem;
  margin: 0;
}

/* ── FAQ ───────────────────────────────────────────────────────────────
 * <dl> rather than <details>: six short answers are cheaper to read open than
 * to click open, and a collapsed FAQ hides the read-only and cancellation
 * facts, which are the two a buyer is entitled to see without interacting.
 */
.faq {
  margin: 0;
}

.faq dt {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-top: 1.1rem;
}

.faq dt:first-of-type {
  margin-top: 0;
}

.faq dd {
  font-size: 0.875rem;
  color: var(--d-muted);
  line-height: 1.7;
  margin: 0.3rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  max-width: var(--max-prose);
}
