.vh-pricing-page .vh-header {
  background: #f1f0ed;
}

.vh-pricing-page .vh-header.is-stuck {
  background: #ffffff;
}

.vh-pricing-hero {
  padding: 152px 32px 88px;
  background: #f1f0ed;
}

.vh-pricing-hero-inner {
  width: min(900px, 100%);
  margin-inline: auto;
  text-align: center;
}

.vh-pricing-hero h1,
.vh-pricing-hero p {
  margin: 0;
}

.vh-pricing-hero h1 {
  color: var(--vh-ink);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.vh-pricing-hero > div > p:first-of-type {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--vh-secondary);
  font-size: 18px;
  line-height: 28px;
}

.vh-pricing-toggle {
  width: fit-content;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 36px auto 0;
  padding: 4px;
  border-radius: 12px;
  background: #ffffff;
}

.vh-pricing-toggle button {
  min-width: 116px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vh-secondary);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

.vh-pricing-toggle button[aria-pressed="true"] {
  background: var(--vh-ink);
  color: #ffffff;
}

.vh-pricing-hero .vh-pricing-saving {
  margin-top: 12px;
  color: var(--vh-muted);
  font-size: 14px;
  line-height: 22px;
}

.vh-pricing-plans,
.vh-pricing-volume,
.vh-pricing-faq {
  padding-block: 112px;
}

.vh-pricing-inner,
.vh-pricing-volume-inner,
.vh-pricing-help-inner {
  width: min(1184px, calc(100% - 64px));
  margin-inline: auto;
}

.vh-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.vh-plan-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #f7f8fa;
}

.vh-plan-card-recommended {
  border-color: var(--vh-ink);
  background: #eef0f6;
}

.vh-plan-card-private {
  background: #f1f0ed;
}

.vh-plan-recommended {
  margin: 0 0 20px;
  color: var(--vh-ink);
  font-size: 14px;
  font-weight: 500;
}

.vh-plan-heading {
  min-height: 134px;
}

.vh-plan-heading h3,
.vh-plan-heading p,
.vh-plan-price,
.vh-plan-price-note {
  margin: 0;
}

.vh-plan-heading h3 {
  color: var(--vh-ink);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.vh-plan-heading p {
  margin-top: 16px;
  color: var(--vh-secondary);
  font-size: 15px;
  line-height: 23px;
}

.vh-plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--vh-ink);
  font-variant-numeric: tabular-nums;
}

.vh-plan-price span {
  font-size: clamp(30px, 2.7vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.vh-plan-price small {
  color: var(--vh-muted);
  font-size: 14px;
}

.vh-plan-price-note {
  min-height: 42px;
  margin-top: 12px;
  color: var(--vh-muted);
  font-size: 13px;
  line-height: 20px;
}

.vh-plan-card ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 32px;
  padding-left: 20px;
  color: var(--vh-secondary);
  font-size: 14px;
  line-height: 21px;
}

.vh-plan-action,
.vh-pricing-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--vh-accent);
  border-radius: 8px;
  background: var(--vh-accent);
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms var(--vh-motion), border-color 160ms var(--vh-motion);
}

.vh-plan-action {
  width: 100%;
  margin-top: auto;
}

.vh-plan-action:hover,
.vh-pricing-button:hover {
  border-color: var(--vh-accent-hover);
  background: var(--vh-accent-hover);
}

.vh-pricing-free {
  margin: 28px 0 0;
  color: var(--vh-secondary);
  font-size: 16px;
  text-align: center;
}

.vh-pricing-help {
  padding-block: 72px;
  background: var(--vh-ink);
}

.vh-pricing-help-inner,
.vh-pricing-volume-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.vh-pricing-help h2,
.vh-pricing-volume h2,
.vh-pricing-volume p {
  margin: 0;
}

.vh-pricing-help h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.vh-pricing-help .vh-pricing-button {
  flex: 0 0 auto;
  border-color: #ffffff;
  background: #ffffff;
  color: var(--vh-ink);
}

.vh-pricing-help .vh-pricing-button:hover {
  border-color: #d7e0e5;
  background: #d7e0e5;
}

.vh-pricing-volume {
  background: #f7f8fa;
}

.vh-pricing-volume-inner > div {
  max-width: 760px;
}

.vh-pricing-volume h2,
.vh-pricing-faq h2 {
  color: var(--vh-ink);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.vh-pricing-volume p {
  margin-top: 20px;
  color: var(--vh-secondary);
  font-size: 18px;
  line-height: 28px;
}

.vh-pricing-faq {
  background: #ffffff;
}

.vh-pricing-reading {
  width: min(780px, calc(100% - 40px));
  margin-inline: auto;
}

.vh-pricing-reading h2,
.vh-pricing-reading dl,
.vh-pricing-reading dt,
.vh-pricing-reading dd {
  margin: 0;
}

.vh-pricing-reading dl {
  display: grid;
  gap: 44px;
  margin-top: 40px;
}

.vh-pricing-reading dl > div {
  padding: 0;
}

.vh-pricing-reading dt {
  color: var(--vh-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.vh-pricing-reading dd {
  margin-top: 12px;
  color: var(--vh-secondary);
  font-size: 17px;
  line-height: 27px;
}

.vh-pricing-reading .vh-text-link {
  margin-top: 12px;
}

.vh-pricing-legal {
  margin: 48px 0 0;
  color: var(--vh-muted);
  font-size: 14px;
  line-height: 22px;
}

@media (max-width: 1080px) {
  .vh-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vh-plan-heading {
    min-height: 112px;
  }
}

@media (max-width: 760px) {
  .vh-pricing-hero {
    padding: 112px 20px 72px;
  }

  .vh-pricing-hero h1 {
    font-size: clamp(38px, 10vw, 48px);
  }

  .vh-pricing-plans,
  .vh-pricing-volume,
  .vh-pricing-faq {
    padding-block: 72px;
  }

  .vh-pricing-inner,
  .vh-pricing-volume-inner,
  .vh-pricing-help-inner {
    width: calc(100% - 32px);
  }

  .vh-pricing-help-inner,
  .vh-pricing-volume-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .vh-pricing-grid {
    grid-template-columns: 1fr;
  }

  .vh-plan-card {
    padding: 28px 24px;
  }

  .vh-plan-heading {
    min-height: 0;
    margin-bottom: 32px;
  }

  .vh-pricing-toggle {
    width: 100%;
  }

  .vh-pricing-toggle button {
    min-width: 0;
  }

  .vh-pricing-help {
    padding-block: 64px;
  }

  .vh-pricing-help .vh-pricing-button,
  .vh-pricing-volume .vh-pricing-button {
    width: 100%;
  }

  .vh-pricing-reading {
    width: calc(100% - 32px);
  }
}

/* Prices on one line across the four cards: the "Recommended" label sits in
   the top padding instead of pushing its card's content down. */
.vh-plan-card {
  position: relative;
  padding-top: 60px;
}

.vh-plan-recommended {
  position: absolute;
  top: 24px;
  left: 24px;
  margin: 0;
}

/* Where each price applies: direct contracting or the app stores. */
.vh-pricing-channel-note {
  max-width: 720px;
  margin: 32px auto 0;
  color: var(--vh-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
