.pricing {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 5.5vw, 5.25rem);
  background: #f7f8fa;
}
.pricing [hidden] { display: none; }
.pricing-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.pricing-heading p { color: var(--muted); margin-top: 0.7rem; }
.pricing fieldset { min-inline-size: 0; margin: 0; }
.billing-switch {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 3px;
  border: 1px solid #b5bac4;
  background: white;
  border-radius: 4px;
}
.billing-switch label {
  padding: 0.65rem 1.1rem;
  min-height: 2.8rem;
  cursor: pointer;
  font-size: 0.9375rem;
  text-align: center;
  border-radius: 2px;
}
.billing-switch input:checked + label { background: var(--blue); color: white; font-weight: 650; }
.billing-switch input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.plans { border: 0; padding: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.2vw, 1.95rem);
  border: 1px solid #cbd0d9;
  border-radius: 4px;
  background: #fff;
  --plan-muted: var(--muted);
  --plan-rule: var(--line);
  --spine: var(--blue);
}
.plan:has(.plan-choice input:checked) {
  background: #1d3889;
  color: #fff;
  border-color: #1d3889;
  --plan-muted: #e0e8ff;
  --plan-rule: #5970a8;
  --spine: #c3d7ff;
}
.plan header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.plan h3 { font-size: clamp(2.25rem, 3.5vw, 3.1rem); }
.book-spines { display: inline-flex; align-items: end; height: 1.65rem; gap: 3px; color: var(--spine); }
.book-spines i {
  display: block;
  width: 0.4rem;
  height: 85%;
  border-block: 3px solid currentColor;
  background: currentColor;
  background-clip: content-box;
  padding-block: 2px;
}
.book-spines i:nth-child(2) { height: 100%; }
.book-spines i:nth-child(3) { height: 73%; transform: rotate(-12deg); transform-origin: bottom; }
.plan-use, .plan-price span, .plan-interval { color: var(--plan-muted); }
.plan-use { margin-top: 0.3rem; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin-top: 1.7rem; }
.plan-price b { font-size: clamp(2.5rem, 3.5vw, 3.45rem); font-weight: 550; line-height: 1; letter-spacing: -0.07em; }
.plan-price span, .plan-interval, .pricing-note { font-size: 0.875rem; }
.plan-interval { margin-top: 0.5rem; }
.plan ul {
  list-style: none;
  border-top: 1px solid var(--plan-rule);
  padding: 1.1rem 0 0;
  margin: 1.45rem 0;
}
.plan li { position: relative; padding-inline-start: 1.35rem; }
.plan li + li { margin-top: 0.5rem; }
.plan li::before {
  position: absolute;
  inset: 0.4rem auto auto 0.12rem;
  width: 0.32rem;
  height: 0.6rem;
  border: solid var(--spine);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
  content: "";
}
.plan-choice, .plan-fallback {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  margin-top: auto;
  font-weight: 600;
  cursor: pointer;
}
.plan-choice input { appearance: auto; accent-color: var(--spine); width: 1.125rem; height: 1.125rem; margin: 0; }
.plan:has(.plan-choice input:checked) :focus-visible { outline-color: #fff; }
.team-quote {
  display: grid;
  grid-template-columns: 1fr auto minmax(0, 1.22fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 1.2rem;
  padding: 1.25rem clamp(1rem, 2.2vw, 1.95rem);
  border: 1px solid #cbd0d9;
  border-radius: 4px;
  background: #fff;
}
.team-quote h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.seat-count label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.seat-count input {
  width: 5.5rem;
  font: inherit;
  min-height: 2.8rem;
  padding: 0.5rem;
  border: 1px solid #767d89;
  border-radius: 2px;
  background: white;
  color: var(--ink);
}
.seat-count input[aria-invalid="true"] { border-color: #9b321f; }
.quote-result { display: grid; gap: 0.15rem; }
.quote-total { font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 600; letter-spacing: -0.035em; }
.quote-detail, .pricing-note { color: var(--muted); }
.quote-detail { font-size: 0.9rem; }
.pricing-note { margin-top: 0.8rem; }
#quote-email { text-align: center; }
#quote-email[aria-disabled="true"] { background: #e1e4ec; color: #505865; cursor: default; }
@media (max-width: 56rem) {
  .team-quote { grid-template-columns: 1fr auto; }
  .team-quote .seat-count { justify-self: end; }
  .team-quote .primary { justify-self: end; }
}
@media (max-width: 44rem) {
  .pricing-heading { align-items: start; flex-direction: column; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan { padding: 1.4rem; }
  .plan ul { margin-block: 1rem 0.5rem; }
  .plan-price { margin-top: 1.2rem; }
}
@media (max-width: 30rem) {
  .team-quote { gap: 1rem; }
  .team-quote .quote-result, .team-quote .primary { grid-column: 1 / -1; justify-self: start; }
}
@media (forced-colors: active) {
  .billing-switch input:checked + label { outline: 2px solid SelectedItem; }
}
