/* ==========================================================================
   Velocity by MedShift — Lending pages (Velocity Lending + Banks & Brokers)
   Scoped styles for the green-accent lending family. Reuses the global
   vel-* system from velocity.css; adds velp-l-* for lending-only patterns.
   ========================================================================== */

/* ---------- shared section rhythm ---------- */

.velp-l-section { padding: 92px 0; }
.velp-l-section--soft { background: var(--vel-bg-soft); }
.velp-l-center { text-align: center; }
.velp-l-center .vel-section-sub { margin-left: auto; margin-right: auto; max-width: 600px; }
.velp-l-center .vel-eyebrow { text-align: center; }

/* ==========================================================================
   Hero (copy left, 3-phone stack right)
   ========================================================================== */

.velp-l-hero {
	background: #fff;
	padding: 72px 0 84px;
	overflow: hidden;
}

.velp-l-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.velp-l-hero-title {
	/* Export measures 55px on its 1120px frame (ink height + width both cross-
	   checked against the render), ramping to the 64px global H1 above 1300px. */
	font-size: clamp(34px, 4.91vw, 55px);
	line-height: 1.05;
	/* Greedy wrapping matches the export line for line; do NOT add
	   text-wrap:balance, it re-breaks "built for device" (2026-08-10). */
	font-weight: 700;
	color: var(--vel-navy);
	letter-spacing: -0.035em;
	margin: 0 0 20px;
}

.velp-l-hero-sub {
	font-size: 18px;
	line-height: 1.5;
	max-width: 480px;
	margin: 0 0 24px;
}

.velp-l-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.velp-l-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 3-phone stack */
.velp-l-phone-stack {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
}


/* ==========================================================================
   Logo strip with a label above (Trusted by…)
   ========================================================================== */

.velp-l-trust { background: #fff; padding: 40px 0 12px; }
.velp-l-trust-label {
	text-align: center;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--vel-slate-light);
	margin-bottom: 24px;
}

.velp-l-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(20px, 4vw, 44px);
}

.velp-l-logos span {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #b9c2ce;
}

/* ==========================================================================
   Green checklist
   ========================================================================== */

.velp-l-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.velp-l-check li {
	position: relative;
	padding-left: 28px;
	font-size: 16px;
	font-weight: 400;
	color: var(--vel-slate);
	line-height: 1.5;
}

.velp-l-check li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239EC96C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 6'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* ==========================================================================
   Two-column split (copy + visual)
   ========================================================================== */

.velp-l-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 6vw, 76px);
	align-items: center;
}

.velp-l-split .vel-h2 { margin-bottom: 16px; }
.velp-l-split-copy .vel-h2 { max-width: 470px; }
.velp-l-split-copy .vel-section-sub { margin-bottom: 26px; }
.velp-l-split-visual { display: flex; justify-content: center; }

/* Screenshot visuals inside a split column (image widgets). */
.velp-l-split-visual .elementor-widget-image { width: 100%; }
.velp-l-split-visual img { display: block; width: 100%; height: auto; }

/* Security / proof badges */
.velp-l-badges { display: grid; gap: 12px; margin-top: 24px; }

.velp-l-badge {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--vel-line);
	border-radius: 14px;
	padding: 16px 18px;
}

