// ============================================================
// autoclient.io — Industry landing pages (config-driven via ServicePage)
// Law Firms · Medical & Dental · Local Business
// ============================================================

const LAW_CFG = {
  overline: "Industries · Law Firms",
  title: 'Marketing for<br/><span class="gt" style="font-weight:300">law firms.</span>',
  sub: "Sign more qualified cases — not more clicks. Local SEO, paid search, and intake automation built around how clients actually find a lawyer.",
  primary: "Talk to a Strategist",
  grid: {
    overline: "What we run", title: "Built for legal intake.", cols: 3,
    cards: [
      { icon: "map-pin", name: "Local & Practice-Area SEO", d: "Rank for the high-intent, local searches your best cases come from." },
      { icon: "search", name: "Google Ads for Legal", d: "Capture urgent demand with compliant, conversion-tuned search campaigns." },
      { icon: "phone-call", name: "Intake Automation", d: "Instant follow-up and routing so no qualified lead ever goes cold." },
      { icon: "star", name: "Reputation & Reviews", d: "Build the review velocity that wins clicks and trust in your market." },
      { icon: "layout-template", name: "Landing Pages", d: "Practice-area pages engineered to turn visitors into consultations." },
      { icon: "bar-chart-3", name: "Call & Case Tracking", d: "Every call and form tied to spend, so you see cost per signed case." },
    ],
  },
  value: {
    overline: "How we measure", title: "Measured on cases signed.",
    body: "We don't report impressions to law firms. We model the value of a case, then optimize every channel toward signed retainers and return on spend.",
    points: ["Cost per qualified case, tracked end to end", "Call tracking wired to your intake team", "Practice-area targeting that filters for fit", "Compliant creative that still converts"],
    hue: "purple", label: "Cases ▲",
  },
  diff: true,
  steps: [
    { t: "Audit", d: "We map your intake funnel, top practice areas, and local competition." },
    { t: "Strategy", d: "Channel and keyword plan tied to your most valuable case types." },
    { t: "Launch", d: "SEO, paid, and intake automation go live and start capturing demand." },
    { t: "Optimize", d: "We scale what signs cases and cut what doesn't, every month." },
  ],
  faq: SERVICE_FAQ,
  cta: { title: "Ready to sign more cases?", sub: "Get a free plan with projected cost per case for your practice areas.", primary: "Talk to a Strategist" },
};

const MEDICAL_CFG = {
  overline: "Industries · Medical & Dental",
  title: 'Marketing for<br/><span class="gt" style="font-weight:300">medical &amp; dental practices.</span>',
  sub: "Fill your calendar with the right patients. HIPAA-aware campaigns, automated reminders, and reputation flows that build real trust.",
  primary: "Talk to a Strategist",
  grid: {
    overline: "What we run", title: "Built for patient acquisition.", cols: 3,
    cards: [
      { icon: "stethoscope", name: "Consult Demand Gen", d: "Paid campaigns that fill your schedule with high-value consult requests." },
      { icon: "map-pin", name: "Local SEO for Practices", d: "Own the map pack for the procedures and conditions you treat." },
      { icon: "calendar-check", name: "Appointment Automation", d: "Booking, confirmations, and reminders that cut no-shows." },
      { icon: "star", name: "Reputation & Reviews", d: "Turn happy patients into the reviews future patients rely on." },
      { icon: "sparkles", name: "Patient Nurture", d: "Email and SMS that keeps your practice top of mind between visits." },
      { icon: "repeat", name: "Reactivation", d: "Win back lapsed patients with automated, personalized outreach." },
    ],
  },
  value: {
    overline: "How we measure", title: "Measured on booked patients.",
    body: "Clicks don't fill chairs. We optimize toward booked, kept appointments — and automate the reminders and follow-up that protect your calendar.",
    points: ["Cost per booked consult, tracked end to end", "HIPAA-aware campaign and data practices", "Automated reminders that reduce no-shows", "Reputation flows that compound trust"],
    hue: "coral", label: "Bookings ▲",
  },
  diff: true,
  steps: [
    { t: "Audit", d: "We review your services, local demand, and current patient flow." },
    { t: "Strategy", d: "Channel mix and automation plan tied to your highest-value procedures." },
    { t: "Launch", d: "Demand-gen, local SEO, and scheduling automation go live together." },
    { t: "Optimize", d: "We scale what books patients and tune reminders to keep them." },
  ],
  faq: SERVICE_FAQ,
  cta: { title: "Ready to fill your calendar?", sub: "Get a free plan with projected cost per booked consult.", primary: "Talk to a Strategist" },
};

