/* ==========================================================================
   RekordPOS — Core design system  ("Ember on Paper")
   Light, high-contrast, brand-red-led. Tokens, primitives, motion utilities,
   navigation and the global footer.

   Loaded on every /web page. Everything is namespaced .rp-* so it cannot
   collide with the legacy styles.css theme.

   Contrast budget (all against #FFFFFF):
     --rp-fg        18.5:1   headings + primary copy
     --rp-fg-muted   6.3:1   body copy
     --rp-fg-dim     4.6:1   meta, labels, captions
     --rp-red        5.8:1   links and accent text
     --rp-ember      3.7:1   ICONS AND GRAPHICS ONLY — never body text
   ========================================================================== */

:root {
    /* ---- Canvas -------------------------------------------------------- */
    --rp-bg:            #FFFFFF;
    --rp-bg-2:          #F7F8FB;   /* alternating section wash */
    --rp-bg-3:          #F1F3F8;

    /* ---- Surfaces ------------------------------------------------------ */
    --rp-card:          #FFFFFF;
    --rp-card-2:        #FCFDFE;
    --rp-surface:       #F5F7FA;   /* subtle fill: chips, ghost buttons */
    --rp-surface-2:     #EDF1F6;
    --rp-surface-3:     #E4E9F1;
    --rp-border:        #E5E8EF;
    --rp-border-strong: #D2D8E3;

    /* ---- Text ---------------------------------------------------------- */
    --rp-fg:            #0F1218;
    --rp-fg-muted:      #566071;
    --rp-fg-dim:        #6E7686;

    /* ---- Brand: RekordPOS red ------------------------------------------ */
    --rp-red:           #C52127;   /* the brand mark; legible as text on white */
    --rp-red-lit:       #C52127;   /* alias kept so component rules read clearly */
    --rp-red-hover:     #A81A1F;
    --rp-red-deep:      #8A0F14;
    --rp-ember:         #E2571F;   /* warm end of the ramp — icons/graphics only */
    --rp-red-soft:      #FDECEC;   /* tinted fill behind red icons/badges */
    --rp-red-tint:      #FFF6F5;   /* barely-there wash for section backgrounds */
    --rp-glow:          rgba(197, 33, 39, .22);

    /* ---- Support ------------------------------------------------------- */
    --rp-amber:         #B7791F;   /* darkened for legibility on white */
    --rp-amber-star:    #F0A93B;   /* star glyphs — graphic, not text */
    --rp-green:         #12805C;
    --rp-green-soft:    #E7F6F0;

    /* ---- Gradients -----------------------------------------------------
       The button ramp deliberately stops at #D8262C: white text on the
       lighter ember (#FF7A45) is only 2.6:1 and would fail AA. */
    --rp-grad-ember:    linear-gradient(135deg, #D8262C 0%, #C52127 45%, #8A0F14 100%);
    --rp-grad-text:     linear-gradient(100deg, #1A1D24 0%, #C52127 92%);
    --rp-grad-line:     linear-gradient(90deg, transparent, var(--rp-border-strong), transparent);

    /* ---- Type ---------------------------------------------------------- */
    --rp-font-display:  'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --rp-font-body:     'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --rp-font-mono:     'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    /* ---- Rhythm -------------------------------------------------------- */
    --rp-r-sm:  10px;
    --rp-r-md:  16px;
    --rp-r-lg:  20px;
    --rp-r-xl:  28px;

    /* Layered, low-alpha shadows — the main depth cue now that there is no
       dark canvas to lift surfaces off. */
    --rp-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10);
    --rp-shadow-md: 0 8px 24px -6px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .05);
    --rp-shadow-lg: 0 28px 60px -20px rgba(16, 24, 40, .20), 0 6px 16px rgba(16, 24, 40, .07);
    --rp-shadow-red: 0 10px 26px -8px rgba(197, 33, 39, .40);

    /* ---- Easing -------------------------------------------------------- */
    --rp-ease:        cubic-bezier(.22, .61, .36, 1);
    --rp-ease-out:    cubic-bezier(.16, 1, .3, 1);
    --rp-ease-spring: cubic-bezier(.34, 1.4, .5, 1);

    --rp-nav-h: 76px;
}

