:root {
  --price-paper: #f7f1ed;
  --price-card: #fffdfc;
  --price-wine: #7f3348;
  --price-wine-dark: #612638;
  --price-blush: #e8c9ce;
  --price-cocoa: #302627;
  --price-muted: #766b69;
  --price-line: #e7dcd7;
}

.pricing-body {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(127, 51, 72, 0.022) 1px, transparent 1px),
    var(--price-paper);
  background-size: 100% 28px;
}

.pricing-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.pricing-glow-one {
  top: -130px;
  left: calc(50% + 25px);
  width: 300px;
  height: 300px;
  background: rgba(232, 201, 206, 0.54);
}

.pricing-glow-two {
  top: 660px;
  right: calc(50% + 80px);
  width: 220px;
  height: 220px;
  background: rgba(235, 216, 204, 0.48);
}

.pricing-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 0 18px 38px;
}

.pricing-header {
  display: grid;
  grid-template-columns: 42px 1fr 70px;
  align-items: center;
  min-height: 79px;
  padding-top: env(safe-area-inset-top);
}

.back-link {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(127, 51, 72, 0.12);
  border-radius: 50%;
  color: var(--price-wine);
  background: rgba(255, 253, 252, 0.6);
  text-decoration: none;
}

.pricing-brand {
  display: flex;
  align-items: center;
  justify-self: center;
  flex-direction: column;
  color: var(--price-cocoa);
  text-decoration: none;
}

.pricing-brand span {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1;
}

.pricing-brand small {
  margin-top: 4px;
  color: var(--price-muted);
  font-size: 7px;
  letter-spacing: 1.8px;
}

.support-link {
  padding: 8px 0;
  border: 0;
  color: var(--price-wine);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.pricing-hero {
  padding: 45px 5px 31px;
}

.pricing-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: var(--price-wine);
  font-size: 10px;
  letter-spacing: 1px;
}

.pricing-eyebrow i {
  width: 19px;
  height: 1px;
  background: var(--price-wine);
}

.pricing-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 9vw, 43px);
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: -1.7px;
}

.pricing-hero h1 em {
  color: var(--price-wine);
  font-style: normal;
}

.pricing-hero p {
  margin: 20px 0 0;
  color: var(--price-muted);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.8;
}

.membership-preview {
  position: relative;
  overflow: hidden;
  min-height: 197px;
  padding: 23px 22px;
  border-radius: 24px;
  color: #fff8f5;
  background:
    radial-gradient(circle at 102% 105%, rgba(232, 201, 206, 0.2), transparent 37%),
    var(--price-cocoa);
  box-shadow: 0 21px 46px rgba(48, 38, 39, 0.18);
}

.membership-preview::after {
  position: absolute;
  right: -42px;
  bottom: -82px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(232, 201, 206, 0.25);
  border-radius: 50%;
  content: "";
}

.membership-preview-top,
.membership-preview-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.membership-preview-top span {
  font-family: var(--serif);
  font-size: 23px;
  font-style: italic;
}

.membership-preview-top small {
  color: var(--price-blush);
  font-size: 8px;
  letter-spacing: 2px;
}

.membership-preview > p {
  position: relative;
  z-index: 1;
  margin: 27px 0 24px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
}

.membership-preview-bottom span {
  color: #cbbfbb;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.membership-preview-bottom i {
  color: var(--price-blush);
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: normal;
}

.plans-section,
.benefits-section {
  padding-top: 46px;
}

.pricing-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 16px;
}

.pricing-section-title > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pricing-section-title span {
  color: var(--price-wine);
  font-family: Georgia, serif;
  font-size: 9px;
}

.pricing-section-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.pricing-section-title > small {
  color: #9f928f;
  font-size: 9px;
}

.plan-list {
  display: grid;
  gap: 10px;
}

