:root {
  --bg: #040b0e;
  --ink: #f0f6f0;
  --muted: #8aab9a;
  --surface: rgba(6, 16, 12, 0.88);
  --surface-strong: #0a1810;
  --line: rgba(0, 220, 80, 0.12);
  --emerald: #0a2418;
  --emerald-deep: #061410;
  --gold: var(--green);
  --rust: #d86a52;
  --navy: #5adfaa;
  --electric: #00ff6a;
  --green: #00ff6a;
  --green-strong: #00cc55;
  --green-glow: rgba(0, 255, 106, 0.18);
  --shadow: 0 28px 90px rgba(0, 8, 4, 0.55);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

/* Onyx Group product-system alignment */
body.marketing-page {
  --onyx-ink: #11110f;
  --onyx-paper: #f5f3ee;
  --onyx-gold: #d5a22c;
  --onyx-green: #169f70;
  color: var(--onyx-ink);
  background: var(--onyx-paper);
  font-family: Arial, Helvetica, sans-serif;
}

.marketing-page .lending-site-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(17,17,15,.18);
  background: rgba(245,243,238,.96);
  box-shadow: none;
}

.marketing-page .lst-nav a,
.marketing-page .lst-btn-ghost,
.marketing-page .lst-btn-outline { color: var(--onyx-ink); border-color: rgba(17,17,15,.3); }
.marketing-page .lst-nav a:hover { color: var(--onyx-green); }
.marketing-page .lst-btn-cta,
.marketing-page .lst-btn-primary { border-radius: 0; background: var(--onyx-ink); color: var(--onyx-paper); }
.marketing-page .lst-btn-secondary { border-radius: 0; background: transparent; color: var(--onyx-ink); border-color: var(--onyx-ink); }
.marketing-page .lst-hero { max-width: none; min-height: 720px; padding: 96px clamp(20px,8vw,130px); background: var(--onyx-ink); color: var(--onyx-paper); }
.marketing-page .lst-hero-copy h1,
.marketing-page .lst-section-heading,
.marketing-page .lst-solution-inner h2,
.marketing-page .lst-cinematic-copy h2,
.marketing-page .lst-cta-section h2 { font-family: Impact, Arial Black, sans-serif; letter-spacing: 0; }
.marketing-page .lst-eyebrow { color: var(--onyx-gold); }
.marketing-page .lst-hero-lead,
.marketing-page .lst-tagline { color: rgba(245,243,238,.76); }
.marketing-page .lst-dashboard { border-radius: 0; border-color: rgba(255,255,255,.18); background: #20201c; box-shadow: none; }
.marketing-page .lst-dash-card,
.marketing-page .lst-dash-profile { border-radius: 0; background: #2b2b26; border-color: rgba(255,255,255,.12); }
.marketing-page .lst-section { max-width: none; padding: 110px clamp(20px,8vw,130px); }
.marketing-page .lst-solution-band,
.marketing-page .lst-quote-band { border-radius: 0; background: var(--onyx-gold); color: var(--onyx-ink); }
.marketing-page .lst-feature-row,
.marketing-page .lst-problem-layout { max-width: 1440px; margin-inline: auto; }
.marketing-page .lst-feature-photo,
.marketing-page .lst-cinematic-band { border-radius: 0; }
.marketing-page .lst-feature-badge { border-radius: 0; background: var(--onyx-gold); color: var(--onyx-ink); }
.marketing-page .lst-feature-pair-card,
.marketing-page .lst-audience-card { border-radius: 0; border-color: rgba(17,17,15,.2); background: transparent; }
.marketing-page .lst-cinematic-band::after { background: rgba(17,17,15,.64); }
.marketing-page .lst-cta-section { border-radius: 0; background: var(--onyx-ink); }
.marketing-page .lst-footer { border-radius: 0; background: var(--onyx-paper); color: var(--onyx-ink); border-top: 1px solid rgba(17,17,15,.18); }

.marketing-page .lst-dash-title { color: rgba(245,243,238,.72); }

/* Hero buttons sit on the ink hero: light primary, outlined secondary. */
.marketing-page .lst-hero .lst-btn-primary { background: var(--onyx-paper); color: var(--onyx-ink); border-color: var(--onyx-paper); }
.marketing-page .lst-hero .lst-btn-primary:hover { background: var(--onyx-gold); border-color: var(--onyx-gold); }
.marketing-page .lst-hero .lst-btn-secondary { color: var(--onyx-paper); border-color: rgba(245,243,238,.6); }
.marketing-page .lst-hero .lst-btn-secondary:hover { border-color: var(--onyx-paper); background: rgba(245,243,238,.08); }

/* Menu: the wrapper only matters on phones. */
.lst-menu { display: contents; }
.lst-toggle-bars,
.lst-toggle-bars::before,
.lst-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.lst-toggle-bars { position: relative; }
.lst-toggle-bars::before,
.lst-toggle-bars::after { content: ""; position: absolute; left: 0; }
.lst-toggle-bars::before { top: -6px; }
.lst-toggle-bars::after { top: 6px; }
.is-menu-open .lst-toggle-bars { background: transparent; }
.is-menu-open .lst-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.is-menu-open .lst-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.marketing-page .lst-toggle { color: var(--onyx-ink); border: 1px solid rgba(17,17,15,.3); border-radius: 0; background: transparent; }

@media (max-width: 760px) {
  .marketing-page .lst-hero, .marketing-page .lst-section { padding: 72px 18px; }
}

/* Small phones (360px): the hero's dashboard preview must shrink with the screen. */
@media (max-width: 420px) {
  .marketing-page .lst-dashboard { padding: 14px; }
  .marketing-page .lst-dash-profile { grid-template-columns: minmax(0, 1fr); }
  .marketing-page .lst-dash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .marketing-page .lst-dash-profile > *, .marketing-page .lst-dash-grid > * { min-width: 0; }
}

/* Below 1080px the full bar doesn't fit (links and buttons wrap), so the menu moves behind the ☰ button. */
@media (max-width: 1080px) {
  .marketing-page .lending-site-topbar { grid-template-columns: 1fr auto; padding: 10px clamp(16px, 4vw, 36px); gap: 12px; }
  .marketing-page .lst-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }
  .marketing-page .lst-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 16px;
    padding: 12px clamp(16px, 4vw, 36px) 20px;
    background: var(--onyx-paper);
    border-bottom: 1px solid rgba(17,17,15,.18);
    box-shadow: 0 18px 36px rgba(17,17,15,.18);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  .marketing-page .is-menu-open .lst-menu { display: flex; }
  .marketing-page .lst-nav { display: flex; position: static; flex-direction: column; gap: 0; padding: 0; background: none; border: 0; }
  .marketing-page .lst-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid rgba(17,17,15,.12); font-size: 1rem; }
  .marketing-page .lst-nav a:hover { background: none; }
  .marketing-page .lst-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .marketing-page .lst-actions a { justify-content: center; min-height: 44px; border-radius: 0; }
  .marketing-page .lst-actions .lst-btn-cta { grid-column: 1 / -1; }
}

