/*
 * Showcase sections (template-parts/pro-showcase.php): paid and newer features shown with
 * real screens. Self-contained and scoped under .ps; uses the Bright tokens from bright.css.
 */
.ps {
  --ps-navy: #0a2540; --ps-slate: #425466; --ps-muted: #6b7c93; --ps-purple: #635bff; --ps-tint: #f0efff;
  --ps-soft: #f6f9fc; --ps-line: #e6ebf1; --ps-green: #0e9f6e;
  --ps-ease: cubic-bezier(.2, .8, .2, 1);
  --ps-sh: 0 13px 27px -5px rgba(50, 50, 93, .16), 0 8px 16px -8px rgba(0, 0, 0, .14);
  --ps-sh-lg: 0 50px 100px -20px rgba(50, 50, 93, .28), 0 30px 60px -30px rgba(0, 0, 0, .3);
  position: relative; padding: clamp(56px, 8vw, 120px) 0; font-family: var(--nx-font, "Inter", system-ui, sans-serif); color: var(--ps-navy); background: #fff;
}
.ps *, .ps *::before, .ps *::after { box-sizing: border-box; }
.ps img { display: block; max-width: 100%; height: auto; }
.ps-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.ps h2, .ps h3 { margin: 0; font-family: inherit; color: var(--ps-navy); letter-spacing: -.035em; line-height: 1.05; font-weight: 750; text-wrap: balance; }
.ps p { margin: 0; }
.ps :focus-visible { outline: 3px solid var(--ps-purple); outline-offset: 3px; border-radius: 8px; }

.ps-head { max-width: 860px; margin-bottom: clamp(30px, 4.500vw, 56px); }
.ps-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ps-purple); }
.ps-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.ps-head h2 { font-size: clamp(34px, 4.800vw, 66px); margin: 14px 0 18px; }
.ps-lead { font-size: clamp(17px, 1.350vw, 20px); line-height: 1.6; color: var(--ps-slate); max-width: 58ch; }

.ps-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.500px; font-weight: 750; letter-spacing: .02em; }
.ps-tag.is-pro { background: var(--ps-purple); color: #fff; }
.ps-tag.is-free { background: #e7fbf4; color: #0b7a55; }

/* Step strip */
.ps-flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0 0 clamp(40px, 6vw, 84px); padding: 0; }
.ps-flow li { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--ps-soft); box-shadow: inset 0 0 0 1px var(--ps-line); }
.ps-flow li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; right: -11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid #b9c4d2; border-right: 2px solid #b9c4d2; transform: rotate(45deg); }
.ps-flow-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--ps-purple); box-shadow: 0 0 0 1px var(--ps-line), 0 4px 10px -4px rgba(50, 50, 93, .25); }
.ps-flow-ic svg { width: 23px; height: 23px; }
.ps-flow li:last-child .ps-flow-ic { background: var(--ps-green); color: #fff; box-shadow: 0 8px 18px -8px rgba(14, 159, 110, .8); }
.ps-flow-text { min-width: 0; }
.ps-flow b { display: block; font-size: 16.500px; letter-spacing: -.015em; }
.ps-flow small { display: block; margin-top: 2px; font-size: 13.500px; line-height: 1.3; color: var(--ps-slate); }

/* Plugin name chips */
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 clamp(40px, 6vw, 80px); padding: 0; }
.ps-chips li { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ps-soft); box-shadow: inset 0 0 0 1px var(--ps-line); font-size: 15px; font-weight: 600; }

/* Scenes */
.ps-scenes { display: grid; gap: clamp(56px, 8vw, 120px); }
.ps-scene { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.080fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.ps-scene:nth-child(even) .ps-copy { order: 2; }
.ps-scene.is-plain { grid-template-columns: minmax(0, 1fr); padding: clamp(24px, 3.500vw, 44px); border-radius: 28px; background: var(--ps-soft); box-shadow: inset 0 0 0 1px var(--ps-line); }
.ps-scene.is-plain .ps-copy { order: 0; max-width: 760px; }
.ps-copy h3 { font-size: clamp(26px, 3vw, 42px); margin: 16px 0 14px; }
.ps-copy > p { font-size: 18px; line-height: 1.6; color: var(--ps-slate); max-width: 46ch; }
.ps-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; font-size: 16.500px; font-weight: 600; line-height: 1.35; }
.ps-points li { display: flex; align-items: flex-start; gap: 11px; }
.ps-points svg { flex: none; width: 22px; height: 22px; margin-top: 0; padding: 4px; border-radius: 50%; background: #e7fbf4; color: var(--ps-green); }
.ps-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 650; color: var(--ps-purple); text-decoration: none; }
.ps-link svg { width: 17px; height: 17px; transition: transform .3s var(--ps-ease); }
.ps-link:hover { color: var(--ps-navy); }
.ps-link:hover svg { transform: translateX(3px); }

