// FAQ reframed as objection handling
function SBFAQ() {
  const [openIdx, setOpenIdx] = React.useState(0);
  const faqs = [
    {
      q: 'Who qualifies for the guarantee?',
      a: 'Any buyer who purchases an owner-occupied home in the greater Austin area with a Byrne Real Estate Group agent. The home has to be your primary residence ... not a flip, short-term rental, or pure investment property. If you\'re not sure whether your situation qualifies, ask us and we\'ll tell you honestly before you commit.'
    },
    {
      q: 'How long am I covered?',
      a: '18 months from the date of your original closing. That\'s deliberately generous ... long enough to weather a change of seasons, a change of jobs, or a change of heart about the neighborhood. If you need to invoke the guarantee anytime inside that window, you call us and we get to work.'
    },
    {
      q: 'Do I have to explain why I want to sell?',
      a: 'No. There\'s no interrogation, no approval committee, no "acceptable reason" list. If you decide the home isn\'t right ... for any reason ... you invoke the guarantee and we list it. That\'s the whole point of putting it in writing: you don\'t owe anyone an explanation.'
    },
    {
      q: 'What does the free listing actually include?',
      a: 'The Premier Pro marketing package at zero listing cost ... professional photography, Austin/San Antonio/Houston MLS placement, sign & lockbox, full digital marketing channels, a social media campaign, weekly market reports, open house rotation, and the full Byrne team behind you. It\'s the same package we\'d normally charge a 3% listing fee for.'
    },
    {
      q: 'What is the Ultimate Showcase upgrade, and do I need it?',
      a: 'It\'s an optional upgrade at a 1.9% listing fee (normally 4%) that adds premium photography, priority open-house placement, a top-of-search Showcase upgrade, the FLEX CASH Buyer Program, and inclusion in our Deal of the Week newsletter (30,000+ subscribers). Showcase listings average roughly 79% more views and go under contract faster. You do NOT need it to invoke the guarantee ... Premier Pro is included free. It\'s just there if you want maximum exposure.'
    },
    {
      q: 'What is not covered?',
      a: 'The buyer\'s agent commission on the resale (that\'s standard on any listing), any repairs or staging costs, and ... obviously ... the sale price itself. The guarantee covers our listing commission, not market conditions. It also doesn\'t cover flips, short-term rentals, or investment properties. Everything else is spelled out in the written guarantee we sign with you at closing.'
    },
    {
      q: 'Is there a catch on the list price?',
      a: 'No. We list at fair market value, negotiated with you the same way we would any other listing. We don\'t under-price it to move it fast, and we don\'t over-price it to run out the clock on the guarantee window. Our incentive is to get you the best number the market will bear ... because our reputation lives or dies on it.'
    },
    {
      q: 'How much can this save me?',
      a: 'On a typical Austin home, the listing fee we waive is between $10,000 and $25,000 depending on price point. On a $700,000 home, that\'s $21,000 kept in your pocket if you need to invoke the guarantee ... real money, not a rebate coupon.'
    },
    {
      q: 'Does the guarantee cost me anything up front?',
      a: 'Nothing. No sign-up fee, no membership, no retainer, no premium. If you buy an owner-occupied home with us, the guarantee is included in your closing paperwork automatically. If you never need it, it costs you zero. If you do, we honor it.'
    },
    {
      q: 'Why would a brokerage offer this?',
      a: 'Because it forces us to be honest with you. If we help you buy a home we don\'t believe in, we\'re the ones on the hook to sell it. So we\'ve become extremely selective about which homes we recommend, and extremely direct about the ones we don\'t. It aligns our incentives with yours ... which is how it should have always been.'
    },
    {
      q: 'What\'s the first step?',
      a: 'Book a 20-minute Buyer Call. Zero commitment ... we\'ll walk through what you\'re looking for, whether Byrne is the right fit, and how the guarantee would apply in your specific situation. If it isn\'t a fit, we\'ll tell you.'
    },
  ];

  return (
    <section id="faq" className="section">
      <div className="section-inner">
        <div className="section-eyebrow">Objections, welcome</div>
        <h2 className="section-title">
          The questions<br/>
          <em>you're already asking.</em>
        </h2>
        <div className="faq-list">
          {faqs.map((f, i) => (
            <div key={i} className={"faq-item" + (openIdx === i ? " open" : "")}>
              <button className="faq-q" onClick={() => setOpenIdx(openIdx === i ? -1 : i)} aria-expanded={openIdx === i}>
                {f.q}
              </button>
              <div className="faq-a">
                <div className="faq-a-inner">{f.a}</div>
              </div>
            </div>
          ))}
        </div>
      </div>
    </section>
  );
}
window.SBFAQ = SBFAQ;