/* ── Logo image helpers ─────────────────────────────────────────────────── */
.topbar-logo-img,
.brand-logo-img,
.lending-brand-logo,
.sidebar-brand-logo {
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.topbar-logo-img {
  height: 44px;
  width: auto;
  max-width: 200px;
}

.brand-logo-img,
.lending-brand-logo {
  height: 88px;
  width: auto;
  max-width: 280px;
  margin-bottom: 16px;
  border-radius: 10px;
}

.sidebar-brand-logo {
  height: 60px;
  width: auto;
  max-width: 200px;
  margin-bottom: 10px;
  border-radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 255, 106, 0.10), transparent 22%),
    radial-gradient(circle at right top, rgba(0, 180, 80, 0.08), transparent 24%),
    linear-gradient(180deg, #03080a 0%, #060e0a 48%, #040b0e 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  min-width: 0;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: start center;
  padding: 20px 16px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.static-marketing-screen {
  position: relative;
  inset: auto;
  display: grid;
  min-height: 100vh;
  padding: 20px 16px 28px;
}

body.show-login .login-screen {
  display: grid;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 14%, rgba(0, 255, 106, 0.12), transparent 20%),
    radial-gradient(circle at 86% 20%, rgba(0, 200, 80, 0.09), transparent 18%),
    linear-gradient(135deg, rgba(3, 8, 5, 0.98), rgba(5, 14, 8, 0.96)),
    #040b06;
}

.login-hero {
  position: relative;
  width: min(1160px, 100%);
  margin: auto 0;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(13, 21, 34, 0.94), rgba(8, 14, 24, 0.98)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(190, 207, 229, 0.12);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.38);
}

.marketing-page .login-hero,
body.show-login .login-hero {
  backdrop-filter: blur(16px);
}

.lending-marketing-shell {
  max-width: 1240px;
}

.marketing-topbar,
.marketing-hero,
.access-grid,
.showcase-grid,
.split-band,
.deployment-grid,
.cta-band,
.marketing-footer {
  display: grid;
  gap: 20px;
}

.marketing-topbar {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 8px 6px 18px;
  border-bottom: 1px solid rgba(190, 207, 229, 0.08);
}

.marketing-brand strong,
.marketing-section h2,
.product-card h3,
.deployment-card h3 {
  color: #fbf8f2;
  font-family: Georgia, "Times New Roman", serif;
}

.marketing-brand strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
  display: block;
}

.marketing-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(190, 207, 229, 0.08);
}

.marketing-nav a {
  color: rgba(223, 232, 244, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.marketing-nav a:hover {
  color: #fbf8f2;
  background: rgba(0, 255, 106, 0.09);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.marketing-hero {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: start;
  margin-top: 24px;
}

.lending-hero {
  gap: 24px;
}

.workspace-entry-shell {
  max-width: 1240px;
}

.workspace-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.workspace-entry-copy {
  display: grid;
  gap: 18px;
}

.workspace-stat-row {
  margin-top: 8px;
}

.workspace-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workspace-tenant-panel {
  position: relative;
  z-index: 1;
}

.workspace-story-panel {
  min-height: 320px;
}

.workspace-story-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workspace-footer {
  margin-top: 26px;
}

.marketing-stat-row,
.product-grid {
  display: grid;
  gap: 16px;
}

.marketing-stat-row {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-actions {
  margin-top: 24px;
}

.marketing-stat {
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 29, 43, 0.88), rgba(13, 21, 33, 0.94));
  border: 1px solid rgba(190, 207, 229, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.marketing-stat strong {
  display: block;
  margin-bottom: 8px;
  color: #fff9ef;
}

.marketing-stat span {
  color: rgba(219, 228, 240, 0.72);
  line-height: 1.55;
}

.marketing-section {
  margin-top: 34px;
}

.section-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-copy.narrow {
  max-width: 760px;
}

.lead-compact {
  margin: 0;
  max-width: 760px;
  color: rgba(218, 229, 242, 0.74);
  line-height: 1.65;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-stage,
.access-grid {
  display: grid;
  gap: 18px;
}

.marketing-stage {
  align-self: stretch;
}

.stage-copy-card,
.stage-visual-card,
.showcase-card,
.access-story-card,
.mini-card {
  border-radius: 24px;
  border: 1px solid rgba(190, 207, 229, 0.1);
}

.stage-copy-card,
.access-story-card {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(215, 165, 82, 0.12), transparent 46%),
    linear-gradient(180deg, rgba(14, 24, 37, 0.94), rgba(10, 17, 27, 0.98));
  color: rgba(228, 236, 247, 0.8);
}

.stage-copy-card h2,
.access-story-card h3,
.showcase-card strong,
.visual-chip {
  color: #fbf8f2;
  font-family: Georgia, "Times New Roman", serif;
}

.stage-copy-card h2,
.access-story-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.stage-visual-card {
  padding: 12px;
  background: linear-gradient(180deg, rgba(12, 21, 33, 0.94), rgba(8, 15, 24, 0.98));
  overflow: hidden;
}

.marketing-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-band {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(11, 18, 29, 0.9), rgba(8, 15, 24, 0.96));
  border: 1px solid rgba(190, 207, 229, 0.08);
}

.split-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(190, 207, 229, 0.1);
  background: linear-gradient(180deg, rgba(14, 23, 35, 0.92), rgba(9, 16, 25, 0.98));
  color: rgba(223, 231, 241, 0.78);
}

.split-card h3 {
  margin: 0 0 12px;
  color: #fff9ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.highlight-card {
  background:
    linear-gradient(140deg, rgba(215, 165, 82, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(17, 27, 40, 0.96), rgba(10, 16, 25, 1));
}

.showcase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.showcase-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(16, 25, 38, 0.96), rgba(10, 17, 27, 0.98));
  color: rgba(223, 231, 241, 0.78);
}

.showcase-visual,
.showcase-image {
  height: 184px;
  margin-bottom: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-image {
  width: 100%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.borrower-scene {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(145deg, rgba(219, 165, 74, 0.22), transparent 42%),
    radial-gradient(circle at 72% 74%, rgba(63, 201, 172, 0.24), transparent 22%),
    linear-gradient(135deg, rgba(10, 50, 43, 0.96), rgba(15, 41, 62, 0.92));
}

.risk-scene {
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(150deg, rgba(219, 165, 74, 0.18), transparent 36%),
    radial-gradient(circle at 28% 72%, rgba(13, 107, 87, 0.28), transparent 20%),
    linear-gradient(135deg, rgba(8, 28, 46, 0.98), rgba(13, 67, 79, 0.92));
}

.collections-scene {
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.14), transparent 16%),
    linear-gradient(145deg, rgba(17, 47, 69, 0.18), transparent 42%),
    radial-gradient(circle at 22% 72%, rgba(219, 165, 74, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(8, 25, 35, 0.96), rgba(10, 60, 54, 0.92));
}

.product-card,
.deployment-card,
.feature-slab {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card,
.deployment-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(13, 22, 34, 0.94), rgba(8, 15, 24, 1));
  color: rgba(223, 231, 241, 0.78);
}

.product-card h3,
.deployment-card h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.product-card p,
.deployment-card p {
  line-height: 1.65;
}

.visual-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 16px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.product-visual {
  height: 190px;
  margin-bottom: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.product-visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 12, 21, 0.08), rgba(6, 12, 21, 0.66)),
    linear-gradient(90deg, rgba(7, 14, 24, 0.08), rgba(7, 14, 24, 0.28));
}

