/* RapidPay Group — public landing v2 (self-contained, no Bootstrap dependency) */
:root {
    --rp-accent: #47C4C0;          /* brand teal */
    --rp-accent-2: #6990FF;        /* brand blue */
    --rp-accent-grad: linear-gradient(135deg, #47C4C0 0%, #6990FF 100%);
    --rp-dark: #0E1B22;
    --rp-dark-2: #16262E;
    --rp-text: #1C2528;
    --rp-text-soft: #5A6B72;
    --rp-bg: #FFFFFF;
    --rp-bg-soft: #F4F8FA;
    --rp-border: #E4ECEF;
    --rp-radius: 8px;
    --rp-radius-sm: 6px;
    /* Flat / corporate: subtle borders over big shadows */
    --rp-shadow: 0 1px 3px rgba(16, 38, 46, 0.06);
    --rp-shadow-lg: 0 8px 24px rgba(16, 38, 46, 0.10);
    --rp-maxw: 1200px;
    --rp-font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --rp-head: 'Poppins', var(--rp-font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--rp-font);
    color: var(--rp-text);
    background: var(--rp-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--rp-head); line-height: 1.15; margin: 0 0 .5em; color: var(--rp-text); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--rp-text-soft); }
.rp-container { max-width: var(--rp-maxw); margin: 0 auto; padding: 0 20px; }
.rp-section { padding: clamp(56px, 9vw, 110px) 0; }
.rp-section--soft { background: var(--rp-bg-soft); }
.rp-eyebrow { display: inline-block; font-family: var(--rp-head); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rp-accent); margin-bottom: 12px; }
.rp-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.rp-section-head p { font-size: 1.05rem; }

