File size: 26,779 Bytes
c47f171
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d0b1b0b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>The Vehicle Service Contract Market: An Interactive Guide</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
    <!-- Chosen Palette: Warm Neutrals -->
    <!-- Application Structure Plan: A thematic, multi-section SPA designed for a logical user journey from high-level market understanding to specific product details. The structure prioritizes user tasks (like comparing coverage) over the report's linear format. Key interactions include a dynamic market chart, an interactive coverage explorer diagram, and clickable detail cards for exclusions. This task-oriented design enhances usability and makes complex information digestible. -->
    <!-- Visualization & Content Choices: Market Projections -> Goal: Show Change -> Viz: Line Chart -> Interaction: Hover Tooltips -> Justification: Best practice for time-series data -> Library: Chart.js. Coverage Tiers -> Goal: Compare/Organize -> Viz: Interactive Car Diagram -> Interaction: Button clicks update diagram and text -> Justification: Highly intuitive and engaging visual comparison -> Library/Method: HTML/CSS/JS. Provider Comparison -> Goal: Compare -> Viz: Side-by-side cards -> Interaction: Static display -> Justification: Clear, direct comparison -> Library/Method: HTML/Tailwind. Exclusions -> Goal: Organize/Inform -> Viz: Grid of cards -> Interaction: Hover/click for details -> Justification: Breaks down dense list into manageable chunks -> Library/Method: HTML/CSS/JS. CONFIRMATION: NO SVG graphics used. NO Mermaid JS used. -->
    <!-- CONFIRMATION: NO SVG graphics used. NO Mermaid JS used. -->
    <style>
        body {
            font-family: 'Inter', sans-serif;
            background-color: #F5F5F4; /* stone-100 */
            color: #44403C; /* stone-700 */
        }
        .nav-link {
            transition: color 0.3s, border-bottom-color 0.3s;
        }
        .nav-link:hover {
            color: #2563EB; /* blue-600 */
        }
        .active-nav-link {
            color: #2563EB; /* blue-600 */
            font-weight: 600;
        }
        .kpi-card {
            background-color: white;
            border-radius: 0.75rem;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .kpi-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
        }
        .chart-container {
            position: relative;
            width: 100%;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            height: 300px;
            max-height: 400px;
        }
        @media (min-width: 768px) {
            .chart-container {
                height: 400px;
            }
        }
        .coverage-btn {
            transition: all 0.3s;
        }
        .coverage-btn.active {
            background-color: #2563EB;
            color: white;
            box-shadow: 0 4px 14px 0 rgb(0 118 255 / 39%);
        }
        .car-part {
            background-color: #E7E5E4; /* stone-200 */
            border: 2px solid #D6D3D1; /* stone-300 */
            transition: all 0.4s ease-in-out;
            opacity: 0.5;
        }
        .car-part.covered {
            background-color: #60A5FA; /* blue-400 */
            border-color: #2563EB; /* blue-600 */
            opacity: 1;
            transform: scale(1.05);
        }
        .exclusion-card {
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .exclusion-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -2px rgba(37, 99, 235, 0.05);
        }
    </style>
