/* =========================================
   INVESTORS
   Page-level styles for /investors (site/investors/index.html).
   Loads after: tailwind, site, launch, corporate (whose "Lender pages:
   navy-led B2B surfaces" block styles the navy hero, bands, icon lists,
   split bands and close band; this page reuses it via .lender-page--navy).
   The page reads as an investor memo: thesis, the market in four figures, the
   problem, the three layers as a stack, how the business earns, why now, the
   moat, milestones as a line, plans, governance, then investor relations.
   Sections: Hero connection · In-page nav · Thesis · Market · Problem ·
   Layers · Business model · Lists · Discipline · Milestones · Leadership ·
   Investor relations · Disclaimer · Responsive
   ========================================= */

/* Pending notes on the dark bands take the band's colours, not the light chip. */
.lender-page--investors :is(.corporate-hero, .partner-collections, .partner-close) .pending-fact {
  background: rgba(255, 255, 255, 0.08);
  color: var(--partner-text-dark);
}

/* ---------- Hero connection ---------- */
/* Lenders, Rinncrest and borrowers as one connected column: the thesis drawn. */
.inv-hero .corporate-hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.inv-connect {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--partner-line-dark);
  border-radius: 14px;
  background: #12233a;
}
.inv-connect figcaption {
  margin-bottom: 20px;
  color: white;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.inv-connect figcaption span {
  color: var(--partner-mint);
}
.inv-connect__party,
.inv-connect__core {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--partner-line-dark);
  border-radius: 12px;
}
.inv-connect__party + .inv-connect__core,
.inv-connect__core + .inv-connect__party {
  margin-top: 28px;
}
/* The connector runs through the centre of the icon discs. */
.inv-connect__core::before,
.inv-connect__core + .inv-connect__party::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 40px;
  width: 2px;
  height: 29px;
  background: var(--partner-mint);
  opacity: 0.6;
}
.inv-connect__core {
  border-color: var(--partner-mint);
  background: #153c3e;
}
.inv-connect .pi {
  box-sizing: content-box;
  padding: 10px;
  border: 1px solid var(--partner-line-dark);
  border-radius: 50%;
  color: var(--partner-mint);
  stroke-width: 1.5;
}
.inv-connect__core .pi {
  border-color: var(--partner-mint);
}
.inv-connect strong {
  display: block;
  color: white;
  font-size: 17px;
  font-weight: 700;
}
.inv-connect span {
  display: block;
  margin-top: 2px;
  color: var(--partner-text-dark);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- In-page nav ---------- */
.inv-nav .lender-navigation__contact .pi {
  width: 18px;
  height: 18px;
}

/* ---------- Thesis ---------- */
.band-split__body .inv-thesis__lead {
  color: var(--navy);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.inv-thesis p {
  font-size: 17px;
}

/* ---------- Market ---------- */
/* Four market indicators as one ruled panel; the figures are set in Plex Mono
   because they are measurements. They describe the market, not Rinncrest. */
.inv-market {
  background: var(--mist);
}
.inv-market__notice {
  display: inline-block;
  max-width: 72ch;
  margin: 28px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink-body);
  font-size: 14px;
  line-height: 1.6;
}
.inv-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  overflow: hidden;
}
.inv-figures > li {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 26px 24px;
}
.inv-figures > li + li {
  border-left: 1px solid var(--line);
}
.inv-figures__label {
  min-height: 3.2em;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.inv-figures__num {
  margin-top: 18px;
  color: var(--forest);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(21px, 1.85vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.inv-figures__note {
  margin-top: 6px;
  color: var(--ink-body);
  font-size: 14px;
  line-height: 1.5;
}
.inv-figures__meta {
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.inv-market__foot {
  margin-top: 20px;
}
.inv-market__foot p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Problem ---------- */
.inv-problem {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(28px, 4vw, 56px);
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.inv-problem li {
  padding-top: 28px;
  border-top: 2px solid var(--navy);
}
.inv-problem h3 {
  margin: 0 0 10px;
}
.inv-problem p {
  margin: 0;
  color: var(--ink-body);
  font-size: 16px;
  line-height: 1.7;
}
.inv-problem p::first-letter {
  text-transform: uppercase;
}
.inv-problem a {
  color: var(--forest);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------- Layers ---------- */
/* The three layers as a stack of slabs: mark and what it is; Distribution
   carries a direct link to Rinn on Google Play. */
.inv-layers {
  display: grid;
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.inv-layers > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--partner-line-dark);
  border-radius: 14px;
  background: #12233a;
}
.inv-layers__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--partner-mint);
  border-radius: 50%;
  color: var(--partner-mint);
}
.inv-layers__mark .pi {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}
.inv-layers h3 {
  margin: 0;
  color: white;
  font-size: 19px;
}
.inv-layers__what p {
  margin: 6px 0 0;
  color: var(--partner-text-dark);
  font-size: 15px;
  line-height: 1.6;
}
.inv-layers__get {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--partner-mint);
  border-radius: 999px;
  color: var(--partner-mint);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.inv-layers__get:hover,
.inv-layers__get:focus-visible {
  background: var(--partner-mint);
  color: var(--midnight);
}
.inv-layers__get .pi {
  width: 16px;
  height: 16px;
}
.inv-layers__more {
  max-width: 64ch;
  margin: 28px 0 0;
  color: var(--partner-text-dark);
  font-size: 16px;
  line-height: 1.7;
}
.inv-layers__more a {
  color: var(--partner-mint);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* ---------- Business model ---------- */
.band-split__body .inv-pending {
  margin-top: 20px;
}
.band-split__body .inv-pending .pending-fact + .pending-fact {
  margin-top: 6px;
}
.band-split__body .inv-note {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Lists ---------- */
.inv-mist {
  background: var(--mist);
}
.inv-list {
  margin-top: 40px;
}

/* ---------- Discipline ---------- */
/* One statement on midnight: the growth rule the business holds itself to. */
.inv-discipline .band-split {
  align-items: center;
}
.inv-discipline .band-split__body > p {
  max-width: 58ch;
  margin: 0;
  color: white;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.65;
}

/* ---------- Milestones ---------- */
.inv-milestones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.inv-milestones::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 26px;
  /* stop at the centre of the last disc: one column (minus gaps) less half a disc */
  right: calc((100% - 3 * 32px) / 4 - 26px);
  height: 1px;
  background: var(--lender-accent-line);
}
.inv-milestones li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.inv-milestones .pi {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid var(--forest);
  border-radius: 50%;
  background: white;
  color: var(--forest);
  stroke-width: 1.5;
}
.inv-milestones strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}
.inv-milestones span {
  color: var(--ink-body);
  font-size: 15px;
  line-height: 1.65;
}
.inv-milestones a {
  color: var(--forest);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------- Leadership ---------- */
.partner-band.inv-leadership {
  padding-block: clamp(48px, 5vw, 72px);
}
.inv-leadership .band-split {
  align-items: center;
}
.inv-leadership .band-split__body > p {
  margin: 0;
  font-size: 18px;
}

/* ---------- Investor relations ---------- */
.inv-ir .shell {
  align-items: flex-end;
}
.inv-ir__text {
  max-width: 64ch;
}
.inv-ir p {
  margin: 16px 0 0;
  color: var(--partner-text-dark);
  font-size: 17px;
  line-height: 1.7;
}
.inv-ir p a {
  color: var(--partner-mint);
  text-underline-offset: 4px;
}
.inv-ir p strong {
  color: white;
}

/* ---------- Disclaimer ---------- */
/* Small print, set as it should read: quiet, complete, two columns on wide screens. */
.inv-disclaimer {
  padding-block: 56px 72px;
  background: white;
}
.inv-disclaimer h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}
.inv-disclaimer__body {
  columns: 2;
  column-gap: 56px;
}
.inv-disclaimer p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  break-inside: avoid;
}
.inv-disclaimer strong {
  color: var(--navy);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .inv-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inv-figures > li:nth-child(3) {
    border-left: 0;
  }
  .inv-figures > li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 1023px) {
  .inv-hero .corporate-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .inv-connect {
    max-width: 560px;
  }
  .inv-problem {
    grid-template-columns: minmax(0, 1fr);
  }
  .inv-layers > li {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .inv-layers__get {
    grid-column: 2;
    justify-self: start;
  }
  .inv-milestones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inv-milestones::before {
    display: none;
  }
  .inv-disclaimer__body {
    columns: 1;
  }
}
@media (max-width: 767px) {
  .inv-nav nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .inv-nav a {
    flex: none;
  }
  .inv-figures {
    grid-template-columns: minmax(0, 1fr);
  }
  .inv-figures > li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .inv-figures__label {
    min-height: 0;
  }
  .inv-figures__num {
    margin-top: 10px;
  }
  .inv-layers > li {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }
  .inv-layers__get {
    grid-column: auto;
  }
  .inv-milestones {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .inv-ir .shell {
    align-items: flex-start;
  }
}