const LOCAL_CFG = {
  overline: "Industries · Local Business",
  title: 'Marketing for<br/><span class="gt" style="font-weight:300">local businesses.</span>',
  sub: "Own your map pack and your neighborhood. Local SEO, geo-targeted ads, and email & SMS that turns one-time buyers into regulars.",
  primary: "Talk to a Strategist",
  grid: {
    overline: "What we run", title: "Built for foot traffic & calls.", cols: 3,
    cards: [
      { icon: "store", name: "Google Business Profile", d: "Optimize and manage the listing that drives calls, directions, and visits." },
      { icon: "map-pin", name: "Local SEO", d: "Rank in the map pack for the searches happening in your service area." },
      { icon: "navigation", name: "Geo-Targeted Ads", d: "Reach nearby buyers the moment they're looking for what you offer." },
      { icon: "star", name: "Review Generation", d: "Automated requests that build the reviews locals choose by." },
      { icon: "mail", name: "Email & SMS", d: "Turn one-time customers into repeat regulars with timely offers." },
      { icon: "calendar", name: "Website & Booking", d: "A fast, mobile-first site and booking flow that converts visits." },
    ],
  },
  value: {
    overline: "How we measure", title: "Measured on calls, visits & revenue.",
    body: "For local businesses, growth is calls, directions, and repeat customers. We optimize toward those — and automate the follow-up that keeps people coming back.",
    points: ["Calls and directions tracked to spend", "Map-pack visibility in your service area", "Geo-targeting that avoids wasted reach", "Email & SMS that drives repeat business"],
    hue: "pink", label: "Visits ▲",
  },
  steps: [
    { t: "Audit", d: "We review your local visibility, listings, and customer journey." },
    { t: "Strategy", d: "Local SEO, ads, and retention plan scoped to your service area." },
    { t: "Launch", d: "Profile optimization, geo-ads, and review automation go live." },
    { t: "Optimize", d: "We grow visibility and repeat revenue, month over month." },
  ],
  faq: SERVICE_FAQ,
  cta: { title: "Ready to own your neighborhood?", sub: "Get a free local visibility audit and a plan to win the map pack.", primary: "Talk to a Strategist" },
};

const ECOMMERCE_CFG = {
  overline: "Industries · Ecommerce",
  title: 'Marketing for<br/><span class="gt" style="font-weight:300">ecommerce brands.</span>',
  sub: "Scale profitable revenue, not just spend. Creative-led paid media, catalog SEO, and email flows that lift ROAS and repeat purchase together.",
  primary: "Talk to a Strategist",
  grid: {
    overline: "What we run", title: "Built for ecommerce growth.", cols: 3,
    cards: [
      { icon: "shopping-cart", name: "Shopping & PMax Campaigns", d: "Google Shopping and Performance Max campaigns tuned to ROAS, not impressions." },
      { icon: "thumbs-up", name: "Meta & Social Commerce", d: "Creative-led Facebook, Instagram, and TikTok campaigns that find buyers and scale winners." },
      { icon: "search", name: "Catalog & Product SEO", d: "Category and product page optimization that captures high-intent organic buyers at scale." },
      { icon: "mail", name: "Email & SMS Flows", d: "Abandoned cart, post-purchase, and win-back sequences that lift lifetime value." },
      { icon: "repeat", name: "Retention & LTV", d: "Loyalty, replenishment, and segmentation programs that turn one-time buyers into repeat revenue." },
      { icon: "bar-chart-3", name: "Attribution & Reporting", d: "Multi-touch attribution so you know which channels actually drive profitable revenue." },
    ],
  },
  value: {
    overline: "How we measure", title: "Measured on ROAS and revenue.",
    body: "We don't optimize to clicks or impressions. Every channel is tuned to profitable revenue, and we report on the metrics that move your bottom line.",
    points: ["ROAS tracked against profitable revenue, not gross sales", "Catalog optimization that scales without wasted spend", "Creative testing that finds winners and kills losers fast", "Email and SMS that compound lifetime value over time"],
    hue: "coral", label: "ROAS ▲",
  },
  diff: true,
  steps: [
    { t: "Audit", d: "We review your catalog, channels, creative, and attribution to find where revenue is leaking." },
    { t: "Strategy", d: "Channel mix, creative angles, and ROAS targets mapped to your margin and growth goals." },
    { t: "Launch", d: "Shopping, paid social, and email flows go live with AI testing creative and bids around the clock." },
    { t: "Optimize", d: "Winners scale, losers get cut. Repeat purchase and LTV compound every month." },
  ],
  faq: [
    { q: "What platforms do you run for ecommerce?", a: "Google Shopping and PMax, Meta (Facebook and Instagram), TikTok, and email and SMS. We recommend the channel mix that fits your margin, catalog size, and customer acquisition targets." },
    { q: "How do you handle creative for paid social?", a: "We brief, produce, and test creative in volume. On social, the creative is the targeting, so we build a continuous testing engine to find winning hooks and scale spend behind them." },
    { q: "Can you work with our existing Shopify or platform setup?", a: "Yes. We integrate with Shopify, WooCommerce, BigCommerce, and most major platforms for feed management, pixel setup, and email and SMS tool connections." },
    { q: "How do you measure profitability vs. just ROAS?", a: "We model your margin and CAC from day one, then optimize toward profitable ROAS targets rather than gross return. You get a dashboard that shows contribution margin, not just revenue." },
  ],
  cta: { title: "Ready to scale profitable revenue?", sub: "Get a free ecommerce audit with projected ROAS and channel mix.", primary: "Talk to a Strategist" },
};

function LawPage() { return <ServicePage cfg={LAW_CFG} />; }
function MedicalPage() { return <ServicePage cfg={MEDICAL_CFG} />; }
function LocalPage() { return <ServicePage cfg={LOCAL_CFG} />; }
function EcommercePage() { return <ServicePage cfg={ECOMMERCE_CFG} />; }

Object.assign(window, { LawPage, MedicalPage, LocalPage, EcommercePage });
