"""Builds public/index.html from the approved mockup (tools/mockup-Main.dc.html, Marty 2026-11-16): same copy, colours, fonts and sections; the header and footer come from assets/common.js; the form, pricing buttons, live result and network table are wired. Run: python tools/build-index.py""" import re, os H = os.path.dirname(os.path.abspath(__file__)) src = open(os.path.join(H, 'mockup-Main.dc.html'), encoding='utf8').read() a = src.index(''); b = src.index('') body = src[a:b] def rep(old, new, count=1): global body assert old in body, old[:80] body = body.replace(old, new, count) # form rep('