.lending-visual {
  background:
    linear-gradient(140deg, rgba(219, 165, 74, 0.22), transparent 48%),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.18), transparent 20%),
    radial-gradient(circle at 78% 72%, rgba(13, 107, 87, 0.35), transparent 26%),
    linear-gradient(135deg, rgba(9, 63, 52, 0.88), rgba(17, 47, 69, 0.92));
}

.insights-visual {
  background:
    linear-gradient(160deg, rgba(17, 47, 69, 0.18), transparent 40%),
    radial-gradient(circle at 28% 68%, rgba(219, 165, 74, 0.26), transparent 18%),
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.14), transparent 16%),
    linear-gradient(135deg, rgba(7, 26, 46, 0.96), rgba(10, 74, 95, 0.92));
}

.tenant-visual {
  background:
    linear-gradient(150deg, rgba(219, 165, 74, 0.2), transparent 36%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.16), transparent 18%),
    radial-gradient(circle at 26% 78%, rgba(13, 107, 87, 0.3), transparent 20%),
    linear-gradient(135deg, rgba(8, 33, 49, 0.96), rgba(8, 64, 54, 0.92));
}

.marketing-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(255, 249, 239, 0.78);
  line-height: 1.65;
}

.marketing-list li + li {
  margin-top: 8px;
}

.feature-slab {
  padding: 26px;
  background: linear-gradient(180deg, rgba(11, 19, 31, 0.92), rgba(8, 15, 24, 0.98));
}

.access-grid {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
}

.access-story-card h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

.mini-rail {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-card {
  padding: 16px;
  background: linear-gradient(180deg, rgba(18, 27, 40, 0.94), rgba(10, 17, 27, 0.98));
  color: rgba(223, 231, 241, 0.76);
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
  color: #fff9ef;
}

.mini-card code {
  color: #ffe6b1;
}

.deployment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(215, 165, 82, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(16, 25, 38, 0.96), rgba(10, 16, 25, 1));
  border: 1px solid rgba(190, 207, 229, 0.1);
}

.marketing-footer {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 20px 10px 0;
  color: rgba(197, 209, 224, 0.68);
}

.login-copy h1,
.sidebar h1,
.hero h2,
.panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.login-copy h1 {
  color: #fff9ef;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--green);
}

.lead,
.subtitle,
.hero-copy,
.helper-copy,
.muted,
.sidebar-card p,
.feature-card p {
  line-height: 1.58;
  color: var(--muted);
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: rgba(232, 239, 247, 0.84);
}

.login-actions {
  margin-top: 26px;
}

.feature-marquee,
.metric-grid,
.panel-grid,
.card-list,
.list-stack,
.tenant-lookup-form,
.tenant-credential-form,
.tenant-audience-selector,
.tenant-quick-start {
  display: grid;
  gap: 14px;
}

.feature-marquee {
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tenant-login-panel {
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(13, 22, 34, 0.96), rgba(8, 15, 24, 1));
  border: 1px solid rgba(190, 207, 229, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.tenant-lookup-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.tenant-quick-start {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(190, 207, 229, 0.1);
  background: rgba(13, 22, 34, 0.72);
}

.quick-start-label {
  color: rgba(230, 237, 246, 0.72);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.quick-tenant-btn {
  justify-self: end;
}

.tenant-audience-selector {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-btn {
  appearance: none;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(190, 207, 229, 0.12);
  background: rgba(11, 18, 28, 0.84);
  color: rgba(223, 231, 241, 0.74);
  text-align: center;
  cursor: pointer;
  transition: 160ms ease;
}

.audience-btn:hover,
.audience-btn.is-active {
  color: #0b1320;
  background: linear-gradient(135deg, #ddb56b, #c88e2f);
  border-color: rgba(221, 181, 107, 0.42);
  box-shadow: 0 16px 40px rgba(200, 142, 47, 0.18);
}

.session-switch-notice {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(213, 162, 44, 0.45);
  background: rgba(213, 162, 44, 0.1);
  color: #f5f1ea;
}
.session-switch-notice[hidden] { display: none; }
.session-switch-notice p { margin: 0 0 12px; line-height: 1.5; }
.session-switch-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tenant-audience-summary {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(190, 207, 229, 0.1);
  background: linear-gradient(180deg, rgba(15, 24, 37, 0.96), rgba(9, 16, 25, 1));
}

.tenant-audience-summary strong {
  display: block;
  margin-bottom: 8px;
  color: #fbf8f2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.tenant-credential-form[hidden] {
  display: none;
}

.tenant-credential-form {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.tenant-credential-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 249, 239, 0.84);
  font-size: 0.95rem;
}

#tenantPasswordSubmit {
  align-self: end;
}

.feature-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(14, 24, 37, 0.94), rgba(9, 16, 25, 0.98));
  color: #fff9ef;
}

.marketing-page .ghost-link,
.marketing-page .footer-links a,
.marketing-page .topbar-actions a {
  color: rgba(224, 233, 244, 0.82);
  text-decoration: none;
}

.marketing-page .ghost-link:hover,
.marketing-page .footer-links a:hover,
.marketing-page .topbar-actions a:hover {
  color: #fbf8f2;
}

.marketing-page .primary-btn {
  background: linear-gradient(135deg, #ddb56b, #c88e2f);
  color: #111827;
  box-shadow: 0 16px 40px rgba(200, 142, 47, 0.24);
}

.marketing-page .secondary-btn {
  color: #e4ecf6;
  background: rgba(121, 149, 192, 0.12);
  border: 1px solid rgba(171, 192, 226, 0.14);
}

.marketing-page .secondary-btn:hover,
.marketing-page .primary-btn:hover {
  transform: translateY(-2px);
}

.lending-dashboard {
  display: grid;
  gap: 14px;
}

.hero-media-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.hero-photo-panel,
.hero-dashboard-panel,
.story-image-panel,
.mock-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(190, 207, 229, 0.12);
  background: linear-gradient(180deg, rgba(13, 22, 34, 0.96), rgba(8, 15, 24, 1));
}

.media-stack {
  display: grid;
  gap: 14px;
}

.hero-photo-panel {
  min-height: 380px;
  aspect-ratio: 5 / 4;
}

.hero-photo-panel img,
.story-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-image-panel {
  min-height: 280px;
  aspect-ratio: 16 / 10;
}

.hero-photo-panel img,
.story-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  object-position: center;
}

