/* offer.lendwyse.com — mirrors trylendwyse.com/get-started-dc (values from its production CSS). */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/dm-sans.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/inter-800.woff2) format("woff2"); }

:root {
  --ink: #0a1f1a; --ink-2: #2c3a36; --lw-muted: #4a554f; --ink-muted: #5a6560; --ink-soft: #4a554f;
  --hairline: #e5e2da; --hairline-strong: #cfc9bc; --brand: #0a5c46; --brand-deep: #073e2f; --brand-tint: #e8f2ee;
  --card-shadow: 0 1px 2px #0a1f1a0a, 0 2px 6px #0a1f1a0a; --trust: #3a8357; --destructive: #e40014;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif; }
body { font-weight: 500; color: var(--ink); background: #f7f5f0; -webkit-font-smoothing: antialiased; line-height: 1.5; }
p, h1, h2, h3, ul { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
strong, b { font-weight: 700; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
svg[class^="ic"], svg[class*=" ic"] { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic16 { width: 16px; height: 16px; } .ic18 { width: 18px; height: 18px; } .ic20 { width: 20px; height: 20px; } .ic22 { width: 22px; height: 22px; stroke-width: 2.2 !important; }
.brand { color: var(--brand); font-weight: 700; }
.brand-stroke { color: var(--brand); }

.page { min-height: 100vh; display: flex; flex-direction: column; background: #f7f5f0; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #e5e2da; }
.hdr-in { max-width: 72rem; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.hdr-side { flex: 1; display: flex; align-items: center; }
.hdr-logo { display: block; flex-shrink: 0; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #2c3a36; border-radius: 4px; transition: color .15s; }
.back:hover { color: #0f6e56; }

/* Stepper */
.stepper { background: #fff; border-bottom: 1px solid #e5e2da; }
.stepper-in { max-width: 480px; margin: 0 auto; padding: 28px 24px 32px; }
.dots { position: relative; display: flex; align-items: flex-start; justify-content: space-between; }
.dots-line { position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: #d9d5cb; }
.dot-wrap { position: relative; z-index: 10; }
.dot-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dot-box { position: relative; display: grid; place-items: center; width: 40px; height: 40px; }
.halo { position: absolute; inset: 0; border-radius: 9999px; background: #e8f2ee; display: none; }
.dot { position: relative; display: grid; place-items: center; border-radius: 9999px; font-size: 13px; font-weight: 600; width: 32px; height: 32px;
  background: #fff; color: #5a6560; border: 1.5px solid #d9d5cb; }
.dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dot-label { font-size: 12px; font-weight: 700; color: #1a2622; display: none; white-space: nowrap; }
.dot-wrap.is-active .halo, .dot-wrap.is-active .dot-label { display: block; }
.dot-wrap.is-active .dot { background: #0f6e56; color: #fff; border: 0; }
.dot-wrap.is-done .dot { background: #0a4f3e; color: #fff; border: 0; }

/* Main */
.main { flex: 1; }
.main-in { max-width: 560px; margin: 0 auto; width: 100%; padding: 56px 24px 40px; }
.step-out { animation: stepOut .3s ease-in-out both; }
.step-in { animation: stepIn .3s ease-in-out both; }
@keyframes stepOut { to { opacity: 0; transform: translateX(-60px); } }
@keyframes stepIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }

/* Shared classes (verbatim values) */
.lw-focus:focus-visible { box-shadow: 0 0 0 3px var(--brand-tint); border-color: var(--brand); outline: none; }
.lw-rect-input { border: 1px solid var(--hairline-strong); color: var(--ink); width: 100%; box-shadow: var(--card-shadow); background: #fff; border-radius: 10px;
  outline: none; padding: 18px; font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif; font-size: 16px; transition: border-color .16s, box-shadow .16s; }
.lw-rect-input::placeholder { color: #a8afab; }
.lw-rect-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.lw-rect-input[aria-invalid="true"] { border-color: #c0392b; }
.lw-rect-select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-repeat: no-repeat; background-position: right 18px center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%230A1F1A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>"); }
.sel-chev { appearance: none; -webkit-appearance: none; padding-right: 44px; background-repeat: no-repeat; background-position: right 16px center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23556' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); }
.lw-field-label { text-transform: uppercase; letter-spacing: .08em; color: var(--lw-muted); margin-bottom: 8px; font-size: 12px; font-weight: 600; display: block; }
.lw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lw-stack { display: flex; flex-direction: column; gap: 14px; }
.lw-cta { color: #fff; background: #0f6e56; border-radius: 10px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; width: 100%;
  padding: 16px 18px; font-size: 15px; font-weight: 600; transition: transform .16s, background .16s; }
.lw-cta:hover:not(:disabled) { background: #0c5a47; transform: translateY(-1px); }
.lw-cta:hover:not(:disabled) .lw-cta-arrow { transform: translate(3px); }
.lw-cta-arrow { width: 20px; height: 20px; transition: transform .16s; }
.lw-headline-serif { letter-spacing: -0.03em; color: var(--ink); font-family: Inter, "DM Sans", ui-sans-serif, system-ui, sans-serif; font-size: 42px; font-weight: 800; line-height: 1.05; }
.hl { margin-bottom: 14px; }
.lw-italic-accent { color: var(--brand-deep); font-weight: 800; }
.lw-subhead { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.ferr { margin-top: 4px; font-size: 12px; line-height: 16px; color: #c0392b; }
.alert { background: #fdecea; border: 1px solid #f5c2bd; color: #9b2c20; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 12px; }

/* Entrance animation */
@keyframes lwRise { 0% { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
[data-rise] { opacity: 0; animation: .6s cubic-bezier(.2,.7,.2,1) both lwRise; }
[data-rise="1"] { animation-delay: 40ms; } [data-rise="2"] { animation-delay: .1s; } [data-rise="3"] { animation-delay: .16s; }
[data-rise="4"] { animation-delay: .22s; } [data-rise="5"] { animation-delay: .26s; } [data-rise="6"] { animation-delay: .34s; } [data-rise="7"] { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { [data-rise], .step-in, .step-out { opacity: 1; animation: none; transform: none; } }

/* Trust row */
.trust { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 24px; margin-top: 20px; color: var(--ink-muted); font-size: 13px; }
.trust-i { display: flex; align-items: center; gap: 8px; }
.trust-ic { color: #0f6e56; }

/* Step 1 */
.amt-form { margin-bottom: 24px; }
.amt-box { position: relative; background: #fff; border: 1px solid var(--hairline-strong); border-radius: 14px; padding: 18px 22px; }
.amt-dollar { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 700; color: var(--ink); }
.amt-input { width: 100%; border: none; outline: none; background: transparent; font-size: 22px; font-weight: 600; color: var(--ink); padding-left: 24px; }
.amt-range { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.amt-range.is-err { font-size: 13px; font-weight: 600; color: #b91c1c; }
.qs-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 12px; }
.qs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.qs { padding: 14px 8px; border-radius: 12px; font-size: 15px; font-weight: 600; transition: all 160ms; border: 1.5px solid var(--hairline-strong); background: #fff; color: var(--ink); }
.qs:hover { border-color: var(--brand); transform: translateY(-1px); }
.qs.on { border-color: var(--brand); background: #e6f4ec; color: var(--brand); }
.big-cta { width: 100%; padding: 20px 24px; border-radius: 14px; border: none; background: var(--brand); color: #fff; font-size: 17px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; transition: all 160ms; }
.big-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.proof { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.pill { border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 14px 20px; background: rgba(255,255,255,.4); display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }

/* Step 2 */
.purpose-h { font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 6px; }
.purpose-list { display: flex; flex-direction: column; gap: 12px; }
.purpose { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 16px; border-radius: 12px; background: #fff; color: var(--ink);
  font-weight: 600; font-size: 16px; text-align: left; transition: all 160ms; border: 1.5px solid var(--hairline-strong); }
.purpose svg { color: var(--ink-muted); }
.purpose[aria-pressed="true"] { border-color: var(--ink); }
.purpose[aria-pressed="true"] svg { color: var(--ink); }

/* Chips */
.chip-grid { display: grid; gap: 8px; }
.chip-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.lw-chip { padding: 18px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; text-align: center; transition: all 160ms ease;
  border: 1.5px solid var(--hairline); }
.lw-chip[data-selected="true"] { border-color: var(--ink); }
@media (hover: hover) { .lw-chip[data-selected="false"]:hover, .lw-chip:not([data-selected]):hover { border-color: var(--brand); } }

/* Step 4 */
.inc-dollar { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font: 800 22px Inter, "DM Sans", sans-serif; color: var(--ink-2); line-height: 1; pointer-events: none; }
.inc-month { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--brand-deep); }
.inc-warn { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--destructive); background: rgba(220,38,38,.08); padding: 8px 10px; border-radius: 8px; }
.info-card { margin-top: 8px; border: 1px solid var(--hairline-strong); border-radius: 16px; padding: 20px 22px; background: rgba(0,0,0,.04); }
.badge { display: inline-block; background: var(--brand); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.info-body { margin-top: 14px; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.45; }

/* Step 5 */
.dob-help { margin-bottom: 8px; font-size: 12px; line-height: 16px; color: #333c45; }
.dob-grid { display: grid; gap: 8px; grid-template-columns: 1.5fr 1fr 1.1fr; }
.dob-inline { margin-top: 4px; font-size: 12px; color: var(--destructive); }
.value-strip { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--hairline-strong); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-t { font-size: 14px; font-weight: 700; color: var(--ink); }
.vs-s { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.vs-v { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 2px; }

/* Consent */
.consent { margin-top: 20px; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.consent a, .consent button { text-decoration: underline; color: var(--ink-soft); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Step 7 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.home { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; text-align: center; padding: 16px 10px; border-radius: 14px;
  background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; min-height: 92px; border: 1px solid var(--hairline-strong); }
.home[aria-pressed="true"] { border: 2px solid var(--ink); }

/* 7.5 Pre-qual */
.prequal { padding-top: 8px; }
.pq-h { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 8px; letter-spacing: 0; }
.pq-sub { font-size: 15px; color: var(--ink-soft); margin-bottom: 24px; }
.pq-track { height: 8px; width: 100%; border-radius: 9999px; background: #1a23321a; overflow: hidden; margin-bottom: 24px; }
.pq-bar { height: 100%; width: 0; border-radius: 9999px; background: var(--trust); transition: width 300ms ease-out; }
.pq-list { display: flex; flex-direction: column; gap: 14px; list-style: none; padding: 0; margin: 0; }
.pq-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.pq-list li.is-done { color: var(--ink); }
.pq-list li .ok { color: var(--trust); stroke-width: 3; }
.pq-list li .spin { color: var(--ink-soft); }
.pq-list .pq-last { font-weight: 600; color: var(--ink); }
.pq-list .pq-last .spin { color: var(--ink); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Step 8 */
.submit-err { font-size: 14px; line-height: 20px; color: #c0392b; }
.done-ref { font-size: 13px; color: var(--ink-muted); }
.done:focus { outline: none; }

/* Footer */
.ftr { background: #fff; border-top: 1px solid #e5e2da; margin-top: auto; }
.ftr-in { max-width: 560px; margin: 0 auto; padding: 40px 24px 32px; }
.ftr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.ftr-top img { display: block; }
.ftr-links { display: flex; gap: 32px; font-size: 12.5px; }
.ftr-links a { color: var(--ink-muted); text-decoration: none; }
.ftr-links a:hover { color: #2c3a36; }
.ftr-mid { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e5e2da; margin-top: 24px; padding-top: 20px; font-size: 11.5px; color: var(--ink-muted); }
.ftr-disc { margin-top: 20px; font-size: 11px; line-height: 1.5; color: var(--ink-2); opacity: .8; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.modal-box { position: relative; display: grid; gap: 16px; width: 100%; max-width: 42rem; max-height: 85vh; overflow-y: auto; border: 1px solid #e3ddd3; background: #f7f1e7;
  padding: 24px; box-shadow: 0 10px 15px -3px rgb(0 0 0/.1), 0 4px 6px -4px rgb(0 0 0/.1); border-radius: 8px; animation: zoomIn .2s ease-out; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.95); } }
.modal-x { position: absolute; top: 12px; right: 16px; font-size: 22px; line-height: 1; opacity: .7; }
.modal-x:hover { opacity: 1; }
.modal-title { font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: -0.025em; }
.modal-body { font-size: 14px; color: var(--ink-soft); line-height: 1.6; display: grid; gap: 16px; }

/* Submit overlay */
.overlay { position: fixed; inset: 0; z-index: 100; background: #f7f5f0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.ov-spin { margin-bottom: 32px; display: inline-block; animation: spin 1.6s linear infinite; }
.ov-spin img { display: block; }
.ov-msg { font-size: 22px; line-height: 1.35; color: var(--ink); max-width: 480px; min-height: 32px; transition: opacity 200ms; }
.ov-foot { margin-top: 32px; font-size: 12.5px; color: var(--ink-muted); letter-spacing: .2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 519px) {
  .trust { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
  .hdr-in { padding: 14px 18px !important; }
  .stepper-in { padding: 18px 18px 16px !important; }
  .lw-main-pad { padding: 20px !important; }
  .lw-pair { grid-template-columns: 1fr !important; }
  .lw-headline-serif { font-size: 28px !important; }
  .lw-rect-input { padding: 14px 16px; }
  .lw-field-label { margin-bottom: 6px !important; }
  .chip-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .modal-box { border-radius: 0; } }
