/* Startup list pages (/lists/<slug>/) + index (/lists/). Uses semantic theme
   tokens only — works in light + dark by default. Logos sit on logo-tile tokens. */

/* Clear the fixed site nav (nav.css: nav{position:fixed;top:0}, ~64px tall). */
main { background: var(--navy); color: var(--white); padding-top: 64px; }

.lp-inner { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Hero ---------------------------------------------------------------- */
.lp-hero { padding: 3rem 0 1.75rem; }
.lp-breadcrumb {
  position: static; inset: auto; z-index: auto;
  padding: 0; background: none; border: 0;
  font-size: 0.8125rem; color: var(--text-lighter); margin-bottom: 1.5rem;
}
.lp-breadcrumb a { color: var(--text-light); text-decoration: none; }
.lp-breadcrumb a:hover { color: var(--blue); }
.lp-breadcrumb .sep { margin: 0 0.4rem; opacity: 0.55; }

.lp-eyebrow { color: var(--eyebrow); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.lp-hero h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.5vw, 3.1rem); font-weight: 750; line-height: 1.05; letter-spacing: -0.02em; margin: 0.6rem 0 1.1rem; }
.lp-intro { font-size: 1.125rem; color: var(--text-light); max-width: 780px; line-height: 1.6; }

/* KPI row */
.lp-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 2.25rem 0 1rem; border: 1px solid var(--border-light); border-radius: 14px; overflow: hidden; background: var(--navy-light); }
.lp-stat { flex: 1 1 0; min-width: 140px; display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem 1.4rem; border-right: 1px solid var(--border-light); }
.lp-stat:last-child { border-right: 0; }
.lp-stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 750; line-height: 1; letter-spacing: -0.01em; }
.lp-stat-label { font-size: 0.75rem; color: var(--text-lighter); text-transform: uppercase; letter-spacing: 0.05em; }
.lp-updated { font-size: 0.8125rem; color: var(--text-lighter); margin-top: 0.85rem; }
.lp-updated a, .lp-src { color: var(--blue); text-decoration: none; }

/* ---- Logo strip ---------------------------------------------------------- */
.lp-strip-wrap { padding: 0.5rem 0 1.75rem; }
.lp-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.lp-strip-logo { width: 52px; height: 52px; border-radius: 11px; background: var(--logo-tile-bg); border: 1px solid var(--logo-tile-border); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform 0.12s ease; }
.lp-strip-logo:hover { transform: translateY(-2px); }
.lp-strip-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }

/* ---- Table --------------------------------------------------------------- */
.lp-table-wrap { padding: 0 0 3rem; }
.lp-table { width: 100%; border-collapse: collapse; }
.lp-table thead th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-lighter); font-weight: 600; padding: 0 0.85rem 0.75rem; border-bottom: 1px solid var(--border-light); }
.lp-th-rank { width: 3rem; }
.lp-th-founded { width: 5rem; }
.lp-th-fund { text-align: right; width: 9rem; }
.lp-table tbody tr { border-bottom: 1px solid var(--border-light); transition: background 0.12s ease; }
.lp-table tbody tr:hover { background: var(--navy-light); }
.lp-table td { padding: 1rem 0.85rem; vertical-align: middle; font-variant-numeric: tabular-nums; }

.lp-rank { width: 3rem; }
.lp-rank-num { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; font-weight: 700; font-size: 0.95rem; color: var(--text-lighter); }
.lp-table tbody tr:nth-child(-n+3) .lp-rank-num { color: var(--blue); }

.lp-co { display: flex; align-items: center; gap: 1rem; }
.lp-logo { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 11px; background: var(--logo-tile-bg); border: 1px solid var(--logo-tile-border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lp-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.lp-logo-fallback { position: absolute; font-weight: 700; color: var(--text-light); font-size: 1.1rem; }
.lp-logo.is-fallback img { display: none; }

.lp-co-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.lp-name-row { display: flex; align-items: center; gap: 0.55rem; }
.lp-name { font-weight: 700; font-size: 1.0625rem; color: var(--white); text-decoration: none; letter-spacing: -0.01em; }
.lp-name:hover { color: var(--blue); }
.lp-tagline {
  font-size: 0.875rem; color: var(--text-light); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 52ch;
}

.lp-founded { color: var(--text-lighter); font-size: 0.9rem; }
.lp-loc { color: var(--text-light); font-size: 0.9rem; white-space: nowrap; }

.lp-fund { text-align: right; position: relative; }
.lp-fund-val { font-weight: 700; font-size: 1rem; display: block; }
.lp-fund-bar { position: absolute; right: 0.85rem; bottom: 0.55rem; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--blue)); max-width: 7rem; opacity: 0.55; }

.lp-badge { font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.03em; }
.lp-badge.unicorn { background: var(--mint-soft); color: var(--blue); }
.lp-badge.thoroughbred { background: var(--mint-soft); color: var(--teal); }
.lp-badge.colt { background: var(--mint-soft); color: var(--text-light); }
.lp-badge.rising { background: var(--mint-soft); color: var(--teal); }

.lp-signal-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; padding: 0.15rem 0.45rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: var(--navy-lighter, rgba(255,255,255,0.08)); color: var(--text-lighter); border: 1px solid var(--border-light); letter-spacing: 0.02em; }

/* ---- CTA ----------------------------------------------------------------- */
.lp-cta { border-top: 1px solid var(--border-light); }
.lp-cta .lp-inner { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.lp-cta h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.lp-cta p { color: var(--text-light); max-width: 560px; margin-bottom: 1.25rem; }

/* ---- Index grid ---------------------------------------------------------- */
.ll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; padding-bottom: 3rem; }
.ll-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.4rem; border: 1px solid var(--border-light); border-radius: 14px; background: var(--navy-light); text-decoration: none; color: inherit; transition: transform 0.12s ease, border-color 0.12s ease; }
.ll-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.ll-card-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-lighter); }
.ll-card-title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 650; }
.ll-card-cta { font-size: 0.8125rem; color: var(--blue); margin-top: 0.4rem; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .ll-grid { grid-template-columns: 1fr; }
  .lp-stat { flex-basis: 50%; border-bottom: 1px solid var(--border-light); }
  .lp-th-founded, .lp-founded, .lp-th-fund + th, .lp-loc { display: none; }
  .lp-table thead th:nth-child(4) { display: none; }
  .lp-tagline { -webkit-line-clamp: 1; }
  .lp-strip-logo { width: 44px; height: 44px; }
}
