// FAQ accordion - gold hairline rows, Cormorant question, body slides via height.
const { useState } = React;
const FAQItem = ({ q, a, defaultOpen = false }) => {
const [open, setOpen] = useState(defaultOpen);
return (
);
};
const FAQ = ({ items }) => (
{items.map((it, i) => )}
);
const faqStyles = {
row: {
borderBottom: '1px solid var(--border-soft)',
padding: '24px 0', cursor: 'pointer',
},
head: {
display: 'flex', justifyContent: 'space-between',
alignItems: 'baseline', gap: 24,
},
q: {
fontFamily: 'var(--font-display)', fontSize: 26, lineHeight: 1.2,
color: 'var(--fg-1)', fontWeight: 500, textWrap: 'balance',
},
plus: {
fontFamily: 'var(--font-mono)', fontSize: 22, color: 'var(--fg-accent)',
transition: 'transform 260ms cubic-bezier(0.22,0.61,0.36,1)',
lineHeight: 1, userSelect: 'none',
},
body: {
fontSize: 17, lineHeight: 1.7, color: 'var(--fg-2)',
overflow: 'hidden',
transition: 'max-height 520ms cubic-bezier(0.22,0.61,0.36,1), opacity 260ms, padding-top 260ms',
maxWidth: 760,
},
};
Object.assign(window, { FAQ, FAQItem });