.hero-photo-panel::after,
.story-image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 12, 21, 0.1), rgba(6, 12, 21, 0.72)),
    linear-gradient(90deg, rgba(7, 14, 24, 0.1), rgba(7, 14, 24, 0.35));
}

.panel-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(8, 15, 24, 0.64);
  border: 1px solid rgba(215, 165, 82, 0.18);
  color: #f6eddc;
  font-size: 0.82rem;
  backdrop-filter: blur(12px);
}

.panel-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 15, 24, 0.72);
  border: 1px solid rgba(190, 207, 229, 0.12);
  backdrop-filter: blur(14px);
}

.panel-summary {
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 24, 37, 0.96), rgba(9, 16, 25, 1));
  border: 1px solid rgba(190, 207, 229, 0.1);
}

.panel-summary strong {
  display: block;
  margin-bottom: 8px;
  color: #fbf8f2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.panel-summary span {
  color: rgba(224, 233, 244, 0.82);
  line-height: 1.58;
}

.panel-caption strong {
  display: block;
  margin-bottom: 6px;
  color: #fbf8f2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.panel-caption span {
  color: rgba(224, 233, 244, 0.8);
  line-height: 1.55;
}

.hero-dashboard-panel,
.mock-panel {
  padding: 18px;
}

.dashboard-shell {
  display: grid;
  gap: 12px;
}

.dashboard-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 28, 43, 0.94), rgba(11, 19, 31, 1));
  border: 1px solid rgba(167, 188, 220, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dashboard-card.wide {
  grid-column: 1 / -1;
}

.dashboard-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(170, 187, 213, 0.74);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-value {
  color: #fbf8f2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.dashboard-note {
  margin-top: 8px;
  color: rgba(223, 231, 241, 0.74);
  line-height: 1.5;
}

.dashboard-bars {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.dashboard-bars span,
.timeline-row::before {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(105, 167, 255, 0.72), rgba(215, 165, 82, 0.82));
}

.dashboard-bars span:nth-child(2) {
  width: 76%;
}

.dashboard-bars span:nth-child(1) {
  width: 92%;
}

.dashboard-bars span:nth-child(3) {
  width: 58%;
}

.risk-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(215, 165, 82, 0.14);
  color: #f0cf92;
  font-weight: 700;
}

.timeline-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.timeline-row {
  display: grid;
  gap: 8px;
}

.timeline-row::before {
  content: "";
}

.timeline-row small {
  color: rgba(223, 231, 241, 0.76);
}

.lending-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.workflow-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-step {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(190, 207, 229, 0.1);
  background: linear-gradient(180deg, rgba(15, 24, 37, 0.94), rgba(9, 16, 25, 1));
}

.workflow-step strong {
  display: block;
  margin-bottom: 10px;
  color: #fbf8f2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
}

.workflow-step p {
  margin: 0;
  color: rgba(223, 231, 241, 0.78);
  line-height: 1.55;
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
}

.app-shell {
  display: block;
  width: min(1480px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 28px;
}

body.show-login .app-shell {
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: 22px 20px;
  min-height: auto;
  position: relative;
  top: auto;
  align-self: auto;
  max-height: none;
  overflow: visible;
  margin: 12px 0 16px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  color: #f8f1e3;
  background:
    radial-gradient(circle at top, rgba(219, 165, 74, 0.13), transparent 24%),
    linear-gradient(180deg, #122d25 0%, #0e1f19 100%);
}

.sidebar .subtitle,
.sidebar-card p,
.auth-box .subtitle {
  color: rgba(248, 241, 227, 0.72);
}

.tenant-login-panel .helper-copy {
  color: rgba(255, 249, 239, 0.74);
}

.nav-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link,
.primary-btn,
.secondary-btn,
.file-input {
  border: 0;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease;
}

.nav-link {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff7ea;
  text-align: left;
  cursor: pointer;
}

.nav-link.active,
.nav-link:hover {
  transform: translateX(2px);
  background: rgba(219, 165, 74, 0.17);
}

.nav-link[hidden],
.section-panel[hidden],
.panel[hidden] {
  display: none !important;
}

.sidebar-card,
.auth-box {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-card {
  margin-top: 0;
}

.card-label,
.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.card-label {
  margin-bottom: 10px;
  background: rgba(219, 165, 74, 0.14);
  color: #ffdc96;
}

.main-content {
  min-width: 0;
  padding: 0 4px 20px;
  min-height: auto;
  overflow: visible;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(219, 165, 74, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248, 241, 229, 0.92));
  box-shadow: var(--shadow);
}

.hero-copy,
.helper-copy {
  max-width: 760px;
}

.inline-status,
.hero-actions,
.action-row,
.card-title-row,
.inline-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.card-title-row,
.inline-meta {
  justify-content: space-between;
}

.primary-btn,
.secondary-btn,
.file-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  cursor: pointer;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  box-shadow: 0 14px 34px rgba(13, 107, 87, 0.24);
}

.secondary-btn,
.file-input {
  color: var(--navy);
  background: rgba(17, 47, 69, 0.08);
  text-decoration: none;
}

.primary-btn:hover,
.secondary-btn:hover,
.file-input:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled,
.secondary-btn:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.section-panel {
  display: none;
  gap: 16px;
  min-width: 0;
}

.section-panel.active {
  display: grid;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-grid.two-up > * {
  min-width: 0;
}

.panel,
.metric-card,
.client-card,
.loan-card,
.focus-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius-xl);
}

