VsinghiAssociates commited on
Commit
8304ec0
Β·
verified Β·
1 Parent(s): be1d7b8

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -81,6 +81,17 @@ python app.py
81
 
82
  Open `http://localhost:7860`.
83
 
 
 
 
 
 
 
 
 
 
 
 
84
  ## Files
85
 
86
  - `app.py`: deployable Flask app
 
81
 
82
  Open `http://localhost:7860`.
83
 
84
+ ## Optional AI API keys
85
+
86
+ The current bank statement parsers are rule-based and do not require API keys. If an AI fallback is added later, put keys in environment variables before starting Flask:
87
+
88
+ ```powershell
89
+ $env:GROQ_API_KEY="your_groq_key"
90
+ $env:GEMINI_API_KEY="your_gemini_key"
91
+ $env:OPENROUTER_API_KEY="your_openrouter_key"
92
+ python run_server.py
93
+ ```
94
+
95
  ## Files
96
 
97
  - `app.py`: deployable Flask app
app.py CHANGED
The diff for this file is too large to render. See raw diff
 
requirements.txt CHANGED
@@ -7,3 +7,4 @@ xlrd==2.0.1
7
  razorpay==1.4.2
8
  pypdf==4.3.1
9
  python-docx==1.1.2
 
 
7
  razorpay==1.4.2
8
  pypdf==4.3.1
9
  python-docx==1.1.2
