/*
 * Product tour — site-type switcher, "Try it" demo, feature tour and lightbox.
 * Loaded on the homepage and the /features/ page. Self-contained: everything is
 * scoped under .pt (or .pt-lb for the lightbox) and uses the Bright tokens.
 */
.pt, .pt-lb {
  --pt-navy: #0a2540; --pt-slate: #425466; --pt-muted: #6b7c93; --pt-purple: #635bff; --pt-purple-ink: #4b44d6;
  --pt-tint: #f0efff; --pt-soft: #f6f9fc; --pt-line: #e6ebf1; --pt-green: #0e9f6e; --pt-red: #df1b41;
  --pt-ease: cubic-bezier(.2, .8, .2, 1);
  --pt-shadow: 0 13px 27px -5px rgba(50, 50, 93, .16), 0 8px 16px -8px rgba(0, 0, 0, .14);
  --pt-shadow-lg: 0 50px 100px -20px rgba(50, 50, 93, .25), 0 30px 60px -30px rgba(0, 0, 0, .3);
  font-family: var(--nx-font, "Inter", system-ui, sans-serif);
  color: var(--pt-navy);
}
.pt { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.pt *, .pt *::before, .pt *::after { box-sizing: border-box; }
.pt img { display: block; max-width: 100%; height: auto; }
.pt button { font: inherit; color: inherit; }
.pt :focus-visible { outline: 3px solid var(--pt-purple); outline-offset: 2px; }
.pt-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.pt h2, .pt h3, .pt h4 { margin: 0; font-family: inherit; color: var(--pt-navy); text-wrap: balance; }
.pt p { margin: 0; }

/* Section heads */
.pt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; margin-bottom: 40px; }
.pt-head h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -.04em; font-weight: 750; margin-top: 12px; max-width: 15ch; }
.pt-head .pt-lead { max-width: 40ch; }
.pt-head:not(.pt-head-center) > .pt-lead { flex: 0 1 440px; }
.pt-head:not(.pt-head-center) h2 { max-width: 13ch; }
.pt-head-center { flex-direction: column; align-items: center; text-align: center; }
.pt-head-center h2 { max-width: 18ch; }
.pt-eyebrow { display: inline-block; font-size: 15px; font-weight: 700; color: var(--pt-purple); }
.pt-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--pt-slate); }
.pt-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; font-size: 16px; color: var(--pt-purple); text-decoration: none; }
.pt-link:hover { color: var(--pt-navy); }

