Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
claude/adoring-hopper-5x74bqclaude/affectionate-feynman-ykrf1hclaude/architecture-audit-design-wxprenclaude/build-status-update-3MXsfclaude/charming-meitner-mllb5rclaude/compare-gate-gluecron-s4mFQclaude/confident-faraday-tikcwbclaude/continue-work-XMTlIclaude/crontech-gluecron-deploy-7MIECclaude/crontech-platform-setup-SeKfwclaude/design-2026claude/ecstatic-ptolemy-jMdigclaude/enhance-github-integration-QNHdGclaude/fix-aa-loop-issue-PonMQclaude/fix-actions-and-processclaude/fix-desktop-errors-XqoW8claude/fix-red-workflowsclaude/fix-website-access-6FKJNclaude/gatetest-integration-hardeningclaude/github-audit-improvements-bDFr9claude/gluecron-launch-status-FoMRlclaude/hopeful-lamport-olfCTclaude/issue-to-pr-and-protectionsclaude/jolly-heisenberg-2sg1Qclaude/launch-preparation-QmTb6claude/new-session-xk1l7claude/plan-platform-architecture-kkN4yclaude/platform-analysis-roadmap-1nUGLclaude/platform-launch-assessment-8dWV8claude/polish-platform-release-AeDrUclaude/resume-previous-work-KzyLwclaude/review-crontech-handoff-qYEVqclaude/review-project-completeness-lHhS2claude/review-readme-docs-ulqPKclaude/serene-edison-rj87weclaude/setup-multi-repo-dev-BCwNQclaude/ship-fixes-and-tests-Jvz1cclaude/site-audit-competitive-pctlwgclaude/site-migration-vercel-XstpKclaude/standalone-product-repos-XHFTDcopilot/feat-smart-empty-states-keyboard-first-enhancementcopilot/feat-smart-morning-digest-review-context-restorecopilot/fix-and-process-workflowscopilot/update-ai-powered-code-reviewfeat/debt-mapfeat/push-policy-codeowners-hardeningfeat/smart-digest-contextfeat/stage-impactfeat/t1-secret-migrationfeat/u-polishfeat/w-self-hostfeat/w2-claude-configfix/agent-journey-orphan-sweepgatetest/auto-fix-1776586424172gatetest/auto-fix-1776586534814gatetest/auto-fix-1776590685143gatetest/auto-fix-1776590808199mainops/redeploy-retriggerstyle/dxt-cta-themeworktree-agent-a3377aad30d55da26worktree-agent-a7ef607b7ee1d6c74
pricing.tsx27.3 KB · 853 lines
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
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
/**
 * Block L8 — public `/pricing` page.
 *
 * Anonymous-safe GET /pricing. Reads the real plan rows from
 * `billing_plans` (or `FALLBACK_PLANS` when seeds aren't loaded yet — both
 * mirror migration 0020) so the price column never drifts from the actual
 * billing config. This route is mounted BEFORE `routes/marketing.tsx` in
 * `app.tsx` so the new editorial layout wins; the legacy marketing /pricing
 * remains as a safety net.
 *
 * Anchors:
 *   #free        → "What you get on the free tier" block
 *   #self-host   → Self-host vs Cloud comparison
 *   #faq         → Frequently asked questions
 *
 * Pure presentational — no billing logic is created here. The page only
 * surfaces what `src/lib/billing.ts` already ships.
 */

import { Hono } from "hono";
import type { FC } from "hono/jsx";
import { Layout } from "../views/layout";
import { softAuth } from "../middleware/auth";
import type { AuthEnv } from "../middleware/auth";
import { formatPrice, listPlans } from "../lib/billing";

const pricing = new Hono<AuthEnv>();
pricing.use("*", softAuth);

// ---- Per-slug copy: tagline + included-bullet list ------------------------
// Indexed by the seeded plan slugs. Anything not in this map falls back to
// generic copy derived from the plan's numeric limits so we never miss a
// row even if a future migration adds a new tier.
const PLAN_COPY: Record<
  string,
  { tagline: string; supportTier: string }
