/* ============================================================
   YUSR CAPITAL — desert-oasis editorial fintech
   Fraunces (display) + Archivo (body), sand / oasis green / gold
   ============================================================ */

:root {
    --sand: #f7f2e9;
    --sand-deep: #efe7d8;
    --paper: #fffdf8;
    --ink: #14302a;
    --ink-soft: #3d564f;
    --green: #0e4434;
    --green-deep: #0a3327;
    --gold: #e9c46a;
    --gold-deep: #c79a3a;
    --line: rgba(20, 48, 42, 0.14);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 18px 40px -18px rgba(20, 48, 42, 0.28);
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Archivo", "Helvetica Neue", sans-serif;
    --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(1200px 600px at 85% -100px, rgba(233, 196, 106, 0.22), transparent 60%),
        var(--sand);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: var(--green); }
img, svg { display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow { max-width: 760px; }

/* ---------------- buttons ---------------- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    border: 1.5px solid transparent;
    border-radius: 999px;
    padding: 12px 26px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--green);
    color: var(--gold);
    box-shadow: 0 10px 24px -12px rgba(14, 68, 52, 0.7);
}
.btn-primary:hover { background: var(--green-deep); color: var(--gold); }

.btn-ghost {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}
.btn-ghost:hover { background: rgba(14, 68, 52, 0.07); }

.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-block { width: 100%; display: block; }

/* ---------------- header ---------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 242, 233, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    position: relative;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 9px;
    text-decoration: none;
    color: var(--ink);
}
.brand-mark {
    align-self: center;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--green);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
}
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: 0.04em;
}
.brand-group {
    font-size: 11px;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav-link {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.nav-link:hover { color: var(--green); }
.nav-lang {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 8px;
}
.nav-cta { padding: 10px 24px; }

.nav-dropdown { position: relative; }
.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: -16px;
    min-width: 300px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-panel a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
}
.dropdown-panel a small {
    display: block;
    font-weight: 400;
    font-size: 12.5px;
    color: var(--ink-soft);
}
.dropdown-panel a:hover { background: var(--sand); }

.nav-toggle-input { display: none; }
.nav-toggle { display: none; }

/* ---------------- hero ---------------- */

.hero { padding: 72px 0 56px; overflow: hidden; }

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 48px;
    align-items: center;
}

.hero-eyebrow,
.section-eyebrow {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(38px, 5.4vw, 60px);
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-subhead {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 54ch;
    margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    margin: 0;
}
.trust-strip span { display: inline-flex; align-items: center; }
.trust-strip span + span::before {
    content: "·";
    margin: 0 10px;
    color: var(--gold-deep);
}

.hero-stats { display: grid; gap: 14px; }
.stat-tile {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow);
    transform: rotate(0.4deg);
}
.stat-tile:nth-child(2) { transform: rotate(-0.5deg) translateX(14px); }
.stat-tile:nth-child(3) { transform: rotate(0.3deg); }
.stat-tile strong {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--green);
}
.stat-tile span { font-size: 13px; color: var(--ink-soft); }

.hero-split { align-items: start; }
.hero-split .hero-copy { padding-top: 24px; }

/* ---------------- sections ---------------- */

.section { padding: 72px 0; }

.section-title {
    font-size: clamp(28px, 3.6vw, 40px);
    max-width: 24ch;
    margin-bottom: 36px;
}

/* products */

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--sand);
    color: var(--green);
    margin-bottom: 14px;
}
.product-icon svg { width: 24px; height: 24px; }
.product-card h3 { font-size: 23px; }
.product-for { color: var(--ink-soft); font-size: 15px; }
.product-stats {
    list-style: none;
    padding: 0;
    margin: 10px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.product-stats li {
    font-size: 14.5px;
    font-weight: 500;
    padding-left: 22px;
    position: relative;
}
.product-stats li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gold-deep);
}
.product-link {
    margin-top: auto;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
.product-link:hover span { margin-left: 4px; }
.product-link span { transition: margin 0.15s ease; }

/* how it works */

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
}
.step {
    position: relative;
    padding: 26px 24px 24px;
    border-top: 2px solid var(--green);
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.85), transparent 70%);
}
.step-num {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 500;
    color: var(--gold-deep);
    display: block;
    margin-bottom: 8px;
}
.step h3 { font-size: 19px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* why yusr — dark band */

.section-why {
    background:
        radial-gradient(900px 420px at 12% 0%, rgba(233, 196, 106, 0.14), transparent 55%),
        var(--green-deep);
    color: var(--sand);
}
.section-why .section-title { color: var(--paper); }
.section-eyebrow-light { color: var(--gold); }

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.benefit-card {
    border: 1px solid rgba(247, 242, 233, 0.16);
    border-radius: var(--radius);
    padding: 24px 20px;
    background: rgba(247, 242, 233, 0.04);
}
.benefit-index {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 15px;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(233, 196, 106, 0.5);
    border-radius: 50%;
    margin-bottom: 14px;
}
.benefit-card h3 { font-size: 17.5px; color: var(--paper); }
.benefit-card p { font-size: 14px; color: rgba(247, 242, 233, 0.75); margin: 0; }

/* social proof */

.section-proof { padding: 48px 0; border-bottom: 1px solid var(--line); }
.proof-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 16px;
}
.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 26px;
}
.logo-row:last-child { margin-bottom: 0; }
.logo-chip {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15.5px;
    color: var(--ink-soft);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 20px;
}
.logo-chip-strong { color: var(--green); border-color: rgba(14, 68, 52, 0.35); }