/* ==========================================================================
   1. Page shell
   The body class is applied by layouts/web/master.blade.php.
   ========================================================================== */

body.rp-site {
    background: var(--rp-bg);
    color: var(--rp-fg-muted);
    font-family: var(--rp-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.rp-site h1,
body.rp-site h2,
body.rp-site h3,
body.rp-site h4,
body.rp-site h5,
body.rp-site h6 {
    font-family: var(--rp-font-display);
    color: var(--rp-fg);
    letter-spacing: -.02em;
}

body.rp-site p { color: var(--rp-fg-muted); }
body.rp-site a { text-decoration: none; }
body.rp-site ::selection { background: var(--rp-red); color: #fff; }

/* Custom scrollbar (desktop only — cosmetic, never load-bearing) */
@media (pointer: fine) {
    body.rp-site::-webkit-scrollbar { width: 10px; }
    body.rp-site::-webkit-scrollbar-track { background: var(--rp-bg-2); }
    body.rp-site::-webkit-scrollbar-thumb {
        background: #CBD2DE;
        border-radius: 20px;
        border: 3px solid var(--rp-bg-2);
    }
    body.rp-site::-webkit-scrollbar-thumb:hover { background: var(--rp-border-strong); }
}

/* ==========================================================================
   2. Motion primitives
   Every reveal animates transform + opacity only (compositor-only work).
   The engine adds .rp-in; CSS owns the actual animation.
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    will-change: transform, opacity;
    transition:
        opacity   .75s var(--rp-ease-out) var(--rp-d, 0ms),
        transform .95s var(--rp-ease-out) var(--rp-d, 0ms),
        filter    .75s var(--rp-ease-out) var(--rp-d, 0ms);
}

[data-reveal="up"]     { transform: translate3d(0, 42px, 0); }
[data-reveal="down"]   { transform: translate3d(0, -32px, 0); }
[data-reveal="left"]   { transform: translate3d(-48px, 0, 0); }
[data-reveal="right"]  { transform: translate3d(48px, 0, 0); }
[data-reveal="scale"]  { transform: scale(.92) translate3d(0, 24px, 0); }
[data-reveal="blur"]   { transform: translate3d(0, 26px, 0); filter: blur(14px); }
[data-reveal="clip"]   { transform: translate3d(0, 34px, 0); }

[data-reveal].rp-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Once the entrance has played, drop will-change so we stop paying for a layer */
[data-reveal].rp-settled { will-change: auto; }

/* Word-by-word headline reveal (built by the engine) */
.rp-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    /* Descenders (g, y, p) must not be clipped by the reveal mask */
    padding-bottom: .14em;
    margin-bottom: -.14em;
}
.rp-word > i {
    display: inline-block;
    font-style: inherit;
    transform: translate3d(0, 110%, 0) rotate(4deg);
    transition: transform 1.05s var(--rp-ease-out) var(--rp-wd, 0ms);
    will-change: transform;
}
.rp-in .rp-word > i,
.rp-words.rp-in .rp-word > i { transform: none; }

/* Parallax layers — the engine writes translate3d directly on these */
[data-parallax] { will-change: transform; }

/* Scrub targets receive --p (0→1 through the viewport) and --pc (-1→1) from
   the engine. They are deliberately NOT seeded here: consumers read them as
   var(--p, 1) so the no-JS / reduced-motion state is the finished state. */

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal].rp-in {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .rp-word > i { transform: none !important; transition: none !important; }
    [data-parallax] { transform: none !important; }
    /* The live panel and the ticker never cycle under reduced motion — the
       engine bails out — so each is left showing its first authored state. */
    .rp-live__item.is-in { transform: none !important; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   3. Shared primitives
   ========================================================================== */

.rp-shell {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

@media (max-width: 767px) { .rp-shell { padding-inline: 20px; } }

/* --- Eyebrow / pill label --- */
.rp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--rp-font-mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rp-red);
    padding: .45rem .9rem .45rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(197, 33, 39, .22);
    background: linear-gradient(180deg, rgba(197, 33, 39, .09), rgba(197, 33, 39, .08));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rp-eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rp-red-lit);
    box-shadow: 0 0 0 0 var(--rp-glow);
    animation: rp-pulse 2.4s var(--rp-ease) infinite;
}

@keyframes rp-pulse {
    0%   { box-shadow: 0 0 0 0 var(--rp-glow); }
    70%  { box-shadow: 0 0 0 9px rgba(197, 33, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 33, 39, 0); }
}

/* --- Section heading block --- */
.rp-head { max-width: 720px; margin-bottom: 4rem; }
.rp-head--center { margin-inline: auto; text-align: center; }

.rp-head h2 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.035em;
    margin: 1.35rem 0 0;
}