.velp-l-badge-icon {
	flex: 0 0 40px;
	height: 40px;
	border-radius: 10px;
	background: #eafefb;
	color: var(--vel-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.velp-l-badge-icon svg { width: 20px; height: 20px; }
.velp-l-badge strong { display: block; font-size: 16px; font-weight: 700; color: var(--vel-navy); }
.velp-l-badge span { font-size: 12.5px; color: var(--vel-slate); }

/* ==========================================================================
   Feature cards (why-lending) — reuses vel-cards-3 / vel-card
   ========================================================================== */

.velp-l-features .vel-card-icon { background: #d7efff; color: var(--vel-navy); }

/* Every green accent on the lending pages samples to #9EC96C in the export. */
.vel-main .vel-eyebrow--green { color: var(--vel-green); }

/* ==========================================================================
   Who it's for — persona photo cards
   ========================================================================== */

.velp-l-persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.velp-l-persona-grid--2 { grid-template-columns: repeat(2, 1fr); }
/* The two-up cards keep the export's 410px text measure inside a 509px card. */
.velp-l-persona-grid--2 .velp-l-persona-body p,
.velp-l-persona-grid--2 .velp-l-persona-list { max-width: 410px; }

.velp-l-persona {
	background: #fff;
	/* border: 1px solid var(--vel-line); */
	border-radius: var(--vel-radius);
	/* Figma drop shadow: X 0, Y 14, blur 34, spread 0, #0E2037 @ 8% */
	box-shadow: 0 14px 34px 0 rgba(14, 32, 55, 0.08);
	overflow: hidden !important;
	text-align: left;

}

.velp-l-persona-photo { height: 197px; background: #eef1f6; }

.velp-l-persona-body { padding: 24px 26px 28px; }
.velp-l-persona-body h3 { font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--vel-navy); margin: 0 0 10px; }
.velp-l-persona-body p { font-size: 16px; line-height: 1.6; margin: 0; }

.velp-l-persona-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }

.velp-l-persona-list li {
	position: relative;
	padding-left: 18px;
	font-size: 16px;
	font-weight: 400;
	color: var(--vel-slate);
	line-height: 1.6;
}

.velp-l-persona-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--vel-slate-light);
}

/* ==========================================================================
   How it works — numbered steps
   ========================================================================== */

.velp-l-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }

/* Centered orphan row.
   The 3-up grid leaves a short last row whenever the step count isn't a
   multiple of 3 — Banks & Brokers has 5, so 04/05 would sit left-aligned
   under 01/02. The design centers that row instead.

   Done with a 6-column track (each card spans 2) so a partial row can be
   offset by one column, which a 3-column grid cannot express. The rules are
   quantity queries keyed off :nth-last-child, so they only fire for the
   remainder they name and the 6-step Velocity Lending page (an exact 3x2,
   no orphan row) is left untouched. */
.velp-l-steps { grid-template-columns: repeat(6, 1fr); }
.velp-l-steps > * { grid-column: span 2; }

/* Remainder of 2: the final pair shifts half a card right (spans cols 2-3
   and 4-5). Matches the last child when it is 3n+2 deep from the end. */
.velp-l-steps > :nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2; }

/* Remainder of 1: a lone last card centers over the middle column. */
.velp-l-steps > :nth-child(3n + 1):last-child { grid-column: 3 / span 2; }

.velp-l-step {
	background: #fff;
	border: 1px solid var(--vel-line);
	border-radius: var(--vel-radius);
	/* Figma drop shadow: X 0, Y 14, blur 34, spread 0, #0E2037 @ 8% */
	box-shadow: 0 14px 34px 0 rgba(14, 32, 55, 0.08);
	padding: 26px 26px 28px;
}

.velp-l-step-num { display: block; font-size: 26px; font-weight: 700; color: var(--vel-green); margin-bottom: 12px; }
.velp-l-step h3 { font-size: 16.5px; font-weight: 600; color: var(--vel-navy); margin: 0 0 9px; }
.velp-l-step p { font-size: 16px; line-height: 1.6; margin: 0; }

/* ==========================================================================
   Stats band (global .vel-stats, lending-page measurements)
   ========================================================================== */

.vel-main .vel-stats { padding: 80px 0; }
.vel-main .vel-stats .vel-eyebrow--light { color: #d7efff; }
.vel-main .vel-stat strong { font-size: clamp(34px, 4.75vw, 54px); }
.vel-main .vel-stat span { font-size: 13px; }

/* ==========================================================================
   Quote band (single centered testimonial)
   ========================================================================== */

.velp-l-quote { background: var(--vel-bg-soft); padding: 72px 0; text-align: center; }

/* Export: FAQ dividers and the quote both measure 760px of content, and the
   FAQ answer is body copy at 16px across the full measure. */
.velp-l-quote .vel-container--narrow,
.velp-lx-faq .vel-container--narrow { max-width: 808px; }
.velp-lx-faq .vel-faq-item p { font-size: 16px; max-width: 100%; }

.velp-l-quote blockquote {
	max-width: 780px;
	margin: 0 auto 18px;
	padding: 0;
	border: 0;
	background: none;
	font-size: clamp(18px, 1.8vw, 20px);
	line-height: 1.3;
	font-weight: 700;
	color: var(--vel-navy);
}

.velp-l-quote figcaption strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--vel-navy); }
.velp-l-quote figcaption span { font-size: 12.5px; color: var(--vel-slate); }

