/* Product pricing uses the shared site palette, with distinct offer accents. */

body[data-page="pricing"] .pricing-hero {
  padding-block: clamp(3rem, 6vw, 5rem) 2.5rem;
}

body[data-page="pricing"] .pricing-hero h1 {
  max-width: 22ch;
  margin: 1.25rem 0;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.08;
}

body[data-page="pricing"] .pricing-hero .lede {
  max-width: 60ch;
}

.pricing-comparison {
  padding-block: 1rem 3rem;
}

.pricing-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: .5rem;
}

.pricing-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .9375rem;
}

.pricing-table caption {
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--dim);
  border-bottom: 1px solid var(--rule);
}

.pricing-table :is(th,td) {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.pricing-table thead th {
  color: var(--white);
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  font-size: 1.125rem;
}

.pricing-table th:first-child {
  width: 32%;
}

.pricing-table tbody th {
  color: var(--white);
  font-weight: 500;
}

.pricing-table td {
  color: var(--dim);
}

.plan-unavailable {
  color: var(--dim);
  font-size: .8125rem;
}

.plan-check {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  color: var(--cyan);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-table tbody tr + tr > * {
  border-top: 1px solid var(--rule);
}

.pricing-table tbody tr:first-child > * {
  background: var(--panel);
}

.pricing-scroll-hint {
  display: none;
  margin-bottom: .75rem;
  color: var(--dim);
  font-size: .875rem;
}

.pricing-plan-note {
  max-width: 85ch;
  margin-top: 1rem;
  color: var(--dim);
  font-size: .875rem;
}

#demo {
  scroll-margin-top: 6rem;
}

.pricing-contact {
  margin-top: 2rem;
}

.pricing-usage p {
  font-size: .875rem;
}

.pricing-usage {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.pricing-usage h3 {
  font-size: 1.125rem;
}

@media (max-width: 900px) {
  .pricing-scroll-hint {
    display: block;
  }
}

@media (max-width: 640px) {
  .pricing-usage {
    grid-template-columns: minmax(0,1fr);
    gap: 1rem;
  }
}