.rp-head p {
    font-size: 1.02rem;
    line-height: 1.72;
    color: var(--rp-fg-muted);
    margin: 1.15rem 0 0;
    max-width: 56ch;
}
.rp-head--center p { margin-inline: auto; }

.rp-grad-text {
    background: var(--rp-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.rp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    padding: .9rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--rp-font-body);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: -.01em;
    cursor: pointer;
    isolation: isolate;
    overflow: hidden;
    /* Lift uses `translate`, not `transform`, so the magnetic-hover engine
       can own `transform` on the same element without the two clobbering
       each other. The two properties compose. */
    translate: 0 0;
    transition: translate .35s var(--rp-ease-spring),
                scale .18s var(--rp-ease),
                box-shadow .35s var(--rp-ease),
                border-color .3s var(--rp-ease),
                background-color .3s var(--rp-ease),
                color .3s var(--rp-ease);
}

.rp-btn:focus-visible {
    outline: 2px solid var(--rp-red-lit);
    outline-offset: 3px;
}

.rp-btn--primary {
    color: #fff;
    background: var(--rp-grad-ember);
    background-size: 200% 200%;
    background-position: 0% 50%;
    box-shadow: 0 10px 30px -8px rgba(197, 33, 39, .65),
                inset 0 1px 0 rgba(255, 255, 255, .28);
    transition: translate .35s var(--rp-ease-spring),
                box-shadow .35s var(--rp-ease),
                background-position .6s var(--rp-ease);
}

.rp-btn--primary:hover {
    color: #fff;
    background-position: 100% 50%;
    translate: 0 -2px;
    box-shadow: 0 18px 42px -10px rgba(232, 38, 44, .8),
                inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* Sheen sweep on hover */
.rp-btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .85s var(--rp-ease-out);
}
.rp-btn--primary:hover::after { transform: translateX(120%); }

.rp-btn--ghost {
    color: var(--rp-fg);
    background: var(--rp-surface);
    border-color: var(--rp-border-strong);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.rp-btn--ghost:hover {
    color: #fff;
    background: var(--rp-surface-2);
    border-color: rgba(197, 33, 39, .38);
    translate: 0 -2px;
}

.rp-btn--lg { min-height: 56px; padding: 1.05rem 2rem; font-size: 1rem; }
.rp-btn__icon { transition: transform .4s var(--rp-ease-spring); }
.rp-btn:hover .rp-btn__icon { transform: translateX(4px); }

.rp-btn:active { translate: 0 0; scale: .975; }

/* --- Legacy override: .subscribe-plan ---------------------------------
   styles.css ships `.subscribe-plan { color: var(--clr-primary) !important }`
   plus its own border/radius/padding, and responsive.css adds !important
   padding + font-size. On the red primary CTA that paints the label red on
   red — invisible. Neutralise it wherever the element has already opted into
   the new button system. */
.rp-btn.subscribe-plan {
    border-width: 1px;
    border-radius: 999px;
    font-weight: 600;
    padding: .9rem 1.6rem !important;
    font-size: .92rem !important;
}
.rp-btn--primary.subscribe-plan       { color: #fff !important; border-color: transparent; }
.rp-btn--primary.subscribe-plan:hover { color: #fff !important; }
.rp-btn--ghost.subscribe-plan         { color: var(--rp-fg) !important; border-color: var(--rp-border-strong); }
.rp-btn--ghost.subscribe-plan:hover   { color: var(--rp-red) !important; }

/* --- Glass card --- */
.rp-card {
    position: relative;
    border-radius: var(--rp-r-lg);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
    box-shadow: var(--rp-shadow-sm);
    overflow: hidden;
    transition: border-color .4s var(--rp-ease),
                transform .5s var(--rp-ease-out),
                box-shadow .5s var(--rp-ease);
}

/* Brand hairline along the top edge — the light-theme equivalent of the
   glass highlight: a whisper of red rather than a white glint. */
.rp-card::before {
    content: '';
    position: absolute;
    inset-inline: 12%;
    top: 0;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, transparent, var(--rp-red), transparent);
    opacity: .5;
}

/* Cursor-tracked spotlight (engine writes --mx/--my) */
.rp-spot::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .45s var(--rp-ease);
    background: radial-gradient(
        420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(197, 33, 39, .09),
        transparent 62%
    );
}
.rp-spot:hover::after { opacity: 1; }

/* --- Divider glow --- */
.rp-rule {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--rp-border-strong), transparent);
    margin: 0;
}

