.pricing-page { padding-bottom: 64px; }

.pricing-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.billing-period {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 0 38px;
  text-align: center;
}

.pricing-status {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.25;
}

.billing-picker {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.billing-picker button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.25;
}

.billing-picker button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
}

.billing-picker span {
  font: 11px/1.25 var(--font-mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
}

.plan {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  min-width: 0;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.plan.featured {
  border-color: var(--accent);
  background: #171e14;
}

[data-theme="light"] .plan.featured {
  background: color-mix(in srgb, var(--surface) 70%, var(--flow-active));
}

.plan-summary, .plan-cost, .allowance {
  display: grid;
  align-content: start;
}

.plan-summary { gap: 10px; }
.plan-cost { min-height: 121px; gap: 7px; }
.plan-cost.enterprise-offer { gap: 12px; }

.plan-label {
  color: var(--secondary);
  font: 10px/1.4 var(--font-mono);
  text-transform: uppercase;
}

.plan.featured .plan-label { color: var(--accent); }

.plan h2, .enterprise-offer h3 {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.plan-description { min-height: 40px; }

.plan-description, .enterprise-offer p, .allowance p {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.4;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
}

.price strong {
  font-size: 50px;
  font-weight: 400;
  line-height: 1.4;
}

.price span, .billing-detail { font-size: 14px; line-height: 1.4; }
.price span { color: var(--secondary); }

.plan-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: auto;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, var(--text));
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.plan-cta.primary, .plan-cta:hover { border-color: var(--accent); }
.plan-cta span { font-size: 18px; }

.allowance {
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.allowance strong {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
}

.plan-features {
  display: grid;
  align-content: start;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.plan-features li::before { content: '✓'; }

.plan-note, .pricing-note {
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.4;
}

.pricing-note {
  margin-top: 24px;
  font-size: 13px;
}

.pricing-note a { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1000px) {
  .plans { column-gap: 12px; }
  .price strong { font-size: 42px; }
  .allowance strong { font-size: 20px; }
}

@media (max-width: 760px) {
  .billing-period { padding: 30px 0 28px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { grid-row: auto; grid-template-rows: none; gap: 20px; }
  .plan-summary { gap: 6px; }
  .plan-cost, .plan-description { min-height: 0; }
  .price strong { font-size: 46px; }
  .pricing-page { padding-bottom: 36px; }
}
