/* =========================================================
   YES MICROFINANCE BANK
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   1. ROOT VARIABLES & GLOBAL RESET
========================================================= */

:root {
    --ink: #1b1b20;
    --muted: #72727d;
    --purple: #59afe9;
    --lav: #e8e2ff;
    --peach: #ffd7ca;
    --cream: #fbfaf7;
    --line: #dddbe0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

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

.container {
    width: min(1160px, calc(100% - 56px));
    margin: auto;
}


/* =========================================================
   2. PAGE LOADER
========================================================= */

.page-loader {
    position: fixed;
    inset: 0;
    background: #fbfaf7;
    z-index: 100;
    display: grid;
    place-items: center;
    transition: 0.7s;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 42px;
    height: 42px;
    border: 2px solid #ddd;
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}


/* =========================================================
   3. HEADER / NAVIGATION
========================================================= */

.header {
    height: 82px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(27, 27, 32, 0.06);
    backdrop-filter: blur(16px);
    transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 28px rgba(20, 35, 65, 0.08);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.brand img {
    display: block;
    width: min(160px, 34vw);
    height: auto;
}

.dropdown-display {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: none;
    align-items: stretch;
    min-width: 420px;
    border: 1px solid #e9edf5;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(20, 35, 65, 0.14);
    overflow: visible;
    z-index: 1000;
}

.dropdown-display::before {
    position: absolute;
    top: -13px;
    right: 0;
    left: 0;
    height: 13px;
    content: "";
}

.dropdown:not(.is-closed):hover > .dropdown-display,
.dropdown.is-open > .dropdown-display {
    display: flex;
}

.dropbtn {
    display: block;
}

.dropdown-content,
.sub-dropdown {
    min-width: 210px;
    background-color: #fff;
}

.dropdown-content {
    border-radius: 16px 0 0 16px;
}

.dropdown-content {
    display: block;
    padding: 8px 0;
    border-right: 1px solid #edf0f5;
}

.dropdown-content a,
.dropdown-submenu-content a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.dropdown-content a:not(.view-submenu),
.dropdown-submenu-content a,
.view-submenu > span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content a i,
.dropdown-submenu-content a i,
.view-submenu > span:first-child i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.dropdown-content > a[href="loan.php"] i {
    color: #16a36a;
}

.dropdown-content > a[href="banking.php"] i {
    color: #2563eb;
}

.dropdown-content > a[href="investment.php"] i {
    color: #7c3aed;
}

.view-submenu .submenu-label i {
    color: #db8b12;
}

.dropdown-submenu-content a[href="payment.php"] i {
    color: #0891b2;
}

.dropdown-submenu-content a[href="yespay"] i {
    color: #e04f8b;
}

.dropdown-submenu {
    position: relative;
}

.sub-dropdown {
    display: none;
    padding: 8px 0;
    border-left: 1px solid #edf0f5;
    background-color: #fff;
    border-radius: 0 16px 16px 0;
}

.dropdown-display.is-submenu-open .sub-dropdown {
    display: block;
}

.dropdown-content a:hover,
.dropdown-submenu-content a:hover {
    color: #059FDE;
    background-color: #f5f8ff;
}

.dropdown-content a.view-submenu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 44px;
    /* border-radius: 10px; */
}

.view-submenu .submenu-label {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    white-space: nowrap;
    gap: 10px;
}

.view-submenu .submenu-arrow {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: #f3f7ff;
    color: #667085;
    font-size: 12px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.view-submenu:hover .submenu-arrow,
.view-submenu:focus-visible .submenu-arrow {
    background: #e8f2ff;
    color: #155eef;
}

.dropdown-display.is-submenu-open .view-submenu {
    color: #155eef;
    background: #f5f8ff;
}

.dropdown-display.is-submenu-open .submenu-arrow {
    transform: rotate(90deg);
    background: #e8f2ff;
    color: #155eef;
}

.view-submenu:focus-visible {
    outline: 2px solid #3795ba;
    outline-offset: -2px;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dropbtn > span {
    color: #667085;
    font-size: 11px;
    transition: transform 0.2s ease;
}

.dropdown.is-open .dropbtn > span {
    transform: rotate(180deg);
}

/* Logo */

.brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.06em;

    display: flex;
    align-items: baseline;
    gap: 3px;
}

.brand span {
    color: var(--purple);
}

.brand small {
    font-size: 7px;
    letter-spacing: 0.08em;
    margin-left: 7px;
    color: #666;
}


/* Navigation Links */

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    font-size: 13px;
    font-weight: 600;
}

.nav-menu a {
    position: relative;
    color: #344054;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-menu > a,
.nav-menu > .dropdown > .dropbtn,
.block-account-trigger {
    text-decoration: none;
}

.nav-menu > a:not(.nav-button):hover,
.nav-menu > .dropdown > .dropbtn:hover,
.block-account-trigger:hover,
.nav-menu > a.active {
    color: #059FDE;
}

.block-account-control {
    position: relative;
}

.block-account-control::after {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: 16px;
    content: "";
}

.block-account-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    color: #344054;
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.block-account-trigger:focus-visible {
    outline: 2px solid #3795ba;
    outline-offset: 5px;
    border-radius: 3px;
}

.block-account-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 1100;
    width: 270px;
    padding: 18px;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(20, 35, 65, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.block-account-popover::before {
    position: absolute;
    top: -7px;
    left: calc(50% - 7px);
    width: 12px;
    height: 12px;
    border-top: 1px solid #e5eaf2;
    border-left: 1px solid #e5eaf2;
    background: #fff;
    content: "";
    transform: rotate(45deg);
}

.block-account-control:hover .block-account-popover,
.block-account-control:focus-within .block-account-popover,
.block-account-control.is-open .block-account-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.block-account-popover strong {
    display: block;
    color: #1b1b20;
    font-size: 14px;
}

.block-account-popover p {
    margin: 6px 0 14px;
    color: #667085;
    font-size: 12px;
    line-height: 1.55;
}

.block-account-popover .block-account-open {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #087eae;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.block-account-popover .block-account-open:hover {
    color: #155eef;
}

.account-block-modal[hidden] {
    display: none;
}

.account-block-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    overflow-y: auto;
    padding: 24px;
    place-items: center;
    background: rgba(11, 20, 55, 0.56);
    backdrop-filter: blur(6px);
}

body.account-block-modal-open {
    overflow: hidden;
}

.account-block-dialog {
    position: relative;
    width: min(100%, 490px);
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(11, 20, 55, 0.28);
    animation: accountModalEnter 0.22s ease-out both;
}

@keyframes accountModalEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.account-block-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    background: #fff;
    color: #667085;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.account-block-close:hover {
    background: #f3f7ff;
    color: #155eef;
}

.account-block-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(135deg, #e8f5ff, #eef0ff);
    color: #087eae;
    font-size: 22px;
}

.account-block-eyebrow {
    margin: 0 0 8px;
    color: #087eae;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.account-block-dialog h2 {
    margin: 0;
    color: #1b1b20;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(24px, 5vw, 30px);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.account-block-description {
    margin: 10px 0 20px;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

.account-block-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f3f8ff;
    color: #475467;
    font-size: 12px;
    line-height: 1.55;
}

.account-block-notice i {
    margin-top: 2px;
    color: #2563eb;
}

.account-block-form {
    display: grid;
    gap: 9px;
}

.account-block-form label {
    margin-top: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.account-block-form input,
.account-block-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    background: #fff;
    color: #1b1b20;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-block-form input:focus,
.account-block-form textarea:focus {
    border-color: #3795ba;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(55, 149, 186, 0.15);
}

.account-block-form input::placeholder,
.account-block-form textarea::placeholder {
    color: #98a2b3;
}

.account-block-form textarea {
    min-height: 108px;
    resize: vertical;
}

.account-block-form > small {
    margin-top: -4px;
    color: #667085;
    font-size: 11px;
}

.account-block-submit {
    min-height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #059fde, #0d68b1);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-block-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(13, 104, 177, 0.2);
}

.account-block-result {
    margin: 4px 0 0;
    padding: 12px 14px;
    border: 1px solid #f5d7a5;
    border-radius: 12px;
    background: #fff9ed;
    color: #805b1b;
    font-size: 12px;
    line-height: 1.55;
}

.account-block-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #087eae;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.account-block-contact:hover {
    color: #155eef;
}

.privacy-modal[hidden] {
    display: none;
}

.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    overflow-y: auto;
    padding: clamp(12px, 3vh, 28px);
    place-items: center;
    background: rgba(11, 20, 55, 0.62);
    backdrop-filter: blur(7px);
}

