/* Core Capital Lenders.
 *
 * No tabular figures anywhere in this file, deliberately. Schibsted Grotesk
 * pads a comma to a full digit width in its tabular set, so "$10,000+" renders
 * with a visible gap either side of the comma. Nothing here is a column of
 * numbers that has to align vertically, so proportional figures are both
 * correct and better looking.
 *
 * Near-black ink on white, one green, one amber. The recurring object is a
 * requirements panel -- a short list of what a business needs to have before a
 * programme will approve it -- and in greyscale this page reads as rows of
 * small checkable facts rather than as claims, which is what separates it from
 * every other theme here. The others are organised around what is offered;
 * this one around who is eligible.
 *
 * The threshold figures are the largest type after the headline, because they
 * are the thing a visitor came to check.
 *
 * Schibsted Grotesk over Inter Tight. Not dark: Rapid is the dark theme in
 * this repository and stays the only one.
 */

@font-face {
  font-family: "Schibsted";
  src: url("display.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "InterTight";
  src: url("text.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #0b1220;
  --ink-soft: #1d2838;
  --green: #1a8452;
  --green-bright: #2fb673;
  --green-wash: #edfaf2;
  --amber: #f0b429;
  --paper: #ffffff;
  --tint: #f4f7fa;
  --floor: #0b1220;
  --rule: #dde4ec;
  --text: #394453;
  --muted: #5a6677;
  --faint: #8792a3;
  --shell: 1150px;
  --display: "Schibsted", "Segoe UI", system-ui, sans-serif;
  --body: "InterTight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.64 var(--body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
}

:where(a, button, iframe):focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 2px;
}

/* ---------- masthead ---------- */

.mast {
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.mast__bar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  flex-wrap: wrap;
  padding: 10px 24px;
}

.mast__logo img {
  height: var(--logo-h, 32px);
  width: auto;
}

.mast__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}

.mast__nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.mast__nav a:hover {
  color: var(--green);
}

.mast__tel {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink) !important;
  white-space: nowrap;
}

.mast__cta {
  background: var(--ink);
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
}

.mast__cta:hover {
  background: var(--green);
}

/* ---------- opening ---------- */

.open {
  padding: 78px 0 64px;
}

.kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.open h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.2vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.034em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
}

.open__sub {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 1.12rem;
  color: var(--muted);
}

.open__act {
  margin: 34px 0 0;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 9px;
}

.btn:hover {
  background: #14663f;
}

.btn--plain {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--rule);
  padding: 13px 28px;
}

.btn--plain:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- the floor: the general minimum ---------- */

.section--floor {
  background: var(--floor);
  color: #fff;
}

.section--floor .h2 {
  color: #fff;
}

.section--floor .sub {
  color: #9aa7ba;
}

.floor ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
}

.floor li {
  background: rgba(255, 255, 255, 0.04);
  padding: 22px 18px;
}

.floor strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--green-bright);
}

.floor span {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  color: #9aa7ba;
}

/* On a product page the floor is small and sits under the panels. */
.split .floor ul {
  grid-template-columns: 1fr 1fr;
  background: var(--rule);
  border-color: var(--rule);
  border-radius: 10px;
  margin-top: 16px;
}

.split .floor li {
  background: var(--tint);
  padding: 14px 16px;
}

.split .floor strong {
  font-size: 1.16rem;
  color: var(--ink);
}

.split .floor span {
  color: var(--faint);
  font-size: 0.8rem;
}

/* ---------- sections ---------- */

.section {
  padding: 70px 0;
}

.section--tint {
  background: var(--tint);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 24ch;
}

.h2--sm {
  font-size: 1.25rem;
  margin-top: 32px;
}

.sub {
  margin: 0 0 36px;
  max-width: 64ch;
  color: var(--muted);
}

.head {
  padding: 60px 0 42px;
  background: var(--tint);
  border-bottom: 1px solid var(--rule);
}

.head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.034em;
  margin: 0;
  color: var(--ink);
  max-width: 20ch;
}

.head .lede {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.head__range {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--green);
}

/* ---------- programmes ---------- */

.progs {
  display: grid;
  gap: 18px;
}

.prog {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  gap: 28px;
  align-items: start;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 26px;
  background: #fff;
}

.prog:hover {
  border-color: var(--green-bright);
}

.prog h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.024em;
  margin: 0 0 6px;
}

