/* Figma handoff motion. Static content is the default; JavaScript only adds
   finite animation classes after an element reaches the viewport. */
:root {
  --figma-motion-styles-ready: 1;
}

.figma-loading {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
  pointer-events: none;
  /* This also releases the cover if JavaScript stops after inserting it. */
  animation: figma-loader-release .24s ease 2.6s forwards;
}

/* No JavaScript, deep links and reduced motion use the visible static page. */
html:not(.figma-loading-enabled) .figma-loading {
  display: none;
}

.figma-loading.is-leaving {
  animation: figma-loader-release .24s ease forwards;
}

.figma-loading-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.figma-loading-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: .18;
  animation: figma-loading-dot 1.05s ease-in-out infinite;
}

.figma-loading-dot:nth-child(2) { animation-delay: .15s; }
.figma-loading-dot:nth-child(3) { animation-delay: .3s; }

/* This state is added by JS only while a scroll effect waits for its trigger. */
.figma-motion-pending { opacity: 0; }

/* Keep card contents visible while their outline waits to be drawn. */
.price_item-price.figma-border-pending { border-color: transparent; }

.figma-fade-running {
  animation: figma-fade-up 1s cubic-bezier(.33, 1, .68, 1) both;
  will-change: opacity, transform;
}

.figma-zoom-running {
  animation: figma-zoom-in .8s cubic-bezier(.25, 1, .5, 1) both;
  transform-origin: center;
  will-change: opacity, transform;
}

.figma-wipe-running,
.figma-white-title-running {
  position: relative;
  isolation: isolate;
  animation: figma-wipe-ink 1.2s linear both;
  animation-delay: var(--figma-motion-delay, 0ms);
}

.figma-wipe-running::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #fff;
  pointer-events: none;
  animation: figma-white-wipe 1.2s cubic-bezier(.65, 0, .35, 1) both;
  animation-delay: var(--figma-motion-delay, 0ms);
}

/* SERVICE has a permanent white title background, as specified in the note. */
.figma-white-title-running {
  animation-name: figma-white-title-ink;
}

.figma-white-title-running::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  pointer-events: none;
  transform-origin: left;
  animation: figma-white-title-grow 1.2s cubic-bezier(.65, 0, .35, 1) both;
  animation-delay: var(--figma-motion-delay, 0ms);
}

.reason_block.figma-curtain-running {
  isolation: isolate;
  overflow: hidden;
  animation: figma-card-enter 1.2s cubic-bezier(.8, 0, .2, 1) both;
}

.reason_block.figma-curtain-running::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: #000;
  pointer-events: none;
  animation: figma-card-curtain 1.2s cubic-bezier(.8, 0, .2, 1) both;
}

.price_item-price.figma-border-running {
  position: relative;
  border-color: transparent;
}

.figma-price-outline {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  color: #fff;
  pointer-events: none;
}

.figma-price-outline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  animation: figma-border-draw 1.8s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes figma-loading-dot {
  0%, 65%, 100% { opacity: .18; }
  25%, 40% { opacity: 1; }
}

@keyframes figma-loader-release {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}

@keyframes figma-fade-up {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  80% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

@keyframes figma-zoom-in {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: none; }
}

@keyframes figma-wipe-ink {
  0%, 40% { color: transparent; }
  41%, 100% { color: var(--figma-motion-ink); }
}

@keyframes figma-white-wipe {
  0% { transform: scaleX(0); transform-origin: left; }
  38%, 45% { transform: scaleX(1); transform-origin: left; }
  46% { transform: scaleX(1); transform-origin: right; }
  90%, 100% { transform: scaleX(0); transform-origin: right; }
}

@keyframes figma-white-title-ink {
  0%, 40% { color: transparent; background-color: transparent; }
  41%, 99.9% { color: var(--figma-motion-ink); background-color: transparent; }
  100% { color: var(--figma-motion-ink); background-color: #fff; }
}

@keyframes figma-white-title-grow {
  0% { transform: scaleX(0); }
  42%, 100% { transform: scaleX(1); }
}

@keyframes figma-card-enter {
  0% { clip-path: polygon(0 100%, 0 100%, -20% 0, -20% 0); }
  45%, 100% { clip-path: polygon(0 100%, 120% 100%, 100% 0, -20% 0); }
}

@keyframes figma-card-curtain {
  0% { clip-path: polygon(0 100%, 0 100%, -20% 0, -20% 0); }
  45%, 55% { clip-path: polygon(0 100%, 120% 100%, 100% 0, -20% 0); }
  100% { clip-path: polygon(120% 100%, 120% 100%, 100% 0, 100% 0); }
}

@keyframes figma-border-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .figma-motion-pending { opacity: 1 !important; }
  .price_item-price.figma-border-pending { border-color: #fff !important; }
  .figma-loading { display: none; }
  .figma-fade-running,
  .figma-zoom-running,
  .figma-wipe-running,
  .figma-white-title-running,
  .reason_block.figma-curtain-running {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .figma-wipe-running,
  .figma-white-title-running { color: var(--figma-motion-ink) !important; }
  .figma-white-title-running { background-color: #fff !important; }
  .figma-wipe-running::after,
  .figma-white-title-running::after,
  .reason_block.figma-curtain-running::after,
  .figma-price-outline { display: none !important; }
  .price_item-price.figma-border-running { border-color: #fff; }
}

@media print {
  .figma-motion-pending { opacity: 1 !important; }
  .price_item-price.figma-border-pending,
  .price_item-price.figma-border-running { border-color: #fff !important; }
  .figma-price-outline { display: none !important; }
}