/* --- Ambient background layer (aurora wash + grid) ---
   Renamed from .rp-field: that name belongs to the form-field wrapper in
   rp-pages.css, and the collision was absolutely positioning every form
   field on top of itself. */
.rp-aura {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* On white these are a soft warm wash, not an aurora. Kept very low so
   text contrast over them never drops below the budget at the top. */
.rp-aura__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .5;
    will-change: transform;
}

.rp-aura__grid {
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(rgba(15, 18, 24, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 18, 24, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
}

/* The film-grain overlay from the dark build is removed: on white it reads
   as a dirty screen rather than texture. Kept as a no-op so any cached
   markup that still renders the element stays invisible. */
.rp-grain { display: none !important; }

/* ==========================================================================
   4. Scroll progress bar
   ========================================================================== */

.rp-progress {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: 2px;
    z-index: 1200;
    background: transparent;
    pointer-events: none;
}
.rp-progress__bar {
    height: 100%;
    width: 100%;
    transform: scaleX(var(--sp, 0));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--rp-red), var(--rp-ember), #FFD3A6);
    box-shadow: 0 0 14px var(--rp-glow);
}
html[dir="rtl"] .rp-progress__bar { transform-origin: right center; }

/* ==========================================================================
   5. Home navigation
   ========================================================================== */

.rp-nav {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1100;
    height: var(--rp-nav-h);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color .45s var(--rp-ease),
                border-color .45s var(--rp-ease),
                height .45s var(--rp-ease),
                backdrop-filter .45s var(--rp-ease);
}

.rp-nav.rp-nav--stuck {
    height: 64px;
    background: rgba(255, 255, 255, .82);
    border-bottom-color: var(--rp-border);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.rp-nav__inner {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rp-nav__logo { display: flex; align-items: center; margin-inline-end: auto; }
.rp-nav__logo img {
    height: 34px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    transition: transform .4s var(--rp-ease-spring);
}
.rp-nav__logo:hover img { transform: scale(1.04); }

.rp-nav__links {
    display: flex;
    align-items: center;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rp-nav__link {
    position: relative;
    display: block;
    padding: .55rem .95rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--rp-fg-muted);
    transition: color .3s var(--rp-ease), background-color .3s var(--rp-ease);
}
.rp-nav__link:hover { color: var(--rp-fg); background: var(--rp-surface); }
.rp-nav__link.is-active { color: var(--rp-fg); }
.rp-nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: var(--rp-red-lit);
    box-shadow: 0 0 10px var(--rp-glow);
}

.rp-nav__cta { min-height: 42px; padding: .6rem 1.25rem; font-size: .875rem; }

.rp-nav__burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--rp-border);
    background: var(--rp-surface);
    color: var(--rp-fg);
    cursor: pointer;
    transition: background-color .3s var(--rp-ease), border-color .3s var(--rp-ease);
}
.rp-nav__burger:hover { background: var(--rp-surface-2); border-color: var(--rp-border-strong); }