body.privacy-modal-open {
    overflow: hidden;
}

.privacy-dialog {
    display: flex;
    flex-direction: column;
    width: min(100%, 900px);
    max-height: min(88vh, 900px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(11, 20, 55, 0.3);
    animation: accountModalEnter 0.22s ease-out both;
}

.privacy-dialog-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px clamp(20px, 4vw, 34px);
    border-bottom: 1px solid #e9edf5;
    background: linear-gradient(135deg, #fff, #f7faff);
}

.privacy-dialog-eyebrow {
    margin: 0 0 5px;
    color: #087eae;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.privacy-dialog-header h2 {
    margin: 0;
    color: #1b1b20;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(22px, 4vw, 28px);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.privacy-dialog-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid #e5eaf2;
    border-radius: 13px;
    background: #fff;
    color: #667085;
    font-size: 17px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.privacy-dialog-close:hover {
    background: #eef6fb;
    color: #087eae;
}

.privacy-dialog-content {
    overflow-y: auto;
    padding: 10px clamp(20px, 4vw, 38px) 30px;
    color: #475467;
    font-size: 14px;
    line-height: 1.75;
    overscroll-behavior: contain;
}

.privacy-dialog-content:focus {
    outline: none;
}

.privacy-policy-content section {
    padding-top: 22px;
}

.privacy-policy-content h3 {
    margin: 0 0 10px;
    color: #1b1b20;
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    line-height: 1.35;
}

.privacy-policy-content h4 {
    margin: 18px 0 7px;
    color: #344054;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.privacy-policy-content p {
    margin: 0 0 12px;
}

.privacy-policy-content ul {
    display: grid;
    gap: 5px;
    margin: 0 0 14px;
    padding-left: 22px;
}

.privacy-policy-content a {
    color: #087eae;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-content .terms-source-notice {
    padding: 12px 14px;
    border: 1px solid #f3d6a1;
    border-radius: 12px;
    background: #fff9ed;
    color: #805b1b;
}

.terms-content .terms-incomplete {
    color: #667085;
    font-size: 12px;
    font-style: italic;
}

.terms-summary-wrap {
    overflow-x: auto;
    margin-top: 16px;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
}

.terms-summary {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.terms-summary th,
.terms-summary td {
    padding: 10px 14px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
}

.terms-summary tr:last-child th,
.terms-summary tr:last-child td {
    border-bottom: 0;
}

.terms-summary th {
    width: 38%;
    background: #f7faff;
    color: #344054;
    font-weight: 700;
}

.terms-summary td {
    color: #475467;
}

.terms-disclaimer {
    padding: 16px !important;
    border: 1px solid #f3d6a1;
    border-radius: 14px;
    background: #fff9ed;
    color: #805b1b;
}

.terms-disclaimer p {
    margin: 0;
}

.privacy-dialog-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(20px, 4vw, 34px);
    border-top: 1px solid #e9edf5;
    background: #fff;
}

.privacy-dialog-footer span {
    color: #667085;
    font-size: 12px;
}

.privacy-dialog-done {
    min-width: 92px;
    min-height: 40px;
    padding: 8px 16px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #059fde, #0d68b1);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.privacy-dialog-done:hover {
    box-shadow: 0 8px 18px rgba(13, 104, 177, 0.2);
}

/* Open Account Button */

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: linear-gradient(135deg, #059FDE, #0D68B1);
    color: #fff !important;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: 0 7px 16px rgba(37, 99, 235, 0.18);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-menu .nav-button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}


/* Mobile Menu Button */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle i {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #1b1b20;
    margin: 4px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] i:first-child {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] i:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] i:last-child {
    transform: translateY(-6px) rotate(-45deg);
}


/* =========================================================
   4. HERO SECTION
========================================================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #ffffff 0%, #fbfcff 55%, #f5f2ff 100%);
}


/* Hero Background */

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    animation: float 10s ease-in-out infinite;
} */

/* .blob-a {
    width: 650px;
    height: 650px;
    background: #d8ceff;
    left: -200px;
    top: -230px;
}

.blob-b {
    width: 520px;
    height: 520px;
    background: #ffd4c8;
    right: -150px;
    top: 10%;
    animation-delay: -3s;
}

.blob-c {
    width: 300px;
    height: 300px;
    background: #fff0c6;
    right: 25%;
    bottom: -160px;
    animation-delay: -6s;
} */


/* Grid Background */

.grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(50, 40, 70, 0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(50, 40, 70, 0.12) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 25%,
            #000 75%,
            transparent
        );
}


/* Grain Effect */

.grain {
    position: absolute;
    inset: 0;
    opacity: 0.05;

    /* background-image: url(
        "data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"
    ); */
}


/* Hero Layout */

.hero-inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 20px;
}

.hero-copy {
    padding-top: 20px;
}


/* Eyebrow */

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin: 0 0 18px;
}


/* Hero Heading */

.hero-title {
    font-size: clamp(55px, 7vw, 94px);
    line-height: 0.94;
    letter-spacing: -0.07em;
    max-width: 650px;
    margin: 0 0 28px;
}

.hero-title em,
.section-head em,
.app-copy span,
.about-copy em,
.download em,
.contact em {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    color: var(--purple);
    font-style: italic;
}


/* Hero Text */

.hero-text {
    max-width: 430px;
    font-size: 17px;
    color: #565660;
    line-height: 1.7;
}


