/* global React */
const { useState: useStateFaq } = React;
function FaqSection() {
const items = [
{
q: "How much does it cost?",
a: "A flat monthly fee based on your average monthly business volume — this covers transaction categorization, reconciliation, and monthly statements. We'll quote a number after a quick call about your business.",
},
{
q: "Can you do more than bookkeeping?",
a: "If it's useful, yes — accounts receivable and accounts payable management are available as add-ons depending on what your business needs.",
},
];
const [open, setOpen] = useStateFaq(0);
return (
{items.map((it, i) => (
setOpen(open === i ? -1 : i)}
/>
))}
);
}
function FaqItem({ q, a, open, onClick }) {
return (
);
}
const faqStyles = {
wrap: { padding: "64px 40px", background: "var(--paper-2)" },
inner: { maxWidth: 1100, margin: "0 auto" },
head: { marginBottom: 40 },
h2: { fontFamily: "var(--font-display)", fontSize: 40, fontWeight: 600, lineHeight: 1.15, letterSpacing: "-0.02em", margin: "14px 0 0", color: "var(--ink-900)" },
list: { display: "flex", flexDirection: "column", gap: 0, borderTop: "1px solid var(--border)" },
item: { borderBottom: "1px solid var(--border)" },
itemOpen: {},
row: {
width: "100%", display: "flex", justifyContent: "space-between", alignItems: "center",
padding: "22px 4px", background: "transparent", border: "none", cursor: "pointer",
textAlign: "left", color: "var(--ink-900)",
},
q: { fontFamily: "var(--font-display)", fontSize: 19, fontWeight: 600, letterSpacing: "-0.01em", flex: 1, paddingRight: 16 },
chev: {
width: 30, height: 30, borderRadius: 99, background: "var(--paper-2)",
color: "var(--fg-muted)", display: "inline-flex", alignItems: "center", justifyContent: "center",
transition: "transform 200ms var(--ease-out)", flexShrink: 0, marginLeft: 24,
},
answerWrap: {
overflow: "hidden",
transition: "max-height 280ms var(--ease-out), opacity 200ms var(--ease-out)",
},
answer: {
fontSize: 15.5, lineHeight: 1.65, color: "var(--fg-muted)",
margin: "0 0 22px", maxWidth: 620,
},
};
window.FaqSection = FaqSection;