/* =====================================================================
   2rPay — Public website redesign (2026)
   Modern fintech design system. Built on top of Bootstrap grid/utilities.
   Self-contained component layer — does not depend on the legacy theme.
   ===================================================================== */

:root {
    --navy: #0c194c;
    --navy-800: #0f1f63;
    --navy-700: #16297e;
    --red: #e32240;
    --red-600: #c8182f;
    --green: #14a05a;
    --green-soft: #e8f6ee;
    --ink: #0c1330;
    --muted: #5c6781;
    --muted-2: #8a93ab;
    --bg: #ffffff;
    --bg-soft: #f5f7fc;
    --bg-softer: #eef1fa;
    --line: #e6e9f4;
    --white: #ffffff;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(12, 25, 76, .06);
    --shadow: 0 18px 50px rgba(12, 25, 76, .10);
    --shadow-lg: 0 30px 80px rgba(12, 25, 76, .16);
    --grad-hero:
        radial-gradient(900px 520px at 10% -5%, rgba(122, 92, 255, .55), transparent 55%),
        radial-gradient(820px 520px at 92% 8%, rgba(227, 34, 64, .42), transparent 55%),
        radial-gradient(760px 620px at 60% 108%, rgba(34, 86, 220, .5), transparent 55%),
        linear-gradient(135deg, #0a1140 0%, #121c58 55%, #0a1140 100%);
    --grad-red: linear-gradient(135deg, #e32240 0%, #ff5e6c 100%);
    --grad-text: linear-gradient(95deg, #e32240 0%, #ff5e6c 45%, #7a5cff 100%);
    --grad-soft: linear-gradient(180deg, rgba(245, 247, 252, .92) 0%, rgba(235, 239, 250, .6) 100%);
    --grad-mesh:
        radial-gradient(60% 55% at 12% 0%, rgba(122, 92, 255, .10), transparent 60%),
        radial-gradient(55% 50% at 100% 8%, rgba(227, 34, 64, .08), transparent 60%),
        radial-gradient(45% 45% at 50% 100%, rgba(20, 160, 90, .06), transparent 60%);
    --container: 1180px;
    --ff-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: hidden;
    position: relative;
}
/* ambient gradient wash across the whole page (clean, subtle) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--grad-mesh);
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-head);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
}

a { color: var(--navy-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red); }

p { margin: 0 0 1rem; }

img { max-width: 100%; height: auto; }

.r-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}
.eyebrow.on-dark {
    background: none;
    -webkit-text-fill-color: initial;
    color: #a9b8ff;
}

.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--grad-soft); }
.section-sm { padding: 64px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.section-sub { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

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

/* ---------- Buttons ---------- */
.r-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1;
    padding: 15px 28px;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.r-btn:hover { transform: translateY(-2px); }
.r-btn-primary { background: var(--grad-red); color: #fff; box-shadow: 0 12px 26px rgba(227, 34, 64, .32); }
.r-btn-primary:hover { color: #fff; box-shadow: 0 18px 34px rgba(227, 34, 64, .42); }
.r-btn-dark { background: var(--navy); color: #fff; }
.r-btn-dark:hover { color: #fff; background: var(--navy-700); }
.r-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.r-btn-ghost:hover { color: var(--navy); border-color: var(--navy); }
.r-btn-light { background: #fff; color: var(--navy); }
.r-btn-light:hover { color: var(--red); }
.r-btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.32); }
.r-btn-outline-light:hover { color: #fff; background: rgba(255,255,255,.14); }
.r-btn-block { width: 100%; }
.r-btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Header / Navbar ---------- */
.r-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.r-header.scrolled { box-shadow: 0 6px 24px rgba(12, 25, 76, .08); border-color: var(--line); }
.r-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
}
.r-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-head); font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.r-logo img { height: 34px; width: auto; }
.r-logo b { color: var(--red); }
.r-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.r-menu a {
    font-family: var(--ff-head);
    font-weight: 600;
    font-size: .96rem;
    color: var(--ink);
    padding: 10px 14px;
    border-radius: var(--radius-pill);
}
.r-menu a:hover { color: var(--navy); background: var(--bg-soft); }
.r-actions { display: flex; align-items: center; gap: 12px; }
.r-actions .login-link { font-family: var(--ff-head); font-weight: 600; color: var(--ink); padding: 8px 6px; }
.r-actions .login-link:hover { color: var(--red); }
.r-burger { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy); cursor: pointer; padding: 6px; }

/* mobile drawer */
.r-mobile { display: none; }
@media (max-width: 991px) {
    .r-menu, .r-actions .desktop-only { display: none; }
    .r-burger { display: inline-flex; }
    .r-mobile {
        display: block;
        position: fixed;
        inset: 0 0 0 auto;
        width: min(86vw, 360px);
        background: #fff;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1100;
        padding: 22px;
        overflow-y: auto;
    }
    .r-mobile.open { transform: translateX(0); }
    .r-mobile-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(12, 25, 76, .45);
        z-index: 1090;
    }
    .r-mobile-backdrop.open { display: block; }
    .r-mobile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
    .r-mobile-close { background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }
    .r-mobile-menu { list-style: none; margin: 0 0 20px; padding: 0; }
    .r-mobile-menu a { display: block; padding: 13px 8px; font-family: var(--ff-head); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
    .r-mobile .r-btn { width: 100%; margin-top: 10px; }
}

/* ---------- Flash messages ---------- */
.r-flash { padding: 14px 18px; text-align: center; font-weight: 600; color: #fff; font-family: var(--ff-head); }
.r-flash.error { background: var(--red); }
.r-flash.ok { background: var(--green); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--grad-hero);
    color: #fff;
    overflow: hidden;
    padding: 120px 0 130px;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 90px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.04));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.7rem); margin-bottom: 22px; }
.hero p.lead { color: rgba(255, 255, 255, .82); font-size: 1.18rem; max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; }
.hero-badge { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: .92rem; font-weight: 500; }
.hero-badge i { color: #6ee7a8; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #dbe4ff;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: .85rem; font-weight: 600;
    margin-bottom: 26px;
}
.hero-pill i { color: #6ee7a8; }

/* device mockup */
.device {
    position: relative;
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 30px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
}
.device-screen { background: var(--bg-soft); border-radius: 20px; padding: 22px 20px; }
.device .pay-to { font-size: .8rem; color: var(--muted); }
.device .pay-amount { font-family: var(--ff-head); font-weight: 800; font-size: 2.1rem; color: var(--ink); margin: 2px 0 4px; }
.device .pay-name { font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.device .qr {
    width: 130px; height: 130px; margin: 0 auto 16px;
    border-radius: 14px;
    background:
        linear-gradient(45deg, #0c194c 25%, transparent 25%) -8px 0/16px 16px,
        linear-gradient(-45deg, #0c194c 25%, transparent 25%) -8px 0/16px 16px,
        linear-gradient(45deg, transparent 75%, #0c194c 75%) -8px 0/16px 16px,
        linear-gradient(-45deg, transparent 75%, #0c194c 75%) -8px 0/16px 16px,
        #fff;
    border: 6px solid #fff;
    box-shadow: inset 0 0 0 2px var(--line);
}
.device .pay-status { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--green); font-weight: 700; font-family: var(--ff-head); }
.device-tag {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 12px 16px;
    display: flex; align-items: center; gap: 10px;
    font-size: .82rem; font-weight: 600;
    font-family: var(--ff-head);
}
.device-tag i { font-size: 1.1rem; }
.device-tag.t1 { top: 24px; left: -42px; }
.device-tag.t2 { bottom: 40px; right: -38px; }
.device-tag .ic-green { color: var(--green); }
.device-tag .ic-red { color: var(--red); }

/* code window (developer hero) */
.code-window {
    background: #0a1230;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    max-width: 100%;
}
.code-window .cw-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.code-window .cw-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-window .cw-dot.r { background: #ff5f57; }
.code-window .cw-dot.y { background: #febc2e; }
.code-window .cw-dot.g { background: #28c840; }
.code-window .cw-file { margin-left: 10px; color: rgba(255, 255, 255, .5); font-size: .8rem; }
.code-window .cw-method {
    margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    color: #6ee7a8; background: rgba(110, 231, 168, .12);
    padding: 3px 9px; border-radius: 6px;
}
.code-window pre {
    margin: 0; padding: 20px; color: #d7def0;
    font-size: .82rem; line-height: 1.65; overflow-x: auto; white-space: pre;
}
.code-window .ln { color: rgba(255,255,255,.25); user-select: none; }
.cw-key { color: #8fb8ff; }
.cw-str { color: #7ee0b8; }
.cw-num { color: #ffb86b; }
.cw-punc { color: #9aa6c4; }
.cw-comment { color: #5a6a93; }
.code-tabs { display: flex; gap: 4px; padding: 8px 12px 0; background: rgba(255,255,255,.04); }
.code-tabs button {
    background: none; border: 0; color: rgba(255,255,255,.55);
    font-family: 'JetBrains Mono', monospace; font-size: .76rem; font-weight: 600;
    padding: 8px 14px; border-radius: 8px 8px 0 0; cursor: pointer;
}
.code-tabs button.active { background: #0a1230; color: #fff; }
.code-pane { display: none; }
.code-pane.active { display: block; }

/* recurrence section media column */
.split-recur { display: flex; align-items: center; justify-content: center; }

/* recurrence visual */
.recur-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 26px;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
}
.recur-card .rc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.recur-card .rc-plan { font-family: var(--ff-head); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.recur-card .rc-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: .72rem; padding: 5px 11px; border-radius: var(--radius-pill); font-family: var(--ff-head); }
.recur-card .rc-amount { font-family: var(--ff-head); font-weight: 800; font-size: 2.1rem; color: var(--navy); margin-bottom: 2px; }
.recur-card .rc-amount small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.recur-card .rc-cycle { list-style: none; padding: 0; margin: 22px 0 0; }
.recur-card .rc-cycle li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.recur-card .rc-cycle li .ic { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.recur-card .rc-cycle li.done .ic { background: var(--green-soft); color: var(--green); }
.recur-card .rc-cycle li.next .ic { background: var(--bg-softer); color: var(--navy-700); }
.recur-card .rc-cycle li .lbl { color: var(--ink); font-weight: 600; }
.recur-card .rc-cycle li .st { margin-left: auto; font-weight: 700; font-size: .78rem; }
.recur-card .rc-cycle li.done .st { color: var(--green); }
.recur-card .rc-cycle li.next .st { color: var(--muted-2); }

/* dev features */
.dev-section { background: #0a1230; color: #fff; }
.dev-section .section-title, .dev-section h3 { color: #fff; }
.dev-section .section-sub { color: rgba(255,255,255,.7); }
.dev-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.dev-feat { list-style: none; padding: 0; margin: 24px 0 0; }
.dev-feat li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.dev-feat li i { color: #6ee7a8; font-size: 1.1rem; margin-top: 3px; }
.dev-feat li strong { display: block; color: #fff; font-family: var(--ff-head); }
.dev-feat li span { color: rgba(255,255,255,.65); font-size: .94rem; }

/* logos strip */
.trust-strip { padding: 30px 0; border-bottom: 1px solid var(--line); }
.trust-strip .r-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
.trust-strip span { color: var(--muted-2); font-weight: 600; font-family: var(--ff-head); display: inline-flex; align-items: center; gap: 10px; }
.trust-strip i { color: var(--navy); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); }
.stat .num b { color: var(--red); }
.stat .lbl { color: var(--muted); font-weight: 500; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--grad-text);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card:hover::before { opacity: 1; }
.feature-ic {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    background: var(--grad-red);
    margin-bottom: 20px;
}
.feature-ic.navy { background: linear-gradient(135deg, var(--navy), var(--navy-700)); }
.feature-ic.green { background: linear-gradient(135deg, #14a05a, #34c97d); }
.feature-card h3 { font-size: 1.22rem; }
.feature-card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
    border-radius: var(--radius-lg);
    background: var(--grad-hero);
    min-height: 340px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.split-media .big-ic { font-size: 5rem; opacity: .9; }
.split-media .glow { position: absolute; width: 240px; height: 240px; border-radius: 50%; filter: blur(50px); opacity: .5; }
.split-media .glow.a { background: var(--red); top: -40px; right: -40px; }
.split-media .glow.b { background: #2a4bd0; bottom: -60px; left: -40px; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.split p { color: var(--muted); font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--ink); font-weight: 500; }
.check-list li i { color: var(--green); margin-top: 4px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 34px 28px;
    position: relative;
}
.step .step-n {
    counter-increment: step;
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 1.1rem;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: #fff;
    color: var(--red);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}
.step .step-n::before { content: counter(step); }
.step h3 { font-size: 1.18rem; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- Pricing / tariffs ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.price-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 30px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured { background: var(--grad-hero); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.price-card.featured h3, .price-card.featured .price-val { color: #fff; }
.price-ic {
    width: 60px; height: 60px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 18px;
    background: var(--bg-soft); color: var(--navy);
}
.price-card.featured .price-ic { background: rgba(255,255,255,.14); color: #fff; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price-val { font-family: var(--ff-head); font-weight: 800; font-size: 2.6rem; color: var(--navy); line-height: 1.1; }
.price-val small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-card.featured .price-val small { color: rgba(255,255,255,.7); }
.price-note { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.price-card.featured .price-note { color: rgba(255,255,255,.75); }
.price-tag {
    display: inline-block; background: var(--red); color: #fff;
    font-family: var(--ff-head); font-weight: 700; font-size: .72rem;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 14px;
}

/* ---------- FAQ accordion ---------- */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q { margin: 0; }
.faq-q button {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 22px 24px;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q button::after {
    content: "\f067";
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: .85rem;
    color: var(--red);
    transition: transform .25s ease;
}
.faq-q button[aria-expanded="true"]::after { content: "\f068"; transform: rotate(180deg); }
.faq-a { padding: 0 24px 24px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- Testimonials ---------- */
.testi-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    height: auto;
    box-shadow: var(--shadow-sm);
}
.testi-rating { color: #ffb020; margin-bottom: 14px; font-size: .95rem; }
.testi-card p { color: var(--ink); font-size: 1.02rem; }
.testi-bio { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.testi-bio img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testi-bio .name { font-family: var(--ff-head); font-weight: 700; color: var(--ink); display: block; }
.testi-bio .job { color: var(--muted); font-size: .88rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 30px 0 110px; }
.cta-box {
    background: var(--grad-hero);
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.cta-box::before {
    content: "";
    position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: var(--red); filter: blur(90px); opacity: .35;
    top: -120px; right: -60px;
}
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); position: relative; }
.cta-box p { color: rgba(255,255,255,.82); font-size: 1.1rem; max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta-box .hero-cta { justify-content: center; position: relative; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
    background: var(--grad-hero);
    color: #fff;
    padding: 84px 0 72px;
    text-align: center;
}
.page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-header p { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.page-header.left { text-align: left; }
.page-header.left p { margin: 0; }

/* ---------- Prose / content ---------- */
.prose { max-width: 860px; margin: 0 auto; color: var(--ink); }
.prose p, .prose li { color: #3b455f; font-size: 1.04rem; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose a { color: var(--red); text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.terms-mono, .terms-mono p, .terms-mono span { font-family: 'Inter', monospace; }

/* ---------- Forms ---------- */
.r-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.r-form-dark { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.r-field { margin-bottom: 16px; }
.r-label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.r-input, .form-control.r-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.r-input:focus {
    outline: none;
    border-color: var(--navy-700);
    box-shadow: 0 0 0 4px rgba(22, 41, 126, .12);
}
textarea.r-input { min-height: 130px; resize: vertical; }
.r-form-dark .r-label { color: #fff; }
.r-form-dark .r-input { background: rgba(255,255,255,.95); border-color: transparent; }
.field-error {
    background: #fdecef; color: var(--red-600);
    border-radius: var(--radius-sm);
    padding: 9px 14px; font-size: .88rem; font-weight: 600;
    margin: 8px 0 4px;
    display: flex; align-items: center; gap: 8px;
}

/* ---------- Contact info cards ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 26px; text-align: center;
}
.contact-card .ic {
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--bg-soft); color: var(--red);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 16px;
}
.contact-card h3 { font-size: 1.15rem; }
.contact-card p, .contact-card a { color: var(--muted); margin-bottom: 0; }
.contact-card a:hover { color: var(--red); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .thumb img { transform: scale(1.05); }
.blog-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .meta { color: var(--muted-2); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--red); }
.blog-card p { color: var(--muted); font-size: .96rem; }
.blog-card .read-more { font-family: var(--ff-head); font-weight: 700; color: var(--red); margin-top: auto; }

.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.post-list .post-row {
    display: grid; grid-template-columns: 280px 1fr; gap: 24px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 26px;
}
.post-list .post-row .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.post-list .post-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list .post-row .body { padding: 26px 26px 26px 0; }
.sidebar-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sidebar-widget .widget-title { font-size: 1.1rem; margin-bottom: 16px; }
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.sidebar-widget li:last-child { border-bottom: 0; }
.sidebar-widget li a { color: var(--ink); font-weight: 500; }
.sidebar-widget li a:hover { color: var(--red); }
.widget-post { display: flex; gap: 12px; padding: 10px 0; }
.widget-post img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.widget-post a { font-family: var(--ff-head); font-weight: 600; font-size: .94rem; color: var(--ink); }
.single-content img { border-radius: var(--radius); }
.share-link { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.share-link a {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-soft); color: var(--navy);
}
.share-link a:hover { background: var(--navy); color: #fff; }

/* pagination from Laravel paginator */
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; justify-content: center; flex-wrap: wrap; }
.pagination .page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 12px;
    border-radius: 12px; border: 1px solid var(--line);
    color: var(--ink); font-weight: 600;
}
.pagination .page-item.active .page-link { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .page-item.disabled .page-link { opacity: .4; }

/* ---------- Footer ---------- */
.r-footer { background: var(--navy); color: #fff; padding: 80px 0 30px; }
.r-footer .f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.r-footer h2.f-tag { color: #fff; font-size: 1.3rem; max-width: 320px; margin: 18px 0; font-weight: 600; }
.r-footer .f-logo img { height: 40px; }
.r-footer h5 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.r-footer ul { list-style: none; padding: 0; margin: 0; }
.r-footer ul li { margin-bottom: 11px; }
.r-footer a, .r-footer li { color: rgba(255, 255, 255, .72); font-size: .95rem; }
.r-footer a:hover { color: #fff; }
.r-footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.r-footer .f-contact i { color: #6ee7a8; margin-top: 4px; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 56px; padding-top: 26px; text-align: center; }
.f-bottom p { color: rgba(255, 255, 255, .6); font-size: .88rem; margin-bottom: 4px; }

/* WhatsApp float */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 1000;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.7rem; box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* back to top */
.to-top {
    position: fixed; bottom: 24px; right: 92px; z-index: 999;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--navy); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #fff; background: var(--red); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Auth pages ---------- */
.auth {
    min-height: calc(100vh - 76px);
    display: grid; place-items: center;
    padding: 56px 20px;
    background: var(--grad-soft);
    position: relative;
}
.auth-card { width: 100%; max-width: 470px; position: relative; z-index: 1; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .eyebrow { margin-bottom: 10px; }
.auth-head h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 8px; }
.auth-head p { color: var(--muted); margin: 0; }
.auth .r-form { margin: 0; }
.auth .r-input { margin-bottom: 14px; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--muted); font-size: .95rem; }
.auth-foot a { font-weight: 600; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Checkout (transaction / invoice) ---------- */
.checkout-bg { background: var(--bg-soft); min-height: 100vh; padding: 40px 16px; }
.checkout-card {
    max-width: 860px; margin: 0 auto;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr;
}
.checkout-side { padding: 40px; }
.checkout-side.info { background: var(--grad-hero); color: #fff; }
.checkout-side.info .c-logo img { height: 34px; margin-bottom: 28px; }
.checkout-side.info .c-label { color: rgba(255,255,255,.7); font-size: .9rem; }
.checkout-side.info .c-amount { font-family: var(--ff-head); font-weight: 800; font-size: 2.6rem; color: #fff; line-height: 1.1; margin: 4px 0 8px; }
.checkout-side.info .c-merchant { color: #fff; font-weight: 600; }
.checkout-side.info .c-meta { margin-top: 22px; font-size: .92rem; color: rgba(255,255,255,.82); }
.checkout-side.info .c-meta div { padding: 4px 0; }
.checkout-side.info .c-meta strong { color: #fff; }
.checkout-side.info .c-back {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    color: #fff; padding: 8px 16px; border-radius: var(--radius-pill);
    font-size: .82rem; font-weight: 600; margin-bottom: 26px;
}
.checkout-side.info .c-back:hover { background: rgba(255,255,255,.2); color: #fff; }
.checkout-side.pay h3 { font-size: 1.2rem; }
.copy-row { display: flex; gap: 8px; margin: 12px 0; }
.copy-input {
    flex: 1; padding: 12px 14px; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); font-size: .85rem; color: var(--muted);
    background: var(--bg-soft); overflow: hidden; text-overflow: ellipsis;
}
.divider-or { text-align: center; position: relative; margin: 24px 0; color: var(--muted-2); }
.divider-or::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.divider-or span { background: #fff; padding: 0 14px; position: relative; font-weight: 600; }
.qr-box { text-align: center; }
.qr-box img { border-radius: var(--radius); border: 1px solid var(--line); padding: 8px; background: #fff; }
.pay-success { text-align: center; padding: 24px 0; }
.pay-success .circle {
    width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 18px;
    background: var(--green-soft); color: var(--green);
    display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.pay-success.returned .circle, .pay-success.cancel .circle { background: #fdecef; color: var(--red); }
.status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius-pill);
    font-family: var(--ff-head); font-weight: 700; font-size: 1rem;
}
.status-pill.ok { background: var(--green-soft); color: var(--green); }
.status-pill.bad { background: #fdecef; color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .section { padding: 70px 0; }
    .section-head { margin-bottom: 40px; }
    .hero { padding: 72px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-media { order: -1; }
    .hero p.lead { font-size: 1.06rem; max-width: 100%; }
    .split, .checkout-card, .blog-layout { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: -1; }
    .split-recur { justify-content: flex-start; }
    .dev-grid { grid-template-columns: 1fr; gap: 36px; }
    .feature-grid, .steps, .price-grid, .contact-cards, .blog-grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 32px; }
    .r-footer .f-grid { grid-template-columns: 1fr 1fr; }
    .post-list .post-row { grid-template-columns: 1fr; }
    .post-list .post-row .body { padding: 0 24px 24px; }
    .device-tag.t1 { left: 0; }
    .device-tag.t2 { right: 0; }
    .code-window pre { font-size: .78rem; }
    .cta-box { padding: 48px 36px; }
}
@media (max-width: 600px) {
    .section { padding: 52px 0; }
    .section-head { margin-bottom: 32px; }
    .hero { padding: 56px 0 64px; }
    .hero h1 { font-size: 2rem; }
    .hero p.lead { font-size: 1rem; }
    .hero-badges { gap: 14px; margin-top: 22px; }
    .hero-badge { font-size: .85rem; }
    .hero-pill { font-size: .78rem; }
    .hero-cta { gap: 10px; }
    .hero-cta .r-btn { width: 100%; }
    .feature-grid, .steps, .price-grid, .contact-cards, .blog-grid, .stats { grid-template-columns: 1fr; }
    .r-footer .f-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-box { padding: 36px 22px; }
    .checkout-side { padding: 28px 20px; }
    .r-form { padding: 24px 18px; }
    .page-header { padding: 60px 0 48px; }
    .page-header h1 { font-size: 1.9rem; }
    .page-header p { font-size: 1rem; }
    .code-window pre { font-size: .72rem; padding: 14px; }
    .code-tabs { gap: 2px; padding: 6px 8px 0; }
    .code-tabs button { font-size: .7rem; padding: 6px 10px; }
    .cw-bar { flex-wrap: wrap; gap: 4px 8px; }
    .cw-method { margin-left: 0; }
    .recur-card { padding: 20px; max-width: 100%; }
    .split-recur { justify-content: center; }
    .dev-feat li { gap: 10px; }
    .trust-strip .r-container { gap: 12px 28px; }
    .trust-strip span { font-size: .88rem; }
    .r-btn-lg { padding: 15px 22px; font-size: .96rem; }
    .section-title { font-size: 1.6rem; }
    .r-nav { height: 64px; }
    .r-logo img { height: 28px; }
    .auth { padding: 36px 16px; }
    .blog-layout { gap: 30px; }
    .faq-q button { font-size: .96rem; padding: 18px 18px; }
    .faq-a { padding: 0 18px 18px; }
    .price-val { font-size: 2.1rem; }
}
