/* Elite Funders apply funnel — brand-aligned with elitefunders.com */

:root {
  /* Brand tokens lifted from elitefunders.com */
  --ink: #070E1C;
  --ink-2: #0E1A30;
  --ink-3: #1B2B47;

  --blue: #1549C8;
  --blue-2: #1E5AE8;
  --blue-pale: #EEF3FF;
  --blue-dark: #0D35A0;

  --green: #00A878;
  --green-pale: #E8FDF6;

  --white: #FFFFFF;
  --off: #F5F8FC;
  --g50: #F8FAFD;
  --g100: #EEF2F8;
  --g200: #DDE6F2;
  --g300: #C3CFDF;
  --g400: #8A9AB4;
  --g600: #4F627A;
  --g800: #1E2D40;

  --red: #C8364E;

  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --r-2: 8px;
  --r-3: 12px;
  --r-4: 14px;
  --r-full: 999px;

  --shadow-1: 0 1px 3px rgba(7, 14, 28, .08), 0 4px 16px rgba(7, 14, 28, .06);
  --shadow-2: 0 4px 24px rgba(7, 14, 28, .10), 0 16px 48px rgba(7, 14, 28, .08);
  --shadow-blue: 0 4px 16px rgba(21, 73, 200, .25);

  --max: 600px;
  --nh: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--off);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; flex-direction: column; min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* Header (dark navy like marketing site) */
.app-header {
  position: sticky; top: 0; z-index: 10;
  height: var(--nh);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; align-items: center;
}
.app-header-inner {
  max-width: 1100px; width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.app-brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px; letter-spacing: -.3px;
  color: var(--white);
}
.app-brand-mark {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
}
.app-help { color: rgba(255, 255, 255, .72); font-size: 13.5px; font-weight: 500; }
.app-help a { color: var(--white); font-weight: 600; }

/* Progress */
.progress {
  height: 3px;
  background: var(--g100);
  position: sticky;
  top: var(--nh);
  z-index: 5;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-2) 100%);
  transition: width .25s ease;
}

main { flex: 1; padding: 48px 24px 96px; }

.step {
  max-width: var(--max);
  margin: 0 auto;
}

.step-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.step-eyebrow::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
h1 em { font-style: italic; color: var(--blue); }

.step-sub { color: var(--g600); font-size: 17px; margin-bottom: 32px; }

/* Choice grid (large tappable cards) */
.choice-grid { display: flex; flex-direction: column; gap: 12px; }
.choice {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-1);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: all .15s ease;
}
.choice:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.choice:focus-visible { outline: 3px solid var(--blue-pale); outline-offset: 2px; }
.choice.selected { border-color: var(--blue); background: var(--blue-pale); }
.choice-title { font-weight: 600; }
.choice-sub { color: var(--g600); font-size: 13.5px; margin-top: 2px; font-weight: 400; }
.choice .arrow {
  width: 24px; height: 24px;
  color: var(--g400);
  transition: transform .2s, color .2s;
}
.choice:hover .arrow, .choice.selected .arrow { color: var(--blue); transform: translateX(2px); }

/* Form fields */
.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--g200);
  border-radius: var(--r-2);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-pale);
}
.field-hint { font-size: 12.5px; color: var(--g600); margin-top: 6px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 540px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}

/* Slider */
.slider-wrap { padding: 24px 0; }
.slider-display {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
input[type=range] {
  width: 100%; appearance: none;
  height: 6px;
  background: var(--g200);
  border-radius: var(--r-full);
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  box-shadow: var(--shadow-blue);
}
input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-blue);
}
.muted { color: var(--g600); font-size: 13px; }

/* Buttons */
.actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.btn {
  padding: 14px 24px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--r-2);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-blue);
  transition: all .15s ease;
}
.btn:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(21, 73, 200, .35); }
.btn:disabled { background: var(--g300); box-shadow: none; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 3px solid var(--blue-pale); outline-offset: 2px; }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--g200);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--g50); border-color: var(--g300); transform: translateY(-1px); box-shadow: var(--shadow-1); }

/* Review */
.review {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--r-4);
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-1);
}
.review h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.review dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; }
.review dt { color: var(--g600); font-size: 14px; }
.review dd { font-weight: 500; font-size: 14px; word-break: break-word; }

/* Statement uploads */
.upload-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: var(--white);
  border: 1.5px dashed var(--g300);
  border-radius: var(--r-4);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .15s ease;
}
.upload-row:hover { border-color: var(--blue); background: var(--blue-pale); }
.upload-row.uploaded { border-style: solid; border-color: var(--green); background: var(--green-pale); }
.upload-row .filename { font-weight: 600; font-size: 14px; }
.upload-row .status { color: var(--g600); font-size: 13px; margin-top: 2px; }

/* Consent box */
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px;
  border: 1.5px solid var(--g200);
  border-radius: var(--r-3);
  background: var(--white);
  margin-bottom: 12px;
  cursor: pointer;
}
.consent input[type=checkbox] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--blue);
  margin-top: 2px;
}
.consent span { font-size: 14px; line-height: 1.5; color: var(--ink-3); }

.signature-input {
  width: 100%;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  border: none;
  border-bottom: 2px solid var(--g300);
  background: transparent;
  outline: none;
}
.signature-input:focus { border-bottom-color: var(--blue); }

/* Errors */
.error {
  padding: 12px 16px;
  background: rgba(200, 54, 78, .08);
  border-left: 3px solid var(--red);
  border-radius: var(--r-2);
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  margin-top: 16px;
}

.thank-you { text-align: center; padding: 64px 24px; }
.thank-you .badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--green-pale);
  color: var(--green);
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--g300);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.app-footer {
  padding: 20px 24px;
  background: var(--ink);
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  text-align: center;
}
.app-footer span { margin: 0 4px; }

@media (max-width: 540px) {
  h1 { font-size: 32px; }
  .slider-display { font-size: 40px; }
  .review dl { grid-template-columns: 1fr; gap: 2px 0; }
  .review dt { margin-top: 8px; }
}
