/* Fund Arrow public website. Colours and type follow brand/tokens.css. */
@font-face {
  font-family: Outfit;
  src: url('assets/Outfit-wght.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #172638;
  --brand-blue: #3f6ff6;
  --cyan: #59d5e5;
  --action: #315fd9;
  --action-hover: #244bb8;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --text: #172638;
  --muted: #53647a;
  --line: #dce5f0;
  --on-navy: #ffffff;
  --on-navy-muted: #b9c6e4;
  --on-navy-line: rgba(255, 255, 255, 0.16);
  --radius-control: 12px;
  --radius-card: 20px;
  --header-height: 72px;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font:
    400 1.0625rem/1.6 Outfit,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--action);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--action-hover);
}

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 32px;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: var(--radius-control);
}

.skip-link:focus {
  top: 12px;
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-control);
  background: var(--action);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--action-hover);
  color: #ffffff;
}

.button-small {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.text-link {
  font-weight: 600;
}

.reassurance {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* A check before each item: the pillars under the hero and the checklists. */
.pillars li,
.checklist li {
  position: relative;
  padding-left: 32px;
}

.pillars li::before,
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  background: var(--action);
  -webkit-mask: var(--check) center / contain no-repeat;
  mask: var(--check) center / contain no-repeat;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-height);
}

/* The logo file carries clear space around the mark; trim it so the header stays compact. */
.brand {
  flex: none;
  margin: -14px 0 -14px -9px;
}

.site-nav {
  display: none;
  margin-left: auto;
  gap: 28px;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--action);
}

.header-cta {
  margin-left: auto;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }

  .header-cta {
    margin-left: 8px;
  }
}

@media (max-width: 899px) {
  .header-cta {
    padding-inline: 12px;
    font-size: 0.875rem;
  }
}

/* Narrow phones keep the logo at its 160px minimum; the hero button sits just below. */
@media (max-width: 359px) {
  .header-cta {
    display: none;
  }
}

section[id] {
  scroll-margin-top: var(--header-height);
}

/* Hero */

.hero {
  padding: 48px 0 0;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  max-width: 760px;
}

.lede {
  margin-top: 24px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.hero .reassurance {
  margin-top: 16px;
}

.hero-mark {
  display: none;
}

.pillars {
  display: grid;
  gap: 12px;
  margin: 48px 0 0;
  padding: 28px 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 40px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 80px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }

  .hero-mark {
    display: block;
    justify-self: end;
    width: min(100%, 380px);
  }

  .pillars {
    margin-top: 64px;
  }
}

/* Sections */

.section {
  padding: 64px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 104px 0;
  }
}

.section-paper {
  background: var(--paper);
}

.section-head {
  max-width: 620px;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.125rem;
}

.section-head .reassurance {
  font-size: 0.9375rem;
}

.split {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}

/* How we work: three steps on one path */

.steps {
  display: grid;
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 64px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* The path joining the steps: vertical on a phone, horizontal on wider screens. */
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -32px;
  width: 2px;
  background: var(--line);
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-top: 64px;
  }

  .steps li {
    padding: 72px 0 0;
  }

  .steps li::before {
    top: 0;
  }

  .steps li:not(:last-child)::after {
    left: 56px;
    right: -28px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
}

/* Services and contact checklists */

.checklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.checklist li::before {
  top: calc(14px + 0.2em);
}

.checklist li:last-child {
  border-bottom: 0;
}

/* Financing options */

.options {
  display: grid;
  gap: 0 48px;
  margin: 48px 0 0;
}

.options div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.options dt {
  font-size: 1.1875rem;
  font-weight: 600;
}

.options dd {
  margin: 4px 0 0;
  color: var(--muted);
}

@media (min-width: 720px) {
  .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.note {
  margin-top: 24px;
  color: var(--muted);
}

/* Results: the closed-deal ledger */

.section-navy {
  background: var(--navy);
  color: var(--on-navy);
}

.section-navy .section-head p {
  color: var(--on-navy-muted);
}

.section-navy :focus-visible {
  outline-color: var(--cyan);
}

.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.ledger li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--on-navy-line);
}

.amount {
  font-size: clamp(1.4375rem, 2.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.who {
  color: var(--on-navy-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (min-width: 720px) {
  .ledger {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 32px;
  }
}

@media (min-width: 1040px) {
  .ledger {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 64px;
  }

  .ledger li {
    padding: 28px 0 36px;
  }
}

.disclaimer {
  margin-top: 32px;
  max-width: 640px;
  color: var(--on-navy-muted);
  font-size: 0.875rem;
}

/* Contact */

.contact-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card .button {
  width: 100%;
  margin-top: 24px;
}

.contact-line {
  margin-top: 16px;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 640px) {
  .contact-card {
    padding: 36px;
  }
}

/* Footer */

.site-footer {
  padding: 56px 0 40px;
  background: var(--navy);
  color: var(--on-navy-muted);
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--on-navy);
}

.site-footer :focus-visible {
  outline-color: var(--cyan);
}

.footer-row {
  display: grid;
  gap: 32px;
}

.footer-row img {
  margin: -14px 0 -10px -9px;
}

.footer-row p {
  margin-top: 8px;
}

.site-footer address {
  display: grid;
  gap: 6px;
  font-style: normal;
}

.footer-legal {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--on-navy-line);
  font-size: 0.8125rem;
}

@media (min-width: 900px) {
  .footer-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .site-footer address {
    text-align: right;
  }

  .footer-legal {
    grid-template-columns: auto 1fr;
    gap: 32px;
  }

  .footer-legal p:last-child {
    text-align: right;
  }
}
