gaurv007 commited on
Commit
ebf0e86
·
verified ·
1 Parent(s): a9c4f8f

Upload web/app/page.tsx

Browse files
Files changed (1) hide show
  1. web/app/page.tsx +72 -37
web/app/page.tsx CHANGED
@@ -2,45 +2,54 @@ import Link from "next/link";
2
  import {
3
  ShieldCheck, ShieldAlert, Scale, Gavel, ScrollText, Handshake,
4
  ScanText, FileCheck, TriangleAlert, ArrowRight, Zap, Eye, Download,
5
- ChevronRight, Sparkles, Lock, Globe, Ban, FileX, Stamp
 
 
6
  } from "lucide-react";
7
 
8
  const CLAUSES = [
9
- { icon: Scale, name: "Arbitration", desc: "Waives your right to sue in court", severity: "high" },
10
- { icon: ShieldAlert, name: "Liability limits", desc: "Company avoids responsibility for damages", severity: "high" },
11
- { icon: Ban, name: "Unilateral termination", desc: "They can close your account without reason", severity: "high" },
12
- { icon: FileX, name: "Unilateral change", desc: "Terms can change without your consent", severity: "medium" },
13
- { icon: Eye, name: "Content removal", desc: "Your content deleted without notice", severity: "medium" },
14
  { icon: Globe, name: "Jurisdiction", desc: "Disputes handled in their preferred court", severity: "medium" },
15
  { icon: Gavel, name: "Choice of law", desc: "Foreign law overrides your local protections", severity: "medium" },
16
- { icon: Stamp, name: "Contract by using", desc: "You agree just by visiting the site", severity: "low" },
 
 
 
 
 
 
17
  ];
18
 
19
  const STEPS = [
20
- { icon: Download, title: "Install", desc: "Add the Chrome extension. Two clicks, no signup required." },
21
- { icon: ScanText, title: "Browse normally", desc: "Visit any terms page. ClauseGuard scans it in the background." },
22
- { icon: TriangleAlert, title: "See the flags", desc: "Unfair clauses get highlighted. Open the sidebar for the full breakdown." },
23
  ];
24
 
25
  const PRICING = [
26
  {
27
  name: "Free", price: "₹0", period: "", highlight: false, cta: "Get started",
28
- features: ["10 scans per month", "All 8 clause types", "Risk score and grade", "Chrome extension", "Local fallback"],
29
  },
30
  {
31
  name: "Pro", price: "₹999", period: "/mo", highlight: true, cta: "Start free trial",
32
- features: ["Unlimited scans", "Upload contracts and leases", "AI clause explanations", "Scan history", "PDF report export", "Email scan reports", "Priority support"],
33
  },
34
  {
35
  name: "Team", price: "₹3,999", period: "/mo", highlight: false, cta: "Talk to us",
36
- features: ["Everything in Pro", "5 team seats", "10,000 API calls", "Shared dashboard", "Slack support", "Custom clause rules"],
37
  },
38
  ];
39
 
40
  const sevColor: Record<string, string> = {
41
- high: "text-red-500 bg-red-50",
42
- medium: "text-amber-500 bg-amber-50",
43
- low: "text-blue-500 bg-blue-50",
 
44
  };
45
 