> = {
  free: {
    tagline: "Personal projects + open source. Full AI suite.",
    supportTier: "Community support",
  },
  pro: {
    tagline: "Working developers shipping every day.",
    supportTier: "Email support, priority AI queue",
  },
  team: {
    tagline: "Teams running production on Gluecron.",
    supportTier: "Slack channel + 24h response",
  },
  enterprise: {
    tagline: "Orgs that need SSO, audit, on-prem.",
    supportTier: "24/7 incident response + DPA",
  },
};

pricing.get("/pricing", async (c) => {
  const user = c.get("user");
  const plans = await listPlans();
  return c.html(
    <Layout title="Pricing — Gluecron" user={user}>
      <PricingPage plans={plans} loggedIn={!!user} />
    </Layout>
  );
});

interface Plan {
  slug: string;
  name: string;
  priceCents: number;
  repoLimit: number;
  storageMbLimit: number;
  aiTokensMonthly: number;
  bandwidthGbMonthly: number;
  privateRepos: boolean;
}

const PricingPage: FC<{ plans: Plan[]; loggedIn: boolean }> = ({
  plans,
  loggedIn,
}) => (
  <>
    <style dangerouslySetInnerHTML={{ __html: pricingCss }} />
    <div class="pl-root">
      {/* ------------------- Hero ------------------- */}
      <header class="pl-hero">
        <div class="pl-hero-hairline" aria-hidden="true" />
        <div class="pl-hero-orb" aria-hidden="true" />
        <div class="eyebrow">Pricing</div>
        <h1 class="display pl-hero-title">
          One subscription.{" "}
          <span class="gradient-text">
            Replaces three on GitHub.
          </span>
        </h1>
        <p class="pl-hero-sub">
          AI code review, autonomous PRs, code completion, and the git host
          itself — bundled. What costs $89/user on GitHub + Copilot + Advanced
          Security starts at $0 here.
        </p>
        <div class="pl-hero-jumps">
          <a href="#compare" class="pl-jump">Bundle math vs GitHub →</a>
          <a href="#free" class="pl-jump">What's free</a>
          <a href="#self-host" class="pl-jump">Self-host vs Cloud</a>
          <a href="#faq" class="pl-jump">FAQ</a>
        </div>
      </header>

      {/* ------------------- Plan cards ------------------- */}
      <section class="pl-plans stagger">
        {plans.map((p) => (
          <PlanCard plan={p} loggedIn={loggedIn} />
        ))}
      </section>

      {/* ------------------- Bundle math vs GitHub ------------------- */}
      <section id="compare" class="pl-section pl-compare">
        <div class="section-header">
          <div class="eyebrow">Bundle math</div>
          <h2>
            What you'd actually pay on GitHub
            <span class="gradient-text"> for the same features.</span>
          </h2>
          <p>
            GitHub charges separately for Copilot, Advanced Security, and the
            base plan. Gluecron bundles everything. Here's the receipt.
          </p>
        </div>
        <div class="pl-compare-grid">
          <div class="pl-compare-col">
            <div class="pl-compare-name">GitHub stack</div>
            <div class="pl-compare-price">$89<span class="pl-compare-per">/user/mo</span></div>
            <ul class="pl-compare-feats">
              <li><span class="pl-compare-bullet">$21</span> GitHub Enterprise (per-user)</li>
              <li><span class="pl-compare-bullet">$19</span> GitHub Copilot Business</li>
              <li><span class="pl-compare-bullet">$49</span> GitHub Advanced Security add-on</li>
              <li class="pl-compare-missing">— No AI auto-merge</li>
              <li class="pl-compare-missing">— No AI incident responder</li>
              <li class="pl-compare-missing">— No AI spec-to-PR</li>
              <li class="pl-compare-missing">— No MCP-native integration</li>
            </ul>
          </div>
          <div class="pl-compare-col pl-compare-us">
            <div class="pl-compare-name">Gluecron Team</div>
            <div class="pl-compare-price">$29<span class="pl-compare-per">/user/mo</span></div>
            <ul class="pl-compare-feats">
              <li><span class="pl-compare-check"></span> Unlimited private repos + git host</li>
              <li><span class="pl-compare-check"></span> AI code review on every PR (Claude Sonnet)</li>
              <li><span class="pl-compare-check"></span> AI auto-merge when gates pass</li>
              <li><span class="pl-compare-check"></span> AI incident responder on deploy failure</li>
              <li><span class="pl-compare-check"></span> AI spec-to-PR (label an issue, get a PR)</li>
              <li><span class="pl-compare-check"></span> AI completion + commit messages + tests</li>
              <li><span class="pl-compare-check"></span> MCP server — drive it from Claude Desktop</li>
              <li><span class="pl-compare-check"></span> SSO, audit log, branch protection, rulesets</li>
            </ul>
          </div>
        </div>
        <p class="pl-compare-footer">
          For a 10-person team, the math is{" "}
          <strong>$10,680/year on GitHub vs $3,480/year on Gluecron</strong>
          {" — "}
          and you get the AI features that don't exist on GitHub at any price.
        </p>
      </section>

      {/* ------------------- What's on the free tier ------------------- */}
      <section id="free" class="pl-section pl-free">
        <div class="section-header">
          <div class="eyebrow">Free tier</div>
          <h2>Everything below is yours on the free tier.</h2>
          <p>
            All the AI features. Not a "try it for 14 days" trial. Not a
            "core features" stub. The whole Claude-powered platform — on
            unlimited public repos, forever.
          </p>
        </div>
        <ul class="pl-free-grid">
          <FreeItem label="Unlimited public repos" />
          <FreeItem label="AI code review on every PR (Sonnet 4)" />
          <FreeItem label="AI auto-merge when checks pass (K2)" />
          <FreeItem label="ai:build label → spec-to-PR (K3)" />
          <FreeItem label="Sleep Mode digest (L1)" />
          <FreeItem label="AI hours saved counter (L9)" />
          <FreeItem label="MCP server access (K1)" />
          <FreeItem label="Claude Code skill bundle (L7)" />
          <FreeItem label="One-command install" />
          <FreeItem label="GitHub OIDC sign-in" />
          <FreeItem label="Webhooks + REST API v2 + GraphQL" />
          <FreeItem label="Package registry + Pages hosting" />
        </ul>
      </section>

      {/* ------------------- Self-host vs Cloud ------------------- */}
      <section id="self-host" class="pl-section">
        <div class="section-header">
          <div class="eyebrow">Two ways to run it</div>
          <h2>Self-host on your metal. Or let us run it.</h2>
          <p>
            Same product, same code, same Claude-powered features. The only
            difference is who pays the electricity bill.
          </p>
        </div>
        <div class="pl-host-grid">
          <div class="pl-host-col">
            <div class="pl-host-name">Self-host</div>
            <div class="pl-host-price">Free forever</div>
            <ul class="pl-host-feats">
              <li>Free forever — no license, no per-seat fee</li>
              <li>Your database, your disk, your control</li>
              <li>You pay your Anthropic API key directly</li>
              <li>Run via <code>curl gluecron.com/install</code></li>
              <li>Or the Hetzner bootstrap script in 30 seconds</li>
            </ul>
            <a href="/install" class="btn btn-secondary btn-block pl-host-cta">
              Self-host guide
            </a>
          </div>
          <div class="pl-host-col pl-host-cloud">
            <div class="pl-host-name">Gluecron Cloud</div>
            <div class="pl-host-price">From $0/mo</div>
            <ul class="pl-host-feats">
              <li>Managed — we run the server, you push code</li>
              <li>Opinionated stack, zero ops on your end</li>
              <li>Automatic upgrades to every new block</li>
              <li>Support included on paid plans</li>
              <li>Plan-based pricing, no surprise overage</li>
            </ul>
            <a
              href={loggedIn ? "/settings/billing" : "/register?next=/settings/billing"}
              class="btn btn-primary btn-block pl-host-cta"
            >
              Start on Cloud
            </a>
          </div>
        </div>
      </section>

      {/* ------------------- FAQ ------------------- */}
      <section id="faq" class="pl-section">
        <div class="section-header">
          <div class="eyebrow">Questions</div>
          <h2>The fine print, in plain English.</h2>
        </div>
        <div class="pl-faq">
          <FaqItem
            q="Is it really free? What's the catch?"
            a="Really free. The free tier exists because we want every Claude-curious developer to try Gluecron without a credit card. The catch — if you can call it that — is that we hope you'll upgrade to Pro once you're shipping production traffic and need higher AI quotas."
          />
          <FaqItem
            q="Do I need to bring my own Anthropic API key on the free tier?"
            a="No. The free tier includes a generous monthly AI quota powered by our keys. If you'd rather use your own key (for cost control or enterprise rate limits), you can plug it in at /settings — Pro and above can route AI through your account."
          />
          <FaqItem
            q="What happens when I exceed my plan's quota?"
            a="AI features degrade gracefully — git push, hosting, and gates keep working. AI suggestions queue at the back of the line until the next cycle. We never auto-bill you for overage or auto-upgrade your plan."
          />
          <FaqItem
            q="Can I migrate from GitHub for free?"
            a="Yes. The migration tool is on every tier, free included. Point it at a GitHub repo URL and we mirror code, issues, PRs, and releases in one shot. No vendor lock — you can migrate back the same way."
          />
          <FaqItem
            q="Does the free tier include private repos?"
            a="The free tier is built around unlimited public repos. Private repos start on the Pro plan — that's the main paid-tier perk along with the higher AI quota. If you're self-hosting, all repos are private by default and there's no plan to worry about."
          />
        </div>
      </section>

      {/* ------------------- CTA ------------------- */}
      <section class="pl-section pl-cta-wrap">
        <div class="pl-cta">
          <h2 class="pl-cta-title">
            Ready to push your first repo?
          </h2>
          <p class="pl-cta-sub">
            Free, no credit card, full AI suite from minute one.
          </p>
          <div class="pl-cta-buttons">
            <a href="/register" class="btn btn-primary btn-xl">
              Start free
            </a>
            <a href="/vs-github" class="btn btn-ghost btn-xl">
              Compare to GitHub
            </a>
          </div>
        </div>
      </section>
    </div>
  </>
);

