/* Base styles. The brand design lives in aydapay.css */
html { font-size: 15px; }
@media (min-width: 768px) { html { font-size: 16px; } }

/* ---------- Remit public site ---------- */

/* "How it works": steps joined by an animated line (icons sized; they used to stretch to the full step width) */
.ap-flow { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.ap-flow::before {
  content: ""; position: absolute; top: 52px; inset-inline: 12%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--ap-gold) 0 10px, transparent 10px 18px);
  background-size: 36px 2px; animation: ap-flow-dash 1.6s linear infinite; opacity: .7;
}
.ap-flow .step {
  position: relative; z-index: 1; background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: 18px;
  padding: 1.6rem 1.2rem 1.4rem; text-align: center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.ap-flow .step:hover { transform: translateY(-6px); box-shadow: var(--ap-shadow-lg); border-color: var(--ap-gold-200); }
.ap-flow .step .n {
  position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ap-gold-400), var(--ap-gold)); color: var(--ap-burgundy-900);
  font-weight: 800; font-size: .8rem; box-shadow: 0 6px 14px -6px rgba(245,184,0,.9);
}
html[dir="rtl"] .ap-flow .step .n { transform: translateX(50%); }
.ap-flow .step .ic {
  width: 56px; height: 56px; border-radius: 16px; display: inline-grid; place-items: center; margin: .4rem 0 .9rem;
  background: var(--ap-burgundy-50); color: var(--ap-burgundy); transition: transform .35s, background .35s, color .35s;
}
.ap-flow .step .ic svg { width: 26px; height: 26px; }
.ap-flow .step:hover .ic { transform: rotate(-6deg) scale(1.08); background: var(--ap-burgundy); color: var(--ap-gold); }
.ap-flow .step b { display: block; font-size: 1.05rem; margin-bottom: .4rem; }
.ap-flow .step small { display: block; color: var(--ap-muted); font-size: .9rem; line-height: 1.55; }
@media (max-width: 991.98px) { .ap-flow::before { display: none; } }

/* Hero transfer card */
.ap-tx {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; direction: ltr;
  padding: 1rem 1.1rem; border-radius: 16px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ap-burgundy) 0%, var(--ap-burgundy-800) 60%, #2a0010 100%);
}
.ap-tx::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,231,163,.22) 45%, transparent 60%);
  transform: translateX(-100%); animation: ap-holo 4s ease-in-out infinite;
}
.ap-tx-side small { display: block; color: rgba(255,255,255,.7); font-weight: 600; font-size: .72rem; }
.ap-tx-side b { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.ap-tx-side b span { color: var(--ap-gold); font-size: .85rem; }
.ap-tx-side:last-child { text-align: right; }
.ap-tx-arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,184,0,.18); color: var(--ap-gold); animation: ap-nudge-x 1.8s ease-in-out infinite; }
.ap-tx-arrow svg { width: 18px; height: 18px; }
.ap-approved svg { width: 22px; height: 22px; }
.ap-visual-note { text-align: center; color: var(--ap-muted); font-size: .78rem; margin: .9rem 0 0; }

/* Marquee icons and the "Coming soon" badge spacing */
.ap-marquee-item svg { flex-shrink: 0; }
.ap-card .badge { display: inline-block; }

@keyframes ap-flow-dash { to { background-position: 36px 0; } }
@keyframes ap-nudge-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  .ap-flow::before, .ap-tx::after, .ap-tx-arrow { animation: none; }
}