@media (max-width: 991px) {
    .rp-nav__links { display: none; }
    .rp-nav__cta   { display: none; }
    .rp-nav__burger { display: inline-flex; }
    .rp-nav__inner { gap: 1rem; }
}

/* --- Mobile drawer (custom, no Bootstrap offcanvas styling) --- */
.rp-drawer {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    pointer-events: none;
}
.rp-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 24, .42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .4s var(--rp-ease);
}
.rp-drawer__panel {
    position: relative;
    justify-self: end;
    width: min(400px, 88vw);
    height: 100%;
    padding: 1.25rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    background: var(--rp-card);
    border-inline-start: 1px solid var(--rp-border);
    transform: translateX(102%);
    transition: transform .5s var(--rp-ease-out);
    overflow-y: auto;
    overscroll-behavior: contain;
}
html[dir="rtl"] .rp-drawer__panel { justify-self: start; transform: translateX(-102%); }

.rp-drawer.is-open { pointer-events: auto; }
.rp-drawer.is-open .rp-drawer__scrim { opacity: 1; }
.rp-drawer.is-open .rp-drawer__panel { transform: translateX(0); }

.rp-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: .5rem 1.5rem;
}
.rp-drawer__top img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }

.rp-drawer__close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--rp-border);
    background: var(--rp-surface);
    color: var(--rp-fg);
    cursor: pointer;
}

.rp-drawer__nav { display: flex; flex-direction: column; gap: .25rem; }
.rp-drawer__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: .85rem 1rem;
    border-radius: 14px;
    font-family: var(--rp-font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--rp-fg);
    border: 1px solid transparent;
    transition: background-color .3s var(--rp-ease), border-color .3s var(--rp-ease);
}
.rp-drawer__nav a:hover,
.rp-drawer__nav a.is-active {
    background: var(--rp-surface);
    border-color: var(--rp-border);
}
.rp-drawer__nav a span { color: var(--rp-fg-dim); font-size: .85rem; }

.rp-drawer__foot { margin-top: auto; padding-top: 2rem; }
.rp-drawer__foot .rp-btn { width: 100%; }

/* Lock scroll while the drawer is open */
body.rp-locked { overflow: hidden; }

/* ==========================================================================
   6. Footer (shared across every /web page)
   ========================================================================== */

.rp-footer {
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--rp-bg-2) 100%);
    border-top: 1px solid var(--rp-border);
    padding: 5rem 0 0;
    overflow: hidden;
    font-family: var(--rp-font-body);
}

.rp-footer::before {
    content: '';
    position: absolute;
    top: -240px;
    left: 50%;
    width: 900px;
    height: 480px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(197, 33, 39, .22), transparent 68%);
    filter: blur(60px);
    pointer-events: none;
}

.rp-footer__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem 2.5rem;
    padding-bottom: 3.5rem;
}

.rp-footer__logo img {
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.rp-footer__desc {
    font-size: .9rem;
    line-height: 1.75;
    color: var(--rp-fg-muted);
    margin: 1.25rem 0 1.5rem;
    max-width: 34ch;
}

.rp-footer__stores { display: flex; gap: .6rem; flex-wrap: wrap; }
.rp-footer__stores img {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform .35s var(--rp-ease-spring), opacity .3s var(--rp-ease);
}
.rp-footer__stores a:hover img { transform: translateY(-3px) scale(1.02); }

.rp-footer__title {
    font-family: var(--rp-font-mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rp-fg-dim);
    margin-bottom: 1.35rem;
}

.rp-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.rp-footer__links a {
    position: relative;
    display: inline-block;
    padding: .4rem 0;
    font-size: .9rem;
    color: var(--rp-fg-muted);
    transition: color .3s var(--rp-ease), transform .3s var(--rp-ease);
}
.rp-footer__links a:hover { color: var(--rp-fg); transform: translateX(4px); }
html[dir="rtl"] .rp-footer__links a:hover { transform: translateX(-4px); }

.rp-footer__socials { display: flex; gap: .6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.rp-footer__socials a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--rp-border);
    background: var(--rp-surface);
    transition: border-color .3s var(--rp-ease), background-color .3s var(--rp-ease), transform .35s var(--rp-ease-spring);
}
.rp-footer__socials a:hover {
    border-color: rgba(197, 33, 39, .38);
    background: var(--rp-red-soft);
    transform: translateY(-3px);
}
.rp-footer__socials img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    /* The uploaded social marks are light-on-transparent, so on a white
       footer they have to be knocked back to dark instead of inverted. */
    filter: brightness(0) opacity(.55);
    transition: filter .3s var(--rp-ease);
}
.rp-footer__socials a:hover img { filter: brightness(0) opacity(.9); }

