/* Lendmind's own look for the connector's pages (the account page, the connector terms, and through
 * login.css the sign-in and consent pages), taken from lendmind.com: a warm paper canvas, near-black
 * ink, Newsreader for headlines with an italic turn, Geist for everything read, Geist Mono for small
 * captions, white cards with a hairline and a long soft shadow, and colour kept for state. Light only,
 * as lendmind.com is, whatever the reader's system setting. */
:root {
  color-scheme: light;
  --canvas: #f6f6f3;
  --panel: #ecece7;
  --raised: #ffffff;
  --hover: #f0f0eb;
  --text: #111311;
  --secondary: #3c403c;
  --muted: #5b5f5a;
  --faint: #9a9d97;
  --line: #dcdcd5;
  --line-soft: #e8e8e2;
  --gold: #c9a86a;
  --accent: #3b5a9a;
  --accent-line: #3b5a9a59;
  --success: #2f6b55;
  --success-bg: #2f6b550f;
  --amber: #7a5a1f;
  --amber-bg: #c9a86a1f;
  --danger: #a8413a;
  --button: #111311;
  --button-text: #ffffff;
  --shadow: 0 30px 60px -40px #0f141259, 0 1px 2px #0f14120a;
  --shadow-bar: 0 10px 30px -18px #0f141259;
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--text);
  font: 400 15px/24px var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}
