/* =========================================================
   IntegraDomy.pl — Offer Hand Tour
   Niezależny asystent: półprzezroczysta ręka pokazuje etapy.
   ========================================================= */

.id-hand-tour,
.id-hand-tour * {
  box-sizing: border-box;
}

.id-hand-tour {
  --hand-red: #ed1c24;
  --hand-navy: #07111f;
  --hand-white: rgba(255,255,255,.92);

  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483000;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition:
    opacity .26s ease,
    transform .64s cubic-bezier(.18,.86,.24,1);
  will-change: transform, opacity;
}

.id-hand-tour.is-visible {
  opacity: 1;
}

.id-hand-tour.is-tapping .id-hand-tour__cursor {
  animation: idHandTourTap .42s cubic-bezier(.2,.8,.2,1) both;
}

.id-hand-tour.is-tapping .id-hand-tour__halo {
  animation: idHandTourHalo .52s ease-out both;
}

.id-hand-tour__halo {
  position: absolute;
  left: -22px;
  top: -22px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(237,28,36,.24);
  background: radial-gradient(circle, rgba(237,28,36,.15), rgba(237,28,36,0) 68%);
  opacity: 0;
  transform: scale(.72);
}

.id-hand-tour__cursor {
  position: absolute;
  left: -11px;
  top: -18px;
  width: 64px;
  height: 64px;
  transform: rotate(-18deg);
  filter:
    drop-shadow(0 18px 18px rgba(15,23,42,.20))
    drop-shadow(0 3px 0 rgba(255,255,255,.72));
  will-change: transform;
}

.id-hand-tour__finger {
  position: absolute;
  left: 25px;
  top: 16px;
  width: 20px;
  height: 37px;
  border-radius: 14px 14px 10px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0)),
    rgba(237,28,36,.62);
  border: 1px solid rgba(237,28,36,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    0 12px 22px rgba(237,28,36,.18);
}

.id-hand-tour__finger::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -21px;
  width: 9px;
  height: 26px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0)),
    rgba(237,28,36,.66);
  border: 1px solid rgba(237,28,36,.32);
}

.id-hand-tour__finger::after {
  content: "";
  position: absolute;
  right: -17px;
  bottom: 5px;
  width: 24px;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    rgba(237,28,36,.42);
  border: 1px solid rgba(237,28,36,.20);
  transform: rotate(15deg);
}

.id-hand-tour__label {
  position: absolute;
  left: 46px;
  top: -18px;
  min-width: 170px;
  padding: 11px 13px 12px;
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.82)),
    radial-gradient(circle at 12% 18%, rgba(237,28,36,.10), transparent 46%);
  box-shadow:
    0 20px 48px rgba(15,23,42,.14),
    inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateX(-8px) scale(.96);
  transition:
    opacity .25s ease,
    transform .34s cubic-bezier(.2,.8,.2,1);
}

.id-hand-tour.is-visible .id-hand-tour__label {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.id-hand-tour__label::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 22px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: rgba(255,255,255,.88);
  border-left: 1px solid rgba(17,24,39,.08);
  border-bottom: 1px solid rgba(17,24,39,.08);
}

