/* ═══════════════════════════════════════════
   XPRESSLOANSUSA — SHARED STYLES
   Used by: all pages
═══════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────── */
:root {
  --g:      #00D46A;
  --gd:     #00A855;
  --g10:    rgba(0,212,106,.10);
  --ink:    #060E1C;
  --ink2:   #1A2740;
  --muted:  #5A6A88;
  --border: #E2EAF2;
  --white:  #fff;
  --off:    #F5F8FC;
  --nav-h:  80px;  /* increased for logo 372×128 — logo renders at height:52px */
  --sh:     0 4px 28px rgba(6,14,28,.07);
  --sh-lg:  0 20px 60px rgba(6,14,28,.12);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── RESET ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-body); background: #fff; color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; }
input, select, textarea { font-family: var(--font-body); }
img { max-width: 100%; display: block; }

/* ── NAV ────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 clamp(14px, 5%, 64px); gap: 1rem;
}
.nav-logo {
  font-family: var(--font-head); font-size: 1.22rem; font-weight: 800;
  letter-spacing: -.4px; white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center;
}
.nav-logo em { color: var(--g); font-style: normal; }
/* Logo image — original size 372×128, rendered at height:52px (width auto = ~150px) */
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-links { display: flex; align-items: center; gap: .05rem; list-style: none; margin-left: auto; }
.nav-links a {
  font-size: .82rem; font-weight: 500; color: var(--muted);
  padding: .42rem .7rem; border-radius: 8px;
  transition: color .15s, background .15s; white-space: nowrap; display: block;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--off); }
.nav-cta {
  background: var(--ink) !important; color: #fff !important;
  font-family: var(--font-head); font-weight: 700 !important;
  border-radius: 100px !important;
  transition: background .18s, transform .15s !important;
}
.nav-cta:hover { background: var(--g) !important; color: var(--ink) !important; transform: translateY(-1px); }
/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; margin-left: auto; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile menu */
.mob-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 499;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 10px 16px 18px; box-shadow: 0 10px 40px rgba(0,0,0,.07);
}
.mob-menu.open { display: block; }
.mob-menu a {
  display: block; padding: .75rem 1rem; font-size: .92rem;
  font-weight: 500; color: var(--ink); border-radius: 10px;
  transition: background .12s;
}
.mob-menu a:hover { background: var(--off); }
.mob-apply-btn {
  display: block; margin-top: 10px; background: var(--g);
  color: var(--ink) !important; font-family: var(--font-head);
  font-weight: 800; text-align: center; padding: .95rem;
  border-radius: 12px; font-size: .93rem;
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── FOOTER ─────────────────────────── */
footer {
  background: #060E1C; color: rgba(255,255,255,.35);
  padding: 2.2rem clamp(16px,5%,80px);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: .9rem;
}
.foot-logo { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: #fff; }
.foot-logo em { color: var(--g); font-style: normal; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { font-size: .76rem; cursor: pointer; transition: color .15s; }
.foot-links a:hover { color: #fff; }
.foot-copy {
  width: 100%; text-align: center; font-size: .73rem;
  padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.07); margin-top: .4rem;
}
.foot-disc {
  font-size: .68rem; color: rgba(255,255,255,.2); text-align: center;
  margin-top: .35rem; line-height: 1.55;
  max-width: 700px; margin-left: auto; margin-right: auto;
}

/* ── SHARED BUTTONS ─────────────────── */
.btn-main {
  background: var(--g); color: var(--ink);
  font-family: var(--font-head); font-size: .93rem; font-weight: 800;
  padding: .88rem 1.85rem; border-radius: 100px;
  box-shadow: 0 8px 28px rgba(0,212,106,.32);
  transition: all .2s; display: inline-block; cursor: pointer;
  border: none; text-decoration: none;
}
.btn-main:hover {
  background: var(--gd); color: #fff;
  transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0,212,106,.46);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  font-family: var(--font-head); font-size: .93rem; font-weight: 700;
  padding: .88rem 1.85rem; border-radius: 100px;
  border: 2px solid var(--border); transition: all .2s;
  display: inline-block; cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--ink); background: var(--off); }

/* ── SECTION HELPERS ────────────────── */
section { padding: clamp(56px,8vw,100px) clamp(16px,5%,80px); }
.sec-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .68rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gd); margin-bottom: .9rem;
}
.sec-tag::before { content: ''; width: 16px; height: 2px; background: var(--g); border-radius: 2px; }
.sec-title {
  font-family: var(--font-head); font-size: clamp(1.75rem,3.8vw,2.85rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: .7rem;
}
.sec-sub { font-size: clamp(.88rem,1.4vw,1rem); color: var(--muted); line-height: 1.72; }

/* ── SCROLL REVEAL ──────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .58s ease, transform .58s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }
.rev-l { opacity: 0; transform: translateX(-28px); transition: opacity .58s ease, transform .58s ease; }
.rev-l.vis { opacity: 1; transform: translateX(0); }
.rev-r { opacity: 0; transform: translateX(28px); transition: opacity .58s ease, transform .58s ease; }
.rev-r.vis { opacity: 1; transform: translateX(0); }

/* ── FAQ (shared between home + faq page) */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between;
  align-items: center; padding: 1.05rem 0;
  font-family: var(--font-head); font-size: .93rem; font-weight: 700;
  background: none; border: none; color: var(--ink); text-align: left; gap: 1rem;
}
.faq-arr {
  width: 24px; height: 24px; border-radius: 50%; background: var(--off);
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; flex-shrink: 0; transition: transform .22s, background .18s;
}
.faq-item.open .faq-arr { transform: rotate(45deg); background: var(--g); color: var(--ink); }
.faq-a { display: none; padding: 0 0 .95rem; font-size: .86rem; color: var(--muted); line-height: 1.68; }
.faq-item.open .faq-a { display: block; }

/* ── DOC PAGES (Privacy / Terms) ────── */
.doc-page { padding-top: var(--nav-h); min-height: 100vh; background: #fff; }
.doc-wrap { max-width: 740px; margin: 0 auto; padding: 56px 20px 76px; }
.doc-wrap h1 { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; letter-spacing: -1px; margin-bottom: .45rem; }
.doc-meta { font-size: .78rem; color: var(--muted); margin-bottom: 2.2rem; padding-bottom: 1.3rem; border-bottom: 1.5px solid var(--border); }
.doc-wrap h2 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; margin: 1.9rem 0 .65rem; }
.doc-wrap p { font-size: .88rem; color: var(--muted); line-height: 1.75; margin-bottom: .9rem; }
.doc-wrap ul { padding-left: 1.35rem; margin-bottom: .9rem; }
.doc-wrap ul li { font-size: .88rem; color: var(--muted); line-height: 1.72; margin-bottom: .38rem; }
.doc-wrap a { color: var(--gd); text-decoration: underline; }
