/* Final handoff polish — marketing motion & finishes. Keeps Pop More brand. */

:root {
  --polish-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --polish-shadow: 0 18px 50px rgba(18, 60, 53, 0.1);
}

/* Sticky header glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(248, 248, 241, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--polish-ease), box-shadow 0.3s var(--polish-ease), background 0.3s ease;
}
body.scrolled .site-header {
  border-bottom-color: var(--line, #dce2d8);
  box-shadow: 0 8px 28px rgba(18, 60, 53, 0.06);
  background: rgba(248, 248, 241, 0.94);
}

/* Buttons — soft lift */
.btn {
  transition: transform 0.25s var(--polish-ease), box-shadow 0.25s var(--polish-ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 60, 53, 0.12);
}
.btn.primary:hover,
.btn.lime:hover {
  box-shadow: 0 12px 28px rgba(18, 60, 53, 0.18);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--polish-ease);
}
.btn:hover .arrow {
  transform: translate(2px, -2px);
}

/* Hero entrance */
.hero .eyebrow,
.hero h1,
.hero .lede,
.hero .button-row,
.hero .hero-note {
  opacity: 0;
  animation: polishIn 0.8s var(--polish-ease) forwards;
}
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.12s; }
.hero .lede { animation-delay: 0.2s; }
.hero .button-row { animation-delay: 0.28s; }
.hero .hero-note { animation-delay: 0.36s; }

@keyframes polishIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Soft stage presence — avoid fighting existing phone transforms */
.hero-stage {
  animation: polishIn 0.9s var(--polish-ease) 0.22s both;
}
.hero-stage .stage-orbit {
  animation: polishOrbit 18s linear infinite;
  transform-origin: center;
}
@keyframes polishOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-stage .notification,
.walk-in-note {
  animation: polishBob 6.5s ease-in-out infinite;
}
@keyframes polishBob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}
@media (max-width: 760px) {
  .hero-stage .stage-orbit,
  .hero-stage .notification,
  .walk-in-note {
    animation: none;
  }
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--polish-ease), transform 0.7s var(--polish-ease);
}
.reveal-on-scroll.is-inview {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll[data-delay="1"] { transition-delay: 0.08s; }
.reveal-on-scroll[data-delay="2"] { transition-delay: 0.16s; }
.reveal-on-scroll[data-delay="3"] { transition-delay: 0.24s; }

/* Cards / features / plans hover */
.feature,
.plan-card,
.proof-stat,
.demo-panel,
.step,
.industry-card,
.faq-list details {
  transition: transform 0.3s var(--polish-ease), box-shadow 0.3s var(--polish-ease), border-color 0.25s ease;
}
.feature:hover,
.demo-panel:hover,
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--polish-shadow);
}
.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(18, 60, 53, 0.12);
}
.plan-card.featured:hover {
  box-shadow: 0 20px 48px rgba(18, 60, 53, 0.28);
}

/* Pricing CTA stack spacing */
.plan-cta-row .btn.secondary {
  background: transparent;
  border: 1px solid currentColor;
}
.featured .plan-cta-row .btn.secondary {
  color: #f8f8ec;
  border-color: #6a8574;
}
.featured .plan-cta-row .btn.secondary:hover {
  background: rgba(248, 248, 236, 0.08);
}

/* FAQ accordion */
.faq-list details {
  border-radius: 14px;
  overflow: hidden;
}
.faq-list details[open] {
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 60, 53, 0.06);
}
.faq-list summary {
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-list summary:hover {
  color: var(--ink);
}

/* CTA band pulse edge */
.cta-box {
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(214, 239, 131, 0.18);
  right: -60px;
  top: -80px;
  pointer-events: none;
  animation: pulseSoft 6s ease-in-out infinite;
}

@keyframes pulseSoft {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

/* Page heading entrance */
.page-heading,
.pricing-heading,
.about-hero,
.contact-grid > div:first-child {
  animation: polishIn 0.7s var(--polish-ease) both;
}

/* Wallet strip subtle motion */
.wallet-strip {
  position: relative;
}
.wallet-names span {
  transition: transform 0.25s var(--polish-ease);
}
.wallet-names span:hover {
  transform: translateY(-2px);
}

/* Footer link hover */
.footer-links a {
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--ink);
  transform: translateX(2px);
}

/* Demo page panels */
.demo-panel .panel-head .number {
  transition: transform 0.3s var(--polish-ease), background 0.2s ease;
}
.demo-panel:hover .panel-head .number {
  transform: scale(1.06);
  background: var(--lime);
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero h1,
  .hero .lede,
  .hero .button-row,
  .hero .hero-note,
  .hero-stage,
  .page-heading,
  .pricing-heading,
  .about-hero,
  .contact-grid > div:first-child {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-stage .stage-orbit,
  .hero-stage .notification,
  .walk-in-note,
  .cta-box::after {
    animation: none !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn:hover,
  .feature:hover,
  .plan-card:hover,
  .demo-panel:hover,
  .step:hover {
    transform: none !important;
  }
}

/* Fieldnotes / merchant logo on marketing mockups */
.lock-app-icon {
  padding: 0;
  overflow: hidden;
}
.lock-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.mini-pass-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mini-pass-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.mini-pass-brand small {
  margin: 0;
}
.notification .app-icon.demo-notif-logo,
.notification .app-icon:has(img) {
  padding: 0;
  overflow: hidden;
  background: #123c35;
}
.notification .app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Loyalty stamp card (mini-pass) */
.mini-stamps {
  display: flex;
  gap: 4px;
  margin: 0 0 6px;
}
.mini-stamps span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d6ef83;
  display: inline-block;
}
.mini-stamps span.is-empty {
  background: transparent;
  border: 1px solid #7f9a76;
}

/* Footer "Made in Canada" line */
.footer-made-in {
  margin-top: 10px !important;
  font-size: 12px !important;
  color: #4b6548;
}