p,
h1,
h2,
h3,
dl,
dd,
ol,
ul {
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}
button,
input {
  font: inherit;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
h1:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
h1:focus {
  outline: none;
}
::selection {
  background: #c9a86a55;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
svg {
  display: block;
}
.ink-ic {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Frame: a floating bar with the house mark and the serif wordmark, as lendmind.com's. */
.ink-top {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100% - 24px, 1120px);
  min-height: 56px;
  margin: 12px auto 0;
  padding: 8px 20px;
  border: 1px solid #11131114;
  border-radius: 16px;
  background: #f6f6f3cc;
  box-shadow: var(--shadow-bar);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
}
.ink-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
}
.ink-brand-mark {
  width: 20px;
  height: 20px;
  flex: none;
}
.ink-brand-name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
/* Who the product is for, beside the wordmark: Lendmind for Intermediaries. */
.ink-brand-for {
  margin-left: 2px;
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ink-top-meta {
  margin-left: auto;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ink-main {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 16px 72px;
}
.ink-main.ink-prose {
  max-width: 720px;
}
.ink-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.ink-foot a {
  color: inherit;
  text-decoration: none;
}
.ink-foot a:hover {
  color: var(--text);
}
.ink-foot-note {
  flex-basis: 100%;
  color: var(--faint);
  font-size: 12px;
}

/* Type: the serif display with an italic turn, a calm lead, mono captions. */
.ink-display {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-weight: 330;
  letter-spacing: -0.032em;
  text-align: center;
  text-wrap: balance;
}
.ink-display em {
  font-style: italic;
}
.ink-lead {
  max-width: 470px;
  margin: 18px auto 0;
  color: var(--secondary);
  font-size: 17px;
  line-height: 27px;
  text-align: center;
  text-wrap: pretty;
}
.ink-caption {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.ink-muted {
  color: var(--muted);
}

/* The three steps, in a quiet row above the page: done, current, to do. */
.ink-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  list-style: none;
}
.ink-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}
.ink-step + .ink-step::before {
  content: "";
  width: 32px;
  height: 1px;
  margin-right: 2px;
  background: var(--line);
}
.ink-step-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10.5px;
}
.ink-step-mark::after {
  content: attr(data-n);
}
.ink-step-mark .ink-ic {
  position: absolute;
  width: 12px;
  height: 12px;
  stroke-width: 2.25;
  visibility: hidden;
}
.ink-step[data-state="current"] {
  color: var(--text);
  font-weight: 500;
}
.ink-step[data-state="current"] .ink-step-mark {
  border-color: var(--text);
  background: var(--text);
  color: var(--raised);
}
.ink-step[data-state="done"] {
  color: var(--secondary);
}
.ink-step[data-state="done"] + .ink-step::before {
  background: var(--success);
}
.ink-step[data-state="done"] .ink-step-mark {
  border-color: var(--success);
  background: var(--success);
  color: var(--raised);
}
.ink-step[data-state="done"] .ink-step-mark::after {
  content: none;
}
.ink-step[data-state="done"] .ink-step-mark .ink-ic {
  visibility: visible;
}

/* A step of the page: its headline, its lead, then one card. It rises in as it appears. */
.ink-stage {
  animation: ink-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes ink-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.ink-card {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
  box-shadow: var(--shadow);
}
.ink-card > * + *,
.ink-card form > * + * {
  margin-top: 16px;
}
.ink-card p {
  color: var(--secondary);
}
.ink-rule {
  height: 1px;
  border: 0;
  background: var(--line-soft);
}

/* Notices: a slim banner above the headline. */
.ink-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 28px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  color: var(--secondary);
  font-size: 14px;
  line-height: 22px;
}
.ink-notice::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.ink-notice-amber {
  border-color: #c9a86a66;
  background: #fbf8f1;
}
.ink-notice-amber::before {
  background: var(--gold);
}

/* Forms. */
.ink-label {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.ink-input {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 8px !important;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.12em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ink-input::placeholder {
  color: #c4c6c0;
  letter-spacing: 0.12em;
}
.ink-input:hover {
  border-color: #c8c8c0;
}
.ink-input:focus {
  border-color: var(--text);
  outline: none;
  box-shadow: 0 0 0 4px #1113110f;
}
.ink-hint {
  margin-top: 8px !important;
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 20px;
}
.ink-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fafaf8;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 19px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ink-check:hover {
  border-color: var(--line);
}
.ink-check:has(input:checked) {
  border-color: #2f6b5540;
  background: var(--success-bg);
}
.ink-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--text);
  cursor: pointer;
}
.ink-check-title {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.ink-draft {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid #c9a86a66;
  border-radius: 4px;
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.ink-draft:empty {
  display: none;
}
.ink-error {
  color: var(--danger) !important;
  font-size: 14px;
}

/* Buttons: lendmind.com's ink button with its arrow, and a quiet outline. */
.ink-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid var(--button);
  border-radius: 12px;
  background: var(--button);
  color: var(--button-text);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ink-button:hover {
  background: #2a2d2a;
  box-shadow: 0 10px 24px -14px #0f1412a6;
}
.ink-button:active {
  transform: translateY(1px);
}
.ink-button:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}
.ink-button .ink-ic {
  width: 17px;
  height: 17px;
  transition: transform 0.15s;
}
.ink-button:hover .ink-ic:last-child {
  transform: translateX(2px);
}
.ink-button-quiet {
  border-color: #11131140;
  background: transparent;
  color: var(--text);
}
.ink-button-quiet:hover {
  background: var(--hover);
  box-shadow: none;
}
.ink-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}
.ink-link:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

/* The firm, once found: a small block with its name, FRN and Register status. */
.ink-firm {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ink-firm-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--panel);
  color: var(--secondary);
}
.ink-firm-mark .ink-ic {
  width: 20px;
  height: 20px;
}
.ink-firm-body {
  flex: 1;
  min-width: 0;
}
.ink-firm-name {
  color: var(--text);
  font-weight: 500;
}
.ink-firm-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.ink-firm-meta dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ink-firm-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
}
.ink-firm-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* The monthly invoice under the launch offer, drawn as it will arrive. */
.ink-invoice {
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fafaf8;
}
.ink-invoice-rows {
  margin-top: 10px !important;
}
.ink-invoice-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.ink-invoice-rows > div + div {
  border-top: 1px solid var(--line-soft);
}
.ink-invoice-rows dt {
  min-width: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 21px;
}
.ink-invoice-rows dt small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 19px;
}
.ink-invoice-rows dd {
  flex: none;
  color: var(--text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ink-invoice-rows .ink-invoice-discount dd {
  color: var(--success);
}
.ink-invoice-rows .ink-invoice-total {
  align-items: center;
  padding-top: 12px;
}
.ink-invoice-total dt {
  color: var(--text) !important;
  font-weight: 500;
}
.ink-invoice-total dd {
  font-family: var(--serif);
  font-size: 36px !important;
  line-height: 1;
  font-weight: 330;
  letter-spacing: -0.02em;
}

/* The price without the launch offer. */
.ink-price {
  color: var(--muted) !important;
  font-size: 14px;
}
.ink-price strong {
  margin-right: 4px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  font-weight: 330;
  letter-spacing: -0.02em;
}
#payment-terms,
#payment-offer {
  font-size: 13.5px;
  line-height: 21px;
}

/* A plain list of two facts: the firm and the plan, once set up. */
.ink-rows > div {
  display: flex;
  gap: 16px;
  padding: 10px 0;
}
.ink-rows > div + div {
  border-top: 1px solid var(--line-soft);
}
.ink-rows dt {
  flex: none;
  width: 72px;
  color: var(--muted);
  font-size: 14px;
}
.ink-rows dd {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

/* What to do next, numbered as lendmind.com numbers its steps. */
.ink-howto {
  list-style: none;
  counter-reset: howto;
}
.ink-howto li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  color: var(--secondary);
  counter-increment: howto;
}
.ink-howto li + li {
  border-top: 1px solid var(--line-soft);
}
.ink-howto li::before {
  content: "0" counter(howto);
  flex: none;
  width: 22px;
  padding-top: 1px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
}
.ink-howto strong {
  color: var(--text);
  font-weight: 500;
}

/* Waiting: a hairline that runs while Stripe confirms. */
.ink-progress {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line-soft);
}
.ink-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 2px;
  background: var(--text);
  animation: ink-run 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes ink-run {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
.ink-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 64px 0;
  color: var(--muted);
  font-size: 14px;
}
.ink-loading::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: ink-pulse 1.2s ease-in-out infinite;
}
@keyframes ink-pulse {
  50% {
    opacity: 0.25;
  }
}