/* ---------- Device frames ---------- */
.pt-browser { position: relative; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--pt-shadow-lg), 0 0 0 1px rgba(10, 37, 64, .06); }
.pt-chrome { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; background: var(--pt-soft); border-bottom: 1px solid var(--pt-line); }
.pt-dots { display: flex; gap: 6px; flex: none; }
.pt-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dce3eb; }
.pt-url { flex: 0 1 360px; margin: 0 auto; transform: translateX(-24px); height: 22px; line-height: 20px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--pt-line); font-size: 12px; color: var(--pt-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-screen { position: relative; }
.pt-phone { position: relative; padding: clamp(5px, .6vw, 8px); border-radius: clamp(26px, 3.4vw, 44px); background: #0d2236; box-shadow: var(--pt-shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.pt-phone .pt-screen { overflow: hidden; border-radius: calc(clamp(26px, 3.4vw, 44px) - clamp(5px, .6vw, 8px)); background: #fff; }
.pt-island { position: absolute; z-index: 2; left: 50%; top: calc(clamp(5px, .6vw, 8px) + 1%); width: 22%; aspect-ratio: 4.4 / 1; transform: translateX(-50%); border-radius: 999px; background: #05101c; }
@media (max-width: 640px) {
  .pt-chrome { height: 28px; padding: 0 10px; gap: 8px; }
  .pt-dots i { width: 7px; height: 7px; }
  .pt-dots { gap: 4px; }
  .pt-url { height: 18px; line-height: 16px; font-size: 10.5px; transform: translateX(-12px); }
  .pt-browser { border-radius: 10px; }
}

/* Zoomable screenshot */
.pt-zoom { position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.pt-zoom img { width: 100%; }
.pt-zoom-ic { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: var(--pt-navy); box-shadow: var(--pt-shadow); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .35s var(--pt-ease); }
.pt-zoom-ic svg { width: 18px; height: 18px; }
.pt-zoom:hover .pt-zoom-ic, .pt-zoom:focus-visible .pt-zoom-ic { opacity: 1; transform: none; }
.pt-zoom:focus-visible { outline-offset: -3px; }
@media (hover: none) { .pt-zoom-ic { opacity: .92; transform: scale(.85); right: 8px; bottom: 8px; } }

/* Chips + rails */
.pt-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--pt-line); background: #fff; font-size: 14px !important; font-weight: 600; color: var(--pt-navy); cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.pt-chip:hover { border-color: #c9c5ff; }
.pt-chip:active { transform: scale(.96); }
.pt-chip[aria-pressed="true"] { background: var(--pt-navy); border-color: var(--pt-navy); color: #fff; }
.pt-chip svg { width: 15px; height: 15px; }
.pt-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #cdd5df transparent; }
.pt-rail::-webkit-scrollbar { height: 6px; }
.pt-rail::-webkit-scrollbar-thumb { background: #cdd5df; border-radius: 6px; }

/* =========================================================
   1. See it in action — site-type switcher
   ========================================================= */
.pt-switch { padding-top: clamp(40px, 6vw, 88px); overflow: hidden; }
.pt-switch::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 34%; width: min(1100px, 90vw); height: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(99, 91, 255, .14), transparent); filter: blur(20px); }
.pt-seg { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto; padding: 4px; gap: 2px; border-radius: 999px; background: var(--pt-soft); border: 1px solid var(--pt-line); }
.pt-seg-btn { position: relative; padding: 11px 20px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 650; color: var(--pt-slate); cursor: pointer; overflow: hidden; transition: background .3s, color .3s, box-shadow .3s; }
.pt-seg-btn:hover { color: var(--pt-navy); }
.pt-seg-btn[aria-selected="true"] { background: #fff; color: var(--pt-navy); box-shadow: 0 2px 8px rgba(50, 50, 93, .12), 0 0 0 1px rgba(10, 37, 64, .04); }
.pt-seg-prog { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--pt-purple); transform: scaleX(0); transform-origin: left; opacity: 0; }
.pt-switch.is-auto .pt-seg-btn[aria-selected="true"] .pt-seg-prog { opacity: .7; animation: pt-prog var(--pt-dwell, 7s) linear forwards; }
.pt-switch.is-paused .pt-seg-btn[aria-selected="true"] .pt-seg-prog { animation-play-state: paused; }
@keyframes pt-prog { to { transform: scaleX(1); } }

.pt-sw-stage { display: grid; max-width: 1120px; margin: 44px auto 0; padding-bottom: 4%; }
.pt-sw-browser, .pt-sw-phone { grid-area: 1 / 1; }
.pt-sw-browser { margin-right: 13%; }
.pt-sw-phone { justify-self: end; align-self: end; width: 23%; margin-bottom: -4%; z-index: 2; }
.pt-sw-screens { position: relative; overflow: hidden; }
.pt-sw-browser .pt-sw-screens { aspect-ratio: 1200 / 880; }
.pt-sw-phone .pt-sw-screens { aspect-ratio: 390 / 844; }
.pt-sw-shot { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(1.01); transition: opacity .6s var(--pt-ease), transform .8s var(--pt-ease), visibility 0s .8s; visibility: hidden; }
.pt-sw-phone .pt-sw-shot { transform: translateX(16px); transition-delay: .06s, .06s, .86s; }
.pt-sw-shot.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .6s var(--pt-ease), transform .8s var(--pt-ease), visibility 0s; }
.pt-sw-phone .pt-sw-shot.is-on { transition-delay: .08s, .08s, 0s; }
.pt-sw-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pt-url { transition: opacity .3s; }
.pt-url.is-swap { opacity: 0; }

.pt-sw-panels { max-width: 1120px; margin: 56px auto 0; }
.pt-sw-panel.is-on { animation: pt-in .6s var(--pt-ease) both; }
@keyframes pt-in { from { opacity: 0; transform: translateY(10px); } }
.pt-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pt-points li { display: flex; gap: 14px; align-items: flex-start; }
.pt-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pt-tint); color: var(--pt-purple); }
.pt-ic svg { width: 21px; height: 21px; }
.pt-points strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 4px; }
.pt-points p { font-size: 15.5px; line-height: 1.55; color: var(--pt-slate); }
@media (max-width: 860px) {
  .pt-points { grid-template-columns: 1fr; gap: 20px; }
  .pt-sw-panels { margin-top: 48px; }
}
@media (max-width: 560px) {
  .pt-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 20px; }
  .pt-seg-btn { border-radius: 16px; padding: 11px 8px; font-size: 14.5px; }
  .pt-sw-stage { margin-top: 28px; padding-bottom: 14%; }
  .pt-sw-browser { margin-right: 0; margin-bottom: 30%; }
  .pt-sw-phone { width: 40%; margin-bottom: -10%; margin-right: -2px; }
}