/* who we serve */

.serve-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.serve-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 24px 26px;
}
.serve-card p { font-weight: 500; }
.serve-card a { font-weight: 600; text-decoration: none; }
.serve-built-for { font-weight: 600; margin-bottom: 14px; }
.segment-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.segment-tag {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
}
.serve-cta { margin-top: 8px; }

/* apply band */

.section-apply { background: var(--sand-deep); }
.apply-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

/* ---------------- lead form ---------------- */

.lead-form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px 28px;
    scroll-margin-top: 90px;
}
.lead-form-title { font-size: 24px; margin-bottom: 4px; }
.lead-form-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }

.lead-form > div { margin-bottom: 16px; }
.lead-form label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
}
.lead-form input,
.lead-form select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: var(--sand);
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.lead-form input:focus,
.lead-form select:focus {
    outline: none;
    border-color: var(--green);
    background: var(--paper);
}
.lead-form ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 13px;
    color: #a4392b;
}
.form-note { font-size: 12px; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }
.form-alert {
    background: #fbeeec;
    border: 1px solid rgba(164, 57, 43, 0.3);
    color: #a4392b;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
}

/* honeypot — hide from humans, keep in DOM for bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-success { text-align: center; padding: 28px 6px; }
.form-success-mark {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green);
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 14px;
}
.form-success h3 { font-size: 22px; }
.form-success p { color: var(--ink-soft); margin: 0; }

/* ---------------- FAQ ---------------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 22px;
}
.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    padding: 18px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    position: relative;
}
.faq-marker::before,
.faq-marker::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--gold-deep);
    transition: transform 0.2s ease;
}
.faq-marker::before { width: 14px; height: 2px; }
.faq-marker::after { width: 2px; height: 14px; }
.faq-item[open] .faq-marker::after { transform: rotate(90deg); }
.faq-item p { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; max-width: 64ch; }

/* cross-link */

.section-crosslink { padding: 0 0 72px; }
.crosslink {
    text-align: center;
    font-size: 16px;
    color: var(--ink-soft);
}
.crosslink a { font-weight: 600; margin-left: 6px; }

/* ---------------- footer ---------------- */

.site-footer {
    background: var(--green-deep);
    color: rgba(247, 242, 233, 0.8);
    padding: 56px 0 24px;
    margin-top: 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(247, 242, 233, 0.15);
}
.footer-brand .brand-mark { margin-bottom: 12px; }
.footer-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
    color: var(--paper);
    margin-bottom: 6px;
}
.footer-tagline { font-size: 14px; margin-bottom: 12px; }
.footer-legal { font-size: 12.5px; color: rgba(247, 242, 233, 0.55); }
.footer-col h4 {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin: 0 0 14px;
}
.footer-col a {
    display: block;
    color: rgba(247, 242, 233, 0.8);
    text-decoration: none;
    font-size: 14.5px;
    margin-bottom: 9px;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding-top: 20px; font-size: 12.5px; color: rgba(247, 242, 233, 0.5); }

/* ---------------- reveal animation ---------------- */

@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * {
        animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
    .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
    .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
    .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
    .hero-stats .stat-tile, .hero-form { animation: rise 0.8s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 920px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .stat-tile, .stat-tile:nth-child(2), .stat-tile:nth-child(3) { transform: none; }
    .benefit-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
    .apply-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .hero { padding: 44px 0 40px; }
    .section { padding: 52px 0; }
    .product-grid, .serve-grid, .benefit-grid, .hero-stats { grid-template-columns: 1fr; }
    .brand-group { display: none; }

    /* mobile nav */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
    }
    .nav-toggle span {
        width: 22px;
        height: 2px;
        background: var(--ink);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 14px 20px 20px;
        box-shadow: var(--shadow);
    }
    .nav-toggle-input:checked ~ .site-nav { display: flex; }
    .nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-link { padding: 9px 0; font-size: 16px; }
    .dropdown-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--sand);
        margin-top: 6px;
    }
    .nav-lang { align-self: flex-start; }
    .nav-cta { margin-top: 10px; }
}

/* ---------------- admin ---------------- */

.admin-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.admin-actions { display: flex; gap: 10px; }
.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.admin-filters select,
.admin-filters input {
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
}
.admin-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.badge { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.badge-sent { background: #e3f1e7; color: #1d6b3a; }
.badge-pending { background: #fdf3dd; color: #8a6116; }
.badge-failed { background: #fbeeec; color: #a4392b; }
.badge-skipped { background: var(--sand-deep); color: var(--ink-soft); }
.admin-pagination { display: flex; gap: 8px; margin-top: 20px; }
.admin-pagination a, .page-current { padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.page-current { background: var(--green); color: var(--gold); }

/* ---------------- brand mark image ---------------- */

.brand-mark-img { width: 34px; height: 34px; border-radius: 10px; align-self: center; }
.footer-brand .brand-mark-img { margin-bottom: 12px; }

/* ---------------- serve illustrations ---------------- */

.serve-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
}
.serve-grid-stacked { grid-template-columns: 1fr; }
.serve-illustration {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
@media (max-width: 920px) {
    .serve-layout { grid-template-columns: 1fr; gap: 32px; }
    .serve-illustration { order: -1; }
}

.form-success-banner {
    background: #e3f1e7;
    border: 1px solid rgba(29, 107, 58, 0.3);
    color: #1d6b3a;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
}