.rp-footer__bar {
    position: relative;
    border-top: 1px solid var(--rp-border);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.rp-footer__bar p { margin: 0; font-size: .84rem; color: var(--rp-fg-dim); text-align: center; }

@media (max-width: 991px) {
    .rp-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
}
@media (max-width: 575px) {
    .rp-footer { padding-top: 3.5rem; }
    .rp-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. Light-page compatibility
   Inner marketing pages (about/contact/blog/plan) keep the legacy light
   theme + common_header. Only the footer is shared, and it is dark by
   design, so we just make sure nothing bleeds upward.
   ========================================================================== */

body:not(.rp-site) .rp-footer { margin-top: 0; }

/* Generic section rhythm */
.rp-sec {
    position: relative;
    padding-block: clamp(5rem, 11vw, 9.5rem);
    overflow: clip;
}
.rp-sec > .rp-shell { position: relative; z-index: 2; }

/* ==========================================================================
   8. PRICING
   ========================================================================== */

.rp-pricing__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 50% 0%, rgba(197, 33, 39, .06), transparent 70%),
        var(--rp-bg-2);
}

/* Flex rather than grid so a trailing odd card (4 plans -> 3 + 1) centres
   instead of being stranded against the left edge. */
.rp-plans {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 1080px;
    margin-inline: auto;
}
.rp-plans > .rp-plan {
    flex: 1 1 290px;
    max-width: 344px;
}
@media (max-width: 640px) {
    .rp-plans > .rp-plan { flex-basis: 100%; max-width: none; }
}

.rp-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 1.9rem;
    border-radius: var(--rp-r-xl);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
    box-shadow: var(--rp-shadow-sm);
    transition: transform .55s var(--rp-ease-out), border-color .45s var(--rp-ease), box-shadow .45s var(--rp-ease);
}
.rp-plan:hover {
    transform: translateY(-6px);
    border-color: var(--rp-border-strong);
    box-shadow: var(--rp-shadow-md);
}

.rp-plan--popular {
    border-color: rgba(197, 33, 39, .38);
    background: linear-gradient(170deg, rgba(197, 33, 39, .09), rgba(197, 33, 39, .05) 45%, var(--rp-card-2));
    box-shadow: 0 34px 80px -34px rgba(197, 33, 39, .85);
}
/* Specificity note: these must out-rank `[data-reveal].rp-in { transform: none }`
   from rp-core.css, hence the .rp-plans prefix (equal specificity, later file). */
@media (min-width: 992px) {
    .rp-plans .rp-plan--popular { transform: translateY(-14px); }
    .rp-plans .rp-plan--popular:hover { transform: translateY(-20px); }
}

/* Animated conic border on the popular plan */
.rp-plan--popular::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--a, 0deg), transparent 0deg, var(--rp-ember) 60deg, var(--rp-red) 120deg, transparent 200deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: rp-spin 6s linear infinite;
    pointer-events: none;
}
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rp-spin { to { --a: 360deg; } }

.rp-plan__badge {
    position: absolute;
    top: -13px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: .35rem 1rem;
    border-radius: 999px;
    background: var(--rp-grad-ember);
    color: #fff;
    font-family: var(--rp-font-mono);
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 22px -6px rgba(197, 33, 39, .9);
}

