/* Shared styles for the returns platform feature pages (main.returns-lp, set in _data/combined.js).
   Own rx-* components so the global trio-card and icon rules (feature-motion.css) do not apply. */
:root {
  --cd-primary: #0071e3;
  --cd-primary-hover: #0077ed;
  --cd-ink: #1d1d1f;
  --cd-muted: #6e6e73;
  --cd-surface: #f5f5f7;
  --rx-line: rgba(0, 0, 0, 0.07);
  --rx-rose: #e11d48;
}

.returns-lp { color: var(--cd-ink); -webkit-font-smoothing: antialiased; }
.returns-lp .btn-primary { --bs-btn-bg: var(--cd-primary); --bs-btn-hover-bg: var(--cd-primary-hover); font-weight: 500; }
.returns-lp .btn-outline-primary { --bs-btn-color: var(--cd-primary); --bs-btn-border-color: var(--cd-primary); }
.returns-lp .display-heading { font-weight: 700; letter-spacing: -0.025em; }
.returns-lp .lead-tight { max-width: 38rem; color: var(--cd-muted); }
.returns-lp .section-alt { background: var(--cd-surface); }
.returns-lp .cta-band { background: linear-gradient(120deg, #0071e3, #0058b0); color: #fff; border-radius: 1rem; }

/* Tones: one accent colour per icon (shared.js tones keys) */
.returns-lp .rx-tone--primary { --rx-c: #0071e3; --rx-bg: #e8f1fd; }
.returns-lp .rx-tone--success { --rx-c: #0f9d58; --rx-bg: #e6f6ee; }
.returns-lp .rx-tone--warning { --rx-c: #c76a00; --rx-bg: #fff3e0; }
.returns-lp .rx-tone--danger { --rx-c: #d6264b; --rx-bg: #fdeaee; }
.returns-lp .rx-tone--info { --rx-c: #0b8cad; --rx-bg: #e3f5fa; }
.returns-lp .rx-tone--secondary { --rx-c: #5b5bd6; --rx-bg: #eeeefc; }

.returns-lp .rx-tile {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--rx-c, var(--cd-primary));
  background: var(--rx-bg, #e8f1fd);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.returns-lp .rx-tile--sm { width: 2.4rem; height: 2.4rem; font-size: 1.05rem; border-radius: 10px; }

/* ---------- Hero ---------- */
.returns-lp .rx-hero { overflow: hidden; }
.returns-lp .rx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #be123c;
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  box-shadow: 0 1px 2px rgba(190, 18, 60, 0.06);
}
.returns-lp .rx-badge__sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.returns-lp .rx-title { margin: 1.1rem 0 0; }
.returns-lp .rx-lead { margin: 1.1rem 0 1.75rem; font-size: 1.15rem; line-height: 1.55; }
.returns-lp .rx-lead strong { color: var(--cd-ink); font-weight: 600; }
.returns-lp .rx-btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.returns-lp .rx-btn .bi { transition: transform 0.25s ease; }
.returns-lp .rx-btn:hover .bi { transform: translateX(3px); }
.returns-lp .rx-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.875rem; color: var(--cd-muted); }
.returns-lp .rx-checks li { display: inline-flex; align-items: center; gap: 0.4rem; }
.returns-lp .rx-checks .bi { color: #0f9d58; }
.returns-lp .rx-checks strong { color: var(--cd-ink); font-weight: 600; }

/* Stage: app window with floating chips */
.returns-lp .rx-stage { position: relative; padding: 2.25rem 1.5rem 2.75rem; }
.returns-lp .rx-stage__glow {
  position: absolute;
  inset: 8% 4% 4%;
  background:
    radial-gradient(closest-side at 30% 35%, rgba(225, 29, 72, 0.16), transparent),
    radial-gradient(closest-side at 72% 65%, rgba(0, 113, 227, 0.2), transparent);
  filter: blur(28px);
  pointer-events: none;
}
.returns-lp .rx-window {
  position: relative;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 6px rgba(15, 23, 42, 0.04),
    0 24px 60px -12px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.returns-lp .rx-window__bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(180deg, #fafafc, #f3f4f7);
  border-bottom: 1px solid var(--rx-line);
}
.returns-lp .rx-dots { display: inline-flex; gap: 0.35rem; }
.returns-lp .rx-dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #e2e4ea; }
.returns-lp .rx-dots i:first-child { background: #ff6159; }
.returns-lp .rx-dots i + i { background: #ffbd2e; }
.returns-lp .rx-dots i + i + i { background: #28c840; }
.returns-lp .rx-url {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #6b7280;
  background: #fff;
  border: 1px solid var(--rx-line);
  border-radius: 7px;
  padding: 0.22rem 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 2.6rem;
}
.returns-lp .rx-url .bi { font-size: 0.65rem; color: #9ca3af; }
.returns-lp .rx-window__head { display: flex; align-items: center; gap: 0.85rem; padding: 1.15rem 1.35rem 0.6rem; }
.returns-lp .rx-window__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.1rem;
  background: linear-gradient(140deg, #f43f5e, #be123c);
  box-shadow: 0 6px 14px -4px rgba(190, 18, 60, 0.45);
}
.returns-lp .rx-window__label { margin: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #be123c; }
.returns-lp .rx-window__kicker { margin: 0.1rem 0 0; font-size: 0.95rem; font-weight: 500; color: var(--cd-ink); line-height: 1.35; }
.returns-lp .rx-window__kicker strong { font-weight: 700; }

.returns-lp .rx-flow { list-style: none; margin: 0; padding: 0.4rem 1.1rem 0.6rem; }
.returns-lp .rx-flow__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.6rem;
  border-radius: 12px;
}
.returns-lp .rx-flow__row + .rx-flow__row::before {
  content: "";
  position: absolute;
  left: 1.62rem;
  top: -0.55rem;
  height: 1.1rem;
  width: 2px;
  border-radius: 2px;
  background: #e5e7eb;
}
.returns-lp .rx-flow__row.is-current { background: #f5f8ff; box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.14); }
.returns-lp .rx-flow__node {
  position: relative;
  z-index: 1;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 4px 10px -3px rgba(15, 23, 42, 0.3);
}
.returns-lp .rx-flow__row--1 .rx-flow__node { background: linear-gradient(145deg, #fb7185, #e11d48); }
.returns-lp .rx-flow__row--2 .rx-flow__node { background: linear-gradient(145deg, #38bdf8, #0071e3); }
.returns-lp .rx-flow__row--3 .rx-flow__node { background: linear-gradient(145deg, #a78bfa, #6d28d9); }
.returns-lp .rx-flow__row--4 .rx-flow__node { background: linear-gradient(145deg, #34d399, #047857); }
.returns-lp .rx-flow__text { flex: 1; min-width: 0; font-size: 0.86rem; line-height: 1.4; color: #374151; }
.returns-lp .rx-flow__text strong { font-weight: 600; color: #111827; }
.returns-lp .rx-flow__state {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #0f9d58;
  background: #e6f6ee;
}
.returns-lp .rx-flow__row.is-current .rx-flow__state { background: transparent; }
.returns-lp .rx-pulse { position: relative; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--cd-primary); }
.returns-lp .rx-pulse::after {
  content: "";
  position: absolute;
  inset: -0.3rem;
  border-radius: 50%;
  border: 2px solid rgba(0, 113, 227, 0.35);
  animation: rx-pulse 1.8s ease-out infinite;
}
@keyframes rx-pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.returns-lp .cd-return-flow-steps__slash { color: #9ca3af; font-weight: 500; margin: 0 0.1rem; }
.returns-lp .cd-return-flow-steps__chev { font-size: 0.65rem; color: #94a3b8; margin: 0 0.15rem; vertical-align: 0.05em; }

.returns-lp .rx-window__foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: row-reverse;
  padding: 0.75rem 1.35rem 1rem;
  border-top: 1px solid var(--rx-line);
  margin-top: 0.3rem;
}
.returns-lp .rx-ribbon { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8e8e93; }
.returns-lp .rx-progress { flex: 1; height: 5px; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.returns-lp .rx-progress i { display: block; width: 78%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e11d48, #6d28d9 55%, #0071e3); }

.returns-lp .rx-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.95rem 0.6rem 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  box-shadow: 0 14px 34px -10px rgba(15, 23, 42, 0.22);
  max-width: 15rem;
  animation: rx-float 7s ease-in-out infinite;
}
.returns-lp .rx-chip strong { display: block; font-size: 0.86rem; font-weight: 700; color: var(--cd-ink); line-height: 1.2; }
.returns-lp .rx-chip small { display: block; font-size: 0.72rem; color: var(--cd-muted); line-height: 1.25; }
.returns-lp .rx-chip__ic { width: 2rem; height: 2rem; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--rx-c); background: var(--rx-bg); }
.returns-lp .rx-chip--a { top: 0.4rem; right: -0.25rem; }
.returns-lp .rx-chip--b { bottom: 0.9rem; left: -0.5rem; animation-delay: -3.5s; }
@keyframes rx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Price strip ---------- */
.returns-lp .rx-strip { background: #fff; border-bottom: 1px solid var(--rx-line); padding: 1.1rem 0; }
.returns-lp .rx-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 2rem; }
.returns-lp .rx-strip__item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--cd-muted); }
.returns-lp .rx-strip__item .bi { color: #9ca3af; }
.returns-lp .rx-strip__item--price { color: var(--cd-ink); font-weight: 600; }
.returns-lp .rx-strip__item--price .bi { color: var(--rx-rose); }
.returns-lp .rx-strip__link { color: var(--cd-primary); text-decoration: none; font-weight: 500; }
.returns-lp .rx-strip__link .bi { color: inherit; }
.returns-lp .rx-strip__link:hover { text-decoration: underline; }

/* ---------- Benefits ---------- */
.returns-lp .rx-benefit {
  position: relative;
  height: 100%;
  padding: 1.75rem 1.6rem 1.6rem;
  background: #fff;
  border: 1px solid var(--rx-line);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.returns-lp .rx-benefit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--rx-c);
  opacity: 0.85;
}
.returns-lp .rx-benefit::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  height: 80%;
  background: radial-gradient(closest-side, var(--rx-bg), transparent);
  pointer-events: none;
}
.returns-lp .rx-benefit > * { position: relative; z-index: 1; }
@media (hover: hover) {
  .returns-lp .rx-benefit:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.16); }
  .returns-lp .rx-benefit:hover .rx-tile { transform: scale(1.06); }
}

/* ---------- Features: one panel with hairline dividers ---------- */
.returns-lp .rx-section--features { background: linear-gradient(180deg, #fff 0%, var(--cd-surface) 100%); border-top: 1px solid var(--rx-line); }
.returns-lp .rx-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rx-line);
  border: 1px solid var(--rx-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.returns-lp .rx-feature { display: flex; gap: 1rem; align-items: flex-start; padding: 1.6rem 1.5rem; background: #fff; transition: background-color 0.25s ease; }
.returns-lp .rx-feature:hover { background: #fcfcfe; }
@media (max-width: 991.98px) { .returns-lp .rx-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .returns-lp .rx-features { grid-template-columns: 1fr; } .returns-lp .rx-feature { padding: 1.25rem; } }

/* ---------- Steps timeline + side card ---------- */
.returns-lp .rx-timeline { position: relative; list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.returns-lp .rx-timeline::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.35), rgba(0, 113, 227, 0.08));
  border-radius: 2px;
}
.returns-lp .rx-timeline__item { position: relative; display: flex; gap: 1rem; align-items: flex-start; }
.returns-lp .rx-timeline__num {
  position: relative;
  z-index: 1;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cd-primary);
  background: #fff;
  border: 2px solid rgba(0, 113, 227, 0.35);
  box-shadow: 0 0 0 5px var(--cd-surface);
}
.returns-lp .rx-timeline__item h3 { padding-top: 0.35rem; }

.returns-lp .rx-side {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--rx-line);
  border-radius: 20px;
  box-shadow: 0 18px 44px -18px rgba(15, 23, 42, 0.18);
}
.returns-lp .rx-side__title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8e8e93; margin-bottom: 0.6rem; }
.returns-lp .rx-links { list-style: none; margin: 0 -0.6rem; padding: 0; }
.returns-lp .rx-links a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--cd-ink);
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.returns-lp .rx-links a > .bi:first-child { width: 1.9rem; height: 1.9rem; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #f0f5fd; color: var(--cd-primary); font-size: 0.95rem; }
.returns-lp .rx-links span { flex: 1; min-width: 0; }
.returns-lp .rx-links__go { color: #c7c7cc; font-size: 0.75rem; transition: transform 0.2s ease, color 0.2s ease; }
.returns-lp .rx-links a:hover { background: #f5f8ff; }
.returns-lp .rx-links a:hover .rx-links__go { color: var(--cd-primary); transform: translateX(2px); }
.returns-lp .rx-links a:focus-visible { outline: 2px solid var(--cd-primary); outline-offset: 1px; }

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
  .returns-lp .rx-stage { padding: 1rem 0 0; max-width: 34rem; margin: 0 auto; }
  .returns-lp .rx-stage__glow { inset: 0; }
  .returns-lp .rx-chip { position: relative; inset: auto; animation: none; max-width: none; }
  .returns-lp .rx-chip--a { display: none; }
  .returns-lp .rx-chip--b { margin: 0.85rem auto 0; width: fit-content; }
}
@media (max-width: 767.98px) {
  .returns-lp .display-4 { font-size: 2rem; }
  .returns-lp .rx-lead { font-size: 1.05rem; }
  .returns-lp .rx-url { margin-right: 0; }
  .returns-lp .rx-strip__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .returns-lp .rx-strip__item--price { display: block; }
  .returns-lp .rx-strip__item--price .bi { margin-right: 0.35rem; }
  .returns-lp .rx-side { padding: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .returns-lp .rx-chip, .returns-lp .rx-pulse::after { animation: none; }
}
