/* /funded public proof page styles */

/* ── Base ──────────────────────────────────────────────────────────────────── */
.funded-page {
  background: #0f1629;
  color: #e5e7eb;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 80px;
}

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.funded-nav {
  background: #0f1629;
  border-bottom: 1px solid #1e2e4a;
  position: sticky;
  top: 0;
  z-index: 100;
}
.funded-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.funded-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 15px;
}
.btn-primary-sm {
  background: #f59e0b;
  color: #0f1629;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-primary-sm:hover { background: #d97706; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.funded-hero {
  background: linear-gradient(135deg, #0f1629 0%, #1a2540 100%);
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid #1e2e4a;
}
.funded-hero-inner { max-width: 700px; margin: 0 auto; }
.funded-badge {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.funded-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 16px;
}
.funded-sub {
  color: #8899aa;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 36px;
}

/* ── Totals counter ────────────────────────────────────────────────────────── */
.funded-totals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid #1e2e4a;
  border-radius: 12px;
  padding: 24px 32px;
  max-width: 520px;
  margin: 0 auto;
}
.funded-total-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.funded-total-number {
  font-size: 28px;
  font-weight: 700;
  color: #f59e0b;
  font-family: 'DM Serif Display', serif;
}
.funded-total-label {
  font-size: 11px;
  color: #8899aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.funded-total-divider {
  width: 1px;
  height: 40px;
  background: #1e2e4a;
  margin: 0 8px;
}

/* ── Filters bar ───────────────────────────────────────────────────────────── */
.funded-filters-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.funded-filters-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.funded-filter-select {
  background: #1a2540;
  border: 1px solid #2a3a5c;
  color: #e5e7eb;
  border-radius: 6px;
  padding: 7px 28px 7px 10px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  appearance: auto;
}
.funded-filter-clear {
  color: #8899aa;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.funded-count {
  font-size: 13px;
  color: #8899aa;
}

/* ── Deal grid ─────────────────────────────────────────────────────────────── */
.funded-grid-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.funded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.funded-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #8899aa;
  padding: 48px 0;
  font-size: 15px;
}
.funded-empty a { color: #f59e0b; }

/* ── Deal card ─────────────────────────────────────────────────────────────── */
.funded-card {
  background: #1a2540;
  border: 1px solid #2a3a5c;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s, transform 0.15s;
}
.funded-card:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
}
.funded-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.funded-card-industry {
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.funded-card-state {
  font-size: 12px;
  color: #8899aa;
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 4px;
}
.funded-card-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: #fff;
  line-height: 1;
}
.funded-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.funded-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #8899aa;
}
.funded-type-badge {
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
}
.funded-type-rbf  { background: rgba(139,92,246,0.15); color: #a78bfa; }
.funded-type-term { background: rgba(34,197,94,0.12);  color: #4ade80; }
.funded-type-loc  { background: rgba(59,130,246,0.12); color: #60a5fa; }
.funded-card-quote {
  font-size: 13px;
  color: #b0bfcc;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid #f59e0b;
  border-radius: 0 6px 6px 0;
}
.funded-card-story-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  text-decoration: none;
  transition: color 0.15s, gap 0.15s;
}
.funded-card-story-link:hover { color: #fcd34d; }

/* ── Sticky CTA ────────────────────────────────────────────────────────────── */
.funded-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f1629;
  border-top: 1px solid #1e2e4a;
  z-index: 50;
  padding: 14px 24px;
}
.funded-sticky-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.funded-sticky-text {
  font-size: 14px;
  color: #8899aa;
}

/* ── Hero carousel (embedded in landing layout) ────────────────────────────── */
.funded-carousel-section {
  padding: 0 0 32px;
  overflow: hidden;
}
.funded-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.funded-carousel-label {
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.funded-carousel-link {
  font-size: 12px;
  color: #8899aa;
  text-decoration: none;
}
.funded-carousel-link:hover { color: #f59e0b; }
.funded-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  cursor: grab;
}
.funded-carousel-track::-webkit-scrollbar { display: none; }
.funded-carousel-track.is-animating {
  transition: scroll-left 0.4s ease;
}
.funded-carousel-slide {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.05);
  border: 1px solid #2a3a5c;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s;
  user-select: none;
}
.funded-carousel-slide:hover { border-color: rgba(245,158,11,0.5); }
.funded-carousel-slide .cs-industry {
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.funded-carousel-slide .cs-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: #fff;
  line-height: 1;
}
.funded-carousel-slide .cs-meta {
  font-size: 11px;
  color: #8899aa;
}
.funded-carousel-slide .cs-quote {
  font-size: 11px;
  color: #9aabb8;
  font-style: italic;
  line-height: 1.45;
  border-left: 2px solid rgba(245,158,11,0.4);
  padding-left: 8px;
  margin: 0;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .funded-hero { padding: 40px 16px 32px; }
  .funded-totals { flex-direction: column; gap: 16px; padding: 20px; }
  .funded-total-divider { width: 60px; height: 1px; margin: 0; }
  .funded-filters-bar { padding: 16px 16px 8px; }
  .funded-grid-section { padding: 0 16px 40px; }
  .funded-grid { grid-template-columns: 1fr; }
  .funded-sticky-text { display: none; }
  .funded-carousel-slide { flex: 0 0 180px; }
}
