/* Product screenshots: browser/phone frame, home hero, "For Every Role" stage, "See it live" hotspots.
   Markup: tools/product-shots.js   Behaviour: assets/js/product-shots.js (stage) and assets/js/site-header.js (modal)
   Content (images, alt, bullets, hotspots): assets/data/product-shots.json */
:root { --ps-green: #047857; --ps-line: #E8ECEA; --ps-ink: #101814; --ps-muted: #5b6b63; }

/* ── Frame ─────────────────────────────────────────────────────────────── */
.ps { margin: 0; min-width: 0; }
.ps-shell { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--ps-line); border-radius: 14px; box-shadow: 0 24px 60px rgba(16, 24, 20, .12); }
.ps-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: #F6F8F7; border-bottom: 1px solid var(--ps-line); }
.ps-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5DBD8; }
.ps picture, .ps img { display: block; width: 100%; height: auto; }
.ps-cap { margin: 14px 0 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--ps-muted); }

/* Phone variant (for a future ~390px capture): 9:19.5, 36px radius */
.ps-phone { width: min(100%, 300px); margin-inline: auto; }
.ps-phone .ps-shell { aspect-ratio: 9 / 19.5; border-radius: 36px; border: 8px solid var(--ps-ink); background: var(--ps-ink); }
.ps-phone picture { height: 100%; }
.ps-phone img { height: 100%; object-fit: cover; object-position: top; border-radius: 28px; }

/* ── Home hero: tilt (desktop only) and soft green glow ────────────────── */
.ps-hero { position: relative; max-width: 1100px; margin-inline: auto; }
.ps-hero::before { content: ""; position: absolute; inset: 8% 6% -6%; z-index: 0; border-radius: 40px; background: radial-gradient(60% 60% at 50% 50%, rgba(16, 185, 129, .32), rgba(16, 185, 129, 0) 70%); filter: blur(34px); pointer-events: none; }
.ps-hero .ps-shell { position: relative; z-index: 1; }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .ps-hero { perspective: 1600px; }
  .ps-hero .ps-shell { transform: rotateX(2deg); transform-origin: 50% 100%; }
}

/* Solution pages and /pilot */
.ps-page { max-width: 1040px; margin: 36px auto 0; }
.ps-split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .ps-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; } }

/* ── For Every Role ────────────────────────────────────────────────────── */
.rs { max-width: 1120px; margin: 0 auto; }
.rs-tabs { display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 4px; border: 1px solid var(--border, var(--ps-line)); border-radius: 999px; background: var(--bg-primary, #fff); }
.rs-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--text-secondary, var(--ps-muted)); font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; transition: background-color .2s, color .2s; }
.rs-tab[aria-selected="true"] { background: var(--ps-green); color: #fff; }
.rs-tab:not([aria-selected="true"]):hover { color: var(--text-primary, var(--ps-ink)); background: var(--bg-tertiary, #F1F5F3); }
.rs-tab:focus-visible, .rs-dot:focus-visible { outline: 2px solid var(--ps-green); outline-offset: 2px; }
.rs-slides { display: grid; }
.rs-slide { grid-area: 1 / 1; min-width: 0; display: grid; gap: 28px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.rs-slide.is-active { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.rs-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.rs-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; font-weight: 500; color: var(--text-primary, var(--ps-ink)); }
.rs-points svg { flex: none; margin-top: 2px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #E3F4EC; color: var(--ps-green); }
.rs-dots { display: none; justify-content: center; gap: 4px; margin-top: 14px; }
.rs-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.rs-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #CBD5D0; transition: background-color .2s, transform .2s; }
.rs-dot[aria-current="true"]::before { background: var(--ps-green); transform: scale(1.25); }
@media (min-width: 900px) { .rs-slide { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 44px; } }
@media (max-width: 899px) { .rs-points { order: 2; } .rs-slide .ps { order: 1; } }
/* Phones: the same slides become a swipeable carousel with dots */
@media (max-width: 719px) {
  .rs-tab { padding: 0 14px; font-size: 14px; }
  .rs-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 16px; -webkit-overflow-scrolling: touch; }
  .rs-slides::-webkit-scrollbar { display: none; }
  .rs-slide { flex: 0 0 100%; scroll-snap-align: center; opacity: 1; visibility: visible; transition: none; }
  .rs-dots { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .rs-slide, .rs-slide.is-active, .rs-tab, .rs-dot::before { transition: none; } }

/* ── "Try Axure in Action": numbered hotspots + tooltips ───────────────── */
.dm-stage { position: relative; }
.dm-stage .ps-shell { overflow: visible; }
.dm-shot { position: relative; }
.dm-shot > picture { border-radius: 0 0 13px 13px; overflow: hidden; }
.dm-stage .ps-bar { border-radius: 13px 13px 0 0; }
.hs { position: absolute; z-index: 2; box-sizing: border-box; width: 28px; height: 28px; min-width: 0; min-height: 0; line-height: 1; margin: -14px 0 0 -14px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--ps-green); color: #fff; font: 700 13px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(16, 24, 20, .3); }
.hs::before { content: ""; position: absolute; inset: -9px; }                       /* bigger touch target */
.hs::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--ps-green); animation: hs-pulse 2s ease-out infinite; pointer-events: none; }
.hs[aria-expanded="true"] { background: var(--ps-ink); }
.hs[aria-expanded="true"]::after { animation: none; opacity: 0; }
.hs:focus-visible { outline: 2px solid var(--ps-ink); outline-offset: 3px; }
@keyframes hs-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.hs-tip { position: absolute; z-index: 3; width: min(250px, 78%); padding: 12px 14px; border-radius: 12px; background: var(--ps-ink); color: #fff; text-align: left; box-shadow: 0 12px 32px rgba(16, 24, 20, .3); font-size: 14px; line-height: 1.45; }
.hs-tip[hidden] { display: none; }
.hs-tip strong { display: block; margin-bottom: 2px; font-size: 14px; }
.hs-tip span { color: #D7E3DC; }
.dm-hint { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--ps-muted); }
.dm-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.dm-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.dm-points b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ps-green); color: #fff; display: grid; place-items: center; font-size: 12px; }
.dm-cta { display: flex; margin-top: 18px; min-height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--ps-green); color: #fff; font-weight: 600; text-decoration: none; }
.dm-cta:hover { background: #065f46; }
@media (prefers-reduced-motion: reduce) { .hs::after { animation: none; opacity: 0; } }