// ---- Sub-components -------------------------------------------------------

const PlanCard: FC<{ plan: Plan; loggedIn: boolean }> = ({ plan, loggedIn }) => {
  const copy = PLAN_COPY[plan.slug] || {
    tagline: `${plan.name} plan.`,
    supportTier: "Support included",
  };
  const href = loggedIn
    ? `/settings/billing?plan=${plan.slug}`
    : `/register?next=/settings/billing?plan=${plan.slug}`;
  const isPro = plan.slug === "pro";
  return (
    <div class={`pl-card${isPro ? " pl-card-hl" : ""}`}>
      {isPro && <div class="pl-card-badge">Most popular</div>}
      <div class="pl-card-name">{plan.name}</div>
      <div class="pl-card-price">
        <span class="pl-card-num">{formatPrice(plan.priceCents)}</span>
      </div>
      <p class="pl-card-tag">{copy.tagline}</p>
      <ul class="pl-card-feats">
        <li>
          <span class="pl-check">{"✓"}</span>
          {plan.repoLimit.toLocaleString()} repos
          {plan.privateRepos ? " (public + private)" : " (public only)"}
        </li>
        <li>
          <span class="pl-check">{"✓"}</span>
          {plan.aiTokensMonthly.toLocaleString()} AI tokens / month
        </li>
        <li>
          <span class="pl-check">{"✓"}</span>
          {plan.storageMbLimit.toLocaleString()} MB storage
        </li>
        <li>
          <span class="pl-check">{"✓"}</span>
          {plan.bandwidthGbMonthly.toLocaleString()} GB bandwidth / month
        </li>
        <li>
          <span class="pl-check">{"✓"}</span>
          {copy.supportTier}
        </li>
      </ul>
      <a
        href={href}
        class={`btn ${isPro ? "btn-primary" : "btn-secondary"} btn-block pl-card-cta`}
      >
        Choose {plan.name}
      </a>
    </div>
  );
};

