/*
 * How It Works: the five-stage story, the path toggle, the How to Apply
 * component and their graphics, from the approved prototypes (2026-11-22).
 * Loaded on the How It Works page (page-how-it-works.php) and on the home
 * page (front-page.php); markup in inc/how-it-works.php, behaviour in
 * assets/js/how-it-works.js.
 *
 * Everything lives under .vfw, the wrapper both templates print: its tokens,
 * its base type and every class (vfw-). Nothing here reaches CORE or the
 * rest of the theme, except the few rules at the end, each named for what it
 * touches: the home hero's route once the script runs it, and the How It
 * Works page's own ground.
 */

/* ---------- Tokens ---------- */
.vfw {
	--navy: #0D0F1E;
	--surface: #13152E;
	--card: #1E2044;
	--line: rgba(255, 255, 255, .08);
	--line-strong: rgba(255, 255, 255, .12);
	--text: #FFFFFF;
	--body: rgba(255, 255, 255, .78);
	--muted: rgba(255, 255, 255, .6);
	--grow: #6C63FF;
	--grow-ink: #A9A3FF;
	--start: #BB59E0;
	--start-ink: #C98BEA;
	--route: linear-gradient(90deg, #6C63FF, #8560F4 25%, #A05DEA 50%, #BB59E0 75%, #D656C8);
	--font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: var(--font);
	--ease: cubic-bezier(.22, .61, .36, 1);
	--accent: var(--grow);
	--accent-ink: var(--grow-ink);
	/* What sticks under CORE's sticky header: its height (core.js measures it
	   into --vef-chrome), plus the home section's own progress line. */
	--vfw-chrome: var(--vef-chrome, 88px);
	--vfw-bar: 0px;
	--vfw-stick: var(--vfw-chrome);
}
.vfw[data-path="grow"], .vfw [data-path="grow"] { --accent: var(--grow); --accent-ink: var(--grow-ink); }
.vfw[data-path="start"], .vfw [data-path="start"] { --accent: var(--start); --accent-ink: var(--start-ink); }
/* The five stages each carry their own colour. */
.vfw .vfw-stage-1 { --accent: #6C63FF; --accent-ink: #A9A3FF; }
.vfw .vfw-stage-2 { --accent: #8560F4; --accent-ink: #B19DFB; }
.vfw .vfw-stage-3 { --accent: #A05DEA; --accent-ink: #BF95F2; }
.vfw .vfw-stage-4 { --accent: #BB59E0; --accent-ink: #C98BEA; }
.vfw .vfw-stage-5 { --accent: #D656C8; --accent-ink: #E596D9; }
.vfw[data-path="grow"] [data-for="start"], .vfw [data-path="grow"] [data-for="start"], .vfw[data-path="start"] [data-for="grow"], .vfw [data-path="start"] [data-for="grow"] { display: none; }
/* ---------- Base: the prototype's page type, on the wrapper only ---------- */
.vfw {
	background: var(--navy); color: var(--body);
	font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.vfw, .vfw *, .vfw *::before, .vfw *::after { box-sizing: border-box; }
.vfw h1, .vfw h2, .vfw h3, .vfw p { margin: 0; }
.vfw h1, .vfw h2, .vfw h3 { color: var(--text); font-family: var(--font); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.vfw a { color: inherit; }
.vfw :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* ---------- Buttons ---------- */
.vfw .vfw-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 16px 30px; border-radius: 999px; border: 1px solid transparent;
	font: 700 19px/1.2 var(--font); text-decoration: none; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}
.vfw .vfw-btn:hover { transform: translateY(-2px); }
.vfw .vfw-btn--path { background: var(--accent); color: #fff; box-shadow: 0 14px 40px -14px var(--accent); }
.vfw .vfw-btn--white { background: #fff; color: var(--navy); }
/* ---------- Path toggle ---------- */
.vfw .vfw-toggle {
	position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px;
	padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong);
	box-shadow: 0 30px 80px -40px var(--accent);
}
.vfw .vfw-toggle__thumb {
	position: absolute; top: 6px; left: 6px; width: calc((100% - 18px) / 2); height: calc(100% - 12px);
	border-radius: 999px; background: var(--grow); box-shadow: 0 10px 34px -10px var(--grow);
	transition: transform .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.vfw .vfw-toggle[data-active="start"] .vfw-toggle__thumb {
	transform: translateX(calc(100% + 6px)); background: var(--start); box-shadow: 0 10px 34px -10px var(--start);
}
.vfw .vfw-toggle__tab {
	position: relative; z-index: 1; appearance: none; background: none; border: 0; cursor: pointer;
	padding: 22px 40px; border-radius: 999px; font: 700 21px/1.2 var(--font); color: var(--grow-ink);
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--grow) 65%, transparent);
	transition: color .3s, box-shadow .3s;
}
.vfw .vfw-toggle__tab[data-path="start"] { color: var(--start-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--start) 65%, transparent); }
.vfw .vfw-toggle__tab:hover { color: #fff; }
.vfw .vfw-toggle__tab[aria-selected="true"] { color: #fff; box-shadow: none; }
.vfw .vfw-toggle--compact .vfw-toggle__tab { padding: 13px 26px; font-size: 19px; }
@media (max-width: 899px) {
	.vfw .vfw-toggle__tab { padding: 20px 26px; font-size: 19px; }
}
@media (max-width: 640px) {
	.vfw .vfw-toggle { display: grid; grid-template-columns: 1fr; width: 100%; border-radius: 26px; }
	.vfw .vfw-toggle__thumb { width: calc(100% - 12px); height: calc((100% - 18px) / 2); border-radius: 20px; }
	.vfw .vfw-toggle[data-active="start"] .vfw-toggle__thumb { transform: translateY(calc(100% + 6px)); }
	.vfw .vfw-toggle__tab, .vfw .vfw-toggle--compact .vfw-toggle__tab { padding: 17px 16px; font-size: 19px; border-radius: 20px; }
	.vfw .vfw-toggle--compact .vfw-toggle__tab { padding: 13px 16px; }
}
/* ---------- Graphic panel ---------- */
.vfw .vfw-gfx {
	position: relative; margin: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden;
	background: linear-gradient(180deg, var(--surface), #0F1126);
	border: 1px solid var(--line-strong); border-radius: 20px;
	box-shadow: 0 40px 90px -50px var(--accent);
}
.vfw .vfw-gfx::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(60% 45% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.vfw .vfw-gfx__cap {
	position: relative; display: flex; justify-content: space-between; gap: 12px;
	padding: 14px 18px; border-bottom: 1px solid var(--line);
	font: 700 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.vfw .vfw-gfx__cap b { font-weight: 700; color: var(--accent-ink); }
.vfw .vfw-gfx__body {
	position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 16px; padding: 24px;
	transition: opacity .25s;
}
.vfw .vfw-gfx.is-idle .vfw-gfx__body { opacity: 0; }
/* Graphic parts */
.vfw .vfw-g-label { font: 700 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vfw .vfw-g-card {
	width: 100%; max-width: 380px; padding: 16px; display: grid; gap: 10px;
	background: color-mix(in srgb, var(--card) 62%, transparent);
	border: 1px solid var(--line-strong); border-radius: 14px;
}
.vfw .vfw-g-head { display: flex; justify-content: space-between; align-items: center; min-height: 18px; }
.vfw .vfw-g-timer { font: 700 13px/1 var(--mono); letter-spacing: .08em; color: var(--accent-ink); }
.vfw .vfw-g-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vfw .vfw-g-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	border: 1px solid var(--line-strong); font: 600 13px/1.2 var(--font); color: var(--body);
}
.vfw .vfw-g-chip--on {
	color: #fff; border-color: var(--accent);
	background: color-mix(in srgb, var(--accent) 20%, transparent);
	box-shadow: 0 0 26px -8px var(--accent);
}
.vfw .vfw-g-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); box-shadow: 0 0 10px var(--accent); }
.vfw .vfw-g-check { width: 16px; height: 16px; flex: none; }
.vfw .vfw-g-check path { fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vfw .vfw-g-chip--on .vfw-g-check path { stroke: #fff; }
.vfw .vfw-g-field {
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px;
	padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025);
}
.vfw .vfw-g-field .vfw-g-label { grid-column: 1; }
.vfw .vfw-g-field__val { grid-column: 1; font: 600 14px/1.3 var(--font); color: #fff; justify-self: start; }
.vfw .vfw-g-field .vfw-g-check { grid-column: 2; grid-row: 1 / span 2; }
.vfw .vfw-g-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; font: 600 15px/1.3 var(--font); color: #fff; border-bottom: 1px solid var(--line); }
.vfw .vfw-g-box { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.vfw .vfw-g-sign { display: grid; gap: 2px; padding-top: 4px; }
.vfw .vfw-g-sign svg { width: 100%; max-width: 230px; height: auto; display: block; }
.vfw .vfw-g-stamp {
	justify-self: end; margin-top: 4px; padding: 8px 14px; border: 1.5px solid var(--accent-ink); border-radius: 8px;
	font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink);
	transform: rotate(-6deg); box-shadow: 0 0 24px -8px var(--accent);
}
.vfw .vfw-g-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.vfw .vfw-g-cal__day { text-align: center; font: 700 10px/1.4 var(--mono); color: var(--muted); }
.vfw .vfw-g-cal__cell { position: relative; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .02); }
.vfw .vfw-g-cal__pick { position: absolute; inset: 2px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 14px -2px var(--accent); }
.vfw .vfw-g-legend { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1.2 var(--font); color: var(--body); }
.vfw .vfw-g-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--accent-ink); box-shadow: 0 0 8px var(--accent); }
.vfw .vfw-g-legend i.is-share { background: #fff; box-shadow: none; opacity: .85; }
.vfw .vfw-g-call { display: flex; align-items: center; gap: 12px; padding-top: 4px; font: 600 15px/1.3 var(--font); color: #fff; }
.vfw .vfw-g-call__icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: 0 0 22px -6px var(--accent); }
.vfw .vfw-g-call__icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.vfw .vfw-g-call .vfw-g-check { margin-left: auto; }
.vfw .vfw-g-split { display: grid; gap: 7px; padding-top: 6px; border-top: 1px solid var(--line); }
.vfw .vfw-g-split__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.vfw .vfw-g-split__bar span { display: block; height: 100%; border-radius: 99px; transform-origin: left center; background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, .85)); }
.vfw .vfw-g-split__ends { display: flex; justify-content: space-between; font: 600 12.5px/1.2 var(--font); color: var(--body); }
.vfw .vfw-g-tiles { position: relative; width: 100%; max-width: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.vfw .vfw-g-tiles__frame { position: absolute; inset: 0; border-radius: 16px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: 0 0 40px -12px var(--accent); }
.vfw .vfw-g-tile { position: relative; display: flex; align-items: center; gap: 9px; padding: 13px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); font: 600 14px/1.2 var(--font); color: #fff; }
.vfw .vfw-g-tile--wide { grid-column: 1 / -1; justify-content: center; }
.vfw .vfw-g-svg { display: block; width: 100%; max-width: 420px; height: auto; overflow: visible; }
.vfw .vfw-g-svg--dial { max-width: 340px; }
.vfw .vfw-s-line { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.vfw .vfw-s-dash { stroke-dasharray: 3 5; }
.vfw .vfw-s-accent { fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px var(--accent)); }
.vfw .vfw-s-share { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; stroke-linecap: round; }
.vfw .vfw-s-area { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: none; }
.vfw .vfw-s-node { fill: var(--card); stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.vfw .vfw-s-lit { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent-ink); stroke-width: 1.2; filter: drop-shadow(0 0 6px var(--accent)); }
.vfw .vfw-s-pt { fill: var(--accent-ink); filter: drop-shadow(0 0 5px var(--accent)); }
.vfw .vfw-s-pt--share { fill: #fff; filter: none; }
.vfw .vfw-s-text { fill: #fff; font: 600 13px var(--font); text-anchor: middle; dominant-baseline: central; }
.vfw .vfw-s-mono { fill: rgba(255, 255, 255, .6); font: 700 9.5px var(--mono); letter-spacing: .14em; text-anchor: middle; dominant-baseline: central; }
/* ---------- Graphic motion: the resting state is the finished state ---------- */
.vfw .vfw-gfx .vfw-a { animation-duration: var(--t, .6s); animation-delay: var(--d, 0s); animation-fill-mode: both; animation-timing-function: var(--ease); }
.vfw .vfw-gfx .vfw-a-draw { stroke-dasharray: 1; }
.vfw .vfw-g-svg .vfw-a-pop { transform-box: fill-box; transform-origin: center; }
.vfw .vfw-g-svg .vfw-a-sweep { transform-origin: 200px 120px; }
.vfw .vfw-gfx .vfw-a-sweep, .vfw .vfw-gfx .vfw-a-ring, .vfw .vfw-gfx .vfw-a-chart { animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
.vfw .vfw-gfx .vfw-a-chart { animation-timing-function: linear; }
.vfw .vfw-gfx.is-playing .vfw-a-fade { animation-name: vfw-fade; }
.vfw .vfw-gfx.is-playing .vfw-a-in { animation-name: vfw-in; }
.vfw .vfw-gfx.is-playing .vfw-a-pop { animation-name: vfw-pop; }
.vfw .vfw-gfx.is-playing .vfw-a-draw { animation-name: vfw-draw; }
.vfw .vfw-gfx.is-playing .vfw-a-type { animation-name: vfw-type; }
.vfw .vfw-gfx.is-playing .vfw-a-growx { animation-name: vfw-growx; }
.vfw .vfw-gfx.is-playing .vfw-a-sweep { animation-name: vfw-sweep; }
.vfw .vfw-gfx.is-playing .vfw-a-stamp { animation-name: vfw-stamp; }
.vfw .vfw-gfx.is-playing .vfw-a-fly { animation-name: vfw-fly; }
@keyframes vfw-fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes vfw-in { from { opacity: 0; } }
@keyframes vfw-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes vfw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes vfw-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vfw-growx { from { transform: scaleX(0); } }
@keyframes vfw-sweep { from { transform: rotate(-360deg); } to { transform: rotate(0deg); } }
@keyframes vfw-stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.6); } }
@keyframes vfw-fly { from { opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(.9); } }
@media (prefers-reduced-motion: reduce) {
	.vfw *, .vfw *::before, .vfw *::after { animation: none !important; transition: none !important; }
	.vfw .vfw-gfx.is-idle .vfw-gfx__body { opacity: 1; }
}
.vfw .vfw-g-row { align-items: center; }
/* ---------- Stage graphics: extra parts ---------- */
.vfw .vfw-g-card { position: relative; }
.vfw .vfw-g-card--tight { gap: 2px; padding: 14px 16px; }
.vfw .vfw-g-card--tight .vfw-g-item { padding: 7px 0; }
.vfw .vfw-g-card--tight .vfw-g-item:last-of-type { border-bottom: 0; }
.vfw .vfw-g-card--tight .vfw-g-head { margin-bottom: 6px; }
.vfw .vfw-g-stamp--over { position: absolute; right: 16px; bottom: 18px; margin: 0; background: #14162F; }
.vfw .vfw-g-badge {
	display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px;
	border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent);
	font: 700 14px/1.2 var(--font); color: #fff; box-shadow: 0 0 30px -8px var(--accent);
}
.vfw .vfw-g-badge .vfw-g-check path { stroke: #fff; }
.vfw .vfw-g-row--tight { gap: 7px; }
.vfw .vfw-g-row--tight .vfw-g-chip { padding: 7px 11px; gap: 6px; font-size: 12.5px; }
.vfw .vfw-g-row--tight .vfw-g-check { width: 14px; height: 14px; }
.vfw .vfw-g-prof { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.vfw .vfw-g-prof__logo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.vfw .vfw-g-prof__name { display: grid; gap: 4px; font: 700 16px/1.2 var(--font); color: #fff; }
.vfw .vfw-g-prow { display: flex; align-items: center; gap: 10px; min-height: 38px; border-bottom: 1px solid var(--line); }
.vfw .vfw-g-prow:last-child { border-bottom: 0; }
.vfw .vfw-g-prow .vfw-g-label { flex: 1; }
.vfw .vfw-g-prow__val { font: 600 14px/1.2 var(--font); color: #fff; }
.vfw .vfw-g-thumbs { display: flex; gap: 6px; }
.vfw .vfw-g-thumb { width: 34px; height: 24px; display: grid; place-items: center; border-radius: 5px; background: color-mix(in srgb, var(--accent) 26%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.vfw .vfw-g-thumb svg { width: 22px; height: 16px; fill: var(--accent-ink); opacity: .9; }
.vfw .vfw-g-stars { display: inline-flex; gap: 4px; }
.vfw .vfw-g-stars svg { width: 19px; height: 19px; fill: var(--accent-ink); filter: drop-shadow(0 0 5px var(--accent)); }
.vfw .vfw-g-stars--ask { margin-left: 8px; vertical-align: -3px; gap: 2px; }
.vfw .vfw-g-stars--ask svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; filter: none; }
.vfw .vfw-g-thread {
	width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px;
	border: 1px solid var(--line-strong); border-radius: 24px; background: color-mix(in srgb, var(--card) 45%, transparent);
}
.vfw .vfw-g-msg { font: 600 14px/1.4 var(--font); color: #fff; }
.vfw .vfw-g-msg--sys { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; color: var(--body); }
.vfw .vfw-g-msg--sys svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.vfw .vfw-g-msg--out { align-self: flex-end; max-width: 88%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 24%, var(--surface)); }
.vfw .vfw-g-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.vfw .vfw-g-link svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.vfw .vfw-g-msg--card { align-self: stretch; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); }
/* ---------- The stage story: stacked by default (text, then its graphic) ---------- */
.vfw .vfw-wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--vef-rail, 1240px) + 2 * var(--vef-gutter, 24px)); margin: 0 auto; padding: 0 var(--vef-gutter, 24px); } /* the header's rail (CORE .vef-rail), so the sections line up with the logo */
/* On Home the sections follow the hero's rail instead (.vfh-rail: 1240 of content inside 24px), so they line up with the hero and its route at every width. */
.vfw.vfw--home { --vef-gutter: 24px; }
.vfw.vfw--home .vfw-wrap { box-sizing: content-box; width: auto; max-width: 1240px; }
.vfw .vfw-eyebrow { font: 700 13px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #C98BEA; }
.vfw .vfw-story.is-entering .vfw-steps, .vfw .vfw-story.is-entering .vfw-stage { animation: vfw-panel .5s var(--ease) both; }
@keyframes vfw-panel { from { opacity: 0; transform: translateY(14px); } }
.vfw .vfw-steps { list-style: none; margin: 0; padding: 0; }
.vfw .vfw-step { padding: 44px 0; scroll-margin-top: var(--vfw-bar); }
.vfw .vfw-step__num { font: 700 13px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.vfw .vfw-step__name { margin: 8px 0 0; font-size: clamp(52px, 7vw, 92px); line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.vfw .vfw-step__title { font-size: clamp(26px, 2.8vw, 38px); margin: 18px 0 14px; }
.vfw .vfw-step__body { font-size: clamp(17px, 1.4vw, 19px); max-width: 30em; }
.vfw .vfw-step__more { margin-top: 18px; }
/* The stage's bullets (How It Works page): a small check in the stage's colour. */
.vfw .vfw-step__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; max-width: 32em; }
.vfw .vfw-step__list li { position: relative; padding-left: 28px; color: var(--body); font-size: 16px; line-height: 1.5; }
.vfw .vfw-step__list li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27none%27 stroke=%27white%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4.5 8.2l2.2 2.2 4.8-4.8%27/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.vfw .vfw-step__more a { font: 700 16px/1.2 var(--font); color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 50%, transparent); padding-bottom: 2px; }
.vfw .vfw-step__more a:hover { color: #fff; }
.vfw .vfw-step__gfx { margin-top: 28px; min-height: 400px; display: grid; }
.vfw .vfw-step__gfx:empty, .vfw .vfw-stage { display: none; }
.vfw .vfw-rail {
	list-style: none; margin: 20px calc(-1 * var(--vef-gutter, 24px)) 0; padding: 12px var(--vef-gutter, 24px); display: flex; justify-content: center; gap: 30px;
	position: sticky; top: var(--vfw-chrome); z-index: 5;
	background: rgba(13, 15, 30, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.vfw .vfw-rail li {
	position: relative; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
	border: 1px solid var(--line-strong); font: 700 12px/1 var(--font); color: var(--muted);
	transition: color .4s, border-color .4s, background-color .4s, box-shadow .4s;
}
.vfw .vfw-rail li:not(:last-child)::after {
	content: ""; position: absolute; left: calc(100% + 1px); top: 50%; width: 30px; height: 1px;
	background: var(--line-strong); transition: background-color .4s;
}
.vfw .vfw-rail li.is-done { border-color: var(--accent); color: #fff; }
.vfw .vfw-rail li.is-done::after { background: var(--accent); }
/* The filled disc is darkened so the white numeral passes AA at this size. */
.vfw .vfw-rail li.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 72%, #0D0F1E); color: #fff; box-shadow: 0 0 20px -2px var(--accent); }
/* Pinned graphic on wide screens */
@media (min-width: 900px) {
	.vfw .vfw-story__grid.is-pinned { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.15fr); column-gap: 44px; }
	.vfw .vfw-story--tight .vfw-story__grid.is-pinned { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 64px; }
	.vfw .is-pinned .vfw-steps { grid-column: 1; grid-row: 1; }
	.vfw .is-pinned .vfw-step { min-height: 88vh; padding: 0; display: flex; align-items: center; }
	.vfw .vfw-story--tight .is-pinned .vfw-step { min-height: 58vh; }
	.vfw .vfw-story--tight .is-pinned .vfw-step:first-child { padding-top: 6vh; }
	.vfw .vfw-story--tight .is-pinned .vfw-step:last-child { min-height: 70vh; padding-bottom: 12vh; }
	.vfw .is-pinned .vfw-step__text { opacity: .28; transition: opacity .5s var(--ease); }
	.vfw .is-pinned .vfw-step.is-current .vfw-step__text { opacity: 1; }
	.vfw .is-pinned .vfw-rail, .vfw .is-pinned .vfw-stage { grid-row: 1; position: sticky; top: var(--vfw-stick); height: calc(100vh - var(--vfw-stick)); align-self: start; }
	.vfw .is-pinned .vfw-rail {
		grid-column: 2; margin: 0; padding: 0; flex-direction: column; align-items: center; z-index: 1;
		background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0;
	}
	.vfw .is-pinned .vfw-rail li:not(:last-child)::after { left: 50%; top: calc(100% + 1px); width: 1px; height: 30px; }
	.vfw .is-pinned .vfw-stage { grid-column: 3; display: flex; align-items: center; }
	.vfw .vfw-story--tight .is-pinned .vfw-stage { grid-column: 2; }
	.vfw .vfw-stage__frame { position: relative; width: 100%; height: clamp(440px, 76vh, 560px); }
	.vfw .vfw-story--tight .vfw-stage__frame { height: clamp(420px, calc(100vh - var(--vfw-stick) - 80px), 540px); }
	.vfw .vfw-stage__item {
		position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(18px) scale(.97);
		transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s;
	}
	.vfw .vfw-stage__item .vfw-gfx__body { zoom: 1.12; }
	.vfw .vfw-stage__item.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
@media (min-width: 1200px) {
	.vfw .vfw-stage__item .vfw-gfx__body { zoom: 1.28; }
}
/* ---------- How to Apply: step cards, panel, auto-advance ---------- */
.vfw .vfw-apply { padding: 104px 0; overflow-x: clip; }
.vfw .vfw-apply__head { text-align: center; }
.vfw .vfw-apply__eyebrow { color: var(--accent-ink); }
.vfw .vfw-apply h2 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -.03em; margin: 12px 0 0; }
.vfw .vfw-apply .vfw-toggle { margin-top: 30px; }
.vfw .vfw-apply__panel { margin-top: 48px; }
.vfw .vfw-apply .vfw-apply__panel[hidden] { display: none; }
.vfw .vfw-apply__panel.is-entering { animation: vfw-panel .45s var(--ease) both; }
.vfw .vfw-stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vfw .vfw-stepper__btn {
	position: relative; width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left;
	padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface);
	color: var(--body); font: 700 15.5px/1.3 var(--font); cursor: pointer; overflow: hidden;
	transition: border-color .3s, color .3s, background-color .3s;
}
.vfw .vfw-stepper__btn:hover { color: #fff; border-color: rgba(255, 255, 255, .28); }
.vfw .vfw-stepper__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; border: 1.5px solid var(--accent-ink); transition: background-color .3s, box-shadow .3s; }
.vfw .is-active > .vfw-stepper__btn .vfw-stepper__dot { background: var(--accent-ink); box-shadow: 0 0 10px var(--accent); }
.vfw .vfw-stepper__btn::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
	transform: scaleX(0); transform-origin: left center;
}
.vfw .is-active > .vfw-stepper__btn { color: #fff; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.vfw .is-active > .vfw-stepper__btn::after { transform: none; }
.vfw .is-auto .is-active > .vfw-stepper__btn::after { animation: vfw-fill var(--vfw-interval, 6s) linear both; }
@keyframes vfw-fill { from { transform: scaleX(0); } }
.vfw .vfw-stepper__text { padding: 14px 4px 8px; font-size: 17px; }
.vfw-js .vfw .vfw-stepper__item:not(.is-active) .vfw-stepper__text { display: none; }
.vfw-js .vfw .vfw-stepper__item.is-active .vfw-stepper__text { min-height: 9.6em; animation: vfw-panel .4s var(--ease) both; }
.vfw .vfw-apply__stage { margin-top: 12px; min-height: 400px; display: grid; }
.vfw .vfw-apply__stage:empty { display: none; }
@media (min-width: 900px) {
	/* The list and its items dissolve into the panel grid: cards across the
     top, the active step's text bottom left, the graphic bottom right. */
	.vfw-js .vfw .vfw-apply__panel { display: grid; grid-template-columns: repeat(var(--vfw-steps, 5), minmax(0, 1fr)); gap: 28px 12px; }
	.vfw-js .vfw .vfw-stepper, .vfw-js .vfw .vfw-stepper__item { display: contents; }
	.vfw-js .vfw .vfw-stepper__btn { grid-row: 1; flex-direction: column; gap: 10px; }
	.vfw-js .vfw .vfw-stepper__dot { margin-top: 0; }
	.vfw-js .vfw .vfw-stepper__item.is-active .vfw-stepper__text { grid-row: 2; grid-column: 1 / span 2; align-self: center; min-height: 0; padding: 0 28px 0 4px; font-size: 20px; }
	.vfw-js .vfw .vfw-apply__stage { grid-row: 2; grid-column: 3 / -1; margin: 0; height: 430px; }
}
/* ---------- Closing band ---------- */
.vfw .vfw-band { padding: 96px 0; text-align: center; background: linear-gradient(135deg, #5A52E0, #9A3FC4); color: #fff; }
.vfw .vfw-band h2 { font-size: clamp(30px, 4.4vw, 54px); margin-bottom: 30px; }
@media (max-width: 600px) {
	.vfw .vfw-wrap { padding: 0 var(--vef-gutter, 20px); }
	.vfw .vfw-rail { margin: 20px calc(-1 * var(--vef-gutter, 20px)) 0; padding: 12px var(--vef-gutter, 20px); }
	.vfw .vfw-gfx__body { padding: 20px 16px; }
	.vfw .vfw-apply { padding: 72px 0; }
	.vfw .vfw-band { padding: 72px 0; }
}

/* ---------- Page: How It Works ---------- */
.vfw-page .vfw-hero { padding: 88px 0 0; text-align: center; }
.vfw-page .vfw-hero h1 { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -.035em; margin: 18px 0 20px; }
.vfw-page .vfw-lede { max-width: 660px; margin: 0 auto; font-size: clamp(18px, 1.6vw, 21px); }
.vfw-page .vfw-chooser { padding: 40px 0 0; text-align: center; }
.vfw-page .vfw-story { padding-top: 56px; }
@media (min-width: 900px) {
	.vfw-page .vfw-story { padding-top: 0; }
}
.vfw-page .vfw-apply { background: var(--surface); margin-top: 72px; }
.vfw-page .vfw-apply .vfw-stepper__btn { background: var(--navy); }
.vfw-page .vfw-apply .is-active > .vfw-stepper__btn { background: color-mix(in srgb, var(--accent) 14%, var(--navy)); }
@media (max-width: 600px) {
	.vfw-page .vfw-hero { padding-top: 56px; }
}

/* ---------- Home: the section's own route as a live progress line (once the script has taken over) ---------- */
.vfw .vfw-prog.is-live .vfw-prog__line { position: relative; background: rgba(255, 255, 255, .1); }
.vfw .vfw-prog.is-live .vfw-prog__line::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--route);
	clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); transition: clip-path .5s var(--ease);
}
/* ---------- The five stages section ---------- */
.vfw .vfw-stages { --vfw-bar: 62px; --vfw-stick: calc(var(--vfw-chrome) + var(--vfw-bar)); padding: 104px 0 0; border-top: 1px solid var(--line); background: var(--surface); }
.vfw .vfw-stages__head { max-width: 720px; }
.vfw .vfw-stages__head h2 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -.03em; margin: 12px 0 0; }
.vfw .vfw-stages__lede { margin: 16px 0 0; color: var(--body); font-size: 18px; line-height: 1.6; max-width: 36em; }
.vfw .vfw-stages__more { padding: 48px 0 104px; text-align: center; }
.vfw .vfw-stages__cta { --accent: #6C63FF; font-size: 20px; padding: 20px 40px; }
.vfw .vfw-stages .vfw-gfx { background: linear-gradient(180deg, #0D0F1E, #101229); }
.vfw .vfw-stages .vfw-step__name { font-size: clamp(44px, 5.4vw, 72px); }
.vfw .vfw-stages .vfw-step__body { margin-top: 16px; font-size: clamp(18px, 1.7vw, 22px); max-width: 22em; }
.vfw .vfw-stages .vfw-step { padding: 36px 0; }
/* The section's own route: same gradient, same nodes, pinned while the stages scroll. */
.vfw .vfw-prog {
	position: sticky; top: var(--vfw-chrome); z-index: 6; margin: 24px calc(-1 * var(--vef-gutter, 24px)) 0; padding: 18px var(--vef-gutter, 24px) 10px; height: var(--vfw-bar);
	background: rgba(19, 21, 46, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
/* While it sits under the heading only its divider shows (the hero route
   already shows the five stages); the line, dots and labels slide in once it
   sticks to the top, inside the stages. */
.vfw-js .vfw .vfw-prog { transition: background-color .35s var(--ease); }
.vfw-js .vfw .vfw-prog:not(.is-shown) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.vfw-js .vfw .vfw-prog > * { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.vfw-js .vfw .vfw-prog:not(.is-shown) > * { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.vfw .vfw-prog__line { height: 2px; margin: 0 0 -8px; border-radius: 2px; background: var(--route); }
.vfw .vfw-prog__stops { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vfw .vfw-prog__stop { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; padding-bottom: 4px; text-decoration: none; color: rgba(255, 255, 255, .6); font: 700 12px/1.2 var(--font); letter-spacing: .04em; transition: color .3s; }
.vfw .vfw-prog__node { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--accent); background: #13152E; transition: background-color .35s, box-shadow .35s; }
.vfw .vfw-prog__stop.is-lit { color: var(--accent-ink); }
.vfw .vfw-prog__stop.is-lit .vfw-prog__node { background: var(--accent); box-shadow: 0 0 14px -2px var(--accent); }
.vfw .vfw-prog__stop[aria-current], .vfw .vfw-prog__stop:hover { color: #fff; }
.vfw--home .vfw-apply { border-top: 1px solid var(--line); }
@media (max-width: 600px) {
	.vfw .vfw-prog { margin-inline: calc(-1 * var(--vef-gutter, 20px)); padding-inline: var(--vef-gutter, 20px); }
	.vfw .vfw-prog__stop { font-size: 11px; letter-spacing: 0; }
	.vfw .vfw-stages { padding-top: 72px; }
	.vfw .vfw-stages__more { padding-bottom: 72px; }
}


/* ---------- Outside .vfw: the two places this sheet reaches on purpose ---------- */
/* Home hero route (front-page.php, home.css): a live progress line, only once
   the script has taken it over (.is-live). Without the script it stays as
   home.css draws it. */
.vfh-route.is-live .vfh-route__line { position: relative; background: rgba(255, 255, 255, .1); }
.vfh-route.is-live .vfh-route__line::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit;
	background: linear-gradient(90deg, #6C63FF, #8560F4 25%, #A05DEA 50%, #BB59E0 75%, #D656C8);
	clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); transition: clip-path .5s cubic-bezier(.22, .61, .36, 1);
}
.vfh-route.is-live .vfh-route__stops { position: relative; }
.vfh-route.is-live .vfh-stop__node { background: #0D0F1E; transition: background-color .35s, box-shadow .35s; }
.vfh-route.is-live .vfh-stop.is-lit .vfh-stop__node { background: var(--vfh-stage); box-shadow: 0 0 18px -2px var(--vfh-stage); }
@media (prefers-reduced-motion: reduce) {
	.vfh-route.is-live .vfh-route__line::after, .vfh-route.is-live .vfh-stop__node { transition: none; }
}

/* The How It Works page is dark from the header to the footer: no white
   ground from internal.css around it, and its own closing band takes the
   place of CORE's (as on Apply and Contact, vefusion.css). */
body.vf.vf-page-how-it-works .vef-main { background: #0D0F1E; }
body.vf-page-how-it-works .vef-prefooter { display: none; }

/* Phones and tablets: the application graphic sits inside the open step,
   right under its text (how-it-works.js moves it there). */
@media (max-width: 899px) {
	.vfw-js .vfw .vfw-stepper__item.is-active .vfw-stepper__text { min-height: 0; }
	.vfw .vfw-stepper__item > .vfw-apply__stage { margin: 4px 0 14px; min-height: 360px; }
}
