/* Payflex public website. Mobile-first; no framework dependency. */

:root {
    --brand: #2f55d4;
    --brand-dark: #2443ac;
    --brand-soft: #eef2fd;
    --ink: #0f1b3d;
    --ink-2: #3b4766;
    --muted: #6b7591;
    --line: #e4e8f2;
    --bg: #ffffff;
    --bg-alt: #f6f8fc;
    --navy: #0b1640;
    --success: #12a26b;
    --success-soft: #e7f7f0;
    --warn: #f59e0b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 27, 61, .04), 0 8px 24px rgba(15, 27, 61, .06);
    --shadow-lg: 0 24px 60px rgba(11, 22, 64, .18);
    --container: 1180px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(47, 85, 212, .45); outline-offset: 2px; border-radius: 6px; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 992px) { .section { padding: 96px 0; } }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.0625rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 700 .9375rem/1 var(--font); padding: 14px 22px; border-radius: 999px;
    border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: var(--brand); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 10px 16px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; height: 68px; }
.nav-logo img { height: 38px; width: auto; }
.nav-menu { display: none; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-actions .btn-login { display: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

.nav-menu > li { position: relative; list-style: none; }
.nav-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .9375rem;
    background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand); }
.nav-link .ic { width: 16px; height: 16px; transition: transform .2s; }

.dropdown {
    list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--ink); }
.dropdown a:hover { background: var(--bg-alt); color: var(--ink); }
.dropdown .d-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.dropdown .d-icon img { width: 26px; height: 26px; border-radius: 6px; }
.dropdown strong { display: block; font-size: .9375rem; }
.dropdown small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.4; }

/* Mobile menu */
@media (max-width: 991.98px) {
    .nav-open .nav-menu {
        display: block; position: fixed; inset: 68px 0 0 0; overflow-y: auto;
        background: #fff; margin: 0; padding: 12px 16px 32px; border-top: 1px solid var(--line);
    }
    .nav-menu > li { border-bottom: 1px solid var(--line); }
    .nav-menu .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.0625rem; }
    .nav-menu .dropdown { display: none; border: 0; box-shadow: none; padding: 0 0 12px; }
    .nav-menu .is-open > .dropdown { display: block; }
    .nav-menu .is-open > .nav-link .ic { transform: rotate(180deg); }
    .nav-menu .mobile-cta { border: 0; padding-top: 20px; display: grid; gap: 10px; }
    .nav-open { overflow: hidden; }
}

@media (min-width: 992px) {
    .nav-toggle, .mobile-cta { display: none !important; }
    .nav-menu { display: flex; align-items: center; gap: 2px; margin: 0 0 0 24px; padding: 0; }
    .nav-actions .btn-login { display: inline-flex; }
    .nav-menu .dropdown {
        position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px;
        opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
    }
    .nav-menu .dropdown.wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
    .nav-menu li:hover > .dropdown, .nav-menu li:focus-within > .dropdown, .nav-menu .is-open > .dropdown {
        opacity: 1; visibility: visible; transform: none;
    }
    .nav-menu li:hover > .nav-link .ic { transform: rotate(180deg); }
}

