/* Guardian Business Financing.
 *
 * The page is questions. Each one sits on its own two-track row: a small
 * label in a narrow left column, the question and its answer in a wide right
 * one, with a rule across the top of every row. Read down the left edge and
 * you get an index of what the page covers; read down the right and you get
 * the answers. That is the signature, and in greyscale it is a strict
 * label/answer rhythm where every other theme here is bands, cards or grids.
 *
 * NO PHOTOGRAPHY, anywhere, which no other theme in this repository does. A
 * site whose whole offer is being answered straight does not need a stock
 * photograph of somebody smiling in an apron, and the questions are stronger
 * without one competing for the same attention. The weight on the page comes
 * from the type and from two navy bands instead.
 *
 * Petrona over Onest: a serif with some authority for the questions, and a
 * plain grotesque for the answers, so the two are never confused for each
 * other. The logo is a heavy geometric mark in navy and the type stays out of
 * its way.
 */

@font-face {
  font-family: "Petrona";
  src: url("display.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("text.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --navy: #212255;
  --navy-deep: #171838;
  --blue: #3a79f9;
  --link: #2b52c4;
  --paper: #fbfbfc;
  --sheet: #ffffff;
  --rule: #e2e3ec;
  --hair: #eeeef4;
  --text: #3a3d55;
  --muted: #62657f;
  --shell: 1080px;
  --display: "Petrona", Georgia, "Times New Roman", serif;
  --body: "Onest", -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-family: var(--body);
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
}

h1,
h2,
h3,
.qa__q {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.14;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

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

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

.mast__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
  flex-wrap: wrap;
}

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

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

.mast__nav a {
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--navy);
}

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

.mast__cta {
  background: var(--navy);
  color: #fff !important;
  padding: 11px 20px;
  border-radius: 4px;
}

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

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-size: 16.5px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 4px;
}

.btn:hover {
  background: var(--link);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--rule);
}

.btn--ghost:hover {
  border-color: var(--navy);
  background: var(--sheet);
}

.btn--pale {
  background: #fff;
  color: var(--navy);
}

.btn--pale:hover {
  background: #dfe4fb;
  color: var(--navy-deep);
}

/* ---------- head ---------- */

.head {
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
  padding: 66px 0 56px;
}

.head h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  margin: 0 0 18px;
  max-width: 17ch;
  letter-spacing: -0.01em;
}

.head__sub {
  font-size: 19px;
  max-width: 62ch;
  margin: 0 0 28px;
  color: var(--muted);
}

.head__act {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 34px;
}

.trust {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  font-size: 14.5px;
  color: var(--muted);
}

.trust li {
  position: relative;
  padding-left: 18px;
}

.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--blue);
}

.lede {
  font-size: 19px;
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

/* ---------- the spine: label left, question and answer right ---------- */

.qa {
  padding: 0 0 20px;
}

.qa__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  border-top: 1px solid var(--rule);
  padding: 40px 0 42px;
}

.qa__lbl {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
  padding-top: 10px;
}

.qa__q {
  font-size: clamp(25px, 3.2vw, 34px);
  margin: 0 0 16px;
  max-width: 24ch;
}

.qa__a {
  max-width: 68ch;
  min-width: 0;
}

.qa__a p {
  margin: 0 0 16px;
  font-size: 17.5px;
}

.qa__a p:last-child {
  margin-bottom: 0;
}

/* ---------- the products table, inside an answer ---------- */

.tbl-wrap {
  overflow-x: auto;
  margin: 26px 0 14px;
}

.tbl {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15.5px;
}

.tbl caption {
  text-align: left;
  font-size: 14.5px;
  color: var(--muted);
  padding-bottom: 12px;
  max-width: 74ch;
}

.tbl th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--navy);
  padding: 0 14px 8px 0;
  white-space: nowrap;
}

.tbl td {
  border-bottom: 1px solid var(--hair);
  padding: 13px 14px 13px 0;
  font-variant-numeric: tabular-nums;
  vertical-align: baseline;
}