.plan-card {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 87px;
  padding: 14px 14px;
  border: 1px solid var(--price-line);
  border-radius: 18px;
  color: var(--price-cocoa);
  background: rgba(255, 253, 252, 0.9);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.plan-card:hover {
  transform: translateY(-1px);
}

.plan-card.is-active {
  border-color: rgba(127, 51, 72, 0.58);
  background: #fffafa;
  box-shadow: 0 12px 30px rgba(83, 45, 53, 0.08);
}

.plan-select {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #cabeba;
  border-radius: 50%;
}

.plan-select i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.plan-card.is-active .plan-select {
  border-color: var(--price-wine);
}

.plan-card.is-active .plan-select i {
  background: var(--price-wine);
}

.plan-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.plan-topline {
  display: flex;
  align-items: center;
  gap: 7px;
}

.plan-topline strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.plan-topline em {
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--price-wine);
  background: #f4e3e6;
  font-size: 7px;
  font-style: normal;
}

.plan-topline .recommend-badge {
  color: #fff;
  background: var(--price-wine);
}

.plan-content > small {
  overflow: hidden;
  color: #918481;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-price {
  display: grid;
  grid-template-columns: auto auto;
  align-items: start;
  color: var(--price-wine);
}

.plan-price b {
  margin: 5px 2px 0 0;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 500;
}

.plan-price strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1px;
}

.plan-price small {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: #9c8f8b;
  font-size: 7px;
  text-align: right;
}

.renewal-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 13px;
  padding: 13px 14px;
  border-radius: 14px;
  color: #687368;
  background: #edf1ec;
}

.renewal-note > span {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #718274;
  font-size: 9px;
}

.renewal-note p {
  margin: 0;
  font-size: 9px;
  line-height: 1.7;
}

.renewal-note strong {
  font-weight: 600;
}

.benefit-list {
  overflow: hidden;
  border: 1px solid var(--price-line);
  border-radius: 20px;
  background: rgba(255, 253, 252, 0.88);
}

.benefit-list > div {
  display: grid;
  grid-template-columns: 31px 1fr;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-top: 1px solid #eee6e2;
}

.benefit-list > div:first-child {
  border-top: 0;
}

.benefit-list > div > span {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: var(--price-wine);
  background: #f3e3e5;
  font-family: Georgia, serif;
  font-size: 12px;
}

.benefit-list p {
  display: flex;
  margin: 0;
  flex-direction: column;
  gap: 4px;
}

.benefit-list strong {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
}

.benefit-list small {
  color: #918481;
  font-size: 8px;
  line-height: 1.5;
}

.support-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  margin-top: 30px;
  padding: 19px;
  border-radius: 19px;
  color: #fff7f4;
  background: var(--price-cocoa);
}

.support-card-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--price-cocoa);
  background: var(--price-blush);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
}

.support-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
}

.support-card p {
  margin: 6px 0 0;
  color: #cbbfbb;
  font-size: 8px;
  line-height: 1.65;
}

.support-card button {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 1px solid rgba(232, 201, 206, 0.25);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 10px;
}

.pricing-rules {
  margin-top: 31px;
  padding: 0 4px;
}

.pricing-rules h2 {
  margin: 0 0 11px;
  font-family: var(--serif);
  font-size: 13px;
}

.pricing-rules p {
  position: relative;
  margin: 8px 0;
  padding-left: 11px;
  color: #918481;
  font-size: 8px;
  line-height: 1.7;
}

.pricing-rules p::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--price-blush);
  content: "";
}

.pricing-footer {
  margin-top: 40px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--price-line);
  text-align: center;
}

.pricing-footer span {
  color: var(--price-wine);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
}

.pricing-footer p {
  margin: 7px 0 0;
  color: #9f928f;
  font-size: 8px;
}

.checkout-bar {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(127, 51, 72, 0.08);
  background: rgba(255, 253, 252, 0.92);
  box-shadow: 0 -12px 36px rgba(48, 38, 39, 0.08);
  backdrop-filter: blur(18px);
}

.checkout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 430px);
  margin: 0 auto;
  gap: 12px;
}

.checkout-summary {
  flex: 0 0 auto;
}

.checkout-summary > small {
  display: block;
  margin-bottom: 3px;
  color: var(--price-muted);
  font-size: 8px;
}

.checkout-summary p {
  display: flex;
  align-items: baseline;
  margin: 0;
  color: var(--price-wine);
}

.checkout-summary p span {
  margin-right: 2px;
  font-family: var(--serif);
  font-size: 10px;
}

.checkout-summary p strong {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

.checkout-summary p em {
  margin-left: 4px;
  color: #9a8d89;
  font-size: 8px;
  font-style: normal;
}

.checkout-inner > button {
  display: flex;
  min-height: 51px;
  min-width: 200px;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 18px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--price-wine);
  box-shadow: 0 10px 25px rgba(127, 51, 72, 0.22);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 13px;
}

