.plan-hero .phero__inner {
  align-items: center;
}

.plan-hero h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.plan-hero__copy > .mono-label {
  margin-bottom: 16px;
  color: var(--brand);
}

.plan-hero__copy > .lead {
  margin-top: 24px;
}

.plan-hero__capacity {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 24px 0 28px;
  color: var(--ink-2);
  font-size: 14px;
}

.plan-hero__capacity strong {
  font-weight: 500;
  color: var(--ink);
}

.plan-price-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid #c8d9f5;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 70px -40px #0758eb4d;
}

.plan-price-card > .mono-label {
  color: var(--brand);
  font-size: 11px;
}

.plan-price-card > p:not(.plan-price-card__price) {
  color: var(--ink-2);
  font-size: 16px;
}

.plan-price-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
}

.plan-price-card__price > span {
  font-size: 20px;
}

.plan-price-card__price > strong {
  font-family: var(--f-head);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.05em;
}

.plan-price-card__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.plan-price-card__terms > span {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 11px;
}

.plan-price-card__more {
  align-self: center;
  color: var(--ink-2);
  font-size: 13px;
  text-align: center;
  text-underline-offset: 4px;
}

.plan-price-card__more:hover {
  text-decoration: underline;
}

.plan-switcher {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.plan-switcher nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-switcher a {
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background .2s, color .2s;
}

.plan-switcher a:hover {
  background: var(--bg-soft);
}

.plan-switcher a[aria-current="page"] {
  background: var(--ink);
  color: #ffffff;
}

.plan-switcher a:focus-visible,
.plan-rates:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.plan-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-package {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}

.plan-package strong {
  font-family: var(--f-head);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.04em;
  color: var(--brand);
}

.plan-package > span {
  color: var(--ink-2);
  font-size: 14px;
}

.plan-rates {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.plan-rates table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.plan-rates caption {
  padding: 18px 24px;
  text-align: left;
  color: var(--ink-2);
  font-size: 13px;
}

.plan-rates thead {
  background: var(--bg-soft);
}

.plan-rates th,
.plan-rates td {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.plan-rates th {
  font-weight: 500;
}

.plan-rates tbody td {
  color: var(--ink-2);
}

.plan-rates tbody td:first-of-type {
  white-space: nowrap;
  color: var(--brand);
  font-weight: 500;
}

.plan-extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.plan-extras__group {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.plan-extras__group > .mono-label {
  color: var(--brand);
  font-size: 11px;
}

.plan-extras__group h2 {
  margin-top: 16px;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -.025em;
  line-height: 1.25;
}

.plan-extras__group ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
}

.plan-extras__group li h3 {
  margin-bottom: 6px;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
}

.plan-extras__group li p {
  color: var(--ink-2);
  font-size: 14px;
}

.plan-extras__group .link-arrow {
  color: var(--brand);
  font-size: 14px;
}

.plan-payments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-payment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(24px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.plan-payment--primary {
  border-color: #bed2f5;
  background: #f3f7ff;
}

.plan-payment > .mono-label {
  font-size: 10px;
  color: var(--brand);
}

.plan-payment h3 {
  min-height: 2.6em;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.plan-payment > p:not(.mono-label) {
  color: var(--ink-2);
  font-size: 14px;
}

.plan-payment .plan-payment__price {
  font-family: var(--f-head);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.04em;
  color: var(--ink);
}

.plan-payment__price > span {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0;
}

.plan-payment .plan-payment__total {
  align-self: stretch;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.plan-investment__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
}

.plan-investment__footer > p {
  color: var(--ink-2);
  font-size: 13px;
}

@media (max-width: 1000px) {
  .plan-payments {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }

  .plan-payment h3 {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .plan-extras {
    grid-template-columns: 1fr;
  }

  .plan-hero__copy {
    max-width: 640px;
  }

  .plan-price-card {
    width: 100%;
    max-width: 640px;
  }

  .plan-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .plan-hero h1 {
    font-size: clamp(38px, 9vw, 48px);
  }

  .plan-hero .phero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .plan-hero__capacity {
    flex-direction: column;
    gap: 8px;
  }

  .plan-packages {
    gap: 12px;
  }

  .plan-package {
    padding: 20px 16px;
  }

  .plan-package strong {
    font-size: clamp(22px, 6vw, 28px);
  }

  .plan-package > span {
    font-size: 12px;
  }

  .plan-switcher a {
    padding: 9px 20px;
  }
}

@media (max-width: 360px) {
  .plan-packages {
    grid-template-columns: 1fr;
  }
}

.plan-price-card__price > small {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--ink-2);
}
