/* Pearly Locus Finance: the offer, how to apply, and the upload. */

.finance-hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 56rem) {
  .finance-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-9); }
}
.finance-hero__text > * + * { margin-top: var(--space-4); }
.finance-hero__text h1 { font-size: var(--text-4xl); line-height: var(--leading-tight); text-wrap: balance; }
.finance-hero__lede {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--accent);
  text-wrap: balance;
}
.finance-hero__text p:not(.finance-hero__lede):not(.eyebrow):not(.field__hint) {
  max-width: var(--measure);
  color: var(--ink-muted);
  text-wrap: pretty;
}
.finance-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* The terms, as the form states them. The ceiling leads. */
.finance-terms {
  display: grid;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  overflow: hidden;
}
.finance-terms > div {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line);
}
.finance-terms > div:first-child { border-top: 0; }
.finance-terms dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.finance-terms dd { margin: 0; color: var(--ink); }
.finance-terms__lead { background: var(--surface-brand); }
.finance-terms__lead dt { color: var(--on-brand-gold); }
.finance-terms__lead dd {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  color: var(--on-brand-strong);
}

/* How to apply: three numbered steps. */
.finance-steps {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 56rem) {
  .finance-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.finance-steps > li {
  counter-increment: step;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.finance-steps > li::before {
  content: counter(step);
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--accent);
}
.finance-steps h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.finance-steps p, .finance-steps ul { color: var(--ink-muted); font-size: var(--text-sm); }
.finance-steps ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
.finance-steps li li + li { margin-top: var(--space-1); }

/* The upload. */
.finance-card {
  padding: var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.finance-card > p { color: var(--ink-muted); }
.finance-form { display: grid; gap: var(--space-5); }
.finance-file { padding: var(--space-2); cursor: pointer; }

.finance-files {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}
.finance-files li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-sunken);
  border-radius: var(--radius);
}
.finance-files__name { min-width: 0; overflow-wrap: anywhere; }
.finance-files__kind { color: var(--ink-subtle); white-space: nowrap; }
.finance-files li[data-state="sent"] .finance-files__kind { color: var(--accent); }
.finance-files li[data-state="failed"] .finance-files__kind { color: var(--danger); }

.finance-progress { font-size: var(--text-sm); color: var(--ink-muted); }

.finance-done { display: grid; gap: var(--space-3); justify-items: start; }
.finance-done:focus { outline: none; }
.finance-done h3 { font-size: var(--text-xl); }