/* Hero Button */

.hero-btn,
.line-btn {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #555;
    padding-bottom: 9px;
}

.hero-btn span,
.line-btn span {
    font-size: 18px;
}


/* =========================================================
   5. HERO DEVICES
========================================================= */
/* =========================================================
   HERO DEVICE
========================================================= */

.hero-device {
    position: relative;

    width: 100%;
    min-width: 0;

    height: 700px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}


/* =========================================================
   DEVICE WRAPPER
========================================================= */

.hero-device .device {
    position: relative;

    width: 100%;
    max-width: 850px;

    height: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    z-index: 2;
}


/* =========================================================
   THREE-PHONE IMAGE
========================================================= */

.hero-device .device img {
    display: block;

    width: 100%;
    max-width: 850px;

    height: auto;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;

    pointer-events: none;
}


/* =========================================================
   BACKGROUND HALO
========================================================= */

.hero-device .halo {
    position: absolute;

    width: 550px;
    height: 550px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    z-index: 0;

    pointer-events: none;
}


/* =========================================================
   FLOATING CHIPS
========================================================= */

.hero-device .float-chip {
    position: absolute;

    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding: 14px 22px;

    background: rgba(255, 255, 255, 0.95);

    border-radius: 18px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(10px);

    white-space: nowrap;

    /* Floating animation */
    animation:
        chipFloat 4s ease-in-out infinite;
}


/* =========================================================
   CHIP TEXT
========================================================= */

.hero-device .float-chip strong {
    font-size: 22px;
    line-height: 1.2;
}

.hero-device .float-chip small {
    margin-top: 4px;

    font-size: 13px;
    line-height: 1.3;
}


/* =========================================================
   LEFT CHIP
========================================================= */

.hero-device .chip-one {
    top: 22%;
    left: 0;

    animation-delay: 0s;
}


/* =========================================================
   RIGHT CHIP
========================================================= */

.hero-device .chip-two {
    right: 0;
    bottom: 22%;

    animation-delay: 1.2s;
}


/* =========================================================
   CHIP FLOATING ANIMATION
========================================================= */

@keyframes chipFloat {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }

}




/* =========================================================
   HERO DEVICE
========================================================= 

.hero-device {
    position: relative;

    width: 100%;
    height: 620px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}


/* =========================================================
   HALO
========================================================= 

.hero-device .halo {
    position: absolute;

    width: 550px;
    height: 550px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    border: 1px solid rgba(124, 100, 255, 0.25);

    box-shadow:
        0 0 0 70px rgba(124, 100, 255, 0.06),
        0 0 0 140px rgba(124, 100, 255, 0.035);

    animation: pulse 5s ease-in-out infinite;

    z-index: 0;
}


/*
 =========================================================
   ALL PHONES
========================================================= 

.hero-device .device {
    position: absolute;
    top: 50%;

    background: transparent;
    border: none;
    box-shadow: none;

    overflow: visible;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-device .device img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;
}


=========================================================
   CENTER PHONE
========================================================= 

.hero-device .phone-main {
    width: 295px;
    height: 650px;

    left: 50%;

    transform:
        translate(-50%, -50%)
        translateY(12px);

    z-index: 5;

    animation:
        centerPhoneIn 1s
        cubic-bezier(0.2, 0.8, 0.2, 1)
        both;
}


 =========================================================
   LEFT PHONE
========================================================= 

.hero-device .phone-left {
    width: 270px;
    height: 680px;

    /* 12px closer to center 
    left: calc(50% - 213px);

    /* slightly higher 
    top: calc(50% + 27px);

    transform:
        translate(-50%, -50%)
        rotate(-8deg);

    transform-origin: center center;

    z-index: 2;
    opacity: 0.96;

    animation:
        leftPhoneIn 1s
        cubic-bezier(0.2, 0.8, 0.2, 1)
        0.15s both;
}


=========================================================
   RIGHT PHONE
========================================================= 

.hero-device .phone-right {
    width: 270px;
    height: 680px;

    /* 12px closer to center 
    left: calc(50% + 213px);

    /* slightly higher 
    top: calc(50% + 27px);

    transform:
        translate(-50%, -50%)
        rotate(8deg);

    transform-origin: center center;

    z-index: 2;
    opacity: 0.96;

    animation:
        rightPhoneIn 1s
        cubic-bezier(0.2, 0.8, 0.2, 1)
        0.25s both;
}
/* =========================================================
   CENTER PHONE ANIMATION
========================================================= 

@keyframes centerPhoneIn {

    from {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            translateY(30px);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            translateY(5px);
    }

}


@keyframes leftPhoneIn {
    from {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            translateX(-40px)
            rotate(-9deg);
    }

    to {
        opacity: 0.96;
        transform:
            translate(-50%, -50%)
            translateX(0)
            rotate(-9deg);
    }
}

@keyframes rightPhoneIn {
    from {
        opacity: 0;
        transform:
            translate(-50%, -50%)
            translateX(40px)
            rotate(9deg);
    }

    to {
        opacity: 0.96;
        transform:
            translate(-50%, -50%)
            translateX(0)
            rotate(9deg);
    }
}


*/

/* =========================================================
   FLOATING CHIPS
========================================================= 

.float-chip {

    position: absolute;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding: 13px 18px;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 15px 35px rgba(30, 20, 50, 0.12);

    z-index: 10;

    white-space: nowrap;
}


.float-chip strong {

    font-size: 18px;

    line-height: 1;

    color: var(--purple);

}


.float-chip small {

    margin-top: 4px;

    font-size: 10px;

    color: #777;

}


/* =========================================================
   CHIP ONE
========================================================= 

.chip-one {

    left: -25px;

    top: 150px;

    animation:
        floatingChip 4s ease-in-out infinite;
}


/* =========================================================
   CHIP TWO
========================================================= 

.chip-two {

    right: -35px;

    bottom: 150px;

    animation:
        floatingChip 4s ease-in-out
        1s infinite;
}


/* =========================================================
   FLOATING CHIP ANIMATION
========================================================= 

@keyframes floatingChip {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

}*/

/* =========================================================
   7. HERO CONTROLS
========================================================= */

.slide-controls {
    position: absolute;
    z-index: 4;

    bottom: 36px;
    right: 5%;

    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 10px;
}

.slide-dot {
    border: 0;
    width: 28px;
    height: 2px;

    background: #b6b1c0;
    padding: 0;
    cursor: pointer;
}

.slide-dot.active {
    background: #222;
}

.scroll-cue {
    position: absolute;
    bottom: 34px;
    left: 5%;

    font-size: 10px;
    letter-spacing: 0.1em;

    display: flex;
    gap: 10px;
    align-items: center;
}

.scroll-cue span {
    width: 1px;
    height: 32px;

    background: #777;
    display: block;

    animation:
        scrollLine 1.5s infinite;
}


/* =========================================================
   8. TWO COLUMN LAYOUT
========================================================= */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
}


/* =========================================================
   9. DIGITAL BANKING / APP SECTION
========================================================= */

