/*
 * pricing.css — pricing page and legal/draft page styles, plus release
 * notes formatting. Split out of the former single site.css (see
 * base.css for tokens/reset/header/nav/buttons) to stay under the repo's
 * 600-line file-size limit. Loaded after base.css, before components.css,
 * on every page — the split changes nothing about the cascade, only which
 * file each rule lives in.
 */

/* ---- Pricing ---- */
.price-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  margin-block: var(--space-5);
}

.price-tile {
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  background: var(--surface);
}

.price-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  color: var(--accent);
  margin-block-end: var(--space-3);
}

.price-tile__icon svg {
  width: 20px;
  height: 20px;
}

.price-tile__figure {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  margin: var(--space-2) 0;
}

.price-tile__figure small {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  color: var(--ink-muted);
}

ol.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--content-width-prose);
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  margin-block-end: 0;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1em;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: var(--weight-bold);
  font-size: var(--text-caption);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Legal / draft ---- */
.legal-body {
  max-width: var(--content-width-prose);
}

.draft-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--warning-tint);
  border: var(--hairline) solid var(--warning-mark);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-block-end: var(--space-6);
}

.draft-banner__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--warning-mark);
  color: var(--warning-tint);
}

.draft-banner__icon svg {
  width: 16px;
  height: 16px;
}

.draft-banner__label {
  display: block;
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  color: var(--warning-text);
  font-weight: var(--weight-bold);
  margin-block-end: var(--space-1);
}

.draft-banner p {
  margin: 0;
  color: var(--ink);
}

/* On a translated legal page: the English text is the one that counts. */
.translation-notice {
  font-size: var(--text-caption);
  color: var(--ink-secondary);
  border-inline-start: 3px solid var(--rule-strong);
  padding-inline-start: var(--space-3);
  margin-block: 0 var(--space-5);
}

.legal-body h2 {
  margin-block-start: var(--space-7);
}

.legal-body pre {
  white-space: pre-wrap;
  background: var(--surface-sunken);
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  color: var(--ink-secondary);
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-4);
  font-size: var(--text-caption);
  background: var(--surface);
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.legal-body th,
.legal-body td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: var(--hairline) solid var(--rule);
  vertical-align: top;
}

.legal-body tr:last-child td {
  border-bottom: none;
}

.legal-body th {
  background: var(--surface-sunken);
  border-bottom: var(--hairline) solid var(--rule-strong);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: var(--ink-secondary);
}

.legal-body tbody tr:hover {
  background: var(--surface-sunken);
}

.placeholder {
  color: var(--ink-muted);
  font-style: italic;
}

.contact-fields {
  background: var(--surface);
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 0 var(--space-5);
  margin: 0;
  max-width: var(--content-width-prose);
}

.contact-fields dt {
  font-weight: var(--weight-semibold);
  padding-block-start: var(--space-4);
  border-top: var(--hairline) solid var(--rule);
}

.contact-fields dt:first-child {
  border-top: none;
}

.contact-fields dd {
  margin: 0;
  padding-block-end: var(--space-4);
  color: var(--ink-muted);
  font-style: italic;
}

/* ---- Release notes ---- */
.feed-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
}

.feed-link:hover {
  color: var(--accent);
}

.feed-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-link__icon svg {
  width: 16px;
  height: 16px;
}

.release-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: var(--content-width-prose);
}

.release-note {
  background: var(--surface);
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5) var(--space-6);
  scroll-margin-top: calc(var(--space-8) + var(--space-4));
}

.release-note__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-block-end: var(--space-2);
}

.release-note__version {
  font-weight: var(--weight-bold);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  color: var(--accent);
  background: var(--accent-tint);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

.release-note__date {
  color: var(--ink-muted);
  font-size: var(--text-caption);
}

.release-note__headline {
  margin: 0 0 var(--space-3);
}

.release-note__headline a {
  color: inherit;
  text-decoration: none;
}

.release-note__headline a:hover {
  text-decoration: underline;
}

.release-note__notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding-inline-start: 1.2em;
  color: var(--ink-secondary);
}

.release-note__notes li {
  margin: 0;
}

