:root {
    --bg: #F7F8FA;
    --bg-soft: #EDF0F5;
    --surface: #FFFFFF;
    --border: #E1E6EE;
    --ink: #12151C;
    --ink-soft: #5B6472;
    --ink-faint: #8991A0;
    --mint: #17D6B4;
    --mint-deep: #0B9A80;
    --mint-pale: #A6F2E3;
    --violet: #6B4FBF;
    --violet-deep: #34275C;
    --lavender: #B6A0DA;
    --logo-grad: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 45%, var(--lavender) 72%, var(--mint-pale) 100%);
    --logo-grad-deep: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 55%, var(--mint-deep) 100%);
    --radius: 0px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3 {
    font-family: "Libre Baskerville", "Montserrat", system-ui, serif;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.mono {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mint-deep);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint-deep);
    flex: none;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding-inline: 24px;
}

section {
    padding-block: 88px;
}

@media (max-width:720px) {
    section {
        padding-block: 56px;
    }
}

.bg-soft {
    background: var(--bg-soft);
}

/* ---------- NAV ---------- */
header.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 248, 250, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Libre Baskerville", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

.brand[href],
a.brand {
    color: var(--ink);
}

.brand-mark {
    height: 50px;
    display: block;
    flex: none;
}

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

nav.links {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav.links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
}

nav.links a:hover {
    color: var(--ink);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-mint {
    background: var(--mint);
    color: #07231A;
}

.btn-mint:hover {
    background: #17c491;
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--ink-faint);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border: 1px solid var(--border);
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 0;
}

@media (max-width:860px) {
    nav.links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 10px 4px;
    font-weight: 600;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--border);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding-top: 96px;
    background:
        radial-gradient(600px 380px at 15% 0%, rgba(107, 79, 191, 0.14), transparent 60%),
        radial-gradient(700px 420px at 90% 10%, rgba(23, 214, 180, 0.16), transparent 60%);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 32px;
}

.badge-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint-deep);
}

