.price-plan {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 90% 25%, #254437, #16251d 46%, #111a15 82%);
}

.price-plan.yearly {
  border-color: #638473;
  background: radial-gradient(ellipse at 90% 28%, #305444, #1d3227 52%, #18261e 88%);
}

.price-plan-art {
  --hover-progress: 0;
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.price-plan-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0d1814aa, #0d18143d 48%, transparent 76%),
    linear-gradient(0deg, #0c18145f, transparent 27%);
  content: "";
}

.price-plate {
  position: absolute;
  border: 1px solid #97ddc064;
  box-shadow: inset 0 1px 0 #d9ffe650, inset 0 -1px 0 #7decba2e;
}

.price-brush {
  position: absolute;
  width: clamp(24px, 9%, 49px);
  aspect-ratio: .215;
  filter: drop-shadow(5px 10px 10px #06140d80);
}

.price-brush-flat {
  top: 9%;
  right: 21%;
  transform: translate(calc(-14px * var(--hover-progress)), calc(-10px * var(--hover-progress)))
    rotate(calc(26deg + 11deg * var(--hover-progress)));
}

.price-brush-fine {
  top: 17%;
  right: 15%;
  width: clamp(15px, 5.4%, 30px);
  aspect-ratio: .138;
  transform: translate(calc(6px * var(--hover-progress)), calc(-20px * var(--hover-progress)))
    rotate(calc(49deg - 12deg * var(--hover-progress)));
}

/* The shaft, metal ferrule and bristles share one transform per brush. */
.price-brush::before {
  position: absolute;
  inset: 0 22% 33%;
  border: 1px solid #80b9a175;
  border-radius: 48% 48% 25% 25% / 45% 45% 10% 10%;
  background: linear-gradient(90deg, #1c473a, #69a18a 28%, #3e7661 51%, #193d30);
  box-shadow: inset 0 1px #c9f6dc85;
  content: "";
}

.price-brush span {
  position: absolute;
  inset: 57% 1% 22%;
  z-index: 1;
  border: 1px solid #b4ddc5a1;
  border-radius: 3px;
  background:
    linear-gradient(0deg, #254b3c 8%, #a2c9b0 11% 15%, transparent 16% 78%, #335747 80%, transparent 85%),
    linear-gradient(90deg, #496e5a, #b6dac4 24%, #7d9f8d 56%, #365848);
  box-shadow: inset 0 1px #e1f9e2a6;
}

.price-brush::after {
  position: absolute;
  inset: 76% 0 1%;
  border: 1px solid #8ccbaa85;
  border-radius: 10% 10% 18% 18% / 10% 10% 16% 16%;
  background:
    repeating-linear-gradient(93deg, #b5e4bb2b 0 1px, transparent 1px 3px),
    linear-gradient(#355746 4%, #598c6e 51%, #a0d5a9 97%);
  content: "";
}

.price-brush-fine::before {
  inset-inline: 23%;
  background: linear-gradient(90deg, #194435, #508b75 29%, #315e4d 54%, #1c3d31);
}

.price-brush-fine span {
  inset-inline: 12%;
  border-radius: 5px 5px 3px 3px;
}

.price-brush-fine::after {
  inset: 75% 12% 0;
  border-radius: 20% 20% 56% 56% / 12% 12% 94% 94%;
  background:
    repeating-linear-gradient(89deg, #b5e4bb20 0 1px, transparent 1px 3px),
    linear-gradient(#305747 4%, #619c7c 56%, #a6e0b5);
}

.price-plate {
  width: clamp(114px, 36%, 200px);
  aspect-ratio: 1;
  top: 7%;
  right: 15%;
  border-radius: clamp(19px, 4vw, 39px);
  background: linear-gradient(145deg, #a4e7c657, #437d6431 54%, #6eb0930f 72%, #a5eac45c);
  transform: translate(calc(23% * var(--hover-progress)), calc(54% * var(--hover-progress)))
    rotate(calc(-18deg + 65deg * var(--hover-progress))) scaleY(calc(1 + .13 * var(--hover-progress)));
}

.price-plate + .price-plate {
  top: 38%;
  right: 0;
  background: linear-gradient(155deg, #65cfb14f, #306d5752 57%, #8bf9ba37);
  transform: translate(calc(-28% * var(--hover-progress)), calc(-56% * var(--hover-progress)))
    rotate(calc(12deg - 49deg * var(--hover-progress))) scaleX(calc(1 + .08 * var(--hover-progress)));
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduced"]) .price-brush,
  html:not([data-motion="reduced"]) .price-plate {
    transition: transform .72s cubic-bezier(.27, .82, .26, 1.13);
  }

  html:not([data-motion="reduced"]) .price-plan:has(:focus-visible) .price-plan-art {
    --hover-progress: 1;
  }
}

@media (max-width: 960px) {
  .price-brush-flat { right: 20%; }
  .price-plan-art:has(.price-brush)::after {
    background:
      linear-gradient(90deg, #0d1814df, #0d18149e 56%, #0d18144d 82%, transparent),
      linear-gradient(0deg, #0c18145f, transparent 27%);
  }
}

@media (max-width: 420px) {
  .price-brush-flat { top: 38%; right: 12%; width: clamp(17px, 7%, 27px); }
  .price-brush-fine { top: 44%; right: 6%; width: clamp(12px, 4.4%, 17px); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduced"]) .price-plan:hover .price-plan-art {
    --hover-progress: 1;
  }
}
