.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.package-card {
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.package-card h2 {
  margin-bottom: 8px;
  font-size: 2rem;
  text-align: center;
}

.package-price {
  margin: 0 0 20px;
  color: var(--plum);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.12;
  text-align: center;
}


.package-price-prefix {
  display: block;
  margin-bottom: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.package-badge {
  margin: -6px 0 20px;
  text-align: center;
}

.package-badge-placeholder {
  visibility: hidden;
}

.package-summary {
  min-height: 3.3em;
}

.package-card > p:not(.eyebrow):not(.package-price),
.package-card li {
  color: var(--muted);
}

.package-card ul {
  margin: 24px 0 0;
  padding-left: 1.25rem;
  flex: 1;
}

.package-card li + li {
  margin-top: 8px;
}

.package-card-featured {
  border-color: var(--plum);
  box-shadow: var(--shadow);
}

.package-details-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--plum);
  font-weight: 800;
  text-align: center;
}

.package-details-section h2,
.renewal-section h2,
.addons-section h2 {
  margin-bottom: 12px;
}

.detail-card {
  margin-top: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  scroll-margin-top: 110px;
}

.detail-card-featured {
  border: 2px solid var(--plum);
  box-shadow: var(--shadow);
}

.detail-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.detail-heading h3 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.detail-price {
  margin: 0;
  color: var(--plum);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.detail-list {
  columns: 2;
  column-gap: 44px;
  margin: 24px 0 0;
  padding-left: 1.25rem;
}

.detail-list li {
  break-inside: avoid;
  margin: 0 0 10px;
  color: var(--muted);
}

.renewal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.renewal-card h3 {
  margin-top: 0;
}

.renewal-price {
  margin: 14px 0;
  color: var(--plum);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
}

.renewal-price span {
  font-family: inherit;
  font-size: 1rem;
}

.renewal-note {
  margin-top: 18px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--cream);
}

.renewal-note h3 {
  margin-top: 0;
}

.renewal-note ul {
  margin-bottom: 0;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  margin-top: 28px;
}

.addons-grid p {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.addons-grid span {
  color: var(--plum);
  font-weight: 800;
  white-space: nowrap;
}

.package-fine-print {
  margin-top: 22px;
  color: var(--muted);
  font-size: .92rem;
}

.package-cta {
  margin-top: 28px;
}

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

  .detail-list {
    columns: 1;
  }

  .renewal-grid,
  .addons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .detail-card {
    padding: 24px;
  }

  .detail-heading {
    display: block;
  }

  .detail-price {
    margin-top: 12px;
    white-space: normal;
  }
}


.package-details-button {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.package-details-source {
  display: none;
}

.package-modal[hidden] {
  display: none;
}

.package-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.package-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 43, 0.76);
  backdrop-filter: blur(3px);
}

.package-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(82vh, 850px);
  overflow-y: auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.package-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.package-modal-close:hover,
.package-modal-close:focus-visible {
  background: var(--cream);
}

.package-modal .detail-card {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.package-modal .detail-list {
  columns: 1;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .package-modal {
    align-items: end;
    padding: 0;
  }

  .package-modal-dialog {
    width: 100%;
    max-height: 92vh;
    padding: 30px 22px 26px;
    border-radius: 24px 24px 0 0;
  }
}

.package-details-button {
  align-self: center;
  padding: 10px 18px;
  border: 1px solid var(--plum);
  border-radius: 999px;
  background: transparent;
  color: var(--plum);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.package-details-button:hover,
.package-details-button:focus-visible {
  background: var(--plum);
  color: var(--white);
}
