// How it works with interactive demo + Availability function HowItWorks({ t }) { const [active, setActive] = useState(0); // Demo content per step const demos = [ [ { who: 'child', label: 'Child', text: t.how.steps[0].d } ], [ { who: 'child', label: 'Child speaks', text: "Didi, photosynthesis kaise hota hai?" }, { who: 'idna', label: 'IDNA understood', text: "Got it — tum puchh rahe ho photosynthesis kaise hota hai. Chalo samjhte hain." } ], [ { who: 'idna', label: 'Example', text: "Ek paudha socho — jaise tumhare ghar ka tulsi ka paudha." }, { who: 'idna', label: 'Concept', text: "Sunlight + paani + carbon dioxide → khana (glucose) + oxygen." }, { who: 'idna', label: 'Check', text: "Ab batao — agar paudhe ko sunlight na mile to kya hoga?" } ], [ { who: 'child', label: 'Child', text: "Samajh nahi aaya…" }, { who: 'idna', label: 'Adapts', text: "Koi baat nahi. Socho tum bina khana khaye kitni der reh sakte ho? Paudha bhi waise hi…" } ] ]; return ( § 03 — {t.how.label} CLICK A STEP {t.how.title} → tap any step to see a live example {t.how.steps.map((s, i) => ( setActive(i)} > {s.n} {s.t} {s.d} ))} {demos[active].map((d, i) => ( {d.who === 'child' ? 'आ' : 'I'} {d.label} {d.text} ))} ); } function Availability({ t }) { return ( ● {t.avail.pilot} {t.avail.live} {t.avail.soon} Class 8 CBSE {t.avail.subjects.map(s => {s})} Class 9 CBSE {t.avail.subjects.map(s => {s})} ); } window.HowItWorks = HowItWorks; window.Availability = Availability;