.id-hand-tour__label strong {
  display: block;
  color: var(--hand-navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.id-hand-tour__label span {
  display: block;
  margin-top: 4px;
  color: #596578;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.id-hand-tour-highlight {
  position: relative !important;
  z-index: 10 !important;
  animation: idHandTourStageGlow .9s ease both;
}

@keyframes idHandTourTap {
  0%, 100% {
    transform: translateY(0) rotate(-18deg) scale(1);
  }
  42% {
    transform: translateY(8px) rotate(-18deg) scale(.96);
  }
  70% {
    transform: translateY(2px) rotate(-18deg) scale(1.01);
  }
}

@keyframes idHandTourHalo {
  0% {
    opacity: .85;
    transform: scale(.62);
  }
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

@keyframes idHandTourStageGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(237,28,36,0);
  }
  46% {
    box-shadow: 0 0 0 7px rgba(237,28,36,.10);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(237,28,36,0);
  }
}

@media (max-width: 760px) {
  .id-hand-tour__cursor {
    width: 54px;
    height: 54px;
    left: -9px;
    top: -16px;
  }

  .id-hand-tour__finger {
    left: 21px;
    top: 14px;
    width: 17px;
    height: 31px;
  }

  .id-hand-tour__finger::before {
    left: 5px;
    top: -17px;
    width: 8px;
    height: 22px;
  }

  .id-hand-tour__finger::after {
    right: -13px;
    bottom: 4px;
    width: 19px;
    height: 11px;
  }

  .id-hand-tour__label {
    left: 38px;
    top: -16px;
    min-width: 146px;
    max-width: 180px;
    padding: 9px 11px 10px;
    border-radius: 12px;
  }

  .id-hand-tour__label strong {
    font-size: 13px;
  }

  .id-hand-tour__label span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .id-hand-tour,
  .id-hand-tour *,
  .id-hand-tour-highlight {
    animation: none !important;
    transition: none !important;
  }
}


/* =========================================================
   v2 — prawdziwa łapka/kursor jak systemowy pointer
   Zastępuje wcześniejszy "wałek" ikoną dłoni z palcem.
   ========================================================= */

.id-hand-tour__cursor {
  position: absolute;
  left: -8px;
  top: -12px;
  width: 64px;
  height: 64px;
  transform: rotate(-10deg);
  filter:
    drop-shadow(0 18px 18px rgba(15,23,42,.20))
    drop-shadow(0 2px 0 rgba(255,255,255,.75));
  will-change: transform;
}

.id-hand-tour__finger {
  position: absolute;
  inset: 0;
  width: 64px;
  height: 64px;
  display: block;
  border: 0;
  border-radius: 0;
  opacity: .82;
  background: none !important;
  box-shadow: none !important;
}

.id-hand-tour__finger::before {
  content: "";
  position: absolute;
  inset: 4px 3px 2px 4px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: rgba(237,28,36,.72);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2064%2064%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M27.5%204.8c-3.1%200-5.6%202.5-5.6%205.6v22.2l-3.8-4.4c-2-2.3-5.5-2.6-7.8-.6-2.2%201.9-2.5%205.2-.8%207.5l12.2%2016.4c2.5%203.4%206.5%205.4%2010.7%205.4h12.1c7.5%200%2013.6-6.1%2013.6-13.6V28.5c0-3-2.4-5.4-5.4-5.4-1.1%200-2.2.3-3%20.9-.8-2-2.8-3.4-5.1-3.4-1.3%200-2.5.4-3.4%201.2-.9-1.8-2.8-3-5-3-1.1%200-2.2.3-3.1.9v-9.3c0-3.1-2.5-5.6-5.6-5.6z%22/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2064%2064%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M27.5%204.8c-3.1%200-5.6%202.5-5.6%205.6v22.2l-3.8-4.4c-2-2.3-5.5-2.6-7.8-.6-2.2%201.9-2.5%205.2-.8%207.5l12.2%2016.4c2.5%203.4%206.5%205.4%2010.7%205.4h12.1c7.5%200%2013.6-6.1%2013.6-13.6V28.5c0-3-2.4-5.4-5.4-5.4-1.1%200-2.2.3-3%20.9-.8-2-2.8-3.4-5.1-3.4-1.3%200-2.5.4-3.4%201.2-.9-1.8-2.8-3-5-3-1.1%200-2.2.3-3.1.9v-9.3c0-3.1-2.5-5.6-5.6-5.6z%22/%3E%3C/svg%3E") center / contain no-repeat;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

.id-hand-tour__finger::after {
  content: "";
  position: absolute;
  inset: 4px 3px 2px 4px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: rgba(255,255,255,.92);
  transform: translate(-2px, -2px);
  z-index: -1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2064%2064%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M27.5%204.8c-3.1%200-5.6%202.5-5.6%205.6v22.2l-3.8-4.4c-2-2.3-5.5-2.6-7.8-.6-2.2%201.9-2.5%205.2-.8%207.5l12.2%2016.4c2.5%203.4%206.5%205.4%2010.7%205.4h12.1c7.5%200%2013.6-6.1%2013.6-13.6V28.5c0-3-2.4-5.4-5.4-5.4-1.1%200-2.2.3-3%20.9-.8-2-2.8-3.4-5.1-3.4-1.3%200-2.5.4-3.4%201.2-.9-1.8-2.8-3-5-3-1.1%200-2.2.3-3.1.9v-9.3c0-3.1-2.5-5.6-5.6-5.6z%22/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2064%2064%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M27.5%204.8c-3.1%200-5.6%202.5-5.6%205.6v22.2l-3.8-4.4c-2-2.3-5.5-2.6-7.8-.6-2.2%201.9-2.5%205.2-.8%207.5l12.2%2016.4c2.5%203.4%206.5%205.4%2010.7%205.4h12.1c7.5%200%2013.6-6.1%2013.6-13.6V28.5c0-3-2.4-5.4-5.4-5.4-1.1%200-2.2.3-3%20.9-.8-2-2.8-3.4-5.1-3.4-1.3%200-2.5.4-3.4%201.2-.9-1.8-2.8-3-5-3-1.1%200-2.2.3-3.1.9v-9.3c0-3.1-2.5-5.6-5.6-5.6z%22/%3E%3C/svg%3E") center / contain no-repeat;
}

.id-hand-tour__halo {
  left: -16px;
  top: -18px;
}

@media (max-width: 760px) {
  .id-hand-tour__cursor {
    width: 54px;
    height: 54px;
    left: -6px;
    top: -10px;
  }

  .id-hand-tour__finger {
    width: 54px;
    height: 54px;
  }

  .id-hand-tour__finger::before,
  .id-hand-tour__finger::after {
    inset: 3px 2px 2px 3px;
  }
}