const FreeItem: FC<{ label: string }> = ({ label }) => (
  <li class="pl-free-item">
    <span class="pl-free-check">{"✓"}</span>
    <span>{label}</span>
  </li>
);

const FaqItem: FC<{ q: string; a: string }> = ({ q, a }) => (
  <details class="pl-faq-item">
    <summary class="pl-faq-q">
      <span>{q}</span>
      <span class="pl-faq-toggle" aria-hidden="true">{"+"}</span>
    </summary>
    <p class="pl-faq-a">{a}</p>
  </details>
);

// ---- Styles (scoped under .pl-) -------------------------------------------

const pricingCss = `
  .pl-root { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

  /* Hero */
  .pl-hero {
    text-align: center;
    padding: var(--s-16) 0 var(--s-10);
    max-width: 920px;
    margin: 0 auto;
    position: relative;
  }
  .pl-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 60%;
    background: radial-gradient(ellipse at center, rgba(140,109,255,0.14), transparent 65%);
    z-index: -1;
    pointer-events: none;
  }
  /* 2026 polish — gradient hairline accent across the top of the hero
     (matches /admin, /admin/ops, error pages). */
  .pl-hero-hairline {
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #8c6dff 30%, #36c5d6 70%, transparent 100%);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
    border-radius: 2px;
  }
  /* 2026 polish — soft animated radial orb behind the headline. */
  .pl-hero-orb {
    position: absolute;
    top: 8%; left: 50%;
    transform: translateX(-50%);
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(140,109,255,0.20), rgba(54,197,214,0.10) 45%, transparent 70%);
    filter: blur(80px);
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
    animation: plHeroOrb 16s ease-in-out infinite;
  }
  @keyframes plHeroOrb {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.55; }
    50%      { transform: translateX(-50%) scale(1.12); opacity: 0.85; }
  }
  @media (prefers-reduced-motion: reduce) {
    .pl-hero-orb { animation: none; }
  }
  .pl-hero .eyebrow { justify-content: center; margin: 0 auto var(--s-4); }
  .pl-hero-title {
    font-size: clamp(36px, 6.5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.038em;
    margin: 0 0 var(--s-5);
  }
  .pl-hero-sub {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.55;
  }
  .pl-hero-jumps {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--s-7);
  }
  .pl-jump {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-full);
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  }
  .pl-jump:hover { color: var(--accent); border-color: rgba(140,109,255,0.35); }

  /* Plan cards */
  .pl-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: var(--s-10) auto var(--s-14);
    align-items: stretch;
  }
  .pl-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-7) var(--s-6);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out-quart);
  }
  .pl-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
  .pl-card-hl {
    border-color: rgba(140,109,255,0.40);
    box-shadow: var(--elev-2), 0 0 0 1px rgba(140,109,255,0.30);
    background:
      linear-gradient(180deg, rgba(140,109,255,0.05), transparent 50%),
      var(--bg-elevated);
  }
  .pl-card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    background: var(--accent-gradient);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: var(--r-full);
    box-shadow: 0 4px 14px -2px rgba(140,109,255,0.45);
    white-space: nowrap;
  }
  .pl-card-name {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
  }
  .pl-card-price { display: flex; align-items: baseline; gap: 6px; }
  .pl-card-num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-strong);
  }
  .pl-card-tag {
    font-size: var(--t-sm);
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
  }
  .pl-card-feats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    color: var(--text);
  }
  .pl-card-feats li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.45;
  }
  .pl-check {
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1.45;
  }
  .pl-card-cta { margin-top: auto; }

  /* Section base */
  .pl-section { margin: var(--s-14) auto; }

  /* Free-tier block */
  .pl-free-grid {
    list-style: none;
    padding: 0;
    margin: var(--s-6) auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 32px;
    max-width: 880px;
  }
  .pl-free-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r);
    font-size: var(--t-sm);
    color: var(--text);
    line-height: 1.45;
    transition: border-color var(--t-fast) var(--ease);
  }
  .pl-free-item:hover { border-color: rgba(140,109,255,0.35); }
  .pl-free-check {
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
  }

  /* Self-host vs Cloud */
  .pl-host-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 920px;
    margin: 0 auto;
  }
  .pl-host-col {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-7) var(--s-6);
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
  }
  .pl-host-cloud {
    border-color: rgba(140,109,255,0.35);
    box-shadow: 0 0 0 1px rgba(140,109,255,0.20);
    background:
      linear-gradient(180deg, rgba(140,109,255,0.04), transparent 60%),
      var(--bg-elevated);
  }
  .pl-host-name {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
  }
  .pl-host-price {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-strong);
  }
  .pl-host-feats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: var(--t-sm);
    color: var(--text);
  }
  .pl-host-feats li {
    display: flex;
    gap: 9px;
    line-height: 1.5;
  }
  .pl-host-feats li::before {
    content: '→';
    color: var(--accent);
    flex-shrink: 0;
  }
  .pl-host-feats code {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--accent);
  }
  .pl-host-cta { margin-top: auto; }

  /* ------------------- Bundle-math comparison (vs GitHub) ------------------- */
  /* 2026 polish — side-by-side cost comparison that makes the AI-bundled
     value proposition unmissable. Same visual rhythm as .pl-host-grid; the
     "us" side wins via accent border + subtle gradient glow. */
  .pl-compare {
    margin-top: var(--space-7);
  }
  .pl-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    max-width: 1040px;
    margin: 0 auto;
  }
  .pl-compare-col {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-5) var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    transition: transform var(--t-base, 180ms) var(--ease, ease),
                box-shadow var(--t-base, 180ms) var(--ease, ease);
  }
  .pl-compare-col:hover { transform: translateY(-2px); }
  .pl-compare-us {
    position: relative;
    border: 1px solid transparent;
    background-image:
      linear-gradient(var(--bg-elevated), var(--bg-elevated)),
      linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 16px 56px -12px rgba(140, 109, 255, 0.20);
  }
  .pl-compare-us::before {
    content: 'Better deal';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8c6dff 0%, #36c5d6 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .pl-compare-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-2);
  }
  .pl-compare-us .pl-compare-name {
    color: var(--accent);
  }
  .pl-compare-price {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-strong);
    margin-bottom: var(--space-5);
  }
  .pl-compare-per {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
    letter-spacing: 0;
  }
  .pl-compare-feats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text);
  }
  .pl-compare-bullet {
    display: inline-block;
    min-width: 44px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 8px;
  }
  .pl-compare-check {
    display: inline-block;
    min-width: 22px;
    color: var(--accent);
    font-weight: 700;
  }
  .pl-compare-missing {
    color: var(--text-muted);
    font-style: italic;
  }
  .pl-compare-footer {
    max-width: 720px;
    margin: var(--space-6) auto 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
  }
  .pl-compare-footer strong {
    color: var(--text-strong);
    background-image: linear-gradient(transparent 62%, rgba(140, 109, 255, 0.18) 62%);
  }
  @media (max-width: 720px) {
    .pl-compare-grid { grid-template-columns: 1fr; }
    .pl-compare-price { font-size: 44px; }
  }

  /* FAQ */
  .pl-faq {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-elevated);
  }
  .pl-faq-item { border-bottom: 1px solid var(--border-subtle); }
  .pl-faq-item:last-child { border-bottom: none; }
  .pl-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
    font-size: var(--t-md);
    font-weight: 500;
    color: var(--text-strong);
    list-style: none;
    transition: background var(--t-fast) var(--ease);
  }
  .pl-faq-q::-webkit-details-marker { display: none; }
  .pl-faq-q:hover { background: var(--bg-hover); }
  .pl-faq-toggle {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--text-muted);
    transition: transform var(--t-base) var(--ease-spring);
    flex-shrink: 0;
  }
  .pl-faq-item[open] .pl-faq-toggle { transform: rotate(45deg); color: var(--accent); }
  .pl-faq-a {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: var(--t-sm);
    line-height: 1.6;
    margin: 0;
  }

  /* CTA */
  .pl-cta-wrap { margin: var(--s-16) auto var(--s-10); }
  .pl-cta {
    position: relative;
    text-align: center;
    padding: var(--s-12) var(--s-6);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-2xl);
    background:
      radial-gradient(60% 100% at 50% 0%, rgba(140,109,255,0.14), transparent 65%),
      var(--bg-elevated);
    overflow: hidden;
  }
  .pl-cta-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 600;
    margin: 0 0 var(--s-3);
    color: var(--text-strong);
  }
  .pl-cta-sub {
    font-size: var(--t-md);
    color: var(--text-muted);
    margin: 0 auto var(--s-6);
    max-width: 480px;
  }
  .pl-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Responsive */
  @media (max-width: 960px) {
    .pl-plans { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 720px) {
    .pl-host-grid { grid-template-columns: 1fr; }
    .pl-free-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    .pl-plans { grid-template-columns: 1fr; }
    .pl-cta-buttons .btn { width: 100%; justify-content: center; }
  }
`;

export default pricing;