.prog h3 a {
  text-decoration: none;
  color: var(--ink);
}

.prog h3 a:hover {
  color: var(--green);
}

.prog__range {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--green);
}

.prog__lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prog__specs {
  margin: 0;
  display: grid;
  gap: 8px;
}

.prog__specs > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--rule);
}

.prog__specs dt {
  font-size: 0.85rem;
  color: var(--faint);
}

.prog__specs dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  text-align: right;
}

.prog__specs--side {
  background: var(--tint);
  border-radius: 12px;
  padding: 18px 20px;
  gap: 10px;
}

/* The requirements panel: the object this whole design is built on. */
.needs {
  background: var(--green-wash);
  border-radius: 12px;
  padding: 16px 18px;
}

.needs h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 12px;
}

.needs dl {
  margin: 0;
  display: grid;
  gap: 9px;
}

.needs dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.needs dt {
  font-size: 0.84rem;
  color: var(--muted);
}

.needs dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  text-align: right;
}

.needs__base {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.needs--side {
  margin-top: 16px;
}

/* ---------- why / steps ---------- */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 40px;
}

.why h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 0 0 7px;
  color: var(--ink);
}

.why p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.steps {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.steps li {
  counter-increment: s;
  border-top: 3px solid var(--ink);
  padding-top: 18px;
}

.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green-wash);
  color: var(--green);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
}

.steps h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- the application ---------- */

.ask {
  background: var(--tint);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 66px 0;
}

.ask__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ask h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  margin: 0 0 12px;
  color: var(--ink);
}

.ask__say > p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 44ch;
}

.ask__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.ask__points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--muted);
}

.ask__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--green-bright);
  border-bottom: 2.5px solid var(--green-bright);
  transform: rotate(-45deg);
}

.ask__tel {
  margin-top: 22px !important;
  font-size: 0.95rem;
}

.ask__tel a {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--green-bright);
}

.ask__frame {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}

.ask__tab {
  background: var(--ink);
  color: #b9c6d6;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 16px;
}

.ask__frame iframe {
  display: block;
  width: 100%;
  border: 0;
  /* No min-height: it outranks the height the form posts. See tools/forms. */
}

/* ---------- prose, plates, bits ---------- */

.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.split--wide {
  grid-template-columns: 1.45fr 1fr;
}

.split figure {
  margin: 0;
}

.split img {
  width: 100%;
  border-radius: 14px;
}

.prose {
  max-width: 64ch;
  color: var(--muted);
}

.prose p {
  margin: 0 0 18px;
}

.prose--terms {
  font-size: 0.94rem;
  border-left: 4px solid var(--green-bright);
  padding-left: 22px;
  max-width: 72ch;
}

.prose a {
  color: var(--green);
}

.plate {
  margin: 0;
}

.plate img {
  width: 100%;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--green-bright);
  border-bottom: 2.5px solid var(--green-bright);
  transform: rotate(-45deg);
}

.ilink {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--green-bright);
}

/* ---------- footer ---------- */

.foot {
  background: var(--ink);
  color: #9aa7ba;
  padding: 56px 0 24px;
  font-size: 0.93rem;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 38px;
}

.foot__logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.foot p {
  margin: 0 0 10px;
  max-width: 36ch;
}

.foot__tel a {
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.foot h4 {
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 13px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot li {
  padding: 4px 0;
}

.foot a {
  color: #9aa7ba;
  text-decoration: none;
}

.foot a:hover {
  color: var(--green-bright);
}

.foot__rule {
  border-top: 1px solid #1d2838;
  margin-top: 38px;
  padding-top: 20px;
  font-size: 0.81rem;
  color: #6d7b8e;
  max-width: 86ch;
}

/* ---------- narrow ---------- */

@media (max-width: 1000px) {
  .prog {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .prog__head {
    grid-column: 1 / -1;
  }

  .ask__grid,
  .split,
  .split--wide {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .open {
    padding: 52px 0 46px;
  }

  .floor ul {
    grid-template-columns: 1fr 1fr;
  }

  .prog {
    grid-template-columns: 1fr;
  }

  .why {
    grid-template-columns: 1fr;
  }

  .foot__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mast__nav {
    gap: 14px;
    width: 100%;
    margin-left: 0;
  }

  .mast__cta {
    margin-left: auto;
  }
}
