/* Hallmark · page: Pricing · macrostructure: Catalogue (plan ladder) + Conversational FAQ
 * theme: custom "Night + Mint" · nav: N11 · footer: Ft3 + mast
 */

/* Plan ladder — Ember · Spark · Blaze · Inferno */
.plans { display: grid; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr); }
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: var(--space-sm);
  min-width: 0;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  border: var(--rule-width) solid var(--color-rule);
  color: var(--color-ink);
}
.plan--featured { border: 2px solid var(--color-ink); }
.plan__badge {
  position: absolute;
  inset-block-start: calc(var(--space-xs) * -1 - 2px);
  inset-inline-start: var(--space-lg);
  padding: var(--space-3xs) var(--space-xs);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: var(--text-xs);
  font-weight: var(--weight-strong);
  white-space: nowrap;
}
.plan__name { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-xl); }
.plan__who { font-size: var(--text-sm); color: var(--color-muted); }
.plan__price { display: flex; align-items: baseline; gap: var(--space-2xs); }
.plan__amount { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--weight-display); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__period { font-size: var(--text-sm); color: var(--color-muted); }
.plan__desc { font-size: var(--text-sm); color: var(--color-muted); }
.plan__cta { width: 100%; }
.plan--dark { background: var(--color-paper); }

@media (min-width: 40rem) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); } }

/* How billing works */
.billing { display: grid; gap: var(--space-xl); align-items: start; }
.billing__steps { display: grid; gap: var(--space-sm); }
.billing__more { margin-block-start: var(--space-md); font-weight: var(--weight-strong); }
.billing__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2xs) var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-paper-2);
  border: var(--rule-width) solid var(--color-rule);
}
.billing__step h3 { font-size: var(--text-md); }
.billing__step p { grid-column: 2; font-size: var(--text-sm); color: var(--color-muted); }
.billing__step .card__mark { margin-block-start: 0.55em; }
.billing__shot { margin: 0; }
.billing__shot .shot__frame img { width: 100%; height: auto; }
@media (min-width: 60rem) { .billing { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); } }

/* Partner + API tracks */
.tracks { display: grid; gap: var(--space-md); }
.track { display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-xl); border-radius: var(--radius-lg); border: var(--rule-width) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); }
.track[data-theme="dark"] { background: var(--color-paper); }
.track h3 { font-size: var(--text-xl); }
.track p { color: var(--color-muted); }
.track__models { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.track__model { padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-pill); border: var(--rule-width) solid var(--color-rule); font-family: var(--font-mono); font-size: var(--text-xs); }
.track__ctas { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; margin-block-start: var(--space-2xs); }
@media (min-width: 60rem) { .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Plan comparison — scrolls inside its own frame on small screens; first column stays put */
.compare-section { padding-block-start: 0; }
.compare {
  position: relative; /* keeps the absolutely-positioned .visually-hidden labels inside the scroll box */
  overflow-x: auto;
  border: var(--rule-width) solid var(--color-rule);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
}
.compare:focus-visible { outline: 2px solid var(--color-control); outline-offset: 2px; }
.compare__table { width: 100%; min-width: 46rem; table-layout: fixed; border-collapse: collapse; font-size: var(--text-sm); }
.compare__table th:first-child { width: 28%; }
.compare__table th,
.compare__table td {
  padding: var(--space-xs) var(--space-sm);
  border-block-end: var(--rule-width) solid var(--color-rule);
  text-align: start;
  vertical-align: top;
}
.compare__table tbody tr:last-child > * { border-block-end: 0; }
.compare__table thead th {
  font-family: var(--font-display);
  font-size: var(--text-md);
  letter-spacing: -0.02em;
  background: var(--color-paper-2);
}
.compare__table thead th:first-child { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-strong); color: var(--color-muted); letter-spacing: 0; vertical-align: middle; }
.compare__table tbody th { font-weight: var(--weight-strong); color: var(--color-ink); }
.compare__table td { color: var(--color-muted); font-variant-numeric: tabular-nums; }
.compare__table th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--color-paper); }
.compare__table thead th:first-child { background: var(--color-paper-2); }
.compare__notes { display: grid; gap: var(--space-2xs); margin-block-start: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
