/* The explorer (assets/explorer.js): choices beside a card with numbered steps. Public website look, tokens on body.lp (site.css, site-light.css). */
.xp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.7fr); gap: 28px; align-items: stretch; }

/* Choices, with a highlight that slides to the picked one */
.xp-tabs { position: relative; display: flex; flex-direction: column; gap: 6px; }
.xp-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 16px; pointer-events: none;
  background: radial-gradient(120% 140% at 0 50%, rgba(236, 102, 54, .16), transparent 70%), var(--glass);
  border: 1px solid rgba(236, 102, 54, .38); box-shadow: var(--lift), 0 0 0 4px rgba(236, 102, 54, .06);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1); }
.xp-tab { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: 16px;
  background: none; color: var(--text2); font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: color .2s, border-color .2s; }
.xp-tab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .25s; pointer-events: none;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(236, 102, 54, .14), transparent 70%); }
.xp-tab:hover::before { opacity: 1; }
.xp-tab:hover:not(.on) { border-color: var(--glass-line); color: var(--ink); }
.xp-tab.on { color: var(--ink); }
.xp-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.xp-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sunken); color: var(--text2); transition: background .3s, color .3s, transform .3s; }
.xp-ic svg { width: 20px; height: 20px; }
.xp-tab.on .xp-ic { background: var(--accent); color: var(--on-accent); transform: scale(1.04); }
.xp-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.xp-t b { font: 600 16px/1.25 var(--f-head); letter-spacing: -0.01em; }
.xp-t > span { font-size: 13px; line-height: 1.4; color: var(--text3); }
.xp-tab.on .xp-t > span { color: var(--text2); }
/* The bar that fills while the chat plays by itself */
.xp-bar { position: absolute; left: 16px; right: 16px; bottom: 7px; height: 2px; border-radius: 2px; background: transparent; overflow: hidden; }
.xp-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); border-radius: inherit; }
.xp-tab.run .xp-bar { background: var(--glass-line); }
.xp-tab.run .xp-bar i { transform: scaleX(1); transition: transform var(--run, 9s) linear; }

.xp-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font: 600 11.5px/1 var(--f-body); }
.xp-badge svg { width: 13px; height: 13px; }
.xp-badge.live { background: var(--pos-soft); color: var(--pos); }
.xp-badge.coming { background: var(--sunken); color: var(--text2); border: 1px solid var(--glass-line); }

/* The stage: the headline, the steps as numbered cards, then a number, who it's for and the link */
.xp-stage { position: relative; padding: 30px; border-radius: 28px; border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--lift);
  isolation: isolate; overflow: hidden; outline: none; min-height: 100%; display: flex; }
.xp-glow { position: absolute; z-index: -1; left: 50%; top: 0; width: 560px; height: 360px; margin-left: -280px; margin-top: -140px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(236, 102, 54, .22), transparent); filter: blur(10px);
  transform: translate(var(--gx, 0), var(--gy, 0)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.motion .xp-glow { animation: xpBreath 6s ease-in-out infinite; }
@keyframes xpBreath { 50% { opacity: .6; } }

.xp-info { display: flex; flex-direction: column; gap: 22px; width: 100%; min-width: 0; }
.xp-top { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.xp-info h3 { margin: 0; font: 600 clamp(24px, 2.4vw, 32px)/1.12 var(--f-head); letter-spacing: -0.025em; color: var(--ink); max-width: 30ch; }

/* Steps: numbered boxes joined by a line that fills as each one lights up */
.xp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: x; }
.xp-steps.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xp-steps.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xp-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 18px;
  border: 1px solid var(--glass-line); background: var(--sunken); opacity: .45; transform: translateY(6px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1), border-color .45s, box-shadow .45s; }
