/*!
 * ProsperaTour engine styles. Namespaced under #ppt-root / .ppt-*.
 * Self-contained tokens so it looks right dropped into any host page,
 * light or dark, without depending on the host's own CSS variables.
 */
#ppt-root {
  --ppt-ink: #1f1d1a;
  --ppt-ink-soft: #55524b;
  --ppt-surface: #fffefb;
  --ppt-line: #e2ded4;
  --ppt-accent: #3a337d;
  --ppt-accent-ink: #ffffff;
  --ppt-veil: rgba(20, 18, 14, 0.55);
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  #ppt-root {
    --ppt-ink: #ece8e0;
    --ppt-ink-soft: #b4aea2;
    --ppt-surface: #232019;
    --ppt-line: #3a352c;
    --ppt-accent: #a99fe4;
    --ppt-accent-ink: #1c1a24;
    --ppt-veil: rgba(0, 0, 0, 0.65);
  }
}
#ppt-root[hidden] { display: none; }
#ppt-root * { box-sizing: border-box; }

.ppt-veil {
  /* background + pointer-events are set per-step by engine.js:
     - a step with a target dims via .ppt-cut's box-shadow "spotlight" (a
       purely visual trick — it does not punch a hole in hit-testing), so
       this layer is left transparent and pointer-events:none so the real
       click reaches the highlighted element underneath;
     - a centered (no-target) step has no cutout to click through, so this
       layer instead carries the dim background and blocks clicks itself. */
  position: absolute;
  inset: 0;
  transition: background .2s ease;
}
.ppt-cut {
  position: absolute;
  display: none;
  border-radius: 10px;
  box-shadow: 0 0 0 2000px var(--ppt-veil);
  background: transparent;
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ppt-cut, .ppt-ring, .ppt-bubble { transition: none !important; }
}

.ppt-ring {
  position: absolute;
  border: 2px solid var(--ppt-accent);
  border-radius: 10px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ppt-accent) 25%, transparent);
  pointer-events: none;
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}

.ppt-bubble {
  position: absolute;
  width: min(340px, calc(100vw - 24px));
  background: var(--ppt-surface);
  color: var(--ppt-ink);
  border-radius: 14px;
  border: 1px solid var(--ppt-line);
  box-shadow: 0 20px 48px -18px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.08);
  padding: 16px 18px 14px;
  pointer-events: auto;
}
.ppt-bubble-top { transform-origin: bottom center; }
.ppt-bubble-bottom { transform-origin: top center; }

.ppt-bubble-top-inner,
.ppt-bubble-top { }

.ppt-bubble .ppt-bubble-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ppt-progress {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ppt-accent);
  font-weight: 600;
}
.ppt-iconbtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ppt-ink-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}
.ppt-iconbtn:hover { background: color-mix(in srgb, var(--ppt-ink) 8%, transparent); }
.ppt-iconbtn:focus-visible { outline: 2px solid var(--ppt-accent); outline-offset: 1px; }

.ppt-title {
  margin: 2px 0 4px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}
.ppt-body {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ppt-ink-soft);
}
.ppt-cta-wrap { margin: 4px 0 12px; }
.ppt-cta-wrap[hidden] { display: none; }

.ppt-bubble-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ppt-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ppt-ink-soft);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 4px 0;
}
.ppt-link:hover { color: var(--ppt-ink); }
.ppt-nav-btns { display: flex; gap: 8px; }

.ppt-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ppt-btn:focus-visible { outline: 2px solid var(--ppt-accent); outline-offset: 2px; }
.ppt-btn-primary {
  background: var(--ppt-accent);
  color: var(--ppt-accent-ink);
}
.ppt-btn-primary:hover { filter: brightness(1.06); }
.ppt-btn-primary:disabled { opacity: .6; cursor: default; }
.ppt-btn-ghost {
  background: transparent;
  border-color: var(--ppt-line);
  color: var(--ppt-ink);
}
.ppt-btn-ghost:hover { background: color-mix(in srgb, var(--ppt-ink) 6%, transparent); }
.ppt-cta { width: 100%; justify-content: center; padding: 10px 16px; font-size: 14px; }

/* Launch pill (injected by each site's boot.js) */
.ppt-launch {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 2147482900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ppt-accent, #3a337d);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px 11px 14px;
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.4);
  cursor: pointer;
}
.ppt-launch:hover { filter: brightness(1.08); }
.ppt-launch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ppt-launch svg { flex: none; }

@media (max-width: 420px) {
  .ppt-bubble { width: calc(100vw - 24px); }
  .ppt-launch { left: 12px; bottom: 12px; padding: 10px 14px; font-size: 13px; }
}
