/* Vital Business Funding.
 *
 * On the ADR-0011 skeleton -- `tools/sitegen/page.css` is the layout. What is
 * here is the palette, the two typefaces, and the one band this site has
 * that the skeleton does not: WHERE CASH FLOW PINCHES.
 *
 * MONTSERRAT OVER OPEN SANS, deep magenta on white with a blush-grey tint.
 * The magenta (#be185d) is 6.0:1 on white and 5.6:1 on the tint, so it can
 * carry the eyebrows and links; fills that carry white text use the deeper
 * #9d174d. On the aubergine ink of the application band the eyebrow is a
 * lighter rose, because the magenta itself is too dark to read there.
 */

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

@font-face {
  font-family: "Open Sans";
  src: url("text.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink: #2a0f1f;
  --ink-soft: #3b1a2d;
  --text: #4a3340;
  --muted: #6c5763;

  --accent: #be185d;
  --accent-deep: #9d174d;
  --accent-wash: #fbecf2;
  --accent-line: #f0c3d6;

  --good: #9d174d;
  --good-wash: #fbecf2;
  --warn: #8a4a10;

  --paper: #ffffff;
  --card: #ffffff;
  --tint: #f8f3f2;
  --rule: #ece1e2;
  --rule-firm: #dac8cb;

  --ask-ink: #dcc7d1;
  --ask-accent: #f59cc4;

  --shadow: 42, 15, 31;

  --display: "Montserrat", system-ui, sans-serif;
  --body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --display-weight: 700;
  --display-track: -0.02em;

  --radius: 14px;
  --radius-sm: 10px;
}

/* ------------------------------------------------------------------ *
 * WHERE CASH FLOW PINCHES -- the band this site has and the skeleton does
 * not, directly under the application on the front page.
 *
 * A trading year, read top to bottom: five moments when money going out
 * arrives before money coming in. Each is a row of three -- the moment's
 * photograph, what happens, and the programme whose shape matches that gap
 * with its own two figures and the reason it fits. A thin magenta rule runs
 * down the photographs' edge and a numbered dot marks each moment on it, so
 * the list reads as a sequence through the year rather than as six cards.
 * ------------------------------------------------------------------ */
.pinch {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  counter-reset: pinch;
}

.pinch__moment {
  counter-increment: pinch;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}

.pinch__moment:last-child {
  border-bottom: 1px solid var(--rule);
}

.pinch__shot {
  position: relative;
  margin: 0;
}

.pinch__shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

/* The moment's number, pinned to the photograph's top-left corner. */
.pinch__shot::before {
  content: counter(pinch, decimal-leading-zero);
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(var(--shadow), 0.25);
}

.pinch__when {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.pinch__say h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 12px;
}

.pinch__say p {
  margin: 0;
  color: var(--text);
}

.pinch__fit {
  background: var(--accent-wash);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 24px;
}

.pinch__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.pinch__prog {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-deep);
  text-decoration: none;
  margin: 0 0 8px;
}
.pinch__prog:hover {
  text-decoration: underline;
}

.pinch__figs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.pinch__figs li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 3px 12px;
}

.pinch__fit p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.pinch__note {
  max-width: 62ch;
  margin: 36px auto 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .pinch__moment {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px 32px;
  }
  .pinch__fit {
    grid-column: 2;
  }
  .pinch__shot {
    grid-row: span 2;
    align-self: start;
  }
}

@media (max-width: 700px) {
  .pinch {
    margin-top: 36px;
  }
  .pinch__moment {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }
  .pinch__shot {
    grid-row: auto;
  }
  .pinch__fit {
    grid-column: auto;
  }
}

/* ---- the shared chrome, painted in this brand's colours ---- */
:root {
  --nav-bg: #ffffff;
  --nav-ink: #2a0f1f;
  --nav-ink-soft: #6c5763;
  --nav-rule: #ece1e2;
  --nav-hover: #be185d;
  --nav-panel: #ffffff;
  --nav-cta-bg: #9d174d;
  --nav-cta-ink: #ffffff;
  --nav-font: var(--display);
  --nav-size: 0.9375rem;
  --nav-weight: 600;
  --nav-track: 0;
  --nav-case: none;

  --foot-bg: #2a0f1f;
  --foot-ink: #cbb6c1;
  --foot-head: #fbf6f8;
  --foot-rule: #4a2a3c;
  --foot-link: #fdf7fa;
}

/* The front door and the application page open with the form, and on a
   phone the form comes first. The head's full top padding would put an empty
   band between the navbar and the first question, so it is taken in. */
@media (max-width: 760px) {
  .head--form {
    padding-top: 18px;
  }
  .head--form .frame {
    padding: 6px;
  }
}

/* The legal pages: numbered heads inside the prose, set smaller than a
   band's h2 so a long document reads as one document. */
.legal h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 2em 0 0.5em;
}
.legal ul {
  padding-left: 1.2em;
}
.legal li {
  margin-bottom: 0.5em;
}
