// shared.jsx — NavBar, Footer, Section dividers, used by all 3 concepts.
const NavBar = ({ variant = 'warm', activeAnchor = null }) => {
const isInk = variant === 'ink';
const bg = variant === 'cool' ? 'rgba(244,247,249,0.9)' : variant === 'ink' ? 'rgba(28,51,67,0.9)' : 'rgba(250,245,234,0.92)';
const color = isInk ? 'var(--gold-bright)' : 'var(--ink-navy)';
const border = isInk ? 'rgba(231,196,108,0.18)' : 'var(--border-warm)';
const [menuOpen, setMenuOpen] = React.useState(false);
const navLink = (anchor, label, onClick) => {
const isActive = activeAnchor === anchor.replace('#', '');
return (
{label}
);
};
// Order matches the actual scroll order down the page:
// Features (FiveQuestions) → How it works (RealWeekWalkthrough) → Levels.
const sectionLinks = [
['#features', 'Features'],
['#how-it-works', 'How it works'],
['#levels', 'Levels'],
['/login', 'Try the agent'],
];
const menuBg = variant === 'cool' ? '#fff' : variant === 'ink' ? '#1c3343' : 'var(--surface-page-warm)';
return (
TranscriptAgent