.app-section {
    padding: 150px 0;
    background: #fff;
}

.app-image {
    min-height: 570px;
    display: grid;
    place-items: center;
}


/* Image Frame */

.image-frame {
    width: 400px;
    height: 650px;

    border-radius: 190px 190px 35px 35px;

    background: #ded7ff;

    position: relative;
    overflow: hidden;

    transform: rotate(-5deg);

    box-shadow:
        30px 35px 80px rgba(75, 55, 120, 0.18);
}

.image-frame-photo {
    overflow: hidden;
}

.image-frame-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Abstract Screen */

.abstract-screen {
    position: absolute;
    inset: 30px;

    border-radius: 150px 150px 25px 25px;

    background:
        linear-gradient(
            155deg,
            #8171ed,
            #c6bdff
        );

    padding: 30px;
    color: #fff;
}

.screen-top {
    display: flex;
    justify-content: space-between;

    font-size: 11px;
    font-weight: 700;
}

.big-circle {
    width: 170px;
    height: 170px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.16);

    margin: 65px auto 30px;
}

.mini-panel {
    background: rgba(255, 255, 255, 0.92);
    color: #292533;

    border-radius: 20px;
    padding: 17px;
}

.mini-panel small {
    display: block;
    font-size: 8px;
    color: #8a8490;
}

.mini-panel b {
    display: block;
    font-size: 18px;
    margin: 5px 0 12px;
}

.mini-bars {
    display: flex;
    gap: 5px;
    align-items: end;
    height: 35px;
}

.mini-bars i {
    width: 11px;
    border-radius: 4px;
    background: #b0a5f9;
}

.mini-bars i:nth-child(1) {
    height: 40%;
}

.mini-bars i:nth-child(2) {
    height: 70%;
}

.mini-bars i:nth-child(3) {
    height: 50%;
}

.mini-bars i:nth-child(4) {
    height: 90%;
}

.mini-bars i:nth-child(5) {
    height: 65%;
}

.mini-bars i:nth-child(6) {
    height: 100%;
}

.mini-bars i:nth-child(7) {
    height: 80%;
}


/* App Content */

.app-copy h2,
.about-copy h2 {
    font-size: clamp(45px, 5vw, 70px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    margin: 0 0 25px;
}

.app-copy > p,
.about-copy > p {
    color: var(--muted);
    max-width: 480px;
    line-height: 1.8;
}


/* Metric */

.metric {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 35px 0;
}

.metric strong {
    font-size: 48px;
    letter-spacing: -0.06em;
}

.metric span {
    max-width: 150px;
    color: #777;
    font-size: 12px;
}


/* =========================================================
   10. SERVICES / FEATURES
========================================================= */

.features {
    padding: 130px 0;
    background: #FAFAFA;
}

.section-head h2 {
    font-size: clamp(44px, 5vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    margin: 0;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    margin-top: 65px;
}


/* Feature List */

.feature-list a {
    text-decoration: none;
    color: inherit;
}

.feature-list .feature {
    cursor: pointer;
}

.feature {
    display: grid;
    grid-template-columns: 45px 1fr 30px;
    gap: 15px;

    padding: 25px 0;

    border-top: 1px solid #ccc;

    transition: 0.35s;
}

.feature:last-child {
    border-bottom: 1px solid #ccc;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.6);
    padding-left: 12px;
}

.feature-no {
    font-size: 11px;
    color: #999;
}

.feature h3 {
    font-size: 19px;
    margin: 0 0 7px;
}

.feature p {
    font-size: 13px;
    color: #777;
    margin: 0;
    max-width: 420px;
}

.feature > b {
    font-size: 18px;
}

.feature.active {
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.5);
}


/* Feature Artwork */

.feature-art {
    height: 500px;

    border-radius: 30px;

    background: #59afe9;

    position: relative;
    overflow: hidden;
}

.art-orb {
    position: absolute;

    width: 410px;
    height: 410px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #007bff,
            #59afe9
        );

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);
}

.art-card {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 230px;

    background: #fff;

    padding: 22px;

    border-radius: 20px;

    box-shadow:
        0 30px 60px rgba(50, 40, 90, 0.2);
}

.art-card small,
.art-card span {
    display: block;
    color: #888;
    font-size: 9px;
}

.art-card strong {
    display: block;
    font-size: 55px;
    letter-spacing: -0.08em;
}

.wave {
    height: 55px;
    margin-top: 10px;

    background:
        linear-gradient(
            160deg,
            transparent 47%,
            #007bff 48%,
            #59afe9 51%,
            transparent 52%
        );

    border-bottom: 2px solid #59afe9;
}

/* Dashboard artwork */

.dashboard-column {
    min-width: 0;
}

.dashboard-visual {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 22px 0;
}

.dashboard-card {
    padding: 24px;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(11, 20, 55, 0.12);
}

.dashboard-topbar,
.dashboard-window-controls,
.dashboard-status {
    display: flex;
    align-items: center;
}

.dashboard-topbar {
    justify-content: space-between;
    margin-bottom: 24px;
}

.dashboard-window-controls {
    gap: 7px;
}

.dashboard-window-controls span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dashboard-window-controls span:nth-child(1) {
    background: #ff5f56;
}

.dashboard-window-controls span:nth-child(2) {
    background: #ffbd2e;
}

.dashboard-window-controls span:nth-child(3) {
    background: #27c93f;
}

.dashboard-status {
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7f9f0;
    color: #138a55;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12b76a;
}

.dashboard-placeholder {
    height: 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #eef2ff;
}

.dashboard-placeholder-long {
    width: 90%;
}

.dashboard-placeholder-short {
    width: 65%;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.dashboard-metric {
    min-width: 0;
    padding: 16px;
    border-radius: 14px;
}

.dashboard-metric-primary {
    background: #eef2ff;
    color: #155eef;
}

.dashboard-metric-secondary {
    background: #f4f0ff;
    color: #6941c6;
}

.dashboard-metric i,
.dashboard-metric strong,
.dashboard-metric small {
    display: block;
}

.dashboard-metric i {
    margin-bottom: 12px;
    font-size: 20px;
}

.dashboard-metric strong {
    color: #0b1437;
    /* font-family: "Playfair Display", serif; */
    font-size: 22px;
    line-height: 1.2;
}

.dashboard-metric small {
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
}

.dashboard-chart {
    height: 70px;
    border-radius: 10px;
    background:
        linear-gradient(160deg, transparent 47%, #155eef 48%, #9b8afb 51%, transparent 52%),
        linear-gradient(90deg, #eef2ff, #f4f0ff);
}

.dashboard-float-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(11, 20, 55, 0.1);
    color: #0b1437;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-badge-delivered {
    top: 0;
    left: -24px;
}

.dashboard-badge-roi {
    right: -24px;
    bottom: 0;
}

.dashboard-float-badge small {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
    font-weight: 400;
}

.dashboard-badge-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 10px;
}

.dashboard-badge-success {
    background: #e7f9f0;
    color: #12b76a;
}

.dashboard-badge-primary {
    background: #eef2ff;
    color: #155eef;
}

@media (max-width: 600px) {
    .dashboard-visual {
        width: calc(100% - 12px);
    }

    .dashboard-card {
        padding: 18px;
    }

    .dashboard-float-badge {
        gap: 7px;
        padding: 9px 11px;
        font-size: 11px;
    }

    .dashboard-badge-delivered {
        left: -6px;
    }

    .dashboard-badge-roi {
        right: -6px;
    }
}


/* =========================================================
   11. HOW WE SERVE YOU
========================================================= */

.how {
    padding: 140px 0;
    background: #fff;
}

.steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 50px);
    margin-top: 70px;
    align-items: center;
}