46
  export default function Home() {
@@ -51,27 +60,26 @@ export default function Home() {
51
  <div className="max-w-2xl">
52
  <div className="inline-flex items-center gap-2 px-3 py-1 rounded-full border border-zinc-200 text-[13px] text-zinc-500 mb-6">
53
  <Sparkles className="w-3.5 h-3.5 text-zinc-400" />
54
- Trained on 9,414 legal clauses
55
  </div>
56
  <h1 className="text-[42px] sm:text-5xl font-semibold tracking-tight leading-[1.1]">
57
  Know what you are<br />agreeing to
58
  </h1>
59
  <p className="mt-5 text-[17px] text-zinc-500 leading-relaxed max-w-lg">
60
- ClauseGuard scans Terms of Service, contracts, and leases for unfair clauses.
61
- Get a clear risk score before you click accept.
62
  </p>
63
  <div className="mt-8 flex flex-wrap gap-3">
64
  <Link href="/dashboard-pages/analyze" className="inline-flex items-center gap-2 bg-zinc-900 text-white px-5 py-2.5 rounded-lg text-sm font-medium hover:bg-zinc-800 transition-colors">
65
- <Download className="w-4 h-4" />
66
- Add to Chrome
67
- </Link>
68
- <Link href="/dashboard-pages/analyze"
69
- className="inline-flex items-center gap-2 border border-zinc-200 px-5 py-2.5 rounded-lg text-sm font-medium hover:bg-zinc-50 transition-colors">
70
  Try the scanner
 
 
 
71
  <ArrowRight className="w-4 h-4" />
72
  </Link>
73
  </div>
74
- <p className="mt-4 text-xs text-zinc-400">No account needed for free tier</p>
75
  </div>
76
  </section>
77
 
@@ -82,15 +90,15 @@ export default function Home() {
82
  <ShieldCheck className="w-4 h-4 text-zinc-400" />
83
  <p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">Detection</p>
84
  </div>
85
- <h2 className="text-2xl font-semibold tracking-tight">Eight types of unfair clauses</h2>
86
  <p className="mt-2 text-zinc-500 text-[15px] max-w-lg">
87
- Based on the CLAUDETTE taxonomy — the same framework used by EU consumer protection researchers.
88
  </p>
89
 
90
  <div className="mt-10 grid sm:grid-cols-2 lg:grid-cols-4 gap-3">
91
  {CLAUSES.map((c) => (
92
  <div key={c.name} className="group border border-zinc-100 rounded-xl p-4 hover:border-zinc-200 hover:shadow-sm transition-all cursor-default">
93
- <div className={`w-8 h-8 rounded-lg flex items-center justify-center ${sevColor[c.severity]}`}>
94
  <c.icon className="w-4 h-4" />
95
  </div>
96
  <p className="mt-3 text-sm font-medium">{c.name}</p>
@@ -108,7 +116,7 @@ export default function Home() {
108
  <Zap className="w-4 h-4 text-zinc-400" />
109
  <p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">How it works</p>
110
  </div>
111
- <h2 className="text-2xl font-semibold tracking-tight">Three steps, under two seconds</h2>
112
 
113
  <div className="mt-10 grid sm:grid-cols-3 gap-8">
114
  {STEPS.map((s, i) => (
@@ -127,6 +135,33 @@ export default function Home() {
127
  </div>
128
  </section>
129
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  {/* Pricing */}
131
  <section id="pricing" className="border-t border-zinc-100">
132
  <div className="max-w-6xl mx-auto px-5 py-20">
@@ -137,9 +172,7 @@ export default function Home() {
137
  {PRICING.map((plan) => (
138
  <div key={plan.name}
139
  className={`rounded-xl p-6 transition-shadow ${
140
- plan.highlight
141
- ? "border-2 border-zinc-900 shadow-sm"
142
- : "border border-zinc-200"
143
  }`}>
144
  <p className="text-[13px] font-medium text-zinc-400">{plan.name}</p>
145
  <p className="mt-2 flex items-baseline gap-1">
@@ -156,9 +189,7 @@ export default function Home() {
156
  </ul>
157
  <Link href={plan.name === "Free" ? "/auth/signup" : plan.name === "Team" ? "mailto:hello@clauseguardweb.netlify.app" : "/auth/signup"}
158
  className={`mt-6 block w-full py-2.5 rounded-lg text-[13px] font-medium text-center transition-colors ${
159
- plan.highlight
160
- ? "bg-zinc-900 text-white hover:bg-zinc-800"
161
- : "border border-zinc-200 text-zinc-700 hover:bg-zinc-50"
162
  }`}>
163
  {plan.cta}
164
  </Link>
@@ -176,11 +207,15 @@ export default function Home() {
176
  <p className="mt-2 text-[15px] text-zinc-500 max-w-md mx-auto">
177
  Join thousands protecting themselves before clicking accept.
178
  </p>
179
- <div className="mt-6">
180
  <Link href="/auth/signup" className="inline-flex items-center gap-2 bg-zinc-900 text-white px-6 py-3 rounded-lg text-sm font-medium hover:bg-zinc-800 transition-colors">
181
- <Download className="w-4 h-4" />
182
  Get started free
183
  </Link>
 
 
 
 
184
  </div>
185
  </div>
186
  </section>
 
2
  import {
3
  ShieldCheck, ShieldAlert, Scale, Gavel, ScrollText, Handshake,
4
  ScanText, FileCheck, TriangleAlert, ArrowRight, Zap, Eye, Download,
5
+ ChevronRight, Sparkles, Lock, Globe, Ban, FileX, Stamp, Layers,
6
+ Tag, AlertTriangle, ClipboardList, Landmark, Building, DollarSign,
7
+ MapPin, Hash, BookOpen, CheckCircle
8
  } from "lucide-react";
9
 
10
  const CLAUSES = [
11
+ { icon: Scale, name: "Arbitration", desc: "Waives your right to sue in court", severity: "critical" },
12
+ { icon: ShieldAlert, name: "Liability limits", desc: "Company avoids responsibility for damages", severity: "critical" },
13
+ { icon: Ban, name: "Unilateral termination", desc: "They can close your account without reason", severity: "critical" },
14
+ { icon: FileX, name: "Unilateral change", desc: "Terms can change without your consent", severity: "high" },
15
+ { icon: Eye, name: "Content removal", desc: "Your content deleted without notice", severity: "high" },
16
  { icon: Globe, name: "Jurisdiction", desc: "Disputes handled in their preferred court", severity: "medium" },
17
  { icon: Gavel, name: "Choice of law", desc: "Foreign law overrides your local protections", severity: "medium" },
18
+ { icon: Lock, name: "IP Ownership", desc: "Intellectual property transferred entirely", severity: "critical" },
19
+ { icon: Layers, name: "41 CUAD Categories", desc: "Full taxonomy: NDA, MSA, SLA, and more", severity: "low" },
20
+ { icon: Tag, name: "Legal NER", desc: "Extract parties, dates, money, jurisdictions", severity: "low" },
21
+ { icon: AlertTriangle, name: "Contradictions", desc: "Detect conflicting clauses automatically", severity: "high" },
22
+ { icon: ClipboardList, name: "Obligations", desc: "Track monetary, compliance, reporting tasks", severity: "medium" },
23
+ { icon: Landmark, name: "Compliance", desc: "GDPR, CCPA, SOX, HIPAA, FINRA checks", severity: "high" },
24
+ { icon: BookOpen, name: "Compare Contracts", desc: "Side-by-side diff with alignment scoring", severity: "low" },
25
  ];
26
 
27
  const STEPS = [
28
+ { icon: Download, title: "Upload or paste", desc: "Drop a PDF, DOCX, or paste contract text directly." },
29
+ { icon: ScanText, title: "AI scans 41 categories", desc: "Legal-BERT + CUAD detects clauses, risks, entities." },
30
+ { icon: TriangleAlert, title: "Get actionable insights", desc: "Risk score, contradictions, obligations, compliance gaps." },
31
  ];
32
 
33
  const PRICING = [
34
  {
35
  name: "Free", price: "₹0", period: "", highlight: false, cta: "Get started",
36
+ features: ["10 scans per month", "41 clause categories", "Risk scoring", "Legal NER", "Contradiction detection", "Compliance checks"],
37
  },
38
  {
39
  name: "Pro", price: "₹999", period: "/mo", highlight: true, cta: "Start free trial",
40
+ features: ["Unlimited scans", "Upload PDF/DOCX files", "Contract comparison", "AI clause explanations", "Scan history", "PDF report export", "Obligation tracker", "Priority support"],
41
  },
42
  {
43
  name: "Team", price: "₹3,999", period: "/mo", highlight: false, cta: "Talk to us",
44
+ features: ["Everything in Pro", "5 team seats", "10,000 API calls", "Shared dashboard", "Slack support", "Custom clause rules", "Enterprise compliance"],
45
  },
46
  ];
47
 
48
  const sevColor: Record<string, string> = {
49
+ critical: "text-red-500 bg-red-50 border-red-200",
50
+ high: "text-amber-500 bg-amber-50 border-amber-200",
51
+ medium: "text-blue-500 bg-blue-50 border-blue-200",
52
+ low: "text-emerald-500 bg-emerald-50 border-emerald-200",
53
  };
54
 
55
  export default function Home() {
 
60
  <div className="max-w-2xl">
61
  <div className="inline-flex items-center gap-2 px-3 py-1 rounded-full border border-zinc-200 text-[13px] text-zinc-500 mb-6">
62
  <Sparkles className="w-3.5 h-3.5 text-zinc-400" />
63
+ Trained on 13,000+ legal clauses across 41 categories
64
  </div>
65
  <h1 className="text-[42px] sm:text-5xl font-semibold tracking-tight leading-[1.1]">
66
  Know what you are<br />agreeing to
67
  </h1>
68
  <p className="mt-5 text-[17px] text-zinc-500 leading-relaxed max-w-lg">
69
+ ClauseGuard scans contracts, terms of service, and leases using AI trained on legal data.
70
+ Get clause detection, risk scoring, entity extraction, contradiction alerts, and compliance checks.
71
  </p>
72
  <div className="mt-8 flex flex-wrap gap-3">
73
  <Link href="/dashboard-pages/analyze" className="inline-flex items-center gap-2 bg-zinc-900 text-white px-5 py-2.5 rounded-lg text-sm font-medium hover:bg-zinc-800 transition-colors">
74
+ <ScanText className="w-4 h-4" />
 
 
 
 
75
  Try the scanner
76
+ </Link>
77
+ <Link href="/dashboard-pages/compare" className="inline-flex items-center gap-2 border border-zinc-200 px-5 py-2.5 rounded-lg text-sm font-medium hover:bg-zinc-50 transition-colors">
78
+ Compare contracts
79
  <ArrowRight className="w-4 h-4" />
80
  </Link>
81
  </div>
82
+ <p className="mt-4 text-xs text-zinc-400">No account needed for free tier · 10 scans/month</p>
83
  </div>
84
  </section>
85
 
 
90
  <ShieldCheck className="w-4 h-4 text-zinc-400" />
91
  <p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">Detection</p>
92
  </div>
93
+ <h2 className="text-2xl font-semibold tracking-tight">14 powerful analysis features</h2>
94
  <p className="mt-2 text-zinc-500 text-[15px] max-w-lg">
95
+ Based on the CUAD taxonomy + CLAUDETTE framework — the same datasets used by EU consumer protection researchers and Stanford NLP.
96
  </p>
97
 
98
  <div className="mt-10 grid sm:grid-cols-2 lg:grid-cols-4 gap-3">
99
  {CLAUSES.map((c) => (
100
  <div key={c.name} className="group border border-zinc-100 rounded-xl p-4 hover:border-zinc-200 hover:shadow-sm transition-all cursor-default">
101
+ <div className={`w-8 h-8 rounded-lg flex items-center justify-center border ${sevColor[c.severity]}`}>
102
  <c.icon className="w-4 h-4" />
103
  </div>
104
  <p className="mt-3 text-sm font-medium">{c.name}</p>
 
116
  <Zap className="w-4 h-4 text-zinc-400" />
117
  <p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">How it works</p>
118
  </div>
119
+ <h2 className="text-2xl font-semibold tracking-tight">Three steps, under 30 seconds</h2>
120
 
121
  <div className="mt-10 grid sm:grid-cols-3 gap-8">
122
  {STEPS.map((s, i) => (
 
135
  </div>
136
  </section>
137
 
138
+ {/* Models */}
139
+ <section className="border-t border-zinc-100">
140
+ <div className="max-w-6xl mx-auto px-5 py-20">
141
+ <div className="flex items-center gap-2 mb-2">
142
+ <CheckCircle className="w-4 h-4 text-zinc-400" />
143
+ <p className="text-[13px] font-medium text-zinc-400 uppercase tracking-wider">Technology</p>
144
+ </div>
145
+ <h2 className="text-2xl font-semibold tracking-tight">Built on production-grade models</h2>
146
+ <div className="mt-8 grid sm:grid-cols-2 lg:grid-cols-3 gap-4">
147
+ {[
148
+ { name: "Legal-BERT + CUAD", desc: "41 clause categories fine-tuned on 510 contracts, 13K annotations", source: "Mokshith31/legalbert-contract-clause-classification" },
149
+ { name: "Legal NER Engine", desc: "Regex + pattern-based extraction for parties, dates, money, jurisdictions, defined terms", source: "Custom" },
150
+ { name: "NLI Detection", desc: "Heuristic contradiction detection: liability caps, governing law conflicts, IP ownership", source: "Custom" },
151
+ { name: "Compliance Engine", desc: "GDPR, CCPA, SOX, HIPAA, FINRA keyword matching with severity scoring", source: "Custom" },
152
+ { name: "Obligation Tracker", desc: "Extracts monetary, compliance, reporting, delivery, and termination obligations", source: "Custom" },
153
+ { name: "Comparison Engine", desc: "SequenceMatcher-based clause alignment with risk delta analysis", source: "Custom" },
154
+ ].map((m) => (
155
+ <div key={m.name} className="border border-zinc-100 rounded-xl p-4 hover:border-zinc-200 transition-all">
156
+ <p className="text-sm font-medium text-zinc-900">{m.name}</p>
157
+ <p className="text-[13px] text-zinc-500 mt-1 leading-relaxed">{m.desc}</p>
158
+ <p className="text-[11px] text-zinc-400 mt-2">{m.source}</p>
159
+ </div>
160
+ ))}
161
+ </div>
162
+ </div>
163
+ </section>
164
+
165
  {/* Pricing */}
166
  <section id="pricing" className="border-t border-zinc-100">
167
  <div className="max-w-6xl mx-auto px-5 py-20">
 
172
  {PRICING.map((plan) => (
173
  <div key={plan.name}
174
  className={`rounded-xl p-6 transition-shadow ${
175
+ plan.highlight ? "border-2 border-zinc-900 shadow-sm" : "border border-zinc-200"
 
 
176
  }`}>
177
  <p className="text-[13px] font-medium text-zinc-400">{plan.name}</p>
178
  <p className="mt-2 flex items-baseline gap-1">
 
189
  </ul>
190
  <Link href={plan.name === "Free" ? "/auth/signup" : plan.name === "Team" ? "mailto:hello@clauseguardweb.netlify.app" : "/auth/signup"}
191
  className={`mt-6 block w-full py-2.5 rounded-lg text-[13px] font-medium text-center transition-colors ${
192
+ plan.highlight ? "bg-zinc-900 text-white hover:bg-zinc-800" : "border border-zinc-200 text-zinc-700 hover:bg-zinc-50"
 
 
193
  }`}>
194
  {plan.cta}
195
  </Link>
 
207
  <p className="mt-2 text-[15px] text-zinc-500 max-w-md mx-auto">
208
  Join thousands protecting themselves before clicking accept.
209
  </p>
210
+ <div className="mt-6 flex gap-3 justify-center">
211
  <Link href="/auth/signup" className="inline-flex items-center gap-2 bg-zinc-900 text-white px-6 py-3 rounded-lg text-sm font-medium hover:bg-zinc-800 transition-colors">
212
+ <ScanText className="w-4 h-4" />
213
  Get started free
214
  </Link>
215
+ <Link href="/dashboard-pages/compare" className="inline-flex items-center gap-2 border border-zinc-200 px-6 py-3 rounded-lg text-sm font-medium hover:bg-zinc-50 transition-colors">
216
+ <ArrowRight className="w-4 h-4" />
217
+ Compare contracts
218
+ </Link>
219
  </div>
220
  </div>
221
  </section>