.metric-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.metric-card .value {
  margin: 8px 0;
  font-size: 1.95rem;
  font-weight: 700;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pill {
  background: rgba(13, 107, 87, 0.11);
  color: var(--emerald-deep);
}

.pill.warn,
.tag.bad {
  background: rgba(188, 81, 56, 0.12);
  color: var(--rust);
}

.tag {
  background: rgba(219, 165, 74, 0.18);
  color: #865600;
}

.tag.good {
  background: rgba(13, 107, 87, 0.12);
  color: var(--emerald-deep);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.form-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.full-span {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(32, 22, 11, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(13, 107, 87, 0.18);
  border-color: var(--emerald);
}

.client-card,
.loan-card,
.focus-card {
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius-lg);
}

.interactive-card {
  cursor: pointer;
}

.interactive-card.is-selected {
  border-color: rgba(13, 107, 87, 0.35);
  box-shadow: 0 18px 42px rgba(13, 107, 87, 0.16);
}

.entity-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(17, 47, 69, 0.28);
  text-underline-offset: 3px;
}

.entity-link:hover {
  color: var(--emerald-deep);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
}

.file-input input {
  display: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #17130f;
  color: white;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .marketing-topbar,
  .marketing-hero,
  .workspace-entry-grid,
  .workspace-support-grid,
  .access-grid,
  .showcase-grid,
  .split-band,
  .marketing-stat-row,
  .product-grid,
  .deployment-grid,
  .cta-band,
  .metric-grid,
  .panel-grid.two-up,
  .feature-marquee,
  .form-grid,
  .tenant-lookup-form,
  .tenant-credential-form,
  .tenant-audience-selector,
  .tenant-quick-start {
    grid-template-columns: 1fr;
  }

  .app-shell {
    width: min(100%, calc(100% - 16px));
    padding-top: 8px;
  }

  .hero-media-grid,
  .lending-story-grid,
  .dashboard-grid,
  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .sidebar {
    margin: 8px 0 14px;
    padding: 18px 16px;
    border-radius: 24px;
  }

  .main-content {
    padding: 0 0 18px;
  }
}

@media (max-width: 920px) {
  .hero {
    flex-direction: column;
    align-items: start;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-link {
    width: 100%;
  }
}

/* ════════════════════════════════════════
   ONYX LENDING — Full Marketing Website
   ════════════════════════════════════════ */

/* ── Site Topbar ── */
.lending-site-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 36px;
  background: rgba(6, 13, 23, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(190, 207, 229, 0.08);
}

.lst-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lst-mark {
  display: none;
}

.lst-name {
  font-weight: 600;
  font-size: 1rem;
  color: #f5f1ea;
  letter-spacing: -0.01em;
}

.lst-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.lst-nav a {
  color: rgba(180, 200, 225, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: color 0.16s, background 0.16s;
}

.lst-nav a:hover {
  color: #f5f1ea;
  background: rgba(0, 255, 106, 0.12);
}

.lst-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lst-btn-ghost {
  appearance: none;
  border: 1px solid rgba(190, 207, 229, 0.2);
  background: transparent;
  color: #f5f1ea;
  padding: 9px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.16s, background 0.16s;
}

.lst-btn-ghost:hover {
  border-color: var(--green);
  background: rgba(0, 255, 106, 0.07);
}

.lst-btn-outline {
  appearance: none;
  border: 1px solid rgba(0, 255, 106, 0.12);
  background: transparent;
  color: var(--green);
  padding: 9px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}
.lst-btn-outline:hover {
  border-color: var(--green);
  background: rgba(0, 255, 106, 0.12);
  color: #f5f1ea;
}

.lst-btn-cta {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, #ddb56b, #c88e2f);
  color: #0a1420;
  padding: 9px 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.16s, transform 0.16s;
}

.lst-btn-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.lst-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(190, 207, 229, 0.18);
  background: transparent;
  color: #f5f1ea;
  padding: 8px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ── Eyebrow / Shared ── */
.lst-eyebrow {
  display: inline-block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 14px;
}

.lst-btn-primary {
  display: inline-flex;
  align-items: center;
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, #ddb56b, #c88e2f);
  color: #0a1420;
  padding: 13px 26px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.16s, transform 0.16s;
}
.lst-btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.lst-btn-secondary {
  display: inline-flex;
  align-items: center;
  appearance: none;
  border: 1px solid rgba(190, 207, 229, 0.24);
  background: transparent;
  color: #f5f1ea;
  padding: 13px 26px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.16s, background 0.16s;
}
.lst-btn-secondary:hover { border-color: var(--green); background: rgba(216,171,99,0.06); }

/* ── Hero ── */
.lst-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 90px 36px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.lst-hero-copy { display: grid; gap: 22px; }

.lst-section-heading {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: #fff9ef;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lst-hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #fff9ef;
  line-height: 1.08;
}

.lst-hero-lead {
  margin: 0;
  font-size: 1.08rem;
  color: rgba(200, 218, 238, 0.78);
  line-height: 1.7;
  max-width: 560px;
}

.lst-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.lst-tagline {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(0, 255, 106, 0.12);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Hero Dashboard ── */
.lst-hero-visual { position: relative; }

.lst-dashboard {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(8, 16, 26, 0.94);
  border: 1px solid rgba(190, 207, 229, 0.12);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(216,171,99,0.06);
}

.lst-dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(190, 207, 229, 0.08);
}

.lst-dash-title {
  font-size: 0.78rem;
  color: rgba(0, 255, 106, 0.12);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lst-dash-live {
  font-size: 0.76rem;
  color: rgba(92, 224, 190, 0.8);
}

.lst-dash-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(14, 24, 38, 0.9);
  border: 1px solid rgba(0, 255, 106, 0.09);
}

.lst-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 255, 106, 0.07);
  border: 1px solid rgba(0, 255, 106, 0.12);
  gap: 4px;
}

.lst-score-label {
  font-size: 0.7rem;
  color: rgba(190, 207, 229, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lst-score-value {
  font-family: Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff9ef;
  line-height: 1;
}

.lst-risk-grade {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f0cf92;
  background: rgba(0, 255, 106, 0.10);
  padding: 3px 10px;
  border-radius: 999px;
}

.lst-profile-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lst-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lst-fact-label {
  font-size: 0.68rem;
  color: rgba(160, 185, 215, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lst-fact-value {
  font-size: 0.82rem;
  color: rgba(92, 224, 190, 0.9);
  font-weight: 600;
}

.lst-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lst-dash-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(14, 24, 38, 0.9);
  border: 1px solid rgba(190, 207, 229, 0.1);
}

.lst-dash-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(160, 185, 215, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.lst-dash-value {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: #fff9ef;
  line-height: 1;
  margin-bottom: 4px;
}

.lst-dash-sub {
  font-size: 0.74rem;
  color: rgba(160, 185, 215, 0.6);
  line-height: 1.4;
}

.lst-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.lst-chip.red { background: rgba(216, 106, 82, 0.18); color: #f4927a; }
.lst-chip.green { background: rgba(13, 107, 87, 0.2); color: #5ce0be; }

.lst-repay-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  margin-top: 10px;
}

.lst-repay-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(216,171,99,0.72), rgba(216,171,99,0.28));
}

.lst-repay-bar.bad {
  background: linear-gradient(180deg, rgba(216, 106, 82, 0.78), rgba(216, 106, 82, 0.28));
}

/* ── Sections ── */
.lst-section {
  padding: 90px 36px;
  max-width: 1280px;
  margin: 0 auto;
}

.lst-section-header {
  margin-bottom: 56px;
  max-width: 760px;
}

.lst-section-lead {
  margin: 16px 0 0;
  font-size: 1.05rem;
  color: rgba(200, 218, 238, 0.72);
  line-height: 1.7;
  max-width: 640px;
}

/* ── Problem Section ── */
.lst-problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: start;
}

.lst-problem-story {
  display: grid;
  gap: 18px;
}

.lst-problem-story p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(200, 218, 238, 0.78);
  line-height: 1.72;
}

.lst-emphasis {
  font-family: Georgia, serif;
  font-size: 1.3rem !important;
  color: #fff9ef !important;
  font-weight: 600;
}

.lst-problem-list {
  display: grid;
  gap: 10px;
  padding-top: 20px;
}

.lst-problem-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(216, 106, 82, 0.06);
  border: 1px solid rgba(216, 106, 82, 0.14);
  font-size: 0.9rem;
  color: rgba(220, 230, 242, 0.82);
  line-height: 1.5;
}

.lst-problem-item::before {
  content: "✗";
  color: #d86a52;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Solution Band ── */
.lst-solution-band {
  background:
    linear-gradient(135deg, rgba(0, 255, 106, 0.12), transparent 55%),
    rgba(10, 18, 28, 0.96);
  border-top: 1px solid rgba(0, 255, 106, 0.12);
  border-bottom: 1px solid rgba(0, 255, 106, 0.12);
  padding: 80px 36px;
}

.lst-solution-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.lst-solution-inner h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff9ef;
  line-height: 1.18;
  max-width: 820px;
}

.lst-solution-inner p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(200, 218, 238, 0.78);
  line-height: 1.7;
  max-width: 720px;
}

