#pf-experience-hub {
  width: min(100%, 1180px);
  margin: 0 auto clamp(32px, 5vw, 52px);
  color: #f8fafc;
}

#pf-experience-hub * {
  box-sizing: border-box;
}

#pf-experience-hub .pf-exp-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

#pf-experience-hub .pf-exp-path {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 104px;
  padding: 16px 18px;
  border-radius: 16px;
  text-align: left;
}

#pf-experience-hub .pf-exp-path-preview {
  border: 1px solid rgba(96, 165, 250, 0.38);
  background: linear-gradient(145deg, rgba(30, 64, 175, 0.16), rgba(8, 16, 31, 0.78));
}

#pf-experience-hub .pf-exp-path-live {
  border: 1px solid rgba(245, 214, 123, 0.5);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.19), rgba(22, 17, 7, 0.84));
  box-shadow: 0 16px 42px rgba(212, 175, 55, 0.08);
}

#pf-experience-hub .pf-exp-path-number {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

#pf-experience-hub .pf-exp-path-preview .pf-exp-path-number {
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.45);
  background: rgba(59, 130, 246, 0.2);
}

#pf-experience-hub .pf-exp-path-live .pf-exp-path-number {
  color: #111827;
  background: #f5d67b;
}

#pf-experience-hub .pf-exp-path strong {
  display: block;
  margin: 1px 0 5px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

#pf-experience-hub .pf-exp-path span:last-child {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  line-height: 1.5;
}

#pf-experience-hub .pf-exp-role-tabs {
  display: flex;
  gap: 9px;
  margin: 0 0 14px;
  padding: 4px 1px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

#pf-experience-hub .pf-exp-role-tab {
  flex: 1 0 auto;
  min-width: 132px;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(5, 9, 17, 0.78);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  scroll-snap-align: start;
  touch-action: manipulation;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

#pf-experience-hub .pf-exp-role-tab:hover {
  border-color: rgba(245, 214, 123, 0.38);
  color: #fff;
}

#pf-experience-hub .pf-exp-role-tab[aria-selected="true"] {
  border-color: rgba(245, 214, 123, 0.72);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(9, 13, 22, 0.92));
  color: #fff3c4;
  box-shadow: inset 0 -2px 0 #d4af37;
}

#pf-experience-hub .pf-exp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.72fr);
  gap: 16px;
  align-items: stretch;
}

#pf-experience-hub .pf-exp-panel {
  overflow: hidden;
  border-radius: 18px;
}

#pf-experience-hub .pf-exp-preview {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid rgba(96, 165, 250, 0.34);
  background: linear-gradient(160deg, rgba(10, 21, 39, 0.97), rgba(3, 8, 16, 0.98));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

#pf-experience-hub .pf-exp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#pf-experience-hub .pf-exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.2;
}

#pf-experience-hub .pf-exp-preview .pf-exp-badge {
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.34);
  background: rgba(37, 99, 235, 0.14);
}

#pf-experience-hub .pf-exp-preview-note {
  color: rgba(219, 234, 254, 0.64);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: right;
}

#pf-experience-hub .pf-exp-preview-trigger {
  display: flex;
  min-height: 360px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(10px, 2vw, 18px);
  border: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.12), transparent 52%),
    #030711;
  cursor: zoom-in;
  touch-action: manipulation;
}

#pf-experience-hub .pf-exp-preview-trigger:focus-visible,
#pf-experience-hub .pf-exp-role-tab:focus-visible,
#pf-experience-hub .pf-exp-cta:focus-visible,
#pf-experience-hub .pf-exp-lightbox-close:focus-visible {
  outline: 3px solid #f5d67b;
  outline-offset: 3px;
}

#pf-experience-hub .pf-exp-preview-image {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #06080d;
  object-fit: contain;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

#pf-experience-hub .pf-exp-preview-image.is-portrait {
  max-height: 500px;
}

#pf-experience-hub .pf-exp-caption {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#pf-experience-hub .pf-exp-caption strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 0.97rem;
  line-height: 1.4;
}

#pf-experience-hub .pf-exp-caption span {
  display: block;
  color: rgba(219, 234, 254, 0.68);
  font-size: 0.82rem;
  line-height: 1.5;
}

#pf-experience-hub .pf-exp-live {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(19px, 2.5vw, 26px);
  border: 1px solid rgba(245, 214, 123, 0.58);
  background:
    radial-gradient(circle at 82% 3%, rgba(245, 214, 123, 0.17), transparent 38%),
    linear-gradient(155deg, rgba(39, 30, 10, 0.97), rgba(12, 12, 16, 0.99));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 244, 207, 0.09);
}

