/* =============================================================================
   Lendspedia — Tech layer (Nov 2026)
   -----------------------------------------------------------------------------
   ADDITIVE OVERRIDE. Loaded AFTER css/increase-theme.css on index.html only.
   Revert = delete the <link> to this file from index.html.

   What it does:
     - introduces a mono/sans type pairing (JetBrains Mono + existing Inter)
     - swaps supporting type (eyebrows, section labels, kickers, microcopy,
       stat numbers) to mono for a developer-tool feel
     - adds a subtle dotted-grid background behind #hero only
     - leaves the H1, buttons, palette, bento, and quiz placement untouched

   After increase.com's structural type treatment, translated to Lendspedia's
   light theme and quiz-first conversion stance. Headline stays sans because
   on a consumer finance site the big sans H1 converts; the tech signal is
   carried by everything around it.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* === 1. DOTTED GRID BEHIND THE HOMEPAGE HERO ================================
   A single pixel dot every 24px, at ~6% opacity against the hero background.
   Masked to fade out near the bottom so it never fights the phone cluster.
   ============================================================================ */
#hero { position: relative; isolation: isolate; }

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(11,18,32,0.08) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 55%, transparent 85%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 55%, transparent 85%);
  pointer-events: none;
}

/* .ribbons is already position: absolute in aave-theme — do NOT set position
   here or it starts taking vertical space and pushes the hero content below
   the fold. The container just needs its own stacking context above ::before. */
#hero .container { position: relative; z-index: 1; }

/* === 2. HERO EYEBROW ========================================================
   Small mono tag above the H1. Sits in the same visual slot Increase uses for
   "BANKING AS A SERVICE". Truthful framing only — we are a marketplace. */
.hero-tech-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peri-ink, #045b54);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-tech-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint, #31F2BF);
  box-shadow: 0 0 0 3px rgba(49,242,191,0.22);
  flex: 0 0 auto;
}

/* === 3. SUPPORTING TYPE → MONO =============================================
   Eyebrows, section labels, kickers, step metadata, chips, microcopy, and
   small footnotes. These are the places where the mono signal reads loudest
   without touching reading flow. */
.section-label,
.hero-eyebrow,
.urgency-badge,
.bento-card-kicker,
.bento-step-meta,
.cta-microcopy,
.ps-eyebrow,
.ps-chips span,
.research-source,
.research-label,
.bento-pay-rate,
.bento-pay-badge,
.bento-fineprint,
.bento-note,
.fund-disclosure,
.disclaimer,
.footer-copy,
#final-cta .urgency-badge,
.answer-box .answer-label {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* Section labels and urgency badge wear it the loudest. */
.section-label,
.hero-eyebrow,
.urgency-badge,
.bento-card-kicker,
.ps-eyebrow,
.answer-box .answer-label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Microcopy and footnotes stay case-sensitive — too much upper reads shouty. */
.cta-microcopy,
.research-source,
.research-label,
.bento-step-meta,
.bento-pay-rate,
.bento-pay-badge,
.bento-fineprint,
.bento-note,
.fund-disclosure,
.disclaimer,
.footer-copy {
  letter-spacing: 0.02em;
  text-transform: none;
}

/* === 4. STAT NUMBERS → MONO TABULAR ========================================
   Research cards and the illustrative payment amount. Tabular figures so the
   digits line up column-wise like a status page. */
.research-stat,
.bento-pay-amount .bento-odo,
.bento-pay-rate .bento-rate {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

/* === 5. NAV SECONDARY TEXT ==================================================
   The small "Loan Marketplace" line under the nav logo gets the mono tag
   treatment so the brand mark itself reads as a product name + descriptor. */
.nav-logo-text > span {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === 6. QUICKSTART CHIPS, LOAN-TYPE NAV =====================================
   Small meta links in the hero and bento get mono styling to feel like tags
   rather than buttons. Keep colors and sizes from the base theme. */
.hero-quickstart a,
.bento-loan-links a,
.bento-loan-links span {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.hero-quickstart-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peri-ink, #045b54);
  opacity: 0.85;
}

/* === 7. SMALL-SCREEN TIGHTENING ============================================ */
@media (max-width: 640px) {
  #hero::before {
    background-size: 20px 20px;
  }
  .hero-tech-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}
