/* Page tours - see tour.js. Master copy: shared/web/tour.css. */

.pt-root, .pt-launch, .pt-resume, .pt-toast {
  --pt-navy: #0d1d44;
  --pt-ink: #0d1d44;
  --pt-ink-2: #4a5573;
  --pt-teal: #0f9a83;
  --pt-teal-2: #3bceb6;
  --pt-glow: linear-gradient(120deg, #3bceb6 0%, #5adaff 45%, #5468ff 100%);
  --pt-ease: cubic-bezier(.22, .9, .24, 1);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.pt-root *, .pt-launch *, .pt-resume * { box-sizing: border-box; }

/* ------------------------------------------------------------ overlay */
.pt-root { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; visibility: hidden; }
.pt-root.on { visibility: visible; pointer-events: auto; }
.pt-block { position: fixed; inset: 0; background: transparent; }

/* The bright cut-out: a box with a huge shadow dims everything else. */
.pt-hole {
  position: fixed; left: 0; top: 0; width: 0; height: 0;
  border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(9, 18, 44, .62);
  opacity: 0;
  transition: left .55s var(--pt-ease), top .55s var(--pt-ease), width .55s var(--pt-ease),
              height .55s var(--pt-ease), opacity .3s ease, border-radius .55s var(--pt-ease);
}
.pt-root.on .pt-hole { opacity: 1; }
.pt-root.closing .pt-hole { opacity: 0; }
.pt-root.pt-instant .pt-hole, .pt-root.pt-instant .pt-card { transition: none !important; }

/* A light that runs round the item: a turning gradient, masked to a border. */
@property --pt-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pt-ring {
  position: absolute; inset: -3px; border-radius: inherit; padding: 2.5px;
  background: conic-gradient(from var(--pt-a), #3bceb6, #5adaff, #5468ff, rgba(84, 104, 255, .15) 70%, #3bceb6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 6px rgba(90, 218, 255, .7));
  animation: pt-spin 2.8s linear infinite;
}
@keyframes pt-spin { to { --pt-a: 360deg; } }
/* Two soft ripples going out from the item. */
.pt-hole::before, .pt-hole::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none;
  border: 2px solid rgba(90, 218, 255, .55); animation: pt-ripple 2.4s ease-out infinite;
}
.pt-hole::after { animation-delay: 1.2s; }
.pt-root.dim-all .pt-ring, .pt-root.dim-all .pt-hole::before, .pt-root.dim-all .pt-hole::after { display: none; }
.pt-ring.pt-pop { animation: pt-spin 2.8s linear infinite, pt-pop .6s var(--pt-ease); }

@keyframes pt-ripple {
  0% { opacity: .9; inset: -3px; }
  100% { opacity: 0; inset: -22px; }
}
@keyframes pt-pop {
  0% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

/* ------------------------------------------------------------ card */
.pt-card {
  position: fixed; left: 50%; top: 50%; width: 360px; max-width: calc(100vw - 24px);
  color: #fff; border-radius: 20px; padding: 16px 16px 14px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(84, 104, 255, .35) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(59, 206, 182, .22) 0%, transparent 60%),
    linear-gradient(160deg, #1a2d6e 0%, #0f1f4d 55%, #0b1738 100%);
  box-shadow: 0 30px 70px rgba(2, 8, 28, .55), 0 0 0 1px rgba(255, 255, 255, .06),
              0 0 50px rgba(59, 206, 182, .18);
  transition: left .6s var(--pt-ease), top .6s var(--pt-ease), opacity .3s ease, transform .3s ease;
  font-size: 14px; line-height: 1.5; isolation: isolate;
}
/* Gradient border that slowly turns. */
.pt-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--pt-a), rgba(59, 206, 182, .9), rgba(90, 218, 255, .25),
              rgba(84, 104, 255, .9), rgba(90, 218, 255, .25), rgba(59, 206, 182, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pt-spin 6s linear infinite;
}
/* A soft light drifting inside the card. */
.pt-glow { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; pointer-events: none; }
.pt-glow::before {
  content: ""; position: absolute; width: 180px; height: 180px; left: -60px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 218, 255, .28), transparent 65%);
  animation: pt-drift 9s ease-in-out infinite alternate;
}
@keyframes pt-drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(220px, 60px); }
  100% { transform: translate(80px, 170px); }
}