.hero h1 {
    font-size: clamp(2.2rem, 5.4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    max-width: 19ch;
}

.grad {
    background: linear-gradient(90deg, var(--violet), var(--mint-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.hero-sub {
    margin-top: 24px;
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 50ch;
    line-height: 1.55;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.google-play-link {
    width: 180px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat b {
    font-family: "Libre Baskerville", sans-serif;
    font-size: clamp(1.5rem, 3vw, 1.6rem);
    font-weight: 700;
    display: block;
    font-variant-numeric: tabular-nums;
}

.stat span {
    font-size: 0.72rem;
    color: var(--ink-faint);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width:720px) {
    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 28px;
    }
}

/* ---------- PHONE MOCK ---------- */
.phone-section {
    padding-top: 76px;
    padding-bottom: 0;
}

.phone-wrap {
    display: flex;
    justify-content: center;
}

.phone {
    width: 260px;
    aspect-ratio: 8.9/18;
    border-radius: 25px;
    background: linear-gradient(160deg, #EDEBFB, #E4FBF2);
    border: 8px solid var(--ink);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(18, 21, 28, 0.35);
}

.phone img {
    width: 242px;

}

.phone::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--ink);
    border-radius: 12px;
}


.oem-line {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 88px;
    color: var(--ink-faint);
    font-size: 0.95rem;
}

.oem-line .mono {
    color: var(--ink-soft);
    font-size: 0.72rem;
    display: block;
    margin-bottom: 10px;
}

.oem-line b {
    color: var(--ink);
    font-family: "Libre Baskerville", sans-serif;
}

/* ---------- SECTION HEADS ---------- */
.section-head {
    max-width: 640px;
    margin-bottom: 52px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 700;
    line-height: 1.15;
}

.section-head p {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

/* ---------- CARD GRID ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width:760px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
}

.card .num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mint-deep);
    background: rgba(23, 214, 180, 0.12);
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card p {
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 0.98rem;
}

.card .tag-link {
    display: inline-block;
    margin-top: 18px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--violet-deep);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: "JetBrains Mono", monospace;
}

/* ---------- PERSONAL LOAN CARD ---------- */
.loan-card {
    background: linear-gradient(135deg, rgba(107, 79, 191, 0.08), rgba(23, 214, 180, 0.10));
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 40px;
    margin-top: 1rem;
}

.loan-card h3 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 700;
    margin: 10px 0 16px;
}

.loan-card p {
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.5;
}

.loan-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.loan-pills span {
    padding: 8px 16px;
    border-radius: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- TESTIMONIALS ---------- */
.rating-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

.rating-row .star {
    color: var(--mint-deep);
}

.stars {
    color: var(--mint-deep);
    letter-spacing: 2px;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.quote {
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 0.98rem;
}

.avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--logo-grad);
    flex: none;
}

.avatar-row b {
    display: block;
    font-size: 0.95rem;
}

.avatar-row .loc {
    font-size: 0.78rem;
    color: var(--ink-faint);
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
}

/* ---------- ABOUT ---------- */
.about-block h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.about-lede {
    margin-top: 20px;
    font-size: 1.15rem;
    color: var(--ink-soft);
    /* max-width: 62ch; */
    line-height: 1.65;
}

.about-fineprint {
    margin-top: 32px;
    font-size: 0.88rem;
    color: var(--ink-faint);
    /* max-width: 60ch; */
    line-height: 1.6;
}

/* ---------- CAREERS ---------- */
.careers-lede {
    /* max-width: 640px; */
    margin-bottom: 40px;
}

.careers-lede h2 {
    font-size: clamp(1.8rem, 3.8vw, 2.5rem);
    font-weight: 700;
}

.careers-lede p {
    margin-top: 16px;
    font-size: 1.05rem;
    color: var(--ink-soft);
}

.careers-lede a {
    color: var(--violet-deep);
    font-weight: 700;
}

.role-card h3 {
    font-size: 1.1rem;
}

.cta-box {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(23, 214, 180, 0.10), rgba(107, 79, 191, 0.08));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-box p {
    font-size: 1.05rem;
    font-weight: 600;
    max-width: 36ch;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--violet);
    color: #fff;
    padding: 13px 22px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.copy-btn:hover {
    background: var(--violet-deep);
}

/* ---------- FINAL CTA ---------- */
.final-cta {
    background: var(--logo-grad-deep);
    border-radius: 0;
    padding: 64px 40px;
    text-align: center;
    color: #fff;
}

.final-cta h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

.final-cta p {
    color: rgba(255, 255, 255, 0.88);
    margin-top: 14px;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* ---------- FAQ ---------- */
.faq-item {
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface);
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: "Libre Baskerville", sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
}

.faq-q .plus {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 0;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--mint-deep);
}

.faq-q .plus::before,
.faq-q .plus::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.faq-q .plus::before {
    width: 11px;
    height: 2px;
}

.faq-q .plus::after {
    width: 2px;
    height: 11px;
    transition: transform .2s;
}

.faq-item[data-open="true"] .plus::after {
    transform: scaleY(0);
}

.faq-a {
    padding: 0 24px 24px;
    color: var(--ink-soft);
    line-height: 1.6;
    font-size: 0.98rem;
    /* max-width: 70ch; */
}

/* ---------- FOOTER ---------- */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding-block: 64px 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
}

@media (max-width:820px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand p {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 0.98rem;
    max-width: 34ch;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.duns-logo {
    margin-top: 12px;
    width: 150px;
    height: 130px;
}

.foot-col h4 {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 16px;
    font-weight: 700;
}

.foot-col a,
.foot-col p {
    display: block;
    margin-bottom: 12px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 500;
}

.foot-col a:hover {
    color: var(--ink);
}

.foot-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------- LENDER CAROUSEL ---------- */
.lender-carousel {
    display: flex;
    align-items: center;
    gap: 18px;
}

.carousel-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    /* a flex item's default min-width is "auto", which stops it shrinking
       below its content's natural width even with overflow:hidden set -
       without this the whole carousel row stretches to fit every card. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.carousel-track {
    display: flex;
    gap: 14px;
    width: max-content;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
}

.lender-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    min-width: 200px;
    border-radius: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    box-shadow: 0 1px 4px rgba(2, 20, 53, 0.05);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    color: var(--ink-soft);
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.lender-card:hover {
    box-shadow: 0 6px 16px -6px rgba(127, 72, 255, 0.4);
    transform: translateY(-2px);
}

.lender-card img {
    z-index: 1;
    width: 120px;
    margin-bottom: 0.8rem;
}

.carousel-arrow {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.carousel-arrow:hover {
    background: var(--violet);
    color: #fff;
    border-color: var(--violet-deep);
    transform: scale(1.08);
}

@media (max-width:640px) {
    .carousel-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .lender-card {
        padding: 13px 18px;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    .carousel-track,
    .lender-card,
    .partner-card,
    .carousel-arrow {
        transition: none;
    }
}

/* ---------- LENDING PARTNERS PAGE ---------- */
.partners-hero {
    padding-top: 96px;
    padding-bottom: 48px;
    background:
        radial-gradient(600px 380px at 15% 0%, rgba(107, 79, 191, 0.14), transparent 60%),
        radial-gradient(700px 420px at 90% 10%, rgba(23, 214, 180, 0.16), transparent 60%);
}

.partners-hero h1 {
    font-size: clamp(1.9rem, 4.4vw, 2.7rem);
    font-weight: 700;
    max-width: 26ch;
}

.partners-hero p {
    margin-top: 18px;
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 68ch;
    line-height: 1.6;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width:900px) {
    .partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width:640px) {
    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.partner-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 14px;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.partner-card:hover {
    box-shadow: 0 6px 16px -6px rgba(127, 72, 255, 0.4);
    transform: translateY(-2px);
}

.partner-logo {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 50%;
    overflow: hidden;
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--violet-deep);
}

.partner-logo::before {
    content: attr(data-initial);
}

.partner-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: var(--surface);
}

.partner-logo img.load-failed {
    display: none;
}

.partner-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
}

.partner-entity {
    margin-top: 6px;
    font-size: 0.76rem;
    color: var(--ink-faint);
    line-height: 1.4;
}

.partner-entity.pending {
    font-style: italic;
    color: #B45309;
}