.checkout-inner > button span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--sans);
}

.purchase-backdrop {
  position: fixed;
  z-index: 25;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(48, 38, 39, 0.6);
  backdrop-filter: blur(6px);
  animation: fadeIn 180ms ease both;
}

.purchase-modal {
  position: relative;
  width: min(100%, 430px);
  max-height: min(790px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 29px 21px 20px;
  border-radius: 25px;
  background: var(--price-card);
  box-shadow: 0 30px 85px rgba(29, 16, 20, 0.3);
  animation: slideUp 240ms ease both;
}

.purchase-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--price-muted);
  background: #f3ece8;
  cursor: pointer;
  font-size: 19px;
}

.purchase-kicker {
  color: var(--price-wine);
  font-size: 8px;
  letter-spacing: 1px;
}

.purchase-modal > h2 {
  margin: 12px 35px 18px 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
}

.selected-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 16px;
  border-radius: 16px;
  background: #f8f1ef;
}

.selected-order > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.selected-order > div span {
  color: #9a8c89;
  font-size: 8px;
}

.selected-order > div strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
}

.selected-order > p {
  display: flex;
  align-items: baseline;
  margin: 0;
  color: var(--price-wine);
}

.selected-order > p span {
  font-family: var(--serif);
  font-size: 10px;
}

.selected-order > p strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.selected-order > p small {
  margin-left: 4px;
  color: #948784;
  font-size: 7px;
}

.assistant-support {
  padding-top: 21px;
  text-align: center;
}

.assistant-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.assistant-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--price-wine);
  background: var(--price-blush);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
}

.assistant-heading > div {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.assistant-heading strong {
  font-family: var(--serif);
  font-size: 14px;
}

.assistant-heading small {
  color: #948784;
  font-size: 8px;
}

.assistant-support > p {
  margin: 11px 0 14px;
  color: var(--price-muted);
  font-size: 9px;
  line-height: 1.65;
}

.qr-crop {
  position: relative;
  width: 236px;
  height: 236px;
  overflow: hidden;
  margin: 0 auto;
  border: 8px solid #fff;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 31px rgba(48, 38, 39, 0.11);
}

.qr-crop img {
  position: absolute;
  top: 0;
  left: 0;
  width: 473px;
  max-width: none;
  height: auto;
  transform: translate(-122px, -322px);
  user-select: none;
  -webkit-user-drag: none;
}

.assistant-support .qr-tip {
  margin: 11px 0 0;
  color: #9b8e8a;
  font-size: 8px;
}

.prototype-checkout {
  width: 100%;
  min-height: 49px;
  margin-top: 17px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--price-wine);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 12px;
}

.payment-contact {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #6f5a60;
  font-size: 13px;
}

.payment-contact input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(130, 61, 82, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 13px 14px;
  color: #342c2e;
  font: inherit;
  outline: none;
}

.payment-contact input:focus {
  border-color: #823d52;
  box-shadow: 0 0 0 3px rgba(130, 61, 82, 0.1);
}

.payment-error {
  min-height: 20px;
  margin: 7px 0 0;
  color: #9a354c;
  font-size: 12px;
}

.purchase-note {
  margin: 9px 0 0;
  color: #9f928f;
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.pricing-toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--price-cocoa);
  box-shadow: 0 12px 35px rgba(48, 38, 39, 0.23);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 10px;
  white-space: nowrap;
}

.pricing-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 760px) {
  .purchase-backdrop {
    align-items: center;
  }
}

@media (max-width: 355px) {
  .pricing-shell {
    padding-right: 13px;
    padding-left: 13px;
  }

  .plan-card {
    grid-template-columns: 18px minmax(0, 1fr) 73px;
    gap: 8px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .plan-price strong {
    font-size: 22px;
  }

  .plan-content > small {
    max-width: 130px;
  }

  .checkout-inner > button {
    min-width: 176px;
    padding-left: 14px;
    font-size: 12px;
  }

  .qr-crop {
    width: 220px;
    height: 220px;
  }

  .qr-crop img {
    width: 441px;
    transform: translate(-114px, -300px);
  }
}