.ps-media { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2.400vw, 30px); min-height: 380px; padding: clamp(26px, 4vw, 54px) clamp(18px, 3vw, 44px); border-radius: 32px; background: radial-gradient(90% 80% at 80% 0%, rgba(99, 91, 255, .2), transparent 62%), var(--ps-soft); box-shadow: inset 0 0 0 1px var(--ps-line); overflow: hidden; }
.ps-media.is-browser { padding-right: 0; padding-bottom: 0; justify-content: flex-start; align-items: flex-end; }
.ps-phone { position: relative; flex: 0 1 270px; width: 100%; max-width: 270px; padding: 7px; border-radius: 36px; background: #0d2236; box-shadow: var(--ps-sh-lg), inset 0 0 0 1.500px rgba(255, 255, 255, .14); }
.ps-phone .ps-screen { display: block; overflow: hidden; border-radius: 29px; background: #fff; aspect-ratio: 390 / 800; }
.ps-phone .ps-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ps-island { position: absolute; z-index: 2; left: 50%; top: 14px; width: 26%; height: 15px; transform: translateX(-50%); border-radius: 999px; background: #05101c; }
.ps-media.has-two .ps-phone:nth-child(2) { margin-top: 64px; }
.ps-browser { flex: 1 1 auto; width: 100%; overflow: hidden; border-radius: 16px 0 0 0; background: #fff; box-shadow: var(--ps-sh-lg), 0 0 0 1px rgba(10, 37, 64, .07); }
.ps-chrome { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; background: var(--ps-soft); border-bottom: 1px solid var(--ps-line); }
.ps-chrome span { display: flex; gap: 6px; flex: none; }
.ps-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #dce3eb; }
.ps-chrome em { flex: 0 1 300px; margin: 0 auto; transform: translateX(-20px); height: 21px; line-height: 19px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--ps-line); font-style: normal; font-size: 11.500px; color: var(--ps-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-browser .ps-screen { display: block; max-height: 460px; overflow: hidden; }
.ps-browser .ps-screen img { width: 100%; }
.ps-media.is-phone.has-two .ps-phone { flex: 0 1 215px; }
.ps-media.is-phone .ps-browser { flex: 1 1 210px; min-width: 190px; max-width: 330px; border-radius: 16px; align-self: center; }
.ps-media.is-phone .ps-browser .ps-chrome span { display: none; }
.ps-media.is-phone .ps-browser .ps-chrome em { transform: none; flex: 1 1 auto; text-align: left; border: 0; background: none; padding: 0; font-weight: 600; color: var(--ps-slate); }
.ps-media.is-browser.has-two .ps-phone { position: absolute; right: clamp(16px, 3vw, 40px); bottom: -40px; flex: none; width: 34%; max-width: 210px; margin: 0; }

/* Wide scene: copy in two columns, then a full-width browser frame (dense admin screens stay readable). */
.ps-scene.is-wide { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.ps-scene.is-wide .ps-copy { order: 0; display: grid; grid-template-columns: minmax(0, 1.100fr) minmax(0, .9fr); column-gap: clamp(28px, 6vw, 96px); align-items: end; }
.ps-scene.is-wide .ps-copy > .ps-tag { grid-column: 1 / -1; justify-self: start; }
.ps-scene.is-wide .ps-copy > h3 { grid-column: 1; margin-bottom: 12px; }
.ps-scene.is-wide .ps-copy > p { grid-column: 1; }
.ps-scene.is-wide .ps-points { grid-column: 2; grid-row: 2 / span 2; margin: 0; align-self: end; }
.ps-scene.is-wide .ps-media { padding: clamp(20px, 3.500vw, 48px) clamp(20px, 3.500vw, 48px) 0; justify-content: center; }
.ps-scene.is-wide .ps-browser { border-radius: 16px 16px 0 0; }
.ps-scene.is-wide .ps-browser .ps-screen { max-height: 520px; }

/* Footer row */
.ps-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; margin-top: clamp(44px, 6vw, 84px); padding: clamp(20px, 2.600vw, 30px) clamp(20px, 3vw, 36px); border-radius: 26px; background: var(--ps-navy); color: #fff; }
.ps-note { flex: 1 1 340px; font-size: 16px; line-height: 1.5; color: #c4d0dc; }
.ps-foot-btns, .ps-also-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.500px rgba(255, 255, 255, .3); color: #fff; font-size: 16px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, transform .3s var(--ps-ease); }
.ps-btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.ps-btn.is-primary { background: var(--ps-purple); box-shadow: 0 10px 24px -10px rgba(99, 91, 255, .9); }
.ps-btn.is-primary:hover { background: #fff; color: var(--ps-navy); }
.ps-btn svg { width: 17px; height: 17px; transition: transform .3s var(--ps-ease); }
.ps-btn:hover svg { transform: translateX(3px); }

/* Homepage block */
.ps-home { padding-top: clamp(30px, 5vw, 70px); }
.ps-home .ps-head { max-width: 760px; }
.ps-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ps-card { position: relative; display: flex; flex-direction: column; height: clamp(440px, 37vw, 540px); overflow: hidden; border-radius: 28px; background: var(--ps-soft); box-shadow: inset 0 0 0 1px var(--ps-line); color: var(--ps-navy); text-decoration: none; transition: transform .5s var(--ps-ease), box-shadow .4s, background .3s; }
.ps-card:hover { transform: translateY(-4px); background: #fff; box-shadow: inset 0 0 0 1px transparent, var(--ps-sh-lg); }
.ps-card.is-plain { height: auto; }
.ps-card-copy { display: block; padding: 26px 26px 0; }
.ps-card.is-plain .ps-card-copy { padding-bottom: 26px; }
.ps-card-copy strong { display: block; margin: 14px 0 8px; font-size: clamp(22px, 2vw, 27px); letter-spacing: -.03em; line-height: 1.1; }
.ps-card-copy > span:last-child { display: block; font-size: 16px; line-height: 1.55; color: var(--ps-slate); }
.ps-card-media { display: flex; justify-content: center; flex: 1 1 0; min-height: 0; padding-top: 24px; }
.ps-card-media .ps-phone { flex: none; width: 62%; max-width: 236px; align-self: flex-start; border-radius: 34px 34px 0 0; padding-bottom: 0; transition: transform .7s var(--ps-ease); }
.ps-card-media .ps-screen { border-radius: 27px 27px 0 0; }
.ps-card:hover .ps-card-media .ps-phone { transform: translateY(-12px); }
.ps-also { display: flex; justify-content: space-between; align-items: center; gap: 18px 40px; flex-wrap: wrap; margin-top: 20px; padding: clamp(20px, 2.600vw, 28px) clamp(20px, 3vw, 34px); border-radius: 26px; background: var(--ps-navy); color: #c4d0dc; }
.ps-also p { flex: 1 1 380px; font-size: 16.500px; line-height: 1.55; }
.ps-also strong { color: #fff; }

/* Motion: content is visible by default; showcase.js adds .ps-ready, then .is-in as each block scrolls in. */
@media (prefers-reduced-motion: no-preference) {
  .ps-ready [data-ps] .ps-copy, .ps-ready [data-ps] .ps-media, .ps-ready .ps-head[data-ps] > *, .ps-ready .ps-foot[data-ps], .ps-ready .ps-flow[data-ps] li, .ps-ready .ps-chips[data-ps] li, .ps-ready .ps-home[data-ps] .ps-card, .ps-ready .ps-home[data-ps] .ps-head > *, .ps-ready .ps-home[data-ps] .ps-also {
    transition: opacity .7s var(--ps-ease), transform .9s var(--ps-ease);
  }
  .ps-ready [data-ps]:not(.is-in) .ps-copy, .ps-ready .ps-head[data-ps]:not(.is-in) > *, .ps-ready .ps-foot[data-ps]:not(.is-in), .ps-ready .ps-home[data-ps]:not(.is-in) .ps-head > *, .ps-ready .ps-home[data-ps]:not(.is-in) .ps-also { opacity: 0; transform: translateY(28px); }
  .ps-ready [data-ps]:not(.is-in) .ps-media { opacity: 0; transform: translateY(44px) scale(.97); }
  .ps-ready .ps-flow[data-ps]:not(.is-in) li, .ps-ready .ps-home[data-ps]:not(.is-in) .ps-card { opacity: 0; transform: translateY(30px); }
  .ps-ready .ps-chips[data-ps]:not(.is-in) li { opacity: 0; transform: translateY(14px) scale(.94); }
  .ps-ready [data-ps].is-in .ps-media { transition-delay: .12s; }
  .ps-ready .ps-flow[data-ps] li, .ps-ready .ps-home[data-ps] .ps-card { transition-delay: calc(var(--i) * .14s); }
  .ps-ready .ps-chips[data-ps] li { transition-delay: calc(var(--i) * .035s); }
  .ps-ready .ps-head[data-ps] > :nth-child(2), .ps-ready .ps-home[data-ps] .ps-head > :nth-child(2) { transition-delay: .07s; }
  .ps-ready .ps-head[data-ps] > :nth-child(3), .ps-ready .ps-home[data-ps] .ps-head > :nth-child(3) { transition-delay: .14s; }
  /* The step icons light up one after another once the strip is on screen. */
  .ps-ready .ps-flow.is-in .ps-flow-ic { animation: ps-pulse .7s calc(.5s + var(--i) * .55s) var(--ps-ease) both; }
  .ps-ready .ps-scene.is-in .ps-phone { animation: ps-float 7s 1.200s ease-in-out infinite; }
  .ps-ready .ps-scene.is-in .ps-phone:nth-child(2) { animation-delay: 2.600s; }
}
@keyframes ps-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(99, 91, 255, .16); } 100% { transform: scale(1); } }
@keyframes ps-float { 50% { transform: translateY(-9px); } }

@media (max-width: 960px) {
  .ps-flow { grid-template-columns: 1fr 1fr; }
  .ps-flow li:nth-child(2)::after { display: none; }
  .ps-scene { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ps-scene:nth-child(even) .ps-copy { order: 0; }
  .ps-scene.is-wide .ps-copy { display: block; }
  .ps-scene.is-wide .ps-points { margin-top: 22px; }
  .ps-copy > p { max-width: none; }
  .ps-media { min-height: 0; border-radius: 24px; }
  .ps-cards { grid-template-columns: minmax(0, 1fr); }
  .ps-card { height: 470px; }
}
@media (max-width: 620px) {
  .ps-flow { grid-template-columns: 1fr; gap: 10px; }
  .ps-flow li::after { display: none; }
  .ps-flow li { padding: 12px 14px; border-radius: 16px; }
  .ps-phone { flex-basis: 46%; max-width: 230px; padding: 5px; border-radius: 28px; }
  .ps-phone .ps-screen { border-radius: 23px; }
  .ps-island { top: 10px; height: 11px; }
  .ps-media.has-two .ps-phone:nth-child(2) { margin-top: 40px; }
  .ps-media.is-browser.has-two .ps-phone { width: 38%; bottom: -24px; }
  .ps-media.is-phone.has-two { flex-wrap: wrap; }
  .ps-media.is-phone.has-two .ps-phone { flex: 0 1 46%; }
  .ps-media.is-phone .ps-browser { flex: 1 1 100%; min-width: 0; max-width: 300px; }
  .ps-browser { border-radius: 12px 0 0 0; }
  .ps-chrome { height: 28px; padding: 0 10px; }
  .ps-chrome i { width: 7px; height: 7px; }
  .ps-chrome em { height: 18px; line-height: 16px; font-size: 10.500px; transform: translateX(-12px); }
  .ps-foot-btns, .ps-also-btns { width: 100%; }
  .ps-btn { flex: 1 1 100%; }
  .ps-card-media .ps-phone { width: 58%; }
}
