/* Blog posts. Each has id (slug), title, dek, date, readTime, category, and body (array of paragraphs or special blocks). */
const BLOG = [
  {
    id: 'hidden-cost-of-missed-calls',
    title: 'The Hidden Cost of Missed Calls: How Immigration Firms Lose Thousands Monthly',
    dek: 'Every unanswered call at your immigration practice could represent a family-based petition worth thousands in fees. The math is more painful than most firms realize.',
    date: 'February 12, 2026',
    readTime: '6 min read',
    category: 'Revenue',
    body: [
      { type: 'p', text: "Most immigration firms don't track missed calls. They track cases signed, retainers collected, and calendar slots filled. That's a mistake — because the single largest line item on your invisible P&L is the calls that never made it to a human." },
      { type: 'p', text: "Here's the math we run on every firm we audit. A mid-sized family-based practice gets roughly 180 intake calls a month. Industry data suggests 35% go unanswered at firms without dedicated intake staff — that's 63 calls a month that either voicemail, hang up, or dial the next firm on Google." },
      { type: 'h2', text: 'The conversion cliff nobody sees' },
      { type: 'p', text: "Of those 63 missed calls, roughly 15% would have retained if they'd reached a human in under two minutes. That's 9 retained clients a month — gone. At a conservative $5,000 flat fee for an I-130 spouse petition, that's $45,000 in monthly revenue walking to your competitors. $540,000 a year." },
      { type: 'p', text: "And it gets worse. The calls that do get answered often go to whoever happens to pick up — a paralegal pulled off case prep, an associate between meetings, a receptionist who doesn't speak Spanish. The qualification is inconsistent. The follow-up is spotty. The CRM entry gets made 'later.'" },
      { type: 'h2', text: 'Why voicemail is the enemy' },
      { type: 'p', text: "Family-based immigration clients rarely leave voicemails. They're anxious, often bilingual, often calling during a brief break at work. If your line rings more than four times or dumps them into a recording, you've lost them. Data from legal intake studies suggests the callback rate on unreturned messages from prospective immigration clients sits below 20%." },
      { type: 'p', text: "Meanwhile, the firms that answer every call — in the caller's language, with full case qualification on the first contact — see retention rates 3-4x higher on inbound intake. That's not a marketing story. That's arithmetic." },
      { type: 'h2', text: 'What a 24/7 intake layer actually does' },
      { type: 'p', text: "It answers. In English or Spanish. At 2 AM on a Saturday. It captures case type, urgency, and contact details. It routes urgent matters — detention, imminent deadlines — to a human immediately. It syncs everything to Clio, MyCase, or Docketwise before the caller has hung up. And it sends a missed-call follow-up text within 60 seconds for any call that ends without a booking." },
      { type: 'p', text: "The point isn't to replace your team. It's to make sure the money your marketing spend is bringing in actually lands in your pipeline instead of a competitor's voicemail box." },
      { type: 'callout', text: "Run the math on your own firm: monthly calls × unanswered rate × would-have-retained rate × average case value. If the number doesn't scare you, check your assumptions." },
    ],
  },
  {
    id: 'bilingual-ai-intake',
    title: 'Breaking the Language Barrier: Bilingual AI Intake for Family-Based Firms',
    dek: 'Family-based immigration clients often feel most comfortable communicating in their native language. Meet them there, or watch them dial the next firm.',
    date: 'February 5, 2026',
    readTime: '7 min read',
    category: 'Operations',
    body: [
      { type: 'p', text: "If your firm handles family-based immigration, roughly 60-70% of your inbound calls will be from Spanish-dominant speakers. Many are fully bilingual and can conduct the call in English — but research on consumer behavior in legal services is consistent: people choose the firm that communicates with them in the language they dream in." },
      { type: 'p', text: "That preference doesn't disappear once the retainer is signed. It shows up in onboarding, document collection, and every touchpoint that follows. But it matters most on the first call — the one that decides whether your firm becomes their firm." },
      { type: 'h2', text: 'Why human bilingual receptionists fail at scale' },
      { type: 'p', text: "The obvious answer to this problem is 'hire a bilingual receptionist.' Most firms do. It solves the problem for 9 hours a day, five days a week. It doesn't solve it at 7 PM on Tuesday when a spouse calls in a panic after receiving a Request for Evidence. It doesn't solve it on Saturday morning when a brother calls about a detention notice." },
      { type: 'p', text: "Immigration law doesn't run on business hours. Deadlines don't pause. Detentions happen at 4 AM. The firms that win consistent market share are the ones that answer every call — in the caller's language — the first time, every time." },
      { type: 'h2', text: "What 'bilingual' actually means for an AI system" },
      { type: 'p', text: "Not translation. A bilingual AI intake system is trained natively in both English and Spanish, with legal terminology, regional dialect awareness (Mexican, Central American, Caribbean Spanish variants all show up in your calls), and the specific vocabulary of family-based immigration: peticion, I-130, consular processing, waiver, TPS, parole." },
      { type: 'p', text: "It also means tonal fluency. Immigration callers are often scared, embarrassed about their English, or unsure whether they're at the right firm. An AI that code-switches mid-sentence, or asks 'would you prefer Spanish?' on the first ring, lowers the barrier dramatically." },
      { type: 'h2', text: 'Signals that get lost in translation' },
      { type: 'p', text: "When a bilingual caller is forced into an English-only intake, the qualification data you get is worse. Urgency signals are softened. Relationship details get compressed into vague English approximations. Case type gets miscoded. 'Mi esposo está detenido' becomes 'my husband has a problem' on a message slip." },
      { type: 'p', text: "The case that should have been routed to removal defense in the next 60 seconds instead sits on a pink 'while you were out' note until Monday morning, when the hearing is three days out." },
      { type: 'callout', text: "The test: pick up your own firm's main line at 11 PM on a Sunday as a Spanish-speaking caller. If you don't get a fully qualified, routed, CRM-logged intake — not just a message — you have a leak." },
    ],
  },
  {
    id: 'streamlining-intake',
    title: 'From First Ring to Booked Consultation: Streamlining Intake End-to-End',
    dek: 'A disjointed intake process costs immigration firms time, money, and client trust. End-to-end automation changes the equation.',
    date: 'January 28, 2026',
    readTime: '8 min read',
    category: 'Operations',
    body: [
      { type: 'p', text: "Most firms think of intake as a single step: someone calls, someone answers, a consultation gets booked. In reality it's a chain of 8-12 handoffs, and the chain only works as well as its weakest link." },
      { type: 'p', text: "Let's map a typical intake at a family-based firm that hasn't systematized it: call comes in, reception asks a few questions, takes a message, emails the attorney. Attorney sees the email three hours later, asks paralegal to follow up. Paralegal calls back, leaves voicemail. Client calls back the next day, gets a different paralegal who doesn't have the notes. The consultation gets booked — maybe — four days later." },
      { type: 'p', text: "By that point, the caller has already spoken to two other firms." },
      { type: 'h2', text: 'The five-step system that actually works' },
      { type: 'p', text: "The firms winning in family-based immigration have collapsed that chain into five steps that happen in under five minutes: Answer, Qualify, Route, Recover, Sync. Not as buzzwords — as a hard operational spec." },
      { type: 'p', text: "Answer: every call, instantly, in the caller's language. Qualify: case type, urgency, office-hours logic, conflict checks. Route: the right person gets the right context, not a 'this might be interesting' forward. Recover: missed-call text follow-up within 60 seconds for anyone who didn't book. Sync: every data point pushed to the CRM before the caller has hung up." },
      { type: 'h2', text: "What 'qualified' actually means on an intake call" },
      { type: 'p', text: "This is where most intake systems — human or automated — fall down. 'Qualified' isn't just 'we got their name and number.' For family-based immigration, a properly qualified lead captures: relationship type (spouse, parent, sibling, child), petitioner citizenship or residency status, beneficiary location (US or abroad), case complexity signals (prior deportations, criminal history, prior denied petitions), urgency (hearing dates, deadlines), and geographic jurisdiction." },
      { type: 'p', text: "A good intake layer captures all of that in a 4-6 minute conversation without feeling like a form. That's the bar." },
      { type: 'h2', text: 'The missed-call recovery window' },
      { type: 'p', text: "Industry data: if you send a follow-up text within 5 minutes of a missed call, response rate sits around 45%. Wait an hour, it drops to 12%. Wait a day, it's effectively zero. Every firm we onboard is surprised by how many deals they pull back just by closing this one gap." },
      { type: 'p', text: "The automation isn't the point. Speed is the point. The automation is just how you get to the speed consistently at 2 AM and on Saturdays." },
      { type: 'callout', text: "Tell your team to time every inbound call from ring to CRM entry for a week. If the median is over 10 minutes, you have more than a training problem." },
    ],
  },
  {
    id: 'after-hours-revenue',
    title: 'After-Hours, Weekends, Holidays: Where Immigration Revenue Actually Lives',
    dek: "The calls your competitors aren't answering are the ones most worth winning. Here's how to show up when they don't.",
    date: 'January 20, 2026',
    readTime: '5 min read',
    category: 'Strategy',
    body: [
      { type: 'p', text: "There's a counterintuitive pattern in family-based immigration intake: the highest-intent calls come outside of business hours. The Tuesday 2 PM caller is often shopping around. The Saturday 10 PM caller has just received a Notice to Appear and is scared. Guess which one retains faster." },
      { type: 'p', text: "When we pull anonymized call data from the firms we've onboarded, about 32% of inbound volume falls outside of 9-6 Monday-Friday. More striking: the retention rate on those after-hours calls, once they're answered and qualified properly, runs 2.1x higher than the business-hours average." },
      { type: 'h2', text: "Why urgency clusters outside business hours" },
      { type: 'p', text: "USCIS mail is delivered in the afternoon. ICE enforcement actions tend to happen early morning. Consular interview notifications land on weekends. Immigration clients don't receive news on your schedule — they receive it on the government's, which has its own rhythm." },
      { type: 'p', text: "The family that sees a detention notification at 6 AM Sunday morning doesn't wait until Monday to make calls. They start dialing immediately. The firm that picks up at 6:04 AM Sunday signs that case by noon." },
      { type: 'h2', text: 'What after-hours coverage actually costs' },
      { type: 'p', text: "A human bilingual after-hours receptionist, properly staffed for 24/7 coverage, runs $180,000-240,000 a year. An answering service that just takes messages runs $800-2,000 a month but captures almost nothing useful. The gap between those two options is where most firms quietly bleed revenue." },
      { type: 'p', text: "An AI intake layer covers the gap at a fraction of either cost, without the tradeoffs. Every call answered. Every case qualified. Every urgent matter routed. Every non-urgent call documented and queued for Monday with full context." },
      { type: 'callout', text: "If your firm's weekend voicemail box has a 'leave a message after the tone' greeting on it right now, you're training your best leads to call your competitors next." },
    ],
  },
  {
    id: 'crm-routing-that-works',
    title: 'CRM Routing That Actually Works: Beyond the Zapier Zap',
    dek: 'Most firms have some integration between their phone system and their CRM. Very few have a routing layer that makes that integration useful.',
    date: 'January 14, 2026',
    readTime: '6 min read',
    category: 'Tech',
    body: [
      { type: 'p', text: "A Zapier zap that creates a Clio contact every time the phone rings isn't intake automation. It's data exhaust. If the record that lands in Clio doesn't have case type, urgency, qualification status, and an assigned attorney or paralegal, your CRM just became a more expensive spreadsheet." },
      { type: 'p', text: "Real routing starts with the qualification that happens on the call. Case type drives which practice group picks it up. Urgency drives whether the alert is an email, a text, or a pager tone. Jurisdiction drives which bar-licensed attorney gets the record. Conflict signals drive whether the record gets a hold flag before anyone sees it." },
      { type: 'h2', text: 'The five routing dimensions' },
      { type: 'p', text: "For family-based immigration specifically, useful routing operates on five dimensions: case type (I-130, I-485, N-400, I-751, consular processing, etc.), urgency tier (detention/deadline, time-sensitive, standard), geography (state jurisdiction, USCIS service center, consular post), petitioner status (citizen, LPR, derivative beneficiary), and complexity signals (prior denials, criminal history, unlawful presence triggers)." },
      { type: 'p', text: "A record that lands in your CRM tagged across all five dimensions is a record your team can act on immediately. A record that just has a name and a 'case type: immigration' tag is a record that sits in a queue." },
      { type: 'h2', text: 'Native CRM sync vs. webhook duct tape' },
      { type: 'p', text: "There's a meaningful difference between an integration that creates a record with 40 fields populated natively in Clio, MyCase, or Docketwise — matching your firm's custom fields, practice areas, and intake stages — versus a webhook that fires a JSON blob your team has to reconcile manually." },
      { type: 'p', text: "Done properly, a qualified intake call ends with: a contact record, a matter with the right practice area, a linked task for the assigned attorney, a calendar slot held for the consultation, and a timestamped transcript attached as a note. Done improperly, it ends with three duplicate contacts and an angry paralegal." },
      { type: 'callout', text: "Audit your own CRM: pull the last 50 intake records. How many have case type, urgency, and assigned attorney all populated within 10 minutes of the initial call? If it's under half, routing is the problem, not your team." },
    ],
  },
  {
    id: 'security-for-sensitive-cases',
    title: 'Privacy Architecture for Immigration Intake: Why Shared Tenants Are a Liability',
    dek: "Immigration data is among the most sensitive a firm handles. The intake layer that captures it needs infrastructure to match.",
    date: 'January 6, 2026',
    readTime: '7 min read',
    category: 'Security',
    body: [
      { type: 'p', text: "Immigration intake data includes alienage, family relationships, employment history, country of origin, arrival dates, and — often — criminal and enforcement history. For a subset of clients, that data combined in the wrong hands is existentially dangerous." },
      { type: 'p', text: "Most SaaS intake tools treat this data the way they'd treat any other CRM record: stored in a shared multi-tenant database, logically separated, encrypted at rest with a platform-wide key. That's fine for dentist offices. It is not fine for an immigration firm whose clients include mixed-status families and asylum seekers." },
      { type: 'h2', text: "Why 'logical separation' isn't enough" },
      { type: 'p', text: "Shared multi-tenant architecture means every firm's data sits in the same database, separated by a tenant ID on every row. A bug in an access control check, a misconfigured query, a compromised service account — any of these can expose data across tenants. It has happened publicly to major SaaS platforms in the past three years, multiple times." },
      { type: 'p', text: "For most industries, the risk math is: this is unlikely, and the blast radius is some embarrassment and a notification letter. For an immigration firm, the blast radius can include a client's physical safety." },
      { type: 'h2', text: 'What dedicated infrastructure looks like' },
      { type: 'p', text: "Per-firm private VPS. Isolated database schemas with firm-specific encryption keys. TLS everywhere. AES-256 at rest. Audit logs that never cross tenant boundaries. No admin account that can query across firms. When Firm A's environment is compromised, Firm B's environment is not on the same physical host, not using the same credentials, not reachable via a privilege escalation." },
      { type: 'p', text: "This costs more to operate. It is worth it. The firms we work with ask this question first, before pricing." },
      { type: 'h2', text: 'The AI-specific risks' },
      { type: 'p', text: "Any AI intake layer has to answer two additional questions that traditional intake tools don't. First: does the model train on client data? (The correct answer is no, with contractual guarantees to back it up.) Second: what are the model's hard boundaries — specifically, will it give legal advice, or will it recognize compliance-adjacent signals and escalate to a human?" },
      { type: 'p', text: "A model that will improvise an answer to 'do I qualify for asylum?' is a liability. A model that recognizes the question, flags it, and routes it to a licensed attorney is an asset. The difference lives in system prompts, tool-use constraints, and supervised evaluation — not in model choice." },
      { type: 'callout', text: "Ask any intake vendor three questions: where does my data sit physically, who holds the encryption keys, and what data, if any, is used to improve the product. If any answer is vague, keep shopping." },
    ],
  },
];

window.BLOG = BLOG;