/* ==========================================================================
   CTA (left copy, right action) navy card
   ========================================================================== */

.velp-l-cta { padding: 24px 0 100px; }

.velp-l-cta-card {
	position: relative;
	background: linear-gradient(90deg, var(--vel-navy) 0%, #16365c 100%);
	border-radius: 24px;
	box-shadow: var(--vel-shadow);
	padding: 72px 44px;
	display: grid;
	grid-template-columns: 1.5fr auto;
	gap: 32px;
	align-items: center;
	overflow: hidden;
}
/* .page-id-21516 .velp-l-cta-card{
	padding-block: 72px;
} */

.velp-l-cta-card h2 { font-size: clamp(22px, 2.3vw, 26px); font-weight: 700; letter-spacing: -0.01em; color: #fff; margin: 0 0 12px; }
.velp-l-cta-card p,
.velp-l-cta-card .elementor-widget-text-editor p { max-width: 520px; margin: 0; font-size: 16px; line-height: 1.6; color: #c8d8ec; }
.velp-l-cta-card p a { color: var(--vel-green) !important; font-weight: 700; text-decoration: none; }
.velp-l-cta-actions { position: relative; z-index: 2; }

/* Same watermark as .vel-cta-deco (velocity.css): four 12%-white pill bars on a
   shared baseline inside the card; the fourth is the container's ::after. */
.velp-l-cta-deco {
	position: absolute;
	right: -2px;
	bottom: 40px;
	display: flex;
	align-items: flex-end;
	gap: 10px;
}

.velp-l-cta-deco i,
.velp-l-cta-deco::after {
	width: 11px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
}

/* The fourth bar is a pseudo-element only where the markup ships three <i>. */
.velp-l-cta-deco:not(:has(i:nth-child(4)))::after { content: ''; height: 120px; }
.velp-l-cta-deco i:nth-child(1) { height: 50px; }
.velp-l-cta-deco i:nth-child(2) { height: 100px; }
.velp-l-cta-deco i:nth-child(3) { height: 80px; }
.velp-l-cta-deco i:nth-child(4) { height: 120px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.velp-l-hero-grid { grid-template-columns: 1fr; }
	.velp-l-hero-visual { order: -1; }
	.velp-l-split { grid-template-columns: 1fr; }
	.velp-l-split-visual { order: 2; }
	/* 2-up: 4 tracks so a trailing odd card can center across the middle two.
	   The 3-up centering rules above are cancelled — at this width the
	   remainder that matters is out of 2, not 3. */
	.velp-l-steps { grid-template-columns: repeat(4, 1fr); }
	.velp-l-steps > *,
	.velp-l-steps > :nth-child(3n + 1):nth-last-child(2),
	.velp-l-steps > :nth-child(3n + 1):last-child { grid-column: span 2; }
	.velp-l-steps > :nth-child(2n + 1):last-child { grid-column: 2 / span 2; }
	.velp-l-persona-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
	.velp-l-persona-grid--2 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
	.velp-l-cta-card { grid-template-columns: 1fr; }
	/* .page-id-21516 .velp-l-cta-card{
	padding-block: 40px;
} */
}

@media (max-width: 620px) {
	.velp-l-section { padding: 48px 0; }
	/* Single column: every card spans the full track, no centering to do. */
	.velp-l-steps { grid-template-columns: 1fr; }
	.velp-l-steps > *,
	.velp-l-steps > :nth-child(3n + 1):nth-last-child(2),
	.velp-l-steps > :nth-child(3n + 1):last-child,
	.velp-l-steps > :nth-child(2n + 1):last-child { grid-column: 1 / -1; }

}
