/* Stamp ink = NavStak danger token; theme-runtime rewrites --st-danger per mode/package. */
:root { --pro-stamp: var(--st-danger, #c8283a); }
.pro-stamp-wrap { position: relative; }
.pro-stamp {
  position: absolute;
  top: 24%;
  left: 66%;
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-7deg);
  display: inline-block;
  max-width: 88%;
  padding: 0.35rem 0.7rem;
  text-align: center;
  font: 900 0.78rem/1.25 "Courier New", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pro-stamp);
  border: 4px double var(--pro-stamp);
  border-radius: 4px;
  background: color-mix(in srgb, var(--pro-stamp) 7%, transparent);
  opacity: 1;
  pointer-events: none;
  -webkit-mask-image:
    radial-gradient(circle at 12% 30%, transparent 0 0.8px, #000 1.2px),
    radial-gradient(circle at 70% 75%, transparent 0 0.6px, #000 1px),
    linear-gradient(100deg, #000 0 38%, rgba(0,0,0,0.88) 52%, #000 66%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle at 12% 30%, transparent 0 0.8px, #000 1.2px),
    radial-gradient(circle at 70% 75%, transparent 0 0.6px, #000 1px),
    linear-gradient(100deg, #000 0 38%, rgba(0,0,0,0.88) 52%, #000 66%);
  mask-composite: intersect;
  -webkit-mask-size: 7px 9px, 11px 7px, 100% 100%;
  mask-size: 7px 9px, 11px 7px, 100% 100%;
  text-shadow: 0 0 1px var(--pro-stamp);
}
.pro-stamp.pro-stamp-inline {
  position: static;
  transform: rotate(-4deg);
  margin: 0.4rem 0;
  font-size: 0.7rem;
}
/* Billing card: stamp sits in the flow at the top of the card, so it never covers the plan row or note. */
.bill-card.pro-stamp-wrap > .pro-stamp {
  position: static;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1rem 0.3rem 1.6rem auto;
  transform: rotate(-7deg);
}
/* Boarding slide: stamp is the first line of the copy (never over the screenshot or text);
   on phones the screenshot is dropped for this slide so the copy and stamp fit. */
.board1-slide .board1-copy.has-pro-stamp,
.board1-slide:has(.pro-stamp) .board1-copy {
  display: flex;
  flex-direction: column;
}
.board1-slide .pro-stamp.pro-stamp-inline {
  order: -1;
  align-self: flex-end;
  width: fit-content;
  max-width: 100%;
  margin: 0.8rem 0.3rem 1.4rem 0;
  transform: rotate(-5deg);
}
@media (max-width: 820px) {
  .board1-slide:has(.pro-stamp) .board1-shot { display: none; }
}
/* Pricing card: stamp sits in the flow above the title, so it can never cover card text at any width. */
.sub-plan.pro-stamp-wrap > .pro-stamp {
  position: static;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1rem 0.3rem 1.6rem auto;
  transform: rotate(-7deg);
}