/* The terms: the same frame, set as reading text. */
.ink-prose h1 {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.05;
  font-weight: 330;
  letter-spacing: -0.03em;
}
.ink-prose .ink-meta {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ink-prose .ink-lead {
  max-width: none;
  margin: 20px 0 0;
  text-align: left;
}
.ink-prose section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ink-prose h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 32px;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.ink-prose section p,
.ink-prose section ul {
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: 15.5px;
  line-height: 26px;
}
.ink-prose section ul {
  padding-left: 22px;
}
@media (max-width: 560px) {
  .ink-top {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 8px 14px;
  }
  .ink-brand-for {
    display: none;
  }
  .ink-main {
    padding-top: 36px;
  }
  .ink-display {
    font-size: 42px;
  }
  .ink-lead {
    font-size: 16px;
    line-height: 25px;
  }
  .ink-steps {
    gap: 6px;
    margin-bottom: 28px;
  }
  .ink-step + .ink-step::before {
    width: 14px;
  }
  .ink-step-label {
    font-size: 12.5px;
  }
  .ink-card {
    margin-top: 28px;
    padding: 20px;
    border-radius: 16px;
  }
  .ink-firm-mark {
    display: none;
  }
  .ink-invoice {
    padding: 14px 16px;
  }
  .ink-prose h1 {
    font-size: 36px;
  }
}

/* What the body's data-offer leaves showing: the launch offer's words, or the card's. The script sets it. */
body:not([data-offer="launch"]) .ink-when-launch,
body[data-offer="launch"] .ink-when-card {
  display: none !important;
}
.ink-button > span {
  display: contents;
}
.ink-progress {
  max-width: 200px;
  margin: 40px auto 0;
}
.ink-loading[data-failed]::before {
  animation: none;
  background: var(--danger);
}
