/* Home hero product tour: side menu + browser frame with real screenshots, magnifier lift and glass tooltip. */
.eb-tour {
  --t-h: #24183f; --t-brand: #402198; --t-muted: #414d63; --t-blue: #4facf3; --t-line: #dedff3;
  --t-shadow: 0 8px 28px #5366ae14;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start;
  width: 100%; margin: 30px auto 0; text-align: start; font-family: 'Rubik', 'Heebo', sans-serif;
}
.eb-tour *, .eb-tour *::before, .eb-tour *::after { box-sizing: border-box; }

.eb-tour-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.eb-tour-list li { display: flex; margin: 0; padding: 0; }
.eb-tour-item {
  appearance: none; position: relative; width: 100%; display: flex; align-items: center; gap: 14px; text-align: start; cursor: pointer;
  padding: 10px 16px 14px; min-height: 76px; border-radius: 16px; background: #ffffffb8; border: 2px solid transparent;
  box-shadow: var(--t-shadow); opacity: .82; overflow: hidden; font: inherit; color: inherit;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.eb-tour-item::before {
  content: ""; position: absolute; inset-block: 10px; inset-inline-start: 0; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--t-blue); opacity: 0; transition: opacity .3s ease;
}
.eb-tour-ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; line-height: 0; }
.eb-tour-ico img { display: block; width: 48px; height: 48px; object-fit: contain; }
.eb-tour-t { font-family: 'Rubik', 'Heebo', sans-serif; font-weight: 800; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.25; color: var(--t-h); }
.eb-tour-pg { position: absolute; inset-inline: 16px; bottom: 6px; height: 3px; border-radius: 3px; background: transparent; overflow: hidden; }
.eb-tour-pg i { display: block; height: 100%; width: 0; background: var(--t-blue); border-radius: 3px; }
.eb-tour-item:hover { opacity: 1; }
.eb-tour-item:focus-visible { outline: 3px solid #8463e7; outline-offset: 3px; }
.eb-tour-item.on { opacity: 1; background: #fff; border-color: var(--t-blue); box-shadow: 0 10px 30px #4facf333, 0 0 0 4px #4facf31f; }
.eb-tour-item.on::before { opacity: 1; }
.eb-tour-item.on .eb-tour-pg { background: #4facf325; }

.eb-tour-frame {
  position: relative; min-width: 0; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--t-line);
  box-shadow: 0 28px 64px -18px #3a35868c, 0 8px 28px #5366ae1f;
}
.eb-tour-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: linear-gradient(#f7f8fe, #eef0fa); border-bottom: 1px solid var(--t-line); }
.eb-tour-bar i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #d3d6ea; }
.eb-tour-bar b { display: block; flex: 1; max-width: 260px; height: 18px; border-radius: 9px; background: #fff; border: 1px solid var(--t-line); margin-inline-start: 14px; }
.eb-tour-stage { position: relative; aspect-ratio: 1920 / 889; overflow: hidden; direction: ltr; background: #fff; }
.eb-tour-zoom { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.eb-tour-zoom img.eb-tour-shot { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; opacity: 0; transition: opacity .45s ease; }
.eb-tour-zoom img.eb-tour-shot.on { opacity: 1; }
.eb-tour-lift {
  position: absolute; z-index: 2; pointer-events: none; opacity: 0; border-radius: 14px; background-repeat: no-repeat; transform: scale(1); transform-origin: 50% 50%;
  box-shadow: 0 0 0 2px #4facf3, 0 0 0 rgba(40, 30, 110, 0);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .35s ease, box-shadow .5s cubic-bezier(.2, .8, .2, 1);
}
.eb-tour-lift.on { opacity: 1; transform: scale(var(--s, 1.12)); z-index: 3; box-shadow: 0 0 0 2px #4facf3, 0 24px 60px rgba(40, 30, 110, .28); }

.eb-tour-tip {
  position: absolute; z-index: 3; direction: rtl; display: flex; align-items: center; gap: 12px; width: 300px; max-width: calc(100% - 24px);
  padding: 12px 16px; border-radius: 16px; background: #ffffffeb; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--t-line); box-shadow: 0 18px 44px #5a2fd03d, 0 4px 14px #5a2fd01f;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; pointer-events: none; text-align: start;
}
.eb-tour-tip.show { opacity: 1; transform: none; }
.eb-tour-tip img { flex: none; width: 40px; height: 40px; object-fit: contain; display: block; }
.eb-tour-tip b { display: block; font-family: 'Rubik', 'Heebo', sans-serif; font-weight: 800; font-size: 16px; line-height: 1.25; color: var(--t-h); }
.eb-tour-tip span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--t-muted); font-weight: 500; }
.eb-tour-tip::after { content: ""; position: absolute; width: 14px; height: 14px; background: #fffffff5; border: 1px solid var(--t-line); transform: rotate(45deg); }
.eb-tour-tip.s-above::after { bottom: -8px; left: var(--ax, 50%); margin-left: -7px; border-top: 0; border-left: 0; }
.eb-tour-tip.s-below::after { top: -8px; left: var(--ax, 50%); margin-left: -7px; border-bottom: 0; border-right: 0; }
.eb-tour-tip.s-left::after { right: -8px; top: var(--ay, 50%); margin-top: -7px; border-bottom: 0; border-left: 0; }
.eb-tour-tip.s-right::after { left: -8px; top: var(--ay, 50%); margin-top: -7px; border-top: 0; border-right: 0; }
.eb-tour-tip.s-bottom::after, .eb-tour-tip.s-inside::after { display: none; }

@media (max-width: 1099px) {
  .eb-tour { grid-template-columns: 250px minmax(0, 1fr); gap: 18px; }
  .eb-tour-item { padding-inline: 12px; gap: 10px; }
  .eb-tour-ico, .eb-tour-ico img { width: 40px; height: 40px; }
}
@media (max-width: 767px) {
  .eb-tour { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 28px; }
  .eb-tour-list, .eb-tour-frame { max-width: 100%; }
  .eb-tour-list {
    order: -1; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    margin: 0 -16px; padding: 6px 16px 10px; scrollbar-width: none;
  }
  .eb-tour-list::-webkit-scrollbar { display: none; }
  .eb-tour-list li { flex: 0 0 74%; scroll-snap-align: center; }
  .eb-tour-frame { border-radius: 14px; }
  .eb-tour-bar { height: 24px; padding: 0 10px; }
  .eb-tour-bar i { width: 8px; height: 8px; }
  .eb-tour-bar b { height: 13px; }
  .eb-tour-lift { border-radius: 10px; }
  .eb-tour-tip { width: auto; padding: 8px 10px; gap: 8px; border-radius: 12px; }
  .eb-tour-tip img { width: 28px; height: 28px; }
  .eb-tour-tip b { font-size: 13px; }
  .eb-tour-tip span { font-size: 11.5px; margin-top: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .eb-tour *, .eb-tour *::before, .eb-tour *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .eb-tour-tip { opacity: 1; transform: none; }
}