.tbl td:first-child {
  font-weight: 600;
}

.tbl a {
  text-decoration: none;
  color: var(--navy);
}

.tbl a:hover {
  color: var(--link);
  text-decoration: underline;
}

.tbl tr:hover td {
  background: var(--sheet);
}

/* ---------- lists inside answers ---------- */

.marks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  max-width: 62ch;
}

.marks li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--hair);
  font-size: 16.5px;
}

.marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 14px;
  height: 1px;
  background: var(--blue);
}

.stepsl {
  list-style: none;
  counter-reset: s;
  margin: 24px 0 0;
  padding: 0;
  max-width: 64ch;
}

.stepsl li {
  counter-increment: s;
  position: relative;
  padding: 0 0 20px 44px;
  border-left: 1px solid var(--rule);
  margin-left: 11px;
}

.stepsl li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.stepsl li::before {
  content: counter(s);
  position: absolute;
  left: -11px;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

.stepsl h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--navy);
}

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

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

.section {
  padding: 58px 0;
}

.section--sheet {
  background: var(--sheet);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.h2 {
  font-size: clamp(25px, 3.2vw, 34px);
  margin: 0 0 26px;
}

.prose {
  max-width: 68ch;
}

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

.prose--terms {
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- product page figures ---------- */

.figs {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.figs li {
  background: var(--sheet);
  padding: 16px 18px 18px;
}

.figs b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.figs span {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.tags {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  border: 1px solid var(--rule);
  background: var(--sheet);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--muted);
}

.kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}

/* ---------- navy bands ---------- */

.band {
  background: var(--navy);
  color: #c9cdea;
  padding: 56px 0;
}

.band h2 {
  color: #fff;
  margin: 0 0 14px;
}

.band p {
  max-width: 62ch;
  margin: 0 0 8px;
}

.band a {
  color: #fff;
}

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

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 14.5px;
  color: #a7ace0;
}

.apply__frame {
  margin-top: 26px;
  background: var(--sheet);
  border-radius: 6px;
  overflow: hidden;
}

.apply__frame iframe {
  display: block;
  border: 0;
  width: 100%;
}

/* ---------- voices ---------- */

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

.voices blockquote {
  margin: 0;
  border-top: 2px solid var(--navy);
  padding: 18px 0 0;
}

.voices p {
  margin: 0 0 14px;
  font-size: 16.5px;
}

.voices cite {
  font-style: normal;
  font-size: 14.5px;
  color: var(--muted);
}

.voices cite b {
  display: block;
  color: var(--navy);
  font-weight: 600;
}

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

.foot {
  background: var(--sheet);
  border-top: 1px solid var(--rule);
  padding: 48px 0 0;
  font-size: 15.5px;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}

.foot__logo {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
}

.foot p {
  margin: 0 0 12px;
  max-width: 46ch;
  color: var(--muted);
}

.foot h4 {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot li {
  margin: 0 0 8px;
}

.foot a {
  color: var(--text);
  text-decoration: none;
}

.foot a:hover {
  color: var(--link);
}

.foot__rule {
  border-top: 1px solid var(--rule);
  padding: 18px 24px 30px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: var(--shell);
  margin: 0 auto;
  line-height: 1.6;
}

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

@media (max-width: 900px) {
  .qa__row {
    /* minmax(0,...) and not 1fr: a 1fr track takes its minimum from its
       content, so the products table inside one drags the row -- and the
       page -- wider than the viewport. The harness catches this at 400px. */
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 32px 0 34px;
  }
  .qa__lbl {
    padding-top: 0;
  }
  .figs {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .voices {
    grid-template-columns: 1fr;
  }
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .mast__bar {
    min-height: 0;
    padding: 14px 0;
  }
  .mast__nav {
    gap: 14px;
    font-size: 15px;
  }
  .head {
    padding: 44px 0 40px;
  }
  .section,
  .band {
    padding-top: 42px;
    padding-bottom: 42px;
  }
  .figs {
    grid-template-columns: 1fr;
  }
  .foot__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