.rp-plan__name {
    font-family: var(--rp-font-mono);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rp-fg-dim);
    margin: 0 0 1.1rem;
}

.rp-plan__price {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    flex-wrap: wrap;
}
.rp-plan__amount {
    font-family: var(--rp-font-display);
    font-size: clamp(2.2rem, 3.4vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -.04em;
    color: var(--rp-fg);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.rp-plan__period { font-size: .88rem; color: var(--rp-fg-dim); }
.rp-plan__note { font-size: .78rem; color: var(--rp-fg-dim); margin: .5rem 0 0; }

.rp-plan__sep { margin: 1.6rem 0; }

.rp-plan__list { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.rp-plan__list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--rp-fg-muted);
}
.rp-plan__list li.is-off { color: var(--rp-fg-dim); opacity: .6; }
.rp-plan__tick {
    flex: none;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: .58rem;
    background: var(--rp-green-soft);
    color: var(--rp-green);
}
.rp-plan__list li.is-off .rp-plan__tick { background: var(--rp-surface); color: var(--rp-fg-dim); }

.rp-plan__cta { width: 100%; }
.rp-plan__cta.rp-btn--ghost { border-color: var(--rp-border-strong); }

/* ==========================================================================
   9. BLOG
   ========================================================================== */

.rp-blog__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3.25rem;
}
.rp-blog__top .rp-head { margin-bottom: 0; }

.rp-blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.rp-post {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--rp-r-lg);
    border: 1px solid var(--rp-border);
    background: var(--rp-card);
    box-shadow: var(--rp-shadow-sm);
    overflow: hidden;
    transition: border-color .4s var(--rp-ease), transform .5s var(--rp-ease-out), box-shadow .45s var(--rp-ease);
}
.rp-post:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 33, 39, .38);
    box-shadow: 0 18px 40px -18px rgba(197, 33, 39, .22), var(--rp-shadow-md);
}
.rp-post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--rp-surface-2); }
.rp-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--rp-ease-out); }
.rp-post:hover .rp-post__media img { transform: scale(1.06); }
.rp-post__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.rp-post__meta {
    font-family: var(--rp-font-mono);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rp-fg-dim);
    margin: 0;
}
.rp-post__title {
    margin: 0;
    font-family: var(--rp-font-display);
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--rp-fg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rp-post__excerpt {
    margin: 0;
    font-size: .875rem;
    line-height: 1.7;
    color: var(--rp-fg-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rp-post__link {
    margin-top: auto;
    padding-top: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--rp-red-lit);
}
.rp-post__link i { transition: transform .4s var(--rp-ease-spring); }
.rp-post:hover .rp-post__link i { transform: translateX(4px); }

/* Stretched link keeps the whole card clickable without nesting anchors */
.rp-post__hit { position: absolute; inset: 0; z-index: 1; }

/* ==========================================================================
  10. FINAL CTA
   ========================================================================== */

.rp-cta { position: relative; padding-block: clamp(5rem, 10vw, 8rem); overflow: clip; }

.rp-cta__panel {
    position: relative;
    max-width: 1040px;
    margin-inline: auto;
    padding: clamp(3rem, 6vw, 5.5rem) clamp(1.75rem, 5vw, 4.5rem);
    border-radius: clamp(24px, 3vw, 40px);
    border: 1px solid rgba(197, 33, 39, .18);
    background:
        radial-gradient(ellipse 80% 120% at 50% 0%, rgba(197, 33, 39, .10), transparent 65%),
        var(--rp-red-tint);
    box-shadow: var(--rp-shadow-md);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.rp-cta__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(197, 33, 39, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 33, 39, .06) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
}
.rp-cta__panel::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -60%;
    width: 640px;
    height: 640px;
    z-index: -1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 33, 39, .10), transparent 65%);
    filter: blur(70px);
    animation: rp-breathe 8s var(--rp-ease) infinite;
}

.rp-cta__title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.04em;
    margin: 1.4rem 0 0;
}
.rp-cta__desc { margin: 1.25rem auto 0; max-width: 52ch; font-size: 1rem; line-height: 1.75; }
.rp-cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 2.5rem; }