.pt-card.pt-in { animation: pt-card-in .7s cubic-bezier(.2, 1.3, .3, 1) both; }
@keyframes pt-card-in {
  0% { opacity: 0; transform: perspective(800px) translateY(26px) rotateX(-18deg) scale(.9); filter: blur(6px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
.pt-root.closing .pt-card:not(.pt-fly) { opacity: 0; transform: scale(.92) translateY(10px); }
.pt-card.pt-fly {
  transition: transform .45s cubic-bezier(.6, 0, .8, .4), opacity .45s ease;
  transform: translate(var(--fly-x, 0), var(--fly-y, 0)) scale(.12) rotate(-8deg); opacity: 0;
}
.pt-card.pt-nudge { animation: pt-nudge .45s ease; }
@keyframes pt-nudge {
  0%, 100% { transform: none; }
  20% { transform: translateX(-8px) rotate(-1deg); }
  40% { transform: translateX(7px) rotate(1deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

/* The little arrow pointing at the item. */
.pt-arrow { position: absolute; width: 14px; height: 14px; background: #15275f; transform: rotate(45deg);
  display: none; border-radius: 3px; z-index: -2; }
.pt-card[data-side="bottom"] .pt-arrow { display: block; top: -6px; margin-left: -7px; background: #1a2d6e; }
.pt-card[data-side="top"] .pt-arrow { display: block; top: auto !important; bottom: -6px; margin-left: -7px; background: #0c1839; }
.pt-card[data-side="right"] .pt-arrow { display: block; left: -6px !important; margin-top: -7px; }
.pt-card[data-side="left"] .pt-arrow { display: block; left: auto !important; right: -6px; margin-top: -7px; }

/* Top row: step ring, names, hide. */
.pt-top { display: flex; align-items: center; gap: 12px; }
.pt-step { position: relative; flex: none; width: 50px; height: 50px; display: grid; place-items: center; }
.pt-step svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pt-step circle { fill: none; stroke-width: 3.5; }
.pt-step-track { stroke: rgba(255, 255, 255, .12); }
.pt-step-arc { stroke: #3bceb6; stroke-linecap: round;
  transition: stroke-dashoffset .7s var(--pt-ease); filter: drop-shadow(0 0 4px rgba(59, 206, 182, .8)); }
.pt-step b { font-size: 17px; font-weight: 800; line-height: 1; margin-top: -8px; font-variant-numeric: tabular-nums; }
.pt-step small { position: absolute; bottom: 10px; font-size: 8px; font-weight: 700; letter-spacing: .04em;
  color: rgba(255, 255, 255, .55); text-transform: uppercase; }
.pt-heads { flex: 1; min-width: 0; }
.pt-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(90deg, #3bceb6, #5adaff); -webkit-background-clip: text; background-clip: text;
  color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-title { font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin-top: 2px; }
.pt-x { flex: none; align-self: flex-start; display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75);
  cursor: pointer; transition: background .15s, color .15s, transform .2s; }
.pt-x:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(1px); }
.pt-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }

.pt-text { color: rgba(226, 234, 255, .82); font-size: 14px; margin: 10px 0 0 62px; min-height: 21px; }
.pt-w { display: inline-block; }

/* Step change: old words out, new words in one by one. */
.pt-card.pt-leave .pt-title, .pt-card.pt-leave .pt-text, .pt-card.pt-leave .pt-eyebrow {
  opacity: 0; transform: translateX(-14px); filter: blur(3px);
  transition: opacity .16s ease, transform .16s ease, filter .16s ease; }
.pt-card.pt-enter .pt-title { animation: pt-title-in .55s var(--pt-ease) both; }
.pt-card.pt-enter .pt-eyebrow { animation: pt-fade-in .4s ease both; }
.pt-card.pt-enter .pt-w { animation: pt-word-in .5s var(--pt-ease) both; }
.pt-card.pt-enter .pt-step b { animation: pt-num-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pt-title-in {
  0% { opacity: 0; transform: translateY(8px); clip-path: inset(0 100% 0 0); }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes pt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pt-word-in {
  0% { opacity: 0; transform: translateY(9px); filter: blur(4px); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes pt-num-in {
  0% { opacity: 0; transform: scale(.4) translateY(6px); }
  100% { opacity: 1; transform: none; }
}

/* Segmented progress: the current segment fills with a moving shine. */
.pt-segs { display: flex; gap: 5px; margin: 14px 0 0; }
.pt-segs i { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pt-segs i b { position: absolute; inset: 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #3bceb6, #5adaff, #5468ff); }
.pt-segs i.past b { width: 100%; }
.pt-segs i.on b { animation: pt-seg-fill .8s .1s var(--pt-ease) forwards; }
.pt-segs i.on::after { content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: pt-shine-run 1.8s 1s ease-in-out infinite; transform: translateX(-120%); }
@keyframes pt-seg-fill { to { width: 100%; } }
@keyframes pt-shine-run { to { transform: translateX(320%); } }

.pt-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pt-grow { flex: 1; }
.pt-skip { border: 0; background: none; color: rgba(226, 234, 255, .6); font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; padding: 6px 2px; transition: color .15s; }
.pt-skip:hover { color: #fff; }
.pt-back { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff;
  transition: background .15s, transform .15s, opacity .2s; }
.pt-back:hover { background: rgba(255, 255, 255, .14); transform: translateX(-2px); }
.pt-back:disabled { opacity: .3; cursor: default; transform: none; }
.pt-back svg, .pt-next svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; }
.pt-next {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 38px;
  border: 0; border-radius: 12px; padding: 0 16px 0 18px; cursor: pointer; color: #06231d;
  font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .01em;
  background: linear-gradient(110deg, #3bceb6 0%, #5adaff 60%, #8fa0ff 100%);
  box-shadow: 0 8px 22px rgba(59, 206, 182, .38), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .15s, box-shadow .15s;
}
.pt-next::after { /* shine passing over the button */
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg); animation: pt-btn-shine 3s 1.2s ease-in-out infinite;
}
.pt-next:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(59, 206, 182, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.pt-next:active { transform: translateY(1px); }
.pt-next svg { transition: transform .2s; }
.pt-next:not(.last) svg { animation: pt-nudge-x 1.6s 1.5s ease-in-out infinite; }
.pt-next.last { background: linear-gradient(110deg, #96e279, #3bceb6); }
@keyframes pt-btn-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes pt-nudge-x { 0%, 100% { transform: none; } 50% { transform: translateX(3px); } }
.pt-next:focus-visible, .pt-back:focus-visible, .pt-skip:focus-visible, .pt-x:focus-visible,
.pt-start:focus-visible, .pt-reset:focus-visible, .pt-resume button:focus-visible {
  outline: 2px solid rgba(90, 218, 255, .55); outline-offset: 3px; }

/* Welcome card (no item to point at): centred, with a big orbiting icon. */
.pt-spark { display: none; }
.pt-card.center { width: 400px; text-align: center; padding: 26px 22px 16px; }
.pt-card.center .pt-spark { display: grid; place-items: center; position: relative; width: 88px; height: 88px;
  margin: 0 auto 14px; }
.pt-spark-tile { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #3bceb6, #5adaff 50%, #5468ff);
  box-shadow: 0 12px 30px rgba(84, 104, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
  animation: pt-float 3.2s ease-in-out infinite; }
.pt-spark-tile svg { width: 32px; height: 32px; fill: currentColor; animation: pt-twinkle 2.6s ease-in-out infinite; }
.pt-orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(90, 218, 255, .35);
  animation: pt-turn 7s linear infinite; }
.pt-orbit::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; top: -4px; left: 50%;
  margin-left: -4px; background: #3bceb6; box-shadow: 0 0 10px #3bceb6; }
.pt-orbit.two { inset: 10px; animation-duration: 4.5s; animation-direction: reverse; border-color: rgba(84, 104, 255, .35); }
.pt-orbit.two::before { background: #8fa0ff; box-shadow: 0 0 10px #8fa0ff; width: 7px; height: 7px; top: -3px; }
.pt-card.center .pt-top { flex-direction: column; gap: 6px; }
.pt-card.center .pt-step { display: none; }
.pt-card.center .pt-x { position: absolute; top: 12px; right: 12px; }
.pt-card.center .pt-title { font-size: 22px; }
.pt-card.center .pt-text { margin: 8px 6px 0; font-size: 14.5px; }
.pt-card.center.pt-enter .pt-spark { animation: pt-pop-in .7s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes pt-turn { to { transform: rotate(360deg); } }
@keyframes pt-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(5deg); }
}
@keyframes pt-pop-in {
  0% { opacity: 0; transform: scale(.3) rotate(-30deg); }
  100% { opacity: 1; transform: none; }
}

/* Confetti when a tour is done. */
.pt-confetti { position: fixed; z-index: 2147483002; width: 0; height: 0; pointer-events: none; }
.pt-confetti i { position: absolute; width: 7px; height: 11px; border-radius: 2px; left: -3px; top: -5px;
  animation: pt-burst 1.1s cubic-bezier(.15, .7, .3, 1) both; }
.pt-confetti i.round { width: 8px; height: 8px; border-radius: 50%; }
@keyframes pt-burst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.6); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 60px)) rotate(var(--rot)) scale(1); }
}

/* ------------------------------------------------------------ Tour button */
.pt-launch {
  position: fixed; z-index: 2147482000; display: inline-flex; align-items: center;
  opacity: 0; visibility: hidden; transform: scale(.85);
  transition: opacity .25s ease, transform .3s var(--pt-ease), visibility .25s;
}
.pt-launch.on { opacity: 1; visibility: visible; transform: none; }
.pt-start { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #c9d0fb;
  background: #fff; color: #18338d; font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0;
  border-radius: 999px 0 0 999px; padding: 4px 10px 4px 8px; cursor: pointer; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(13, 29, 68, .08); transition: background .15s, box-shadow .15s; }
.pt-start:hover { background: #eef1ff; box-shadow: 0 4px 14px rgba(84, 104, 255, .22); }
.pt-start svg { width: 15px; height: 15px; fill: #5468ff; animation: pt-twinkle 2.6s ease-in-out infinite; }
.pt-reset { display: inline-grid; place-items: center; border: 1px solid #c9d0fb; border-left: 0;
  background: #fff; color: #74809a; border-radius: 0 999px 999px 0; padding: 0 8px 0 6px; height: 100%;
  min-height: 27px; cursor: pointer; box-shadow: 0 2px 8px rgba(13, 29, 68, .08);
  transition: color .15s, background .15s; }
.pt-reset:hover { color: #18338d; background: #eef1ff; }
.pt-reset:hover svg { transform: rotate(-200deg); }
.pt-reset svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--pt-ease); }
/* Docked on the right edge when the title is out of view: a small tab. */
.pt-launch.docked .pt-start { border-radius: 12px 0 0 12px; border-right: 0; width: 34px; height: 40px; padding: 0;
  justify-content: center; box-shadow: -4px 4px 16px rgba(13, 29, 68, .16); }
.pt-launch.docked .pt-start span, .pt-launch.docked .pt-reset { display: none; }
.pt-launch.docked .pt-start svg { width: 18px; height: 18px; }
.pt-launch.docked { transform: translateX(10px); }
.pt-launch.docked.on { transform: none; }
.pt-launch.pt-ping .pt-start { animation: pt-ping 1.1s ease 2; }
@keyframes pt-twinkle {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.18) rotate(15deg); }
}
@keyframes pt-ping {
  0% { box-shadow: 0 0 0 0 rgba(84, 104, 255, .55); }
  100% { box-shadow: 0 0 0 12px rgba(84, 104, 255, 0); }
}

/* ------------------------------------------------------------ hidden tour */
.pt-resume {
  position: fixed; right: 20px; bottom: 20px; z-index: 2147482500; display: flex; align-items: center;
  background: var(--pt-navy); color: #fff; border-radius: 999px; padding: 4px;
  box-shadow: 0 12px 30px rgba(9, 18, 44, .35);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .3s ease, transform .45s var(--pt-ease), visibility .3s, bottom .3s ease;
}
.pt-resume.on { opacity: 1; visibility: visible; transform: none; }
.pt-resume.on::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  animation: pt-ping 1.6s ease-out 3; pointer-events: none; }
.pt-resume button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pt-resume-go { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  padding: 6px 12px 6px 6px; border-radius: 999px; }
.pt-resume-go svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--pt-glow);
  fill: #fff; }
.pt-resume-go:hover { background: rgba(255, 255, 255, .08); }
.pt-resume-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: #aab4cc !important; }
.pt-resume-x:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
.pt-resume-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; }

/* ------------------------------------------------------------ toast */
.pt-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 2147483001; max-width: calc(100vw - 32px);
  background: var(--pt-navy); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 12px; box-shadow: 0 12px 30px rgba(9, 18, 44, .3);
  pointer-events: none; opacity: 0; transform: translate(-50%, 16px);
  transition: opacity .3s ease, transform .4s var(--pt-ease);
}
.pt-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ phones */
@media (max-width: 639px) {
  .pt-card { border-radius: 18px; padding: 14px 14px 12px; }
  .pt-card.center { padding: 20px 16px 14px; }
  .pt-text { margin-left: 0; }
  .pt-card.center .pt-spark { width: 72px; height: 72px; }
  .pt-resume { right: 12px; }
}

/* ------------------------------------------------------------ calm mode */
@media (prefers-reduced-motion: reduce) {
  .pt-root *, .pt-root *::before, .pt-root *::after, .pt-launch, .pt-launch *, .pt-resume, .pt-resume *,
  .pt-toast, .pt-card, .pt-confetti {
    animation: none !important; transition: none !important;
  }
  .pt-hole::before, .pt-hole::after, .pt-confetti { display: none; }
}

@media print {
  .pt-root, .pt-launch, .pt-resume, .pt-toast { display: none !important; }
}
