diff --git a/apps/web/app/page.tsx b/apps/web/app/(app)/app/page.tsx
similarity index 83%
rename from apps/web/app/page.tsx
rename to apps/web/app/(app)/app/page.tsx
index 608e1b1..aadd723 100644
--- a/apps/web/app/page.tsx
+++ b/apps/web/app/(app)/app/page.tsx
@@ -1,4 +1,4 @@
-import { OrgDirectory } from '../components/org-directory';
+import { OrgDirectory } from '@/components/org-directory';
/**
* Landing page: the organization directory. Charter is org-centric — the first
diff --git a/apps/web/app/layout.tsx b/apps/web/app/(app)/layout.tsx
similarity index 84%
rename from apps/web/app/layout.tsx
rename to apps/web/app/(app)/layout.tsx
index caca1c5..8c86e4a 100644
--- a/apps/web/app/layout.tsx
+++ b/apps/web/app/(app)/layout.tsx
@@ -2,9 +2,9 @@ import type { Metadata } from 'next';
import { Inter, JetBrains_Mono } from 'next/font/google';
import type { ReactNode } from 'react';
-import { SiteHeader } from '../components/site-header';
-import { Providers } from '../components/providers';
-import './globals.css';
+import { SiteHeader } from '@/components/site-header';
+import { Providers } from '@/components/providers';
+import '../globals.css';
// One sans family, one mono. The mono carries addresses, hashes, and amounts —
// anything where character alignment aids scanning; the sans carries everything
@@ -27,7 +27,7 @@ export const metadata: Metadata = {
'Charter is a treasury operations layer for Stellar-based organizations: budget categories, threshold approvals, and on-chain disbursements.',
};
-export default function RootLayout({ children }: { children: ReactNode }) {
+export default function AppLayout({ children }: { children: ReactNode }) {
return (
diff --git a/apps/web/app/new/page.tsx b/apps/web/app/(app)/new/page.tsx
similarity index 93%
rename from apps/web/app/new/page.tsx
rename to apps/web/app/(app)/new/page.tsx
index 4a18073..7dbf5df 100644
--- a/apps/web/app/new/page.tsx
+++ b/apps/web/app/(app)/new/page.tsx
@@ -1,6 +1,6 @@
import Link from 'next/link';
-import { NewOrgForm } from '../../components/new-org-form';
+import { NewOrgForm } from '@/components/new-org-form';
/**
* New organization route. Deploys a per-org treasury via the factory contract.
@@ -11,7 +11,7 @@ export default function NewOrgPage() {
diff --git a/apps/web/app/org/[treasury]/page.tsx b/apps/web/app/(app)/org/[treasury]/page.tsx
similarity index 87%
rename from apps/web/app/org/[treasury]/page.tsx
rename to apps/web/app/(app)/org/[treasury]/page.tsx
index 473e3d2..cef6553 100644
--- a/apps/web/app/org/[treasury]/page.tsx
+++ b/apps/web/app/(app)/org/[treasury]/page.tsx
@@ -1,4 +1,4 @@
-import { TreasuryDashboard } from '../../../components/treasury-dashboard';
+import { TreasuryDashboard } from '@/components/treasury-dashboard';
/**
* Treasury dashboard route: /org/{treasuryAddress}.
diff --git a/apps/web/app/org/[treasury]/requests/[requestId]/page.tsx b/apps/web/app/(app)/org/[treasury]/requests/[requestId]/page.tsx
similarity index 89%
rename from apps/web/app/org/[treasury]/requests/[requestId]/page.tsx
rename to apps/web/app/(app)/org/[treasury]/requests/[requestId]/page.tsx
index 6dcec5c..fcc90f4 100644
--- a/apps/web/app/org/[treasury]/requests/[requestId]/page.tsx
+++ b/apps/web/app/(app)/org/[treasury]/requests/[requestId]/page.tsx
@@ -1,4 +1,4 @@
-import { RequestDetail } from '../../../../../components/request-detail';
+import { RequestDetail } from '@/components/request-detail';
/**
* Request detail route: /org/{treasuryAddress}/requests/{requestId}.
diff --git a/apps/web/app/(marketing)/layout.tsx b/apps/web/app/(marketing)/layout.tsx
new file mode 100644
index 0000000..4f8f3d8
--- /dev/null
+++ b/apps/web/app/(marketing)/layout.tsx
@@ -0,0 +1,55 @@
+import type { Metadata } from 'next';
+import type { ReactNode } from 'react';
+import { IBM_Plex_Mono, Inter, Space_Grotesk } from 'next/font/google';
+
+import '../globals.css';
+
+// Display headlines, body copy, and mono figures for the landing page. Each
+// exposes a CSS variable that the Tailwind config reads (font-display / -body /
+// -mono). --font-mono is deliberately reused: the marketing tree repoints it at
+// IBM Plex Mono, while the dashboard root keeps JetBrains Mono under the same
+// token.
+const display = Space_Grotesk({
+ subsets: ['latin'],
+ weight: ['700'],
+ variable: '--font-display',
+ display: 'swap',
+});
+
+const body = Inter({
+ subsets: ['latin'],
+ weight: ['400', '500'],
+ variable: '--font-body',
+ display: 'swap',
+});
+
+const mono = IBM_Plex_Mono({
+ subsets: ['latin'],
+ weight: ['500'],
+ variable: '--font-mono',
+ display: 'swap',
+});
+
+export const metadata: Metadata = {
+ title: 'Charter — On-chain treasury policy for Stellar organizations',
+ description:
+ 'Charter holds organization funds under a Soroban policy contract: budget categories, spend caps, and threshold approvals enforced on-chain at the moment money moves.',
+};
+
+// Root layout for the public marketing group. Deliberately independent of the
+// dashboard shell in (app)/ — its own /, its own light theme and
+// fonts, and no wallet Providers. The marketing-root class (see globals.css)
+// carries the light neo-brutalist theme; bg-paper on the body overrides the
+// shared dark canvas default.
+export default function MarketingLayout({ children }: { children: ReactNode }) {
+ return (
+
+
+ {children}
+
+
+ );
+}
diff --git a/apps/web/app/(marketing)/page.tsx b/apps/web/app/(marketing)/page.tsx
new file mode 100644
index 0000000..1a8b97e
--- /dev/null
+++ b/apps/web/app/(marketing)/page.tsx
@@ -0,0 +1,43 @@
+/**
+ * Public marketing landing page at "/".
+ *
+ * Composes the landing sections in reading order. Each section is a
+ * self-contained component under components/marketing/. The dashboard lives at
+ * "/app" (see the (app) route group); this group owns "/" and its own light
+ * neo-brutalist theme.
+ */
+import { Contributors } from '../../components/marketing/contributors';
+import { Hero } from '../../components/marketing/hero';
+import { HowItWorks } from '../../components/marketing/how-it-works';
+import { Problem } from '../../components/marketing/problem';
+import { Proof } from '../../components/marketing/proof';
+import { SiteFooter } from '../../components/marketing/site-footer';
+import { SiteNav } from '../../components/marketing/site-nav';
+
+export default function LandingPage() {
+ return (
+ <>
+ {/*
+ * Skip link — the first focusable element, hidden until focused. Lets
+ * keyboard users jump past the sticky nav straight to the content. It
+ * reveals as a gold pill top-left; z-modal clears the sticky header
+ * (z-sticky) since it renders earlier in the DOM.
+ */}
+
+ Skip to content
+
+
+
+
+
+
+
+
+
+
+ >
+ );
+}
diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index 875627f..5f62651 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -15,6 +15,18 @@ body {
@apply bg-canvas text-ink antialiased;
}
+/* The marketing (landing) group opts into the light neo-brutalist theme. It
+ owns its own / via the (marketing) route group, so scoping the
+ override to this class leaves the dashboard's dark defaults untouched.
+ --color-ink repoints the ink token to #14171F (dark-on-paper); color-scheme
+ flips UA controls and scrollbars to light. The --font-* variables are set on
+ the same element by next/font in the marketing layout. The bg-paper utility
+ on the marketing overrides the bg-canvas above (class beats element). */
+.marketing-root {
+ color-scheme: light;
+ --color-ink: 20 23 31;
+}
+
/* Mono carries addresses, hashes, and amounts. Tabular figures keep columns of
numbers vertically aligned; the slashed zero disambiguates 0 from O in the
on-chain data these fonts render. */
diff --git a/apps/web/components/marketing/contributors.tsx b/apps/web/components/marketing/contributors.tsx
new file mode 100644
index 0000000..0aa27b5
--- /dev/null
+++ b/apps/web/components/marketing/contributors.tsx
@@ -0,0 +1,83 @@
+/**
+ * For-contributors section — sits directly above the footer.
+ *
+ * Charter's application layer and its Soroban contracts live in separate repos
+ * (Ch-rter/app and Ch-rter/contract, both verified against the README and
+ * SECURITY.md). The cards link to each repo, to open issues filtered to the
+ * real `good first issue` label, and to the README's Contributing section.
+ * Every destination is off-site, so each card carries the ↗ convention.
+ */
+import { CONTRIBUTING_URL, GOOD_FIRST_ISSUES_URL, MAINTAINER_HANDLE, MAINTAINER_URL, REPO_APP_URL, REPO_CONTRACT_URL } from './links';
+
+const CARDS = [
+ {
+ title: 'Application layer',
+ meta: 'github.com/Ch-rter/app',
+ body: 'SDK, web dashboard, and event indexer — this repository.',
+ href: REPO_APP_URL,
+ },
+ {
+ title: 'Soroban contracts',
+ meta: 'github.com/Ch-rter/contract',
+ body: 'The on-chain policy contracts every treasury runs on.',
+ href: REPO_CONTRACT_URL,
+ },
+ {
+ title: 'Good first issues',
+ meta: 'Issues · good first issue',
+ body: 'Start here — open issues scoped for a first contribution.',
+ href: GOOD_FIRST_ISSUES_URL,
+ },
+ {
+ title: 'Contributing guide',
+ meta: 'README · Contributing',
+ body: 'Conventions for the two data paths, branch names, and PRs.',
+ href: CONTRIBUTING_URL,
+ },
+] as const;
+
+export function Contributors() {
+ return (
+
+
+ Built in the open
+
+
+ Charter is developed in the open, maintained by{' '}
+
+ @{MAINTAINER_HANDLE}
+
+ . The application layer and the Soroban contracts live in separate repos.
+
+
+
+
+ );
+}
diff --git a/apps/web/components/marketing/cta.tsx b/apps/web/components/marketing/cta.tsx
new file mode 100644
index 0000000..dc40fcf
--- /dev/null
+++ b/apps/web/components/marketing/cta.tsx
@@ -0,0 +1,89 @@
+/**
+ * Shared link primitives for the landing page's neo-brutalist surface.
+ *
+ * CtaButton renders the bordered, offset-shadow button in two fills (primary =
+ * ledger-gold, secondary = paper-raised) and two sizes; hover collapses the 4px
+ * shadow toward the surface. Internal targets use next/link; external ones open
+ * in a new tab with a trailing ↗ and a screen-reader hint. ExternalLink is the
+ * text-link counterpart: underline-on-hover with the same ↗ convention.
+ *
+ * No client state here — these render on the server.
+ */
+import Link from 'next/link';
+import type { ReactNode } from 'react';
+
+import { cn } from '../../lib/format';
+
+const BASE =
+ 'inline-flex items-center justify-center gap-2 rounded-card border-2 border-ink font-medium leading-none shadow-brutal transition-[transform,box-shadow] duration-150 hover:translate-x-0.5 hover:translate-y-0.5 hover:shadow-brutal-pressed focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ink focus-visible:ring-offset-2 focus-visible:ring-offset-paper motion-reduce:transition-none';
+
+const VARIANT = {
+ primary: 'bg-ledger-gold text-ink',
+ secondary: 'bg-paper-raised text-ink',
+} as const;
+
+const SIZE = {
+ md: 'px-5 py-3 text-[16px]',
+ sm: 'px-4 py-2.5 text-[15px]',
+} as const;
+
+export function CtaButton({
+ href,
+ variant = 'primary',
+ size = 'md',
+ external = false,
+ className,
+ children,
+}: {
+ href: string;
+ variant?: keyof typeof VARIANT;
+ size?: keyof typeof SIZE;
+ /** Open in a new tab with a ↗ affordance. Use for off-site destinations. */
+ external?: boolean;
+ className?: string;
+ children: ReactNode;
+}) {
+ const classes = cn(BASE, VARIANT[variant], SIZE[size], className);
+
+ if (external) {
+ return (
+
+ {children}
+ ↗
+ (opens in a new tab)
+
+ );
+ }
+
+ return (
+
+ {children}
+
+ );
+}
+
+export function ExternalLink({
+ href,
+ className,
+ children,
+}: {
+ href: string;
+ className?: string;
+ children: ReactNode;
+}) {
+ return (
+
+ {children}
+ ↗
+ (opens in a new tab)
+
+ );
+}
diff --git a/apps/web/components/marketing/hero.tsx b/apps/web/components/marketing/hero.tsx
new file mode 100644
index 0000000..639516d
--- /dev/null
+++ b/apps/web/components/marketing/hero.tsx
@@ -0,0 +1,54 @@
+/**
+ * Hero — the landing page's opening statement. Two columns on large screens:
+ * the headline, subhead, and CTAs on the left; a single card demonstrating the
+ * approval-threshold meter on the right. The meter is the page's one animated
+ * element (fills once on mount, honours prefers-reduced-motion inside the
+ * component). Copy is grounded in the repository's own framing of Charter as an
+ * enforcement layer over a bare multisig.
+ */
+import { CtaButton } from './cta';
+import { DOCS_URL } from './links';
+import { ThresholdMeter } from './threshold-meter';
+
+export function Hero() {
+ return (
+
+
+
+
+ A treasury operations layer for Stellar-based organizations
+
+
+ Budget categories, spend caps, and approval thresholds enforced
+ on-chain, instead of a bare multisig.
+
+
+
+ Open the App
+
+
+ Read the Docs
+
+
+
+
+
+
+ Approval threshold
+
+
+
+ A release executes only once the category's required approvals
+ are collected on-chain.
+
+
+
+
+ );
+}
diff --git a/apps/web/components/marketing/how-it-works.tsx b/apps/web/components/marketing/how-it-works.tsx
new file mode 100644
index 0000000..ceadc39
--- /dev/null
+++ b/apps/web/components/marketing/how-it-works.tsx
@@ -0,0 +1,97 @@
+/**
+ * How-it-works — the deploy → categories → deposit → request → approve → release
+ * flow, grounded in the repository's own description (every step is a Soroban
+ * contract call the user's wallet authorizes; Charter never custodies funds).
+ *
+ * The first four setup steps are compact cards read in order — no 01/02/03
+ * markers; sequence is carried by reading order and the copy. The final two
+ * steps (collect approvals, release) are paired in a wider card next to a static
+ * fully-met ThresholdMeter, so the payoff — funds move only once the threshold
+ * clears on-chain — is shown, not just stated.
+ */
+import { ThresholdMeter } from './threshold-meter';
+
+const SETUP_STEPS = [
+ {
+ title: 'Deploy a treasury',
+ body: 'Spin up a policy-governed treasury through the Charter factory contract — your wallet keeps custody the whole time.',
+ },
+ {
+ title: 'Set budget categories',
+ body: 'Divide the treasury into budget categories, each with its own spend limit and approval threshold.',
+ },
+ {
+ title: 'Deposit funds',
+ body: 'Move tokens into the treasury contract. Balances live on-chain, not in a spreadsheet.',
+ },
+ {
+ title: 'Request a spend',
+ body: 'A member raises a request to move funds out of a category. It stays pending until it clears policy.',
+ },
+] as const;
+
+export function HowItWorks() {
+ return (
+
+
+ How Charter works
+
+
+ From deploying a treasury to releasing funds, every step is a contract
+ call authorized by your own wallet.
+
+
+
+ {SETUP_STEPS.map((step) => (
+
+
+ {step.title}
+
+ {step.body}
+
+ ))}
+
+
+
+
+
+
+ Collect approvals
+
+
+ Approvers sign off until the category's approval threshold is
+ met — checked by the contract, not by convention.
+
+
+
+
+ Release funds
+
+
+ With the threshold met, the transfer executes on-chain. Below it,
+ nothing moves.
+
+
+
+
+
+
+ Approval threshold
+
+
+
+ Threshold met — the release executes on-chain.
+
+
+
+
+ );
+}
diff --git a/apps/web/components/marketing/links.ts b/apps/web/components/marketing/links.ts
new file mode 100644
index 0000000..76087bb
--- /dev/null
+++ b/apps/web/components/marketing/links.ts
@@ -0,0 +1,26 @@
+/**
+ * External destinations referenced across the landing page, defined once so
+ * they never drift between sections.
+ *
+ * Repo, issues, and maintainer URLs are verified against the repository README
+ * (github.com/Ch-rter/app and /contract; maintainer @fadesany). DOCS_URL is the
+ * documentation site given in the build brief; nothing in the repository
+ * confirms it resolves (.gitbook.yaml is empty), so it is called out for
+ * confirmation in the PR. CONTRIBUTING_URL points at the README's Contributing
+ * section on the default branch, which is guaranteed to resolve, rather than a
+ * GitBook deep link whose slug could not be verified.
+ */
+export const DOCS_URL = 'https://chusdrter.gitbook.io/chusdrter-docs';
+export const REPO_APP_URL = 'https://github.com/Ch-rter/app';
+export const REPO_CONTRACT_URL = 'https://github.com/Ch-rter/contract';
+export const ISSUES_URL = 'https://github.com/Ch-rter/app/issues';
+/**
+ * Open issues filtered to the `good first issue` label — the exact label the
+ * README (Contributing) points first-time contributors at. A label filter URL
+ * always resolves on GitHub even when the result set is empty.
+ */
+export const GOOD_FIRST_ISSUES_URL =
+ 'https://github.com/Ch-rter/app/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22';
+export const CONTRIBUTING_URL = 'https://github.com/Ch-rter/app#contributing';
+export const MAINTAINER_URL = 'https://github.com/fadesany';
+export const MAINTAINER_HANDLE = 'fadesany';
diff --git a/apps/web/components/marketing/problem.tsx b/apps/web/components/marketing/problem.tsx
new file mode 100644
index 0000000..05e9404
--- /dev/null
+++ b/apps/web/components/marketing/problem.tsx
@@ -0,0 +1,54 @@
+/**
+ * Problem section — establishes the stakes before the how-it-works walk.
+ *
+ * The heading states the scale claim generally; three stat cards give concrete
+ * (publicly reported, illustrative) examples of on-chain treasury size. These
+ * figures are third-party and volatile — they are framed as illustrative here
+ * and are NOT presented as Charter's own live data. The closing line turns the
+ * scale into the problem: today's tooling reports after the fact rather than
+ * enforcing policy at the moment funds move.
+ *
+ * The dollar figures are unverified against the repository (they came from the
+ * build brief) and are flagged for sourcing/dating in the PR.
+ */
+const STATS = [
+ { figure: '$4.8B', org: 'Uniswap' },
+ { figure: '$200M+', org: 'Optimism' },
+ { figure: '$40M–$200M', org: 'Arbitrum' },
+] as const;
+
+export function Problem() {
+ return (
+
+
+ Organizations already run treasuries worth hundreds of millions — sometimes
+ billions — on-chain.
+
+
+
+ {STATS.map((stat) => (
+
+
+ {stat.figure}
+
+
+ {stat.org}
+
+
+ ))}
+
+
+
+ Publicly reported DAO treasuries · illustrative
+
+
+
+ Today that money is tracked with after-the-fact reporting — not policy
+ enforced at the moment funds move.
+
+
+ );
+}
diff --git a/apps/web/components/marketing/proof.tsx b/apps/web/components/marketing/proof.tsx
new file mode 100644
index 0000000..373f8d4
--- /dev/null
+++ b/apps/web/components/marketing/proof.tsx
@@ -0,0 +1,93 @@
+/**
+ * Proof section — the honest counterweight to the pitch.
+ *
+ * The factory contract id is read from NEXT_PUBLIC_FACTORY_CONTRACT_ID at
+ * build/render time (a public, build-inlined value — never a live fetch, and
+ * never the throwing factoryContractId() accessor). When set it links to the
+ * contract on Stellar Expert (testnet) so a visitor can verify the deployment
+ * themselves; when blank the section says so plainly and points at read-only
+ * browse mode, matching the README.
+ *
+ * The always-visible testnet/unaudited/experimental badge restates SECURITY.md
+ * verbatim in spirit ("Charter has not been audited", "Stellar testnet only",
+ * "Treat every deployment as experimental testnet software"). The meter here is
+ * explicitly illustrative — no real default-threshold value is exposed at build
+ * time, so it stands in as an example of what a satisfied policy looks like on
+ * the contract itself.
+ */
+import { ThresholdMeter } from './threshold-meter';
+
+export function Proof() {
+ const factoryId = process.env.NEXT_PUBLIC_FACTORY_CONTRACT_ID?.trim() ?? '';
+ const explorerUrl = factoryId
+ ? `https://stellar.expert/explorer/testnet/contract/${factoryId}`
+ : null;
+
+ return (
+
+
+ Runs on Stellar testnet. Unaudited. Experimental.
+
+
+
+ See it on-chain
+
+
+ The factory every treasury is deployed through is public on Stellar
+ testnet — verify the deployment in a block explorer, not a screenshot.
+
+
+
+
+
+
+
+ Example policy state
+
+
+
+ Illustrative — real approval thresholds are set per category on the
+ contract itself.
+
+
+
+
+ );
+}
diff --git a/apps/web/components/marketing/site-footer.tsx b/apps/web/components/marketing/site-footer.tsx
new file mode 100644
index 0000000..e9c2d80
--- /dev/null
+++ b/apps/web/components/marketing/site-footer.tsx
@@ -0,0 +1,110 @@
+/**
+ * Footer — the one surface that inverts to bg-ink / text-paper (the sole
+ * exception to the light theme), set in mono. Groups the outbound links:
+ * the app, the docs, both source repos, open issues, and the maintainer.
+ *
+ * No license is shown: the repository has no LICENSE file, so rather than
+ * invent one ("MIT" etc.) the footer omits it entirely. The absence is called
+ * out in the PR so a real license can be added deliberately. Focus rings use
+ * the paper colour against the ink ground so keyboard focus stays visible.
+ */
+import Link from 'next/link';
+import type { ReactNode } from 'react';
+
+import {
+ DOCS_URL,
+ ISSUES_URL,
+ MAINTAINER_HANDLE,
+ MAINTAINER_URL,
+ REPO_APP_URL,
+ REPO_CONTRACT_URL,
+} from './links';
+
+const LINK_CLASS =
+ 'inline-flex items-center gap-1 rounded-sm text-[13px] text-paper/75 underline-offset-4 transition-colors hover:text-paper hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-paper focus-visible:ring-offset-2 focus-visible:ring-offset-ink motion-reduce:transition-none';
+
+function FooterLink({
+ href,
+ external = false,
+ children,
+}: {
+ href: string;
+ external?: boolean;
+ children: ReactNode;
+}) {
+ if (external) {
+ return (
+
+ {children}
+ ↗
+ (opens in a new tab)
+
+ );
+ }
+ return (
+
+ {children}
+
+ );
+}
+
+function ColumnHeading({ children }: { children: ReactNode }) {
+ return (
+
+ {children}
+
+ );
+}
+
+export function SiteFooter() {
+ return (
+
+ );
+}
diff --git a/apps/web/components/marketing/site-nav.tsx b/apps/web/components/marketing/site-nav.tsx
new file mode 100644
index 0000000..0abec9b
--- /dev/null
+++ b/apps/web/components/marketing/site-nav.tsx
@@ -0,0 +1,37 @@
+/**
+ * Landing-page top navigation: wordmark left, Docs link and the primary
+ * "Open the App" button right. Distinct from the dashboard's SiteHeader — no
+ * wallet control, light theme, and a hard ink underline framing the bar. Sticky
+ * so the app entry point stays reachable while scrolling.
+ */
+import Link from 'next/link';
+
+import { CtaButton, ExternalLink } from './cta';
+import { DOCS_URL } from './links';
+
+export function SiteNav() {
+ return (
+
+ );
+}
diff --git a/apps/web/components/marketing/threshold-meter.tsx b/apps/web/components/marketing/threshold-meter.tsx
new file mode 100644
index 0000000..e84e696
--- /dev/null
+++ b/apps/web/components/marketing/threshold-meter.tsx
@@ -0,0 +1,123 @@
+'use client';
+
+/**
+ * ThresholdMeter — the landing page's one moving part.
+ *
+ * A horizontal pill split into `total` equal segments separated by hard 2px ink
+ * gaps. `filled` segments carry the ledger-gold fill; when the meter is fully
+ * met (`filled === total`) the final segment turns signal-green and shows a
+ * check, reading as "policy satisfied". It renders the same neo-brutalist
+ * language as the surrounding cards: 2px ink border, full pill radius.
+ *
+ * `animate` (used only in the hero) fills the segments left-to-right over ~800ms
+ * on mount. Under `prefers-reduced-motion` the meter renders fully filled
+ * immediately with no animation. The optional `label` carries the meaning in
+ * text (mono figures), so the state never depends on colour alone; when a label
+ * is present the bar itself is decorative (aria-hidden) and the label is the
+ * accessible name, otherwise the bar exposes its own "n of m" aria-label.
+ */
+import { useEffect, useState } from 'react';
+
+import { cn } from '../../lib/format';
+
+const FILL_DURATION_MS = 800;
+
+export function ThresholdMeter({
+ filled,
+ total,
+ label,
+ animate = false,
+ className,
+}: {
+ /** Segments that are met. Clamped into [0, total]. */
+ filled: number;
+ /** Total required segments. */
+ total: number;
+ /** Visible caption (e.g. "3 of 5 approvals"); also the accessible name. */
+ label?: string;
+ /** Fill left-to-right on mount. Honours prefers-reduced-motion. */
+ animate?: boolean;
+ className?: string;
+}) {
+ const segments = Math.max(0, Math.trunc(total));
+ const target = Math.max(0, Math.min(Math.trunc(filled), segments));
+ const complete = segments > 0 && target === segments;
+
+ // Deterministic first render for hydration: animated meters start empty, all
+ // others start at their final fill. prefers-reduced-motion is read only in the
+ // effect (matchMedia is unavailable during SSR).
+ const [shown, setShown] = useState(animate ? 0 : target);
+
+ useEffect(() => {
+ const reduced =
+ typeof window !== 'undefined' &&
+ window.matchMedia('(prefers-reduced-motion: reduce)').matches;
+
+ if (!animate || reduced || target === 0) {
+ setShown(target);
+ return;
+ }
+
+ setShown(0);
+ const step = FILL_DURATION_MS / target;
+ const timers = Array.from({ length: target }, (_, i) =>
+ setTimeout(() => setShown(i + 1), Math.round(step * (i + 1))),
+ );
+ return () => {
+ for (const t of timers) clearTimeout(t);
+ };
+ }, [animate, target]);
+
+ const bar = (
+
+ {Array.from({ length: segments }, (_, i) => {
+ const isFilled = i < shown;
+ const isGreen = complete && i === segments - 1;
+ return (
+
+ {isFilled && isGreen ? (
+
+
+
+ ) : null}
+
+ );
+ })}
+
+ );
+
+ if (!label) {
+ return {bar} ;
+ }
+
+ return (
+
+ {bar}
+ {label}
+
+ );
+}
diff --git a/apps/web/components/site-header.tsx b/apps/web/components/site-header.tsx
index 7001a58..4cc111b 100644
--- a/apps/web/components/site-header.tsx
+++ b/apps/web/components/site-header.tsx
@@ -14,7 +14,7 @@ export function SiteHeader() {
diff --git a/apps/web/components/treasury-dashboard.tsx b/apps/web/components/treasury-dashboard.tsx
index 08424f7..b192940 100644
--- a/apps/web/components/treasury-dashboard.tsx
+++ b/apps/web/components/treasury-dashboard.tsx
@@ -125,7 +125,7 @@ export function TreasuryDashboard({ treasury }: { treasury: string }) {
diff --git a/apps/web/tailwind.config.ts b/apps/web/tailwind.config.ts
index 865a193..9f4d7b5 100644
--- a/apps/web/tailwind.config.ts
+++ b/apps/web/tailwind.config.ts
@@ -14,10 +14,16 @@ const config: Config = {
raised: '#111823',
overlay: '#1a2534',
},
+ // Primary ink. CSS-variable-backed so each root layout owns its value:
+ // the dashboard falls back to its light-on-dark text, while the
+ // marketing group sets --color-ink to #14171F for dark-on-paper. The
+ // fallback channels reproduce the original dashboard hexes exactly
+ // (#e6edf3 / #8b98a9 / #5a6675), so omitting the variable — as the
+ // dashboard does — renders it identically.
ink: {
- DEFAULT: '#e6edf3',
- muted: '#8b98a9',
- faint: '#5a6675',
+ DEFAULT: 'rgb(var(--color-ink, 230 237 243) / )',
+ muted: 'rgb(var(--color-ink-muted, 139 152 169) / )',
+ faint: 'rgb(var(--color-ink-faint, 90 102 117) / )',
},
accent: {
DEFAULT: '#2dd4bf',
@@ -33,6 +39,15 @@ const config: Config = {
danger: '#f87171',
warn: '#fbbf24',
ok: '#34d399',
+ // Marketing (landing) palette — soft rounded neo-brutalism on light
+ // paper. Additive: the dashboard never references these tokens. Gold is
+ // the only decorative color; green and red are state-only. The footer
+ // is the sole surface that inverts to bg-ink / text-paper.
+ paper: '#EEEBE2',
+ 'paper-raised': '#FBFAF6',
+ 'ledger-gold': '#D8A93B',
+ 'signal-green': '#3F8F5F',
+ 'flag-red': '#B8462F',
},
// Custom shadows for depth and glow effects
boxShadow: {
@@ -40,10 +55,28 @@ const config: Config = {
'glow-accent': '0 0 12px rgba(45, 212, 191, 0.2)',
'glow-warn': '0 0 8px rgba(251, 191, 36, 0.4)',
'glow-danger': '0 0 12px rgba(248, 113, 113, 0.15)',
+ // Neo-brutalist offset shadows for the marketing surfaces: a hard ink
+ // edge with no blur. Hover collapses the 4px offset toward the surface.
+ brutal: '4px 4px 0 #14171F',
+ 'brutal-pressed': '2px 2px 0 #14171F',
+ },
+ // Marketing surfaces read as physical cards: generous 20px radius, full
+ // pills for badges/tags, and a tighter 12px on small chips.
+ borderRadius: {
+ card: '20px',
+ pill: '999px',
+ badge: '12px',
},
fontFamily: {
sans: ['var(--font-sans)', 'system-ui', 'sans-serif'],
mono: ['var(--font-mono)', 'ui-monospace', 'monospace'],
+ // Marketing type: display headlines (Space Grotesk 700) and body copy
+ // (Inter 400/500). Both resolve per-layout via CSS vars set on the
+ // marketing root; they are unset elsewhere, so the dashboard is
+ // unaffected. Mono is shared: the marketing root repoints --font-mono
+ // at IBM Plex Mono while the dashboard keeps JetBrains Mono.
+ display: ['var(--font-display)', 'system-ui', 'sans-serif'],
+ body: ['var(--font-body)', 'system-ui', 'sans-serif'],
},
// Semantic stacking order — layers are named by role so nothing reaches
// for an arbitrary 999. Ascending: base content → sticky chrome →