.step:not(.step-image) {
    min-height: 250px;
    padding: 30px;
    border: 1px solid #e9edf5;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff, #f8faff);
    box-shadow: 0 12px 32px rgba(11, 20, 55, 0.06);
}

.step-image {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.step .step-label {
    display: inline-block;
    color: var(--purple);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.step-label i {
    color: #98a2b3;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
}

.step h3 {
    margin: 24px 0 12px;
    font-size: clamp(25px, 2.5vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.step p {
    font-size: 13px;
    line-height: 1.75;
    color: #777;
    max-width: 320px;
    margin: 0;
}

.round-image {
    width: min(100%, 330px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #eaf2ff, #f4edff 55%, #fff0e9);
    display: grid;
    place-items: center;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(37, 72, 140, 0.16);
}

.round-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.round-phone {
    width: 125px;
    height: 240px;

    border: 6px solid #222;
    border-radius: 28px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #c4b9ff
        );

    box-shadow:
        0 25px 50px rgba(70, 40, 70, 0.2);

    transform: rotate(-12deg);
}
/*=== marque===*/

.image-marquee {
    width: 100%;
    overflow: hidden;
    padding: 20px ;
    background-color: white;
    

}

.image-track {
    display: flex;
    width: max-content;
    gap: 50px;
    animation: marquee 25s linear infinite;
    padding: 20px 0;
    margin-left: 20%;
}

.image-track img {
    
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    margin-right:  10px;
}

/* Right to left*/ 
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =========================================================
   12. ABOUT SECTION
========================================================= */

.about {
    padding: 140px 0;
    background: #FAFAFA;
}

.about-copy h3 {
    font-family: "Playfair Display", serif;
    font-size: 35px;
    font-weight: 600;
    line-height: 1.15;
    max-width: 480px;
}


/* About Artwork */

.about-art {
    /* height: 560px; */

    position: relative;

    border-radius: 35px;
    padding: 0 0 30px 0;

    /* background: #59afe9; */
}
.about-text {
    background: white;
    box-shadow: 0 2px 8px rgba(11, 20, 55, 0.06);
    border-radius: 14px;
    text-align: center;
    margin-top: 14px;
    padding: 22px;
    color: #667085;
}

.about-text .about-icon {
    display: inline-grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.about-text .mission-icon {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.about-text .vision-icon {
    background: linear-gradient(135deg, #0f766e, #2dd4bf);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.2);
}

.about-text h2 {
    margin: 12px 0 6px;
    color: #1b1b20;
    font-size: 1.25rem;
    line-height: 1.25;
}

.about-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}
.about-circle {
    width: 480px;
    height: 480px;

    border-radius: 50%;

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    background:
        linear-gradient(
            145deg,
            #755ee8,
            #bdb2ff
        );

    box-shadow:
        0 30px 90px rgba(80, 60, 150, 0.25);
}

.about-note {
    position: absolute;

    right: 35px;
    bottom: 35px;

    background: #fff;

    border-radius: 20px;

    padding: 20px;

    font-size: 22px;
    font-weight: 700;
    line-height: 0.9;

    box-shadow:
        0 20px 50px rgba(50, 40, 80, 0.14);
}

.about-note small {
    font-size: 10px;
    color: #777;
}

/* =========================================================
   FAQ SECTION
========================================================= */

.faq-section {
    padding: 130px 0;
    background: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 60px auto 0;
    display: grid;
    gap: 18px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e8e4ef;
    border-radius: 18px;
    padding: 0 24px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
    transition: 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(89, 175, 233, 0.45);
    box-shadow: 0 20px 35px rgba(89, 175, 233, 0.08);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    padding: 24px 42px 24px 0;
    position: relative;
    color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #edf6ff;
    color: #0d6efd;
    display: grid;
    place-items: center;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 0;
    padding: 0 0 24px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

/*=========================================================
   12.1 ABOUT ARTWORK - FLOATING CHIPS
========================================================= */
/* =========================
 GRID
  ========================= */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 60px;
    align-items: stretch;
  }
  .card-text{
    color: var(--muted);
    line-height: 1.8;
    text-align: center;
  }
  .app-intro {
    max-width: 850px;
    margin: 20px auto 0;
  }
  .grid-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    border: 1px solid #e5eaf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(11, 20, 55, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
 }
 .grid-card:hover {
    transform: translateY(-4px);
    border-color: rgba(55, 149, 186, 0.35);
    box-shadow: 0 16px 35px rgba(11, 20, 55, 0.1);
 }
 .grid-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 16px;
    background: #eaf6fb;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
 }
 .grid-icon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
 }
 .grid-content h3,
 .grid-card > h3 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.3;
    letter-spacing: -0.03em;
 }
 .app-feature-list,
 .app-steps-list {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
 }
 .app-feature-list li,
 .app-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
 }
 .app-feature-list li i,
 .app-steps-list li > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #3795ba;
    font-size: 14px;
 }
 .app-steps-list {
    gap: 16px;
 }
 .app-steps-list li span {
    display: block;
 }
 .app-steps-list li b {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 13px;
 }
 .app-steps-list li small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
 }
 .grid-card-download > p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
 }
 .grid-card-download .stores {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 30px;
 }
 .grid-card-download .store {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-height: 58px;
    width: auto;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #e5eaf2;
    background: #f8faff;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
 }
 .grid-card-download .store:hover {
    transform: translateY(-2px);
    border-color: #3795ba;
    background: #fff;
 }
 .grid-card-download .store-content {
    align-items: center;
    gap: 9px;
 }
 .grid-card-download .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
 }
 .grid-card-download .logo img {
    display: block;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    object-fit: contain;
 }
 .grid-card-download .store small {
    font-size: 9px;
 }
 .grid-card-download .store b {
    font-size: 13px;

 }
/* =========================================================
   13. REVIEWS
========================================================= */
.reviews {
    padding: 130px 0;
    background: #FAFAFA;
}

.center {
    text-align: center;
}

.review-track {
    width: 100%;
    overflow: hidden;
    margin-top: 60px;
}

.review-track .swiper-wrapper {
    display: flex;
}

.review-track .swiper-slide {
    flex-shrink: 0;
    height: auto;
}