.lst-solution-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.lst-stat {
  padding: 20px;
  border-radius: 18px;
  background: rgba(14, 24, 38, 0.88);
  border: 1px solid rgba(190, 207, 229, 0.1);
}

.lst-stat strong {
  display: block;
  margin-bottom: 8px;
  color: #fff9ef;
  font-family: Georgia, serif;
  font-size: 1rem;
}

.lst-stat span {
  font-size: 0.88rem;
  color: rgba(180, 205, 230, 0.68);
  line-height: 1.55;
}

/* ── Feature Rows ── */
.lst-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}

.lst-feature-row.reverse {
  direction: rtl;
}

.lst-feature-row.reverse > * {
  direction: ltr;
}

.lst-feature-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(190, 207, 229, 0.1);
}

.lst-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) contrast(1.04);
}

.lst-feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 13, 21, 0.7));
}

.lst-feature-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(8, 15, 24, 0.72);
  border: 1px solid rgba(0, 255, 106, 0.12);
  color: #f6eddc;
  font-size: 0.8rem;
  backdrop-filter: blur(12px);
}

.lst-feature-copy {
  display: grid;
  gap: 18px;
}

.lst-feature-copy h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #fff9ef;
  line-height: 1.2;
}

.lst-feature-copy p {
  margin: 0;
  font-size: 1rem;
  color: rgba(200, 218, 238, 0.76);
  line-height: 1.72;
}

.lst-feature-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: rgba(200, 218, 238, 0.78);
  line-height: 1.65;
  font-size: 0.92rem;
}

.lst-feature-list li + li { margin-top: 7px; }

/* ── Feature Pair ── */
.lst-feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
}

.lst-feature-pair-card {
  padding: 30px 26px;
  border-radius: 20px;
  background: rgba(12, 22, 34, 0.9);
  border: 1px solid rgba(190, 207, 229, 0.1);
  display: grid;
  gap: 14px;
}

.lst-pair-number {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: rgba(0, 255, 106, 0.12);
  font-weight: 700;
  line-height: 1;
}

.lst-feature-pair-card h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: #fff9ef;
  line-height: 1.2;
}

.lst-feature-pair-card p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(180, 205, 230, 0.72);
  line-height: 1.65;
}

/* ── Cinematic Band ── */
.lst-cinematic-band {
  position: relative;
  min-height: 400px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.lst-cinematic-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.78) contrast(1.06);
}

.lst-cinematic-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 13, 21, 0.97) 38%, rgba(6, 13, 21, 0.42) 100%),
    linear-gradient(180deg, rgba(6, 13, 21, 0.18), rgba(6, 13, 21, 0.55));
}

.lst-cinematic-copy {
  position: relative;
  z-index: 1;
  padding: 64px 72px;
  max-width: 680px;
}

.lst-cinematic-copy h2 {
  margin: 12px 0 20px;
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  color: #fff9ef;
  line-height: 1.18;
}

.lst-cinematic-copy p {
  margin: 0;
  color: rgba(200, 218, 238, 0.78);
  font-size: 1rem;
  line-height: 1.72;
}

/* ── Audience Grid ── */
.lst-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lst-audience-card {
  padding: 26px 22px;
  border-radius: 20px;
  background: rgba(12, 22, 34, 0.9);
  border: 1px solid rgba(190, 207, 229, 0.1);
  display: grid;
  gap: 10px;
  transition: border-color 0.2s;
}