#pf-experience-hub .pf-exp-live .pf-exp-badge {
  align-self: flex-start;
  color: #17130a;
  background: #f5d67b;
  box-shadow: 0 7px 22px rgba(212, 175, 55, 0.18);
}

#pf-experience-hub .pf-exp-live h3 {
  margin: 18px 0 8px;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  letter-spacing: 0;
  line-height: 1.3;
}

#pf-experience-hub .pf-exp-live-intro {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.55;
}

#pf-experience-hub .pf-exp-choice-list {
  display: grid;
  gap: 9px;
  margin: 0 0 17px;
}

#pf-experience-hub .pf-exp-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

#pf-experience-hub .pf-exp-choice:first-child {
  border-color: rgba(245, 214, 123, 0.3);
  background: rgba(245, 214, 123, 0.06);
}

#pf-experience-hub .pf-exp-choice-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #111827;
  background: #f5d67b;
  font-size: 0.74rem;
  font-weight: 900;
}

#pf-experience-hub .pf-exp-choice:nth-child(2) .pf-exp-choice-index {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

#pf-experience-hub .pf-exp-choice strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.35;
}

#pf-experience-hub .pf-exp-choice span:last-child {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
  line-height: 1.4;
}

#pf-experience-hub .pf-exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 14px;
  padding: 0;
  list-style: none;
}

#pf-experience-hub .pf-exp-meta li {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.67);
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
}

#pf-experience-hub .pf-exp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255, 243, 196, 0.65);
  border-radius: 13px;
  color: #111827;
  background: linear-gradient(135deg, #d4af37, #f5d67b);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#pf-experience-hub .pf-exp-cta:hover {
  color: #05070b;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.27);
}

#pf-experience-hub .pf-exp-device {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

#pf-exp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(0, 0, 0, 0.91);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#pf-exp-lightbox[hidden] {
  display: none;
}

#pf-exp-lightbox .pf-exp-lightbox-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(96vw, 1460px);
  height: min(92vh, 980px);
  padding: 52px 12px 12px;
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 18px;
  background: #030711;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

#pf-exp-lightbox .pf-exp-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#pf-exp-lightbox .pf-exp-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.demo-grid[data-pf-replaced="true"] {
  display: none !important;
}

@media (max-width: 880px) {
  #pf-experience-hub .pf-exp-stage {
    grid-template-columns: 1fr;
  }

  #pf-experience-hub .pf-exp-preview-trigger {
    min-height: 290px;
  }

  #pf-experience-hub .pf-exp-preview-image {
    max-height: 360px;
  }

  #pf-experience-hub .pf-exp-live {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  #pf-experience-hub {
    margin-bottom: 30px;
  }

  #pf-experience-hub .pf-exp-paths {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  #pf-experience-hub .pf-exp-path {
    min-height: 0;
    padding: 13px 14px;
    border-radius: 13px;
  }

  #pf-experience-hub .pf-exp-path-number {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  #pf-experience-hub .pf-exp-role-tab {
    min-width: 118px;
    min-height: 46px;
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  #pf-experience-hub .pf-exp-panel {
    border-radius: 14px;
  }

  #pf-experience-hub .pf-exp-panel-head {
    padding: 12px;
  }

  #pf-experience-hub .pf-exp-preview-note {
    max-width: 48%;
  }

  #pf-experience-hub .pf-exp-preview-trigger {
    min-height: 220px;
    max-height: 310px;
    padding: 9px;
  }

  #pf-experience-hub .pf-exp-preview-image,
  #pf-experience-hub .pf-exp-preview-image.is-portrait {
    max-height: 288px;
  }

  #pf-experience-hub .pf-exp-caption {
    padding: 12px;
  }

  #pf-experience-hub .pf-exp-live {
    padding: 18px 16px;
  }

  #pf-experience-hub .pf-exp-live h3 {
    margin-top: 14px;
  }

  #pf-exp-lightbox .pf-exp-lightbox-card {
    width: 100%;
    height: min(90vh, 900px);
    padding: 50px 7px 7px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pf-experience-hub .pf-exp-role-tab,
  #pf-experience-hub .pf-exp-cta {
    transition: none;
  }
}

/* Keep the next step beside the demonstration on every market page. */
#live-demo { scroll-margin-top: 90px; }