.review {
    box-sizing: border-box;
    padding: 25px;

    border: 1px solid #ddd9df;

    min-height: 150px;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: 60px;
    color: var(--purple);
    line-height: 0.7;
}

.review p {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    line-height: 1.4;
    min-height: 110px;
}

.review strong,
.review small {
    display: block;
}

.review small {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}
.rating{
    display: flex;
    gap: 10px;
}

/* =========================================================
   14. DOWNLOAD / CTA SECTION
========================================================= */

.download {
    padding: 120px 0;
    background: #1c1b20;
    color: #fff;
}

.download-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: end;
}

.download h2 {
    font-size: clamp(55px, 6vw, 85px);
    line-height: 0.9;
    letter-spacing: -0.07em;
    margin: 0;
}

.download p {
    color: #b5b2bb;
    line-height: 1.7;
}


/* App Stores */
.all-view{
    display: flex;
    gap: 30px;
}
.stores {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}


.store {
    background: #fff;
    color: #17161b;
    border: 1px solid #1b1b20;
    border-radius: 11px;

    padding: 8px 12px;

    width: 165px;
}

.store small,
.store b {
    display: block;
}

.store small {
    font-size: 12px;
    color: #666;
}

.store b {
    font-size: 16px;
}
.store-content{
    display: flex;
    
    gap: 10px;
}
/* Regulatory certifications */
.license {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 30px;
}

.cert {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 14px;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(11, 20, 55, 0.05);
}

.cert2 {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 14px;
    border: 1px solid #e5eaf2;
    border-radius: 14px;
}

.cert span {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.cert img {
    display: block;
    width: auto;
    max-width: 72px;
    height: 30px;
    object-fit: contain;
}

.ndpa {
    display: grid;
    width: fit-content;
    margin: 30px auto 0;
    padding: 10px;
    place-items: center;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 20, 55, 0.1);
}

.ndpa img {
    display: block;
    width: clamp(100px, 16vw, 110px);
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: contain;
}

/* =========================================================
   15. CONTACT SECTION
========================================================= */

.contact {
    padding: 140px 0;
    background: #FAFAFA;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
}

.contact h2 {
    font-size: clamp(42px, 5vw, 65px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    margin: 0 0 25px;
}

.contact-wrap > div > p:not(.eyebrow) {
    color: #777;
    max-width: 430px;
    line-height: 1.8;
}


/* Contact Details */

.contact-details {
    display: flex;
    gap: 25px;
    font-size: 12px;
    margin-top: 35px;
}


/* Contact Form */

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form label {
    font-size: 11px;
    color: #555;
}

.contact-form label:nth-child(3),
.contact-form label:nth-child(4),
.contact-form button,
.form-message {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;

    margin-top: 7px;

    background: transparent;

    border: 0;
    border-bottom: 1px solid #aaa;

    padding: 12px 0;

    outline: none;

    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--purple);
}

.contact-form button {
    justify-self: start;

    border: 0;

    background: #59afe9;
    color: #fff;

    border-radius: 30px;

    padding: 14px 25px;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}

.contact-form button span {
    margin-left: 25px;
}

.form-message {
    font-size: 12px;
    color: var(--purple);
    margin: 0;
}


/* =========================================================
   16. FOOTER
========================================================= */

footer {
    padding: 30px 0;
    background: #fff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p,
.footer-inner > div {
    font-size: 18px;
    color: #777;
}

.footer-inner > div {
    display: flex;
    gap: 18px;
}


/* =========================================================
   17. SCROLL REVEAL ANIMATIONS
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-left {
    transform: translateX(-45px);
}

.reveal-delay {
    transition-delay: 0.15s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* =========================================================
   18. SLIDE ANIMATIONS
========================================================= */

.slide-out {
    animation: slideOut 0.7s ease forwards;
}

.slide-in {
    animation: slideIn 0.7s ease forwards;
}


/* =========================================================
   19. GENERAL KEYFRAME ANIMATIONS
========================================================= */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes scrollLine {
    50% {
        transform: scaleY(0.4);
        opacity: 0.4;
    }
}

@keyframes float {
    50% {
        transform: translate(35px, 25px) scale(1.05);
    }
}

@keyframes pulse {
    50% {
        transform: scale(1.04);
        opacity: 0.7;
    }
}

@keyframes deviceIn {
    from {
        opacity: 0;
        transform: translateY(70px) rotate(8deg);
    }

    to {
        opacity: 1;
        transform: translateY(8px);
    }
}

@keyframes chipFloat {
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(-40px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   20. YES MFB HOME PAGE ENHANCEMENTS
========================================================= */

.hero-home {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #ffffff 55%,
            #f8faff
        );
}

/* .hero-home .blob-a {
    background: #c9bcff;
}

.hero-home .blob-b {
    background: #ffd0c0;
} */


/* =========================================================
   21. PRODUCT PAGE
========================================================= */

.product-hero {
    min-height: 780px;

    padding: 150px 0 90px;

    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #ffffff 55%,
            #f8faff
        );
}

.product-hero-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}


/* Product Hero Text */

.product-hero-copy h1 {
    font-size: clamp(52px, 6vw, 82px);
    line-height: 0.94;
    letter-spacing: -0.07em;
    margin: 0 0 25px;
}

.product-hero-copy h1 em {
    font-family: "Playfair Display", serif;
    color: #59afe9;
    font-style: italic;
}

.product-hero-copy > p:not(.eyebrow) {
    max-width: 500px;
    color: #666;
    line-height: 1.8;
    font-size: 17px;
}


/* Product Hero Image */

.product-hero-image {
    height: 520px;

    position: relative;

    display: grid;
    place-items: center;
    border-radius: 30px;

}

.product-hero-image img {
    position: relative;
    z-index: 2;

    width: min(470px, 90%);
    max-height: 510px;

    object-fit: contain;
    
    filter:
        drop-shadow(
            0 35px 40px rgba(45, 30, 70, 0.18)
        );

    animation:
        productFloat 5s ease-in-out infinite;
}

.product-halo {
    position: absolute;

    width: 430px;
    height: 430px;

    border-radius: 50%;

    background: rgba(124, 100, 255, 0.13);

    box-shadow:
        0 0 0 65px rgba(124, 100, 255, 0.05);

    animation:
        pulse 5s infinite;
}
/* =========================================================
   HIDE / SHOW PRODUCT CONTENT
========================================================= */

