/* PowerLoyalty Pro landing page: hero demo, template showcase, animation strip, QR and kiosk showcases.
   Loaded after marketing.css on /loyalty only. Uses the same tokens (radii, shadows, gutters, accent). */

.pls-show, .pls-anims, .pls-qrs, .pls-kiosk, .pls-ind { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); padding-top: clamp(56px, 7.5vw, 96px); }
.pls-center { text-align: center; }

/* ---------- hero demo ---------- */
.dm-loyalty { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; }
.pls-phone { width: 248px; height: 500px; }
.pls-phscreen { background: #F4F1EC; color: var(--ink); border-radius: 31px; height: 100%; overflow: hidden; padding: 48px 12px 16px; position: relative; display: flex; flex-direction: column; }
.pls-screen { position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pls-screen .plc { font-size: 10.6px; }
.pls-scan { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: #18202F; color: #fff; font: 700 11px/1 var(--display); letter-spacing: .04em; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease); }
.pls-scan.on { opacity: 1; transform: none; }
.pls-next { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px -10px rgba(15, 22, 38, .4); }
.pls-next b { font: 800 16px var(--display); }
.pls-next > span { font-size: 12px; color: var(--ink-3); }
.pls-hist { list-style: none; margin: 0; padding: 4px 10px; border-radius: 14px; background: #fff; }
.pls-hist li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #EEF0F3; font-size: 12px; }
.pls-hist li:last-child { border: 0; }
.pls-hist b { color: #157F4B; font-size: 12px; }
.pls-toast { position: absolute; left: 6px; right: 6px; bottom: 8px; padding: 12px; border-radius: 14px; background: #18202F; color: #fff; text-align: center; font: 800 14px var(--display); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.pls-toast.on { opacity: 1; transform: none; }
.pls-counter { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--sh-2); width: 170px; flex: none; transform: rotate(-3deg); }
.pls-counter-top { font: 700 10px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pls-counter-t { font-size: 11.5px; color: var(--ink-3); }
.pls-counter-t b { color: var(--ink); font: 800 13px var(--display); display: inline; }
.pls-qr { position: relative; width: 140px; aspect-ratio: 1; display: grid; place-items: center; }
.pls-qr > svg:first-child { width: 66%; height: 66%; transition: opacity .25s, transform .25s; }
.pls-qr.swap > svg:first-child { opacity: 0; transform: scale(.92); }
.pls-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pls-ring .bg { fill: none; stroke: color-mix(in srgb, var(--accent) 15%, transparent); stroke-width: 4; }
.pls-ring .fg { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--off, 0); transition: stroke-dashoffset .25s linear; }
@media (max-width: 560px) {
  .dm-loyalty { flex-direction: column-reverse; gap: 12px; }
  .pls-counter { flex-direction: row; width: auto; transform: none; padding: 8px 12px; }
  .pls-counter .pls-qr { width: 74px; }
  .pls-counter-top { display: none; }
}

/* ---------- template showcase ---------- */
.pls-marq { overflow: hidden; margin-inline: calc(var(--gutter) * -1); padding: 8px 0 14px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pls-marq + .pls-marq { margin-top: 4px; }
.pls-track { display: flex; width: max-content; animation: pls-marq 90s linear infinite; }
.pls-marq.rev .pls-track { animation-direction: reverse; animation-duration: 110s; }
.pls-marq:hover .pls-track { animation-play-state: paused; }
.pls-set { display: flex; gap: 16px; padding-right: 16px; }
@keyframes pls-marq { to { transform: translateX(-50%); } }
.pls-tcard { margin: 0; width: 210px; display: flex; flex-direction: column; gap: 8px; }
.pls-tcard .plc { font-size: 9.5px; transition: transform .35s var(--ease); }
.pls-tcard:hover .plc { transform: translateY(-4px) rotate(-1deg); }
.pls-tcard figcaption { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pls-cats { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pls-cats a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; transition: border-color .2s, transform .2s var(--ease); }
.pls-cats a:hover { border-color: var(--accent); transform: translateY(-1px); }
.pls-cats b { font: 800 12px var(--display); color: var(--accent-ink); background: var(--tint); padding: 2px 7px; border-radius: 99px; }
.pls-show .rv.pls-center { margin-top: 26px; }

/* ---------- animation strip ---------- */
.pls-agrid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pls-atile { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r3); border: 1px solid var(--line); background: #fff; cursor: pointer; font: 600 13.5px var(--text); color: var(--ink); text-align: left; box-shadow: var(--sh-1); transition: transform .25s var(--ease), border-color .2s; }
.pls-atile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pls-aslot { --ac: var(--accent); --bg: #fff; --ink: #18202F; --stamp-ink: #fff; --empty: #F1F3F6; --line: #DDE2EA; width: 40px; height: 40px; flex: none; position: relative; font-size: 13px; display: grid; place-items: center; }
.pls-aslot .pl-s { width: 40px; max-width: none; }

/* ---------- QR showcase ---------- */
.pls-qrs, .pls-kiosk { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pls-kiosk { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.pls-list { margin: 22px 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.pls-list li { position: relative; padding-left: 28px; font-size: 16px; }
.pls-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pls-qrgrid { max-width: 500px; justify-self: center; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pls-qrcard { margin: 0; padding: 14px; border-radius: 22px; border: 4px solid var(--f); background: #fff; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh-3); transform: rotate(calc((var(--i) - 1.5) * 1.6deg)); transition: transform .35s var(--ease); }
.pls-qrcard:hover { transform: rotate(0) translateY(-4px); }
.pls-qrimg { border-radius: 12px; overflow: hidden; display: grid; place-items: center; padding: 8px; }
.pls-qrimg svg { width: 100%; height: auto; }
.pls-qrcard figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.pls-qrcard figcaption b { display: block; width: 100%; padding: 8px; border-radius: 99px; background: var(--f); color: #fff; font: 800 14px var(--display); }
.pls-qrcard figcaption span { font-size: 12px; color: var(--ink-3); }
@media (max-width: 900px) { .pls-qrs, .pls-kiosk { grid-template-columns: 1fr; } .pls-kiosk .pls-tablet { order: 2; } }

/* ---------- kiosk showcase ---------- */
.pls-tablet { padding: 16px; border-radius: 34px; background: #0B0F1A; box-shadow: var(--sh-2), 0 0 0 1px rgba(255, 255, 255, .1) inset; max-width: 620px; width: 100%; justify-self: center; }
.pls-tab-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: linear-gradient(140deg, #fff, #F3F5F8); display: flex; flex-direction: column; padding: 4% 5%; gap: 4%; }
.pls-tab-head { display: flex; align-items: center; gap: 10px; }
.pls-tab-head span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #C62828; color: #fff; }
.pls-tab-head b { font: 800 clamp(13px, 2vw, 18px) var(--display); }
.pls-tab-head small { color: var(--ink-3); font-size: 12px; margin-left: auto; }
.pls-tab-main { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4%; align-items: center; }
.pls-qr-lg { width: 100%; max-width: 230px; justify-self: center; }
.pls-qr-lg .fg { stroke: #C62828; }
.pls-tab-copy { display: flex; flex-direction: column; gap: 6px; }
.pls-tab-copy b { font: 900 clamp(16px, 2.6vw, 28px)/1.05 var(--display); letter-spacing: -.02em; }
.pls-tab-copy span { color: var(--ink-2); font-size: clamp(11px, 1.4vw, 14px); }
.pls-tab-copy em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.pls-tab-copy em i { font-style: normal; font-weight: 800; color: var(--ink); }
.pls-tab-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(255, 255, 255, .94); opacity: 0; pointer-events: none; transition: opacity .3s; }
.pls-tab-done svg { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: #157F4B; color: #fff; transform: scale(.4); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.pls-tab-done b { font: 800 clamp(16px, 2.4vw, 22px) var(--display); }
.pls-tab-done.on { opacity: 1; }
.pls-tab-done.on svg { transform: none; }

/* ---------- trust and industries ---------- */
.pls-trust-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .pls-trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pls-trust-grid { grid-template-columns: 1fr; } }
.pls-ticon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); }
.pls-chips { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pls-chips li { padding: 10px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 600; box-shadow: var(--sh-1); }
.in .pls-chips li { animation: pls-chip .5s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes pls-chip { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- full template gallery page (/loyalty/templates) ---------- */
.pls-gallery { max-width: 1200px; margin: 0 auto; padding: 40px var(--gutter, 20px) 72px; display: flex; flex-direction: column; gap: 44px; }
.pls-gsec h2 { font-size: clamp(22px, 3vw, 30px) !important; margin-bottom: 18px; }
.pls-ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; }
.pls-gcard { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pls-gcard .plc { font-size: 9.6px; }
.pls-gcard figcaption { font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.pls-gcard figcaption a { font-weight: 700; font-size: 13px; }
@media (max-width: 480px) { .pls-ggrid { grid-template-columns: 1fr 1fr; gap: 16px 10px; } .pls-gcard .plc { font-size: 8px; } }

@media (prefers-reduced-motion: reduce) {
  .pls-track { animation: none; }
  .pls-marq { overflow-x: auto; }
  .pls-counter, .pls-qrcard { transform: none; }
}