.lst-audience-card:hover { border-color: rgba(0, 255, 106, 0.12); }

.lst-aud-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.lst-audience-card h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1rem;
  color: #fff9ef;
  line-height: 1.3;
}

.lst-audience-card p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(175, 200, 228, 0.68);
  line-height: 1.6;
}

/* ── Quote Band ── */
.lst-quote-band {
  padding: 88px 36px;
  text-align: center;
  background: rgba(8, 16, 26, 0.7);
  border-top: 1px solid rgba(0, 255, 106, 0.07);
  border-bottom: 1px solid rgba(0, 255, 106, 0.07);
}

.lst-quote-band blockquote {
  margin: 0 auto;
  max-width: 800px;
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: #fff9ef;
  line-height: 1.42;
}

.lst-quote-attr {
  display: block;
  margin-top: 22px;
  font-size: 0.78rem;
  color: rgba(0, 255, 106, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ── CTA Section ── */
.lst-cta-section {
  text-align: center;
  padding: 100px 36px;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.lst-cta-section h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff9ef;
  line-height: 1.15;
}

.lst-cta-section p {
  margin: 0;
  font-size: 1rem;
  color: rgba(200, 218, 238, 0.72);
  line-height: 1.7;
}

/* ── Footer ── */
.lst-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 48px 36px;
  border-top: 1px solid rgba(190, 207, 229, 0.08);
  max-width: 1280px;
  margin: 0 auto;
}

.lst-footer strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1rem;
  color: rgba(220, 232, 245, 0.86);
  max-width: 400px;
  line-height: 1.5;
}

.lst-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

.lst-footer-links a {
  color: rgba(175, 200, 228, 0.56);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.14s;
}

.lst-footer-links a:hover { color: var(--green); }

/* ── Marketing Responsive ── */
@media (max-width: 1100px) {
  .lst-hero, .lst-problem-layout {
    /* minmax(0, …): a plain 1fr column grows to its widest content and pushes the page wider than a phone. */
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 64px 28px;
  }
  .lst-feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .lst-feature-row.reverse { direction: ltr; }
  .lst-audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lst-solution-stats {
    grid-template-columns: 1fr;
  }
  .lst-section {
    padding: 64px 28px;
  }
  .lst-cinematic-copy {
    padding: 44px 48px;
  }
}

@media (max-width: 760px) {
  .lending-site-topbar {
    grid-template-columns: 1fr auto;
    padding: 14px 20px;
  }
  .lst-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6, 13, 23, 0.98);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(190, 207, 229, 0.08);
    z-index: 200;
  }
  .lst-actions { display: none; }
  .lst-toggle { display: flex; }
  .lst-feature-pair {
    grid-template-columns: 1fr;
  }
  .lst-audience-grid {
    grid-template-columns: 1fr;
  }
  .lst-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lst-footer-links {
    justify-content: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .lst-quote-band {
    padding: 56px 24px;
    text-align: left;
  }
  .lst-cta-section {
    padding: 64px 24px;
    text-align: left;
  }
  .lst-cinematic-copy {
    padding: 32px 24px;
  }
}

/* ════════════════════════════════════════
   end Onyx Lending Full Marketing Website
   ════════════════════════════════════════ */

/* ── Lending marketing enhancements ── */

.lending-nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(190, 207, 229, 0.14);
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  align-self: center;
}

.ghana-band {
  position: relative;
  margin-top: 34px;
  border-radius: 26px;
  overflow: hidden;
  min-height: 340px;
  display: grid;
  align-items: center;
  border: 1px solid rgba(190, 207, 229, 0.1);
}

.ghana-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.82) contrast(1.04);
}

.ghana-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 13, 21, 0.96) 36%, rgba(6, 13, 21, 0.38) 100%),
    linear-gradient(180deg, rgba(6, 13, 21, 0.18) 0%, rgba(6, 13, 21, 0.52) 100%);
}

.ghana-copy {
  position: relative;
  z-index: 1;
  padding: 52px 56px;
  max-width: 640px;
}

.ghana-copy h2 {
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff9ef;
  line-height: 1.2;
}

.ghana-copy p {
  color: rgba(224, 233, 244, 0.8);
  line-height: 1.65;
}

.lending-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.lending-icon-card {
  padding: 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(190, 207, 229, 0.1);
  background: linear-gradient(180deg, rgba(15, 24, 37, 0.94), rgba(9, 16, 25, 1));
}

.lending-icon-card .icon-mark {
  font-size: 1.5rem;
  color: var(--green);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
}

.lending-icon-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: #fff9ef;
  line-height: 1.3;
}