.hidden-div {
    display: grid;
    grid-template-rows: 0fr;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        grid-template-rows 0.45s ease,
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

.hidden-div > ul {
    min-height: 0;
    overflow: hidden;
}


/* OPEN STATE */

.hidden-div.show {
    grid-template-rows: 1fr;

    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* Product list */

.hidden-div ul {
    list-style: none;

    padding-left: 0;
    margin: 40px 0 0;
}

.hidden-div ul li {
    margin-bottom: 10px;
    overflow: wrap;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 5px;
    color: #666;
}


/* Check icons */

.hidden-div ul li i {
    color: rgb(55, 149, 186);
    margin-right: 20px;
}
/* =========================================================
   22. PRODUCTS SECTION
========================================================= */

.products-section {
    padding: 130px 0;
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    margin-top: 60px;
    align-items: start;
}

.product-card {
    border: 1px solid #ddd9e1;

    background: #fff;

    overflow: hidden;

    transition: 0.35s;
    align-self: start;
    
}

.product-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 60px rgba(50, 40, 80, 0.12);
}


/* Product Image */

.product-img {
    height: 260px;
    background: #f0edfa;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.6s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}


/* Product Content */

.product-copy {
    padding: 25px 26px 30px;
}

.product-copy > span {
    font-size: 10px;
    color: #8b79e9;
}

.product-copy h3 {
    font-size: 18px;
    letter-spacing: -0.04em;
    margin-top: 22px ;
}

.product-copy p {
    font-size: 13px;
    line-height: 1.8;
    color: #777;
   /* min-height: 70px;*/
}

.product-copy a {
    font-size: 11px;
    font-weight: 700;

    border-bottom: 1px solid #aaa;

    padding-bottom: 6px;
}

.product-copy a b {
    margin-left: 18px;
}


/* =========================================================
   23. PRODUCT CTA
========================================================= */

.product-cta {
    padding: 110px 0;
    background: #1c1b20;
    color: #fff;
}

.product-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.product-cta h2 {
    font-size: clamp(48px, 6vw, 75px);
    line-height: 0.92;
    letter-spacing: -0.06em;
    margin: 0;
}

.product-cta h2 em {
    font-family: "Playfair Display", serif;
    color: #59afe9;
    font-style: italic;
}

.product-cta p:not(.eyebrow) {
    color: #aaa;
    max-width: 500px;
}

.product-cta .hero-btn {
    color: #fff;
    border-color: #777;
}


/* =========================================================
   24. LEGAL / POLICY PAGES
========================================================= */

.legal-hero {
    padding: 180px 0 90px;

    background:
        linear-gradient(
            135deg,
            #e9e4ff,
            #fff
        );
}

.legal-hero h1 {
    font-size: clamp(50px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin: 0;
}

.legal-content {
    padding: 90px 0 140px;
    background: #fff;
}

.legal-card {
    max-width: 850px;

    margin: auto;

    border: 1px solid #ddd9e1;

    padding: 45px;

    line-height: 1.9;

    color: #666;
}

.legal-card p {
    margin: 0 0 22px;
}


/* =========================================================
   25. PRODUCT PAGE ANIMATION
========================================================= */

@keyframes productFloat {
    50% {
        transform: translateY(-12px);
    }
}


/* =========================================================
   26. TABLET RESPONSIVE DESIGN
========================================================= */
/* =========================================================
   TABLET
========================================================= */



@media (max-width: 900px) {

    .container {
        width: min(100% - 36px, 1160px);
    }


    /* Mobile Navigation */

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 18px;
        right: 18px;
        gap: 4px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 12px;
        background: #fff;
        border: 1px solid #e9edf5;
        border-radius: 18px;
        box-shadow: 0 20px 50px rgba(20, 35, 65, 0.16);
        flex-direction: column;
        align-items: stretch;
    }

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

    .nav-menu > a:not(.nav-button),
    .nav-menu > .dropdown > .dropbtn,
    .block-account-trigger {
        display: flex;
        min-height: 44px;
        align-items: center;
        padding: 0 12px;
        border-radius: 10px;
    }

    .nav-menu > a:not(.nav-button):hover,
    .nav-menu > .dropdown > .dropbtn:hover,
    .block-account-trigger:hover,
    .nav-menu > a.active {
        background: #f3f7ff;
    }

    .nav-menu > .dropdown {
        display: block;
        width: 100%;
    }

    .block-account-control {
        width: 100%;
    }

    .block-account-trigger {
        width: 100%;
        text-align: left;
    }

    .block-account-popover {
        top: 100%;
        left: 12px;
        width: min(270px, calc(100vw - 84px));
        transform: translateY(6px);
    }

    .block-account-control:hover .block-account-popover,
    .block-account-control:focus-within .block-account-popover,
    .block-account-control.is-open .block-account-popover {
        transform: translateY(0);
    }

    .block-account-popover::before {
        left: 24px;
    }

    .nav-menu .nav-button {
        margin-top: 6px;
    }

    .dropdown-display {
        position: static;
        min-width: 0;
        width: 100%;
        flex-direction: column;
        border-radius: 12px;
        box-shadow: none;
    }

    .dropdown-display::before {
        display: none;
    }

    .dropdown-content,
    .sub-dropdown {
        min-width: 0;
        width: 100%;
        border: 0;
        border-radius: 0;
    }

    .dropdown-content {
        padding: 4px 0;
    }

    .dropdown-content a,
    .dropdown-submenu-content a {
        padding: 11px 16px;
    }

    .sub-dropdown {
        padding: 0 0 4px;
        border-top: 1px solid #edf0f5;
    }

    .nav-menu .dropdown:not(.is-open):hover > .dropdown-display {
        display: none;
    }


    /* Main Layouts */

    .hero-inner,
    .two-col,
    .feature-layout,
    .contact-wrap,
    .download-inner {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero {
        padding-top: 130px;
    }
        .hero-device {
        height: 620px;
    }

    .hero-device .device {
        max-width: 760px;
    }

    .hero-device .device img {
        max-width: 760px;
    }

    .hero-device .halo {
        width: 480px;
        height: 480px;
    }

    .hero-device .chip-one {
        left: 10px;
    }

    .hero-device .chip-two {
        right: 10px;
    }


    /*.hero-device {
        height: 500px;
    }

    .hero-device .halo {
        width: 350px;
        height: 350px;
    }

    /* Center phone 

    .hero-device .phone-main {
        width: 235px;
        height: 470px;

        transform:
            translate(-50%, -50%);
    }


    /* Left phone 

    .hero-device .phone-left {
        width: 175px;
        height: 390px;
        left: calc(50% - 235px);
        transform:
            translate(-155px, -42%);

        opacity: 0.55;
    }


    /* Right phone 

    .hero-device .phone-right {
        width: 175px;
        height: 390px;
        left: calc(50% + 235px);
        transform:
            translate(-20px, -42%);

        opacity: 0.55;
    }


    /* Hide floating cards 

    .float-chip {
        display: none;
    }*/




    /* Steps */

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .step-image {
        grid-row: 1 / 3;
        grid-column: 2;
    }


    /* Reviews */

    .review-track {
        grid-template-columns: 1fr;
    }


    /* About */

    .about-art {
        height: 430px;
    }


    /* Feature Artwork */

    .feature-art {
        height: 430px;
    }


    /* Contact */

    .contact-wrap {
        gap: 50px;
    }
    /*grid-card*/
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-card-download { grid-column: 1 / -1; }

    /* Product Pages */

    .product-hero-grid {
        grid-template-columns: 1fr;
    }

    .product-hero-image {
        height: 430px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   27. MOBILE RESPONSIVE DESIGN
========================================================= */

@media (max-width: 600px) {

    .container {
        width: calc(100% - 28px);
    }

    .app-image {
        display: none;
    }

    /* Header */

    .brand small {
        display: none;
    }


    /* Hero */

    .hero-title {
        font-size: 52px;
    }
    .hero-device {
        width: 100%;

        height: auto;

        min-height: 450px;

        padding: 20px 0;
    }


    .hero-device .device {
        width: 105%;

        max-width: 680px;
    }


    .hero-device .device img {
        width: 100%;

        max-width: 680px;

        height: auto;
    }


    .hero-device .halo {
        width: 400px;
        height: 400px;
    }


    .hero-device .float-chip {
        padding: 10px 15px;

        border-radius: 14px;
    }


    .hero-device .float-chip strong {
        font-size: 18px;
    }


    .hero-device .float-chip small {
        font-size: 11px;
    }


    .hero-device .chip-one {
        top: 18px;
        left: 5px;
    }


    .hero-device .chip-two {
        right: 5px;
        bottom: 25px;
    }

    /*.hero-device {
        height: 490px;
    }

    .device {
        width: 190px;
        height: 385px;
    }

    .phone-left {
        transform:
            translate(-115px, 30px)
            rotate(-10deg);
    }

    .phone-right {
        transform:
            translate(115px, 30px)
            rotate(10deg);
    }

    .phone-screen h3 {
        font-size: 22px;
    }

    .halo {
        width: 390px;
        height: 390px;
    }

    .float-chip {
        display: none;
    }*/

    .slide-controls {
        right: 20px;
    }

    .scroll-cue {
        left: 20px;
    }


    /* Steps */

    .steps {
        grid-template-columns: 1fr;
    }

    .step-image {
        grid-row: auto;
        grid-column: auto;
    }

    .round-image {
        width: 250px;
        height: 250px;
    }


    /* Contact Form */

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form label:nth-child(3),
    .contact-form label:nth-child(4),
    .contact-form button,
    .form-message {
        grid-column: auto;
    }


    /* App Stores */

    .stores {
        flex-direction: column;
    }


    /* Footer */

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }


    /* Product Pages */

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-hero {
        padding-top: 125px;
    }

    .product-hero-copy h1 {
        font-size: 52px;
    }

    .product-hero-image {
        height: 380px;
    }

    .product-halo {
        width: 300px;
        height: 300px;
    }

    .product-cta {
        padding: 80px 0;
    }
}
/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .hero-device {
        min-height: 360px;

        padding: 10px 0;
    }


    .hero-device .device {
        width: 115%;

        max-width: none;

        margin-left: -7.5%;
    }


    .hero-device .device img {
        width: 100%;
    }


    .hero-device .halo {
        width: 320px;
        height: 320px;
    }


    .hero-device .float-chip {
        padding: 8px 12px;

        border-radius: 12px;
    }


    .hero-device .float-chip strong {
        font-size: 15px;
    }


    .hero-device .float-chip small {
        font-size: 9px;
    }
      .cards-grid {
        grid-template-columns: 1fr;
    }
    .grid-card-download {
        grid-column: auto;
    }
    .grid-card {
        padding: 22px;
    }

}

.loan-application-trigger {
    border: 0;
    border-bottom: 1px solid #555;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}

.loan-modal[hidden] {
    display: none;
}

.loan-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    overflow-y: auto;
    padding: clamp(12px, 3vh, 28px);
    place-items: center;
    background: rgba(11, 20, 55, 0.66);
    backdrop-filter: blur(7px);
}

body.loan-modal-open {
    overflow: hidden;
}

.loan-dialog {
    display: flex;
    flex-direction: column;
    width: min(100%, 860px);
    max-height: min(92vh, 960px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(11, 20, 55, 0.3);
    animation: accountModalEnter 0.22s ease-out both;
}

.loan-dialog-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px clamp(20px, 4vw, 34px);
    border-bottom: 1px solid #e9edf5;
    background: linear-gradient(135deg, #fff, #f7faff);
}

.loan-dialog-eyebrow {
    margin: 0 0 5px;
    color: #087eae;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.loan-dialog-header h2 {
    margin: 0;
    color: #1b1b20;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(22px, 4vw, 28px);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.loan-dialog-header #loan-application-description {
    margin: 8px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.loan-dialog-close {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid #e5eaf2;
    border-radius: 13px;
    background: #fff;
    color: #667085;
    font-size: 17px;
    cursor: pointer;
}

.loan-dialog-close:hover {
    background: #eef6fb;
    color: #087eae;
}

.loan-dialog-content {
    overflow-y: auto;
    padding: 20px clamp(20px, 4vw, 34px) 26px;
    overscroll-behavior: contain;
}

.loan-submission-notice {
    padding: 12px 14px;
    border: 1px solid #f3d6a1;
    border-radius: 12px;
    background: #fff9ed;
    color: #805b1b;
    font-size: 12px;
    line-height: 1.55;
}

.loan-application-form {
    display: grid;
    gap: 18px;
}

.loan-application-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.loan-application-form legend {
    margin-bottom: 10px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.loan-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.loan-name-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loan-application-form label {
    display: block;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.loan-application-form label span,
.loan-required-note span {
    color: #b42318;
}

.loan-application-form label small {
    color: #667085;
    font-size: 11px;
    font-weight: 400;
}

.loan-application-form input,
.loan-application-form select {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 7px;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #1b1b20;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
}

.loan-application-form input:focus,
.loan-application-form select:focus {
    border-color: #3795ba;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(55, 149, 186, 0.15);
}

.loan-form-full {
    grid-column: 1 / -1;
}

.loan-required-note {
    margin: -5px 0 0;
    color: #667085;
    font-size: 11px;
}

.loan-submission-notice {
    margin: 0;
}

.loan-submission-notice[hidden] {
    display: none;
}

.loan-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.loan-submit,
.loan-clear {
    min-height: 44px;
    padding: 10px 17px;
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.loan-submit {
    background: linear-gradient(135deg, #059fde, #0d68b1);
    color: #fff;
}

.loan-clear {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #475467;
}

.loan-form-security {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667085;
    font-size: 11px;
}

.loan-application-disclaimer {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e9edf5;
    color: #667085;
    font-size: 12px;
    line-height: 1.6;
}

.loan-application-disclaimer p {
    margin: 0;
}

.loan-application-disclaimer strong {
    color: #344054;
}

@media (max-width: 600px) {
    .loan-modal {
        padding: 8px;
        place-items: end center;
    }

    .loan-dialog {
        max-height: 96vh;
        border-radius: 18px;
    }

    .loan-form-grid,
    .loan-name-grid {
        grid-template-columns: 1fr;
    }

    .loan-form-full {
        grid-column: auto;
    }

    .loan-form-actions {
        align-items: stretch;
    }

    .loan-submit,
    .loan-clear {
        flex: 1 1 40%;
    }

    .loan-form-security {
        flex-basis: 100%;
    }
}
