/* Elevate Business Funding.
 *
 * High-key blue on white, softly rounded, and the application is the first
 * thing on the page -- there is nothing above it. That is what this site is
 * recognisable by in greyscale: a form at the very top where every other site
 * in this repository puts a headline, a photograph or both.
 *
 * americanbusinessfunds.com is this brand's clone, down to identical product
 * figures. It is navy and red, ruled with a thick-over-thin flag bar, sharp
 * cornered, and carries eight photographs. This is light blue, round-cornered,
 * and carries one. They should not read as relatives.
 *
 * Urbanist over Nunito Sans. Both have round bowls, which is the point: this
 * is the friendliest-looking site in the set and it is allowed to be.
 */

@font-face {
  font-family: "Urbanist";
  src: url("display.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "NunitoSans";
  src: url("text.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --blue: #069af3;
  --blue-bright: #249cf2;
  --blue-deep: #014576;
  --blue-ink: #042d53;
  --blue-wash: #eaf6fe;
  --paper: #ffffff;
  --tint: #f2f8fd;
  --rule: #d9e6f2;
  --text: #3a4a5c;
  --muted: #5b6b7d;
  --faint: #8797a8;
  --shell: 1180px;
  --display: "Urbanist", "Segoe UI", system-ui, sans-serif;
  --body: "NunitoSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r: 18px;
}

*,
*::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.66 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(--blue-ink);
  color: #fff;
  padding: 10px 14px;
}

:where(a, button, iframe):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- masthead ---------- */

.mast {
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

.mast__bar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  flex-wrap: wrap;
  padding: 10px 24px;
}

.mast__logo img {
  height: var(--logo-h, 36px);
  width: auto;
}

.mast__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  flex-wrap: wrap;
}

.mast__nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.mast__nav a:hover {
  color: var(--blue-deep);
}

.mast__tel {
  font-family: var(--display);
  font-weight: 700;
  color: var(--blue-deep) !important;
  white-space: nowrap;
}

.mast__cta {
  background: var(--blue);
  color: #fff !important;
  font-family: var(--display);
  font-weight: 700 !important;
  padding: 11px 24px;
  border-radius: 999px;
  white-space: nowrap;
}

.mast__cta:hover {
  background: var(--blue-deep);
}

/* ---------- the application, which is the top of the page ---------- */

.ask {
  background: var(--tint);
  border-bottom: 1px solid var(--rule);
  padding: 58px 0 64px;
}

.ask--hero {
  /* The hero is the form. Nothing sits above it, so the padding is smaller
     than a hero would normally take -- the point is that it is immediately
     there. */
  padding-top: 44px;
  background: linear-gradient(180deg, var(--blue-wash) 0%, var(--tint) 100%);
}

.ask__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.ask__kicker {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.ask h1,
.ask h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin: 0 0 16px;
  color: var(--blue-ink);
  max-width: 16ch;
}

.ask__lead {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.06rem;
}

/* The five questions, printed so nobody has to start to find out. */
.qs {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 22px 24px;
}

.qs__h {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--blue-ink);
}

.qs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: q;
  display: grid;
  gap: 9px;
}

.qs li {
  counter-increment: q;
  position: relative;
  padding-left: 32px;
  font-size: 0.95rem;
  color: var(--muted);
}

.qs li::before {
  content: counter(q);
  position: absolute;
  left: 0;
  top: 0.06em;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue-deep);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
}

.qs__note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--faint);
}

.ask__tel {
  margin: 22px 0 0;
  font-size: 0.95rem;
}

.ask__tel a {
  font-family: var(--display);
  font-weight: 700;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
}

.ask__frame {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--rule);
}

.ask__tab {
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
}

.ask__frame iframe {
  display: block;
  width: 100%;
  border: 0;
  /* No min-height: it outranks the height the form posts. See tools/forms. */
}

/* ---------- record ---------- */

.record {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.record li {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 20px 22px;
}

.record strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--blue-deep);
}

.record span {
  display: block;
  margin-top: 7px;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------- sections ---------- */

.section {
  padding: 68px 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(--blue-ink);
  max-width: 24ch;
}

.h2--sm {
  font-size: 1.22rem;
  margin-top: 32px;
}

.sub {
  margin: 0 0 34px;
  max-width: 62ch;
  color: var(--muted);
}

.head {
  padding: 58px 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(--blue-ink);
  max-width: 20ch;
}

.head .lede {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 1.07rem;
  color: var(--muted);
}

.head__kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}

.quad {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 740px;
}

.quad > div {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
}

.quad dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--blue-ink);
}

.quad dt {
  margin-top: 5px;
  font-size: 0.75rem;
  color: var(--faint);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 24px 24px 20px;
}

.card:hover {
  border-color: var(--blue);
  background: var(--blue-wash);
}

.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.022em;
  margin: 0 0 8px;
  color: var(--blue-ink);
}

.card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card dl {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 7px;
}

.card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card dt {
  font-size: 0.84rem;
  color: var(--faint);
}

.card dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue-deep);
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.steps li {
  counter-increment: s;
  background: var(--blue-wash);
  border-radius: var(--r);
  padding: 26px 26px 24px;
}

.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.steps h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--blue-ink);
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- prose, plate, bits ---------- */

.prose {
  max-width: 64ch;
  color: var(--muted);
}

.prose p {
  margin: 0 0 18px;
}

.prose--terms {
  font-size: 0.94rem;
  border-left: 4px solid var(--blue);
  padding-left: 22px;
  max-width: 72ch;
}

.prose a {
  color: var(--blue-deep);
}

.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;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- footer ---------- */

.foot {
  background: var(--blue-ink);
  color: #9db3c8;
  padding: 56px 0 24px;
  font-size: 0.93rem;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 34px;
}

.foot__logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.foot p {
  margin: 0 0 10px;
  max-width: 34ch;
}

.foot h4 {
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
  font-size: 0.83rem;
  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: #9db3c8;
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
}

.foot__rule {
  border-top: 1px solid #0b3a63;
  margin-top: 38px;
  padding-top: 20px;
  font-size: 0.81rem;
  color: #6e879e;
  max-width: 88ch;
}

/* ---------- narrow ---------- */

@media (max-width: 980px) {
  .ask__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* On a phone the form goes above the questions: the claim is that applying
     is the quick part, so it should not sit under a list explaining itself. */
  .ask__frame {
    order: -1;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .record {
    grid-template-columns: 1fr 1fr;
  }

  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .cards,
  .steps,
  .record {
    grid-template-columns: 1fr;
  }

  .quad {
    grid-template-columns: 1fr 1fr;
  }

  .foot__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .mast__nav {
    gap: 14px;
    width: 100%;
    margin-left: 0;
  }

  .mast__cta {
    margin-left: auto;
  }
}
