/* RedotPay-inspired sections — additive, WorryFree Pay branded */

.wfp-rp {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Everyday Benefits marquee ── */
.wfp-rp-benefits {
  padding: 56px 0;
  background: var(--wfp-bg2);
  border-top: 1px solid var(--wfp-border);
  border-bottom: 1px solid var(--wfp-border);
  overflow: hidden;
}
.wfp-rp-benefits__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 0 24px;
}
.wfp-rp-benefits__track-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.wfp-rp-benefits__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: wfp-rp-marquee 48s linear infinite;
}
.wfp-rp-benefits__track:hover { animation-play-state: paused; }
@keyframes wfp-rp-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.wfp-rp-benefit {
  flex: 0 0 300px;
  padding: 0;
  background: var(--wfp-card);
  border: 1px solid var(--wfp-border);
  border-radius: var(--wfp-radius);
  text-align: left;
  overflow: hidden;
}
.wfp-rp-benefit__photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.wfp-rp-benefit__body { padding: 20px 22px 24px; }
.wfp-rp-benefit__body h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px;
}
.wfp-rp-benefit__body p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--wfp-text-body);
  line-height: 1.6;
}
.wfp-rp-benefit__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wfp-gradient-subtle);
  border: 1px solid var(--wfp-border-accent);
  color: var(--wfp-teal);
}
.wfp-rp-benefit__icon svg { width: 28px; height: 28px; }

/* ── Cards showcase tabs ── */
.wfp-rp-cards {
  padding: 100px 24px;
  background: var(--wfp-bg);
}
.wfp-rp-cards__inner { max-width: var(--wfp-container-wide); margin: 0 auto; }
.wfp-rp-cards__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.wfp-rp-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--wfp-border);
  border-radius: 999px;
  margin-bottom: 24px;
}
.wfp-rp-tabs__btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: var(--wfp-muted);
  transition: background 0.2s, color 0.2s;
}
.wfp-rp-tabs__btn.is-active {
  background: var(--wfp-gradient);
  color: #fff;
}
.wfp-rp-cards__panel { display: none; }
.wfp-rp-cards__panel.is-active { display: block; }
.wfp-rp-cards__panel p {
  font-size: 19px;
  font-weight: 600;
  color: var(--wfp-text-body);
  line-height: 1.75;
  margin: 0 0 24px;
}

/* Phone mockup — RedotPay shell */
.wfp-rp-phone {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
}
.wfp-rp-phone__shell {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.wfp-rp-phone__shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../assets/redotpay/home/phone-shell.webp) center / contain no-repeat;
  pointer-events: none;
  z-index: 3;
}
.wfp-rp-phone__notch { display: none; }
.wfp-rp-phone__screen {
  position: relative;
  z-index: 1;
  margin: 3.5% 5.5% 4%;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  background: #111118;
}
.wfp-rp-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Full-width feature visuals (人物场景图) */
.wfp-rp-feature__visual {
  position: relative;
  border-radius: var(--wfp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--wfp-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  background: var(--wfp-bg3);
}
.wfp-rp-feature__visual img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 280px;
  object-fit: cover;
}
.wfp-rp-p2p-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.wfp-rp-p2p-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--wfp-border);
}

