.pricing {
  padding-bottom: var(--section-spacing);
}

.pricing .section-title {
  padding-inline: var(--section-padding-x);
}
@media (max-width: 988px) {
  .pricing .section-title { padding-inline: var(--section-padding-x-mobile); }
}

.pricing__cards {
  margin-top: var(--section-name-to-section);
}

.pricing__card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
}

.pricing__panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(108px, calc(18.135px + 12.8378vw), 203px);
  padding: clamp(30px, calc(20.541px + 1.35135vw), 40px);
  background: var(--color-cards-bg);
  border-radius: var(--radius-medium);
  transition: border-radius 0.3s ease;
}
@media (hover: hover) and (pointer: fine) and (min-width: 989px) {
  .pricing__card:hover .pricing__panel { border-radius: 60px; }
}
.pricing__content {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.pricing__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-text);
}

.pricing__title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(24px, calc(16.432px + 1.08108vw), 32px);
  line-height: 1.2;
  color: var(--color-text);
}

.pricing__subtitle {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  /* 344px at 14px; holds the frame's 2-line wrap. */
  max-width: 38.2ch;
  color: var(--color-text);
}

.pricing__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Geologica Light in the source; primary font at 400. */
.pricing__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
}
.pricing__feature img {
  flex: none;
  display: block;
  width: 16px;
  height: 16px;
}

.pricing__price-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pricing__price-row {
  display: flex;
  align-items: flex-end;
}

.pricing__price {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(70px, calc(51.081px + 2.7027vw), 90px);
  line-height: 1;
  color: var(--color-text);
}

/* Figma: a 10px-padded box overlapping the price by 10px. */
.pricing__period {
  padding: 10px;
  margin-left: -10px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  white-space: nowrap;
  color: var(--color-text);
}

.pricing__note {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 12px;
  line-height: normal;
  white-space: pre-wrap;
  color: var(--color-text);
}

.pricing__button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 67.203px;
  background: var(--color-cards-bg);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--font-size-button-cta);
  color: var(--color-text);
  text-decoration: none;
}
/* No stroke: the frame's #000 one dropped, nothing else on the site
   has one. */
.pricing__card--featured .pricing__button {
  background: var(--color-accent-buttons);
}
/* The roll fills the pill (its 44px inline padding included) so the
   whole button, not just the label, triggers the shared roll hover. */
.pricing__button .roll {
  width: 100%;
  height: 100%;
}
.pricing__button .roll__mask {
  height: 100%;
}
.pricing__button .roll__line {
  justify-content: center;
  padding-inline: 44px;
}

/* Scales with the card: 25px at 424, ×350/424 at the mobile width. */
.pricing__tag {
  font-size: clamp(20.6px, calc(16.44px + 0.59459vw), 25px);
  position: absolute;
  top: clamp(14.5px, calc(34.35px - 1.3784vw), 24.7px);
  right: clamp(71.1px, calc(35.91px + 5.027vw), 108.3px);
  transform: translate(50%, -50%) rotate(16.69deg);
}

@media (max-width: 699.98px) {
  .pricing__cards {
    flex-direction: column;
    gap: 30px;
    overflow: visible;
    padding-inline: var(--section-padding-x-mobile);
    scroll-snap-type: none;
  }
  .pricing__cards > :first-child { margin-inline-start: 0; }
  .pricing__cards > :last-child { margin-inline-end: 0; }
  .pricing__card {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Three tiers: columns ≥ 1200 (her number), the shared scroll track
   between, stacked below 700 (where the tracks' own nav also gives up).
   The track's own rules are the default; the other two tiers undo them. */
@media (min-width: 1200px) {
  .pricing__cards {
    overflow: visible;
    gap: 20px;
    padding-inline: var(--section-padding-x);
    scroll-snap-type: none;
  }
  .pricing__cards > :first-child { margin-inline-start: 0; }
  .pricing__cards > :last-child { margin-inline-end: 0; }
}
@media (min-width: 700px) and (max-width: 1199.98px) {
  .pricing__card {
    flex: 0 0 auto;
    width: clamp(350px, calc(280px + 10vw), 424px);
    scroll-snap-align: start;
  }
  /* Room for the sticker, which sits 22px above the card and would be
     clipped by the track's overflow; the margin gives it back. */
  .pricing__cards {
    padding-top: 22px;
    margin-top: calc(var(--section-name-to-section) - 22px);
  }
}