.xp-step.lit { opacity: 1; transform: none; border-color: rgba(236, 102, 54, .35); box-shadow: 0 14px 34px -22px rgba(236, 102, 54, .6); }
/* The joining line, from this box to the next */
.xp-step:not(:last-child)::after { content: ""; position: absolute; top: 34px; left: calc(100% + 1px); width: 12px; height: 2px; background: var(--glass-line); }
.xp-step.lit:not(:last-child)::after { background: var(--accent); transition: background .3s .3s; }
.xp-sn { position: absolute; top: 14px; right: 16px; font-size: 12px; color: var(--text3); }
.xp-step .pi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); color: var(--text2); transition: background .45s, color .45s; }
.xp-step .pi svg { width: 18px; height: 18px; }
.xp-step.lit .pi { background: var(--accent); color: var(--on-accent); }
.xp-step b { font: 600 15.5px/1.3 var(--f-head); color: var(--ink); letter-spacing: -0.01em; }
.xp-step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text2); }

.xp-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; margin-top: auto; }
.xp-fact { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--glass-line); }
.xp-fact b { font-size: 30px; line-height: 1; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.xp-fact span { font-size: 13.5px; line-height: 1.4; color: var(--text2); display: flex; flex-direction: column; gap: 2px; }
.xp-fact small { font-size: 11.5px; color: var(--text3); }
.xp-end { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.xp-bottom > .xp-end:only-child { grid-column: 1 / -1; align-items: flex-start; }
.xp-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 360px; }
.xp-chips span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--glass-line); color: var(--text2); }
.xp-go { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 600 15px var(--f-body); text-decoration: none; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.xp-go:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(236, 102, 54, .7); }
.xp-go .ic svg { width: 16px; height: 16px; transition: transform .2s; }
.xp-go:hover .ic svg { transform: translateX(3px); }

/* Switching: the card fades and rises */
.xp-info { transition: opacity .23s ease, transform .23s ease; }
.xp-stage.out .xp-info { opacity: 0; transform: translateY(8px); }
/* Coming into view */
.motion .xp:not(.in) .xp-tab, .motion .xp:not(.in) .xp-stage { opacity: 0; transform: translateY(16px); }
.motion .xp .xp-tab, .motion .xp .xp-stage { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1), color .2s, border-color .2s; }
.motion .xp.in .xp-tab:nth-child(3) { transition-delay: .06s; } .motion .xp.in .xp-tab:nth-child(4) { transition-delay: .12s; }
.motion .xp.in .xp-tab:nth-child(5) { transition-delay: .18s; } .motion .xp.in .xp-tab:nth-child(6) { transition-delay: .24s; }
.motion .xp.in .xp-tab:nth-child(7) { transition-delay: .3s; } .motion .xp.in .xp-stage { transition-delay: .15s; }

/* Light website */
:where(html[data-site-theme="light"]) .xp-glow { background: radial-gradient(closest-side, rgba(236, 102, 54, .2), transparent); }

/* Narrower: choices become a row of chips above the stage */
@media (max-width: 1060px) {
  .xp { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .xp-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
  .xp-tabs::-webkit-scrollbar { display: none; }
  .xp-tab { flex: 0 0 auto; width: auto; padding: 10px 14px 12px; scroll-snap-align: center; }
  .xp-tab .xp-t > span { display: none; }
  .xp-ic { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
  .xp-ic svg { width: 17px; height: 17px; }
  .xp-t b { font-size: 14.5px; white-space: nowrap; }
  .xp-tab .xp-badge { display: none; }
  .xp-bar { left: 12px; right: 12px; bottom: 4px; }
}
@media (max-width: 760px) {
  .xp-stage { padding: 20px 16px; border-radius: 22px; }
  .xp-steps, .xp-steps.c2, .xp-steps.c4 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .xp-step { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 14px 16px; }
  .xp-step p { flex: 1 1 100%; padding-left: 48px; margin-top: -6px; }
  .xp-step b { flex: 1; padding-right: 18px; }
  .xp-step:not(:last-child)::after { top: auto; bottom: -11px; left: 33px; width: 2px; height: 10px; }
  .xp-bottom { grid-template-columns: minmax(0, 1fr); }
  .xp-end { align-items: stretch; }
  .xp-chips { justify-content: flex-start; max-width: none; }
  .xp-go { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .xp-ind, .xp-glow, .xp-info, .xp-step { transition: none; animation: none; }
}
