import { useState, useEffect, useRef, useCallback } from "react";
// ─── GLOBAL STYLES ────────────────────────────────────────────────────────────
const GlobalStyles = () => (
);
// ─── DATA ─────────────────────────────────────────────────────────────────────
const PRODUCTS = [
{
id: "neuroserge",
name: "NeuroSerge",
tagline: "Advanced Cognitive Support Formula",
emoji: "🧠",
category: "Brain Health",
categorySlug: "brain-health",
rating: 4.7,
reviews: 1284,
score: 93,
badge: "Editor's Choice",
badgeType: "badge-gold",
description: "A premium nootropic blend designed to sharpen focus, enhance memory retention, and support long-term cognitive health.",
longDesc: "NeuroSerge is formulated with clinically studied ingredients — including Bacopa Monnieri, Lion's Mane Mushroom, and Alpha-GPC — to help you think clearer, work faster, and stay mentally sharp throughout the day.",
scores: { Effectiveness: 95, Quality: 92, Value: 88, Safety: 96 },
benefits: ["Improved focus and concentration", "Enhanced memory and recall", "Reduced mental fatigue", "Supports neuroplasticity", "Clean energy without jitters"],
ingredients: ["Bacopa Monnieri (300mg)", "Lion's Mane Mushroom Extract (500mg)", "Alpha-GPC (200mg)", "Phosphatidylserine (100mg)", "Rhodiola Rosea (200mg)", "Vitamin B6 & B12"],
pros: ["Evidence-backed ingredient stack", "Third-party lab tested", "No artificial additives", "Money-back guarantee", "Non-GMO & vegan-friendly"],
cons: ["Premium price point", "Results may take 2–4 weeks", "Not recommended during pregnancy"],
faqs: [
{ q: "How long before I see results?", a: "Most users report noticeable improvements in focus within 1–2 weeks. Full cognitive benefits typically develop over 4–8 weeks of consistent use." },
{ q: "Is NeuroSerge safe to use daily?", a: "Yes, NeuroSerge is formulated for daily use. All ingredients are within safe dosage ranges and have been tested for long-term safety." },
{ q: "Can I take it with coffee?", a: "Yes, many users combine NeuroSerge with their morning coffee. The formula contains no stimulants and complements caffeine well." },
{ q: "Is there a money-back guarantee?", a: "Yes, the manufacturer offers a 60-day money-back guarantee if you're not satisfied with results." }
]
},
{
id: "joinvive",
name: "JoinVive",
tagline: "Premium Joint & Mobility Complex",
emoji: "💪",
category: "Joint Health",
categorySlug: "joint-health",
rating: 4.5,
reviews: 876,
score: 89,
badge: "Top Rated",
badgeType: "badge-blue",
description: "A comprehensive joint support supplement combining glucosamine, chondroitin, and turmeric to restore mobility and reduce discomfort.",
longDesc: "JoinVive targets joint health at multiple levels — reducing inflammation, supporting cartilage repair, and lubricating joints for smoother movement. Ideal for active adults, athletes, and those experiencing age-related joint wear.",
scores: { Effectiveness: 90, Quality: 88, Value: 91, Safety: 94 },
benefits: ["Reduced joint pain and stiffness", "Improved range of motion", "Supports cartilage regeneration", "Powerful anti-inflammatory action", "Faster recovery after exercise"],
ingredients: ["Glucosamine Sulfate (1500mg)", "Chondroitin Sulfate (1200mg)", "Turmeric/Curcumin (500mg)", "MSM (1000mg)", "Boswellia Extract (300mg)", "Hyaluronic Acid (80mg)"],
pros: ["Clinically dosed ingredients", "Comprehensive 6-in-1 formula", "Fast-acting formula", "Suitable for vegetarians", "No shellfish fillers"],
cons: ["Large capsule size", "Best results with consistent 90-day use", "Some users report mild GI adjustment"],
faqs: [
{ q: "Who is JoinVive best suited for?", a: "JoinVive is ideal for adults over 30, athletes, fitness enthusiasts, and anyone experiencing joint stiffness, pain, or reduced mobility." },
{ q: "How quickly does it work?", a: "Many users report reduced stiffness within 2–3 weeks. Full joint support benefits are typically experienced after 6–12 weeks of use." },
{ q: "Are there any drug interactions?", a: "Consult your healthcare provider before use if you take blood thinners or diabetes medications. The formula is generally safe for most adults." },
{ q: "How many capsules per day?", a: "The recommended dose is 3 capsules daily with food, ideally split across meals for optimal absorption." }
]
}
];
const CATEGORIES = [
{ name: "Brain Health", slug: "brain-health", emoji: "🧠", count: 8 },
{ name: "Joint Health", slug: "joint-health", emoji: "💪", count: 6 },
{ name: "Weight Loss", slug: "weight-loss", emoji: "⚖️", count: 12 },
{ name: "Sleep", slug: "sleep", emoji: "🌙", count: 7 },
{ name: "Men's Health", slug: "mens-health", emoji: "🏋️", count: 9 },
{ name: "Women's Health", slug: "womens-health", emoji: "🌸", count: 10 },
];
const ARTICLES = [
{ id: 1, title: "Top 7 Science-Backed Nootropics of 2025", category: "Brain Health", categorySlug: "brain-health", emoji: "🧠", excerpt: "We reviewed 40+ cognitive supplements to identify the ingredients with real clinical evidence behind them.", date: "May 28, 2025", read: "8 min read" },
{ id: 2, title: "Does Glucosamine Actually Work? What the Research Says", category: "Joint Health", categorySlug: "joint-health", emoji: "💪", excerpt: "A deep-dive into decades of clinical trials to give you an honest answer about glucosamine supplementation.", date: "May 15, 2025", read: "11 min read" },
{ id: 3, title: "Best Sleep Supplements: Melatonin vs. Magnesium vs. Ashwagandha", category: "Sleep", categorySlug: "sleep", emoji: "🌙", excerpt: "Comparing three of the most popular natural sleep aids to help you decide which might work best for you.", date: "May 3, 2025", read: "9 min read" },
];
const ALL_ARTICLES = [
...ARTICLES,
{ id: 4, title: "Best Testosterone Boosters for Men Over 40", category: "Men's Health", categorySlug: "mens-health", emoji: "🏋️", excerpt: "A no-nonsense look at what actually works for supporting healthy testosterone levels naturally.", date: "Apr 18, 2025", read: "10 min read" },
{ id: 5, title: "Menopause & Sleep: Natural Solutions That Work", category: "Women's Health", categorySlug: "womens-health", emoji: "🌸", excerpt: "We interviewed 12 experts and analyzed the research on supplements for menopausal sleep disturbances.", date: "Apr 5, 2025", read: "12 min read" },
{ id: 6, title: "The Truth About Weight Loss Pills in 2025", category: "Weight Loss", categorySlug: "weight-loss", emoji: "⚖️", excerpt: "With hundreds of options available, we break down what works, what doesn't, and what to avoid.", date: "Mar 22, 2025", read: "15 min read" },
];
// ─── HELPERS ──────────────────────────────────────────────────────────────────
// FIX: Proper half-star rating component
const StarRating = ({ rating, size = 15 }) => {
const stars = [];
for (let i = 1; i <= 5; i++) {
if (rating >= i) {
stars.push(★);
} else if (rating >= i - 0.5) {
stars.push(★);
} else {
stars.push(★);
}
}
return
⚡ Affiliate Disclosure: Clicking the link above may earn us a commission. This has no effect on our review score or editorial independence.
Overview
What is {name}?
{longDesc}
Our team spent over 40 hours researching {name} — analyzing the clinical evidence for each ingredient, reviewing third-party lab tests, gathering user testimonials, and evaluating the company's reputation and practices. Here's our full breakdown.
{/* Benefits */}
Benefits
Key Benefits
{benefits.map((b, i) => (
✓{b}
))}
{/* Ingredients */}
Formula
Ingredients
{ingredients.map((ing, i) => (
●{ing}
))}
{/* Pros & Cons */}
Evaluation
Pros & Cons
✅ Pros
{pros.map((p, i) => (
✓
{p}
))}
⚠️ Cons
{cons.map((c, i) => (
✗
{c}
))}
{/* FAQ */}
Common Questions
Frequently Asked Questions
{faqs.map((faq, i) => (
{openFaq === i &&
{faq.a}
}
))}
{/* CTA */}
Ready to Try?
Get {name} from the Official Website
Purchasing directly from the official site ensures you receive genuine product, the best pricing, and any available money-back guarantee.
Affiliate Disclosure: We earn a commission on qualifying purchases.
Independent reviews and recommendations for health and wellness products — built on transparency, science, and your trust.
Our Mission
Trusted Offer was founded with a simple premise: health decisions deserve honest, evidence-based information — not marketing copy. The supplement industry is flooded with exaggerated claims, cherry-picked studies, and paid endorsements. We exist to cut through the noise.
Our team of health researchers, registered dietitians, and former pharmaceutical professionals analyzes each product using a rigorous, standardized methodology. We look at the clinical evidence for every ingredient, the dosages, the manufacturing standards, and real user feedback before writing a single word of review.
Our Review Process
Every product review on Trusted Offer follows the same structured process:
Ingredient Research: We cross-reference each ingredient against PubMed, Cochrane Reviews, and other peer-reviewed databases.
Dosage Analysis: We verify that ingredient amounts match clinically studied doses.
Quality Verification: We check for GMP certification, third-party testing, and clean labeling.
User Feedback: We aggregate reviews from multiple verified sources to understand real-world experiences.
Value Assessment: We evaluate whether the price point is justified given what's included.
Editorial Independence
Trusted Offer participates in affiliate marketing — meaning we earn a commission when readers purchase products through our links. This is how we fund our independent research. However, we maintain a strict firewall between our commercial relationships and our editorial process. No brand can influence, preview, or change our review scores.
We regularly re-evaluate products and update scores as new evidence becomes available. If a product we recommended becomes unavailable or a better option emerges, we say so.
Our Team
Our core team includes writers with backgrounds in nutritional science, sports medicine, biochemistry, and consumer health journalism. All health-related claims on our site are reviewed by at least one qualified professional before publication.
We typically respond within 24–48 business hours. For urgent corrections to published reviews, please include the product name in the subject line.
>
);
};
// FIX: PolicyPage no longer uses dangerouslySetInnerHTML — renders JSX instead
const PolicyPage = ({ type }) => {
useScrollReveal(type);
const pages = {
"privacy-policy": {
title: "Privacy Policy",
updated: "June 2025",
sections: [
{ h: "Information We Collect", p: "Trusted Offer collects information you voluntarily provide (such as contact form submissions and newsletter sign-ups), as well as anonymous usage data through cookies and analytics tools. We do not sell your personal information to third parties." },
{ h: "How We Use Your Information", p: "Collected data is used solely to improve our website, respond to inquiries, and send communications you've requested. Analytics data helps us understand which content is most useful to our readers." },
{ h: "Cookies", p: "We use cookies to analyze site traffic and improve user experience. Affiliate links may set cookies for commission tracking purposes. You may disable cookies in your browser settings, though some site features may be affected." },
{ h: "Third-Party Links", p: "Our site contains links to third-party websites. We are not responsible for the privacy practices of those sites. We encourage you to review their privacy policies before providing personal information." },
{ h: "Data Security", p: "We implement appropriate technical and organizational measures to protect your data. However, no internet transmission is completely secure, and we cannot guarantee absolute security." },
{ h: "Contact", p: "For privacy-related inquiries, contact us at privacy@trusted-offer.com." },
]
},
"terms-and-conditions": {
title: "Terms & Conditions",
updated: "June 2025",
sections: [
{ h: "Acceptance of Terms", p: "By accessing trusted-offer.com, you agree to these Terms and Conditions. If you disagree with any part, please discontinue use of our website." },
{ h: "Content Disclaimer", p: "Content on Trusted Offer is provided for informational purposes only. Nothing on this site constitutes medical advice. Always consult a qualified healthcare professional before starting any supplement regimen or making changes to your health routine." },
{ h: "Intellectual Property", p: "All content on this site — including text, graphics, logos, and images — is the property of Trusted Offer and protected by applicable copyright laws. You may not reproduce or distribute our content without explicit written permission." },
{ h: "Limitation of Liability", p: "Trusted Offer is not liable for any damages arising from your use of information on this site or products purchased based on our recommendations. Product reviews represent our editorial opinion and individual results may vary." },
{ h: "Affiliate Relationships", p: "We participate in affiliate programs and earn commissions from qualifying purchases. This does not affect our editorial independence or review scores. See our Affiliate Disclosure for full details." },
{ h: "Changes to Terms", p: "We reserve the right to modify these Terms at any time. Continued use of the site following changes constitutes acceptance of the revised Terms." },
]
},
"affiliate-disclosure": {
title: "Affiliate Disclosure",
updated: "June 2025",
sections: [
{ h: "Our Commitment to Transparency", p: "Trusted Offer is committed to full transparency about how we generate revenue. This page explains our affiliate relationships in plain English." },
{ h: "What Is Affiliate Marketing?", p: "Affiliate marketing is an arrangement where a website earns a commission when a visitor clicks a link to a product and makes a purchase. The commission is paid by the merchant, not the consumer — you pay the same price whether or not you use our link." },
{ h: "Our Affiliate Relationships", p: "Trusted Offer has affiliate relationships with various supplement brands and health product retailers. When you click links marked "Visit Official Website" or similar calls to action, we may earn a commission." },
{ h: "How This Affects Our Reviews", p: "It doesn't — and here's why we're confident saying that: our review scores are determined by a standardized methodology applied before we know whether a product has an affiliate program. Our editorial team operates independently from our commercial team. No brand receives advance notice of review scores, and no brand can pay to improve a score." },
{ h: "FTC Compliance", p: "In accordance with the FTC's guidelines on endorsements and testimonials, we disclose affiliate relationships on every page of our site, including in the footer and within individual product reviews." },
{ h: "Questions?", p: "If you have questions about our affiliate relationships or editorial practices, contact us at disclosure@trusted-offer.com." },
]
}
};
const page = pages[type] || pages["privacy-policy"];
return (
<>