-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.py
More file actions
565 lines (508 loc) · 26.2 KB
/
Copy pathbuild.py
File metadata and controls
565 lines (508 loc) · 26.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
#!/usr/bin/env python3
"""
Generates Ledgerline: a payments-infrastructure homepage and a pricing page.
The plans are declared once in PLANS and rendered into the comparison table, the
calculator cards and the JSON the script reads — so a price change is one edit
and the page cannot end up quoting two different numbers for the same plan.
"""
import json
import pathlib
ROOT = pathlib.Path(__file__).parent
# key, name, monthly base (£), percent per payment, fixed per payment (£), blurb
PLANS = [
("starter", "Starter", 0, 0.014, 0.20,
"Everything working, nothing to sign. Card payments, payouts and the ledger API from your first request."),
("growth", "Growth", 39, 0.011, 0.15,
"For businesses past the experiment stage: multi-currency, saved cards, and a real settlement schedule."),
("scale", "Scale", 299, 0.0075, 0.10,
"Interchange-adjusted rates, dedicated infrastructure, and a named engineer who answers in your Slack."),
]
FEATURES = [
("Card payments", ("✓", "✓", "✓")),
("Payouts & transfers", ("✓", "✓", "✓")),
("Double-entry ledger API", ("✓", "✓", "✓")),
("Settlement", ("Weekly", "Daily", "Same day")),
("Currencies", ("GBP", "GBP, EUR, USD", "38 currencies")),
("Saved cards & subscriptions", ("—", "✓", "✓")),
("Sandbox environments", ("1", "5", "Unlimited")),
("Chargeback handling", ("Self-serve", "Assisted", "Managed")),
("Support", ("Email, 2 days", "Email, 4 hours", "Shared Slack, 30 min")),
("Uptime SLA", ("—", "99.9%", "99.99%")),
]
FAQ = [
("Is the percentage taken before or after the fixed fee?",
"Neither — they are added together. A £40 payment on Growth costs 1.1% (44p) plus 15p, so 59p in total. The calculator above does exactly this arithmetic and shows you the effective rate it works out to."),
("What happens on a refund?",
"You get the percentage back and we keep the fixed fee. That is the part the card networks charge us whether the payment stands or not, and pretending otherwise would just mean pricing it in elsewhere."),
("Are there setup fees, minimums or exit fees?",
"No, none, and no. Cancelling is a button, your data exports as CSV and JSON, and we do not hold settlement back as leverage."),
("What does a chargeback cost?",
"£12 per case on Starter and Growth, waived on Scale. If you win the dispute you get the £12 back."),
("Do unused payments roll over?",
"There is nothing to roll over — you are not buying a bundle. The monthly base is for the platform and every payment is priced individually."),
("Can I change plan mid-month?",
"Yes, and the base fee is prorated to the day. Moving down takes effect immediately rather than at renewal, because a plan you have outgrown downwards should stop costing you straight away."),
]
def money(x):
return f"£{x:,.0f}" if float(x).is_integer() else f"£{x:,.2f}"
HEAD = """<!doctype html>
<html lang="en" data-bs-theme="light">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{title}</title>
<meta name="description" content="{desc}">
<link rel="stylesheet" href="assets/vendor/bootstrap6/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/base.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
"""
TOGGLE = """<button class="btn-icon" type="button" id="themeToggle" aria-label="Toggle color mode">
<svg class="theme-icon-light" width="18" height="18" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" aria-hidden="true"><circle cx="8" cy="8" r="3.25"/><path d="M8 1v1.5M8 13.5V15M15 8h-1.5M2.5 8H1m11-4-1 1M5 11l-1 1m0-8 1 1m6 6 1 1"/></svg>
<svg class="theme-icon-dark" width="18" height="18" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M6 .278a.77.77 0 0 1 .08.858 7.2 7.2 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277q.792-.001 1.533-.16a.79.79 0 0 1 .81.316.73.73 0 0 1-.031.893A8.35 8.35 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.75.75 0 0 1 6 .278"/></svg>
</button>"""
MARK = """<svg class="brand-glyph" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true">
<rect x="1.25" y="1.25" width="21.5" height="21.5" rx="6.5" stroke="currentColor" stroke-width="1.5"/>
<path d="M7 16.5V7.5M7 16.5h5.5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/>
<path d="M17 7.5v9M14 11h6" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" opacity=".5"/>
</svg>"""
def chrome(home=True):
p = "" if home else "index.html"
return f"""
<a class="visually-hidden-focusable btn-solid theme-primary m-2" href="#main">Skip to main content</a>
<header class="site-header">
<nav class="navbar lg:navbar-expand" aria-label="Main">
<div class="container">
<a class="wordmark" href="index.html">{MARK}<span>Ledgerline</span></a>
<dialog class="drawer drawer-end" tabindex="-1" id="navDrawer" aria-labelledby="navDrawerLabel">
<div class="drawer-header">
<h5 class="drawer-title" id="navDrawerLabel">Menu</h5>
<button type="button" class="btn-close" data-bs-dismiss="drawer" aria-label="Close"></button>
</div>
<div class="drawer-body mb-2 lg:mb-0">
<ul class="nav navbar-nav ms-auto lg:gap-4">
<li class="nav-item"><a class="nav-link" href="{p}#product">Product</a></li>
<li class="nav-item"><a class="nav-link" href="{p}#developers">Developers</a></li>
<li class="nav-item"><a class="nav-link" href="pricing.html">Pricing</a></li>
<li class="nav-item"><a class="nav-link" href="{p}#security">Security</a></li>
</ul>
</div>
</dialog>
<div class="d-flex align-items-center gap-2 ms-auto">
{TOGGLE}
<a class="btn-text theme-secondary sign-in" href="#developers">Sign in</a>
<a class="btn-solid theme-primary" href="pricing.html">Start building</a>
<button class="btn-icon navbar-toggler" type="button" data-bs-toggle="drawer" data-bs-target="#navDrawer" aria-controls="navDrawer" aria-label="Open navigation">
<span class="navbar-toggler-icon" aria-hidden="true"></span>
</button>
</div>
</div>
</nav>
</header>
"""
FOOTER = """
<footer class="site-footer section pb-5">
<div class="container">
<div class="row g-5">
<div class="lg:col-4">
<p class="wordmark mb-3">""" + MARK + """<span>Ledgerline</span></p>
<p class="fg-2 fs-sm mb-0" style="max-width:22rem">
Payments, payouts and a double-entry ledger behind one API. Priced so
you can work out the bill yourself.
</p>
</div>
<div class="md:col-4 lg:col-2">
<p class="eyebrow fs-xs fg-3 mb-3">Product</p>
<ul class="link-list"><li><a href="index.html#product">Payments</a></li><li><a href="index.html#product">Payouts</a></li><li><a href="index.html#product">Ledger API</a></li><li><a href="pricing.html">Pricing</a></li></ul>
</div>
<div class="md:col-4 lg:col-2">
<p class="eyebrow fs-xs fg-3 mb-3">Developers</p>
<ul class="link-list"><li><a href="index.html#developers">Quickstart</a></li><li><a href="index.html#developers">API reference</a></li><li><a href="index.html#developers">Status</a></li><li><a href="index.html#security">Security</a></li></ul>
</div>
<div class="md:col-4 lg:col-4">
<p class="eyebrow fs-xs fg-3 mb-3">Regulatory</p>
<p class="fg-2 fs-sm mb-0">
Ledgerline is a fictional company in a free website template. Nothing
here is a real financial product, a real rate, or regulated by anyone.
</p>
</div>
</div>
<hr class="my-5">
<p class="fs-xs fg-3 mb-0">© <span data-year>2026</span> Ledgerline — a free Bootstrap 6 template.</p>
</div>
</footer>
<script type="module" src="assets/js/main.js"></script>
</body>
</html>
"""
def plans_json():
return json.dumps([
{"key": k, "name": n, "base": b, "pct": p, "fixed": f}
for k, n, b, p, f, _ in PLANS
], separators=(",", ":"))
def calculator(compact=False):
"""The centrepiece. Cards are rendered empty and filled by the script, so the
numbers can only ever come from one place."""
cards = "\n".join(f""" <article class="plan" data-plan="{k}">
<div class="plan-flag" data-best hidden>Cheapest for you</div>
<h3 class="plan-name">{n}</h3>
<p class="plan-rate mb-3">{money(b)}/mo · {p * 100:.4g}% + {int(f * 100)}p</p>
<p class="plan-total mb-1"><span data-total>—</span><small>/month</small></p>
<p class="plan-eff fg-3 fs-sm mb-4">Effective rate <span data-eff>—</span></p>
<p class="fg-2 fs-sm mb-4">{blurb}</p>
<a class="btn-outline theme-secondary plan-cta" href="#start">Choose {n}</a>
</article>""" for k, n, b, p, f, blurb in PLANS)
return f"""
<div class="calc" data-calc data-plans='{plans_json()}'>
<div class="calc-controls">
<div class="calc-field">
<label class="form-label" for="calcCount">Payments a month</label>
<output class="calc-out" id="calcCountOut" for="calcCount">1,000</output>
<div class="form-range">
<input type="range" class="form-range-input" id="calcCount" min="50" max="20000" step="50" value="1000">
</div>
</div>
<div class="calc-field">
<label class="form-label" for="calcAvg">Average payment</label>
<output class="calc-out" id="calcAvgOut" for="calcAvg">£40</output>
<div class="form-range">
<input type="range" class="form-range-input" id="calcAvg" min="3" max="500" step="1" value="40">
</div>
</div>
<p class="calc-volume mb-0">Processing <strong data-volume>£40,000</strong> a month</p>
</div>
<div class="plan-grid">
{cards}
</div>
<p class="calc-note mb-0" data-crossover></p>
</div>"""
def page_index():
return HEAD.format(
title="Ledgerline — Free Bootstrap 6 Fintech & SaaS Website Template",
desc="Ledgerline is a free Bootstrap 6 fintech template with a pricing calculator that works out which plan is actually cheapest for your volume, and names the crossover point.",
) + chrome() + f"""
<section class="hero">
<div class="container">
<div class="row g-6 align-items-center">
<div class="lg:col-6">
<p class="pill mb-4"><span class="pill-dot" aria-hidden="true"></span> Ledger API v3 is out of beta</p>
<h1 class="hero-title fs-5xl mb-4">Payments infrastructure that shows its working.</h1>
<p class="hero-lede fs-lg fg-2 mb-5">
Card payments, payouts and a proper double-entry ledger behind one API.
Our pricing page does the arithmetic for you and will happily tell you
the free plan is the right one.
</p>
<div class="d-flex flex-wrap gap-3 mb-5">
<a class="btn-solid theme-primary btn-lg" href="pricing.html">Work out your cost</a>
<a class="btn-outline theme-secondary btn-lg" href="#developers">Read the docs</a>
</div>
<p class="fs-sm fg-3 mb-0">No card to start. Live keys the same day you pass checks.</p>
</div>
<div class="lg:col-6">
<!-- Product shot, built rather than photographed, so it stays sharp and
weighs nothing. -->
<div class="feed" aria-hidden="true">
<div class="feed-head">
<span class="feed-dot"></span>
<p class="mb-0">Live payments</p>
<span class="feed-tag">GBP</span>
</div>
<div class="feed-row"><span class="feed-id">pay_8Kd2…19f</span><span class="feed-amt">£128.00</span><span class="feed-state ok">settled</span></div>
<div class="feed-row"><span class="feed-id">pay_7Xc1…c02</span><span class="feed-amt">£24.99</span><span class="feed-state ok">settled</span></div>
<div class="feed-row"><span class="feed-id">pay_7Wb9…4ae</span><span class="feed-amt">£1,940.00</span><span class="feed-state pend">authorised</span></div>
<div class="feed-row"><span class="feed-id">pay_7Va4…d71</span><span class="feed-amt">£62.50</span><span class="feed-state ok">settled</span></div>
<div class="feed-row"><span class="feed-id">pay_7Ub0…8c3</span><span class="feed-amt">£8.00</span><span class="feed-state fail">declined</span></div>
<div class="feed-foot">
<div><p class="feed-k mb-0">Today</p><p class="feed-v mb-0">£41,208</p></div>
<div><p class="feed-k mb-0">Fees</p><p class="feed-v mb-0">£498.31</p></div>
<div><p class="feed-k mb-0">Net</p><p class="feed-v mb-0">£40,709.69</p></div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="logo-band">
<div class="container">
<p class="fs-xs eyebrow fg-3 mb-4">Handling money for</p>
<div class="logo-row">
<span>NORTHWIND</span><span>Palisade</span><span>KETTLE&CO</span><span>Brightsea</span><span>Ordinal</span><span>MERIDIAN LABS</span>
</div>
</div>
</div>
<main id="main">
<!-- Product -->
<section class="section" id="product">
<div class="container">
<div class="row g-5 mb-6 align-items-end">
<div class="lg:col-7">
<p class="eyebrow-rule mb-3">Product</p>
<h2 class="section-title fs-4xl mb-0">Three primitives, one balance you can reconcile</h2>
</div>
<div class="lg:col-5">
<p class="fg-2 mb-0">
Most stacks make you keep your own shadow ledger to answer "where is
the money right now". This one answers it.
</p>
</div>
</div>
<div class="row g-4">
<div class="md:col-6 lg:col-4">
<article class="surface surface-pad lift h-100">
<div class="icon-tile mb-4"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7" aria-hidden="true"><rect x="1.75" y="4.25" width="16.5" height="11.5" rx="2.5"/><path d="M1.75 8.25h16.5M5 12.5h3"/></svg></div>
<h3 class="fs-xl mb-2">Payments</h3>
<p class="fg-2 fs-sm mb-3">Cards, Apple Pay, Google Pay, direct debit and open banking through one intent object. 3-D Secure only when the risk engine asks for it.</p>
<p class="fg-3 fs-xs mb-0">Auth rate 94.1% across all merchants, last 30 days.</p>
</article>
</div>
<div class="md:col-6 lg:col-4">
<article class="surface surface-pad lift h-100">
<div class="icon-tile mb-4"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" aria-hidden="true"><path d="M3 7h14M13 3.5 16.5 7 13 10.5M17 13H3M7 9.5 3.5 13 7 16.5"/></svg></div>
<h3 class="fs-xl mb-2">Payouts</h3>
<p class="fg-2 fs-sm mb-3">Pay out to sellers, contractors or your own accounts on a schedule you set. Failed payouts come back with the bank's actual reason, not a generic code.</p>
<p class="fg-3 fs-xs mb-0">Faster Payments in seconds, SEPA and SWIFT where it has to be.</p>
</article>
</div>
<div class="md:col-6 lg:col-4">
<article class="surface surface-pad lift h-100">
<div class="icon-tile mb-4"><svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" aria-hidden="true"><path d="M10 2.5v15M4.5 6 2 11.5h5L4.5 6ZM15.5 6 13 11.5h5L15.5 6ZM5.5 4.5h9"/></svg></div>
<h3 class="fs-xl mb-2">Ledger API</h3>
<p class="fg-2 fs-sm mb-3">Real double-entry accounts with immutable postings. Every movement has two sides and the whole thing balances or the write is rejected.</p>
<p class="fg-3 fs-xs mb-0">Idempotency keys on every endpoint, held for 24 hours.</p>
</article>
</div>
</div>
</div>
</section>
<!-- Developers -->
<section class="section bg-2" id="developers">
<div class="container">
<div class="row g-6 align-items-center">
<div class="lg:col-5">
<p class="eyebrow-rule mb-3">Developers</p>
<h2 class="section-title fs-4xl mb-4">One request to take a payment</h2>
<p class="fg-2 mb-4">
No SDK required and no six-step handshake. Post an intent, get a
client secret, confirm it. The ledger postings are created for you
and appear in the same response.
</p>
<ul class="tick-list mb-5">
<li>Idempotent by default — retries cannot double-charge</li>
<li>Webhooks signed with a rotating secret, replayable for 30 days</li>
<li>Test and live keys differ by one character, so mistakes are loud</li>
</ul>
<a class="btn-outline theme-secondary" href="#start">Full API reference</a>
</div>
<div class="lg:col-7">
<div class="code">
<div class="code-head">
<span class="code-file">create-payment.sh</span>
<span class="code-badge">POST /v3/payments</span>
</div>
<pre class="code-body"><code><span class="c-fn">curl</span> https://api.ledgerline.dev/v3/payments \\
-H <span class="c-str">"Authorization: Bearer sk_live_…"</span> \\
-H <span class="c-str">"Idempotency-Key: ord_10482"</span> \\
-d amount=<span class="c-num">12800</span> \\
-d currency=<span class="c-str">gbp</span> \\
-d ledger_account=<span class="c-str">acct_seller_4471</span>
<span class="c-com">{{</span>
<span class="c-com"> "id": "pay_8Kd2h19f",</span>
<span class="c-com"> "status": "requires_confirmation",</span>
<span class="c-com"> "fee": 156,</span>
<span class="c-com"> "postings": [</span>
<span class="c-com"> {{ "account": "acct_seller_4471", "credit": 12644 }},</span>
<span class="c-com"> {{ "account": "acct_fees", "credit": 156 }}</span>
<span class="c-com"> ]</span>
<span class="c-com">}}</span></code></pre>
</div>
</div>
</div>
</div>
</section>
<!-- Pricing teaser -->
<section class="section" id="cost">
<div class="container">
<div class="row g-5 mb-6 align-items-end">
<div class="lg:col-7">
<p class="eyebrow-rule mb-3">Pricing</p>
<h2 class="section-title fs-4xl mb-0">Move the sliders. We'll tell you if the free plan wins.</h2>
</div>
<div class="lg:col-5">
<p class="fg-2 mb-0">
Three plans, each a monthly base plus a per-payment fee. Which one is
cheapest depends entirely on your volume and basket size, so rather
than nudge you upward the page just works it out.
</p>
</div>
</div>
{calculator()}
<p class="text-center mt-5 mb-0"><a class="btn-outline theme-secondary" href="pricing.html">Full plan comparison</a></p>
</div>
</section>
<!-- Numbers -->
<section class="section bg-2">
<div class="container">
<div class="stat-band">
<div><p class="stat-v mb-1">99.99%</p><p class="stat-k mb-0">API uptime, trailing 12 months</p></div>
<div><p class="stat-v mb-1">118 ms</p><p class="stat-k mb-0">Median authorisation latency</p></div>
<div><p class="stat-v mb-1">£4.1bn</p><p class="stat-k mb-0">Processed in 2026</p></div>
<div><p class="stat-v mb-1">38</p><p class="stat-k mb-0">Settlement currencies</p></div>
</div>
</div>
</section>
<!-- Security -->
<section class="section" id="security">
<div class="container">
<div class="row g-6 align-items-center">
<div class="lg:col-6">
<div class="ph ph-4x3 framed"><img src="img/security.jpg" alt="Engineers reviewing infrastructure" width="900" height="675" loading="lazy"></div>
</div>
<div class="lg:col-6">
<p class="eyebrow-rule mb-3">Security</p>
<h2 class="section-title fs-4xl mb-4">Boring, on purpose</h2>
<p class="fg-2 mb-4">
Card data never reaches your servers — the client collects it against
a single-use token and we hold the scope. Everything else is the
unglamorous work: least privilege, signed webhooks, and an audit log
you can actually read.
</p>
<dl class="facts">
<div><dt>PCI DSS</dt><dd>Level 1 service provider</dd></div>
<div><dt>Encryption</dt><dd>TLS 1.3 in transit, AES-256 at rest</dd></div>
<div><dt>Audit log</dt><dd>Every key use, 7-year retention</dd></div>
<div><dt>Penetration test</dt><dd>Twice yearly, summary on request</dd></div>
</dl>
</div>
</div>
</div>
</section>
<!-- Testimonials -->
<section class="section bg-2">
<div class="container">
<div class="row g-4">
<div class="lg:col-4">
<figure class="quote surface surface-pad h-100">
<blockquote class="mb-4"><p class="mb-0">We moved because the reconciliation job we ran every night stopped being necessary. That job had been someone's whole Tuesday.</p></blockquote>
<figcaption class="quote-by">
<div class="ph ph-1x1 quote-face"><img src="img/face-1.jpg" alt="" width="400" height="400" loading="lazy"></div>
<div><p class="mb-0 fw-semibold">Dilan Aksoy</p><p class="fg-3 fs-sm mb-0">CTO, Palisade</p></div>
</figcaption>
</figure>
</div>
<div class="lg:col-4">
<figure class="quote surface surface-pad h-100">
<blockquote class="mb-4"><p class="mb-0">Their pricing page told us to stay on the free plan for another eight months. I have never had a vendor do that.</p></blockquote>
<figcaption class="quote-by">
<div class="ph ph-1x1 quote-face"><img src="img/face-2.jpg" alt="" width="400" height="400" loading="lazy"></div>
<div><p class="mb-0 fw-semibold">Rae Whitcombe</p><p class="fg-3 fs-sm mb-0">Founder, Kettle & Co</p></div>
</figcaption>
</figure>
</div>
<div class="lg:col-4">
<figure class="quote surface surface-pad h-100">
<blockquote class="mb-4"><p class="mb-0">Failed payouts come back with the bank's real reason. That sounds small until you have spent a year guessing at error code 91.</p></blockquote>
<figcaption class="quote-by">
<div class="ph ph-1x1 quote-face"><img src="img/face-3.jpg" alt="" width="400" height="400" loading="lazy"></div>
<div><p class="mb-0 fw-semibold">Josephine Marr</p><p class="fg-3 fs-sm mb-0">Head of Ops, Northwind</p></div>
</figcaption>
</figure>
</div>
</div>
</div>
</section>
<!-- CTA -->
<section class="section" id="start">
<div class="container">
<div class="cta">
<h2 class="section-title fs-4xl mb-3">Take your first payment this afternoon</h2>
<p class="fg-2 fs-lg mb-5 mx-auto" style="max-width:34rem">
Test keys are instant. Live keys follow once checks clear, usually the
same day.
</p>
<div class="d-flex flex-wrap gap-3 justify-content-center">
<a class="btn-solid theme-primary btn-lg" href="pricing.html">Work out your cost</a>
<a class="btn-outline theme-secondary btn-lg" href="#developers">Talk to an engineer</a>
</div>
</div>
</div>
</section>
</main>
""" + FOOTER
def page_pricing():
heads = "".join(f'<th scope="col">{n}</th>' for _, n, _, _, _, _ in PLANS)
rows = "\n".join(
f""" <tr>
<th scope="row">{label}</th>"""
+ "".join(f'<td data-cell="{PLANS[i][1]}">{v}</td>' for i, v in enumerate(vals))
+ "\n </tr>" for label, vals in FEATURES)
faq = "\n".join(f""" <details name="fees">
<summary>{q}</summary>
<div class="faq-body"><p class="fg-2 mb-0">{a}</p></div>
</details>""" for q, a in FAQ)
return HEAD.format(
title="Pricing — Ledgerline Bootstrap 6 Fintech Template",
desc="Move two sliders and see what each plan actually costs at your volume, which is cheapest, and the exact payment count where the next plan up takes over.",
) + chrome(home=False) + f"""
<section class="page-head">
<div class="container">
<p class="eyebrow fs-xs mb-3"><a href="index.html">Ledgerline</a> · Pricing</p>
<h1 class="hero-title fs-5xl mb-4">Work out what you'd pay.</h1>
<p class="hero-lede fs-lg fg-2 mb-0">
Every plan is a monthly base plus a fee on each payment, so the cheapest
one depends on your volume and your average basket. Set both below.
</p>
</div>
</section>
<main id="main">
<section class="section">
<div class="container">
{calculator()}
</div>
</section>
<section class="section bg-2">
<div class="container">
<div class="row g-5 mb-6 align-items-end">
<div class="lg:col-7">
<p class="eyebrow-rule mb-3">Comparison</p>
<h2 class="section-title fs-4xl mb-0">What you get, line by line</h2>
</div>
<div class="lg:col-5">
<p class="fg-2 mb-0">No asterisks, and nothing that turns out to be an add-on once you are live.</p>
</div>
</div>
<div class="table-responsive">
<table class="table md:table-stacked align-middle plan-table">
<thead><tr><th scope="col">Feature</th>{heads}</tr></thead>
<tbody>
{rows}
</tbody>
</table>
</div>
</div>
</section>
<section class="section">
<div class="container">
<div class="row g-6">
<div class="lg:col-5">
<p class="eyebrow-rule mb-3">Fees, plainly</p>
<h2 class="section-title fs-4xl mb-4">The questions that decide the bill</h2>
<p class="fg-2 mb-0">
If something here is still unclear, that is our fault — write to
<a href="mailto:pricing@ledgerline.dev">pricing@ledgerline.dev</a> and
we will fix the wording.
</p>
</div>
<div class="lg:col-7">
<div class="faq">
{faq}
</div>
</div>
</div>
</div>
</section>
</main>
""" + FOOTER
(ROOT / "index.html").write_text(page_index(), encoding="utf-8")
(ROOT / "pricing.html").write_text(page_pricing(), encoding="utf-8")
print("wrote index.html, pricing.html")