/* ==========================================================================
  11. Utility
   ========================================================================== */

.rp-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
  12. Legacy Bootstrap modals, re-skinned for the light theme
   The signup / OTP / business-setup modals are shared with the rest of the
   app, so we re-skin them here rather than forking the markup.
   ========================================================================== */

body.rp-site .modal-backdrop.show { opacity: .45; }

body.rp-site .modal-content {
    background: var(--rp-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-r-xl);
    color: var(--rp-fg);
    box-shadow: var(--rp-shadow-lg);
}
body.rp-site .modal-content h4,
body.rp-site .modal-content h5,
body.rp-site .modal-content h6 { color: var(--rp-fg); font-family: var(--rp-font-display); }
body.rp-site .modal-content p,
body.rp-site .modal-content .text-muted { color: var(--rp-fg-muted) !important; }

body.rp-site .modal-content .btn-close {
    opacity: .5;
}
body.rp-site .modal-content .btn-close:hover { opacity: 1; }

body.rp-site .modal-content .custom-label,
body.rp-site .modal-content label {
    color: var(--rp-fg-muted);
    font-size: .82rem;
    font-weight: 500;
}

body.rp-site .modal-content .form-control,
body.rp-site .modal-content select.form-control,
body.rp-site .modal-content textarea.form-control {
    min-height: 46px;
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: 12px;
    color: var(--rp-fg);
}
body.rp-site .modal-content .form-control::placeholder { color: var(--rp-fg-dim); }
body.rp-site .modal-content .form-control:focus {
    background: var(--rp-surface-2);
    border-color: rgba(197, 33, 39, .55);
    box-shadow: 0 0 0 3px rgba(197, 33, 39, .14);
    color: var(--rp-fg);
}
body.rp-site .modal-content option { background: #FFFFFF; color: var(--rp-fg); }

body.rp-site .modal-content .submit-btn,
body.rp-site .modal-content .verify-btn,
body.rp-site .modal-content .cancel-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--rp-grad-ember);
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 10px 30px -8px rgba(197, 33, 39, .65);
}
body.rp-site .modal-content .submit-btn:hover,
body.rp-site .modal-content .verify-btn:hover,
body.rp-site .modal-content .cancel-btn:hover { color: #fff !important; filter: brightness(1.06); }

body.rp-site .modal-content .login-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    margin-block: .4rem;
    border: 1px solid var(--rp-border);
    border-radius: 12px;
    color: var(--rp-fg-muted);
    background: var(--rp-surface);
}
body.rp-site .modal-content .login-social:hover { border-color: rgba(197, 33, 39, .38); color: var(--rp-fg); }
body.rp-site .modal-content .login-social img { width: 18px; height: 18px; object-fit: contain; }

body.rp-site .modal-content .have-account { font-size: .85rem; }
body.rp-site .modal-content .have-account a { color: var(--rp-red-lit); font-weight: 600; }

body.rp-site .modal-content .pin-input {
    width: 46px;
    height: 52px;
    text-align: center;
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: 12px;
    color: var(--rp-fg);
    font-family: var(--rp-font-mono);
    font-size: 1.1rem;
}
body.rp-site .modal-content .pin-input:focus {
    outline: none;
    border-color: rgba(197, 33, 39, .55);
    box-shadow: 0 0 0 3px rgba(197, 33, 39, .14);
}
body.rp-site .modal-content .pin-container { display: flex; gap: .5rem; justify-content: center; }

body.rp-site .modal-content .create-account-logo { max-height: 44px; width: auto; object-fit: contain; }

body.rp-site .rp-modal .modal-body { padding-top: 0; }
body.rp-site .rp-modal iframe { border-radius: var(--rp-r-md); display: block; }

/* Skip link */
.rp-skip {
    position: fixed;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2000;
    padding: .7rem 1.1rem;
    border-radius: 10px;
    background: var(--rp-red);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform .3s var(--rp-ease);
}
.rp-skip:focus { transform: translateY(0); color: #fff; }