/* Buttons */
.rp-btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--rp-head); font-weight: 600; font-size: .98rem; padding: 13px 26px; border-radius: var(--rp-radius); border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.rp-btn--primary { background: var(--rp-accent-grad); color: #fff; box-shadow: 0 8px 22px rgba(73, 144, 200, .35); }
.rp-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(73, 144, 200, .45); }
.rp-btn--ghost { background: transparent; color: var(--rp-text); border-color: var(--rp-border); }
.rp-btn--ghost:hover { border-color: var(--rp-accent); color: var(--rp-accent); }
.rp-btn--light { background: #fff; color: var(--rp-accent-2); }

/* Header */
.rp-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--rp-border); transition: box-shadow .3s ease, padding .3s ease; padding: 14px 0; }
.rp-header.is-scrolled { box-shadow: 0 2px 10px rgba(16,38,46,.06); padding: 10px 0; }
.rp-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rp-logo { height: 38px; }
.rp-nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.rp-nav-links a { font-weight: 500; color: var(--rp-text); transition: color .2s; }
.rp-nav-links a:hover { color: var(--rp-accent); }
.rp-nav-actions { display: flex; align-items: center; gap: 14px; }
.rp-lang { position: relative; }
.rp-lang-btn { background: none; border: 1.5px solid var(--rp-border); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.rp-lang-menu { position: absolute; right: 0; top: 120%; background: #fff; border: 1px solid var(--rp-border); border-radius: 12px; box-shadow: var(--rp-shadow); padding: 6px; min-width: 130px; display: none; }
.rp-lang.is-open .rp-lang-menu { display: block; }
.rp-lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.rp-lang-menu a:hover, .rp-lang-menu a.is-active { background: var(--rp-bg-soft); color: var(--rp-accent); }
.rp-burger { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--rp-text); }

/* Hero */
.rp-hero { position: relative; padding: clamp(140px, 18vw, 210px) 0 clamp(56px, 8vw, 96px); overflow: hidden; background: linear-gradient(160deg, var(--rp-dark) 0%, var(--rp-dark-2) 100%); color: #fff; }
.rp-hero h1 { color: #fff; }
.rp-hero .rp-lead { color: #C7D3D8; }
.rp-hero .rp-eyebrow { color: var(--rp-accent); }
.rp-hero .rp-btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.rp-hero .rp-btn--ghost:hover { border-color: var(--rp-accent); color: var(--rp-accent); }
.rp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.rp-hero p.rp-lead { font-size: 1.2rem; max-width: 540px; }
.rp-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.rp-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; align-items: center; }
.rp-flag { width: 30px; height: 21px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.12); object-fit: cover; }
/* Hero device is a transparent cut-out (background removed), so use drop-shadow
   (follows the device silhouette) instead of a rectangular box-shadow/border-radius. */
.rp-hero-media img { width: 100%; height: auto; filter: drop-shadow(0 22px 40px rgba(16,38,46,.22)); }

/* Platform support — prominent strip right under the hero */
.rp-platforms { background: var(--rp-bg-soft); border-bottom: 1px solid var(--rp-border); padding: clamp(36px, 6vw, 56px) 0; }
.rp-platforms-head { text-align: center; margin-bottom: 24px; }
.rp-platforms-head h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
.rp-platforms-head p { margin: 0; color: var(--rp-text-soft); font-size: 1.05rem; }
.rp-platform-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.rp-platform { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border: 1.5px solid var(--rp-border); border-radius: var(--rp-radius); background: #fff; font-family: var(--rp-head); font-weight: 600; font-size: 1.05rem; color: var(--rp-text); transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease; }
.rp-platform:hover { transform: translateY(-3px); border-color: var(--rp-accent); box-shadow: var(--rp-shadow); }
.rp-platform-ico { font-size: 1.5rem; line-height: 1; }
/* Device showcase gallery (real product mockups) */
.rp-device-row { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 24px); justify-content: center; align-items: flex-end; margin-bottom: 26px; }
.rp-device { width: clamp(120px, 16vw, 200px); text-align: center; }
/* Per-device widths so each renders at a realistic relative size (a phone must not
   be as wide as an iMac). Row is bottom-aligned, so heights follow each cut-out. */
.rp-device--mac     { width: clamp(200px, 22vw, 280px); }
.rp-device--windows { width: clamp(165px, 18vw, 225px); }
.rp-device--android { width: clamp(155px, 17vw, 205px); }
.rp-device--ipad    { width: clamp(140px, 15vw, 185px); }
.rp-device--iphone  { width: clamp(80px, 9vw, 110px); }
.rp-device img { width: 100%; height: auto; display: block; margin: 0 auto 10px; filter: drop-shadow(0 14px 26px rgba(16,38,46,.18)); transition: transform .2s ease; }
.rp-device:hover img { transform: translateY(-6px); }
.rp-device span { font-family: var(--rp-head); font-weight: 600; color: var(--rp-text); font-size: .95rem; }

/* Trust bar */
.rp-trust { padding: 28px 0; border-top: 1px solid var(--rp-border); border-bottom: 1px solid var(--rp-border); }
.rp-trust-row { display: flex; flex-wrap: wrap; gap: 30px 44px; align-items: center; justify-content: center; opacity: .8; }
.rp-trust-row span { font-weight: 600; color: var(--rp-text-soft); }

/* Cards grid (products / features) */
.rp-grid { display: grid; gap: 26px; }
.rp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rp-card { background: #fff; border: 1px solid var(--rp-border); border-radius: var(--rp-radius); padding: 28px; transition: transform .2s ease, box-shadow .25s ease, border-color .2s; height: 100%; }
.rp-card:hover { transform: translateY(-6px); box-shadow: var(--rp-shadow); border-color: transparent; }
.rp-card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--rp-accent-grad); color: #fff; margin-bottom: 18px; font-size: 1.5rem; }
.rp-card h3 { margin-bottom: 8px; }
.rp-card p { margin: 0; font-size: .96rem; }
.rp-card .rp-tag { display: inline-block; margin-top: 14px; font-size: .78rem; font-weight: 600; color: var(--rp-accent-2); background: rgba(105,144,255,.1); padding: 4px 10px; border-radius: 999px; }

/* Product showcase card with image */
.rp-product { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.rp-product-media { aspect-ratio: 16/10; background: var(--rp-bg-soft); display: grid; place-items: center; overflow: hidden; }
.rp-product-media img { width: 100%; height: 100%; object-fit: cover; }
.rp-product-body { padding: 24px 26px 28px; }

/* CTA band */
.rp-cta-band { background: var(--rp-accent-grad); color: #fff; border-radius: var(--rp-radius); padding: clamp(40px, 6vw, 64px); text-align: center; }
.rp-cta-band h2, .rp-cta-band p { color: #fff; }
.rp-cta-band p { opacity: .92; }

/* Pricing */
.rp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.rp-plan { background: #fff; border: 1px solid var(--rp-border); border-radius: var(--rp-radius); padding: 32px 28px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .25s ease; }
.rp-plan:hover { transform: translateY(-6px); box-shadow: var(--rp-shadow); }
.rp-plan--featured { border: 0; background: var(--rp-dark); color: #fff; position: relative; box-shadow: var(--rp-shadow-lg); }
.rp-plan--featured h3, .rp-plan--featured .rp-price { color: #fff; }
.rp-plan--featured .rp-plan-feat li { color: #C7D3D8; }
.rp-plan-badge { position: absolute; top: 18px; right: 18px; background: var(--rp-accent-grad); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.rp-plan h3 { margin-bottom: 6px; }
.rp-price { font-family: var(--rp-head); font-size: 2.6rem; font-weight: 700; line-height: 1; margin: 14px 0 4px; }
.rp-price small { font-size: .95rem; font-weight: 500; color: var(--rp-text-soft); }
.rp-plan--featured .rp-price small { color: #9FB1B8; }
.rp-plan-note { font-size: .82rem; color: var(--rp-text-soft); margin-bottom: 20px; }
.rp-plan-feat { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.rp-plan-feat li { padding: 8px 0 8px 26px; position: relative; font-size: .96rem; border-top: 1px solid rgba(0,0,0,.05); }
.rp-plan--featured .rp-plan-feat li { border-top-color: rgba(255,255,255,.08); }
.rp-plan-feat li::before { content: "✓"; position: absolute; left: 0; color: var(--rp-accent); font-weight: 700; }
.rp-pricing-foot { text-align: center; margin-top: 26px; color: var(--rp-text-soft); font-size: .9rem; }

/* Cookie consent */
.rp-consent { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 1100; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--rp-border); border-radius: var(--rp-radius); box-shadow: var(--rp-shadow-lg); padding: 22px 24px; display: none; }
.rp-consent.is-visible { display: block; animation: rp-consent-in .35s ease; }
@keyframes rp-consent-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rp-consent h4 { font-family: var(--rp-head); margin: 0 0 6px; font-size: 1.05rem; }
.rp-consent p { font-size: .92rem; margin: 0 0 16px; }
.rp-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-consent-actions .rp-btn { padding: 10px 20px; font-size: .9rem; }

/* Footer */
.rp-footer { background: var(--rp-dark); color: #C7D3D8; padding: 70px 0 28px; }
.rp-footer h4 { font-family: var(--rp-head); color: #fff; font-size: 1rem; margin: 0 0 16px; }
.rp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.rp-footer a { color: #C7D3D8; display: block; padding: 5px 0; transition: color .2s; }
.rp-footer a:hover { color: var(--rp-accent); }
.rp-footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .9rem; color: #8FA3AB; }

/* Responsive */
@media (max-width: 991px) {
    .rp-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .rp-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .rp-pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .rp-hero-grid { grid-template-columns: 1fr; }
    .rp-hero-media { order: -1; max-width: 460px; }
    .rp-footer-grid { grid-template-columns: 1fr 1fr; }
    .rp-nav-links, .rp-nav-actions .rp-btn { display: none; }
    .rp-burger { display: block; }
    .rp-nav-links.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: 18px 20px; gap: 14px; box-shadow: var(--rp-shadow); }
}
@media (max-width: 575px) {
    .rp-grid--4, .rp-grid--3 { grid-template-columns: 1fr; }
    .rp-footer-grid { grid-template-columns: 1fr; }
    .rp-platform { padding: 10px 16px; font-size: .95rem; gap: 8px; }
    .rp-platform-ico { font-size: 1.25rem; }
    .rp-platform-row { gap: 10px; }
    .rp-hero-cta .rp-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