.lending-icon-card p {
  margin: 0;
  color: rgba(223, 231, 241, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
}

.lending-quote-band {
  margin-top: 34px;
  padding: 44px 52px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(215, 165, 82, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(14, 23, 35, 0.96), rgba(9, 16, 25, 1));
  border: 1px solid rgba(215, 165, 82, 0.12);
  text-align: center;
}

.lending-quote-band blockquote {
  margin: 0 auto;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  color: #fff9ef;
  line-height: 1.4;
}

.lending-quote-band .quote-source {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.dashboard-chip.gold {
  background: rgba(215, 165, 82, 0.16);
  color: #f0cf92;
}

.dashboard-chip.red {
  background: rgba(216, 106, 82, 0.2);
  color: #f4927a;
}

.dashboard-chip.green {
  background: rgba(13, 107, 87, 0.2);
  color: #5ce0be;
}

.dashboard-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(223, 231, 241, 0.8);
  line-height: 1.65;
}

.feature-list li + li {
  margin-top: 7px;
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}

@media (max-width: 1180px) {
  .lending-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ghana-copy {
    padding: 40px 36px;
  }
}

@media (max-width: 760px) {
  .lending-nav-toggle {
    display: flex;
  }
  .lending-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lending-quote-band {
    padding: 28px 24px;
    text-align: left;
  }
  .ghana-copy {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .lending-icon-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Lending two-column auth overlay ── */

.lending-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: #060d17;
}

body.show-login .lending-auth-overlay {
  display: grid;
}

.lending-auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 52px;
  background:
    linear-gradient(150deg, rgba(0, 255, 106, 0.12) 0%, transparent 55%),
    linear-gradient(135deg, #06101a, #0c1e30);
  border-right: 1px solid rgba(190, 207, 229, 0.1);
  overflow-y: auto;
}

.lending-brand-mark {
  display: none;
}

.lending-auth-brand .eyebrow {
  margin-bottom: 10px;
}

.lending-auth-brand h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff9ef;
  line-height: 1.18;
  max-width: 520px;
}

.lending-auth-lead {
  margin: 0 0 32px;
  max-width: 480px;
  color: rgba(224, 233, 244, 0.78);
  line-height: 1.65;
  font-size: 1rem;
}

.lending-auth-features {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.lending-auth-feature {
  display: grid;
  gap: 4px;
}

.lending-auth-feature strong {
  color: #fff9ef;
  font-size: 0.95rem;
}

.lending-auth-feature span {
  color: rgba(210, 222, 238, 0.7);
  font-size: 0.88rem;
  line-height: 1.55;
}

.lending-auth-built-for {
  margin: 0 0 24px;
  color: rgba(190, 207, 229, 0.5);
  font-size: 0.8rem;
  line-height: 1.6;
}

.lending-auth-back {
  color: rgba(0, 255, 106, 0.12);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.16s;
}

.lending-auth-back:hover {
  color: var(--green);
}

.lending-auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 4px;
}
.lending-auth-tab {
  flex: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(190,207,229,0.55);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.lending-auth-tab.is-active {
  background: rgba(216,171,99,0.14);
  color: var(--green);
}
.lending-auth-tab:hover:not(.is-active) {
  background: rgba(255,255,255,0.06);
  color: #f5f1ea;
}

.sidebar-back-to-site {
  display: block;
  margin-top: 20px;
  padding: 8px 12px;
  color: rgba(190,207,229,0.45);
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.sidebar-back-to-site:hover {
  color: #f5f1ea;
  background: rgba(255,255,255,0.06);
}

.lending-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  background: rgba(5, 11, 19, 0.98);
  overflow-y: auto;
}

.lending-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(14, 23, 36, 0.96), rgba(9, 16, 25, 1));
  border: 1px solid rgba(190, 207, 229, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
}

.lending-auth-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.lending-auth-card input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(190, 207, 229, 0.14);
  border-radius: 12px;
  color: #f5f1ea;
  padding: 11px 14px;
}

.lending-auth-card input::placeholder {
  color: rgba(190, 207, 229, 0.4);
}

.lending-auth-card input:focus {
  outline: 2px solid rgba(0, 255, 106, 0.12);
  border-color: rgba(0, 255, 106, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.lending-auth-card .primary-btn {
  background: linear-gradient(135deg, #ddb56b, #c88e2f);
  color: #0a1420;
  box-shadow: 0 14px 34px rgba(200, 142, 47, 0.24);
}

.lending-auth-card .tenant-lookup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 900px) {
  .lending-auth-overlay {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .lending-auth-brand {
    padding: 36px 28px;
    border-right: none;
    border-bottom: 1px solid rgba(190, 207, 229, 0.1);
  }
  .lending-auth-brand h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .lending-auth-panel {
    padding: 32px 20px;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .lending-auth-brand {
    padding: 28px 20px;
  }
  .lending-auth-card {
    padding: 20px;
  }
}

/* ── end lending auth overlay ── */

/* ── end lending marketing enhancements ── */

@media (max-width: 640px) {
  .login-screen {
    padding: 14px;
  }

  .login-hero {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .marketing-topbar {
    gap: 14px;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .marketing-nav {
    justify-content: flex-start;
    gap: 8px;
    padding: 6px;
  }

  .marketing-nav a {
    padding: 10px 12px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .stage-copy-card,
  .stage-visual-card,
  .showcase-band,
  .split-card,
  .access-story-card,
  .tenant-login-panel,
  .feature-slab,
  .cta-band,
  .product-card,
  .deployment-card {
    padding: 18px;
  }

  .hero-photo-panel {
    min-height: 220px;
    aspect-ratio: auto;
  }

  .story-image-panel {
    min-height: 190px;
    aspect-ratio: auto;
  }

  .login-copy h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .sidebar {
    gap: 14px;
    padding: 16px 14px;
    border-radius: 20px;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px 16px;
    border-radius: 24px;
  }

  .panel,
  .metric-card,
  .client-card,
  .loan-card,
  .focus-card {
    border-radius: 18px;
  }

  .panel {
    padding: 16px;
  }
}

/* Final contrast repair for the light editorial panels. The legacy theme loaded
   after the Group layer and was setting pale body text against a paper surface. */
body.marketing-page .lst-section {
  color: #11110f;
  background: #f5f3ee;
}
body.marketing-page .lst-section .lst-section-heading,
body.marketing-page .lst-section .lst-problem-story h2,
body.marketing-page .lst-section .lst-emphasis {
  color: #11110f !important;
}
body.marketing-page .lst-section .lst-problem-story p,
body.marketing-page .lst-section .lst-section-lead {
  color: rgba(17, 17, 15, .78);
}
body.marketing-page .lst-section .lst-problem-item {
  color: rgba(17, 17, 15, .82);
  background: #f3ebe4;
  border-color: rgba(184, 68, 47, .22);
}

body.marketing-page .lst-section .lst-feature-copy h3,
body.marketing-page .lst-section .lst-feature-copy p,
body.marketing-page .lst-section .lst-feature-list,
body.marketing-page .lst-section .lst-feature-pair-card h3,
body.marketing-page .lst-section .lst-feature-pair-card p,
body.marketing-page .lst-section .lst-audience-card h3,
body.marketing-page .lst-section .lst-audience-card p,
body.marketing-page .lst-section .lst-aud-eyebrow,
body.marketing-page .lst-solution-band .lst-solution-inner h2,
body.marketing-page .lst-solution-band .lst-solution-inner p,
body.marketing-page .lst-solution-band .lst-stat strong,
body.marketing-page .lst-solution-band .lst-stat span,
body.marketing-page .lst-quote-band blockquote,
body.marketing-page .lst-quote-band .lst-quote-attr,
body.marketing-page .lst-footer a,
body.marketing-page .lst-footer p,
body.marketing-page .lst-footer strong { color: #11110f !important; }

/* The solution band is gold, but its three summary cards are intentionally dark. */
body.marketing-page .lst-solution-band .lst-stat {
  background: #292823;
  border-color: rgba(245, 243, 238, .24);
}
body.marketing-page .lst-solution-band .lst-stat strong { color: #f5f3ee !important; }
body.marketing-page .lst-solution-band .lst-stat span { color: rgba(245, 243, 238, .82) !important; }
