/* Allied Business Financing.
 *
 * White paper, near-black ink, one red. The design is a poster: Archivo Black
 * set very large and very tight against a workhorse text face, with rules
 * doing the dividing rather than boxes, shadows or rounded corners. There is
 * exactly one radius in this file and it is 0.
 *
 * The board is the point. Six full-width rows, each a situation on the left
 * and the option that fits it on the right, divided by hairlines and marked in
 * red on hover. Nothing else in this repository is laid out this way, which is
 * the requirement -- see ADR-0006. In greyscale this reads as a heavy black
 * grotesque over hairline rules, and none of the other seven do.
 */

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

:root {
  --ink: #12121a;
  --ink-soft: #4a4a58;
  --ink-faint: #7b7b88;
  --red: #d81818;
  --red-deep: #a81010;
  --navy: #181860;
  --paper: #ffffff;
  --tint: #f4f4f2;
  --rule: #d8d8d4;
  --rule-hard: #12121a;
  --shell: 1180px;
  --display: "ArchivoBlack", "Arial Black", Impact, sans-serif;
  --text: "PlexSans", -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(--ink);
  font: 400 17px/1.6 var(--text);
  -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(--red);
  outline-offset: 2px;
}

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

.mast {
  background: var(--ink);
  border-bottom: 4px solid var(--red);
}

.mast__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.mast__logo {
  display: flex;
  align-items: center;
  /* The logo is a dark wordmark on transparent and this bar is near-black, so
     it is knocked out to white rather than re-drawn. 202x52 is the largest
     file that has ever existed for this brand. */
  filter: brightness(0) invert(1);
}

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

.mast__nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  flex-wrap: wrap;
}

.mast__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.mast__nav a:hover {
  border-bottom-color: var(--red);
}

.mast__tel {
  font-family: var(--display);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mast__tel:hover {
  color: var(--red);
}

/* ---------- the opening ---------- */

.open {
  padding: 84px 0 60px;
  border-bottom: 1px solid var(--rule);
}

.open h1 {
  font-family: var(--display);
  /* Big, and allowed to be big: this line is the whole hero. */
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 16ch;
}

.open__sub {
  margin: 26px 0 0;
  max-width: 56ch;
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.open__acts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 16px 30px;
  border: 2px solid var(--red);
}

.btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  font-family: var(--display);
  letter-spacing: -0.01em;
}

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

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

.section {
  padding: 74px 0;
}

.section--tight {
  padding: 46px 0;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.lede {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
}

.lede--sub {
  font-family: var(--text);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 34px;
}

.head {
  padding: 70px 0 44px;
  border-bottom: 1px solid var(--rule);
}

.head h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 20ch;
}

.head .lede {
  font-family: var(--text);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 20px 0 0;
}

.head__kicker {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}

/* ---------- the board ---------- */

.board {
  border-top: 2px solid var(--rule-hard);
}

.row {
  display: grid;
  grid-template-columns: 44px 1fr 210px;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.row::before {
  /* The red marker that runs up the left edge on hover. Drawn rather than a
     border so the row does not shift by a pixel when it appears. */
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  bottom: -1px;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.18s ease;
}

.row:hover::before,
.row:focus-visible::before {
  transform: scaleY(1);
}

.row__n {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink-faint);
  letter-spacing: -0.02em;
  padding-top: 6px;
}

.row__when {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 22ch;
}

.row:hover .row__when {
  color: var(--red);
}

.row__what {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 48ch;
}

.row__fix {
  text-align: right;
  padding-top: 4px;
}