.wfp-rp-phone__glow {
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, rgba(99,91,255,0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Feature rows (alternating) ── */
.wfp-rp-feature {
  padding: 88px 24px;
  border-top: 1px solid var(--wfp-border);
}
.wfp-rp-feature:nth-child(even) { background: var(--wfp-bg2); }
.wfp-rp-feature__inner {
  max-width: var(--wfp-container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.wfp-rp-feature--reverse .wfp-rp-feature__inner { direction: rtl; }
.wfp-rp-feature--reverse .wfp-rp-feature__inner > * { direction: ltr; }
.wfp-rp-feature__label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wfp-purple);
  margin-bottom: 12px;
}
.wfp-rp-feature h2 {
  font-size: clamp(31px, 3.9vw, 47px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  line-height: 1.15;
}
.wfp-rp-feature__desc {
  font-size: 19px;
  font-weight: 600;
  color: var(--wfp-text-body);
  line-height: 1.75;
  margin: 0 0 28px;
}
.wfp-rp-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.wfp-rp-feature__tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(99,91,255,0.1);
  border: 1px solid var(--wfp-border);
  color: var(--wfp-text-body);
}

/* ── Trusted stats ── */
.wfp-rp-trust {
  padding: 100px 24px;
  text-align: center;
  background:
    linear-gradient(rgba(5, 5, 8, 0.82), rgba(5, 5, 8, 0.92)),
    url(../assets/redotpay/home/bg-worldwide.webp) center / cover no-repeat;
}
.wfp-rp-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 48px auto 0;
}
.wfp-rp-trust__num {
  font-size: clamp(47px, 6.7vw, 76px);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--wfp-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.wfp-rp-trust__label {
  font-size: 19px;
  font-weight: 700;
  margin-top: 8px;
  color: var(--wfp-text-body);
}

/* ── Logo strips ── */
.wfp-rp-logos {
  padding: 64px 24px;
  background: var(--wfp-bg2);
  border-top: 1px solid var(--wfp-border);
}
.wfp-rp-logos h3 {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wfp-muted);
  margin: 0 0 32px;
}
.wfp-rp-logos__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 28px;
  max-width: var(--wfp-container-wide);
  margin: 0 auto;
}
.wfp-rp-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, background 0.2s;
}
.wfp-rp-logos__item:hover {
  border-color: rgba(99,91,255,0.35);
  background: rgba(255,255,255,0.06);
}
.wfp-rp-logos__item img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
}
.wfp-rp-logos__item:hover img { opacity: 1; }
.wfp-rp-logos--partners .wfp-rp-logos__item img { height: 24px; }
.wfp-rp-hero-strip {
  padding: 0 24px 48px;
  background: var(--wfp-bg);
}
.wfp-rp-hero-strip img {
  width: 100%;
  max-width: var(--wfp-container-wide);
  margin: 0 auto;
  display: block;
  border-radius: var(--wfp-radius-lg);
  border: 1px solid var(--wfp-border);
}

/* ── Testimonials ── */
.wfp-rp-voices {
  padding: 88px 24px;
  background: var(--wfp-bg);
}
.wfp-rp-voices__inner { max-width: var(--wfp-container); margin: 0 auto; }
.wfp-rp-voices__slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.wfp-rp-voice {
  padding: 28px;
  background: var(--wfp-card);
  border: 1px solid var(--wfp-border);
  border-radius: var(--wfp-radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wfp-rp-voice__stars { color: #f0d78c; font-size: 16px; letter-spacing: 2px; }
.wfp-rp-voice blockquote {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--wfp-text-body);
  line-height: 1.7;
  flex: 1;
}
.wfp-rp-voice__from {
  font-size: 15px;
  font-weight: 700;
  color: var(--wfp-muted);
}

/* ── App download band ── */
.wfp-rp-app {
  padding: 80px 24px;
  background: var(--wfp-gradient-subtle);
  border-top: 1px solid var(--wfp-border);
}
.wfp-rp-app__inner {
  max-width: var(--wfp-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.wfp-rp-app__qr {
  width: 140px;
  height: 140px;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  flex-shrink: 0;
}
.wfp-rp-app__qr svg { width: 100%; height: 100%; display: block; }
.wfp-rp-app__tagline {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  margin: 0 0 8px;
}
.wfp-rp-app__sub {
  font-size: 19px;
  font-weight: 600;
  color: var(--wfp-text-body);
  margin: 0 0 24px;
}

@media (max-width: 1024px) {
  .wfp-rp-cards__layout,
  .wfp-rp-feature__inner { grid-template-columns: 1fr; }
  .wfp-rp-feature--reverse .wfp-rp-feature__inner { direction: ltr; }
  .wfp-rp-voices__slider { grid-template-columns: 1fr; }
  .wfp-rp-trust__grid { grid-template-columns: 1fr; }
  .wfp-rp-app__inner { grid-template-columns: 1fr; text-align: center; }
  .wfp-rp-app__qr { margin: 0 auto; }
}
@media (max-width: 768px) {
  .wfp-rp-benefit { flex: 0 0 260px; }
  .wfp-rp-p2p-grid { grid-template-columns: repeat(2, 1fr); }
}