10
+ python-dotenv==1.0.1
run_server.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from app import app
3
+
4
+
5
+ if __name__ == "__main__":
6
+ host = os.getenv("HOST", "0.0.0.0")
7
+ port = int(os.getenv("PORT", 7860))
8
+ app.run(host=host, port=port, debug=False)
services.py ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import re
3
+ import zipfile
4
+ import tempfile
5
+ import multiprocessing
6
+ from io import BytesIO
7
+
8
+ import pandas as pd
9
+ import fitz
10
+ from PIL import Image
11
+ from groq import Groq
12
+ from docx import Document
13
+ from docx.shared import Pt
14
+ from docx.enum.text import WD_ALIGN_PARAGRAPH
15
+ from dotenv import load_dotenv
16
+ from pypdf import PdfReader, PdfWriter
17
+ import ocrmypdf
18
+
19
+ load_dotenv()
20
+
21
+ GROQ_KEY = os.environ.get("GROQ_API_KEY")
22
+ _client = Groq(api_key=GROQ_KEY) if GROQ_KEY and GROQ_KEY != "your-groq-api-key-here" else None
23
+
24
+
25
+ def _groq():
26
+ if _client is None:
27
+ raise ValueError(
28
+ "GROQ_API_KEY is not set or still has the placeholder value. "
29
+ "Add your real API key in the .env file."
30
+ )
31
+ return _client
32
+
33
+
34
+ # ── helpers ────────────────────────────────────────────────────────────────
35
+
36
+ def _cb(progress, message, callback):
37
+ if callback:
38
+ callback(progress, message)
39
+
40
+
41
+ # ── PDF split (single PDF β†’ ZIP of page-PDFs) ──────────────────────────────
42
+
43
+ def pdf_split_process(file_bytes: bytes, split_size: int = 1, progress_callback=None):
44
+ _cb(5, "Reading PDF…", progress_callback)
45
+ doc = fitz.open(stream=file_bytes, filetype="pdf")
46
+ total = len(doc)
47
+ _cb(10, f"Splitting {total} page(s) into groups of {split_size}…", progress_callback)
48
+
49
+ zip_buf = BytesIO()
50
+ with zipfile.ZipFile(zip_buf, "w", zipfile.ZIP_DEFLATED) as zf:
51
+ for start_idx in range(0, total, split_size):
52
+ end_idx = min(start_idx + split_size - 1, total - 1)
53
+ pct = 10 + int(80 * (end_idx + 1) / total)
54
+
55
+ if start_idx == end_idx:
56
+ _cb(pct, f"Processing page {start_idx + 1} of {total}…", progress_callback)
57
+ else:
58
+ _cb(pct, f"Processing pages {start_idx + 1} to {end_idx + 1} of {total}…", progress_callback)
59
+
60
+ page_doc = fitz.open()
61
+ page_doc.insert_pdf(doc, from_page=start_idx, to_page=end_idx)
62
+ page_buf = BytesIO()
63
+ page_doc.save(page_buf)
64
+ page_doc.close()
65
+
66
+ if start_idx == end_idx:
67
+ filename = f"page_{start_idx + 1:03d}.pdf"
68
+ else:
69
+ filename = f"pages_{start_idx + 1:03d}-{end_idx + 1:03d}.pdf"
70
+ zf.writestr(filename, page_buf.getvalue())
71
+
72
+ doc.close()
73
+ _cb(100, "Split complete", progress_callback)
74
+ return zip_buf.getvalue()
75
+
76
+
77
+ # ── PDF merge (multiple PDFs β†’ single PDF) ─────────────────────────────────
78
+
79
+ def pdf_merge_process(files_data: list[tuple[str, bytes]], progress_callback=None):
80
+ _cb(5, "Preparing merge…", progress_callback)
81
+ merged = fitz.open()
82
+
83
+ total_pages = 0
84
+ for fname, data in files_data:
85
+ d = fitz.open(stream=data, filetype="pdf")
86
+ total_pages += len(d)
87
+ d.close()
88
+
89
+ done = 0
90
+ for fname, data in files_data:
91
+ d = fitz.open(stream=data, filetype="pdf")
92
+ for i in range(len(d)):
93
+ pct = 5 + int(90 * (done + 1) / total_pages)
94
+ _cb(pct, f"Merging {fname} β€” page {i + 1}…", progress_callback)
95
+ merged.insert_pdf(d, from_page=i, to_page=i)
96
+ done += 1
97
+ d.close()
98
+
99
+ buf = BytesIO()
100
+ merged.save(buf)
101
+ merged.close()
102
+ _cb(100, "Merge complete", progress_callback)
103
+ return buf.getvalue()
104
+
105
+
106
+ # ── PDF to Word ────────────────────────────────────────────────────────────
107
+
108
+ def pdf_to_word_process(file_bytes: bytes, filename: str, progress_callback=None):
109
+ """Extract PDF text into a Word (.docx) document."""
110
+ _cb(5, "Reading PDF…", progress_callback)
111
+
112
+ reader = PdfReader(BytesIO(file_bytes))
113
+ total_pages = len(reader.pages)
114
+ _cb(10, f"Found {total_pages} page(s). Building Word document…", progress_callback)
115
+
116
+ doc = Document()
117
+ doc.add_heading(f"SCANLY PDF to Word β€” {filename}", level=0)
118
+
119
+ for idx, page in enumerate(reader.pages, start=1):
120
+ pct = 10 + int(80 * idx / total_pages)
121
+ _cb(pct, f"Processing page {idx} of {total_pages}…", progress_callback)
122
+
123
+ doc.add_heading(f"Page {idx}", level=2)
124
+ text = page.extract_text() or ""
125
+ if text.strip():
126
+ doc.add_paragraph(text.strip())
127
+ else:
128
+ doc.add_paragraph("[No selectable text found on this page.]")
129
+
130
+ buf = BytesIO()
131
+ doc.save(buf)
132
+ buf.seek(0)
133
+ _cb(100, "Word document ready", progress_callback)
134
+ return buf.getvalue()
135
+
136
+
137
+ # ── PDF Delete Pages ───────────────────────────────────────────────────────
138
+
139
+ def pdf_delete_pages_process(file_bytes: bytes, pages_to_delete: str, progress_callback=None):
140
+ """Remove specified pages from a PDF and return the cleaned PDF bytes."""
141
+ _cb(5, "Reading PDF…", progress_callback)
142
+
143
+ reader = PdfReader(BytesIO(file_bytes))
144
+ total_pages = len(reader.pages)
145
+ _cb(10, f"PDF has {total_pages} page(s). Parsing deletion list…", progress_callback)
146
+
147
+ # Parse page spec like "1,3-5,7"
148
+ delete_set: set[int] = set()
149
+ for part in pages_to_delete.split(","):
150
+ part = part.strip()
151
+ if not part:
152
+ continue
153
+ if "-" in part:
154
+ start_str, end_str = part.split("-", 1)
155
+ start = int(start_str.strip())
156
+ end = int(end_str.strip())
157
+ if start > end:
158
+ start, end = end, start
159
+ delete_set.update(range(start, end + 1))
160
+ else:
161
+ delete_set.add(int(part))
162
+
163
+ # Validate
164
+ invalid = [p for p in delete_set if p < 1 or p > total_pages]
165
+ if invalid:
166
+ raise ValueError(f"Page number out of range (valid: 1–{total_pages}): {invalid[0]}")
167
+ if len(delete_set) >= total_pages:
168
+ raise ValueError("Cannot delete every page from a PDF β€” at least one page must remain.")
169
+
170
+ _cb(25, f"Deleting {len(delete_set)} page(s)…", progress_callback)
171
+
172
+ writer = PdfWriter()
173
+ for idx, page in enumerate(reader.pages, start=1):
174
+ if idx not in delete_set:
175
+ writer.add_page(page)
176
+
177
+ buf = BytesIO()
178
+ writer.write(buf)
179
+ buf.seek(0)
180
+ _cb(100, f"Done β€” {len(writer.pages)} page(s) remaining", progress_callback)
181
+ return buf.getvalue()
182
+
183
+
184
+ # ── Excel β†’ CSV ────────────────────────────────────────────────────────────
185
+
186
+ def excel_to_csv_process(file_bytes: bytes, filename: str, progress_callback=None):
187
+ _cb(10, "Reading spreadsheet…", progress_callback)
188
+ ext = os.path.splitext(filename)[1].lower()
189
+
190
+ if ext == ".csv":
191
+ _cb(100, "Already CSV", progress_callback)
192
+ return file_bytes
193
+
194
+ if ext in (".xlsx", ".xlsm"):
195
+ df = pd.read_excel(BytesIO(file_bytes), engine="openpyxl")
196
+ elif ext == ".xls":
197
+ df = pd.read_excel(BytesIO(file_bytes), engine="xlrd")
198
+ else:
199
+ raise ValueError(f"Unsupported format: {ext}")
200
+
201
+ _cb(50, f"Read {len(df)} rows β€” writing CSV…", progress_callback)
202
+ csv_buf = BytesIO()
203
+ df.to_csv(csv_buf, index=False)
204
+ csv_buf.seek(0)
205
+ _cb(100, "Done", progress_callback)
206
+ return csv_buf.getvalue()
207
+
208
+
209
+ # ── Summarize (PDF / DOCX / TXT β†’ DOCX with bullet points) ────────────────
210
+
211
+ def summarize_process(file_bytes: bytes, filename: str, progress_callback=None):
212
+ _cb(5, "Reading document…", progress_callback)
213
+ ext = os.path.splitext(filename)[1].lower()
214
+
215
+ # ── extract plain text ──
216
+ text = ""
217
+ if ext == ".pdf":
218
+ _cb(10, "Extracting text from PDF…", progress_callback)
219
+ doc = fitz.open(stream=file_bytes, filetype="pdf")
220
+ pages = [doc[i].get_text() for i in range(len(doc))]
221
+ doc.close()
222
+ text = "\n".join(pages)
223
+ elif ext == ".docx":
224
+ _cb(10, "Reading DOCX…", progress_callback)
225
+ doc = Document(BytesIO(file_bytes))
226
+ text = "\n".join(p.text for p in doc.paragraphs if p.text.strip())
227
+ elif ext == ".txt":
228
+ _cb(10, "Reading text file…", progress_callback)
229
+ text = file_bytes.decode("utf-8", errors="replace")
230
+ else:
231
+ raise ValueError(f"Unsupported format: {ext}")
232
+
233
+ text = text.strip()
234
+ if not text:
235
+ raise ValueError("No text could be extracted from the document.")
236
+
237
+ _cb(30, f"Extracted {len(text)} characters β€” summarising with AI…", progress_callback)
238
+
239
+ resp = _groq().chat.completions.create(
240
+ model="llama-3.3-70b-versatile",
241
+ messages=[
242
+ {
243
+ "role": "system",
244
+ "content": (
245
+ "You are a professional document summariser. "
246
+ "Summarise the following document in clean, well-organised bullet points. "
247
+ "Use short section headers with emoji where appropriate. "
248
+ "Cover key topics, main arguments, and important data. "
249
+ "Output in plain text using Markdown-style bullet points."
250
+ ),
251
+ },
252
+ {"role": "user", "content": text[:32000]},
253
+ ],
254
+ temperature=0.3,
255
+ max_tokens=4096,
256
+ )
257
+ summary = resp.choices[0].message.content
258
+
259
+ _cb(70, "Generating DOCX…", progress_callback)
260
+
261
+ doc_out = Document()
262
+ style = doc_out.styles["Normal"]
263
+ style.font.name = "Calibri"
264
+ style.font.size = Pt(11)
265
+
266
+ doc_out.add_heading("Summary", level=1)
267
+ for line in summary.split("\n"):
268
+ line = line.strip()
269
+ if line:
270
+ doc_out.add_paragraph(line)
271
+
272
+ buf = BytesIO()
273
+ doc_out.save(buf)
274
+ buf.seek(0)
275
+ _cb(100, "Done", progress_callback)
276
+ return buf.getvalue()
277
+
278
+
279
+ # ── PDF OCR (local ocrmypdf) ───────────────────────────────────────────────
280
+
281
+ def _ocr_options(mode):
282
+ workers = max(1, min(4, multiprocessing.cpu_count()))
283
+ if mode == "accurate":
284
+ return {
285
+ "force_ocr": True,
286
+ "deskew": True,
287
+ "rotate_pages": True,
288
+ "oversample": 300,
289
+ "optimize": 1,
290
+ "jobs": workers,
291
+ "progress_bar": False,
292
+ }
293
+ return {
294
+ "skip_text": True,
295
+ "deskew": False,
296
+ "rotate_pages": False,
297
+ "oversample": 150,
298
+ "optimize": 1,
299
+ "jobs": workers,
300
+ "progress_bar": False,
301
+ }
302
+
303
+
304
+ def pdf_ocr_process(file_bytes: bytes, filename: str, mode: str = "fast", progress_callback=None):
305
+ _cb(10, "Writing temporary file…", progress_callback)
306
+
307
+ ext = os.path.splitext(filename)[1].lower()
308
+ if ext != ".pdf":
309
+ raise ValueError("Searchable PDF OCR requires a PDF file.")
310
+
311
+ input_file = tempfile.NamedTemporaryFile(suffix=".pdf", delete=False)
312
+ input_file.write(file_bytes)
313
+ input_file.close()
314
+
315
+ output_file = tempfile.NamedTemporaryFile(suffix=".pdf", delete=False)
316
+ output_file.close()
317
+
318
+ try:
319
+ _cb(30, f"Running ocrmypdf OCR ({mode} mode)…", progress_callback)
320
+ ocrmypdf.ocr(
321
+ input_file.name,
322
+ output_file.name,
323
+ **_ocr_options(mode)
324
+ )
325
+ _cb(90, "Reading OCR output…", progress_callback)
326
+ with open(output_file.name, "rb") as f:
327
+ result_bytes = f.read()
328
+ _cb(100, "Done", progress_callback)
329
+ return result_bytes
330
+ finally:
331
+ for path in (input_file.name, output_file.name):
332
+ try:
333
+ os.remove(path)
334
+ except OSError:
335
+ pass
336
+
337
+
338
+ def bank_statement_process(file_bytes: bytes, bank_slug: str, page_numbers: str = None, progress_callback=None):
339
+ from statement_parser import parse_statement_pdf, excel_bytes_from_df
340
+ _cb(10, "Reading statement PDF…", progress_callback)
341
+ df = parse_statement_pdf(file_bytes, bank_slug=bank_slug, page_numbers=page_numbers)
342
+ _cb(50, f"Parsed {len(df)} transactions. Building Excel workbook…", progress_callback)
343
+ output = excel_bytes_from_df(df)
344
+ _cb(100, "Done", progress_callback)
345
+ return output.getvalue()
346
+
statement_parser.py ADDED
@@ -0,0 +1,509 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import re
2
+ from datetime import datetime
3
+ from io import BytesIO
4
+
5
+ import pandas as pd
6
+ import pdfplumber
7
+
8
+ DATE_FORMATS = ["%d/%m/%Y", "%d-%m-%Y", "%d-%b-%Y", "%d-%b-%y", "%d.%m.%Y", "%d/%m/%y"]
9
+
10
+
11
+ def to_float(s):
12
+ if not s:
13
+ return None
14
+ s = s.replace(",", "").strip()
15
+ try:
16
+ return float(s)
17
+ except ValueError:
18
+ return None
19
+
20
+
21
+ def clean_desc(parts):
22
+ return " ".join(p.strip() for p in parts if p and p.strip())
23
+
24
+
25
+ def parse_any_date(d):
26
+ if not d:
27
+ return None
28
+ for fmt in DATE_FORMATS:
29
+ try:
30
+ return datetime.strptime(d.strip(), fmt)
31
+ except ValueError:
32
+ continue
33
+ return None
34
+
35
+
36
+ def assign_debit_credit(rows):
37
+ parsed_dates = [parse_any_date(r.get("date", "")) for r in rows]
38
+ valid = [d for d in parsed_dates if d]
39
+ ascending = True
40
+ if len(valid) >= 2:
41
+ ascending = valid[0] <= valid[-1]
42
+
43
+ order = range(len(rows)) if ascending else range(len(rows) - 1, -1, -1)
44
+ prev_balance = None
45
+ for idx in order:
46
+ r = rows[idx]
47
+ if r.get("sign") == "debit":
48
+ r["debit"], r["credit"] = r.get("amount"), None
49
+ elif r.get("sign") == "credit":
50
+ r["debit"], r["credit"] = None, r.get("amount")
51
+ else:
52
+ if prev_balance is None or r.get("balance") is None or r.get("amount") is None:
53
+ r["debit"], r["credit"] = None, r.get("amount")
54
+ elif r["balance"] >= prev_balance:
55
+ r["debit"], r["credit"] = None, r.get("amount")
56
+ else:
57
+ r["debit"], r["credit"] = r.get("amount"), None
58
+ if r.get("balance") is not None:
59
+ prev_balance = r["balance"]
60
+ r.pop("sign", None)
61
+ r.pop("amount", None)
62
+ return rows
63
+
64
+
65
+ def parse_pnb(lines):
66
+ row_re = re.compile(r"^(\d{2}/\d{2}/\d{4})\s+([\d,]+\.\d{2})\s+([\d,]+\.\d{2})\s*(.*)$")
67
+ rows = []
68
+ for i, line in enumerate(lines):
69
+ m = row_re.match(line.strip())
70
+ if not m:
71
+ continue
72
+ date, amount, balance, trail = m.groups()
73
+ prev_line = lines[i - 1].strip() if i > 0 else ""
74
+ desc_parts = []
75
+ if prev_line and not row_re.match(prev_line):
76
+ desc_parts.append(prev_line)
77
+ if trail:
78
+ desc_parts.append(trail)
79
+ rows.append({
80
+ "date": date,
81
+ "description": clean_desc(desc_parts),
82
+ "amount": to_float(amount),
83
+ "balance": to_float(balance),
84
+ "sign": None,
85
+ })
86
+ return assign_debit_credit(rows)
87
+
88
+
89
+ def parse_ubi(lines):
90
+ row_re = re.compile(r"^\d+\s+(\d{2}-\d{2}-\d{4})\s+([\d,]+\.\d{2})\s+([\d,]+\.\d{2})\s+(Cr|Dr)\s*$")
91
+ rows = []
92
+ for i, line in enumerate(lines):
93
+ m = row_re.match(line.strip())
94
+ if not m:
95
+ continue
96
+ date, amount, balance, _balsign = m.groups()
97
+ prev_line = lines[i - 1].strip() if i > 0 else ""
98
+ next_line = lines[i + 1].strip() if i + 1 < len(lines) else ""
99
+ desc = clean_desc([
100
+ prev_line if not row_re.match(prev_line) else "",
101
+ next_line if not row_re.match(next_line) else "",
102
+ ])
103
+ sign = None
104
+ if re.search(r"/DR/", desc, re.IGNORECASE):
105
+ sign = "debit"
106
+ elif re.search(r"/CR/", desc, re.IGNORECASE):
107
+ sign = "credit"
108
+ rows.append({
109
+ "date": date,
110
+ "description": desc,
111
+ "amount": to_float(amount),
112
+ "balance": to_float(balance),
113
+ "sign": sign,
114
+ })
115
+ return assign_debit_credit(rows)
116
+
117
+
118
+ def parse_icici(lines):
119
+ anchor_re = re.compile(r"^\s*\d+\s+(\d{2}\.\d{2}\.\d{4})\s+([\d,]+\.\d{2})\s+(-?[\d,]+\.\d{2})\s*$")
120
+ opening_re = re.compile(r"opening\s*balance.*?(-?[\d,]+\.\d{2})", re.IGNORECASE)
121
+ n = len(lines)
122
+ anchors = [(i, anchor_re.match(l.strip())) for i, l in enumerate(lines) if anchor_re.match(l.strip())]
123
+
124
+ prev_balance = None
125
+ for line in lines:
126
+ om = opening_re.search(line)
127
+ if om:
128
+ prev_balance = to_float(om.group(1))
129
+ break
130
+
131
+ rows = []
132
+ for k, (i, m) in enumerate(anchors):
133
+ date_str, amount_str, balance_str = m.groups()
134
+ date = date_str
135
+ amount, balance = to_float(amount_str), to_float(balance_str)
136
+
137
+ desc_parts = []
138
+ if i - 1 >= 0 and not anchor_re.match(lines[i - 1].strip()):
139
+ prev_line = lines[i - 1].strip()
140
+ if prev_line:
141
+ desc_parts.append(prev_line)
142
+ next_anchor_idx = anchors[k + 1][0] if k + 1 < len(anchors) else n
143
+ for j in range(i + 1, min(next_anchor_idx, i + 6)):
144
+ seg = lines[j].strip()
145
+ if seg:
146
+ desc_parts.append(seg)
147
+
148
+ sign = None
149
+ if prev_balance is not None:
150
+ sign = "credit" if balance >= prev_balance else "debit"
151
+ rows.append({
152
+ "date": date,
153
+ "description": clean_desc(desc_parts),
154
+ "amount": amount,
155
+ "balance": balance,
156
+ "sign": sign,
157
+ })
158
+ prev_balance = balance
159
+ return assign_debit_credit(rows)
160
+
161
+
162
+ def parse_idfc(lines):
163
+ row_re = re.compile(
164
+ r"^(\d{2}-[A-Za-z]{3}-\d{4})\s+(\d{2}-[A-Za-z]{3}-\d{4})\s+(.*?)\s+([\d,]+\.\d{2})\s+([\d,]+\.\d{2})\s*$"
165
+ )
166
+ n = len(lines)
167
+ matches = [(i, row_re.match(l.strip())) for i, l in enumerate(lines) if row_re.match(l.strip())]
168
+
169
+ rows = []
170
+ for k, (i, m) in enumerate(matches):
171
+ date, _value_date, partial_desc, amount, balance = m.groups()
172
+ desc_parts = [partial_desc] if partial_desc else []
173
+ next_idx = matches[k + 1][0] if k + 1 < len(matches) else n
174
+ for j in range(i + 1, min(next_idx, i + 6)):
175
+ seg = lines[j].strip()
176
+ if seg:
177
+ desc_parts.append(seg)
178
+ rows.append({
179
+ "date": date,
180
+ "description": clean_desc(desc_parts),
181
+ "amount": to_float(amount),
182
+ "balance": to_float(balance),
183
+ "sign": None,
184
+ })
185
+ return assign_debit_credit(rows)
186
+
187
+
188
+ def parse_indusind(lines):
189
+ row_re = re.compile(
190
+ r"^(\d{2}-[A-Za-z]{3}-\d{2,4})\s+([\d,]+\.\d{2})\s+(Dr|Cr)\s+([\d,]+\.\d{2})\s+(Cr|Dr)\s*$"
191
+ )
192
+ rows = []
193
+ for i, line in enumerate(lines):
194
+ m = row_re.match(line.strip())
195
+ if not m:
196
+ continue
197
+ date, amount, txn_sign, balance, _balsign = m.groups()
198
+ prev_line = lines[i - 1].strip() if i > 0 else ""
199
+ next_line = lines[i + 1].strip() if i + 1 < len(lines) else ""
200
+ desc = clean_desc([
201
+ prev_line if not row_re.match(prev_line) else "",
202
+ next_line if not row_re.match(next_line) else "",
203
+ ])
204
+ rows.append({
205
+ "date": date,
206
+ "description": desc,
207
+ "amount": to_float(amount),
208
+ "balance": to_float(balance),
209
+ "sign": "debit" if txn_sign == "Dr" else "credit",
210
+ })
211
+ return assign_debit_credit(rows)
212
+
213
+
214
+ def parse_kotak(lines):
215
+ row_re = re.compile(
216
+ r"^(\d{2}-[A-Za-z]{3}-\d{2})(.*?)([\d,]+\.\d{2})\s+([\d,]+\.\d{2})\((Cr|Dr)\)\s*$"
217
+ )
218
+ skip_keywords = ["OPENINGBALANCE", "STATEMENTSUMMARY", "TOTALWITHDRAWAL", "TOTALDEPOSIT",
219
+ "CLOSINGBALANCE", "SWEEPTDBALANCE"]
220
+ rows = []
221
+ for line in lines:
222
+ stripped = line.strip()
223
+ m = row_re.match(stripped)
224
+ if m:
225
+ date, narration, amount, balance, _balsign = m.groups()
226
+ if any(k in narration.replace(" ", "").upper() for k in skip_keywords):
227
+ continue
228
+ rows.append({
229
+ "date": date,
230
+ "description": narration.strip(),
231
+ "amount": to_float(amount),
232
+ "balance": to_float(balance),
233
+ "sign": None,
234
+ })
235
+ elif rows and stripped and not any(k in stripped.upper() for k in
236
+ ["STATEMENT", "PERIOD", "ACCOUNT NO", "CURRENCY", "IFSC", "MICR"]):
237
+ rows[-1]["description"] = clean_desc([rows[-1]["description"], stripped])
238
+ return assign_debit_credit(rows)
239
+
240
+
241
+ def parse_sbi(lines):
242
+ date_re = re.compile(r"^\d{2}/\d{2}/\d{4}$")
243
+ rows = []
244
+ for line in lines:
245
+ parts = line.split()
246
+ if len(parts) < 6:
247
+ continue
248
+ if not (date_re.match(parts[0]) and date_re.match(parts[1])):
249
+ continue
250
+ date = parts[0]
251
+ _ref, debit_tok, credit_tok, balance_tok = parts[-4:]
252
+ description = " ".join(parts[2:-4])
253
+ balance = to_float(balance_tok)
254
+ if balance is None:
255
+ continue
256
+ debit = to_float(debit_tok) if debit_tok != "-" else None
257
+ credit = to_float(credit_tok) if credit_tok != "-" else None
258
+ rows.append({"date": date, "description": description,
259
+ "debit": debit, "credit": credit, "balance": balance})
260
+ return rows
261
+
262
+
263
+ def parse_axis(lines):
264
+ row_re = re.compile(
265
+ r"^(\d{2}-\d{2}-\d{4})\s+(.+?)\s+(-?[\d,]+\.\d{2})\s+(-?[\d,]+\.\d{2})(?:\s+\d+)?\s*$"
266
+ )
267
+ opening_re = re.compile(r"OPENING\s*BALANCE\s+(-?[\d,]+\.\d{2})", re.IGNORECASE)
268
+
269
+ rows = []
270
+ for i, line in enumerate(lines):
271
+ stripped = line.strip()
272
+ m = row_re.match(stripped)
273
+ if not m:
274
+ continue
275
+ date, tail, amount, balance = m.groups()
276
+ prev_line = lines[i - 1].strip() if i > 0 else ""
277
+ desc = clean_desc([prev_line if prev_line and not row_re.match(prev_line) else "", tail])
278
+ rows.append({
279
+ "date": date,
280
+ "description": desc,
281
+ "amount": to_float(amount),
282
+ "balance": to_float(balance),
283
+ "sign": None,
284
+ })
285
+
286
+ opening_balance = None
287
+ for line in lines:
288
+ om = opening_re.search(line)
289
+ if om:
290
+ opening_balance = to_float(om.group(1))
291
+ break
292
+ if opening_balance is not None and rows:
293
+ rows.insert(0, {"date": rows[0]["date"], "description": "__OPENING__",
294
+ "amount": 0.0, "balance": opening_balance, "sign": None})
295
+
296
+ result = assign_debit_credit(rows)
297
+ return [r for r in result if r.get("description") != "__OPENING__"]
298
+
299
+
300
+ def parse_with_debit_credit_columns(lines):
301
+ date_re = re.compile(r"^(\d{2}[/-]\d{2}[/-]\d{2,4}|\d{2}-[A-Za-z]{3}-\d{2,4})\b")
302
+ rows = []
303
+ for line in lines:
304
+ stripped = line.strip()
305
+ dm = date_re.match(stripped)
306
+ if not dm:
307
+ continue
308
+
309
+ nums = re.findall(r"-|[\d,]+\.\d{2}", stripped)
310
+ numeric_vals = [to_float(n) for n in nums if n != "-"]
311
+ if not numeric_vals:
312
+ continue
313
+
314
+ date = dm.group(1)
315
+ balance = numeric_vals[-1]
316
+ debit = credit = None
317
+
318
+ if len(nums) >= 3:
319
+ debit_tok, credit_tok = nums[-3], nums[-2]
320
+ debit = to_float(debit_tok) if debit_tok != "-" else None
321
+ credit = to_float(credit_tok) if credit_tok != "-" else None
322
+ elif len(numeric_vals) >= 2:
323
+ amount = numeric_vals[-2]
324
+ if rows and balance is not None and rows[-1].get("balance") is not None:
325
+ if balance >= rows[-1]["balance"]:
326
+ credit = amount
327
+ else:
328
+ debit = amount
329
+ else:
330
+ credit = amount
331
+
332
+ desc_part = stripped[dm.end():]
333
+ desc_part = re.sub(r"[\d,]+\.\d{2}|(?<=\s)-(?=\s|$)", " ", desc_part)
334
+ desc = clean_desc([desc_part]) or "Transaction"
335
+ rows.append({
336
+ "date": date,
337
+ "description": desc,
338
+ "debit": debit,
339
+ "credit": credit,
340
+ "balance": balance,
341
+ })
342
+ return rows
343
+
344
+
345
+ def parse_hdfc(lines):
346
+ return parse_with_debit_credit_columns(lines)
347
+
348
+
349
+ def parse_idbi(lines):
350
+ return parse_with_debit_credit_columns(lines)
351
+
352
+
353
+ BANK_PARSERS = {
354
+ "pnb": parse_pnb,
355
+ "ubi": parse_ubi,
356
+ "icici": parse_icici,
357
+ "idfc": parse_idfc,
358
+ "indusind": parse_indusind,
359
+ "kotak": parse_kotak,
360
+ "sbi": parse_sbi,
361
+ "axis": parse_axis,
362
+ "hdfc": parse_hdfc,
363
+ "idbi": parse_idbi,
364
+ }
365
+
366
+ BANK_NAMES = {
367
+ "pnb": "Punjab National Bank",
368
+ "ubi": "Union Bank of India",
369
+ "icici": "ICICI Bank",
370
+ "idfc": "IDFC First Bank",
371
+ "indusind": "IndusInd Bank",
372
+ "kotak": "Kotak Mahindra Bank",
373
+ "sbi": "State Bank of India",
374
+ "axis": "Axis Bank",
375
+ "hdfc": "HDFC Bank",
376
+ "idbi": "IDBI Bank",
377
+ }
378
+ BANK_DEFINITIONS = [
379
+ {"slug": slug, "name": BANK_NAMES[slug], "icon": icon}
380
+ for slug, icon in [
381
+ ("axis", "⚑"),
382
+ ("icici", "πŸ’³"),
383
+ ("sbi", "🌐"),
384
+ ("kotak", "🏦"),
385
+ ("idfc", "πŸ“ˆ"),
386
+ ("indusind", "πŸ“Š"),
387
+ ("ubi", "πŸͺ™"),
388
+ ("pnb", "πŸ›οΈ"),
389
+ ]
390
+ ]
391
+
392
+
393
+ def extract_pdf_lines(pdf_bytes, page_numbers=None):
394
+ with pdfplumber.open(BytesIO(pdf_bytes)) as pdf:
395
+ lines = []
396
+ total_pages = len(pdf.pages)
397
+ target_pages = list(range(total_pages))
398
+ if page_numbers:
399
+ parsed_pages = []
400
+ for part in page_numbers.split(","):
401
+ part = part.strip()
402
+ if not part:
403
+ continue
404
+ if "-" in part:
405
+ try:
406
+ start_str, end_str = part.split("-", 1)
407
+ start = int(start_str.strip()) - 1
408
+ end = int(end_str.strip()) - 1
409
+ if start > end:
410
+ start, end = end, start
411
+ parsed_pages.extend(range(max(0, start), min(total_pages, end + 1)))
412
+ except ValueError:
413
+ continue
414
+ else:
415
+ try:
416
+ p = int(part) - 1
417
+ if 0 <= p < total_pages:
418
+ parsed_pages.append(p)
419
+ except ValueError:
420
+ continue
421
+ if parsed_pages:
422
+ target_pages = sorted(list(set(parsed_pages)))
423
+
424
+ for idx in target_pages:
425
+ page = pdf.pages[idx]
426
+ text = page.extract_text() or ""
427
+ lines.extend(text.split("\n"))
428
+ return lines
429
+
430
+
431
+ def generic_heuristic_parser(lines):
432
+ transactions = []
433
+ prev_balance = None
434
+ for line in lines:
435
+ dm = re.search(r"(\d{2}[/-]\d{2}[/-]\d{2,4}|\d{2}\s+[A-Za-z]{3}\s+\d{2,4})", line)
436
+ if not dm:
437
+ continue
438
+ nums = re.findall(r"[\d,]+\.\d{2}", line)
439
+ if not nums:
440
+ continue
441
+ nums_f = [float(n.replace(",", "")) for n in nums]
442
+ balance = nums_f[-1]
443
+ debit = credit = None
444
+ if len(nums_f) >= 2:
445
+ amount = nums_f[-2]
446
+ if prev_balance is None or balance >= prev_balance:
447
+ credit = amount
448
+ else:
449
+ debit = amount
450
+ desc = re.sub(r"[\d,]+\.\d{2}", "", line[dm.end():]).strip()
451
+ transactions.append({"date": dm.group(1), "description": desc,
452
+ "debit": debit, "credit": credit, "balance": balance})
453
+ prev_balance = balance
454
+ return transactions
455
+
456
+
457
+ def detect_bank_parser(lines):
458
+ text = "\n".join(lines)
459
+ patterns = [
460
+ (re.compile(r"\bPNB\b|PUNB\d|PUNJAB NATIONAL BANK", re.IGNORECASE), parse_pnb),
461
+ (re.compile(r"UBIN\d|UNION BANK", re.IGNORECASE), parse_ubi),
462
+ (re.compile(r"ICIC\d|ICICI BANK", re.IGNORECASE), parse_icici),
463
+ (re.compile(r"IDFB\d|IDFC FIRST", re.IGNORECASE), parse_idfc),
464
+ (re.compile(r"INDB\d|INDUSIND", re.IGNORECASE), parse_indusind),
465
+ (re.compile(r"KKBK\d|KOTAK", re.IGNORECASE), parse_kotak),
466
+ (re.compile(r"SBIN\d|STATE BANK OF INDIA", re.IGNORECASE), parse_sbi),
467
+ (re.compile(r"UTIB\d|AXIS BANK", re.IGNORECASE), parse_axis),
468
+ (re.compile(r"HDFC\d|HDFC BANK", re.IGNORECASE), parse_hdfc),
469
+ (re.compile(r"IBKL\d|IDBI BANK", re.IGNORECASE), parse_idbi),
470
+ ]
471
+ best_parser = None
472
+ best_count = 0
473
+ for pattern, parser in patterns:
474
+ count = len(pattern.findall(text))
475
+ if count > best_count:
476
+ best_count = count
477
+ best_parser = parser
478
+ return best_parser
479
+
480
+
481
+ def parse_statement_pdf(pdf_bytes, bank_slug=None, page_numbers=None):
482
+ lines = extract_pdf_lines(pdf_bytes, page_numbers=page_numbers)
483
+ parser = None
484
+ bank_name = None
485
+ if bank_slug and bank_slug in BANK_PARSERS:
486
+ parser = BANK_PARSERS[bank_slug]
487
+ bank_name = BANK_NAMES.get(bank_slug, bank_slug.upper())
488
+ else:
489
+ parser = detect_bank_parser(lines)
490
+ bank_name = parser.__name__.replace("parse_", "").upper() if parser else None
491
+ if parser is None:
492
+ parser = generic_heuristic_parser
493
+ bank_name = "Unknown (heuristic)"
494
+ transactions = parser(lines)
495
+ if not bank_name:
496
+ bank_name = "Unknown"
497
+
498
+ df = pd.DataFrame(transactions, columns=["date", "description", "debit", "credit", "balance"])
499
+ df.insert(0, "bank_name", bank_name)
500
+ return df
501
+
502
+
503
+ def excel_bytes_from_df(df, filename="statement.xlsx"):
504
+ from io import BytesIO
505
+ buffer = BytesIO()
506
+ with pd.ExcelWriter(buffer, engine="openpyxl") as writer:
507
+ df.to_excel(writer, sheet_name="Transactions", index=False)
508
+ buffer.seek(0)
509
+ return buffer
templatemo_622_clearwave/images/tm-622-screen-01.jpg ADDED
templatemo_622_clearwave/images/tm-622-screen-02.jpg ADDED
templatemo_622_clearwave/images/tm-622-screen-03.jpg ADDED
templatemo_622_clearwave/images/tm-622-screen-04.jpg ADDED
templatemo_622_clearwave/images/tm-622-screen-05.jpg ADDED
templatemo_622_clearwave/index.html ADDED
@@ -0,0 +1,585 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>SCANLY | Premium Document Utilities</title>
7
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
8
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9
+ <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=DM+Sans:wght@400;500;700&family=Fredoka:wght@500;600;700;800&display=swap" rel="stylesheet" />
10
+ <style>
11
+ :root {
12
+ --bg: #0b0f19;
13
+ --card-bg: rgba(20, 28, 48, 0.6);
14
+ --border: rgba(255, 255, 255, 0.08);
15
+ --border-hover: rgba(0, 242, 254, 0.4);
16
+ --text: #f3f4f6;
17
+ --text-muted: #9ca3af;
18
+ --accent: #00f2fe;
19
+ --accent-hover: #4facfe;
20
+ --glow: rgba(0, 242, 254, 0.15);
21
+ --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
22
+ --font-body: "Plus Jakarta Sans", sans-serif;
23
+ --font-title: "Plus Jakarta Sans", sans-serif;
24
+ --logo-color: var(--accent);
25
+ }
26
+
27
+ body.light-theme {
28
+ --bg: #fff9f0;
29
+ --card-bg: #fff;
30
+ --border: rgba(47, 42, 34, 0.12);
31
+ --border-hover: #2f2a22;
32
+ --text: #2f2a22;
33
+ --text-muted: #756d61;
34
+ --accent: #2fd0af;
35
+ --accent-hover: #1e8f77;
36
+ --glow: rgba(47, 42, 34, 0.08);
37
+ --shadow: 0 24px 48px rgba(47, 42, 34, 0.16);
38
+ --font-body: "DM Sans", sans-serif;
39
+ --font-title: "Fredoka", sans-serif;
40
+ --logo-color: #ffd7df;
41
+ }
42
+
43
+ * { box-sizing: border-box; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
44
+ html { scroll-behavior: smooth; }
45
+ body {
46
+ margin: 0;
47
+ min-height: 100vh;
48
+ color: var(--text);
49
+ font-family: var(--font-body);
50
+ background-color: var(--bg);
51
+ background-image: radial-gradient(circle at 50% 50%, #1e293b 0%, #0b0f19 100%);
52
+ overflow-x: hidden;
53
+ }
54
+
55
+ body.light-theme {
56
+ background-image: radial-gradient(circle, rgba(47,42,34,0.16) 0.8px, transparent 0.9px);
57
+ background-size: 28px 28px;
58
+ }
59
+
60
+ a { color: inherit; text-decoration: none; }
61
+
62
+ .site-header { padding: 60px 20px 20px; text-align: center; }
63
+
64
+ .logo-badge {
65
+ width: 80px;
66
+ height: 80px;
67
+ margin: 0 auto 20px;
68
+ display: grid;
69
+ place-items: center;
70
+ border: 2px solid var(--accent);
71
+ border-radius: 24px;
72
+ background: rgba(0, 242, 254, 0.1);
73
+ font: 800 16px var(--font-title);
74
+ letter-spacing: 0.1em;
75
+ color: var(--accent);
76
+ box-shadow: 0 0 20px var(--glow);
77
+ }
78
+
79
+ body.light-theme .logo-badge {
80
+ width: 96px;
81
+ height: 96px;
82
+ border: 3px dashed var(--border-hover);
83
+ border-radius: 50%;
84
+ background: var(--logo-color);
85
+ font: 800 17px/1.05 var(--font-title);
86
+ letter-spacing: 0.08em;
87
+ color: var(--text);
88
+ box-shadow: 8px 10px 0 rgba(47,42,34,0.08);
89
+ }
90
+
91
+ .site-title {
92
+ margin: 0;
93
+ font-family: var(--font-title);
94
+ font-weight: 800;
95
+ font-size: clamp(2.5rem, 6vw, 4rem);
96
+ letter-spacing: -0.02em;
97
+ background: linear-gradient(to right, #ffffff, #9ca3af);
98
+ -webkit-background-clip: text;
99
+ -webkit-text-fill-color: transparent;
100
+ }
101
+
102
+ body.light-theme .site-title {
103
+ font-size: clamp(2.4rem, 6vw, 5.2rem)/0.95 var(--font-title);
104
+ background: none;
105
+ -webkit-background-clip: initial;
106
+ -webkit-text-fill-color: initial;
107
+ color: var(--text);
108
+ }
109
+
110
+ .site-tagline { margin: 16px auto 0; max-width: 760px; color: var(--text-muted); line-height: 1.8; font-size: 1.05rem; }
111
+
112
+ .privacy-alert {
113
+ max-width: 680px;
114
+ margin: 24px auto 0;
115
+ background: rgba(16, 185, 129, 0.1);
116
+ border: 1px solid rgba(16, 185, 129, 0.2);
117
+ color: #34d399;
118
+ padding: 12px 20px;
119
+ border-radius: 12px;
120
+ font-size: 0.9rem;
121
+ font-weight: 600;
122
+ display: flex;
123
+ align-items: center;
124
+ justify-content: center;
125
+ gap: 8px;
126
+ }
127
+
128
+ body.light-theme .privacy-alert {
129
+ background: rgba(16, 185, 129, 0.08);
130
+ border: 2px solid rgba(47, 42, 34, 0.12);
131
+ color: #0f766e;
132
+ }
133
+
134
+ .nav-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
135
+ .nav-strip a {
136
+ padding: 10px 20px;
137
+ border: 1px solid var(--border);
138
+ border-radius: 10px;
139
+ background: rgba(255, 255, 255, 0.02);
140
+ font-weight: 700;
141
+ font-size: 0.9rem;
142
+ font-family: var(--font-title);
143
+ backdrop-filter: blur(8px);
144
+ }
145
+
146
+ .nav-strip a:hover {
147
+ border-color: var(--accent);
148
+ background: rgba(0, 242, 254, 0.05);
149
+ color: var(--accent);
150
+ transform: translateY(-2px);
151
+ }
152
+
153
+ body.light-theme .nav-strip a {
154
+ padding: 10px 18px;
155
+ border: 2px solid var(--border-hover);
156
+ border-radius: 999px;
157
+ background: #fff2b8;
158
+ box-shadow: 3px 4px 0 rgba(47,42,34,0.12);
159
+ font-size: 0.92rem;
160
+ }
161
+ body.light-theme .nav-strip a:hover {
162
+ transform: translateY(-2px) rotate(-1deg);
163
+ background: #d8f3e7;
164
+ color: var(--text);
165
+ }
166
+
167
+ .board {
168
+ width: min(1200px, calc(100% - 32px));
169
+ margin: 40px auto 80px;
170
+ display: grid;
171
+ grid-template-columns: repeat(12, 1fr);
172
+ gap: 24px;
173
+ }
174
+
175
+ .note {
176
+ position: relative;
177
+ min-height: 280px;
178
+ padding: 32px;
179
+ border: 1px solid var(--border);
180
+ border-radius: 16px;
181
+ background: var(--card-bg);
182
+ backdrop-filter: blur(16px);
183
+ box-shadow: var(--shadow);
184
+ display: flex;
185
+ flex-direction: column;
186
+ overflow: hidden;
187
+ }
188
+ .note:hover {
189
+ border-color: var(--border-hover);
190
+ box-shadow: 0 15px 35px var(--glow);
191
+ transform: translateY(-5px);
192
+ }
193
+
194
+ /* Light Theme (Pookie) override */
195
+ body.light-theme .note {
196
+ border-radius: 6px;
197
+ border: 2px solid var(--border);
198
+ backdrop-filter: none;
199
+ }
200
+ body.light-theme .note::before {
201
+ content: "";
202
+ position: absolute;
203
+ top: -9px;
204
+ left: 28px;
205
+ width: 78px;
206
+ height: 24px;
207
+ border-radius: 2px;
208
+ background: linear-gradient(135deg, rgba(135,206,235,0.64), rgba(135,206,235,0.22));
209
+ transform: rotate(-6deg);
210
+ z-index: 2;
211
+ }
212
+ body.light-theme .note::after {
213
+ content: "";
214
+ position: absolute;
215
+ inset: 0;
216
+ opacity: 0.2;
217
+ pointer-events: none;
218
+ background-image: linear-gradient(120deg, transparent 0, rgba(47,42,34,0.04) 100%);
219
+ }
220
+
221
+ .note-hero {
222
+ grid-column: span 7;
223
+ min-height: 430px;
224
+ background: linear-gradient(135deg, rgba(20, 28, 48, 0.8) 0%, rgba(11, 15, 25, 0.8) 100%);
225
+ border: 1px solid rgba(0, 242, 254, 0.2);
226
+ }
227
+ .note-converter {
228
+ grid-column: span 5;
229
+ min-height: 430px;
230
+ border: 1px solid rgba(79, 172, 254, 0.2);
231
+ }
232
+ .note-service { grid-column: span 4; }
233
+
234
+ body.light-theme .note-hero {
235
+ grid-column: span 7;
236
+ background: #d8f3e7;
237
+ transform: rotate(-1.4deg);
238
+ }
239
+ body.light-theme .note-converter {
240
+ grid-column: span 5;
241
+ background: #fff2b8;
242
+ transform: rotate(1.3deg);
243
+ }
244
+ body.light-theme .note-service {
245
+ grid-column: span 4;
246
+ transform: rotate(-0.8deg);
247
+ }
248
+ body.light-theme .note-service:nth-child(4) { background: #dbeafe; transform: rotate(1deg); }
249
+ body.light-theme .note-service:nth-child(5) { background: #ffe1cf; transform: rotate(-1.2deg); }
250
+ body.light-theme .note-service:nth-child(6) { background: #ffd7df; transform: rotate(1.1deg); }
251
+ body.light-theme .note-service:nth-child(7) { background: #c9e6d0; transform: rotate(-0.9deg); }
252
+ body.light-theme .note-service:nth-child(8) { background: #efe6cc; transform: rotate(0.7deg); }
253
+
254
+ body.light-theme .note:hover {
255
+ transform: rotate(0deg) translateY(-8px) translateZ(24px);
256
+ box-shadow: 0 30px 70px rgba(47,42,34,0.22);
257
+ }
258
+
259
+ .note-image {
260
+ width: 100%;
261
+ aspect-ratio: 16 / 9;
262
+ object-fit: cover;
263
+ border-radius: 12px;
264
+ border: 1px solid var(--border);
265
+ margin-bottom: 24px;
266
+ opacity: 0.85;
267
+ }
268
+
269
+ body.light-theme .note-image {
270
+ border: 12px solid #fff;
271
+ box-shadow: 0 14px 28px rgba(47,42,34,0.16);
272
+ margin-bottom: 20px;
273
+ transform: rotate(-0.8deg);
274
+ border-radius: 0;
275
+ opacity: 1;
276
+ }
277
+
278
+ .note:hover .note-image {
279
+ opacity: 1;
280
+ }
281
+
282
+ .kicker {
283
+ display: inline-flex;
284
+ align-items: center;
285
+ padding: 6px 12px;
286
+ border: 1px solid rgba(0, 242, 254, 0.2);
287
+ border-radius: 6px;
288
+ background: rgba(0, 242, 254, 0.05);
289
+ font: 700 0.75rem "Plus Jakarta Sans", sans-serif;
290
+ letter-spacing: 0.05em;
291
+ text-transform: uppercase;
292
+ color: var(--accent);
293
+ width: fit-content;
294
+ margin-bottom: 16px;
295
+ }
296
+
297
+ body.light-theme .kicker {
298
+ padding: 7px 12px;
299
+ border: 2px solid rgba(47,42,34,0.18);
300
+ border-radius: 999px;
301
+ background: rgba(255, 255, 255, 0.72);
302
+ font-family: var(--font-title);
303
+ font-size: 0.78rem;
304
+ letter-spacing: 0.08em;
305
+ color: var(--text);
306
+ }
307
+
308
+ h1, h2, h3 { font-family: var(--font-title); letter-spacing: -0.01em; margin: 0; }
309
+ h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; font-weight: 800; }
310
+ h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; font-weight: 800; color: #ffffff; }
311
+ h3 { font-size: 1.35rem; line-height: 1.3; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
312
+
313
+ body.light-theme h1 { margin: 18px 0 14px; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 0.98; color: var(--text); }
314
+ body.light-theme h2 { margin: 16px 0 10px; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.04; color: var(--text); }
315
+ body.light-theme h3 { margin: 12px 0 8px; font-size: 1.45rem; line-height: 1.1; color: var(--text); }
316
+
317
+ p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
318
+
319
+ body.light-theme p { color: var(--text-muted); line-height: 1.7; }
320
+
321
+ .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 24px; }
322
+ .btn {
323
+ display: inline-flex;
324
+ justify-content: center;
325
+ align-items: center;
326
+ min-height: 44px;
327
+ padding: 10px 20px;
328
+ border: 1px solid var(--border);
329
+ border-radius: 10px;
330
+ background: rgba(255, 255, 255, 0.02);
331
+ font-weight: 700;
332
+ font-size: 0.9rem;
333
+ }
334
+
335
+ body.light-theme .btn {
336
+ min-height: 46px;
337
+ padding: 12px 18px;
338
+ border: 2px solid var(--border-hover);
339
+ border-radius: 999px;
340
+ background: #fff;
341
+ font-weight: 800;
342
+ box-shadow: 4px 5px 0 rgba(47,42,34,0.12);
343
+ }
344
+
345
+ .btn-primary {
346
+ background: linear-gradient(135deg, var(--accent), var(--accent-hover));
347
+ color: #0b0f19;
348
+ border: none;
349
+ box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
350
+ }
351
+ .btn-primary:hover {
352
+ box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
353
+ transform: translateY(-2px);
354
+ }
355
+
356
+ body.light-theme .btn-primary {
357
+ background: var(--accent);
358
+ color: #071915;
359
+ border: 2px solid var(--border-hover);
360
+ box-shadow: 4px 5px 0 rgba(47,42,34,0.12);
361
+ }
362
+
363
+ .btn:not(.btn-primary):hover {
364
+ border-color: var(--accent);
365
+ background: rgba(0, 242, 254, 0.05);
366
+ color: var(--accent);
367
+ transform: translateY(-2px);
368
+ }
369
+
370
+ body.light-theme .btn:hover {
371
+ transform: translateY(-2px) rotate(-1deg);
372
+ }
373
+
374
+ .mini-stack { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
375
+ .mini-row {
376
+ display: grid;
377
+ grid-template-columns: 40px 1fr auto;
378
+ gap: 12px;
379
+ align-items: center;
380
+ padding: 12px;
381
+ border: 1px solid var(--border);
382
+ border-radius: 10px;
383
+ background: rgba(255, 255, 255, 0.02);
384
+ }
385
+
386
+ body.light-theme .mini-row {
387
+ grid-template-columns: 42px 1fr auto;
388
+ gap: 12px;
389
+ padding: 12px;
390
+ border: 2px solid rgba(47,42,34,0.1);
391
+ border-radius: 10px;
392
+ background: rgba(255,255,255,0.55);
393
+ }
394
+
395
+ .mini-icon {
396
+ width: 40px;
397
+ height: 40px;
398
+ display: grid;
399
+ place-items: center;
400
+ border-radius: 8px;
401
+ background: rgba(255, 255, 255, 0.05);
402
+ font-weight: 800;
403
+ font-size: 0.85rem;
404
+ border: 1px solid var(--border);
405
+ }
406
+
407
+ body.light-theme .mini-icon {
408
+ width: 42px;
409
+ height: 42px;
410
+ border-radius: 10px;
411
+ background: #fff;
412
+ font-weight: 900;
413
+ }
414
+
415
+ .mini-row strong { display: block; font-size: 0.9rem; color: #ffffff; }
416
+ body.light-theme .mini-row strong { color: var(--text); font-size: 0.95rem; }
417
+ .mini-row span { color: var(--text-muted); font-size: 0.8rem; }
418
+ .status-pill { font-size: 0.75rem; font-weight: 700; color: var(--accent); }
419
+ body.light-theme .status-pill { font-size: 0.76rem; font-weight: 800; color: #11624f; }
420
+ .footer { padding: 40px 20px; text-align: center; color: var(--text-muted); border-top: 1px solid var(--border); font-size: 0.9rem; }
421
+ body.light-theme .footer { border-top: none; }
422
+
423
+ /* Theme Toggle Button */
424
+ .theme-toggle-btn {
425
+ position: absolute;
426
+ top: 24px;
427
+ right: 24px;
428
+ width: 48px;
429
+ height: 48px;
430
+ border-radius: 12px;
431
+ border: 1px solid var(--border);
432
+ background: var(--card-bg);
433
+ cursor: pointer;
434
+ display: flex;
435
+ align-items: center;
436
+ justify-content: center;
437
+ font-size: 1.25rem;
438
+ box-shadow: var(--shadow);
439
+ z-index: 100;
440
+ }
441
+ .theme-toggle-btn:hover {
442
+ border-color: var(--accent);
443
+ transform: scale(1.05);
444
+ }
445
+
446
+ body.light-theme .theme-toggle-btn {
447
+ border: 2px solid var(--border-hover);
448
+ background: #fff;
449
+ box-shadow: 3px 4px 0 rgba(47,42,34,0.12);
450
+ border-radius: 50%;
451
+ }
452
+
453
+ body.light-theme .theme-toggle-btn .sun-icon { display: none; }
454
+ body.light-theme .theme-toggle-btn .moon-icon { display: block; }
455
+ body:not(.light-theme) .theme-toggle-btn .sun-icon { display: block; }
456
+ body:not(.light-theme) .theme-toggle-btn .moon-icon { display: none; }
457
+
458
+ @media (max-width: 900px) {
459
+ .board { grid-template-columns: 1fr; }
460
+ .note, .note-hero, .note-converter, .note-service { grid-column: auto; }
461
+ body.light-theme .note, body.light-theme .note-hero, body.light-theme .note-converter, body.light-theme .note-service { transform: rotate(0deg); }
462
+ .note { min-height: auto; }
463
+ }
464
+ </style>
465
+ </head>
466
+ <body>
467
+ <button id="theme-toggle" class="theme-toggle-btn" aria-label="Toggle theme">
468
+ <span class="sun-icon">β˜€οΈ</span>
469
+ <span class="moon-icon">πŸŒ™</span>
470
+ </button>
471
+
472
+ <header class="site-header">
473
+ <div class="logo-badge">SCAN<br>LY</div>
474
+ <h1 class="site-title">SCANLY</h1>
475
+ <p class="site-tagline">Advanced document tools for OCR, PDF split/merge, PDF to Word, page deletion, spreadsheet conversion, and summarization.</p>
476
+
477
+ <div class="privacy-alert">
478
+ <span>πŸ”’ Privacy first: We do not save your files. Everything is processed temporarily in memory.</span>
479
+ </div>
480
+
481
+ <nav class="nav-strip">
482
+ <a href="#services">Services</a>
483
+ <a href="/bank-statements">Bank Converter</a>
484
+ <a href="/service/pdf-ocr">Searchable PDF OCR</a>
485
+ <a href="/service/pdf-split">Split PDF</a>
486
+ <a href="/service/pdf-merge">Merge PDF</a>
487
+ <a href="/service/pdf-to-word">PDF to Word</a>
488
+ <a href="/service/pdf-delete-pages">Delete Pages</a>
489
+ <a href="/service/summarize">Summarize</a>
490
+ </nav>
491
+ </header>
492
+
493
+ <main class="board" id="services">
494
+ <article class="note note-hero">
495
+ <span class="kicker">Document workflow</span>
496
+ <h1>Turn messy files into clean outputs.</h1>
497
+ <p>Upload documents, scans, PDFs, or statements and route them to the right SCANLY tool. OCR processing, PDF splitting/merging, PDF-to-Word conversion, page deletion, Excel-to-CSV conversion, and document summarization.</p>
498
+ <div class="actions">
499
+ <a class="btn btn-primary" href="/bank-statements">Convert bank PDF</a>
500
+ <a class="btn" href="/service/pdf-ocr">Searchable PDF OCR</a>
501
+ <a class="btn" href="/service/summarize">Summarize</a>
502
+ </div>
503
+ </article>
504
+
505
+ <a class="note note-converter" href="/bank-statements">
506
+ <img class="note-image" src="https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=900&q=80" alt="Financial papers and spreadsheet workspace">
507
+ <span class="kicker">PDF to Excel</span>
508
+ <h2>Bank statement converter</h2>
509
+ <p>Convert physical or digital PDF statements into highly organized transaction logs in Excel.</p>
510
+ <div class="mini-stack">
511
+ <div class="mini-row"><div class="mini-icon">PDF</div><div><strong>Upload statement</strong><span>Supported formats</span></div><div class="status-pill">Ready</div></div>
512
+ <div class="mini-row"><div class="mini-icon">XLS</div><div><strong>Download Excel</strong><span>Parsed rows and sheets</span></div><div class="status-pill">Export</div></div>
513
+ </div>
514
+ </a>
515
+
516
+ <a class="note note-service" href="/service/pdf-ocr">
517
+ <img class="note-image" src="https://images.unsplash.com/photo-1568605117036-5fe5e7bab0b7?auto=format&fit=crop&w=900&q=80" alt="Scanned document workspace">
518
+ <span class="kicker">OCR Engine</span>
519
+ <h3>Searchable PDF</h3>
520
+ <p>Convert scanned PDFs into searchable documents with an integrated overlay text layer.</p>
521
+ </a>
522
+
523
+ <a class="note note-service" href="/service/pdf-split">
524
+ <img class="note-image" src="https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80" alt="Laptop with digital work">
525
+ <span class="kicker">PDF Tools</span>
526
+ <h3>Split PDFs</h3>
527
+ <p>Extract single pages or split into specific page range groups inside a ZIP.</p>
528
+ </a>
529
+
530
+ <a class="note note-service" href="/service/pdf-merge">
531
+ <img class="note-image" src="https://images.unsplash.com/photo-1554224154-26032ffc0d07?auto=format&fit=crop&w=900&q=80" alt="Calculator and accounting paperwork">
532
+ <span class="kicker">PDF Tools</span>
533
+ <h3>Merge PDFs</h3>
534
+ <p>Combine multiple PDF files into a single master document.</p>
535
+ </a>
536
+
537
+ <a class="note note-service" href="/service/pdf-to-word">
538
+ <img class="note-image" src="https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=900&q=80" alt="Documents and laptop">
539
+ <span class="kicker">Converter</span>
540
+ <h3>PDF to Word</h3>
541
+ <p>Convert PDF text layout into an editable Microsoft Word (.docx) document.</p>
542
+ </a>
543
+
544
+ <a class="note note-service" href="/service/pdf-delete-pages">
545
+ <img class="note-image" src="https://images.unsplash.com/photo-1461749280684-dccba630e2f6?auto=format&fit=crop&w=900&q=80" alt="Code and documents on screen">
546
+ <span class="kicker">PDF Tools</span>
547
+ <h3>Delete Pages</h3>
548
+ <p>Filter out unwanted pages by specifying page ranges to delete.</p>
549
+ </a>
550
+
551
+ <a class="note note-service" href="/service/excel-to-csv">
552
+ <img class="note-image" src="https://images.unsplash.com/photo-1554224154-26032ffc0d07?auto=format&fit=crop&w=900&q=80" alt="Spreadsheet and data">
553
+ <span class="kicker">Converter</span>
554
+ <h3>Excel β†’ CSV</h3>
555
+ <p>Convert large .xlsx spreadsheets to flat CSV tables instantly.</p>
556
+ </a>
557
+
558
+ <a class="note note-service" href="/service/summarize">
559
+ <img class="note-image" src="https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=900&q=80" alt="AI summarization concept">
560
+ <span class="kicker">AI Summary</span>
561
+ <h3>Summarizer</h3>
562
+ <p>Extract key bullets and core ideas from documents into a clean summary Word file.</p>
563
+ </a>
564
+ </main>
565
+
566
+ <footer class="footer">
567
+ SCANLY document utilities β€” OCR, PDF split/merge, PDF to Word, PDF page deletion, Excel-to-CSV, AI summarization & bank statement parsing.
568
+ </footer>
569
+
570
+ <script>
571
+ const toggleBtn = document.getElementById('theme-toggle');
572
+ const currentTheme = localStorage.getItem('theme') || 'dark';
573
+
574
+ if (currentTheme === 'light') {
575
+ document.body.classList.add('light-theme');
576
+ }
577
+
578
+ toggleBtn.addEventListener('click', () => {
579
+ document.body.classList.toggle('light-theme');
580
+ const theme = document.body.classList.contains('light-theme') ? 'light' : 'dark';
581
+ localStorage.setItem('theme', theme);
582
+ });
583
+ </script>
584
+ </body>
585
+ </html>
templatemo_622_clearwave/templatemo-622-clearwave.css ADDED
@@ -0,0 +1,1075 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ TemplateMo 622 Clearwave
3
+ https://templatemo.com/tm-622-clearwave
4
+ Free for personal and commercial use
5
+ */
6
+
7
+ /* ── TOKENS ── */
8
+ :root {
9
+ --bg: #E8F4F2;
10
+ --bg-alt: #DFF0EE;
11
+ --surface: #F4FAFA;
12
+ --surface-2: #FFFFFF;
13
+ --accent: #1A7A6E;
14
+ --accent-mid: #2A9D8F;
15
+ --accent-light: #5BBFB5;
16
+ --accent-ghost: rgba(26,122,110,0.08);
17
+ --accent-border:rgba(26,122,110,0.15);
18
+ --text-1: #0D1E1C;
19
+ --text-2: #3A5C58;
20
+ --text-3: #6B8C88;
21
+ --border: rgba(13,30,28,0.08);
22
+ --shadow-sm: 0 2px 12px rgba(13,30,28,0.06);
23
+ --shadow-md: 0 8px 32px rgba(13,30,28,0.10);
24
+ --shadow-lg: 0 24px 64px rgba(13,30,28,0.13);
25
+ --silk: cubic-bezier(0.16, 1, 0.3, 1);
26
+ --silk-dur: 0.8s;
27
+ --radius: 16px;
28
+ --radius-lg: 24px;
29
+ }
30
+
31
+ /* ── RESET ── */
32
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
33
+ html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
34
+ body {
35
+ font-family: 'DM Sans', sans-serif;
36
+ background: var(--bg);
37
+ color: var(--text-1);
38
+ overflow-x: hidden;
39
+ -webkit-font-smoothing: antialiased;
40
+ }
41
+ a { text-decoration: none; color: inherit; }
42
+ ul { list-style: none; }
43
+ img { display: block; max-width: 100%; }
44
+ button { cursor: pointer; border: none; background: none; font-family: inherit; }
45
+
46
+ /* ── SUBTLE NOISE TEXTURE ── */
47
+ body::before {
48
+ content: '';
49
+ position: fixed;
50
+ inset: 0;
51
+ pointer-events: none;
52
+ z-index: 0;
53
+ opacity: 0.022;
54
+ background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
55
+ background-size: 128px 128px;
56
+ }
57
+
58
+ /* ── UTILITY ── */
59
+ .container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
60
+ .section-label {
61
+ display: inline-flex; align-items: center; gap: 8px;
62
+ font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
63
+ text-transform: uppercase; color: var(--accent);
64
+ background: var(--accent-ghost);
65
+ border: 1px solid var(--accent-border);
66
+ padding: 6px 14px; border-radius: 100px;
67
+ margin-bottom: 20px;
68
+ }
69
+ .section-label::before {
70
+ content: ''; width: 6px; height: 6px;
71
+ background: var(--accent); border-radius: 50%;
72
+ }
73
+ .section-title {
74
+ font-family: 'DM Sans', sans-serif;
75
+ font-size: clamp(2rem, 4vw, 3rem);
76
+ font-weight: 700; letter-spacing: -0.03em;
77
+ line-height: 1.15; color: var(--text-1);
78
+ }
79
+ .section-title em {
80
+ font-style: italic;
81
+ font-family: 'Playfair Display', serif;
82
+ color: var(--accent);
83
+ }
84
+ .section-sub {
85
+ font-size: 1.0625rem; line-height: 1.75;
86
+ color: var(--text-2); max-width: 520px; margin-top: 16px;
87
+ }
88
+
89
+ /* ── SCROLL REVEAL ── */
90
+ .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--silk), transform 0.7s var(--silk); }
91
+ .reveal.visible { opacity: 1; transform: none; }
92
+ .reveal-delay-1 { transition-delay: 0.1s; }
93
+ .reveal-delay-2 { transition-delay: 0.2s; }
94
+ .reveal-delay-3 { transition-delay: 0.3s; }
95
+ .reveal-delay-4 { transition-delay: 0.4s; }
96
+
97
+ /* ══════════════════════════════════════════
98
+ 1. NAV
99
+ ══════════════════════════════════════════ */
100
+ .nav {
101
+ position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
102
+ padding: 20px 0;
103
+ transition: padding var(--silk-dur) var(--silk), background var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
104
+ }
105
+ .nav.scrolled {
106
+ padding: 12px 0;
107
+ background: rgba(232,244,242,0.92);
108
+ backdrop-filter: blur(16px);
109
+ -webkit-backdrop-filter: blur(16px);
110
+ box-shadow: 0 1px 0 var(--border);
111
+ }
112
+ .nav-inner {
113
+ display: flex; align-items: center; justify-content: space-between;
114
+ max-width: 1160px; margin: 0 auto; padding: 0 32px;
115
+ }
116
+ .nav-logo {
117
+ font-size: 1.25rem; font-weight: 700; letter-spacing: -0.04em;
118
+ color: var(--text-1);
119
+ }
120
+ .nav-logo span { color: var(--accent); }
121
+ .nav-links {
122
+ display: flex; align-items: center; gap: 36px;
123
+ }
124
+ .nav-links a {
125
+ font-size: 0.9rem; font-weight: 500; color: var(--text-2);
126
+ position: relative; padding: 7px 16px; border-radius: 100px;
127
+ background: transparent;
128
+ box-shadow: inset 0 0 0 0px var(--accent-border);
129
+ transition: color 0.4s var(--silk), background 0.4s var(--silk), box-shadow 0.4s var(--silk);
130
+ }
131
+ .nav-links a:hover {
132
+ color: var(--accent);
133
+ background: var(--accent-ghost);
134
+ box-shadow: inset 0 0 0 1px var(--accent-border);
135
+ }
136
+ .nav-cta {
137
+ display: flex; align-items: center; gap: 12px;
138
+ }
139
+ .btn-ghost {
140
+ font-size: 0.875rem; font-weight: 500; color: var(--text-2);
141
+ padding: 9px 20px; border-radius: 100px;
142
+ transition: color 0.3s, background 0.3s;
143
+ }
144
+ .btn-ghost:hover { color: var(--accent); background: var(--accent-ghost); }
145
+ .btn-primary {
146
+ font-size: 0.875rem; font-weight: 600; color: #fff;
147
+ background: var(--accent); padding: 10px 22px; border-radius: 100px;
148
+ transition: background var(--silk-dur) var(--silk), transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
149
+ box-shadow: 0 4px 16px rgba(26,122,110,0.25);
150
+ }
151
+ .btn-primary:hover {
152
+ background: var(--accent-mid);
153
+ transform: scale(1.02);
154
+ box-shadow: 0 6px 24px rgba(26,122,110,0.35);
155
+ }
156
+
157
+ /* Hamburger */
158
+ .nav-hamburger {
159
+ display: none; flex-direction: column; gap: 5px;
160
+ width: 28px; padding: 4px; cursor: pointer;
161
+ }
162
+ .nav-hamburger span {
163
+ display: block; height: 2px; background: var(--text-1);
164
+ border-radius: 2px; transition: all 0.4s var(--silk);
165
+ }
166
+ .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
167
+ .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
168
+ .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
169
+
170
+ /* Mobile Menu */
171
+ .mobile-menu {
172
+ position: fixed; inset: 0; z-index: 999;
173
+ background: var(--bg);
174
+ display: flex; flex-direction: column; align-items: center;
175
+ justify-content: flex-start;
176
+ gap: 0;
177
+ opacity: 0; pointer-events: none;
178
+ transition: opacity 0.4s var(--silk);
179
+ overflow-y: auto;
180
+ padding: 100px 32px 100px;
181
+ -webkit-overflow-scrolling: touch;
182
+ }
183
+ .mobile-menu.open { opacity: 1; pointer-events: all; }
184
+ .mobile-menu a {
185
+ font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em;
186
+ color: var(--text-1); padding: 14px 0; width: 100%; text-align: center;
187
+ border-bottom: 1px solid var(--border);
188
+ opacity: 0; transform: translateY(16px);
189
+ transition: opacity 0.5s var(--silk), transform 0.5s var(--silk), color 0.3s;
190
+ }
191
+ .mobile-menu a:first-child { border-top: 1px solid var(--border); }
192
+ .mobile-menu.open a { opacity: 1; transform: none; }
193
+ .mobile-menu a:hover { color: var(--accent); }
194
+ .mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
195
+ .mobile-menu a:nth-child(2) { transition-delay: 0.10s; }
196
+ .mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
197
+ .mobile-menu a:nth-child(4) { transition-delay: 0.20s; }
198
+ .mobile-menu a:nth-child(5) { transition-delay: 0.25s; }
199
+ .mobile-menu a:nth-child(6) { transition-delay: 0.30s; }
200
+ .mobile-menu .mobile-cta {
201
+ margin-top: 28px;
202
+ font-size: 0.9375rem; font-weight: 600;
203
+ background: var(--accent); color: #fff;
204
+ padding: 14px 40px; border-radius: 100px;
205
+ border: none;
206
+ opacity: 0; transform: translateY(16px);
207
+ transition: opacity 0.5s var(--silk) 0.35s, transform 0.5s var(--silk) 0.35s, background 0.3s;
208
+ }
209
+ .mobile-menu.open .mobile-cta { opacity: 1; transform: none; }
210
+ .mobile-menu .mobile-cta:hover { background: var(--accent-mid); }
211
+
212
+ /* ══════════════════════════════════════════
213
+ 2. HERO
214
+ ══════════════════════════════════════════ */
215
+ .hero {
216
+ min-height: 100vh;
217
+ display: flex; align-items: center;
218
+ padding: 120px 0 80px;
219
+ position: relative; overflow: hidden;
220
+ }
221
+ /* Decorative background circles */
222
+ .hero::before {
223
+ content: '';
224
+ position: absolute; top: -10%; right: -5%;
225
+ width: 55vw; height: 55vw; max-width: 720px; max-height: 720px;
226
+ background: radial-gradient(ellipse at center, rgba(91,191,181,0.18) 0%, rgba(42,157,143,0.06) 50%, transparent 75%);
227
+ border-radius: 50%;
228
+ pointer-events: none;
229
+ }
230
+ .hero::after {
231
+ content: '';
232
+ position: absolute; bottom: -15%; left: -8%;
233
+ width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
234
+ background: radial-gradient(ellipse at center, rgba(26,122,110,0.10) 0%, transparent 70%);
235
+ border-radius: 50%;
236
+ pointer-events: none;
237
+ }
238
+ .hero-inner {
239
+ position: relative; z-index: 1;
240
+ display: grid; grid-template-columns: 1fr 1fr;
241
+ align-items: center; gap: 64px;
242
+ }
243
+ .hero-badge {
244
+ display: inline-flex; align-items: center; gap: 8px;
245
+ background: var(--surface-2); border: 1px solid var(--accent-border);
246
+ border-radius: 100px; padding: 6px 16px 6px 8px;
247
+ margin-bottom: 28px; box-shadow: var(--shadow-sm);
248
+ }
249
+ .hero-badge-dot {
250
+ width: 24px; height: 24px; border-radius: 50%;
251
+ background: var(--accent); display: flex; align-items: center; justify-content: center;
252
+ font-size: 11px; color: #fff; font-weight: 700; flex-shrink: 0;
253
+ }
254
+ .hero-badge span { font-size: 0.8125rem; font-weight: 500; color: var(--text-2); }
255
+ .hero-badge strong { color: var(--accent); }
256
+ .hero-title {
257
+ font-size: clamp(2.6rem, 5vw, 4.2rem);
258
+ font-weight: 700; letter-spacing: -0.04em; line-height: 1.1;
259
+ margin-bottom: 24px;
260
+ }
261
+ .hero-title em {
262
+ font-style: italic;
263
+ font-family: 'Playfair Display', serif;
264
+ color: var(--accent);
265
+ }
266
+ .hero-sub {
267
+ font-size: 1.0625rem; line-height: 1.75;
268
+ color: var(--text-2); max-width: 480px; margin-bottom: 40px;
269
+ }
270
+ .hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
271
+ .btn-primary-lg {
272
+ font-size: 0.9375rem; font-weight: 600; color: #fff;
273
+ background: var(--accent); padding: 14px 32px; border-radius: 100px;
274
+ display: flex; align-items: center; gap: 10px;
275
+ transition: background var(--silk-dur) var(--silk), transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
276
+ box-shadow: 0 6px 24px rgba(26,122,110,0.30);
277
+ }
278
+ .btn-primary-lg:hover { background: var(--accent-mid); transform: scale(1.02); box-shadow: 0 8px 32px rgba(26,122,110,0.40); }
279
+ .btn-primary-lg .btn-arrow { transition: transform 0.4s var(--silk); }
280
+ .btn-primary-lg:hover .btn-arrow { transform: translateX(4px); }
281
+ .btn-outline-lg {
282
+ font-size: 0.9375rem; font-weight: 500; color: var(--accent);
283
+ border: 1.5px solid var(--accent-border); padding: 13px 28px; border-radius: 100px;
284
+ display: flex; align-items: center; gap: 8px;
285
+ transition: background 0.4s var(--silk), border-color 0.4s var(--silk), transform var(--silk-dur) var(--silk);
286
+ }
287
+ .btn-outline-lg:hover { background: var(--accent-ghost); border-color: var(--accent); transform: scale(1.02); }
288
+
289
+ /* Trust badges */
290
+ .hero-trust {
291
+ display: flex; align-items: center; gap: 20px;
292
+ margin-top: 48px; flex-wrap: wrap;
293
+ }
294
+ .trust-item {
295
+ display: flex; align-items: center; gap: 8px;
296
+ font-size: 0.8125rem; color: var(--text-3); font-weight: 500;
297
+ }
298
+ .trust-item svg { color: var(--accent); flex-shrink: 0; }
299
+ .trust-divider { width: 1px; height: 20px; background: var(--border); }
300
+
301
+ /* Hero visual */
302
+ .hero-visual {
303
+ position: relative; display: flex; justify-content: center; align-items: center;
304
+ }
305
+ .hero-dashboard {
306
+ width: 100%; max-width: 520px;
307
+ background: var(--surface-2);
308
+ border-radius: var(--radius-lg);
309
+ border: 1px solid var(--border);
310
+ box-shadow: var(--shadow-lg);
311
+ overflow: hidden;
312
+ transition: transform var(--silk-dur) var(--silk);
313
+ }
314
+ .hero-dashboard:hover { transform: scale(1.01); }
315
+ .dashboard-bar {
316
+ background: var(--bg-alt); padding: 12px 16px;
317
+ display: flex; align-items: center; gap: 8px;
318
+ border-bottom: 1px solid var(--border);
319
+ }
320
+ .db-dot { width: 10px; height: 10px; border-radius: 50%; }
321
+ .db-dot:nth-child(1) { background: #FF5F57; }
322
+ .db-dot:nth-child(2) { background: #FFBD2E; }
323
+ .db-dot:nth-child(3) { background: #28CA41; }
324
+ .dashboard-body { padding: 24px; }
325
+ .db-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
326
+ .db-title { font-size: 0.875rem; font-weight: 600; color: var(--text-1); }
327
+ .db-tag {
328
+ font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
329
+ text-transform: uppercase; color: var(--accent);
330
+ background: var(--accent-ghost); border: 1px solid var(--accent-border);
331
+ padding: 3px 10px; border-radius: 100px;
332
+ }
333
+ .db-chart {
334
+ height: 80px; display: flex; align-items: flex-end; gap: 6px; margin-bottom: 20px;
335
+ }
336
+ .db-bar {
337
+ flex: 1; border-radius: 4px 4px 0 0;
338
+ background: var(--accent-ghost); border: 1px solid var(--accent-border);
339
+ transition: height 1s var(--silk);
340
+ }
341
+ .db-bar.active { background: var(--accent); border-color: var(--accent); }
342
+ .db-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
343
+ .db-stat {
344
+ background: var(--bg); border-radius: var(--radius);
345
+ padding: 14px; border: 1px solid var(--border);
346
+ }
347
+ .db-stat-val { font-size: 1.25rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.03em; }
348
+ .db-stat-label { font-size: 0.72rem; color: var(--text-3); margin-top: 2px; }
349
+ .db-stat-change { font-size: 0.72rem; font-weight: 600; color: var(--accent); margin-top: 4px; }
350
+
351
+ /* Floating badge on hero visual */
352
+ .hero-float-badge {
353
+ position: absolute; bottom: -16px; left: -24px;
354
+ background: var(--surface-2); border: 1px solid var(--border);
355
+ border-radius: var(--radius); padding: 12px 16px;
356
+ box-shadow: var(--shadow-md);
357
+ display: flex; align-items: center; gap: 10px;
358
+ animation: floatBadge 4s ease-in-out infinite;
359
+ }
360
+ @keyframes floatBadge {
361
+ 0%, 100% { transform: translateY(0); }
362
+ 50% { transform: translateY(-6px); }
363
+ }
364
+ .float-badge-icon {
365
+ width: 36px; height: 36px; border-radius: 10px;
366
+ background: var(--accent); display: flex; align-items: center; justify-content: center;
367
+ color: #fff; font-size: 16px; flex-shrink: 0;
368
+ }
369
+ .float-badge-text { font-size: 0.75rem; }
370
+ .float-badge-text strong { display: block; font-weight: 700; color: var(--text-1); }
371
+ .float-badge-text span { color: var(--text-3); }
372
+
373
+ .hero-float-badge-2 {
374
+ position: absolute; top: 20px; right: -20px;
375
+ background: var(--accent); border-radius: var(--radius);
376
+ padding: 10px 16px; box-shadow: 0 8px 24px rgba(26,122,110,0.35);
377
+ animation: floatBadge2 4s ease-in-out 2s infinite;
378
+ }
379
+ @keyframes floatBadge2 {
380
+ 0%, 100% { transform: translateY(0); }
381
+ 50% { transform: translateY(-5px); }
382
+ }
383
+ .float-badge-2-val { font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: -0.03em; }
384
+ .float-badge-2-label { font-size: 0.7rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
385
+
386
+ /* ══════════════════════════════════════════
387
+ 3. LOGO TICKER
388
+ ══════════════════════════════════════════ */
389
+ .ticker-section {
390
+ padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
391
+ background: var(--surface);
392
+ overflow: hidden; position: relative;
393
+ }
394
+ .ticker-label {
395
+ text-align: center; font-size: 0.75rem; letter-spacing: 0.12em;
396
+ text-transform: uppercase; color: var(--text-3); font-weight: 600;
397
+ margin-bottom: 28px;
398
+ }
399
+ .ticker-track-wrap { overflow: hidden; }
400
+ .ticker-track {
401
+ display: flex; align-items: center; gap: 64px;
402
+ width: max-content;
403
+ animation: ticker 28s linear infinite;
404
+ }
405
+ .ticker-track:hover { animation-play-state: paused; }
406
+ @keyframes ticker {
407
+ from { transform: translateX(0); }
408
+ to { transform: translateX(-50%); }
409
+ }
410
+ .ticker-item {
411
+ display: flex; align-items: center; gap: 10px;
412
+ font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.03em;
413
+ color: var(--text-3); white-space: nowrap; flex-shrink: 0;
414
+ transition: color 0.3s;
415
+ }
416
+ .ticker-item:hover { color: var(--accent); }
417
+ .ticker-item-icon {
418
+ width: 32px; height: 32px; border-radius: 8px;
419
+ background: var(--accent-ghost); border: 1px solid var(--accent-border);
420
+ display: flex; align-items: center; justify-content: center; flex-shrink: 0;
421
+ }
422
+ .ticker-dot {
423
+ width: 5px; height: 5px; border-radius: 50%;
424
+ background: var(--accent-light); flex-shrink: 0; opacity: 0.5;
425
+ }
426
+
427
+ /* ══════════════════════════════════════════
428
+ 4. FEATURES
429
+ ══════════════════════════════════════════ */
430
+ .features-section { padding: 120px 0; }
431
+ .features-header { text-align: center; margin-bottom: 80px; }
432
+ .features-header .section-sub { margin: 16px auto 0; text-align: center; }
433
+
434
+ .feature-row {
435
+ display: grid; grid-template-columns: 1fr 1fr;
436
+ align-items: center; gap: 80px; margin-bottom: 100px;
437
+ }
438
+ .feature-row:last-child { margin-bottom: 0; }
439
+ .feature-row.reverse { direction: rtl; }
440
+ .feature-row.reverse > * { direction: ltr; }
441
+
442
+ .feature-content {}
443
+ .feature-number {
444
+ font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
445
+ text-transform: uppercase; color: var(--accent-light);
446
+ margin-bottom: 16px;
447
+ }
448
+ .feature-title {
449
+ font-size: clamp(1.6rem, 3vw, 2.2rem);
450
+ font-weight: 700; letter-spacing: -0.03em; line-height: 1.2;
451
+ margin-bottom: 16px;
452
+ }
453
+ .feature-desc {
454
+ font-size: 1rem; line-height: 1.75; color: var(--text-2); margin-bottom: 28px;
455
+ }
456
+ .feature-checklist { display: flex; flex-direction: column; gap: 10px; }
457
+ .feature-check {
458
+ display: flex; align-items: flex-start; gap: 10px;
459
+ font-size: 0.9rem; color: var(--text-2);
460
+ }
461
+ .check-icon {
462
+ width: 20px; height: 20px; border-radius: 50%;
463
+ background: var(--accent-ghost); border: 1px solid var(--accent-border);
464
+ display: flex; align-items: center; justify-content: center;
465
+ flex-shrink: 0; margin-top: 1px;
466
+ color: var(--accent); font-size: 11px; font-weight: 700;
467
+ }
468
+
469
+ .feature-visual {
470
+ background: var(--surface);
471
+ border-radius: var(--radius-lg);
472
+ border: 1px solid var(--border);
473
+ box-shadow: var(--shadow-md);
474
+ overflow: hidden;
475
+ aspect-ratio: 4/3;
476
+ display: flex; align-items: center; justify-content: center;
477
+ position: relative;
478
+ transition: transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
479
+ }
480
+ .feature-visual:hover { transform: scale(1.015); box-shadow: var(--shadow-lg); }
481
+ .feature-visual-inner {
482
+ width: 85%; display: flex; flex-direction: column; gap: 12px;
483
+ }
484
+ .fv-row { display: flex; gap: 12px; }
485
+ .fv-card {
486
+ flex: 1; background: var(--surface-2); border-radius: var(--radius);
487
+ border: 1px solid var(--border); padding: 16px;
488
+ box-shadow: var(--shadow-sm);
489
+ }
490
+ .fv-card-label { font-size: 0.72rem; color: var(--text-3); font-weight: 500; margin-bottom: 6px; }
491
+ .fv-card-val { font-size: 1.3rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.03em; }
492
+ .fv-card-bar {
493
+ height: 4px; border-radius: 2px; margin-top: 10px;
494
+ background: var(--bg); overflow: hidden;
495
+ }
496
+ .fv-card-bar-fill { height: 100%; border-radius: 2px; background: var(--accent); }
497
+ .fv-wide { flex: 2; }
498
+ .fv-list { display: flex; flex-direction: column; gap: 8px; }
499
+ .fv-list-item {
500
+ display: flex; align-items: center; justify-content: space-between;
501
+ padding: 8px 12px; background: var(--bg); border-radius: 8px;
502
+ font-size: 0.8rem;
503
+ }
504
+ .fv-list-name { color: var(--text-2); font-weight: 500; }
505
+ .fv-pill {
506
+ font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 100px;
507
+ }
508
+ .fv-pill.green { background: rgba(26,122,110,0.12); color: var(--accent); }
509
+ .fv-pill.blue { background: rgba(42,157,143,0.12); color: var(--accent-mid); }
510
+ .fv-pill.dim { background: var(--border); color: var(--text-3); }
511
+
512
+ /* ══════════════════════════════════════════
513
+ 5. MOBILE CAROUSEL
514
+ ══════════════════════════════════════════ */
515
+ .carousel-section {
516
+ display: block;
517
+ padding: 120px 0; background: var(--surface);
518
+ border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
519
+ overflow: hidden;
520
+ }
521
+ .carousel-header { text-align: center; margin-bottom: 0; }
522
+ .carousel-header .section-sub { margin: 16px auto 0; text-align: center; }
523
+
524
+ .carousel-stage {
525
+ position: relative;
526
+ height: clamp(480px, 52vw, 780px);
527
+ perspective: clamp(900px, 120vw, 1800px);
528
+ perspective-origin: center center;
529
+ display: flex; align-items: center; justify-content: center;
530
+ }
531
+ .carousel-track {
532
+ position: relative; width: 100%; height: 100%;
533
+ transform-style: preserve-3d;
534
+ display: flex; align-items: center; justify-content: center;
535
+ }
536
+
537
+ /* Single source of truth: --pw = phone width, drives all offsets */
538
+ :root {
539
+ --pw: clamp(180px, 14vw, 300px);
540
+ --gap1: clamp(200px, 19vw, 380px);
541
+ --gap2: clamp(360px, 34vw, 660px);
542
+ --gap-hide: clamp(500px, 48vw, 900px);
543
+ }
544
+
545
+ .phone-card {
546
+ position: absolute;
547
+ transition: transform 0.6s var(--silk), opacity 0.6s var(--silk);
548
+ cursor: pointer;
549
+ }
550
+ .phone-shell {
551
+ background: #C8D4D2;
552
+ border-radius: 32px;
553
+ padding: 5px;
554
+ border: none;
555
+ box-shadow:
556
+ 0 0 0 1px rgba(150,175,170,0.5),
557
+ 0 24px 56px rgba(13,30,28,0.18),
558
+ inset 0 1px 0 rgba(255,255,255,0.6);
559
+ position: relative;
560
+ transition: box-shadow 0.6s var(--silk);
561
+ }
562
+ .phone-screen {
563
+ background: var(--bg);
564
+ border-radius: 28px;
565
+ overflow: hidden;
566
+ aspect-ratio: 9/19.5;
567
+ }
568
+ .phone-screen-inner {
569
+ width: 100%; height: 100%;
570
+ display: flex; flex-direction: column;
571
+ }
572
+ .ps-topbar {
573
+ padding: 10px 12px 6px;
574
+ display: flex; justify-content: space-between; align-items: center;
575
+ }
576
+ .ps-topbar-label { font-size: 8px; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em; }
577
+ .ps-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
578
+ .ps-hero-block { padding: 6px 12px 10px; }
579
+ .ps-hero-title { font-size: 9px; font-weight: 700; color: var(--text-1); line-height: 1.3; margin-bottom: 4px; }
580
+ .ps-hero-sub { font-size: 6.5px; color: var(--text-3); line-height: 1.4; }
581
+ .ps-btn {
582
+ display: inline-block; margin-top: 6px;
583
+ background: var(--accent); color: #fff;
584
+ font-size: 6px; font-weight: 700; padding: 4px 10px; border-radius: 100px;
585
+ }
586
+ .ps-cards { padding: 6px 8px; display: flex; flex-direction: column; gap: 5px; }
587
+ .ps-card {
588
+ background: var(--surface-2); border-radius: 8px; padding: 8px 10px;
589
+ border: 1px solid var(--border);
590
+ display: flex; align-items: center; gap: 8px;
591
+ }
592
+ .ps-card-icon {
593
+ width: 22px; height: 22px; border-radius: 6px;
594
+ background: var(--accent-ghost); border: 1px solid var(--accent-border);
595
+ flex-shrink: 0;
596
+ }
597
+ .ps-card-text { flex: 1; }
598
+ .ps-card-title { height: 5px; background: var(--border); border-radius: 2px; width: 60%; margin-bottom: 4px; }
599
+ .ps-card-sub { height: 4px; background: var(--bg-alt); border-radius: 2px; width: 80%; }
600
+ .ps-card-val { font-size: 8px; font-weight: 700; color: var(--accent); }
601
+ .ps-nav {
602
+ margin-top: auto; padding: 6px 8px;
603
+ display: flex; justify-content: space-around;
604
+ border-top: 1px solid var(--border); background: var(--surface-2);
605
+ }
606
+ .ps-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
607
+ .ps-nav-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg-alt); }
608
+ .ps-nav-dot.active { background: var(--accent); }
609
+ .ps-nav-label { font-size: 4.5px; color: var(--text-3); }
610
+ .ps-nav-label.active { color: var(--accent); }
611
+
612
+ /* Card positions β€” z-index only, transforms set entirely by JS */
613
+ .phone-card[data-pos="center"] { z-index: 10; }
614
+ .phone-card[data-pos="left1"],
615
+ .phone-card[data-pos="right1"] { z-index: 8; }
616
+ .phone-card[data-pos="left2"],
617
+ .phone-card[data-pos="right2"] { z-index: 6; }
618
+ .phone-card[data-pos="hidden-left"],
619
+ .phone-card[data-pos="hidden-right"] { z-index: 4; }
620
+
621
+ /* Reflection floor line */
622
+ position: absolute; bottom: 60px; left: 0; right: 0;
623
+ height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
624
+ }
625
+
626
+ /* Controls */
627
+ .carousel-controls {
628
+ display: flex; align-items: center; justify-content: center; gap: 24px;
629
+ width: 100%; margin-top: 48px;
630
+ }
631
+ .carousel-btn {
632
+ width: 44px; height: 44px; border-radius: 50%;
633
+ border: 1.5px solid var(--accent-border);
634
+ background: var(--surface-2);
635
+ display: flex; align-items: center; justify-content: center;
636
+ color: var(--accent); cursor: pointer;
637
+ transition: all 0.4s var(--silk);
638
+ }
639
+ .carousel-btn:hover {
640
+ background: var(--accent); color: #fff;
641
+ border-color: var(--accent);
642
+ transform: scale(1.05);
643
+ }
644
+ .carousel-dots { display: flex; gap: 8px; align-items: center; }
645
+ .carousel-dot {
646
+ width: 8px; height: 8px; border-radius: 50%;
647
+ background: var(--accent-border); cursor: pointer;
648
+ transition: all 0.4s var(--silk);
649
+ }
650
+ .carousel-dot.active {
651
+ background: var(--accent); width: 24px; border-radius: 4px;
652
+ }
653
+
654
+ /* Zoom control */
655
+ .carousel-zoom {
656
+ display: flex; align-items: center; justify-content: center;
657
+ gap: 8px; padding: 30px 0 0;
658
+ }
659
+ .zoom-btn {
660
+ width: 32px; height: 32px; border-radius: 50%;
661
+ border: 1.5px solid var(--accent-border);
662
+ background: var(--surface-2);
663
+ display: flex; align-items: center; justify-content: center;
664
+ color: var(--accent); cursor: pointer; font-size: 16px; line-height: 1;
665
+ transition: all 0.35s var(--silk);
666
+ user-select: none;
667
+ }
668
+ .zoom-btn:hover:not(:disabled) {
669
+ background: var(--accent); color: #fff; border-color: var(--accent);
670
+ }
671
+ .zoom-btn:disabled { opacity: 0.28; cursor: not-allowed; }
672
+ .zoom-pips { display: flex; gap: 5px; align-items: center; }
673
+ .zoom-pip {
674
+ width: 6px; height: 6px; border-radius: 50%;
675
+ background: var(--accent-border);
676
+ transition: background 0.3s var(--silk), transform 0.3s var(--silk);
677
+ cursor: pointer;
678
+ }
679
+ .zoom-pip.active { background: var(--accent); transform: scale(1.4); }
680
+ .zoom-label {
681
+ font-size: 0.72rem; font-weight: 500; color: var(--text-3);
682
+ letter-spacing: 0.06em; text-transform: uppercase; width: 36px; text-align: center;
683
+ }
684
+
685
+ /* ══════════════════════════════════════════
686
+ 6. STATS
687
+ ══════════════════════════════════════════ */
688
+ .stats-section { padding: 80px 0; border-top: 1px solid var(--border); }
689
+ .stats-grid {
690
+ display: grid; grid-template-columns: repeat(4, 1fr);
691
+ }
692
+ .stat-card {
693
+ padding: 40px 36px;
694
+ border-right: 1px solid var(--border);
695
+ transition: background var(--silk-dur) var(--silk);
696
+ }
697
+ .stat-card:last-child { border-right: none; }
698
+ .stat-card:hover { background: var(--surface-2); }
699
+ .stat-rule {
700
+ width: 32px; height: 2px; background: var(--accent);
701
+ border-radius: 2px; margin-bottom: 24px;
702
+ transition: width 0.5s var(--silk);
703
+ }
704
+ .stat-card:hover .stat-rule { width: 56px; }
705
+ .stat-value {
706
+ font-size: clamp(2.4rem, 3.5vw, 3.6rem);
707
+ font-weight: 700; letter-spacing: -0.05em;
708
+ color: var(--text-1); line-height: 1; margin-bottom: 12px;
709
+ display: flex; align-items: baseline; gap: 2px;
710
+ }
711
+ .stat-suffix { font-size: 55%; color: var(--accent); font-weight: 600; }
712
+ .stat-label {
713
+ font-size: 0.9rem; font-weight: 600;
714
+ color: var(--text-1); margin-bottom: 6px;
715
+ }
716
+ .stat-sublabel { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; }
717
+
718
+ /* ══════════════════════════════════════════
719
+ 7. PRICING
720
+ ══════════════════════════════════════════ */
721
+ .pricing-section { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); }
722
+ .pricing-header { text-align: center; margin-bottom: 48px; }
723
+ .pricing-header .section-sub { margin: 16px auto 0; text-align: center; }
724
+
725
+ .pricing-toggle {
726
+ display: flex; align-items: center; justify-content: center; gap: 14px;
727
+ margin-bottom: 56px;
728
+ }
729
+ .toggle-label { font-size: 0.9rem; font-weight: 500; color: var(--text-2); }
730
+ .toggle-label.active { color: var(--accent); font-weight: 600; }
731
+ .toggle-switch {
732
+ width: 52px; height: 28px; border-radius: 100px;
733
+ background: var(--accent); cursor: pointer; position: relative;
734
+ transition: background 0.4s var(--silk);
735
+ }
736
+ .toggle-switch::after {
737
+ content: ''; position: absolute; top: 3px; left: 3px;
738
+ width: 22px; height: 22px; border-radius: 50%; background: #fff;
739
+ transition: transform 0.4s var(--silk);
740
+ }
741
+ .toggle-switch.annual::after { transform: translateX(24px); }
742
+ .toggle-badge {
743
+ font-size: 0.7rem; font-weight: 700; color: var(--accent);
744
+ background: var(--accent-ghost); border: 1px solid var(--accent-border);
745
+ padding: 3px 10px; border-radius: 100px;
746
+ }
747
+
748
+ .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
749
+ .pricing-card {
750
+ background: var(--surface-2); border-radius: var(--radius-lg);
751
+ border: 1px solid var(--border); padding: 36px 32px;
752
+ box-shadow: var(--shadow-sm);
753
+ transition: transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
754
+ position: relative;
755
+ }
756
+ .pricing-card:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
757
+ .pricing-card.featured {
758
+ border-color: var(--accent); background: var(--text-1);
759
+ box-shadow: 0 20px 60px rgba(26,122,110,0.25);
760
+ }
761
+ .pricing-card.featured:hover { transform: scale(1.025); box-shadow: 0 28px 80px rgba(26,122,110,0.35); }
762
+ .pricing-badge {
763
+ position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
764
+ background: var(--accent); color: #fff;
765
+ font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
766
+ padding: 5px 16px; border-radius: 100px;
767
+ white-space: nowrap;
768
+ }
769
+ .pricing-tier { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
770
+ .pricing-card.featured .pricing-tier { color: rgba(255,255,255,0.5); }
771
+ .pricing-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
772
+ .price-annual-note {
773
+ font-size: 0.78rem; color: var(--text-3); margin-bottom: 16px;
774
+ min-height: 1.2em;
775
+ transition: opacity 0.4s var(--silk);
776
+ }
777
+ .pricing-card.featured .price-annual-note { color: rgba(255,255,255,0.4); }
778
+ .price-currency { font-size: 1.4rem; font-weight: 600; color: var(--text-2); margin-top: 6px; }
779
+ .price-amount { font-size: 3.2rem; font-weight: 700; letter-spacing: -0.04em; color: var(--text-1); line-height: 1; }
780
+ .pricing-card.featured .price-currency,
781
+ .pricing-card.featured .price-amount { color: #fff; }
782
+ .price-period { font-size: 0.875rem; color: var(--text-3); }
783
+ .pricing-card.featured .price-period { color: rgba(255,255,255,0.5); }
784
+ .pricing-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; margin-bottom: 28px; }
785
+ .pricing-card.featured .pricing-desc { color: rgba(255,255,255,0.65); }
786
+ .pricing-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
787
+ .pricing-card.featured .pricing-divider { background: rgba(255,255,255,0.1); }
788
+ .pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
789
+ .pricing-feature {
790
+ display: flex; align-items: flex-start; gap: 10px;
791
+ font-size: 0.875rem; color: var(--text-2);
792
+ }
793
+ .pricing-card.featured .pricing-feature { color: rgba(255,255,255,0.8); }
794
+ .pricing-check {
795
+ width: 18px; height: 18px; border-radius: 50%;
796
+ background: var(--accent-ghost); border: 1px solid var(--accent-border);
797
+ display: flex; align-items: center; justify-content: center;
798
+ flex-shrink: 0; color: var(--accent); font-size: 10px; font-weight: 700;
799
+ margin-top: 1px;
800
+ }
801
+ .pricing-card.featured .pricing-check {
802
+ background: rgba(91,191,181,0.2); border-color: rgba(91,191,181,0.4); color: var(--accent-light);
803
+ }
804
+ .pricing-cta {
805
+ display: block; text-align: center; font-size: 0.9rem; font-weight: 600;
806
+ padding: 13px; border-radius: 100px;
807
+ border: 1.5px solid var(--accent-border); color: var(--accent);
808
+ transition: all 0.4s var(--silk);
809
+ }
810
+ .pricing-cta:hover { background: var(--accent-ghost); }
811
+ .pricing-card.featured .pricing-cta {
812
+ background: var(--accent); border-color: var(--accent); color: #fff;
813
+ box-shadow: 0 6px 24px rgba(26,122,110,0.35);
814
+ }
815
+ .pricing-card.featured .pricing-cta:hover { background: var(--accent-mid); }
816
+
817
+ /* ══════════════════════════════════════════
818
+ 8. TESTIMONIALS
819
+ ══════════════════════════════════════════ */
820
+ .testimonials-section { padding: 100px 0; }
821
+ .testimonials-header { text-align: center; margin-bottom: 64px; }
822
+ .testimonials-header .section-sub { margin: 16px auto 0; text-align: center; }
823
+ .testimonials-grid {
824
+ display: grid;
825
+ grid-template-columns: repeat(3, 1fr);
826
+ grid-template-rows: auto auto;
827
+ gap: 24px;
828
+ }
829
+ .testimonial-card {
830
+ background: var(--surface-2); border-radius: var(--radius-lg);
831
+ border: 1px solid var(--border); padding: 32px;
832
+ box-shadow: var(--shadow-sm);
833
+ transition: transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk);
834
+ }
835
+ .testimonial-card:hover { transform: scale(1.015); box-shadow: var(--shadow-md); }
836
+ .testimonial-card.tall { grid-row: span 2; }
837
+ .testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; }
838
+ .testimonial-stars span { color: var(--accent); font-size: 14px; }
839
+ .testimonial-quote {
840
+ font-size: 0.9375rem; line-height: 1.7; color: var(--text-2);
841
+ margin-bottom: 24px; font-style: italic;
842
+ }
843
+ .testimonial-card.tall .testimonial-quote { font-size: 1.0625rem; }
844
+ .testimonial-author { display: flex; align-items: center; gap: 12px; }
845
+ .author-avatar {
846
+ width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
847
+ border: 2px solid var(--accent-border);
848
+ display: flex; align-items: center; justify-content: center;
849
+ font-weight: 700; font-size: 0.875rem; color: var(--accent);
850
+ background: var(--accent-ghost);
851
+ }
852
+ .author-name { font-size: 0.875rem; font-weight: 600; color: var(--text-1); }
853
+ .author-role { font-size: 0.75rem; color: var(--text-3); margin-top: 1px; }
854
+
855
+ /* ══════════════════════════════════════════
856
+ 9. INTEGRATIONS
857
+ ══════════════════════════════════════════ */
858
+ .integrations-section {
859
+ padding: 100px 0; background: var(--surface);
860
+ border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
861
+ }
862
+ .integrations-header { text-align: center; margin-bottom: 56px; }
863
+ .integrations-header .section-sub { margin: 16px auto 0; text-align: center; }
864
+ .integrations-grid {
865
+ display: flex; flex-wrap: wrap; gap: 12px;
866
+ justify-content: center; max-width: 860px; margin: 0 auto;
867
+ }
868
+ .integration-tile {
869
+ background: var(--surface-2); border-radius: 100px;
870
+ border: 1px solid var(--border); padding: 10px 22px;
871
+ box-shadow: var(--shadow-sm);
872
+ transition: transform var(--silk-dur) var(--silk), box-shadow var(--silk-dur) var(--silk),
873
+ border-color 0.4s, color 0.4s, background 0.4s;
874
+ cursor: default;
875
+ }
876
+ .integration-tile:hover {
877
+ transform: translateY(-2px); box-shadow: var(--shadow-md);
878
+ border-color: var(--accent-border); background: var(--accent-ghost);
879
+ }
880
+ .integration-name {
881
+ font-size: 0.875rem; font-weight: 600; color: var(--text-2);
882
+ white-space: nowrap; letter-spacing: -0.01em;
883
+ }
884
+ .integration-tile:hover .integration-name { color: var(--accent); }
885
+
886
+ /* ══════════════════════════════════════════
887
+ 10. FAQ
888
+ ══════════════════════════════════════════ */
889
+ .faq-section { padding: 100px 0; }
890
+ .faq-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
891
+ .faq-sidebar { position: sticky; top: 100px; }
892
+ .faq-sidebar .section-sub { margin-top: 16px; margin-bottom: 32px; }
893
+ .faq-toggle-all {
894
+ font-size: 0.875rem; font-weight: 600; color: var(--accent);
895
+ display: flex; align-items: center; gap: 6px;
896
+ transition: opacity 0.3s;
897
+ }
898
+ .faq-toggle-all:hover { opacity: 0.75; }
899
+
900
+ .faq-list { display: flex; flex-direction: column; gap: 0; }
901
+ .faq-item {
902
+ border-bottom: 1px solid var(--border);
903
+ }
904
+ .faq-item:first-child { border-top: 1px solid var(--border); }
905
+ .faq-question {
906
+ display: flex; justify-content: space-between; align-items: center;
907
+ padding: 22px 0; cursor: pointer; gap: 16px;
908
+ font-size: 0.9375rem; font-weight: 600; color: var(--text-1);
909
+ transition: color 0.3s;
910
+ }
911
+ .faq-question:hover { color: var(--accent); }
912
+ .faq-icon {
913
+ width: 28px; height: 28px; border-radius: 50%;
914
+ border: 1.5px solid var(--accent-border); flex-shrink: 0;
915
+ display: flex; align-items: center; justify-content: center;
916
+ color: var(--accent); font-size: 16px; font-weight: 300;
917
+ transition: transform 0.5s var(--silk), background 0.4s, color 0.4s;
918
+ }
919
+ .faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
920
+ .faq-answer {
921
+ display: grid; grid-template-rows: 0fr;
922
+ transition: grid-template-rows 0.5s var(--silk);
923
+ }
924
+ .faq-item.open .faq-answer { grid-template-rows: 1fr; }
925
+ .faq-answer-inner {
926
+ overflow: hidden;
927
+ font-size: 0.9rem; line-height: 1.75; color: var(--text-2);
928
+ padding-bottom: 0;
929
+ transition: padding-bottom 0.5s var(--silk);
930
+ }
931
+ .faq-item.open .faq-answer-inner { padding-bottom: 20px; }
932
+
933
+ /* ══════════════════════════════════════════
934
+ 11. CTA BANNER
935
+ ══════════════════════════════════════════ */
936
+ .cta-section { padding: 100px 0; }
937
+ .cta-inner {
938
+ background: var(--text-1);
939
+ border-radius: var(--radius-lg);
940
+ padding: 80px;
941
+ display: flex; align-items: center; justify-content: space-between; gap: 48px;
942
+ position: relative; overflow: hidden;
943
+ }
944
+ .cta-inner::before {
945
+ content: '';
946
+ position: absolute; top: -40%; right: -5%;
947
+ width: 500px; height: 500px;
948
+ background: radial-gradient(ellipse at center, rgba(91,191,181,0.15) 0%, transparent 70%);
949
+ border-radius: 50%; pointer-events: none;
950
+ }
951
+ .cta-content { position: relative; z-index: 1; max-width: 560px; }
952
+ .cta-label {
953
+ display: inline-flex; align-items: center; gap: 8px;
954
+ font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
955
+ text-transform: uppercase; color: var(--accent-light);
956
+ border: 1px solid rgba(91,191,181,0.3);
957
+ padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
958
+ }
959
+ .cta-title {
960
+ font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
961
+ letter-spacing: -0.03em; line-height: 1.15; color: #fff; margin-bottom: 16px;
962
+ }
963
+ .cta-title em { font-style: italic; font-family: 'Playfair Display', serif; color: var(--accent-light); }
964
+ .cta-sub { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
965
+ .cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
966
+ .btn-cta-primary {
967
+ display: flex; align-items: center; gap: 10px;
968
+ font-size: 0.9375rem; font-weight: 600; color: #fff;
969
+ background: var(--accent); padding: 16px 36px; border-radius: 100px;
970
+ white-space: nowrap;
971
+ transition: background var(--silk-dur) var(--silk), transform var(--silk-dur) var(--silk);
972
+ box-shadow: 0 8px 32px rgba(26,122,110,0.40);
973
+ }
974
+ .btn-cta-primary:hover { background: var(--accent-mid); transform: scale(1.02); }
975
+ .btn-cta-ghost {
976
+ display: flex; align-items: center; justify-content: center; gap: 8px;
977
+ font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.6);
978
+ padding: 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.1);
979
+ white-space: nowrap;
980
+ transition: color 0.3s, border-color 0.3s;
981
+ }
982
+ .btn-cta-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
983
+
984
+ /* ══════════════════════════════════════════
985
+ 12. FOOTER
986
+ ══════════════════════════════════════════ */
987
+ .footer {
988
+ background: var(--text-1); padding: 80px 0 40px;
989
+ border-top: 1px solid rgba(255,255,255,0.06);
990
+ }
991
+ .footer-grid {
992
+ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
993
+ gap: 48px; margin-bottom: 64px;
994
+ }
995
+ .footer-brand .nav-logo { color: #fff; font-size: 1.3rem; margin-bottom: 16px; display: block; }
996
+ .footer-brand-desc { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.45); max-width: 240px; }
997
+ .footer-socials { display: flex; gap: 10px; margin-top: 24px; }
998
+ .social-btn {
999
+ width: 36px; height: 36px; border-radius: 10px;
1000
+ border: 1px solid rgba(255,255,255,0.1);
1001
+ display: flex; align-items: center; justify-content: center;
1002
+ color: rgba(255,255,255,0.4); font-size: 14px; font-weight: 700;
1003
+ transition: all 0.4s var(--silk);
1004
+ }
1005
+ .social-btn:hover { border-color: var(--accent-light); color: var(--accent-light); }
1006
+ .footer-col-label {
1007
+ font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
1008
+ text-transform: uppercase; color: rgba(255,255,255,0.25);
1009
+ margin-bottom: 20px;
1010
+ }
1011
+ .footer-links { display: flex; flex-direction: column; gap: 12px; }
1012
+ .footer-links a {
1013
+ font-size: 0.875rem; color: rgba(255,255,255,0.5);
1014
+ transition: color 0.3s;
1015
+ }
1016
+ .footer-links a:hover { color: var(--accent-light); }
1017
+ .footer-bottom {
1018
+ border-top: 1px solid rgba(255,255,255,0.06);
1019
+ padding-top: 32px;
1020
+ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
1021
+ }
1022
+ .footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }
1023
+ .footer-copy a { color: rgba(255,255,255,0.45); transition: color 0.3s; }
1024
+ .footer-copy a:hover { color: var(--accent-light); }
1025
+ .footer-legal { display: flex; gap: 24px; }
1026
+ .footer-legal a { font-size: 0.8125rem; color: rgba(255,255,255,0.3); transition: color 0.3s; }
1027
+ .footer-legal a:hover { color: rgba(255,255,255,0.6); }
1028
+
1029
+ /* ══════════════════════════════════════════
1030
+ RESPONSIVE
1031
+ ══════════════════════════════════════════ */
1032
+ @media (max-width: 1024px) {
1033
+ .hero-inner { grid-template-columns: 1fr; gap: 56px; }
1034
+ .hero-visual { max-width: 520px; margin: 0 auto; }
1035
+ .feature-row { grid-template-columns: 1fr; gap: 40px; }
1036
+ .feature-row.reverse { direction: ltr; }
1037
+ .stats-grid { grid-template-columns: repeat(2, 1fr); }
1038
+ .stat-card { border-right: none; border-bottom: 1px solid var(--border); }
1039
+ .stat-card:last-child { border-bottom: none; }
1040
+ .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
1041
+
1042
+ .footer-grid { grid-template-columns: 1fr 1fr; }
1043
+ .cta-inner { flex-direction: column; padding: 56px 40px; }
1044
+ .faq-inner { grid-template-columns: 1fr; }
1045
+ .faq-sidebar { position: static; }
1046
+ }
1047
+ @media (max-width: 768px) {
1048
+ .carousel-zoom { padding: 30px 0 0; }
1049
+ .container { padding: 0 20px; }
1050
+ .nav-links, .nav-cta { display: none; }
1051
+ .nav-hamburger { display: flex; }
1052
+ .testimonials-grid { grid-template-columns: 1fr; }
1053
+ .testimonial-card.tall { grid-row: auto; }
1054
+ .footer-grid { grid-template-columns: 1fr; }
1055
+ .cta-inner { padding: 40px 24px; }
1056
+ .pricing-grid { max-width: 100%; }
1057
+ .stats-grid { grid-template-columns: repeat(2, 1fr); }
1058
+ .hero-float-badge-2 { right: 0; }
1059
+ /* Carousel mobile */
1060
+ .carousel-stage { height: 400px; }
1061
+ :root {
1062
+ --pw: 150px;
1063
+ --gap1: 168px;
1064
+ --gap2: 300px;
1065
+ --gap-hide: 430px;
1066
+ }
1067
+ .phone-card[data-pos="left2"],
1068
+ .phone-card[data-pos="right2"] { opacity: 0.35; }
1069
+ }
1070
+ @media (max-width: 480px) {
1071
+
1072
+ .stats-grid { grid-template-columns: 1fr 1fr; }
1073
+ .hero-trust { gap: 12px; }
1074
+ .trust-divider { display: none; }
1075
+ }
templatemo_622_clearwave/templatemo-622-clearwave.js ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ TemplateMo 622 Clearwave
3
+ https://templatemo.com/tm-622-clearwave
4
+ Free for personal and commercial use
5
+ */
6
+
7
+ /* ── Smooth Scroll (JS-driven, overrides CSS) ── */
8
+ document.querySelectorAll('a[href^="#"]').forEach(link => {
9
+ link.addEventListener('click', e => {
10
+ const href = link.getAttribute('href');
11
+ if (href === '#') {
12
+ e.preventDefault();
13
+ window.scrollTo({ top: 0, behavior: 'smooth' });
14
+ } else {
15
+ const target = document.querySelector(href);
16
+ if (target) {
17
+ e.preventDefault();
18
+ target.scrollIntoView({ behavior: 'smooth' });
19
+ }
20
+ }
21
+ });
22
+ });
23
+
24
+ /* ── NAV SCROLL ── */
25
+ const nav = document.getElementById('mainNav');
26
+ window.addEventListener('scroll', () => {
27
+ nav.classList.toggle('scrolled', window.scrollY > 40);
28
+ }, { passive: true });
29
+
30
+ /* ── MOBILE MENU ── */
31
+ const hamburger = document.getElementById('hamburger');
32
+ const mobileMenu = document.getElementById('mobileMenu');
33
+
34
+ function openMobileMenu() {
35
+ hamburger.classList.add('open');
36
+ mobileMenu.classList.add('open');
37
+ hamburger.setAttribute('aria-expanded', 'true');
38
+ document.body.style.overflow = 'hidden';
39
+ }
40
+ function closeMobileMenu() {
41
+ hamburger.classList.remove('open');
42
+ mobileMenu.classList.remove('open');
43
+ hamburger.setAttribute('aria-expanded', 'false');
44
+ document.body.style.overflow = '';
45
+ }
46
+ hamburger.addEventListener('click', () => {
47
+ mobileMenu.classList.contains('open') ? closeMobileMenu() : openMobileMenu();
48
+ });
49
+ document.addEventListener('keydown', e => { if (e.key === 'Escape') closeMobileMenu(); });
50
+ // Close menu when a link is clicked β€” smooth scroll handled by global handler above
51
+ mobileMenu.querySelectorAll('a').forEach(link => {
52
+ link.addEventListener('click', () => closeMobileMenu());
53
+ });
54
+
55
+ /* ── SCROLL REVEAL ── */
56
+ const revealEls = document.querySelectorAll('.reveal');
57
+ const revealObserver = new IntersectionObserver((entries) => {
58
+ entries.forEach(entry => {
59
+ if (entry.isIntersecting) {
60
+ entry.target.classList.add('visible');
61
+ revealObserver.unobserve(entry.target);
62
+ }
63
+ });
64
+ }, { threshold: 0.12, rootMargin: '0px 0px -40px 0px' });
65
+ revealEls.forEach(el => revealObserver.observe(el));
66
+
67
+ /* ── STAT COUNTERS ── */
68
+ function animateCounter(el) {
69
+ const target = parseFloat(el.dataset.target);
70
+ const decimal = el.dataset.decimal;
71
+ const duration = 1800;
72
+ const start = performance.now();
73
+ function step(now) {
74
+ const elapsed = now - start;
75
+ const progress = Math.min(elapsed / duration, 1);
76
+ const eased = 1 - Math.pow(1 - progress, 4);
77
+ const val = eased * target;
78
+ el.textContent = decimal ? val.toFixed(1) : Math.floor(val);
79
+ if (progress < 1) requestAnimationFrame(step);
80
+ else el.textContent = decimal ? target.toFixed(1) : target;
81
+ }
82
+ requestAnimationFrame(step);
83
+ }
84
+ const statObserver = new IntersectionObserver((entries) => {
85
+ entries.forEach(entry => {
86
+ if (entry.isIntersecting) {
87
+ entry.target.querySelectorAll('.stat-num').forEach(animateCounter);
88
+ statObserver.unobserve(entry.target);
89
+ }
90
+ });
91
+ }, { threshold: 0.4 });
92
+ document.querySelectorAll('.stats-grid').forEach(el => statObserver.observe(el));
93
+
94
+ /* ── 3D CAROUSEL ── */
95
+ const cards = Array.from(document.querySelectorAll('.phone-card'));
96
+ const totalCards = cards.length;
97
+ let currentCenter = 2;
98
+ let autoTimer = null;
99
+ let isAnimating = false;
100
+
101
+ // Zoom steps
102
+ const zoomSteps = [
103
+ { pw: 160, g1: 178, g2: 316, gh: 450, sh: 420 },
104
+ { pw: 200, g1: 222, g2: 395, gh: 560, sh: 520 },
105
+ { pw: 240, g1: 266, g2: 474, gh: 670, sh: 620 },
106
+ { pw: 280, g1: 310, g2: 553, gh: 780, sh: 720 },
107
+ { pw: 320, g1: 354, g2: 632, gh: 890, sh: 820 },
108
+ ];
109
+ let zoomLevel = 2;
110
+
111
+ // Per-position config: [translateX multiplier, rotateY, scale, opacity]
112
+ const posConfig = {
113
+ 'center': [ 0, 0, 1, 1 ],
114
+ 'left1': [ -1, 28, 0.82, 1 ],
115
+ 'right1': [ 1, -28, 0.82, 1 ],
116
+ 'left2': [ -1, 45, 0.64, 0.55],
117
+ 'right2': [ 1, -45, 0.64, 0.55],
118
+ 'hidden-left': [ -1, 60, 0.48, 0 ],
119
+ 'hidden-right': [ 1, -60, 0.48, 0 ],
120
+ };
121
+ const posGap = {
122
+ 'center': 0, 'left1': 'g1', 'right1': 'g1',
123
+ 'left2': 'g2', 'right2': 'g2',
124
+ 'hidden-left': 'gh', 'hidden-right': 'gh',
125
+ };
126
+
127
+ // Single function: apply width + transform + opacity to all cards atomically
128
+ function applyCardStyles(suppressTransition) {
129
+ const s = zoomSteps[zoomLevel];
130
+ cards.forEach(card => {
131
+ const pos = card.dataset.pos;
132
+ const cfg = posConfig[pos];
133
+ if (!cfg) return;
134
+ const gapKey = posGap[pos];
135
+ const tx = cfg[0] * (gapKey ? s[gapKey] : 0);
136
+ const shell = card.querySelector('.phone-shell');
137
+
138
+ if (suppressTransition) {
139
+ card.style.transition = 'none';
140
+ if (shell) shell.style.transition = 'none';
141
+ }
142
+
143
+ card.style.width = s.pw + 'px';
144
+ card.style.transform = `translateX(${tx}px) rotateY(${cfg[1]}deg) scale(${cfg[2]})`;
145
+ card.style.opacity = cfg[3];
146
+ if (shell) {
147
+ shell.style.width = s.pw + 'px';
148
+ // Update center shadow via JS too
149
+ if (pos === 'center') {
150
+ shell.style.boxShadow = '0 0 0 1px rgba(150,175,170,0.6), 0 40px 80px rgba(13,30,28,0.22), 0 0 48px rgba(26,122,110,0.12), inset 0 1px 0 rgba(255,255,255,0.6)';
151
+ } else {
152
+ shell.style.boxShadow = '';
153
+ }
154
+ }
155
+
156
+ if (suppressTransition) {
157
+ // Re-enable transitions next frame
158
+ requestAnimationFrame(() => {
159
+ card.style.transition = '';
160
+ if (shell) shell.style.transition = '';
161
+ });
162
+ }
163
+ });
164
+ carouselStageEl.style.height = s.sh + 'px';
165
+ }
166
+
167
+ function getPositionForOffset(cardIndex, centerIndex, total) {
168
+ let offset = cardIndex - centerIndex;
169
+ // On narrow screens we want a single centered card β€” hide others
170
+ if (window.matchMedia && window.matchMedia('(max-width:600px)').matches) {
171
+ if (offset === 0) return 'center';
172
+ return offset < 0 ? 'hidden-left' : 'hidden-right';
173
+ }
174
+ while (offset > Math.floor(total / 2)) offset -= total;
175
+ while (offset < -Math.floor(total / 2)) offset += total;
176
+ const posMap = { '-2': 'left2', '-1': 'left1', '0': 'center', '1': 'right1', '2': 'right2' };
177
+ return posMap[String(offset)] || (offset < 0 ? 'hidden-left' : 'hidden-right');
178
+ }
179
+
180
+ function updatePositions() {
181
+ cards.forEach((card, i) => {
182
+ card.dataset.pos = getPositionForOffset(i, currentCenter, totalCards);
183
+ });
184
+ document.querySelectorAll('.carousel-dot').forEach((dot, i) => {
185
+ dot.classList.toggle('active', i === currentCenter);
186
+ });
187
+ applyCardStyles(false); // allow transitions for sliding
188
+ }
189
+
190
+ function goTo(index) {
191
+ if (isAnimating) return;
192
+ isAnimating = true;
193
+ currentCenter = ((index % totalCards) + totalCards) % totalCards;
194
+ updatePositions();
195
+ setTimeout(() => { isAnimating = false; }, 700);
196
+ }
197
+
198
+ function next() { goTo((currentCenter + 1) % totalCards); }
199
+ function prev() { goTo((currentCenter - 1 + totalCards) % totalCards); }
200
+
201
+ // Build dots
202
+ const dotsContainer = document.getElementById('carouselDots');
203
+ cards.forEach((_, i) => {
204
+ const dot = document.createElement('div');
205
+ dot.className = 'carousel-dot' + (i === currentCenter ? ' active' : '');
206
+ dot.addEventListener('click', () => goTo(i));
207
+ dotsContainer.appendChild(dot);
208
+ });
209
+
210
+ document.getElementById('carouselNext').addEventListener('click', () => { next(); resetAuto(); });
211
+ document.getElementById('carouselPrev').addEventListener('click', () => { prev(); resetAuto(); });
212
+
213
+ cards.forEach((card, i) => {
214
+ card.addEventListener('click', () => {
215
+ if (card.dataset.pos !== 'center') { goTo(i); resetAuto(); }
216
+ });
217
+ });
218
+
219
+ function startAuto() { autoTimer = setInterval(next, 3500); }
220
+ function stopAuto() { clearInterval(autoTimer); }
221
+ function resetAuto() { stopAuto(); startAuto(); }
222
+
223
+ const stage = document.getElementById('carouselStage');
224
+ stage.addEventListener('mouseenter', stopAuto);
225
+ stage.addEventListener('mouseleave', startAuto);
226
+
227
+ let touchStartX = 0;
228
+ stage.addEventListener('touchstart', e => { touchStartX = e.touches[0].clientX; }, { passive: true });
229
+ stage.addEventListener('touchend', e => {
230
+ const diff = touchStartX - e.changedTouches[0].clientX;
231
+ if (Math.abs(diff) > 40) { diff > 0 ? next() : prev(); resetAuto(); }
232
+ });
233
+
234
+ /* ── CAROUSEL ZOOM ── */
235
+ const zoomPipsEl = document.getElementById('zoomPips');
236
+ const zoomInBtn = document.getElementById('zoomIn');
237
+ const zoomOutBtn = document.getElementById('zoomOut');
238
+ const carouselStageEl = document.getElementById('carouselStage');
239
+
240
+ zoomSteps.forEach((_, i) => {
241
+ const pip = document.createElement('div');
242
+ pip.className = 'zoom-pip' + (i === zoomLevel ? ' active' : '');
243
+ pip.addEventListener('click', () => setZoom(i));
244
+ zoomPipsEl.appendChild(pip);
245
+ });
246
+
247
+ function setZoom(level) {
248
+ zoomLevel = Math.max(0, Math.min(zoomSteps.length - 1, level));
249
+ applyCardStyles(true); // suppress transition so width snaps, then transform animates
250
+ zoomPipsEl.querySelectorAll('.zoom-pip').forEach((p, i) => {
251
+ p.classList.toggle('active', i === zoomLevel);
252
+ });
253
+ zoomOutBtn.disabled = zoomLevel === 0;
254
+ zoomInBtn.disabled = zoomLevel === zoomSteps.length - 1;
255
+ }
256
+
257
+ zoomInBtn.addEventListener('click', () => setZoom(zoomLevel + 1));
258
+ zoomOutBtn.addEventListener('click', () => setZoom(zoomLevel - 1));
259
+
260
+ // Init
261
+ updatePositions();
262
+ setZoom(zoomLevel);
263
+ startAuto();
264
+
265
+ // Keep carousel responsive: recalc positions on resize
266
+ window.addEventListener('resize', () => {
267
+ // reduce zoom on small screens for better fit
268
+ if (window.matchMedia && window.matchMedia('(max-width:600px)').matches) {
269
+ zoomLevel = Math.min(1, zoomLevel);
270
+ }
271
+ updatePositions();
272
+ setZoom(zoomLevel);
273
+ });
274
+
275
+ /* ── PRICING TOGGLE ── */
276
+ const prices = { starter: [20, 13], pro: [60, 39], ent: [150, 98] };
277
+ const annualTotals = { starter: 156, pro: 468, ent: 1176 };
278
+ let isAnnual = false;
279
+ const pricingToggle = document.getElementById('pricingToggle');
280
+ const monthlyLabel = document.getElementById('monthlyLabel');
281
+ const annualLabel = document.getElementById('annualLabel');
282
+
283
+ function updatePricing() {
284
+ const idx = isAnnual ? 1 : 0;
285
+ document.getElementById('price-starter').textContent = prices.starter[idx];
286
+ document.getElementById('price-pro').textContent = prices.pro[idx];
287
+ document.getElementById('price-ent').textContent = prices.ent[idx];
288
+ document.getElementById('annual-note-starter').textContent = isAnnual ? `$${annualTotals.starter} billed annually` : '\u00a0';
289
+ document.getElementById('annual-note-pro').textContent = isAnnual ? `$${annualTotals.pro} billed annually` : '\u00a0';
290
+ document.getElementById('annual-note-ent').textContent = isAnnual ? `$${annualTotals.ent} billed annually` : '\u00a0';
291
+ monthlyLabel.classList.toggle('active', !isAnnual);
292
+ annualLabel.classList.toggle('active', isAnnual);
293
+ pricingToggle.classList.toggle('annual', isAnnual);
294
+ pricingToggle.setAttribute('aria-checked', isAnnual);
295
+ }
296
+
297
+ pricingToggle.addEventListener('click', () => { isAnnual = !isAnnual; updatePricing(); });
298
+ pricingToggle.addEventListener('keydown', e => {
299
+ if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); isAnnual = !isAnnual; updatePricing(); }
300
+ });
301
+
302
+ /* ── FAQ ACCORDION ── */
303
+ const faqItems = document.querySelectorAll('.faq-item');
304
+ let allOpen = false;
305
+
306
+ faqItems.forEach(item => {
307
+ const question = item.querySelector('.faq-question');
308
+ question.addEventListener('click', () => toggleFaq(item));
309
+ question.addEventListener('keydown', e => {
310
+ if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); toggleFaq(item); }
311
+ });
312
+ });
313
+
314
+ function toggleFaq(item) {
315
+ const isOpen = item.classList.contains('open');
316
+ item.classList.toggle('open', !isOpen);
317
+ item.querySelector('.faq-question').setAttribute('aria-expanded', !isOpen);
318
+ }
319
+
320
+ const faqToggleAllBtn = document.getElementById('faqToggleAll');
321
+ const faqToggleIcon = document.getElementById('faqToggleIcon');
322
+ faqToggleAllBtn.addEventListener('click', () => {
323
+ allOpen = !allOpen;
324
+ faqItems.forEach(item => {
325
+ item.classList.toggle('open', allOpen);
326
+ item.querySelector('.faq-question').setAttribute('aria-expanded', String(allOpen));
327
+ });
328
+ faqToggleIcon.textContent = allOpen ? 'βˆ’' : '+';
329
+ faqToggleAllBtn.lastChild.textContent = allOpen ? ' Collapse all' : ' Expand all';
330
+ });
templatemo_622_clearwave/timer.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <!DOCTYPE html><html><head><!-- Timer page - powered by TimerMo.com --><meta http-equiv="refresh" content="0;url=https://www.timermo.com"><title>Timer</title></head><body></body></html>