</head>
<body class="antialiased">

    <header class="bg-white shadow-sm sticky top-0 z-50">
        <nav class="container mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex items-center justify-between h-16">
                <div class="flex-shrink-0">
                    <h1 class="text-xl font-bold text-stone-800">VSC Market Explorer</h1>
                </div>
                <div class="hidden md:block">
                    <div class="ml-10 flex items-baseline space-x-4">
                        <a href="#market" class="nav-link px-3 py-2 rounded-md text-sm font-medium">Market Insights</a>
                        <a href="#coverage" class="nav-link px-3 py-2 rounded-md text-sm font-medium">Coverage Explorer</a>
                        <a href="#providers" class="nav-link px-3 py-2 rounded-md text-sm font-medium">Provider Types</a>
                        <a href="#exclusions" class="nav-link px-3 py-2 rounded-md text-sm font-medium">Common Exclusions</a>
                        <a href="#future" class="nav-link px-3 py-2 rounded-md text-sm font-medium">Future Outlook</a>
                    </div>
                </div>
            </div>
        </nav>
    </header>

    <main class="container mx-auto px-4 sm:px-6 lg:px-8 py-8 md:py-12">
        <section id="hero" class="text-center mb-16">
            <h2 class="text-4xl md:text-5xl font-extrabold text-stone-900 tracking-tight">Navigating the Vehicle Service Contract Market</h2>
            <p class="mt-4 max-w-3xl mx-auto text-lg text-stone-600">An interactive guide to understanding extended vehicle protection, from market trends to the fine print in your contract.</p>
        </section>

        <section id="market" class="mb-20 scroll-mt-20">
            <h3 class="text-3xl font-bold text-center mb-2 text-stone-800">The Big Picture: Market Insights</h3>
            <p class="text-center text-stone-600 mb-12 max-w-2xl mx-auto">The market for vehicle service contracts (VSCs) is a multi-billion dollar industry driven by key economic and technological trends. This section provides a high-level overview of the market's scale, growth, and the primary factors fueling its expansion.</p>
            
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-12">
                <div class="kpi-card text-center">
                    <p class="text-sm font-medium text-stone-500">2023 Market Value</p>
                    <p class="text-4xl font-bold text-blue-600">$36.5 Billion</p>
                    <p class="text-xs text-stone-400 mt-1">Global Auto Extended Warranty</p>
                </div>
                <div class="kpi-card text-center">
                    <p class="text-sm font-medium text-stone-500">Projected 2032 Value</p>
                    <p class="text-4xl font-bold text-blue-600">$59.0 Billion</p>
                    <p class="text-xs text-stone-400 mt-1">at 6.20% CAGR</p>
                </div>
                <div class="kpi-card text-center">
                    <p class="text-sm font-medium text-stone-500">Average US Vehicle Age</p>
                    <p class="text-4xl font-bold text-blue-600">12.6 Years</p>
                    <p class="text-xs text-stone-400 mt-1">A key driver for VSC demand</p>
                </div>
            </div>

            <div class="bg-white p-6 rounded-lg shadow-md">
                <h4 class="text-xl font-semibold text-center mb-4 text-stone-800">Projected Market Growth (USD Billions)</h4>
                <div class="chart-container">
                    <canvas id="marketGrowthChart"></canvas>
                </div>
            </div>
        </section>

        <section id="coverage" class="mb-20 scroll-mt-20">
            <h3 class="text-3xl font-bold text-center mb-2 text-stone-800">Understanding Your Options: Coverage Explorer</h3>
            <p class="text-center text-stone-600 mb-12 max-w-2xl mx-auto">Not all service contracts are created equal. The value of a plan is determined by its structure and the specific components it covers. Use this interactive tool to explore the common tiers of coverage, from basic powertrain protection to comprehensive "bumper-to-bumper" plans.</p>

            <div class="flex justify-center space-x-2 md:space-x-4 mb-8">
                <button class="coverage-btn active px-4 py-2 md:px-6 md:py-3 text-sm md:text-base font-semibold rounded-full bg-white text-stone-700 shadow-sm" data-plan="powertrain">Powertrain</button>
                <button class="coverage-btn px-4 py-2 md:px-6 md:py-3 text-sm md:text-base font-semibold rounded-full bg-white text-stone-700 shadow-sm" data-plan="stated">Stated-Component</button>
                <button class="coverage-btn px-4 py-2 md:px-6 md:py-3 text-sm md:text-base font-semibold rounded-full bg-white text-stone-700 shadow-sm" data-plan="exclusionary">Exclusionary</button>
            </div>

            <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 items-center">
                <div class="relative w-full max-w-lg mx-auto p-4">
                    <div class="relative aspect-[4/2] bg-stone-100 rounded-lg">
                        <div id="car-body" class="car-part absolute w-full h-full rounded-lg"></div>
                        <div id="car-engine" class="car-part absolute top-[30%] left-[10%] w-[30%] h-[40%] rounded"></div>
                        <div id="car-transmission" class="car-part absolute top-[40%] left-[45%] w-[20%] h-[20%] rounded"></div>
                        <div id="car-drivetrain" class="car-part absolute top-[50%] left-[70%] w-[20%] h-[15%] rounded"></div>
                        <div id="car-ac" class="car-part absolute top-[10%] left-[35%] w-[15%] h-[15%] rounded-full"></div>
                        <div id="car-steering" class="car-part absolute top-[65%] left-[15%] w-[10%] h-[10%] rounded-full"></div>
                        <div id="car-brakes" class="car-part absolute bottom-[5%] left-[15%] w-[10%] h-[10%] rounded-full"></div>
                        <div id="car-electronics" class="car-part absolute top-[15%] left-[60%] w-[25%] h-[20%] rounded"></div>
                    </div>
                </div>
                <div id="coverage-details" class="bg-white p-6 rounded-lg shadow-md">
                    <h4 id="coverage-title" class="text-2xl font-bold mb-3 text-stone-800"></h4>
                    <p id="coverage-type" class="text-sm font-semibold text-blue-600 mb-3"></p>
                    <p id="coverage-description" class="text-stone-600 mb-4"></p>
                    <div id="coverage-list"></div>
                </div>
            </div>
        </section>

        <section id="providers" class="mb-20 scroll-mt-20">
            <h3 class="text-3xl font-bold text-center mb-2 text-stone-800">Choosing a Provider: OEM vs. Third-Party</h3>
            <p class="text-center text-stone-600 mb-12 max-w-2xl mx-auto">VSCs are sold through two main channels: vehicle manufacturers (OEMs) via their dealerships, and independent third-party administrators (TPAs). Each has distinct advantages and disadvantages. This section compares the two to help you understand which might be a better fit for your needs.</p>

            <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                <div class="bg-white p-6 rounded-lg shadow-md border-t-4 border-blue-500">
                    <h4 class="text-2xl font-bold text-stone-800 mb-4">Manufacturer (OEM) Plans</h4>
                    <p class="text-stone-600 mb-4">Offered by automakers like Ford or Toyota, these are essentially extensions of the factory warranty.</p>
                    <ul class="space-y-3">
                        <li class="flex items-start"><span class="text-green-500 mr-2 mt-1">βœ”</span><span><strong>Guaranteed Quality:</strong> Repairs use genuine OEM parts by factory-trained technicians.</span></li>
                        <li class="flex items-start"><span class="text-green-500 mr-2 mt-1">βœ”</span><span><strong>Seamless Claims:</strong> Process is typically smooth and integrated at authorized dealerships.</span></li>
                        <li class="flex items-start"><span class="text-red-500 mr-2 mt-1">βœ–</span><span><strong>Higher Cost:</strong> Generally more expensive than third-party options.</span></li>
                        <li class="flex items-start"><span class="text-red-500 mr-2 mt-1">βœ–</span><span><strong>Restricted Repairs:</strong> Coverage often valid only at the brand's authorized dealerships.</span></li>
                    </ul>
                </div>
                <div class="bg-white p-6 rounded-lg shadow-md border-t-4 border-stone-500">
                    <h4 class="text-2xl font-bold text-stone-800 mb-4">Third-Party Administrators (TPA)</h4>
                    <p class="text-stone-600 mb-4">Independent companies that compete on price, flexibility, and broader eligibility.</p>
                     <ul class="space-y-3">
                        <li class="flex items-start"><span class="text-green-500 mr-2 mt-1">βœ”</span><span><strong>Lower Cost:</strong> Intense competition often leads to more affordable plans.</span></li>
                        <li class="flex items-start"><span class="text-green-500 mr-2 mt-1">βœ”</span><span><strong>Repair Choice:</strong> Use any licensed repair facility, including dealers or independent shops.</span></li>
                        <li class="flex items-start"><span class="text-green-500 mr-2 mt-1">βœ”</span><span><strong>Flexibility:</strong> Wider range of plans and can cover older, high-mileage vehicles.</span></li>
                        <li class="flex items-start"><span class="text-red-500 mr-2 mt-1">βœ–</span><span><strong>Risk of Disputes:</strong> Claims process can be more adversarial over parts or labor rates.</span></li>
                    </ul>
                </div>
            </div>
        </section>

        <section id="exclusions" class="mb-20 scroll-mt-20">
            <h3 class="text-3xl font-bold text-center mb-2 text-stone-800">The Fine Print: Common Exclusions</h3>
            <p class="text-center text-stone-600 mb-12 max-w-2xl mx-auto">No service contract covers everything. Understanding what is *not* covered is as important as knowing what is. Below are the universal exclusions found in nearly every VSC, separating mechanical breakdown protection from routine upkeep and insurance-related events.</p>

            <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="exclusion-card bg-white p-6 rounded-lg shadow-md">
                    <h4 class="text-lg font-semibold text-stone-800">Routine Maintenance</h4>
                    <p class="text-stone-600 mt-2">Services like oil changes, filter replacements, and tire rotations are not covered. You must also keep records of all required maintenance.</p>
                </div>
                <div class="exclusion-card bg-white p-6 rounded-lg shadow-md">
                    <h4 class="text-lg font-semibold text-stone-800">Wear-and-Tear Items</h4>
                    <p class="text-stone-600 mt-2">Parts designed to wear out and be replaced, such as tires, brake pads, rotors, wiper blades, belts, and hoses.</p>
                </div>
                <div class="exclusion-card bg-white p-6 rounded-lg shadow-md">
                    <h4 class="text-lg font-semibold text-stone-800">Cosmetic Components</h4>
                    <p class="text-stone-600 mt-2">Anything related to appearance is excluded, including paint, glass, bumpers, trim, upholstery, and carpets.</p>
                </div>
                <div class="exclusion-card bg-white p-6 rounded-lg shadow-md">
                    <h4 class="text-lg font-semibold text-stone-800">External Damage</h4>
                    <p class="text-stone-600 mt-2">A VSC is not insurance. It does not cover damage from accidents, theft, vandalism, floods, fire, or other "Acts of God".</p>
                </div>
                <div class="exclusion-card bg-white p-6 rounded-lg shadow-md">
                    <h4 class="text-lg font-semibold text-stone-800">Pre-existing Conditions</h4>
                    <p class="text-stone-600 mt-2">Any mechanical issue that existed before the contract's effective date is not covered.</p>
                </div>
                <div class="exclusion-card bg-white p-6 rounded-lg shadow-md">
                    <h4 class="text-lg font-semibold text-stone-800">Aftermarket Modifications</h4>
                    <p class="text-stone-600 mt-2">Failures caused by or related to non-standard parts (like lift kits or engine tuners) can be denied.</p>
                </div>
            </div>
        </section>

        <section id="future" class="scroll-mt-20">
            <h3 class="text-3xl font-bold text-center mb-2 text-stone-800">The Future of Coverage</h3>
            <p class="text-center text-stone-600 mb-12 max-w-2xl mx-auto">The VSC industry is at a crossroads, facing major shifts from vehicle electrification and digitization. The core product will need to evolve to remain relevant in a rapidly changing automotive landscape.</p>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8 text-center">
                <div class="bg-white p-6 rounded-lg shadow-sm">
                    <h4 class="text-xl font-semibold text-stone-800">Electric Vehicles (EVs)</h4>
                    <p class="mt-2 text-stone-600">The shift to EVs eliminates engines and transmissions but introduces new, expensive components like high-voltage batteries and electric motors, creating a need for entirely new types of VSCs.</p>
                </div>
                <div class="bg-white p-6 rounded-lg shadow-sm">
                    <h4 class="text-xl font-semibold text-stone-800">Digitization</h4>
                    <p class="mt-2 text-stone-600">The industry is moving online with instant quotes, mobile apps for claims, and a demand for a faster, more transparent customer experience from purchase to repair.</p>
                </div>
                <div class="bg-white p-6 rounded-lg shadow-sm">
                    <h4 class="text-xl font-semibold text-stone-800">Predictive Analytics</h4>
                    <p class="mt-2 text-stone-600">Using telematics data from connected cars, providers can forecast component failures, shifting from a reactive repair model to a proactive vehicle health management service.</p>
                </div>
            </div>
        </section>
    </main>

    <footer class="bg-stone-800 text-stone-300 mt-20">
        <div class="container mx-auto px-4 sm:px-6 lg:px-8 py-6 text-center text-sm">
            <p>&copy; 2024 VSC Market Explorer. All data synthesized from the source report.</p>
            <p class="mt-1 text-xs text-stone-400">This application is for informational purposes only.</p>
        </div>
    </footer>

    <script>
        document.addEventListener('DOMContentLoaded', () => {
            const marketData = {
                labels: ['2023', '2024', '2025', '2026', '2027', '2028', '2029', '2030', '2031', '2032'],
                values: [36.5, 38.7, 40.8, 43.0, 45.4, 47.9, 50.5, 53.3, 56.1, 59.0]
            };

            const coverageData = {
                powertrain: {
                    title: 'Powertrain Coverage',
                    type: 'INCLUSIONARY (STATED-COMPONENT)',
                    description: 'This is the most basic and affordable tier, covering the essential components that create power and move the vehicle. It is designed to protect against the most expensive and catastrophic failures.',
                    covered: ['engine', 'transmission', 'drivetrain'],
                    list: [
                        '<strong>Engine:</strong> Internally lubricated parts, block, heads.',
                        '<strong>Transmission:</strong> Internal parts, torque converter, case.',
                        '<strong>Drivetrain:</strong> Axles, driveshafts, differential.'
                    ]
                },
                stated: {
                    title: 'Stated-Component Coverage',
                    type: 'INCLUSIONARY (STATED-COMPONENT)',
                    description: 'This mid-level plan builds on powertrain coverage by adding a specific list of other major systems. If a part is not explicitly listed in the contract, it is not covered.',
                    covered: ['engine', 'transmission', 'drivetrain', 'ac', 'steering', 'brakes'],
                    list: [
                        '<strong>All Powertrain Components</strong>',
                        '<strong>Air Conditioning:</strong> Compressor, condenser, etc.',
                        '<strong>Steering System:</strong> Power steering pump, rack and pinion.',
                        '<strong>Brake System:</strong> Master cylinder, calipers (non-wear parts).'
                    ]
                },
                exclusionary: {
                    title: 'Exclusionary Coverage',
                    type: 'EXCLUSIONARY ("BUMPER-TO-BUMPER")',
                    description: 'The most comprehensive plan available. It covers every mechanical and electrical part on the vehicle EXCEPT for a short list of excluded items (like maintenance and wear parts).',
                    covered: ['engine', 'transmission', 'drivetrain', 'ac', 'steering', 'brakes', 'electronics'],
                    list: [
                        '<strong>All Powertrain & Stated Components</strong>',
                        '<strong>High-Tech Electronics:</strong> Infotainment screen, navigation, safety sensors.',
                        '<strong>Suspension:</strong> Control arms, ball joints.',
                        '<strong>And thousands of other parts.</strong>'
                    ]
                }
            };

            const ctx = document.getElementById('marketGrowthChart').getContext('2d');
            new Chart(ctx, {
                type: 'line',
                data: {
                    labels: marketData.labels,
                    datasets: [{
                        label: 'Market Value (USD Billion)',
                        data: marketData.values,
                        borderColor: '#2563EB',
                        backgroundColor: 'rgba(37, 99, 235, 0.1)',
                        fill: true,
                        tension: 0.4
                    }]
                },
                options: {
                    responsive: true,
                    maintainAspectRatio: false,
                    scales: {
                        y: {
                            beginAtZero: false,
                            ticks: {
                                callback: function(value) {
                                    return '$' + value + 'B';
                                }
                            }
                        }
                    },
                    plugins: {
                        legend: {
                            display: false
                        },
                        tooltip: {
                            callbacks: {
                                label: function(context) {
                                    return `Market Value: $${context.parsed.y.toFixed(1)} Billion`;
                                }
                            }
                        }
                    }
                }
            });

            const coverageBtns = document.querySelectorAll('.coverage-btn');
            const carParts = {
                engine: document.getElementById('car-engine'),
                transmission: document.getElementById('car-transmission'),
                drivetrain: document.getElementById('car-drivetrain'),
                ac: document.getElementById('car-ac'),
                steering: document.getElementById('car-steering'),
                brakes: document.getElementById('car-brakes'),
                electronics: document.getElementById('car-electronics')
            };
            const coverageTitle = document.getElementById('coverage-title');
            const coverageType = document.getElementById('coverage-type');
            const coverageDescription = document.getElementById('coverage-description');
            const coverageList = document.getElementById('coverage-list');

            function updateCoverageView(plan) {
                const data = coverageData[plan];
                
                coverageTitle.textContent = data.title;
                coverageType.textContent = data.type;
                coverageDescription.textContent = data.description;
                coverageList.innerHTML = `<ul class="space-y-2">${data.list.map(item => `<li class="flex items-start"><span class="text-blue-500 mr-2 mt-1">β€Ί</span><span>${item}</span></li>`).join('')}</ul>`;

                Object.keys(carParts).forEach(part => {
                    if (data.covered.includes(part)) {
                        carParts[part].classList.add('covered');
                    } else {
                        carParts[part].classList.remove('covered');
                    }
                });

                coverageBtns.forEach(btn => {
                    if (btn.dataset.plan === plan) {
                        btn.classList.add('active');
                    } else {
                        btn.classList.remove('active');
                    }
                });
            }

            coverageBtns.forEach(btn => {
                btn.addEventListener('click', () => {
                    updateCoverageView(btn.dataset.plan);
                });
            });
            
            updateCoverageView('powertrain');

            const navLinks = document.querySelectorAll('.nav-link');
            const sections = document.querySelectorAll('section[id]');

            window.addEventListener('scroll', () => {
                let current = '';
                sections.forEach(section => {
                    const sectionTop = section.offsetTop;
                    if (pageYOffset >= sectionTop - 80) {
                        current = section.getAttribute('id');
                    }
                });

                navLinks.forEach(link => {
                    link.classList.remove('active-nav-link');
                    if (link.getAttribute('href').includes(current)) {
                        link.classList.add('active-nav-link');
                    }
                });
            });
        });
    </script>
</body>
</html>