/* Short, user-paced chapters. No autoplay or app download for the preview. */
#pf-experience-hub.pf-exp-compact { max-width: 960px; margin: 24px auto; }
#pf-experience-hub.pf-exp-compact .pf-exp-role-tabs { margin-bottom: 12px; }
#pf-experience-hub.pf-exp-compact .pf-exp-role-tab { min-height: 44px; padding: 10px 8px; overflow-wrap: anywhere; }
#pf-experience-hub.pf-exp-compact .pf-exp-preview { background: #101219; border-color: #383a44; }
#pf-experience-hub.pf-exp-compact .pf-exp-panel-head { padding: 10px 16px; color: #aeb5c4; font-size: .8rem; }
#pf-experience-hub.pf-exp-compact .pf-exp-preview-trigger { display: flex; flex-direction: column; align-items: center; padding: 12px; min-height: 0; background: #090b10; }
#pf-experience-hub.pf-exp-compact .pf-exp-preview-image { width: 100%; height: 330px; max-height: none; object-fit: contain; border: 0; border-radius: 6px; }
#pf-experience-hub.pf-exp-compact .pf-exp-preview-image.is-portrait { width: min(100%, 340px); object-fit: cover; object-position: top; }
#pf-experience-hub.pf-exp-compact .pf-exp-enlarge { margin-top: 8px; color: #c7cede; font-size: .8rem; }
#pf-experience-hub.pf-exp-compact .pf-exp-caption { display: block; text-align: center; padding: 14px 16px 6px; }
#pf-experience-hub.pf-exp-compact .pf-exp-caption-title { display: block; color: #fff; font-size: 1.1rem; }
#pf-experience-hub.pf-exp-compact .pf-exp-benefit { margin: 6px 0; color: #d1d5df; font-size: .95rem; line-height: 1.5; }
#pf-experience-hub.pf-exp-compact .pf-exp-pager { display: flex; justify-content: center; gap: 12px; padding: 8px 12px 14px; }
#pf-experience-hub.pf-exp-compact .pf-exp-pager button { min-width: 48px; min-height: 44px; padding: 8px 16px; background: #242833; color: #fff; border: 1px solid #48505f; border-radius: 10px; cursor: pointer; font: inherit; }
#pf-experience-hub.pf-exp-compact .pf-exp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
#pf-experience-hub.pf-exp-compact .pf-exp-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; width: auto; margin: 0; line-height: 1.4; border-radius: 12px; text-decoration: none; }
#pf-experience-hub.pf-exp-compact .pf-exp-free { border: 1px solid #596170; color: #fff; }
#pf-experience-hub.pf-exp-compact .pf-exp-detail { color: #dfc576; }
#pf-experience-hub.pf-exp-compact .pf-exp-next-steps { margin-top: 20px; padding-top: 16px; justify-content: center; }
.pf-detail-demo-link { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 12px 0 24px; }
.pf-detail-demo-link a { display: inline-flex; align-items: center; color: #dfc576; min-height: 48px; padding: 10px 0; }
@media (max-width: 640px) {
  #pf-experience-hub.pf-exp-compact .pf-exp-role-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  #pf-experience-hub.pf-exp-compact .pf-exp-preview-image { height: 260px; }
  #pf-experience-hub.pf-exp-compact .pf-exp-actions a { padding: 12px; font-size: .88rem; }
}
#pf-experience-hub .pf-exp-next-steps { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:24px; }
#pf-experience-hub .pf-exp-next-steps a,
#pf-experience-hub .pf-exp-next-steps button { display:inline-flex; align-items:center; justify-content:center; min-height:48px; font:inherit; font-weight:700; color:#fff; background:#25252b; border:1px solid #77652c; border-radius:12px; padding:14px 20px; text-decoration:none; cursor:pointer; max-width:100%; overflow-wrap:anywhere; }
#pf-experience-hub .pf-exp-next-steps :focus-visible { outline:3px solid #d4af37; outline-offset:3px; }

#pf-experience-hub.pf-exp-beginner .pf-exp-caption > span,
#pf-experience-hub.pf-exp-beginner .pf-exp-live-intro { display:none; }

/* First visit: preview is primary; setup, contact and installation are secondary. */
header .pf-hero-actions { align-items:center; }
header .pf-hero-actions > a { min-height:48px; box-sizing:border-box; justify-content:center; max-width:100%; }
header .pf-hero-actions > a:focus-visible { outline:3px solid #d4af37; outline-offset:4px; }
.pf-footer-install { display:inline-flex; align-items:center; justify-content:center; min-height:48px; max-width:100%; box-sizing:border-box; padding:12px; color:#dfc576; text-decoration:underline; }