/* Hero */
.hero {
    position: relative; overflow: hidden; color: #cdd6f4;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(83, 120, 255, .45), transparent 60%),
        radial-gradient(600px 400px at -10% 110%, rgba(47, 85, 212, .35), transparent 60%),
        var(--navy);
    padding: 56px 0 64px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #8fb0ff; }
.hero-lead { font-size: 1.125rem; max-width: 560px; color: #c3cdee; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) {
    .hero { padding: 88px 0 96px; }
    .hero-grid { grid-template-columns: 1.1fr .9fr; }
}
.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #dfe6ff; font-size: .875rem; font-weight: 600; margin-bottom: 20px;
}
.pill b { background: var(--success); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .75rem; }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0; max-width: 560px; }
@media (min-width: 576px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick a {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 14px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: .9375rem; text-align: center;
    transition: background .15s, border-color .15s;
}
.quick a:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.quick .ic { width: 24px; height: 24px; color: #8fb0ff; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .875rem; color: #aab6de; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ic { color: #5ee0a8; width: 18px; height: 18px; }

/* Phone mock in the hero */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
    width: 300px; max-width: 100%; border-radius: 40px; padding: 12px; background: #1b2550;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.screen { border-radius: 30px; background: var(--bg-alt); overflow: hidden; color: var(--ink-2); font-size: .8125rem; }
.screen-top { background: var(--brand); color: #fff; padding: 22px 18px 54px; }
.screen-top small { opacity: .8; }
.screen-top .bal { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.screen-card { margin: -38px 12px 12px; background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.screen-card .lbl { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.nets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.nets span { border: 1.5px solid var(--line); border-radius: 10px; padding: 6px; display: grid; place-items: center; }
.nets span.on { border-color: var(--brand); background: var(--brand-soft); }
.nets img { width: 28px; height: 28px; border-radius: 6px; }
.plan { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 6px; }
.plan.on { border-color: var(--brand); background: var(--brand-soft); }
.plan b { color: var(--ink); }
.screen-btn { margin-top: 10px; background: var(--brand); color: #fff; text-align: center; border-radius: 10px; padding: 10px; font-weight: 700; }
.toast {
    position: absolute; right: 0; bottom: 36px; display: flex; gap: 10px; align-items: center;
    background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg); font-size: .8125rem; max-width: 220px;
}
.toast .ok { width: 32px; height: 32px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; flex: none; }
.toast small { display: block; color: var(--muted); }
@media (max-width: 575.98px) {
    .phone-wrap { padding-bottom: 28px; }
    .toast { right: 8px; bottom: 0; }
}

/* Networks strip */
.networks { padding: 28px 0; border-bottom: 1px solid var(--line); }
.networks .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 40px; }
.networks p { margin: 0; font-weight: 600; color: var(--muted); font-size: .9375rem; }
.networks ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.networks img { width: 52px; height: 52px; border-radius: 12px; }

/* Cards & grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
    .grid { gap: 20px; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card-link { display: flex; flex-direction: column; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { color: inherit; border-color: rgba(47, 85, 212, .4); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link .more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: .9375rem; }
.card-link .more .ic { width: 18px; height: 18px; transition: transform .15s; }
.card-link:hover .more .ic { transform: translateX(3px); }
.icon-box { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.icon-box .ic { width: 24px; height: 24px; }
.icon-box img { width: 36px; height: 36px; border-radius: 8px; }
.logos { display: flex; gap: 6px; margin-top: 14px; }
.logos img { width: 28px; height: 28px; border-radius: 7px; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 24px; left: 24px; width: 36px; height: 36px; border-radius: 50%;
    background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* Split feature */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; }
.checklist .ic { color: var(--success); width: 22px; height: 22px; margin-top: 2px; }
.checklist strong { color: var(--ink); display: block; }
.checklist span { color: var(--muted); font-size: .9375rem; }

.panel { background: var(--navy); color: #c3cdee; border-radius: 24px; padding: 32px; position: relative; overflow: hidden; }
.panel::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(83, 120, 255, .5), transparent 70%); }
.panel h3 { color: #fff; }
.panel .row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); position: relative; z-index: 1; }
.panel .row:last-child { border-bottom: 0; }
.panel .row b { color: #fff; }
.panel .tag { color: #5ee0a8; font-weight: 700; }

/* Security */
.trust .card { display: flex; gap: 16px; align-items: flex-start; }
.trust .icon-box { margin: 0; background: var(--success-soft); color: var(--success); }
.trust h3 { margin-bottom: 4px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--ink);
    display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 1.375rem; max-width: 820px; margin: 0 auto 16px; }

/* CTA band */
.cta {
    background: linear-gradient(135deg, var(--brand), #4a6cf0); color: #e6ecff;
    border-radius: 28px; padding: 40px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta h2 { color: #fff; }
.cta p { max-width: 560px; margin: 0 auto 24px; }
.cta .btn-row { justify-content: center; }
@media (min-width: 768px) { .cta { padding: 64px 48px; } }

/* Page header for inner pages */
.page-hero { background: var(--navy); color: #c3cdee; padding: 40px 0 48px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(83, 120, 255, .45), transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.85rem, 4.4vw, 2.85rem); max-width: 820px; }
.page-hero p { font-size: 1.0625rem; max-width: 680px; }
.page-hero .btn-row { margin-top: 24px; }
.page-hero .hero-logo { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; }
@media (min-width: 992px) { .page-hero { padding: 56px 0 72px; } }

.crumbs { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; color: #8d99c4; }
.crumbs li + li::before { content: "/"; opacity: .6; }
.crumbs a { color: #c3cdee; }
.crumbs a:hover { color: #fff; }

/* Long-form text */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.375rem; margin-top: 2em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: .9375rem; }

/* Contact */
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .icon-box { margin: 0; }
.contact-card h3 { margin-bottom: 2px; }
.contact-card a { font-weight: 700; word-break: break-word; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 24px 12px; }
.stat b { display: block; font-size: 1.75rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .9375rem; }

/* Footer */
.site-footer { background: var(--navy); color: #a9b4da; padding: 64px 0 24px; margin-top: 0; font-size: .9375rem; }
.site-footer a { color: #c9d2f1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 340px; }
.footer-contact { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .ic { width: 18px; height: 18px; margin-top: 3px; color: #8fb0ff; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom {
    margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: .875rem;
}
.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.socials a:hover { background: var(--brand); }
.socials .ic { width: 18px; height: 18px; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-32 { margin-top: 32px; }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
