/* BioReveal landing — extra sections shown only on intro/landing */ /* Animated face scan demo — auto-loops to show what selfie step does */ const FaceScanDemo = () => { const [phase, setPhase] = React.useState(0); // 0=idle, 1=scanning, 2=analyzing, 3=done React.useEffect(() => { const seq = [ [0, 600], // idle [1, 2400], // scanning [2, 1800], // analyzing [3, 2200], // done ]; let i = 0; let timer; const tick = () => { const [p, dur] = seq[i]; setPhase(p); timer = setTimeout(() => { i = (i + 1) % seq.length; tick(); }, dur); }; tick(); return () => clearTimeout(timer); }, []); const POINTS = [ { id: "skin", label: "Skin tone", x: 32, y: 38, val: "warm · 7.2" }, { id: "eye", label: "Eye area", x: 68, y: 36, val: "low · 4.1" }, { id: "lip", label: "Lip vitality", x: 50, y: 70, val: "med · 6.0" }, { id: "frame", label: "Facial symmetry", x: 78, y: 58, val: "high · 8.4" }, { id: "glow", label: "Skin glow", x: 22, y: 62, val: "med · 5.7" }, ]; return (
{/* Photo subject for the scan demo */}