/* =========================================================
   2. Try it — interactive demo
   ========================================================= */
.pt-demo { background: #fff; }
.pt-demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pt-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--pt-tint); color: var(--pt-purple-ink); font-size: 13.5px; font-weight: 650; }
.pt-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--pt-purple); box-shadow: 0 0 0 0 rgba(99, 91, 255, .5); animation: pt-ping 2s infinite; }
@keyframes pt-ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.pt-demo-types { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-demo-types > span { font-size: 14px; font-weight: 650; color: var(--pt-slate); margin-right: 4px; }

.pt-demo-win { box-shadow: var(--pt-shadow-lg), 0 0 0 1px rgba(10, 37, 64, .06); }
.pt-app { position: relative; overflow: hidden; min-height: 640px; padding: clamp(18px, 3vw, 36px) clamp(16px, 3.4vw, 44px) clamp(24px, 3vw, 40px); background: #f7f9fc; }
.pt-app-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 750; letter-spacing: -.035em; }
.pt-app-sub { margin-top: 6px !important; font-size: 15px; color: var(--pt-slate); }
.pt-app-search { display: flex; align-items: center; max-width: 560px; margin-top: 20px; padding: 5px 5px 5px 18px; border-radius: 999px; background: #fff; box-shadow: 0 8px 24px -10px rgba(50, 50, 93, .28), 0 0 0 1px var(--pt-line); transition: box-shadow .2s; }
.pt-app-search:focus-within { box-shadow: 0 8px 24px -10px rgba(50, 50, 93, .28), 0 0 0 2px var(--pt-purple); }
.pt-app-search > svg { width: 18px; height: 18px; flex: none; color: var(--pt-muted); }
.pt-app-search input { flex: 1; min-width: 0; height: 40px; margin: 0; padding: 0 12px; border: 0; background: none; font: 500 15px/1 inherit; font-family: inherit; color: var(--pt-navy); outline: none; box-shadow: none; }
.pt-app-search input::placeholder { color: #8796a8; }
.pt-app-search input::-webkit-search-cancel-button { cursor: pointer; }
.pt-app-search button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pt-purple); color: #fff !important; font-size: 14px; font-weight: 650; cursor: pointer; transition: background .2s; }
.pt-app-search button:hover { background: var(--pt-navy); }
.pt-app-search button svg { width: 16px; height: 16px; }
.pt-app-chips { display: flex; gap: 8px; margin: 16px -4px 0; padding: 2px 4px 4px; overflow-x: auto; scrollbar-width: none; }
.pt-app-chips::-webkit-scrollbar { display: none; }
.pt-app-chips .pt-chip { min-height: 36px; font-size: 13.5px !important; }
.pt-chip .pt-n { font-weight: 700; opacity: .7; }
.pt-app-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 14px; }
.pt-app-count { font-size: 14px; color: var(--pt-slate); }
.pt-app-count b { color: var(--pt-navy); }
.pt-app-views { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: #fff; border: 1px solid var(--pt-line); }
.pt-app-views button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font-size: 13px; font-weight: 650; color: var(--pt-slate); cursor: pointer; transition: background .2s, color .2s; }
.pt-app-views button svg { width: 16px; height: 16px; }
.pt-app-views button[aria-pressed="true"] { background: var(--pt-navy); color: #fff; }

/* Cards */
.pt-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.pt-app-grid.is-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pt-card { position: relative; min-width: 0; animation: pt-in .45s var(--pt-ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.pt-card-media { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: #dde3ea; }
.pt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--pt-ease); }
.pt-card:hover .pt-card-media img { transform: scale(1.04); }
.pt-card-body { padding: 12px 2px 0; }
.pt-price { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.pt-free { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #e7f8ef; color: var(--pt-green); font-size: 12.5px; font-weight: 700; }
.pt-kick { display: block; font-size: 12.5px; color: var(--pt-muted); margin-bottom: 2px; }
.pt-card-title { margin: 3px 0 4px !important; font-size: 15.5px !important; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.pt-open { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.pt-open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.pt-open:focus-visible { outline: none; }
.pt-open:focus-visible::after { outline: 3px solid var(--pt-purple); outline-offset: 4px; }
.pt-card:hover .pt-open { color: var(--pt-purple-ink); }
.pt-meta { display: flex; align-items: flex-start; gap: 5px; font-size: 13.5px; line-height: 1.45; color: var(--pt-slate); }
.pt-meta svg { width: 13px; height: 13px; flex: none; margin-top: .2em; color: var(--pt-muted); }
.pt-sub { font-size: 13px; color: var(--pt-muted); line-height: 1.5; }
.pt-heart { position: absolute; z-index: 2; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .96); color: var(--pt-navy); box-shadow: 0 4px 12px -2px rgba(10, 37, 64, .2); cursor: pointer; transition: transform .25s var(--pt-ease), color .2s; }
.pt-heart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; transition: fill .2s; }
.pt-heart:hover { transform: scale(1.08); }
.pt-heart[aria-pressed="true"] { color: var(--pt-purple); }
.pt-heart[aria-pressed="true"] svg { fill: currentColor; }
.pt-heart.is-pop { animation: pt-pop .45s var(--pt-ease); }
@keyframes pt-pop { 40% { transform: scale(1.3); } }
.pt-flag { position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 7px; background: rgba(10, 37, 64, .88); color: #fff; font-size: 12px; font-weight: 650; }
.pt-flag.is-light { background: rgba(255, 255, 255, .95); color: var(--pt-navy); }
.pt-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pt-slate); }
.pt-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pt-red); }
.pt-status b { font-weight: 650; color: var(--pt-red); }
.pt-status.is-open::before { background: #16a34a; }
.pt-status.is-open b { color: #15803d; }
/* Job card */
.pt-card-job { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 16px 16px; border: 1px solid var(--pt-line); border-radius: 14px; background: #fff; transition: box-shadow .3s, border-color .3s; }
.pt-card-job:hover { box-shadow: var(--pt-shadow); border-color: transparent; }
.pt-card-job .pt-heart { top: 12px; right: 12px; box-shadow: none; background: none; width: 34px; height: 34px; }
.pt-card-job .pt-card-body { padding: 0 34px 0 0; }
.pt-avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pt-tint); color: var(--pt-purple); font-weight: 750; font-size: 18px; }
.pt-tagline { display: inline-block; margin: 6px 0 8px; padding: 3px 9px; border-radius: 6px; background: #f1f4f8; font-size: 12px; font-weight: 650; color: var(--pt-navy); }
.pt-pay { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14.5px; font-weight: 700; }
.pt-pay small { font-size: 12.5px; font-weight: 500; color: var(--pt-muted); }
.pt-pay .pt-closed { color: var(--pt-red); font-weight: 650; }

/* Map view */
.pt-app-mapview { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 16px; height: 540px; }
.pt-app-mapview[hidden] { display: none; }
.pt-app-list { overflow-y: auto; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--pt-line); scrollbar-width: thin; }
.pt-row { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; transition: background .2s; }
.pt-row + .pt-row { margin-top: 2px; }
.pt-row img, .pt-row .pt-avatar { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.pt-row .pt-avatar { font-size: 22px; }
.pt-row .pt-kick { color: var(--pt-purple); font-weight: 650; }
.pt-row .pt-card-title { font-size: 14px !important; margin: 1px 0 2px !important; }
.pt-row .pt-sub { font-size: 12.5px; }
.pt-row .pt-open::after { border-radius: 12px; }
.pt-row.is-hot { background: var(--pt-tint); }
.pt-app-map { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--pt-line); background: #eef1f5; }
.pt-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pt-map-lab { position: absolute; transform: translate(-50%, -50%); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9aa8b8; white-space: nowrap; pointer-events: none; }
.pt-pins { position: absolute; inset: 0; }
.pt-pin { position: absolute; z-index: 1; transform: translate(-50%, -100%); display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: #fff; color: var(--pt-navy); font-size: 13px; font-weight: 750; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 14px -4px rgba(10, 37, 64, .35), 0 0 0 1px rgba(10, 37, 64, .06); transition: transform .25s var(--pt-ease), background .2s, color .2s; animation: pt-drop .5s var(--pt-ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.pt-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; z-index: -1; }
.pt-pin.is-square { width: 34px; padding: 0; justify-content: center; border-radius: 10px; color: var(--pt-purple); box-shadow: 0 6px 14px -4px rgba(10, 37, 64, .3), inset 0 0 0 2px var(--pt-purple); }
.pt-pin.is-square::after { display: none; }
.pt-pin .pt-pin-heart { width: 7px; height: 7px; border-radius: 50%; background: var(--pt-purple); }
.pt-pin:hover, .pt-pin:focus-visible, .pt-pin.is-hot { z-index: 3; background: var(--pt-purple); color: #fff; transform: translate(-50%, -100%) scale(1.12); }
.pt-pin.is-hot .pt-pin-heart, .pt-pin:hover .pt-pin-heart { background: #fff; }
@keyframes pt-drop { from { opacity: 0; translate: 0 -10px; } }
.pt-map-note { position: absolute; right: 10px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .85); font-size: 11px; font-weight: 600; color: var(--pt-muted); }

.pt-app-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 16px; text-align: center; color: var(--pt-slate); }
.pt-app-empty[hidden] { display: none; }
.pt-app-empty strong { font-size: 18px; color: var(--pt-navy); }
.pt-app-empty .pt-chip { margin-top: 8px; }

/* Detail slide-over */
.pt-app-scrim { position: absolute; inset: 0; z-index: 5; background: rgba(10, 37, 64, .32); opacity: 0; transition: opacity .35s; }
.pt-app-scrim.is-on { opacity: 1; }
.pt-app-detail { position: absolute; z-index: 6; top: 0; right: 0; bottom: 0; width: min(440px, 92%); overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: -30px 0 60px -20px rgba(10, 37, 64, .35); transform: translateX(104%); transition: transform .45s var(--pt-ease); }
.pt-app-detail.is-open { transform: none; }
.pt-d-media { position: relative; aspect-ratio: 3 / 2; background: #dde3ea; }
.pt-d-media img { width: 100%; height: 100%; object-fit: cover; }
.pt-d-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); box-shadow: var(--pt-shadow); cursor: pointer; }
.pt-d-close svg { width: 18px; height: 18px; }
.pt-d-handle { display: none; }
.pt-d-body { padding: 22px 24px 28px; }
.pt-d-body .pt-kick { color: var(--pt-purple); font-weight: 650; font-size: 13px; }
.pt-d-title { margin: 4px 0 10px !important; font-size: 24px !important; font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.pt-d-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.pt-d-price small { font-size: 14px; font-weight: 550; letter-spacing: 0; color: var(--pt-slate); }
.pt-d-facts { margin: 18px 0; padding: 0; }
.pt-d-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--pt-line); font-size: 14.5px; }
.pt-d-facts dt { color: var(--pt-slate); }
.pt-d-facts dd { margin: 0; font-weight: 650; text-align: right; }
.pt-d-desc { font-size: 15px; line-height: 1.6; color: var(--pt-slate); margin-bottom: 22px !important; }
.pt-d-act { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 0; border-radius: 12px; background: var(--pt-purple); color: #fff !important; font-size: 16px; font-weight: 650; cursor: pointer; transition: background .2s, transform .15s; }
.pt-d-act:hover { background: var(--pt-navy); }
.pt-d-act:active { transform: scale(.98); }
.pt-d-act svg { width: 18px; height: 18px; }
.pt-d-act[disabled] { background: #e9edf2; color: #8796a8 !important; cursor: not-allowed; }
.pt-d-sec { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pt-d-sec .pt-chip { flex: 1; justify-content: center; }
.pt-d-note { margin-top: 14px !important; font-size: 12.5px; color: var(--pt-muted); text-align: center; }

/* Toast */
.pt-app-toast { position: absolute; z-index: 8; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--pt-navy); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 18px 40px -12px rgba(10, 37, 64, .55); opacity: 0; visibility: hidden; transform: translate(-50%, 16px); transition: opacity .3s, transform .4s var(--pt-ease), visibility 0s .4s; }
.pt-app-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .3s, transform .4s var(--pt-ease), visibility 0s; }
.pt-app-toast:empty { display: none; }
.pt-app-toast span { min-width: 0; }
.pt-app-toast button { flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.pt-app-toast button:hover { background: rgba(255, 255, 255, .26); }
.pt-noscript { padding: 40px; text-align: center; color: var(--pt-slate); }

@media (max-width: 980px) {
  .pt-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-app-mapview { grid-template-columns: 1fr; height: auto; }
  .pt-app-map { order: -1; aspect-ratio: 4 / 3; }
  .pt-app-list { max-height: 300px; }
}
@media (max-width: 640px) {
  .pt-demo-bar { flex-direction: column; align-items: flex-start; }
  .pt-demo-types { flex-wrap: nowrap; overflow-x: auto; max-width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
  .pt-demo-types > span { display: none; }
  .pt-demo-types::-webkit-scrollbar { display: none; }
  .pt-app { min-height: 560px; }
  .pt-app-search { padding-left: 14px; }
  .pt-app-search button { width: 40px; padding: 0; justify-content: center; }
  .pt-app-search button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pt-app-chips { margin-right: -16px; padding-right: 16px; }
  .pt-app-grid { gap: 18px 12px; }
  .pt-app-grid.is-jobs { grid-template-columns: 1fr; gap: 12px; }
  .pt-card-media { border-radius: 12px; }
  .pt-heart { width: 34px; height: 34px; top: 8px; right: 8px; }
  .pt-heart svg { width: 17px; height: 17px; }
  .pt-card-title { font-size: 14px !important; }
  .pt-price { font-size: 15.5px; }
  .pt-meta, .pt-status { font-size: 12.5px; }
  .pt-sub { font-size: 12px; }
  .pt-flag { left: 8px; bottom: 8px; font-size: 11px; }
  .pt-app-views button span { display: none; }
  .pt-app-views button { padding: 0 10px; }
  /* Phone: the detail becomes a real bottom sheet */
  .pt-app-scrim { position: fixed; z-index: 10080; }
  .pt-app-detail { position: fixed; z-index: 10090; top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 22px 22px 0 0; transform: translateY(104%); box-shadow: 0 -20px 60px -10px rgba(10, 37, 64, .35); }
  .pt-d-handle { display: block; position: sticky; top: 0; z-index: 3; height: 0; }
  .pt-d-handle::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; border-radius: 5px; transform: translateX(-50%); background: rgba(255, 255, 255, .9); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
  .pt-d-body { padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); }
  .pt-app-toast { position: fixed; z-index: 10095; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: fit-content; max-width: none; margin: 0 auto; transform: translateY(16px); }
  .pt-app-toast.is-on { transform: none; }
}

/* =========================================================
   3. Feature tour
   ========================================================= */
.pt-tour { background: var(--pt-soft); }
.pt-tour-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.pt-tour-nav { position: sticky; top: 96px; }
.admin-bar .pt-tour-nav { top: 128px; }
.pt-tour-tabs { display: flex; flex-direction: column; gap: 2px; }
.pt-tour-tab { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--pt-slate); font-size: 15.5px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, box-shadow .2s; }
.pt-tour-tab svg { width: 20px; height: 20px; flex: none; color: #8796a8; transition: color .2s; }
.pt-tour-tab:hover { background: rgba(255, 255, 255, .7); color: var(--pt-navy); }
.pt-tour-tab[aria-selected="true"] { background: #fff; color: var(--pt-navy); box-shadow: 0 2px 8px rgba(50, 50, 93, .08), 0 0 0 1px rgba(10, 37, 64, .04); }
.pt-tour-tab[aria-selected="true"] svg { color: var(--pt-purple); }
.pt-tour-tab[aria-selected="true"]::before { content: ""; position: absolute; left: -10px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--pt-purple); }
.pt-nav-cta { position: relative; display: block; margin-top: 24px; padding: 18px 44px 18px 18px; border-radius: 16px; background: var(--pt-navy); color: #fff; text-decoration: none; transition: transform .3s var(--pt-ease), box-shadow .3s; }
.pt-nav-cta strong { display: block; font-size: 15.5px; }
.pt-nav-cta small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: #adbdcc; }
.pt-nav-cta > span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: #a5a0ff; font-size: 18px; transition: transform .3s var(--pt-ease); }
.pt-nav-cta:hover { transform: translateY(-2px); box-shadow: var(--pt-shadow); color: #fff; }
.pt-nav-cta:hover > span { transform: translate(4px, -50%); }

.pt-acc { display: none; margin: 0; }
.pt-tp + .pt-tp { margin-top: 96px; }
.pt-tour.is-tabs .pt-tp + .pt-tp { margin-top: 0; }
.pt-tour.is-tabs .pt-tp-body { animation: pt-in .5s var(--pt-ease) both; }
.pt-tp[hidden] { display: none; }
.pt-tp-head { max-width: 680px; margin-bottom: 32px; }
.pt-tp-title { font-size: clamp(26px, 2.6vw, 38px) !important; font-weight: 750; letter-spacing: -.035em; line-height: 1.08; }
.pt-tp-head p { margin-top: 10px !important; font-size: 17px; line-height: 1.6; color: var(--pt-slate); }
.pt-items { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.pt-item { grid-column: span var(--span, 12); margin: 0; min-width: 0; }
.pt-item figcaption { margin-top: 18px; }
.pt-item figcaption strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.pt-item figcaption span { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.55; color: var(--pt-slate); max-width: 62ch; }
.pt-item-phone { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pt-item-phone .pt-phone { width: 100%; max-width: 240px; }
.pt-item-phone figcaption { max-width: 260px; }
.pt-phones { gap: 24px; padding: 8px 4px 28px; margin: -8px -4px 0; }
.pt-phones .pt-phone { flex: 0 0 220px; scroll-snap-align: start; }
.pt-item-phones figcaption { margin-top: 4px; }

/* Card-style gallery */
.pt-gal-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.pt-gal-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -2px; padding: 2px; }
.pt-gal-chips::-webkit-scrollbar { display: none; }
.pt-gal-arrows { display: flex; gap: 8px; flex: none; }
.pt-gal-arrows button { width: 42px; height: 42px; border: 1px solid var(--pt-line); border-radius: 50%; background: #fff; font-size: 17px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pt-gal-arrows button:hover { background: var(--pt-navy); border-color: var(--pt-navy); color: #fff; }
.pt-gal-rail { gap: 24px; padding: 4px 4px 32px; margin: -4px -4px 0; scroll-padding: 4px; }
.pt-gal-slide { flex: 0 0 88%; scroll-snap-align: start; }
.pt-gal-slide .pt-browser { box-shadow: var(--pt-shadow), 0 0 0 1px rgba(10, 37, 64, .06); }
.pt-gal-label { display: block; margin-top: 14px; font-size: 14px; font-weight: 650; color: var(--pt-slate); }

/* Template gallery */
.pt-tpls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.pt-tpls li { min-width: 0; }
.pt-tpl-shot { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--pt-shadow), 0 0 0 1px rgba(10, 37, 64, .06); transition: transform .4s var(--pt-ease), box-shadow .4s; }
.pt-tpl-shot img { aspect-ratio: 1200 / 750; object-fit: cover; object-position: top; }
.pt-tpl-shot:hover { transform: translateY(-4px); box-shadow: var(--pt-shadow-lg); }
.pt-tpls strong { display: block; margin-top: 14px; font-size: 16px; font-weight: 700; }
.pt-tpls li > span { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--pt-slate); }
.pt-tpl-more { display: flex; flex-direction: column; justify-content: center; padding: 20px; border: 1.5px dashed #c9d2dd; border-radius: 12px; aspect-ratio: 1200 / 750; }
.pt-tpls .pt-tpl-num { font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--pt-purple); }
.pt-tpl-more strong { margin-top: 6px !important; }

.pt-extras { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 40px; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--pt-line); }
.pt-extras > span { font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-purple); }
.pt-extras ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.pt-extras li { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 550; }
.pt-extras svg { width: 16px; height: 16px; flex: none; color: var(--pt-purple); }

@media (max-width: 1200px) { .pt-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Accordion mode (set by JS below 1024px) */
.pt-tour.is-acc .pt-tour-grid { display: block; }
.pt-tour.is-acc .pt-tour-nav { display: none; }
.pt-tour.is-acc .pt-acc { display: block; }
.pt-tour.is-acc .pt-tp + .pt-tp { margin-top: 0; }
.pt-tour.is-acc .pt-tp { border-top: 1px solid #dfe5ec; }
.pt-tour.is-acc .pt-tp:last-child { border-bottom: 1px solid #dfe5ec; }
.pt-acc button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 20px 2px; border: 0; background: none; font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--pt-navy); text-align: left; cursor: pointer; }
.pt-acc button > svg:first-child { width: 22px; height: 22px; flex: none; color: var(--pt-purple); }
.pt-acc .pt-chev { width: 20px; height: 20px; margin-left: auto; color: var(--pt-slate); transition: transform .35s var(--pt-ease); }
.pt-acc button[aria-expanded="true"] .pt-chev { transform: rotate(180deg); }
.pt-tour.is-acc .pt-tp-body { padding-bottom: 40px; }
.pt-tour.is-acc .pt-tp-body[hidden] { display: none; }
.pt-tour.is-acc .pt-tp-body:not([hidden]) { animation: pt-in .45s var(--pt-ease) both; }
.pt-tour.is-acc .pt-acc-foot { display: block; }
.pt-acc-foot { display: none; margin-top: 28px; }
@media (max-width: 1023px) {
  .pt-tour-grid { grid-template-columns: 1fr; }
  .pt-tour-nav { position: static; }
  .pt-items { grid-template-columns: 1fr; gap: 40px; }
  .pt-item { grid-column: auto; }
  .pt-tp-head { margin-bottom: 24px; }
}
@media (max-width: 640px) {
  .pt-tpls { gap: 24px 14px; }
  .pt-tpls strong { font-size: 14.5px; margin-top: 10px; }
  .pt-tpls li > span { font-size: 13px; }
  .pt-tpl-more { padding: 14px; aspect-ratio: auto; min-height: 100%; }
  .pt-tpls .pt-tpl-num { font-size: 32px; }
  .pt-gal-arrows { display: none; }
  .pt-gal-slide { flex-basis: 92%; }
  .pt-phones .pt-phone { flex-basis: 200px; }
  .pt-extras { padding: 16px; }
  .pt-extras ul { flex-direction: column; gap: 8px; }
  .pt-tp-head p { font-size: 16px; }
}

/* =========================================================
   Lightbox
   ========================================================= */
.pt-lb { position: fixed; inset: 0; z-index: 10100; display: grid; grid-template-rows: auto 1fr auto; background: rgba(6, 18, 32, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; font-family: var(--nx-font, "Inter", system-ui, sans-serif); }
.pt-lb[hidden] { display: none; }
.pt-lb.is-on { opacity: 1; }
.pt-lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 0 24px; color: #fff; }
.pt-lb-count { font-size: 14px; font-weight: 600; color: #adbdcc; }
.pt-lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 12px clamp(12px, 6vw, 88px); touch-action: pan-y pinch-zoom; }
.pt-lb-stage img { max-width: min(1440px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); background: #fff; transform: scale(.97); transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .25s; }
.pt-lb.is-on .pt-lb-stage img { transform: none; }
.pt-lb-stage img.is-swap { opacity: 0; }
.pt-lb-cap { margin: 0; padding: 4px 24px 22px; text-align: center; color: #e6ebf1; font-size: 15px; line-height: 1.5; }
.pt-lb button { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .2s; }
.pt-lb button:hover { background: rgba(255, 255, 255, .24); }
.pt-lb button:focus-visible { outline: 3px solid #8b85ff; outline-offset: 2px; }
.pt-lb button svg { width: 22px; height: 22px; }
.pt-lb-prev, .pt-lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.pt-lb-prev { left: clamp(8px, 2vw, 24px); }
.pt-lb-next { right: clamp(8px, 2vw, 24px); }
.pt-lb.is-single .pt-lb-prev, .pt-lb.is-single .pt-lb-next, .pt-lb.is-single .pt-lb-count { visibility: hidden; }
@media (max-width: 640px) {
  .pt-lb-stage { padding: 8px; }
  .pt-lb-prev, .pt-lb-next { top: auto; bottom: 8px; transform: none; width: 40px; height: 40px; background: rgba(0, 0, 0, .45); }
  .pt-lb-cap { font-size: 14px; padding: 4px 16px 18px; }
}

/* Features page: the tour supersedes the generic toolkit cards at the top of the content. */
.nex-page-features .nex-page-hero { --b-after: #f6f9fc; }
.nex-page-features .nex-prose > .nex-content-section:first-child { display: none; }
.nex-page-features .nex-prose > .nex-content-section:nth-child(2) { border-top: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pt *, .pt *::before, .pt *::after, .pt-lb, .pt-lb * { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
}
