.pricing {
  color: var(--surf-ink);
  line-height: 1.6;
}

.pricing-wrap {
  width: min(100% - 4rem, 54rem);
  margin-inline: auto;
}

.pricing-stock {
  padding-block: 4rem 4.5rem;
  background: #f8efff;
}

.pricing-intro {
  margin-bottom: 2.5rem;
}

.pricing :is(h1, h2) {
  margin: 0;
  font-family: var(--surf-display);
  font-stretch: 120%;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pricing h1 { font-size: 4.25rem; }
.pricing h2 { font-size: 1.65rem; }
.pricing-intro h1 span { position: relative; display: inline-block; }
.pricing-intro h1 span::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.18em;
  height: 0.16em;
  background: var(--surf-lime);
  clip-path: polygon(0 80%, 13% 49%, 43% 22%, 77% 15%, 100% 24%, 95% 51%, 57% 58%, 26% 72%, 1% 100%);
  transform: rotate(-3deg);
}

.pricing p { margin: 0.75rem 0 0; }
.pricing .pricing-intro p { margin-top: 1.35rem; font-size: 1.125rem; }

.pricing table {
  width: 100%;
  margin-block: 0.8rem 1.5rem;
  border-collapse: separate;
  border-spacing: 0 0.25rem;
  font-variant-numeric: tabular-nums;
}

.pricing :is(th, td) {
  padding: 0.8rem 0.75rem;
  text-align: left;
}

.pricing thead th { padding-block: 0 0.5rem; font-size: 0.85rem; font-weight: 600; }
.pricing :is(th, td):last-child { text-align: right; }
.pricing tbody :is(th, td) {
  border-bottom: 1px solid rgb(33 24 33 / 20%);
  font-family: var(--surf-display);
  font-weight: 850;
  line-height: 1;
}
.pricing tbody th { font-size: 1.75rem; }
.pricing tbody td { font-size: 2.8rem; }

@media (hover: hover) {
  .pricing tbody tr:hover > * {
    background: color-mix(in srgb, var(--surf-lime) 85%, transparent);
    border-bottom-color: transparent;
  }
  .pricing tbody tr:hover > :first-child {
    border-start-start-radius: 8px;
    border-end-start-radius: 8px;
  }
  .pricing tbody tr:hover > :last-child {
    border-start-end-radius: 8px;
    border-end-end-radius: 8px;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pricing tbody tr,
  .pricing tbody :is(th, td) > span {
    transition: scale 180ms ease-out;
  }
  .pricing tbody :is(th, td) {
    transition: background-color 180ms ease-out, border-color 180ms ease-out, border-radius 180ms ease-out;
  }
  .pricing tbody :is(th, td) > span { display: inline-block; }
  .pricing tbody th > span { transform-origin: left center; }
  .pricing tbody td > span { transform-origin: right center; }
  .pricing tbody tr:hover { scale: 1.02 1.05; }
  .pricing tbody tr:hover > :is(th, td) > span { scale: 1.09; }
}

.pricing .pricing-pickup { max-width: 36rem; }

.pricing-custom {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 26rem;
  padding-block: 3.5rem;
  color: white;
  background: #513032;
  scroll-margin-top: calc(var(--surf-nav-height) + var(--surf-nav-overhang));
}

.pricing-custom img,
.pricing-custom::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pricing-custom img {
  z-index: -2;
  object-fit: cover;
  object-position: center 43%;
}
.pricing-custom::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgb(33 19 30 / 85%), rgb(33 19 30 / 60%) 52%, rgb(33 19 30 / 8%) 82%);
}
.pricing-custom-copy { max-width: 25rem; }
.pricing-custom h2 { font-size: 2.5rem; }

.pricing .pricing-rate {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.1rem 0.65rem;
  margin-top: 0.9rem;
}

.pricing-rate strong {
  color: var(--surf-lime);
  font-family: var(--surf-display);
  font-size: 3.15rem;
  font-weight: 900;
  line-height: 1;
}
.pricing-rate span { font-size: 1rem; font-weight: 600; }

.pricing-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--surf-ink);
  border-radius: 99px;
  color: var(--surf-ink);
  background: var(--surf-lime);
  font-weight: 700;
  line-height: 1.3;
}

.pricing-button:hover { background: var(--surf-paper); }
.pricing-button:focus-visible { outline: 2px solid var(--surf-ink); outline-offset: 4px; }
.pricing-custom .pricing-button:focus-visible { outline-color: white; }

@media (max-width: 900px) {
  .pricing h1 { font-size: 3.35rem; }
}

@media (max-width: 700px) {
  .pricing-wrap { width: calc(100% - 2.25rem); }
  .pricing-stock { padding-block: 3rem; }
  .pricing h1 { font-size: 2.75rem; }
  .pricing tbody th { font-size: 1.45rem; }
  .pricing tbody td { font-size: 2.25rem; }
  .pricing-custom { min-height: 22rem; padding-block: 3rem; }
  .pricing-custom img { object-position: 45% center; }
  .pricing-custom::before { background: linear-gradient(90deg, rgb(33 19 30 / 85%), rgb(33 19 30 / 56%)); }
  .pricing-custom h2 { font-size: 2rem; }
}

@media (max-width: 420px) {
  .pricing h1 { font-size: 2.2rem; }
}