.row__prod {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.row__fig {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.row__fig--soft {
  font-family: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-top: 3px;
  letter-spacing: 0;
}

.board--slim .row {
  grid-template-columns: 1fr 210px;
  padding: 18px 0;
}

.board--slim .row__when {
  font-size: 1.1rem;
  max-width: none;
}

.board__note {
  margin: 22px 0 0;
  color: var(--ink-faint);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---------- the application desk ---------- */

.desk {
  /* The one photograph the home page carries, and the black panel sits on it.
     The gradient keeps type legible whatever the crop happens to contain. */
  background:
    linear-gradient(180deg, rgba(18, 18, 26, 0.93), rgba(18, 18, 26, 0.97)),
    url("desk.webp") center / cover no-repeat;
  color: #fff;
  padding: 72px 0;
  border-top: 4px solid var(--red);
}

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

.desk h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

.desk p {
  color: #cfcfd8;
  margin: 0 0 22px;
  max-width: 46ch;
}

.desk__tel {
  font-size: 0.95rem;
}

.desk__tel a {
  font-family: var(--display);
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
}

.ticks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.ticks li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: #e6e6ec;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: var(--red);
}

.ticks--col {
  grid-template-columns: 1fr;
  margin-bottom: 30px;
}

.ticks--col li {
  color: var(--ink-soft);
}

.desk__frame {
  background: #fff;
  border: 1px solid #000;
}

.desk__tab {
  background: var(--red);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px 16px;
}

.desk__frame iframe {
  display: block;
  width: 100%;
  border: 0;
  /* No min-height: a min-height outranks the height the form posts and is how
     a frame ends up taller than its content, or stuck. See tools/forms. */
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--rule-hard);
}

.step {
  padding: 30px 28px 34px 0;
  border-right: 1px solid var(--rule);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step:not(:first-child) {
  padding-left: 28px;
}

.step__n {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--display);
  font-size: 1.22rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.step p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

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

.step li {
  font-size: 0.88rem;
  color: var(--ink-faint);
  padding: 5px 0;
  border-top: 1px solid var(--rule);
}

/* ---------- callout ---------- */

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

.callout h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  max-width: 18ch;
}

.callout p {
  margin: 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

/* ---------- figures ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--rule-hard);
}

.figures div {
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--rule);
}

.figures div:last-child {
  border-right: 0;
}

.figures div:not(:first-child) {
  padding-left: 18px;
}

.figures strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.figures span {
  display: block;
  margin-top: 7px;
  font-size: 0.86rem;
  color: var(--ink-faint);
  line-height: 1.35;
}

/* ---------- about + product ---------- */

.about,
.prod {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 54px;
  align-items: start;
}

.about__text p,
.prod__text p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.about__act {
  margin-top: 26px !important;
}

.about__fig img {
  width: 100%;
  border: 1px solid var(--rule);
}

.prod__text h2 {
  margin-top: 34px;
  font-size: 1.5rem;
}

.prod__side img {
  width: 100%;
  border: 1px solid var(--rule);
  margin-bottom: 0;
}

.specs {
  margin: 0;
  border-top: 2px solid var(--rule-hard);
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}

.specs dt {
  font-size: 0.86rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.specs dd {
  margin: 0;
  font-family: var(--display);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.terms {
  max-width: 76ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  border-left: 4px solid var(--red);
  padding-left: 24px;
}

.terms a {
  color: var(--red);
}

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

.foot {
  background: var(--ink);
  color: #c8c8d2;
  padding: 58px 0 26px;
  border-top: 4px solid var(--red);
  font-size: 0.93rem;
}

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

.foot__say {
  filter: none;
}

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

.foot h4 {
  font-family: var(--display);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

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

.foot li {
  padding: 4px 0;
}

.foot a {
  color: #c8c8d2;
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
  border-bottom: 1px solid var(--red);
}

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

.foot__rule {
  border-top: 1px solid #2c2c38;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #7b7b88;
}

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

@media (max-width: 900px) {
  .desk__grid,
  .about,
  .prod {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .step,
  .figures div {
    border-right: 0;
    padding-left: 0 !important;
    padding-right: 0;
    border-bottom: 1px solid var(--rule);
  }

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

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

  .open {
    padding: 52px 0 42px;
  }

  .row {
    /* The ordinal and the right-hand column stop being columns: on a phone the
       row reads as situation, then answer, then figures. */
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .row__n {
    padding-top: 0;
  }

  .row__fix,
  .board--slim .row__fix {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
  }

  .row__fig,
  .row__fig--soft {
    margin-top: 0;
  }

  .board--slim .row {
    grid-template-columns: 1fr;
  }

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

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

  .mast__nav {
    gap: 16px;
    width: 100%;
    margin-left: 0;
    order: 3;
  }

  .mast__tel {
    margin-left: auto;
  }
}
