/* =========================================================
   Verifund "Request a demo" and "Approve sign-up" pages.
   Tokens and nav are copied from landing.css so these pages
   match the landing page without loading or changing it.
   ========================================================= */
:root {
  --ink: #1c282e;
  --ink-hover: #0f1a1f;
  --teal: #547c86;
  --mist: #acc8c9;
  --olive: #a9b37a;
  --white: #ffffff;
  --bg: #e8edea;
  --bg-soft: #f3f6f3;
  --text-2: #3e4e55;
  --text-3: #56656c;
  --error: #b14545;
  --error-ink: #983b3b;
  /* Field edges need 3:1 against white (WCAG 1.4.11); mist is too faint. */
  --field-border: #7d8e95;
  --border: rgba(28, 40, 46, 0.08);
  --border-strong: rgba(28, 40, 46, 0.14);
  --shadow-card: 0 1px 2px rgba(28, 40, 46, 0.06), 0 12px 32px -12px rgba(28, 40, 46, 0.14);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --max-w-wide: 1680px;
  --max-w-page: 1180px;
  --gutter: 56px;
  --nav-h: 72px;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
main:focus,
[tabindex="-1"]:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-w-page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.specimen {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.4;
}

/* ---------- Nav (as on the landing page) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 246, 243, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__logo {
  width: 28px;
  height: 28px;
}
.nav__wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav__signin {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 0;
  text-decoration: none;
  transition: color 120ms ease;
}
.nav__signin:hover {
  color: var(--teal);
}

/* ---------- Page ---------- */
.page {
  flex: 1;
  padding: 80px 0 112px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "intro card"
    "next card";
  column-gap: 80px;
  row-gap: 48px;
  align-items: start;
}
.intro {
  grid-area: intro;
  padding-top: 8px;
}
.demo-layout > .card {
  grid-area: card;
}
.next {
  grid-area: next;
  max-width: 460px;
}

.intro__title {
  margin: 0 0 24px;
  font-size: clamp(44px, 4.6vw, 72px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.intro__lede {
  margin: 0;
  max-width: 460px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
}

.steps {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--border-strong);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-2);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  padding-top: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

/* ---------- Card ---------- */
.card {
  position: relative;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 36px;
}
.card__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card__title--page {
  margin-bottom: 20px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.card__note {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-3);
}
.card__lede {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

/* ---------- Fields ---------- */
.field {
  margin: 0 0 22px;
}
.field label {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.field__hint {
  margin: -2px 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-3);
}
.input {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input--short {
  max-width: 200px;
}
.input:hover {
  border-color: var(--text-2);
}
.input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-color: var(--ink);
}
.input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}
.input[type="number"] {
  -moz-appearance: textfield;
}
.input[type="number"]::-webkit-inner-spin-button,
.input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.field__error {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--error-ink);
}
.field__error:empty {
  margin: 0;
}

/* Bot trap: off screen, never focusable, hidden from assistive tech. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Messages ---------- */
.alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(177, 69, 69, 0.35);
  border-radius: 10px;
  background: rgba(177, 69, 69, 0.07);
  color: var(--error-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.alert a {
  color: inherit;
}
.loading {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
}
/* The sign-up link Chase can send by hand when the account email fails. */
.manual-link {
  margin: 16px 0 0;
  overflow-wrap: anywhere;
}
.manual-link__url {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--ink);
  user-select: all;
}
.result {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(169, 179, 122, 0.6);
  border-radius: 10px;
  background: rgba(169, 179, 122, 0.16);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn--block {
  width: 100%;
}
.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--ink-hover);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--white);
}
.btn:disabled {
  background: rgba(28, 40, 46, 0.45);
  cursor: not-allowed;
}
.btn.is-busy,
.btn.is-busy:hover {
  background: var(--text-2);
  cursor: progress;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  animation: spin 800ms linear infinite;
}
.is-busy .spinner {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form__fine {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-3);
  text-align: center;
}
.form__fine a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.success__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.success__body {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--text-2);
}

/* ---------- Approval details ---------- */
.narrow {
  max-width: 760px;
}
.details {
  margin: 0 0 28px;
  border-top: 1px solid var(--border-strong);
}
.details__row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.details dt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.details dd {
  margin: 0;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.details a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.details a:hover {
  color: var(--teal);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: 28px 0;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.site-footer__legal {
  margin: 0;
  font-size: 14px;
  color: rgba(172, 200, 201, 0.9);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer__links a {
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mist);
  text-decoration: none;
}
.site-footer__links a:hover {
  color: var(--white);
}
.site-footer :focus-visible {
  outline-color: var(--olive);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
  }
  .demo-layout {
    column-gap: 48px;
  }
}

@media (max-width: 900px) {
  .page {
    padding: 48px 0 80px;
  }
  .demo-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "intro"
      "card"
      "next";
    row-gap: 32px;
  }
  .demo-layout > .card {
    max-width: 600px;
  }
  .intro {
    padding-top: 0;
  }
  .intro__lede {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 32px 0 64px;
  }
  .card {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .intro__title {
    margin-bottom: 16px;
  }
  .input--short {
    max-width: none;
  }
  .details__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2400ms;
  }
  .input,
  .btn,
  .nav__signin {
    transition: none;
  }
}
