From 5d7db5c5bfb7f1818227bcd5a65a7770c8f4726d Mon Sep 17 00:00:00 2001 From: David Young Date: Sun, 22 Nov 2026 15:14:24 -0700 Subject: [PATCH] Phase 6 part 5, step 1: a shared site theme internal/theme embeds a Hugo theme from federated-website's look and the 13 section types both sites share, with the header, footer, colors, font and logo set per site in hugo.toml, and a README of each type's fields. The catalogue reader reads themes' sections and READMEs after the site's own; lead forms know a theme site needs only the Lead Capture address. Co-Authored-By: Claude Opus 5.5 --- PLAN.md | 46 +- internal/sites/catalog.go | 49 +- internal/sites/leadforms.go | 83 +- internal/sites/theme_test.go | 49 + internal/theme/files/README.md | 75 + internal/theme/files/layouts/404.html | 8 + .../theme/files/layouts/_default/baseof.html | 35 + .../theme/files/layouts/_default/list.html | 4 + .../theme/files/layouts/_default/single.html | 4 + internal/theme/files/layouts/index.html | 4 + .../theme/files/layouts/partials/footer.html | 45 + .../theme/files/layouts/partials/head.html | 43 + .../theme/files/layouts/partials/header.html | 63 + .../layouts/partials/render-sections.html | 9 + .../files/layouts/partials/section-id.html | 11 + .../layouts/partials/sections/callout.html | 4 + .../layouts/partials/sections/cards.html | 22 + .../layouts/partials/sections/checklist.html | 5 + .../files/layouts/partials/sections/ctas.html | 17 + .../files/layouts/partials/sections/faq.html | 11 + .../layouts/partials/sections/features.html | 8 + .../layouts/partials/sections/final-cta.html | 10 + .../files/layouts/partials/sections/form.html | 103 ++ .../files/layouts/partials/sections/head.html | 8 + .../files/layouts/partials/sections/hero.html | 93 + .../layouts/partials/sections/split.html | 14 + .../layouts/partials/sections/stats.html | 45 + .../layouts/partials/sections/steps.html | 13 + .../layouts/partials/sections/table.html | 28 + .../files/layouts/partials/sections/text.html | 20 + .../layouts/partials/sections/wrapper.html | 7 + .../theme/files/static/css/supermarket.css | 1529 +++++++++++++++++ .../files/static/js/supermarket-leads.js | 50 + internal/theme/files/theme.toml | 4 + internal/theme/theme.go | 57 + internal/theme/theme_test.go | 144 ++ 36 files changed, 2641 insertions(+), 79 deletions(-) create mode 100644 internal/sites/theme_test.go create mode 100644 internal/theme/files/README.md create mode 100644 internal/theme/files/layouts/404.html create mode 100644 internal/theme/files/layouts/_default/baseof.html create mode 100644 internal/theme/files/layouts/_default/list.html create mode 100644 internal/theme/files/layouts/_default/single.html create mode 100644 internal/theme/files/layouts/index.html create mode 100644 internal/theme/files/layouts/partials/footer.html create mode 100644 internal/theme/files/layouts/partials/head.html create mode 100644 internal/theme/files/layouts/partials/header.html create mode 100644 internal/theme/files/layouts/partials/render-sections.html create mode 100644 internal/theme/files/layouts/partials/section-id.html create mode 100644 internal/theme/files/layouts/partials/sections/callout.html create mode 100644 internal/theme/files/layouts/partials/sections/cards.html create mode 100644 internal/theme/files/layouts/partials/sections/checklist.html create mode 100644 internal/theme/files/layouts/partials/sections/ctas.html create mode 100644 internal/theme/files/layouts/partials/sections/faq.html create mode 100644 internal/theme/files/layouts/partials/sections/features.html create mode 100644 internal/theme/files/layouts/partials/sections/final-cta.html create mode 100644 internal/theme/files/layouts/partials/sections/form.html create mode 100644 internal/theme/files/layouts/partials/sections/head.html create mode 100644 internal/theme/files/layouts/partials/sections/hero.html create mode 100644 internal/theme/files/layouts/partials/sections/split.html create mode 100644 internal/theme/files/layouts/partials/sections/stats.html create mode 100644 internal/theme/files/layouts/partials/sections/steps.html create mode 100644 internal/theme/files/layouts/partials/sections/table.html create mode 100644 internal/theme/files/layouts/partials/sections/text.html create mode 100644 internal/theme/files/layouts/partials/sections/wrapper.html create mode 100644 internal/theme/files/static/css/supermarket.css create mode 100644 internal/theme/files/static/js/supermarket-leads.js create mode 100644 internal/theme/files/theme.toml create mode 100644 internal/theme/theme.go create mode 100644 internal/theme/theme_test.go diff --git a/PLAN.md b/PLAN.md index 05810c4..cb9fd40 100644 --- a/PLAN.md +++ b/PLAN.md @@ -1375,10 +1375,48 @@ shared theme for new sites (deferred in Phase 5). item 1: the second app's keys, choosing the page, and posting as the page or the profile per draft. Built against LinkedIn's documented API; used for real once LinkedIn approves the app. -5. **New sites from a shared theme.** A Hugo theme of sections common to - federated-website and webcoredesktop, and creating a new site from it: - a new Gitea repository, a first set of pages built by Part 3 of Phase 5, - and a preview. Planned in detail when it starts. +5. **New sites from a shared theme.** Decided with the user (2026-11-22): + the theme is *copied into* each new site (`themes/supermarket/`), not a + submodule, so each site stands alone; *the user creates* the empty + Gitea repository (the `write:repository` token stays enough); the theme + has *federated-website's look*, with each site's colors, fonts and logo + as settings. In three steps, a commit after each: + 1. **The theme**, embedded in Supermarket: base layouts, header and + footer, the section types both sites share (hero, text, features, + cards, steps, checklist, split, stats, table, faq, callout, + final-cta) plus federated-website's lead `form`, the stylesheet with + brand variables, and a README documenting each type and its fields + (which the catalogue reader and the page builder then use). + 2. **A new site**: Sites → New site takes the empty repository, the + site's address, name and brand (colors, font, logo); the first + commit (the theme, `hugo.toml`, a starter home page) goes straight to + the empty repository's `main`, the one exception to "always a pull + request", since there's nothing published yet; then the site is added + to the profile, read, and previewed, and its first pages (home, + about, a product page, contact with a lead form) are built with the + page builder as pull requests. + 3. **Theme updates**: the theme carries a version; a site whose copy is + older gets a pull request copying the new one in. + + **Step 1 built (2026-11-22; no schema change).** `internal/theme` embeds + the theme (version 1): federated-website's base layout (its reveal and + sticky-header script; not its agent view or pricing script), a generic + head (title, description, canonical and Open Graph tags, favicon, the + brand font from Google Fonts, Plausible when `[params.plausible]` is + set), a header and footer driven by `hugo.toml` (logo or the site's + name, `main` menu with dropdowns, `[params.header] ctas`, footer + groups, social and legal menus, copyright), the 13 shared section types + (the hero without Federated's layer panel; the form posting through + `supermarket-leads.js`, now the theme's file and the one Part 3 uses), + pages that render sections then any Markdown body, a 404, and the + stylesheet with every brand color as a variable (the fixed violet, + lime and navy tints turned into `color-mix` of the brand variables). + `[params.brand]` sets dark, dark2, primary, accent (and hovers), font, + logo and favicon. The README documents each type's real fields; the + catalogue reader now reads `themes/*/` sections and READMEs after the + site's own (the site's win), and treats types `render-sections` picks + by name as types even before a page uses them; Lead forms knows a theme + site needs only the address. Tested with Hugo building every section. **Part 1 built (2026-11-22; no schema change).** `internal/backup` makes backups with `VACUUM INTO` (to a `.part` file, then renamed; mode 0600) diff --git a/internal/sites/catalog.go b/internal/sites/catalog.go index a495f91..3021267 100644 --- a/internal/sites/catalog.go +++ b/internal/sites/catalog.go @@ -82,25 +82,36 @@ var ( partialRef = regexp.MustCompile(`partial\s+"sections/([\w-]+)\.html"\s*(?:(\$s|\.)(?:\s|-?\}\}|\)))?`) dollarS = regexp.MustCompile(`\$s\.([a-z]\w*)`) bareDot = regexp.MustCompile(`(?:^|[\s(])\.([a-z]\w*)`) + typeTest = regexp.MustCompile(`eq \.type "([\w-]+)"`) readmeList = regexp.MustCompile("^\\s*[-*]\\s+`([\\w-]+)`\\s+[—–-]+\\s+(.+)$") readmeRow = regexp.MustCompile("^\\|\\s*`([\\w-]+)`\\s*\\|\\s*(.+?)\\s*\\|\\s*$") ) // Read reads the catalogue from a working copy of the site. func Read(dir string, pathOf PathFunc) (*Catalog, error) { - partDir := filepath.Join(dir, "layouts", "partials", "sections") - entries, err := os.ReadDir(partDir) - if err != nil && !os.IsNotExist(err) { - return nil, err + // The site's own layouts, then its themes' (the site's win, as in Hugo). + roots := []string{dir} + if themes, err := filepath.Glob(filepath.Join(dir, "themes", "*")); err == nil { + sort.Strings(themes) + roots = append(roots, themes...) } partials := map[string]string{} - for _, e := range entries { - if !e.IsDir() && strings.HasSuffix(e.Name(), ".html") { + for _, root := range roots { + partDir := filepath.Join(root, "layouts", "partials", "sections") + entries, err := os.ReadDir(partDir) + if err != nil && !os.IsNotExist(err) { + return nil, err + } + for _, e := range entries { + name := strings.TrimSuffix(e.Name(), ".html") + if e.IsDir() || !strings.HasSuffix(e.Name(), ".html") || partials[name] != "" { + continue + } raw, err := os.ReadFile(filepath.Join(partDir, e.Name())) if err != nil { return nil, err } - partials[strings.TrimSuffix(e.Name(), ".html")] = string(raw) + partials[name] = string(raw) } } // Partials named by another partial, or by render-sections, are @@ -115,9 +126,16 @@ func Read(dir string, pathOf PathFunc) (*Catalog, error) { } } } - if raw, err := os.ReadFile(filepath.Join(dir, "layouts", "partials", "render-sections.html")); err == nil { - for _, m := range partialRef.FindAllStringSubmatch(string(raw), -1) { - referenced[m[1]] = true + dispatched := map[string]bool{} // types render-sections picks by name + for _, root := range roots { + if raw, err := os.ReadFile(filepath.Join(root, "layouts", "partials", "render-sections.html")); err == nil { + for _, m := range partialRef.FindAllStringSubmatch(string(raw), -1) { + referenced[m[1]] = true + } + for _, m := range typeTest.FindAllStringSubmatch(string(raw), -1) { + dispatched[m[1]] = true + } + break } } @@ -135,7 +153,7 @@ func Read(dir string, pathOf PathFunc) (*Catalog, error) { } root := filepath.Join(dir, "content") - err = filepath.WalkDir(root, func(p string, d fs.DirEntry, err error) error { + err := filepath.WalkDir(root, func(p string, d fs.DirEntry, err error) error { if err != nil { if os.IsNotExist(err) && p == root { return fs.SkipDir @@ -208,13 +226,18 @@ func Read(dir string, pathOf PathFunc) (*Catalog, error) { } for name := range partials { - if referenced[name] && uses[name] == nil { + if referenced[name] && uses[name] == nil && !dispatched[name] { c.Helpers = append(c.Helpers, name) continue } get(name) } - docs := readmeDocs(dir) + docs := map[string]string{} + for i := len(roots) - 1; i >= 0; i-- { // the site's README wins + for k, v := range readmeDocs(roots[i]) { + docs[k] = v + } + } for name, t := range uses { _, has := partials[name] t.Missing = !has diff --git a/internal/sites/leadforms.go b/internal/sites/leadforms.go index 449515a..28c929b 100644 --- a/internal/sites/leadforms.go +++ b/internal/sites/leadforms.go @@ -15,6 +15,7 @@ import ( "supermarket/internal/api/gitea" "supermarket/internal/hugorepo" "supermarket/internal/seo" + "supermarket/internal/theme" ) // Lead forms: a site's `form` sections post to EspoCRM's Lead Capture @@ -34,58 +35,9 @@ const LeadScriptPath = "static/js/supermarket-leads.js" var LeadPayloadFields = []string{"First Name", "Last Name", "Email", "Account Name", "Phone", "Description"} // leadScript defines window.leadPost(form, data), which the form's own -// script calls in place of its fetch: it returns the fetch's promise. -const leadScript = `/* Sends the site's lead forms to EspoCRM's Lead Capture. Written by - Supermarket: the form posts here instead of to [params.leads] action - directly, so its fields can be mapped onto a Lead's. */ -(function () { - var mapped = { email: 'emailAddress', 'e-mail': 'emailAddress', phone: 'phoneNumber', tel: 'phoneNumber', - company: 'accountName', organization: 'accountName', organisation: 'accountName', church: 'accountName' }; - function label(form, name) { - var el = form.querySelector('[name="' + name + '"]'); - var l = el && el.id && form.querySelector('label[for="' + el.id + '"]'); - return l ? l.childNodes[0].textContent.trim() : name; - } - window.leadPost = function (form, data) { - var lead = { firstName: null, lastName: null, emailAddress: null, accountName: null, phoneNumber: null }; - var notes = []; - data.forEach(function (value, name) { - value = String(value).trim(); - if (!value) return; - var key = name.toLowerCase(); - if (key === 'name' || key === 'full_name' || key === 'fullname') { - var parts = value.split(/\s+/); - lead.lastName = parts.pop(); - lead.firstName = parts.length ? parts.join(' ') : null; - } else if (key === 'first_name' || key === 'firstname') { - lead.firstName = value; - } else if (key === 'last_name' || key === 'lastname') { - lead.lastName = value; - } else if (mapped[key]) { - lead[mapped[key]] = value; - } else if (key === 'source') { - notes.unshift('Form: ' + value); - } else if (key === 'page') { - notes.push('Page: ' + location.origin + value); - } else { - notes.push(label(form, name) + ': ' + value); - } - }); - if (!lead.lastName) lead.lastName = lead.emailAddress || 'Website visitor'; - var q = new URLSearchParams(location.search); - ['utm_campaign', 'utm_source', 'utm_medium', 'utm_content'].forEach(function (k) { - if (q.get(k)) notes.push(k + ': ' + q.get(k)); - }); - if (document.referrer) notes.push('Came from: ' + document.referrer); - lead.description = notes.join('\n') || null; - return fetch(form.action, { - method: 'POST', - headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, - body: JSON.stringify(lead) - }); - }; -})(); -` +// script calls in place of its fetch: it returns the fetch's promise. It's +// the theme's, so new sites have it from the start. +var leadScript = theme.LeadScript() var ( captureURL = regexp.MustCompile(`^https://[^/\s]+/(?:[^\s?#]*/)?api/v1/LeadCapture/[A-Za-z0-9]+$`) @@ -216,10 +168,14 @@ func ReadForms(wc *hugorepo.Repo, cat *Catalog) FormState { st.Action = LeadsAction(string(raw)) } } - st.Script = wc.Exists(LeadScriptPath) + st.Script = wc.Exists(LeadScriptPath) || wc.Exists(theme.Dir+"/"+LeadScriptPath) if raw, err := os.ReadFile(wc.Dir + "/layouts/partials/sections/form.html"); err == nil { st.Patched = strings.Contains(string(raw), "window.leadPost") _, st.Supported = PatchFormPartial(string(raw)) + } else if raw, err := os.ReadFile(wc.Dir + "/" + theme.Dir + "/layouts/partials/sections/form.html"); err == nil { + // The theme's form already posts through the script. + st.Patched = strings.Contains(string(raw), "window.leadPost") + st.Supported = st.Patched } if cat != nil { if t := cat.Type("form"); t != nil { @@ -252,14 +208,18 @@ func ConnectForms(ctx context.Context, ap *seo.Applier, capture string, formPage return nil, errors.New("the site's settings aren't in a TOML file (hugo.toml), which is all Supermarket can change for now") } partial := "layouts/partials/sections/form.html" - raw, err := os.ReadFile(wc.Dir + "/" + partial) - if err != nil { + var files []struct{ path, body string } + if raw, err := os.ReadFile(wc.Dir + "/" + partial); err == nil { + patched, ok := PatchFormPartial(string(raw)) + if !ok { + return nil, errors.New("the site's form section doesn't post the way Supermarket knows (a fetch of form.action with the form's data), so it can't be connected automatically") + } + files = append(files, struct{ path, body string }{partial, patched}, struct{ path, body string }{LeadScriptPath, leadScript}) + } else if raw, err := os.ReadFile(wc.Dir + "/" + theme.Dir + "/" + partial); err == nil && strings.Contains(string(raw), "window.leadPost") { + // Supermarket's theme: its form and script are ready; only the address is needed. + } else { return nil, errors.New("the site has no form section (layouts/partials/sections/form.html)") } - patched, ok := PatchFormPartial(string(raw)) - if !ok { - return nil, errors.New("the site's form section doesn't post the way Supermarket knows (a fetch of form.action with the form's data), so it can't be connected automatically") - } branch := "supermarket/lead-forms" if err := wc.NewBranch(ctx, branch); err != nil { return nil, err @@ -268,9 +228,8 @@ func ConnectForms(ctx context.Context, ap *seo.Applier, capture string, formPage if err != nil { return nil, err } - for _, f := range []struct{ path, body string }{ - {cfg, SetLeadsAction(string(cfgRaw), capture)}, {partial, patched}, {LeadScriptPath, leadScript}, - } { + files = append(files, struct{ path, body string }{cfg, SetLeadsAction(string(cfgRaw), capture)}) + for _, f := range files { if err := wc.WriteFile(f.path, f.body); err != nil { return nil, err } diff --git a/internal/sites/theme_test.go b/internal/sites/theme_test.go new file mode 100644 index 0000000..fec5b04 --- /dev/null +++ b/internal/sites/theme_test.go @@ -0,0 +1,49 @@ +package sites + +import ( + "slices" + "strings" + "testing" + + "supermarket/internal/theme" +) + +func TestReadThemeSite(t *testing.T) { + files := map[string]string{ + "hugo.toml": "theme = 'supermarket'\n", + "content/_index.md": "---\ntitle: Home\nsections:\n - type: hero\n title: Hi\n - type: faq\n items: [{q: A, a: B}]\n---\n", + "README.md": "| `faq` | the site's own words |\n", + "layouts/partials/sections/faq.html": "{{ $s := . }}{{ range $s.items }}{{ .q }}{{ .a }}{{ end }}", + } + for p, b := range theme.Files() { + files[theme.Dir+"/"+p] = b + } + dir := write(t, files) + c, err := Read(dir, path) + if err != nil { + t.Fatal(err) + } + var names []string + for _, ty := range c.Types { + names = append(names, ty.Name) + } + slices.Sort(names) + want := []string{"callout", "cards", "checklist", "faq", "features", "final-cta", "form", "hero", "split", "stats", "steps", "table", "text"} + if !slices.Equal(names, want) { + t.Errorf("types: %v", names) + } + if !slices.Equal(c.Helpers, []string{"ctas", "head", "wrapper"}) { + t.Errorf("helpers: %v", c.Helpers) + } + if d := c.Type("hero").Doc; !strings.Contains(d, "`eyebrow`, `title`, `subhead`") { + t.Errorf("hero doc from the theme: %q", d) + } + // The site's own README and layout win over the theme's. + faq := c.Type("faq") + if faq.Doc != "the site's own words" || slices.Contains(faq.Layout, "ctas") { + t.Errorf("faq: %+v", faq) + } + if c.Type("form").Missing || !slices.Contains(c.Type("table").Layout, "rows") { + t.Errorf("form/table: %+v %+v", c.Type("form"), c.Type("table")) + } +} diff --git a/internal/theme/files/README.md b/internal/theme/files/README.md new file mode 100644 index 0000000..d1032c0 --- /dev/null +++ b/internal/theme/files/README.md @@ -0,0 +1,75 @@ +# The Supermarket site theme + +A Hugo theme for websites made of sections, from Federated Computer's +design system. Supermarket copies it into a site as `themes/supermarket/`; +the site's `hugo.toml` says `theme = "supermarket"`. Anything in the site's +own `layouts/` or `static/` takes precedence over the theme's, so a site can +change any part of it. + +## How pages are built + +Every page's content lives in its front matter as a `sections:` list. Each +section has a `type` and the fields that type takes. Sections alternate +white and grey bands; `hero` opens the page as a dark band and `final-cta` +closes it as one. + +Any section can take `id` (an anchor for links); without one it's made +from `kicker` or `headline`. Most take a heading: `kicker` (a small label +above), `headline` and `lede` (a sentence below). Buttons are `ctas`: a list +of `label`, `url` and `style` (`primary`, `ghost`, or `text` for a quiet +link). Text fields take Markdown inline (bold, links). + +| Type | Fields | +|------|--------| +| `hero` | `eyebrow`, `title`, `subhead`, `ctas`, `compact` (shorter). Optional `log`: lines of `tag` + `text` (`think: true` for a greyed step, `done: true` to close) typed out in a console beside the copy, titled `logTitle`; `logImage` puts a photo behind the band, credited by `logCaption` | +| `text` | `kicker`, `headline`, `body` (Markdown), `centered`, `ctas`; `offer` adds a highlighted card below: `badge`, `text`, `ctas`. Without a headline, the body shows as a large statement | +| `features` | `kicker`, `headline`, `lede`, `intro` (Markdown), `items` of `label` + `body` | +| `cards` | `kicker`, `headline`, `lede`, `columns` (2 or 3), `items` of `label`, `title`, `body`, `image`, `link`, `linktext`; `visual: true` draws a panel where there's no image; `ctas` | +| `steps` | `kicker`, `headline`, `lede`, `items` of `title` + `body` | +| `checklist` | `kicker`, `headline`, `lede`, `items` (Markdown strings) | +| `split` | `kicker`, `headline`, `lede`, `columns` of `title` + `items` (short lists), `ctas` | +| `stats` | `kicker`, `headline`, `lede`, `items` of `value` + `label` (values starting with a number count up), `ctas` | +| `table` | A comparison: `kicker`, `headline`, `lede`, `headers` (one per column of values; the last is yours, highlighted), `rows` of `label` + `cells` (one value per header), `ctas` | +| `faq` | `kicker`, `headline`, `lede`, `items` of `q` + `a`, `ctas` | +| `callout` | `kicker`, `headline`, `intro`, `text` | +| `final-cta` | `headline`, `body`, `ctas` (the dark closing band) | +| `form` | A lead form: `kicker`, `headline`, `lede`, `points` (a list beside the form), `note`, `subject` (names the lead), `submit` (the button), `success` (shown after sending), `fields` of `name`, `label`, `type` (`text`, `email`, `number`, `select`, `textarea`), `options`, `placeholder`, `hint`, `required`, `half: true` (two to a row). It posts to `[params.leads] action` (EspoCRM's Lead Capture, set up by Supermarket); while that's empty it opens an email to `[params.leads] email` | + +## Settings (hugo.toml) + +```toml +theme = "supermarket" + +[params] + tagline = "What the company does, in a line." + +[params.brand] + logo = "/images/logo.svg" # without one, the site's title is shown + favicon = "/favicon.svg" + dark = "#001a2b" # the top bar, hero and closing band + dark2 = "#052b42" + primary = "#e0ff4f" # the main button + accent = "#614efa" # links and highlights + font = "Inter" # a Google Fonts family + +[params.header] + ctas = [{ label = "Get started", url = "/contact/", style = "primary" }] + +[params.footer] + tagline = "..." + place = "City, Country" + copyright = "© 2026 Company, Inc." + groups = [{ title = "Company", menu = "footer_company" }] + +[params.leads] + action = "" + email = "hello@example.com" + +[params.plausible] + script = "https://plausible.example.com/js/script.js" + domain = "example.com" +``` + +The top bar shows the `main` menu (`[[menu.main]]`); an entry with +`params.dropdown = ""` opens that menu as a panel. The footer shows +the menus its groups name, `footer_social` and `footer_legal`. diff --git a/internal/theme/files/layouts/404.html b/internal/theme/files/layouts/404.html new file mode 100644 index 0000000..d635645 --- /dev/null +++ b/internal/theme/files/layouts/404.html @@ -0,0 +1,8 @@ +{{ define "main" }} +
+
+

Page not found

+

There's nothing at this address. Try the home page.

+
+
+{{ end }} diff --git a/internal/theme/files/layouts/_default/baseof.html b/internal/theme/files/layouts/_default/baseof.html new file mode 100644 index 0000000..37f9d96 --- /dev/null +++ b/internal/theme/files/layouts/_default/baseof.html @@ -0,0 +1,35 @@ + + + + {{ partial "head.html" . }} + + + + {{ partial "header.html" . }} +
+ {{ block "main" . }}{{ end }} +
+ {{ partial "footer.html" . }} + + + diff --git a/internal/theme/files/layouts/_default/list.html b/internal/theme/files/layouts/_default/list.html new file mode 100644 index 0000000..465558e --- /dev/null +++ b/internal/theme/files/layouts/_default/list.html @@ -0,0 +1,4 @@ +{{ define "main" }} + {{ partial "render-sections.html" . }} + {{ with .Content }}
{{ . }}
{{ end }} +{{ end }} diff --git a/internal/theme/files/layouts/_default/single.html b/internal/theme/files/layouts/_default/single.html new file mode 100644 index 0000000..465558e --- /dev/null +++ b/internal/theme/files/layouts/_default/single.html @@ -0,0 +1,4 @@ +{{ define "main" }} + {{ partial "render-sections.html" . }} + {{ with .Content }}
{{ . }}
{{ end }} +{{ end }} diff --git a/internal/theme/files/layouts/index.html b/internal/theme/files/layouts/index.html new file mode 100644 index 0000000..465558e --- /dev/null +++ b/internal/theme/files/layouts/index.html @@ -0,0 +1,4 @@ +{{ define "main" }} + {{ partial "render-sections.html" . }} + {{ with .Content }}
{{ . }}
{{ end }} +{{ end }} diff --git a/internal/theme/files/layouts/partials/footer.html b/internal/theme/files/layouts/partials/footer.html new file mode 100644 index 0000000..bd963c1 --- /dev/null +++ b/internal/theme/files/layouts/partials/footer.html @@ -0,0 +1,45 @@ +{{/* + The footer: the brand, [params.footer] tagline and place, the social + links (menu footer_social), the link groups in [params.footer] groups + (each a title and a menu's name), the legal links (menu footer_legal), + and the copyright line. +*/}} +{{ $b := site.Params.brand | default dict }} +{{ $f := site.Params.footer | default dict }} + diff --git a/internal/theme/files/layouts/partials/head.html b/internal/theme/files/layouts/partials/head.html new file mode 100644 index 0000000..d979b50 --- /dev/null +++ b/internal/theme/files/layouts/partials/head.html @@ -0,0 +1,43 @@ +{{/* Brand settings ([params.brand] in hugo.toml) override the stylesheet's + colors and font; see the theme's README. */}} +{{ $b := site.Params.brand | default dict }} +{{ $dark := $b.dark | default "#001a2b" }} +{{ $dark2 := $b.dark2 | default "#052b42" }} +{{ $primary := $b.primary | default "#e0ff4f" }} +{{ $accent := $b.accent | default "#614efa" }} +{{ $font := $b.font | default "Inter" }} + + +{{ if .IsHome }}{{ site.Title }}{{ with site.Params.tagline }} — {{ . }}{{ end }}{{ else }}{{ .Title }} · {{ site.Title }}{{ end }} + + + + + + + +{{ with $b.favicon }}{{ end }} + + + + + +{{ with site.Params.plausible }}{{ if .script }} + + +{{ end }}{{ end }} diff --git a/internal/theme/files/layouts/partials/header.html b/internal/theme/files/layouts/partials/header.html new file mode 100644 index 0000000..a545f3b --- /dev/null +++ b/internal/theme/files/layouts/partials/header.html @@ -0,0 +1,63 @@ +{{/* + The top bar: the logo (or the site's name), the main menu (a menu entry + with `params.dropdown = ""` opens that menu as a panel), and the + buttons in [params.header] ctas. Below 1000px the menu folds into a Menu + toggle (a
, so it works without JS). +*/}} +{{ $page := . }} +{{ $b := site.Params.brand | default dict }} +{{ $ctas := (site.Params.header | default dict).ctas }} +
+
+ + {{ with $b.logo }}{{ else }}{{ site.Title }}{{ end }} + + + + + {{ with $ctas }} +
+ {{ range . }}{{ .label }}{{ end }} +
+ {{ end }} + + +
+
diff --git a/internal/theme/files/layouts/partials/render-sections.html b/internal/theme/files/layouts/partials/render-sections.html new file mode 100644 index 0000000..fa11db4 --- /dev/null +++ b/internal/theme/files/layouts/partials/render-sections.html @@ -0,0 +1,9 @@ +{{ range .Params.sections }} + {{ if eq .type "hero" }} + {{ partial "sections/hero.html" . }} + {{ else if eq .type "final-cta" }} + {{ partial "sections/final-cta.html" . }} + {{ else if templates.Exists (printf "partials/sections/%s.html" .type) }} + {{ partial "sections/wrapper.html" . }} + {{ end }} +{{ end }} diff --git a/internal/theme/files/layouts/partials/section-id.html b/internal/theme/files/layouts/partials/section-id.html new file mode 100644 index 0000000..2fde65b --- /dev/null +++ b/internal/theme/files/layouts/partials/section-id.html @@ -0,0 +1,11 @@ +{{/* + Anchor id for a section: its own `id`, else one made from its `toc`, + `kicker`, or `headline`. Used by the section wrapper. +*/}} +{{ $id := "" }} +{{ with .id }} + {{ $id = . }} +{{ else }} + {{ with (or .toc .kicker .headline) }}{{ $id = . | plainify | anchorize }}{{ end }} +{{ end }} +{{ return $id }} diff --git a/internal/theme/files/layouts/partials/sections/callout.html b/internal/theme/files/layouts/partials/sections/callout.html new file mode 100644 index 0000000..d67005c --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/callout.html @@ -0,0 +1,4 @@ +{{ $s := . }} +{{ partial "sections/head.html" $s }} +{{ with $s.intro }}
{{ . | markdownify }}
{{ end }} +

{{ $s.text | markdownify }}

diff --git a/internal/theme/files/layouts/partials/sections/cards.html b/internal/theme/files/layouts/partials/sections/cards.html new file mode 100644 index 0000000..be065e7 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/cards.html @@ -0,0 +1,22 @@ +{{/* + A grid of cards: `items`, each with `title`, `body`, optional `label` + (a small tag above the title), `image`, and `link` (+ `linktext`). + Without an image, `visual: true` draws a gradient panel in its place. +*/}} +{{ $s := . }} +{{ partial "sections/head.html" $s }} + +{{ if $s.ctas }}
{{ partial "sections/ctas.html" $s.ctas }}
{{ end }} diff --git a/internal/theme/files/layouts/partials/sections/checklist.html b/internal/theme/files/layouts/partials/sections/checklist.html new file mode 100644 index 0000000..f2e78e8 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/checklist.html @@ -0,0 +1,5 @@ +{{ $s := . }} +{{ partial "sections/head.html" $s }} +
    + {{ range $s.items }}
  • {{ . | markdownify }}
  • {{ end }} +
diff --git a/internal/theme/files/layouts/partials/sections/ctas.html b/internal/theme/files/layouts/partials/sections/ctas.html new file mode 100644 index 0000000..3234a83 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/ctas.html @@ -0,0 +1,17 @@ +{{/* + Buttons. `primary` is the solid lime button, `ghost` the outlined + secondary, `text` a quiet link with an arrow. Any trailing "→" in a + label is dropped — the arrow is drawn. +*/}} +{{ range . }} + {{ $label := replaceRE `\s*[→↗]\s*$` "" .label }} + {{ $external := or (hasPrefix .url "http") (hasPrefix .url "mailto:") }} + {{ $href := cond (or $external (hasPrefix .url "#")) .url (.url | relURL) }} + {{ if eq .style "ghost" }} + {{ $label }} + {{ else if eq .style "text" }} + {{ $label }} + {{ else }} + {{ $label }} + {{ end }} +{{ end }} diff --git a/internal/theme/files/layouts/partials/sections/faq.html b/internal/theme/files/layouts/partials/sections/faq.html new file mode 100644 index 0000000..c39f193 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/faq.html @@ -0,0 +1,11 @@ +{{ $s := . }} +{{ partial "sections/head.html" $s }} +
+ {{ range $s.items }} +
+ {{ .q }} +

{{ .a | markdownify }}

+
+ {{ end }} +
+{{ if $s.ctas }}
{{ partial "sections/ctas.html" $s.ctas }}
{{ end }} diff --git a/internal/theme/files/layouts/partials/sections/features.html b/internal/theme/files/layouts/partials/sections/features.html new file mode 100644 index 0000000..fc99cfe --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/features.html @@ -0,0 +1,8 @@ +{{ $s := . }} +{{ partial "sections/head.html" $s }} +{{ with $s.intro }}
{{ . | markdownify }}
{{ end }} +
    + {{ range $s.items }} +
  • {{ .label }}{{ .body | markdownify }}
  • + {{ end }} +
diff --git a/internal/theme/files/layouts/partials/sections/final-cta.html b/internal/theme/files/layouts/partials/sections/final-cta.html new file mode 100644 index 0000000..03f42b1 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/final-cta.html @@ -0,0 +1,10 @@ +{{ $s := . }} + diff --git a/internal/theme/files/layouts/partials/sections/form.html b/internal/theme/files/layouts/partials/sections/form.html new file mode 100644 index 0000000..66ed5e2 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/form.html @@ -0,0 +1,103 @@ +{{/* + A lead form: the heading, lede, and an optional `points` list on the + left; the form on the right. `fields` take `name`, `label`, `type` + (text, email, number, select, textarea; default text), optional + `options` (select), `placeholder`, `hint`, `required`, and `half: true` + to sit two to a row. `submit` labels the button; `subject` names the lead + (e.g. "Partner platform"); `success` is shown once it's sent. + + Where it goes: `[params.leads] action` in hugo.toml. When set, the form + POSTs its fields there (with `source` and `page` added) and shows + `success`. When empty, it opens an email to `[params.leads] email` with + the answers filled in, so leads still arrive before a backend exists. + Without JS, the form falls back to a plain POST (or mailto) of the same. +*/}} + +{{ $s := . }} +{{ $leads := site.Params.leads | default dict }} +{{ $action := $leads.action | default "" }} +{{ $email := $leads.email | default site.Params.supportEmail }} +{{ $subject := $s.subject | default "Website inquiry" }} +
+
+ {{ partial "sections/head.html" $s }} + {{ with $s.points }} +
    + {{ range . }}
  • {{ . | markdownify }}
  • {{ end }} +
+ {{ end }} + {{ with $s.note }}

{{ . | markdownify }}

{{ end }} +
+ +
+ + {{ range $i, $f := $s.fields }} + {{ $id := printf "lead-%s" $f.name }} + {{ $type := $f.type | default "text" }} +
+ + {{ if eq $type "select" }} + + {{ else if eq $type "textarea" }} + + {{ else }} + + {{ end }} + {{ with $f.hint }}{{ . }}{{ end }} +
+ {{ end }} + + +

We'll use this only to reply to you. No newsletters unless you ask. See our Privacy Policy.

+
+
+ diff --git a/internal/theme/files/layouts/partials/sections/head.html b/internal/theme/files/layouts/partials/sections/head.html new file mode 100644 index 0000000..5f83dbd --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/head.html @@ -0,0 +1,8 @@ +{{/* Shared section heading: optional kicker (a mono eyebrow), headline, and lede. */}} +{{ if or .kicker .headline .lede }} +
+ {{ with .kicker }}

{{ . }}

{{ end }} + {{ with .headline }}

{{ . | markdownify }}

{{ end }} + {{ with .lede }}

{{ . | markdownify }}

{{ end }} +
+{{ end }} diff --git a/internal/theme/files/layouts/partials/sections/hero.html b/internal/theme/files/layouts/partials/sections/hero.html new file mode 100644 index 0000000..53fe052 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/hero.html @@ -0,0 +1,93 @@ +{{/* + The opening of every page: a full-bleed dark band. On the left, an + optional note (the eyebrow), the statement (title), the dek (subhead) and + the actions (ctas); on the right, when `log:` is set, an activity log + typed out line by line. `compact: true` makes it shorter; `logImage` sets + a photo behind the whole band (`logCaption` credits it). +*/}} +{{ $s := . }} +{{ $visual := $s.log }} +
+ {{ with $s.logImage }}{{ end }} +
+
+ {{ with $s.eyebrow }}

{{ . }}

{{ end }} +

{{ $s.title | markdownify }}

+ {{ with $s.subhead }}

{{ . | markdownify }}

{{ end }} + {{ if $s.ctas }}
{{ partial "sections/ctas.html" $s.ctas }}
{{ end }} +
+ + {{ with $s.log }} + {{/* + An agent's activity log, typed out line by line (see the script below). + Lines take `tag` + `text`; `think: true` marks a reasoning step (greyed, + with a pause); `done: true` closes the run. The window keeps a fixed + height and scrolls as lines arrive. `logCaption` credits the photo. + */}} +
+
+
+ {{ $s.logTitle | default "activity" }} + Live +
+
+
    + {{ range . }} +
  1. + {{ .tag | default (cond .done "Done" (cond (.think | default false) "Thinking" "")) }} + {{ .text }} +
  2. + {{ end }} +
+
+
+
+ + {{ end }} +
+ {{ with $s.logCaption }}

{{ . }}

{{ end }} +
diff --git a/internal/theme/files/layouts/partials/sections/split.html b/internal/theme/files/layouts/partials/sections/split.html new file mode 100644 index 0000000..294f405 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/split.html @@ -0,0 +1,14 @@ +{{/* Two columns, each a heading plus a short list. */}} +{{ $s := . }} +{{ partial "sections/head.html" $s }} +
+ {{ range $s.columns }} +
+

{{ .title }}

+
    + {{ range .items }}
  • {{ . | markdownify }}
  • {{ end }} +
+
+ {{ end }} +
+{{ if $s.ctas }}
{{ partial "sections/ctas.html" $s.ctas }}
{{ end }} diff --git a/internal/theme/files/layouts/partials/sections/stats.html b/internal/theme/files/layouts/partials/sections/stats.html new file mode 100644 index 0000000..b3fce15 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/stats.html @@ -0,0 +1,45 @@ +{{/* + Stat tiles. Values that start with a number ("80%+", "100+", "30X") count + up from zero when the row scrolls into view; others show as written. + Without JS or with reduced motion, every value simply shows. +*/}} +{{ $s := . }} +{{ partial "sections/head.html" $s }} +
+ {{ range $s.items }} +
+ {{ .value }} + {{ .label }} +
+ {{ end }} +
+ +{{ if $s.ctas }}
{{ partial "sections/ctas.html" $s.ctas }}
{{ end }} diff --git a/internal/theme/files/layouts/partials/sections/steps.html b/internal/theme/files/layouts/partials/sections/steps.html new file mode 100644 index 0000000..0593a49 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/steps.html @@ -0,0 +1,13 @@ +{{ $s := . }} +{{ partial "sections/head.html" $s }} +
    + {{ range $i, $item := $s.items }} +
  1. +
    +

    {{ $item.title }}

    + {{ printf "%03d" (add $i 1) }} +
    +

    {{ $item.body | markdownify }}

    +
  2. + {{ end }} +
diff --git a/internal/theme/files/layouts/partials/sections/table.html b/internal/theme/files/layouts/partials/sections/table.html new file mode 100644 index 0000000..ee8c881 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/table.html @@ -0,0 +1,28 @@ +{{ $s := . }} +{{ partial "sections/head.html" $s }} +
+ + + + + {{ range $s.headers }}{{ end }} + + + + {{ range $s.rows }} + {{ $n := len .cells }} + + + {{ range $i, $cell := .cells }} + {{ if eq (add $i 1) $n }} + + {{ else }} + + {{ end }} + {{ end }} + + {{ end }} + +
{{ . }}
{{ .label }}{{ $cell }}{{ $cell }}
+
+{{ if $s.ctas }}
{{ partial "sections/ctas.html" $s.ctas }}
{{ end }} diff --git a/internal/theme/files/layouts/partials/sections/text.html b/internal/theme/files/layouts/partials/sections/text.html new file mode 100644 index 0000000..d4387d5 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/text.html @@ -0,0 +1,20 @@ +{{/* + Prose, with optional `ctas`. `offer` adds a highlighted card below: + `badge` (a small lime tag), `text`, and `ctas`. +*/}} +{{ $s := . }} +{{ partial "sections/head.html" $s }} +{{/* markdownify drops the

around a lone paragraph; put it back so inline markup stays in the flow */}} +{{ $body := $s.body | markdownify }} +{{ if not (findRE `^\s*<(p|ul|ol|h[1-6]|div|blockquote|pre|table|figure|hr)[\s>]` $body) }}{{ $body = printf "

%s

" $body | safeHTML }}{{ end }} +
+ {{ $body }} +
+{{ if $s.ctas }}
{{ partial "sections/ctas.html" $s.ctas }}
{{ end }} +{{ with $s.offer }} +
+ {{ with .badge }}{{ . }}{{ end }} +

{{ .text | markdownify }}

+ {{ with .ctas }}
{{ partial "sections/ctas.html" . }}
{{ end }} +
+{{ end }} diff --git a/internal/theme/files/layouts/partials/sections/wrapper.html b/internal/theme/files/layouts/partials/sections/wrapper.html new file mode 100644 index 0000000..ea65d72 --- /dev/null +++ b/internal/theme/files/layouts/partials/sections/wrapper.html @@ -0,0 +1,7 @@ +{{ $s := . }} +{{ $id := partial "section-id.html" $s }} +
+
+ {{ partial (printf "sections/%s.html" $s.type) $s }} +
+
diff --git a/internal/theme/files/static/css/supermarket.css b/internal/theme/files/static/css/supermarket.css new file mode 100644 index 0000000..5ac7dec --- /dev/null +++ b/internal/theme/files/static/css/supermarket.css @@ -0,0 +1,1529 @@ +/* ========================================================================== + Supermarket's site theme, from Federated Computer's design system. Each + site's [params.brand] colors and font override the variables below (see + layouts/partials/head.html). + Modeled on nebius.com: a dark navy top bar and hero, full-bleed bands + that alternate white and light grey, a centered 1280px container, big + tight Inter headlines, rounded filled cards, a lime primary button and a + violet accent. The footer and closing call to action return to navy. + ========================================================================== */ + +:root { + /* color */ + --navy-deep: #001a2b; + --navy: #052b42; + --navy-2: #0f2839; + --lime: #e0ff4f; + --lime-deep: #d1f42f; + --violet: #614efa; + --violet-deep: #4c3ae0; + --violet-7: color-mix(in srgb, var(--violet) 7%, transparent); + --violet-11: color-mix(in srgb, var(--violet) 10%, transparent); + --paper: #f3f4f5; + --paper-2: #e9ebee; + --rule: #d9dee2; + --ink: #001a2b; + --ink-86: #001a2bdb; + --ink-68: #001a2bad; + --ink-60: #001a2b99; + --ink-45: #001a2b73; + --ink-22: #001a2b38; + --on-dark: #ffffff; + --on-dark-72: #ffffffb8; + --on-dark-56: #ffffff8f; + --on-dark-16: #ffffff29; + --on-dark-8: #ffffff14; + --live: var(--lime); + /* older names, kept so any stray reference still resolves */ + --blue: var(--violet); + --blue-deep: var(--violet-deep); + --blue-7: var(--violet-7); + --blue-11: var(--violet-11); + + /* type */ + --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; + --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; + --fs-statement: 64px; + --fs-h2: 48px; + --fs-dek: 20px; + --fs-body: 17px; + --lh-body: 1.6; + + /* layout */ + --wrap: 1280px; + --gutter: 32px; + --head-h: 72px; + --sp-section: 104px; + --radius: 16px; + --radius-sm: 10px; + --measure: 680px; + + /* motion */ + --ease-out: cubic-bezier(.22, 1, .36, 1); + --ease-hover: cubic-bezier(.25, .1, .25, 1); + --ease-standard: cubic-bezier(.4, 0, .2, 1); + --dur-hover: .2s; + --dur-press: .12s; +} + +@media (max-width: 1000px) { + :root { --fs-statement: 48px; --fs-h2: 38px; --sp-section: 80px; --head-h: 64px; } +} +@media (max-width: 600px) { + :root { --fs-statement: 38px; --fs-h2: 30px; --fs-dek: 17px; --fs-body: 16px; --sp-section: 64px; --gutter: 20px; } +} + +/* ---- utilities ---- */ +.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } +.mb-2 { margin-bottom: 28px; } +.mt-1 { margin-top: 12px; } +.mt-2 { margin-top: 32px; } + +/* ---- reset ---- */ +*, *::before, *::after { box-sizing: border-box; } +html { + scroll-behavior: smooth; + scroll-padding-top: var(--head-h); + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +body { + margin: 0; + background: #fff; + color: var(--ink); + font-family: var(--font); + font-size: var(--fs-body); + line-height: var(--lh-body); + font-feature-settings: "cv11", "ss01"; + display: flex; flex-direction: column; min-height: 100vh; +} +main { flex: 1 0 auto; } +img { max-width: 100%; display: block; } +a { color: inherit; } +h1, h2, h3, h4, p, figure, blockquote { margin: 0; } +h1, h2, h3 { text-wrap: balance; font-weight: 500; } +p, figcaption, dd { text-wrap: pretty; } +ol, ul { margin: 0; padding: 0; list-style: none; } +strong, b { font-weight: 600; } +main:focus { outline: none; } + +:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; } + +.skip { + position: absolute; left: 12px; top: -48px; z-index: 50; + background: var(--lime); color: var(--navy-deep); padding: 8px 12px; font-size: 14px; text-decoration: none; border-radius: 6px; +} +.skip:focus { top: 12px; } + +.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; } + +.eyebrow, +.kicker { + font-family: var(--font-mono); + font-size: 12px; + font-weight: 500; + line-height: 1.3; + letter-spacing: .08em; + text-transform: uppercase; + color: var(--violet); +} + +/* ========================================================================== + Top bar — logo, pages with dropdown panels, account actions + ========================================================================== */ +.site-head { + position: sticky; top: 0; z-index: 30; + background: var(--navy-deep); + color: var(--on-dark); + border-bottom: 1px solid var(--on-dark-8); + transition: background-color var(--dur-hover) var(--ease-hover); +} +.site-head.is-scrolled { background: color-mix(in srgb, var(--navy-deep) 94%, transparent); backdrop-filter: blur(12px); } +.head-bar { display: flex; align-items: center; gap: 32px; height: var(--head-h); } +.brand { display: inline-flex; flex: none; } +.brand-logo { width: 148px; height: auto; translate: 0 -3px; } /* lifts the wordmark baseline onto the nav text baseline */ + +.head-nav { display: flex; align-items: center; gap: 2px; margin-right: auto; } +.nav-item { position: relative; } +.nav-link { + display: inline-flex; align-items: center; gap: 7px; + padding: 8px 12px; border-radius: 8px; + font-size: 15px; font-weight: 500; line-height: 1.3; + color: var(--on-dark-72); text-decoration: none; + transition: color var(--dur-hover) var(--ease-hover), background-color var(--dur-hover) var(--ease-hover); +} +.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-link[aria-current] { color: var(--on-dark); } +.nav-link:hover, .has-drop:hover > .nav-link { background: var(--on-dark-8); } +.nav-caret { opacity: .7; transition: rotate var(--dur-hover) var(--ease-hover); } +.has-drop:hover .nav-caret, .has-drop:focus-within .nav-caret { rotate: 180deg; } + +.drop { + position: absolute; left: -8px; top: 100%; + padding-top: 14px; + opacity: 0; visibility: hidden; translate: 0 6px; + transition: opacity .18s var(--ease-hover), translate .18s var(--ease-hover), visibility 0s linear .18s; +} +.has-drop:hover .drop, .has-drop:focus-within .drop { + opacity: 1; visibility: visible; translate: 0 0; + transition: opacity .18s var(--ease-hover), translate .18s var(--ease-hover), visibility 0s; +} +.drop-panel { + display: grid; gap: 2px; + min-width: 380px; padding: 10px; + background: #fff; color: var(--ink); + border-radius: var(--radius); + box-shadow: 0 24px 60px -12px color-mix(in srgb, var(--navy-deep) 34%, transparent), 0 0 0 1px color-mix(in srgb, var(--navy-deep) 5%, transparent); +} +.drop-link { + display: flex; flex-direction: column; gap: 2px; + padding: 12px 14px; border-radius: var(--radius-sm); + text-decoration: none; + transition: background-color var(--dur-hover) var(--ease-hover); +} +.drop-link:hover, .drop-link[aria-current] { background: var(--paper); } +.drop-name { font-size: 15px; font-weight: 600; line-height: 1.35; } +.drop-desc { font-size: 13px; line-height: 1.45; color: var(--ink-60); } + +.head-actions { display: flex; align-items: center; gap: 20px; flex: none; } +.head-signin { + font-size: 15px; font-weight: 500; color: var(--on-dark-72); text-decoration: none; + transition: color var(--dur-hover) var(--ease-hover); +} +.head-signin:hover, .head-signin[aria-current] { color: var(--on-dark); } + +/* ---- mobile menu (a
, so it works with JS off) ---- */ +.menu { display: none; margin-left: auto; } +.menu summary { + list-style: none; + display: inline-flex; align-items: center; gap: 10px; + height: 40px; padding: 0 14px; cursor: pointer; + border: 1px solid var(--on-dark-16); border-radius: 8px; + font-size: 14px; font-weight: 500; color: var(--on-dark); +} +.menu summary::-webkit-details-marker { display: none; } +.menu-glyph { display: inline-grid; gap: 4px; width: 14px; } +.menu-glyph i { display: block; height: 1.5px; background: currentColor; transition: rotate .2s var(--ease-out), translate .2s var(--ease-out); } +.menu[open] .menu-glyph i { translate: 0 2.75px; rotate: 45deg; } +.menu[open] .menu-glyph i + i { translate: 0 -2.75px; rotate: -45deg; } +.menu-panel { + position: absolute; left: 0; right: 0; top: 100%; + max-height: calc(100vh - var(--head-h)); overflow-y: auto; + background: #fff; color: var(--ink); + border-bottom: 1px solid var(--rule); + box-shadow: 0 24px 40px -20px color-mix(in srgb, var(--navy-deep) 25%, transparent); + display: flex; flex-direction: column; + padding: 8px var(--gutter) 24px; +} +.menu-panel a { text-decoration: none; } +.menu-top { padding: 14px 0; font-size: 16px; font-weight: 600; border-top: 1px solid var(--rule); } +.menu-top:first-child { border-top: 0; } +.menu-sub { display: flex; flex-direction: column; padding: 0 0 12px 14px; margin-top: -6px; } +.menu-sub a { padding: 7px 0; font-size: 15px; color: var(--ink-68); } +.menu-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 1px solid var(--rule); } + +@media (max-width: 1080px) { + .head-nav, .head-actions { display: none; } + .menu { display: block; } + .brand-logo { width: 128px; } +} + +/* ========================================================================== + Buttons & links + ========================================================================== */ +.btn { + position: relative; + display: inline-flex; align-items: center; justify-content: center; gap: 10px; + height: 48px; padding: 0 22px; + font-family: var(--font); + font-size: 15px; font-weight: 600; line-height: 1; + white-space: nowrap; text-decoration: none; + border: 1px solid transparent; border-radius: 8px; cursor: pointer; + transition: background-color var(--dur-hover) var(--ease-hover), border-color var(--dur-hover) var(--ease-hover), color var(--dur-hover) var(--ease-hover), transform var(--dur-press) var(--ease-out); +} +.btn:active { transform: scale(.98); } +.btn .arrow { margin: 0; } + +.btn-primary { background: var(--lime); color: var(--navy-deep); } +.btn-primary:hover, .btn-primary:focus-visible { background: var(--lime-deep); } + +.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink-22); } +.btn-secondary:hover { border-color: var(--ink); } + +.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; } + +/* on the dark bands */ +.hero .btn-secondary, .cta .btn-secondary, .banner .btn-secondary, .section-stats .btn-secondary { + color: var(--on-dark); border-color: var(--on-dark-16); +} +.hero .btn-secondary:hover, .cta .btn-secondary:hover, .banner .btn-secondary:hover, .section-stats .btn-secondary:hover { + background: var(--on-dark-8); border-color: var(--on-dark-56); +} +/* on white, the lime needs a navy edge to hold its shape */ +.section .btn-primary, .form-page .btn-primary { background: var(--navy-deep); color: #fff; } +.section .btn-primary:hover, .form-page .btn-primary:hover { background: var(--violet); } +.section-banner .btn-primary { background: var(--lime); color: var(--navy-deep); } +.section-banner .btn-primary:hover { background: var(--lime-deep); } + +/* the quiet link */ +.more, .btn-text { + display: inline-flex; align-items: center; + font-size: 15px; font-weight: 600; line-height: 1.4; + color: var(--violet); text-decoration: none; + transition: color var(--dur-hover) var(--ease-hover); +} +.more:hover, .btn-text:hover { color: var(--violet-deep); } +.arrow { + display: inline-block; margin-inline-start: .4em; font-weight: 400; + transition: translate var(--dur-hover) var(--ease-hover); +} +a:hover > .arrow, a:focus-visible > .arrow, a:hover .arrow { translate: 3px 0; } + +.actions, .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; } +.cta-row { margin-top: 40px; gap: 12px 32px; } +@media (max-width: 520px) { + .hero .actions, .cta .actions { flex-direction: column; align-items: stretch; } +} + +/* ========================================================================== + Hero — a full-bleed navy band, copy left, a visual right + ========================================================================== */ +.hero { + position: relative; isolation: isolate; overflow: hidden; + padding: 104px 0 120px; + background: + radial-gradient(60% 80% at 92% 8%, color-mix(in srgb, var(--violet) 40%, transparent) 0%, transparent 60%), + radial-gradient(40% 50% at 70% 110%, color-mix(in srgb, var(--lime) 14%, transparent) 0%, transparent 70%), + var(--navy-deep); + color: var(--on-dark); +} +.hero::before { + content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; + background: + linear-gradient(var(--on-dark-8) 1px, transparent 1px) 0 0 / 64px 64px, + linear-gradient(90deg, var(--on-dark-8) 1px, transparent 1px) 0 0 / 64px 64px; + -webkit-mask-image: radial-gradient(80% 90% at 80% 30%, #000 0%, transparent 75%); + mask-image: radial-gradient(80% 90% at 80% 30%, #000 0%, transparent 75%); + opacity: .7; +} +.hero-compact { padding: 80px 0 88px; } +.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; } +.hero.has-visual .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; } +.hero-copy { max-width: 820px; } + +/* a photo behind the whole band, darkened toward the copy */ +.hero.has-image { background: var(--navy-deep); } +.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; } +.hero.has-image::before { + -webkit-mask-image: none; mask-image: none; opacity: 1; + background: linear-gradient(90deg, color-mix(in srgb, var(--navy-deep) 96%, transparent) 0%, color-mix(in srgb, var(--navy-deep) 87%, transparent) 38%, color-mix(in srgb, var(--navy-deep) 45%, transparent) 70%, color-mix(in srgb, var(--navy-deep) 25%, transparent) 100%), + linear-gradient(0deg, color-mix(in srgb, var(--navy-deep) 80%, transparent) 0%, transparent 40%); +} +.hero-caption { + position: absolute; right: var(--gutter); bottom: 14px; + font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; + color: var(--on-dark-56); +} + +.note { + display: inline-flex; align-items: center; gap: 10px; + padding: 6px 14px 6px 12px; + border: 1px solid var(--on-dark-16); border-radius: 999px; + background: var(--on-dark-8); + font-size: 14px; line-height: 1.45; color: var(--on-dark-72); +} +.note-live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 14%, transparent); } + +.statement { + font-size: var(--fs-statement); + line-height: 1.04; + letter-spacing: -.035em; + font-weight: 500; + color: var(--on-dark); +} +.note + .statement { margin-top: 28px; } +.dek { + margin-top: 24px; + max-width: 36em; + font-size: var(--fs-dek); + line-height: 1.55; + color: var(--on-dark-72); +} +.dek strong { color: var(--on-dark); font-weight: 600; } +.hero .actions { margin-top: 40px; } +.hero-compact .statement { font-size: calc(var(--fs-statement) * .85); } +.hero-compact:not(.has-visual) .hero-copy { max-width: 900px; } + +@media (max-width: 1000px) { + .hero, .hero-compact { padding: 72px 0 80px; } + .hero.has-visual .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } +} + +/* the field: the four layers drawn as bars on a deep panel */ +.hero-field { + position: relative; + aspect-ratio: 1.35; + overflow: hidden; + border-radius: 20px; + background: + radial-gradient(#ffffff1f 1px, transparent 1.25px) 10px 10px / 20px 20px, + radial-gradient(90% 90% at 90% 0%, color-mix(in srgb, var(--violet) 60%, transparent) 0%, transparent 60%), + var(--navy); + box-shadow: inset 0 0 0 1px var(--on-dark-16); +} +.hero-compact .hero-field { aspect-ratio: 1.6; } +.field-stack { + position: absolute; left: 32px; right: 32px; bottom: 32px; + display: flex; flex-direction: column-reverse; gap: 14px; +} +.field-layer { display: flex; flex-direction: column; gap: 7px; } +.field-layer i { + position: relative; overflow: hidden; + display: block; height: 10px; border-radius: 99px; + width: calc(100% - var(--i) * 16%); + background: var(--violet); +} +.field-layer:first-child i { background: var(--lime); } +.field-layer i::after { + content: ""; position: absolute; inset: 0; + background: linear-gradient(90deg, transparent, #ffffffb3 50%, transparent); + translate: -100% 0; + animation: scan 4.8s var(--ease-standard) infinite; + animation-delay: calc(var(--i) * .5s); +} +@keyframes scan { 0% { translate: -100% 0; } 45%, 100% { translate: 100% 0; } } +.field-layer em { + font-style: normal; + font-family: var(--font-mono); + font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; + color: var(--on-dark-72); white-space: nowrap; +} +@media (max-width: 600px) { + .hero-field, .hero-compact .hero-field { aspect-ratio: 1.1; } + .field-stack { left: 20px; right: 20px; bottom: 20px; } +} + +/* the agent log: a glass console, typed out by the hero's script */ +.hero-log { position: relative; } +.log-window { + background: color-mix(in srgb, var(--navy-deep) 72%, transparent); + -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); + border-radius: var(--radius); + box-shadow: inset 0 0 0 1px var(--on-dark-16), 0 40px 80px -24px #000000a6; + overflow: hidden; +} +.log-bar { + display: flex; justify-content: space-between; align-items: center; gap: 12px; + padding: 12px 18px; border-bottom: 1px solid var(--on-dark-8); background: var(--on-dark-8); + font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--on-dark-56); +} +.log-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.log-live { display: inline-flex; align-items: center; gap: 8px; flex: none; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; color: var(--lime); } +.log-live .note-live { box-shadow: none; width: 6px; height: 6px; } +.log-lines { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; } +.log-line { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; align-items: baseline; } +.log-tag { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #a69cff; } +.log-text { color: #ffffffe0; } +.log-line.is-done .log-tag { color: var(--lime); } +.log-line.is-done .log-text { color: var(--lime); font-weight: 500; } +/* animated only with JS and motion allowed; otherwise every line simply shows */ +.hero-log.is-animated .log-line { opacity: 0; } +.hero-log.is-animated .log-line.is-on { opacity: 1; } +.hero-log.is-animated .log-line.is-on .log-text { animation: log-type calc(var(--n) * 16ms) steps(var(--n)) both; } +.hero-log.is-animated .log-line.is-typed .log-text { animation: none; } +/* a fixed-height window that scrolls as lines arrive, fading out at the top */ +.hero-log.is-animated .log-view { + height: 300px; overflow: hidden; + -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32px); + mask-image: linear-gradient(to bottom, transparent, #000 32px); +} +.hero-log.is-animated .log-lines { transition: transform .45s var(--ease-out), opacity .4s var(--ease-standard); } +/* reasoning steps: greyed, with a spinner in place of the cursor */ +.log-line.is-think .log-tag { color: var(--on-dark-56); } +.log-line.is-think .log-text { color: var(--on-dark-56); font-style: italic; } +.hero-log.is-animated .log-line.is-current .log-text::after { + content: ""; display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; + background: var(--lime); animation: log-caret 1s steps(1) infinite; +} +.hero-log.is-animated .log-line.is-think.is-current .log-text::after { + content: "⠋"; width: auto; height: auto; margin-left: 6px; background: none; + font-style: normal; color: var(--lime); animation: log-spin .8s steps(1) infinite; +} +@keyframes log-spin { + 0% { content: "⠋"; } 12.5% { content: "⠙"; } 25% { content: "⠹"; } 37.5% { content: "⠸"; } + 50% { content: "⠼"; } 62.5% { content: "⠴"; } 75% { content: "⠦"; } 87.5% { content: "⠧"; } +} +.hero-log.is-clearing .log-lines { opacity: 0; } +@keyframes log-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } } +@keyframes log-caret { 50% { opacity: 0; } } +@media (max-width: 600px) { + .log-lines { font-size: 12px; } + .log-line { grid-template-columns: minmax(0, 1fr); gap: 0; } + .hero-log.is-animated .log-view { height: 380px; } +} + +/* the layer panel shown on a solution's hero */ +.hero-fit { + padding: 24px 26px 16px; + border-radius: var(--radius); + background: var(--on-dark-8); + box-shadow: inset 0 0 0 1px var(--on-dark-16); +} +.hero-fit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; } +.hero-fit-title { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark); } +.hero-fit .more { font-size: 14px; color: var(--lime); } +.hero-fit .fit-row { border-color: var(--on-dark-8); font-size: 15px; padding: 12px 0; } +.hero-fit .fit-bar { background: var(--on-dark-8); } +.hero-fit .fit-row.is-yes .fit-bar span { background: var(--lime); } +.hero-fit .fit-row.is-own .fit-bar span { background: repeating-linear-gradient(90deg, var(--lime) 0 3px, transparent 3px 6px); } +.hero-fit .fit-name { color: var(--on-dark); } +.hero-fit .fit-row.is-no .fit-name, .hero-fit .fit-row.is-no .fit-state { color: var(--on-dark-56); } +.hero-fit .fit-state { color: var(--lime); } +.hero-fit .fit-row.is-own .fit-state { color: var(--on-dark); } + +/* ========================================================================== + Sections — full-bleed bands that alternate white and grey + ========================================================================== */ +.section { + --section-bg: #fff; + --surface: var(--paper); + padding-block: var(--sp-section); + background: var(--section-bg); +} +main > .section:nth-of-type(even) { --section-bg: var(--paper); --surface: #fff; } + +.section-head { margin-bottom: 56px; max-width: 880px; } +.section-head .eyebrow { margin-bottom: 18px; } +.section-head h2 { + font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.03em; color: var(--ink); +} +.section-head .lede { + margin-top: 20px; max-width: var(--measure); + font-size: 19px; line-height: 1.55; color: var(--ink-68); +} +.section-head:has(.eyebrow):not(:has(h2)) { margin-bottom: 20px; } + +/* text sections: the heading on the left, the copy on the right */ +@media (min-width: 1001px) { + .section-text .wrap:has(> .section-head) { + display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 80px; align-items: start; + } + .section-text .wrap > .section-head { grid-row: span 3; margin-bottom: 0; } + .section-text .wrap > .prose, .section-text .wrap > .cta-row { grid-column: 2; } + .section-text .wrap > .prose { padding-top: 34px; } +} +/* a text section without a heading is a large statement */ +.section-text .wrap:not(:has(> .section-head)) .prose { max-width: 1040px; } +.section-text .wrap:not(:has(> .section-head)) .prose, +.section-text .wrap:not(:has(> .section-head)) .prose p { + font-size: clamp(24px, 3vw, 36px); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; color: var(--ink); +} +/* *phrases* in a statement are picked out in violet */ +.section-text .wrap:not(:has(> .section-head)) .prose em { font-weight: inherit; color: var(--violet); } + +/* an offer card under a text section */ +.offer-card { + display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; + max-width: 1040px; margin-top: 48px; padding: 24px 28px; + border: 1px solid var(--violet-11); border-radius: var(--radius); + background: var(--violet-7); +} +.offer-badge { + padding: 6px 12px; border-radius: 999px; + background: var(--lime); color: var(--navy-deep); + font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; +} +.offer-text { font-size: 20px; line-height: 1.4; font-weight: 500; color: var(--ink); } +.offer-text a { color: var(--violet); text-decoration: none; } +.offer-text a:hover { color: var(--violet-deep); text-decoration: underline; } +@media (max-width: 700px) { + .offer-card { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 16px; padding: 22px; } +} + +.rule-dashed { border: 0; height: 1px; margin: 0; background: var(--rule); } +.section-divider { padding: 0; } + +/* ---- prose ---- */ +.prose { display: flex; flex-direction: column; gap: 22px; max-width: var(--measure); } +.prose.centered { margin-inline: auto; text-align: center; } +.prose p, .prose li { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-86); } +.prose em { font-style: normal; font-weight: 600; } +.prose a { color: var(--violet); text-decoration: none; font-weight: 500; } +.prose a:hover { color: var(--violet-deep); text-decoration: underline; } +.prose ul { display: flex; flex-direction: column; gap: 10px; } +.prose ul li { position: relative; padding-left: 22px; } +.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); } +.prose h3 { font-size: 19px; font-weight: 600; } + +/* ========================================================================== + Cards — layers, paths, features, steps, generic cards + ========================================================================== */ +.entries { display: grid; gap: 16px; } +.entry, .path-row { + display: grid; height: 100%; + color: var(--ink); text-decoration: none; + border-radius: var(--radius); + background: var(--surface); + transition: background-color var(--dur-hover) var(--ease-hover), box-shadow var(--dur-hover) var(--ease-hover), opacity var(--dur-hover) var(--ease-hover); +} +.entry:hover, .path-row:hover { box-shadow: inset 0 0 0 1.5px var(--violet); } +.entry-n { + font-family: var(--font-mono); font-size: 12px; font-weight: 500; + letter-spacing: .06em; color: var(--violet); +} + +/* layers: a row of tall cards */ +.layer-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } +.layer-row { + display: flex; flex-direction: column; gap: 20px; + min-height: 300px; padding: 28px 28px 26px; +} +.layer-body { display: flex; flex-direction: column; gap: 10px; } +.entry-title { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; } +.entry-text { font-size: 15px; line-height: 1.6; color: var(--ink-68); } +.entry-text p { display: inline; } +.entry-go { + display: inline-flex; align-items: center; margin-top: auto; + font-size: 15px; font-weight: 600; color: var(--violet); +} +.layer-row.is-lit, .layer-row.is-own { box-shadow: inset 0 0 0 1.5px var(--violet); background: var(--violet-7); } +.layer-row.is-off { opacity: .4; } + +/* paths: a two-by-two grid */ +.path-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } +.path-row { + grid-template-columns: minmax(0, 1fr) 190px; + gap: 28px; padding: 32px; +} +.path-who { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--ink-60); line-height: 1.45; } +.path-body { display: flex; flex-direction: column; } +.path-body h3 { margin-top: 18px; font-size: 26px; letter-spacing: -.02em; line-height: 1.2; } +.path-body p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-68); } +.path-link { margin-top: auto; padding-top: 20px; font-size: 15px; } +.path-fit { padding-top: 2px; } +@media (max-width: 1100px) { + .path-list { grid-template-columns: minmax(0, 1fr); } +} +@media (max-width: 640px) { + .path-row { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px; } + .layer-row { min-height: 0; } +} + +/* ---- the layer fit panel ---- */ +.fit { display: flex; flex-direction: column; } +.fit-row { + display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; + align-items: center; gap: 12px; + padding: 9px 0; + border-top: 1px solid var(--rule); + font-size: 14px; +} +.fit-row:first-child { border-top: 0; } +.fit-bar { display: block; height: 5px; border-radius: 99px; overflow: hidden; background: var(--paper-2); } +.fit-bar span { display: block; height: 100%; } +.fit-row.is-yes .fit-bar span { background: var(--violet); } +.fit-row.is-own .fit-bar span { background: repeating-linear-gradient(90deg, var(--violet) 0 3px, transparent 3px 6px); } +.fit-row.is-no .fit-bar span { background: transparent; } +.fit-name { color: var(--ink); } +.fit-row.is-no .fit-name { color: var(--ink-45); } +.fit-state { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--violet); } +.fit-row.is-own .fit-state { color: var(--ink); } +.fit-row.is-no .fit-state { color: var(--ink-45); } +.fit-compact .fit-row { grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: 13px; } +.fit-compact .fit-state { display: none; } +.fit-compact .fit-bar { height: 4px; } + +/* layer strip: pinned above the paths list, lit by the hovered path (mouse devices only) */ +.layer-strip { display: none; } +@media (hover: hover) and (min-width: 1001px) { + html.js .layer-strip { + display: block; position: sticky; top: var(--head-h); z-index: 2; + margin-bottom: 16px; padding: 16px 0 18px; + background: var(--section-bg); border-bottom: 1px solid var(--rule); + } +} +.layer-strip-label { + display: block; margin-bottom: 12px; + font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); +} +.layer-strip .strip-on, .layer-strip.is-active .strip-idle { display: none; } +.layer-strip.is-active .strip-on { display: inline; color: var(--ink); } +.layer-strip-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } +.strip-layer { display: flex; flex-direction: column; gap: 8px; } +.strip-layer i { display: block; height: 6px; border-radius: 99px; background: var(--ink-22); transition: background-color var(--dur-hover) var(--ease-hover); } +.strip-layer em { font-style: normal; font-size: 14px; color: var(--ink-68); transition: color var(--dur-hover) var(--ease-hover); } +.strip-layer.is-lit i { background: var(--violet); } +.strip-layer.is-lit em { color: var(--ink); font-weight: 600; } +.strip-layer.is-own i { background: repeating-linear-gradient(90deg, var(--violet) 0 3px, transparent 3px 6px); } +.strip-layer.is-own em { color: var(--ink); } +.strip-layer.is-off i { background: var(--paper-2); } +.strip-layer.is-off em { color: var(--ink-45); } + +/* ---- generic cards ---- */ +.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; } +.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } +.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } +@media (max-width: 800px) { .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: minmax(0, 1fr); } } +.card { + display: flex; flex-direction: column; + border-radius: var(--radius); overflow: hidden; + background: var(--surface); +} +.card-visual { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; } +.card-body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 32px 28px 30px; min-height: 240px; } +.card.has-visual .card-body { min-height: 0; } +.card-body::before { + content: ""; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px; + background: + radial-gradient(circle at 50% 50%, var(--violet) 0 5px, transparent 5.5px), + var(--violet-11); +} +.card.has-visual .card-body::before { display: none; } +.card-label { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); } +.card-title { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; } +.card-title p { margin: 0; } +.card-text { font-size: 15px; line-height: 1.6; color: var(--ink-68); } +.card-link { margin-top: auto; padding-top: 8px; } + +/* an abstract gradient panel used where there's no image yet */ +.card-art { + position: relative; display: block; overflow: hidden; + background: + radial-gradient(#ffffff1f 1px, transparent 1.25px) 8px 8px / 16px 16px, + radial-gradient(70% 80% at calc(15% + var(--i, 0) * 17%) 20%, color-mix(in srgb, var(--violet) 80%, transparent) 0%, transparent 60%), + radial-gradient(60% 70% at calc(90% - var(--i, 0) * 13%) 100%, color-mix(in srgb, var(--lime) 54%, transparent) 0%, transparent 65%), + var(--navy); +} + +/* ---- logo wall ---- */ +.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; } +.logo-tile { + display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; + height: 116px; padding: 14px 10px; + border-radius: 12px; background: var(--surface); + color: var(--ink-68); text-decoration: none; + transition: color var(--dur-hover) var(--ease-hover), box-shadow var(--dur-hover) var(--ease-hover); +} +a.logo-tile:hover, a.logo-tile:focus-visible { color: var(--violet); box-shadow: inset 0 0 0 1.5px var(--violet); } +.logo-icon { width: 30px; height: 30px; fill: currentColor; } +.logo-letter { + display: grid; place-items: center; + border: 2px solid currentColor; border-radius: 8px; + font-size: 15px; font-weight: 700; line-height: 1; +} +.logo-name { max-width: 100%; text-align: center; font-size: 13.5px; font-weight: 500; line-height: 1.25; color: var(--ink); } +.section-logos .cta-row { margin-top: 32px; } + +/* ---- news ---- */ +.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } +.news-card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none; } +.news-visual { + display: grid; place-items: center; + width: 100%; aspect-ratio: 16 / 10; object-fit: cover; + border-radius: var(--radius); + transition: transform .4s var(--ease-out); +} +.news-card:hover .news-visual { transform: scale(1.015); } +.news-play { + width: 56px; height: 56px; border-radius: 50%; + background: #ffffffe6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3.5v9l7-4.5z' fill='%23001a2b'/%3E%3C/svg%3E") 55% 50% / 20px no-repeat; +} +.news-meta { display: flex; gap: 12px; align-items: center; margin-top: 4px; font-size: 13px; color: var(--ink-60); } +.news-tag { + padding: 3px 10px; border-radius: 999px; background: var(--violet-11); + font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); +} +.news-title { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; transition: color var(--dur-hover) var(--ease-hover); } +.news-card:hover .news-title { color: var(--violet); } +.news-back { margin-top: 48px; } +@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } +@media (max-width: 560px) { .news-grid { grid-template-columns: minmax(0, 1fr); } } + +/* ---- announcement banner ---- */ +.section-banner { padding-block: calc(var(--sp-section) * .6); } +.banner { + display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 40px; + padding: 40px; + border-radius: 24px; + color: var(--on-dark); + background: + radial-gradient(60% 140% at 100% 0%, color-mix(in srgb, var(--violet) 70%, transparent) 0%, transparent 60%), + var(--navy-deep); +} +.banner-badge { + display: grid; place-items: center; + width: 128px; aspect-ratio: 1; border-radius: var(--radius); + background: var(--lime); color: var(--navy-deep); + font-size: 22px; font-weight: 700; letter-spacing: -.02em; +} +.banner .eyebrow { color: var(--lime); margin-bottom: 12px; } +.banner-title { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; } +.banner-text { margin-top: 12px; max-width: 40em; font-size: 16px; line-height: 1.6; color: var(--on-dark-72); } +@media (max-width: 900px) { + .banner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px; } + .banner-badge { width: 72px; font-size: 15px; } +} + +/* ---- stats: a navy band with lime figures (:nth-of-type(n) outranks the even-row paper tint) ---- */ +main > .section-stats:nth-of-type(n) { --section-bg: var(--navy-deep); --surface: var(--on-dark-8); color: var(--on-dark); } +.section-stats .section-head h2 { color: var(--on-dark); } +.section-stats .section-head .lede { color: var(--on-dark-72); } +.section-stats .eyebrow { color: var(--lime); } +.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 0; } +.stat { + display: flex; flex-direction: column; gap: 16px; + padding: 4px 28px 8px; + border-left: 1px solid var(--on-dark-16); +} +.stat-value { + font-size: clamp(40px, 4.4vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--lime); + font-variant-numeric: tabular-nums; +} +.stat-label { font-size: 16px; line-height: 1.5; color: var(--on-dark-72); max-width: 18em; } + +/* ---- quote ---- */ +.said, .pull-quote { border-left: 3px solid var(--violet); padding: 4px 0 4px 28px; } +.said blockquote, .said blockquote p, .pull-quote { + font-size: 28px; line-height: 1.4; letter-spacing: -.02em; font-weight: 500; color: var(--ink); max-width: 34em; +} +.said figcaption { margin-top: 16px; font-size: 15px; color: var(--ink-60); } +.said-list { display: flex; flex-direction: column; gap: 44px; } +.said-list .said blockquote, .said-list .said blockquote p { font-size: 20px; line-height: 1.5; } +.said-list .said:only-child blockquote, .said-list .said:only-child blockquote p { font-size: 28px; line-height: 1.4; } +.said-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } +@media (min-width: 641px) { .said-cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } } +.said-card { + display: flex; flex-direction: column; justify-content: space-between; gap: 28px; + padding: 32px 28px 28px; border-radius: var(--radius); background: var(--surface); +} +.said-card blockquote, .said-card blockquote p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-86); } +.said-card blockquote::before { content: "\201C"; } +.said-card blockquote::after { content: "\201D"; } +.said-who { display: flex; align-items: center; gap: 14px; } +.said-photo { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--violet-11); } +.said-initials { display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--violet); } +.said-id { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.4; } +.said-name { font-weight: 600; color: var(--ink); } +.said-role, .said-role p { margin: 0; color: var(--ink-60); } +.said-role a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); } +.said-role a:hover { color: var(--violet); border-color: currentColor; } +@media (max-width: 1000px) { .said-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } } +@media (max-width: 640px) { .said-cards { grid-template-columns: minmax(0, 1fr); } } +.said-savings { margin-top: 64px; } +.said-savings-title { margin-bottom: 20px; font-size: 28px; line-height: 1.25; letter-spacing: -.02em; font-weight: 500; } + +/* ---- tables ---- */ +.table-scroll { overflow-x: auto; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--rule); } +.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; } +.compare-table th, .compare-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); } +.compare-table thead th { + border-top: 0; background: var(--navy-deep); color: var(--on-dark-72); + font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; +} +.compare-table thead th a { text-decoration: none; color: var(--on-dark); } +.compare-table thead th a:hover { color: var(--lime); } +.compare-table tbody th { font-weight: 600; color: var(--ink); } +.compare-table tbody tr:hover { background: #f8f9fa; } +.compare-table td.bad { color: var(--ink-60); } +.compare-table td.good { color: var(--ink); font-weight: 600; } +.compare-table td.good::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 8px 1px 0; background: var(--violet); } +.matrix-table { min-width: 720px; } +.matrix-table thead th { line-height: 1.35; } +.matrix-layer { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-56); } +.matrix-table td { white-space: nowrap; } +.m-yes { color: var(--violet); font-weight: 600; } +.m-own { color: var(--ink); } +.m-no { color: var(--ink-45); } +.m-note { color: var(--ink-68); white-space: normal !important; } + +/* ---- checklist & features ---- */ +.check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 40px; } +.check-list li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.55; color: var(--ink-86); } +.check-list li::before { + content: ""; position: absolute; left: 0; top: .15em; + width: 22px; height: 22px; border-radius: 50%; + background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; +} +.check-list li p { margin: 0; } + +.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; } +.feature-list li { + display: flex; flex-direction: column; gap: 10px; + padding: 30px 28px; border-radius: var(--radius); background: var(--surface); + font-size: 15px; line-height: 1.6; color: var(--ink-68); +} +.feature-list li::before { + content: ""; width: 36px; height: 4px; margin-bottom: 12px; border-radius: 99px; background: var(--violet); +} +.feature-list li strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; color: var(--ink); } +.feature-list li p { margin: 0; } + +/* ---- steps ---- */ +.step-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; } +.step-row.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } +.step { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--surface); } +.step-head { display: flex; flex-direction: column-reverse; gap: 20px; } +.step h3 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; } +.step-num { + display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; + background: var(--navy-deep); color: var(--lime); + font-family: var(--font-mono); font-size: 13px; font-weight: 500; +} +.step p { font-size: 15px; line-height: 1.6; color: var(--ink-68); } +@media (max-width: 1000px) { .step-row.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } +@media (max-width: 700px) { .step-row, .step-row.steps-4 { grid-template-columns: minmax(0, 1fr); } } + +/* ---- faq & app directory (native
) ---- */ +.faq-list { max-width: 960px; border-top: 1px solid var(--rule); } +.faq-item { border-bottom: 1px solid var(--rule); } +.faq-item summary, .app-category summary { + list-style: none; cursor: pointer; + display: flex; align-items: center; justify-content: space-between; gap: 24px; + padding: 24px 0; + font-size: 19px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; + transition: color var(--dur-hover) var(--ease-hover); +} +.faq-item summary:hover, .app-category summary:hover { color: var(--violet); } +.faq-item summary::-webkit-details-marker, .app-category summary::-webkit-details-marker { display: none; } +.faq-item summary::after, .app-category summary::after { + content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; + background: + linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, + linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat, + var(--surface); + transition: rotate .25s var(--ease-out); +} +.faq-item[open] summary::after, .app-category[open] summary::after { rotate: 45deg; } +.faq-answer { padding: 0 56px 26px 0; max-width: 820px; } +.faq-answer p { font-size: 16px; line-height: 1.65; color: var(--ink-68); } + +.app-directory { display: flex; flex-direction: column; gap: 10px; } +.app-category { border-radius: var(--radius); background: var(--surface); overflow: hidden; } +.app-category summary { justify-content: flex-start; padding: 20px 24px; font-size: 18px; } +.app-category summary::after { margin-left: auto; background-color: var(--section-bg); } +.app-count { padding: 2px 9px; border-radius: 999px; background: var(--violet-11); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--violet); } +.app-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); } +.app-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 24px; font-size: 14.5px; line-height: 1.5; background: var(--surface); } +.app-name { font-weight: 600; } +.app-desc { color: var(--ink-68); } +.app-link { color: var(--violet); text-decoration: none; font-size: 13.5px; font-weight: 600; } +.app-link:hover { color: var(--violet-deep); } +.app-name a { color: inherit; text-decoration: none; } +.app-name a:hover { color: var(--violet); } + +/* ---- callout ---- */ +.callout { max-width: 960px; padding: 28px 32px; border-radius: var(--radius); background: var(--violet-7); box-shadow: inset 4px 0 0 var(--violet); } +.callout p { font-size: 17px; line-height: 1.65; color: var(--ink-86); } + +/* ---- founder ---- */ +.founder-block { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1040px; } +.founder-photo { + aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--radius); + background: + radial-gradient(#ffffff1f 1px, transparent 1.25px) 8px 8px / 16px 16px, + radial-gradient(80% 80% at 80% 10%, color-mix(in srgb, var(--violet) 80%, transparent) 0%, transparent 60%), + var(--navy); + font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-56); +} +.founder-body h3 { font-size: 30px; letter-spacing: -.02em; } +.founder-role { display: block; margin: 6px 0 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); } +.founder-body p { font-size: var(--fs-body); line-height: 1.65; margin-bottom: 16px; color: var(--ink-86); } +@media (max-width: 700px) { .founder-block { grid-template-columns: minmax(0, 1fr); gap: 28px; } .founder-photo { width: 160px; } } + +/* ---- architecture diagram ---- */ +.stack-diagram { display: flex; flex-direction: column-reverse; gap: 10px; max-width: 1040px; } +.stack-diagram .layer { + display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; align-items: center; + padding: 22px 28px; border-radius: var(--radius); + background: var(--surface); + margin-inline: calc(var(--k, 0) * 3%); +} +.stack-diagram .layer:nth-child(1) { --k: 0; background: var(--navy-deep); color: var(--on-dark); } +.stack-diagram .layer:nth-child(1) p { color: var(--on-dark-72); } +.stack-diagram .layer:nth-child(1) .layer-num { background: var(--lime); color: var(--navy-deep); } +.stack-diagram .layer:nth-child(2) { --k: 1; } +.stack-diagram .layer:nth-child(3) { --k: 2; } +.stack-diagram .layer:nth-child(4) { --k: 3; } +.stack-diagram .layer-num { + grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; + background: var(--violet-11); color: var(--violet); + font-family: var(--font-mono); font-size: 13px; font-weight: 500; +} +.stack-diagram .layer h4 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; } +.stack-diagram .layer p { margin-top: 2px; font-size: 15px; line-height: 1.55; color: var(--ink-68); } +.mcp-spine { + display: flex; align-items: center; gap: 16px; max-width: 1040px; margin-top: 20px; + font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); +} +.mcp-spine::before, .mcp-spine::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--violet) 0 4px, transparent 4px 8px); opacity: .5; } + +/* ---- split ---- */ +.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } +.split-col { padding: 32px; border-radius: var(--radius); background: var(--surface); } +.split-col:first-child { background: var(--navy-deep); color: var(--on-dark); } +.split-col h3 { margin-bottom: 20px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); } +.split-col:first-child h3 { color: var(--lime); } +.split-list { display: flex; flex-direction: column; gap: 12px; } +.split-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; color: var(--ink-86); } +.split-col:first-child .split-list li { color: #ffffffe0; } +.split-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); } +.split-col + .split-col .split-list li::before { background: transparent; border: 1.5px solid var(--ink-45); } +.split-list li p { margin: 0; } +@media (max-width: 700px) { .split { grid-template-columns: minmax(0, 1fr); } } + +/* ========================================================================== + Pricing + ========================================================================== */ +/* The switch: visually hidden radios drive which panel shows (up to 4). */ +.plan-radio { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); } +.plan-tabs { display: inline-flex; gap: 4px; margin-bottom: 40px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); } +.plan-tabs label { + padding: 10px 22px; border-radius: 999px; cursor: pointer; + font-size: 15px; font-weight: 600; color: var(--ink-68); + transition: color var(--dur-hover) var(--ease-hover), background-color var(--dur-hover) var(--ease-hover); +} +.plan-tabs label:hover { color: var(--ink); } +.plan-switch:has(.plan-radio) .plan-panel { display: none; } +.plan-radio:nth-of-type(1):checked ~ .plan-panels > .plan-panel:nth-child(1), +.plan-radio:nth-of-type(2):checked ~ .plan-panels > .plan-panel:nth-child(2), +.plan-radio:nth-of-type(3):checked ~ .plan-panels > .plan-panel:nth-child(3), +.plan-radio:nth-of-type(4):checked ~ .plan-panels > .plan-panel:nth-child(4) { display: block; } +.plan-radio:nth-of-type(1):checked ~ .plan-tabs label:nth-child(1), +.plan-radio:nth-of-type(2):checked ~ .plan-tabs label:nth-child(2), +.plan-radio:nth-of-type(3):checked ~ .plan-tabs label:nth-child(3), +.plan-radio:nth-of-type(4):checked ~ .plan-tabs label:nth-child(4) { color: #fff; background: var(--navy-deep); } +.plan-radio:nth-of-type(1):focus-visible ~ .plan-tabs label:nth-child(1), +.plan-radio:nth-of-type(2):focus-visible ~ .plan-tabs label:nth-child(2), +.plan-radio:nth-of-type(3):focus-visible ~ .plan-tabs label:nth-child(3), +.plan-radio:nth-of-type(4):focus-visible ~ .plan-tabs label:nth-child(4) { outline: 2px solid var(--violet); outline-offset: 3px; } +.plan-lede { margin: 0 0 28px; max-width: var(--measure); font-size: 18px; line-height: 1.6; color: var(--ink-68); } +.plan-block { margin-top: 64px; } +.plan-subhead { margin-bottom: 20px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); } +.plan-note { margin: 18px 0 0; max-width: var(--measure); font-size: 14px; line-height: 1.55; color: var(--ink-68); } +.plan-note-top { margin: -8px 0 20px; } + +.tier-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; } +.tier { + display: flex; flex-direction: column; gap: 28px; + padding: 32px 30px 34px; border-radius: var(--radius); background: var(--surface); + box-shadow: inset 0 0 0 1px var(--rule); +} +.tier:nth-child(2) { background: var(--navy-deep); color: var(--on-dark); box-shadow: none; } +.tier:nth-child(2) .tier-name { color: var(--lime); } +.tier:nth-child(2) .tier-amount, .tier:nth-child(2) .tier-intro { color: var(--on-dark); } +.tier:nth-child(2) .tier-unit, .tier:nth-child(2) .tier-note, .tier:nth-child(2) .tier-features li { color: var(--on-dark-72); } +.tier:nth-child(2) .tier-head { border-color: var(--on-dark-16); } +.tier:nth-child(2) .tier-features li::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23001a2b' stroke-width='2'/%3E%3C/svg%3E"); } +.tier-head { padding-bottom: 24px; border-bottom: 1px solid var(--rule); } +.tier-name, .addon-name { margin-bottom: 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); } +.tier-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; } +.tier-amount { font-size: 52px; font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; } +.tier-unit { font-size: 14px; line-height: 1.4; color: var(--ink-60); } +.tier-note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-68); } +.tier-intro { margin: 0 0 14px; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink); } +.tier-features { display: flex; flex-direction: column; gap: 12px; } +.tier-features li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; color: var(--ink-86); } +.tier-features li::before { + content: ""; position: absolute; left: 0; top: .1em; + width: 20px; height: 20px; border-radius: 50%; + background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 13px no-repeat; +} +.tier-features li p { margin: 0; } + +.addon-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; } +.addon { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); } +.addon .tier-amount { font-size: 36px; } +.addon-body { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-68); } +.addon-body p { margin: 0; } + +.app-price-table { min-width: 560px; } +.app-price-table td { color: var(--ink-68); } +.app-price-table td p { margin: 0; } +.app-price-table .app-price { white-space: nowrap; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; } + +/* ---- savings: bar comparison + calculator ---- */ +.bar-chart { margin: 0 0 48px; max-width: 960px; } +.bar-chart-title { margin-bottom: 20px; font-size: 22px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); } +.bar-list { display: flex; flex-direction: column; gap: 12px; } +.bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 84px; align-items: center; gap: 16px; font-size: 15px; } +.bar-name { color: var(--ink-86); } +.bar-track { height: 18px; } +.bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--ink-22); } +.bar-row.is-highlight .bar-fill { background: var(--violet); } +.bar-row.is-highlight .bar-name, .bar-row.is-highlight .bar-value { color: var(--ink); font-weight: 600; } +.bar-value { text-align: right; color: var(--ink-68); font-variant-numeric: tabular-nums; } + +.savings-calc { padding: 32px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); } +.calc-apps { border: 0; margin: 0; padding: 0; min-width: 0; } +.calc-app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } +.calc-app { + display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; + padding: 10px 12px; border-radius: var(--radius-sm); background: var(--section-bg); + box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer; font-size: 14px; line-height: 1.35; + transition: box-shadow var(--dur-hover) var(--ease-hover), background-color var(--dur-hover) var(--ease-hover); +} +.calc-app:hover { box-shadow: inset 0 0 0 1px var(--ink-45); } +.calc-app:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--violet); background: var(--violet-7); } +.calc-app input { margin: 0; accent-color: var(--violet); grid-row: span 2; align-self: center; } +.calc-app-name { color: var(--ink); font-weight: 500; } +.calc-app-cost { grid-column: 2; font-size: 12px; color: var(--ink-60); font-variant-numeric: tabular-nums; } +.calc-users { margin-top: 32px; } +.calc-users .plan-subhead { display: block; font-size: 18px; } +.calc-users-row { display: flex; align-items: center; gap: 16px; } +.calc-users-row input { flex: 1; accent-color: var(--violet); } +.calc-users-value { min-width: 64px; text-align: right; font-size: 26px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } +.calc-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; } +html:not(.js) .calc-result { display: none; } +/* compact: one result, with a link to the full calculator beside it */ +.savings-calc.is-compact .calc-app-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } +.savings-calc.is-compact .calc-app { padding: 9px 11px; font-size: 13px; } +.savings-calc.is-compact .calc-result { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } +.calc-more { justify-self: end; margin-bottom: 6px; } +.calc-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 20px 22px 22px; border-radius: 12px; background: var(--section-bg); box-shadow: inset 0 0 0 1px var(--rule); } +.calc-stat.is-highlight { background: var(--navy-deep); box-shadow: none; } +.calc-stat-label { flex-basis: 100%; margin-bottom: 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-60); } +.calc-stat-value { font-size: 36px; font-weight: 500; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } +.calc-stat-unit { font-size: 14px; color: var(--ink-60); } +.calc-stat.is-highlight .calc-stat-label, .calc-stat.is-highlight .calc-stat-unit { color: var(--on-dark-72); } +.calc-stat.is-highlight .calc-stat-value { color: var(--lime); } +@media (max-width: 1000px) { + .savings-calc.is-compact .calc-app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } +} +@media (max-width: 640px) { + .savings-calc { padding: 20px; } + .calc-app-grid, .savings-calc.is-compact .calc-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } + .calc-result, .savings-calc.is-compact .calc-result { grid-template-columns: minmax(0, 1fr); } + .calc-more { justify-self: start; } + .bar-row { grid-template-columns: 88px minmax(0, 1fr) 64px; gap: 10px; } +} + +/* ========================================================================== + Long-form pages: apps, legal + ========================================================================== */ +.section-doc .prose { max-width: 800px; } +.doc h2 { margin-top: 24px; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; font-weight: 500; color: var(--ink); } +.doc h3 { margin-top: 8px; font-size: 20px; font-weight: 600; } +.doc > :first-child { margin-top: 0; } +.doc strong { font-weight: 600; color: var(--ink); } +.doc ul ul { margin-top: 8px; } +.doc ul ul li { font-size: 15px; } +.doc li p { margin: 0; } +.doc img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule), 0 24px 48px -24px color-mix(in srgb, var(--navy-deep) 25%, transparent); } +.doc table { + display: block; overflow-x: auto; max-width: 100%; + border-collapse: collapse; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule); + font-size: 14.5px; line-height: 1.5; +} +.doc th, .doc td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); } +.doc thead th { + border-top: 0; background: var(--navy-deep); color: var(--on-dark-72); white-space: nowrap; + font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; +} +.doc tbody td:first-child { min-width: 160px; font-weight: 600; color: var(--ink); } +.doc td { color: var(--ink-86); } +.doc tbody td:not(:first-child) { white-space: nowrap; } + +.section-facts { padding-block: 56px; } +.app-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; } +.app-facts > div { padding: 22px 24px 24px; border-radius: var(--radius); background: var(--surface); } +.app-facts dt { margin-bottom: 8px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); } +.app-facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); } +.app-facts a { color: var(--violet); text-decoration: none; font-weight: 600; } +.app-facts-more { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 24px; } + +/* ========================================================================== + Closing call to action — a navy band + ========================================================================== */ +.cta { + position: relative; isolation: isolate; overflow: hidden; + padding: calc(var(--sp-section) * 1.1) 0; + color: var(--on-dark); + background: + radial-gradient(50% 120% at 100% 100%, color-mix(in srgb, var(--violet) 54%, transparent) 0%, transparent 60%), + radial-gradient(30% 60% at 0% 0%, color-mix(in srgb, var(--lime) 12%, transparent) 0%, transparent 70%), + var(--navy-deep); +} +.cta::before { + content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; + background: + linear-gradient(var(--on-dark-8) 1px, transparent 1px) 0 0 / 64px 64px, + linear-gradient(90deg, var(--on-dark-8) 1px, transparent 1px) 0 0 / 64px 64px; + -webkit-mask-image: radial-gradient(60% 100% at 85% 60%, #000 0%, transparent 75%); + mask-image: radial-gradient(60% 100% at 85% 60%, #000 0%, transparent 75%); +} +.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px 64px; } +.cta-title { max-width: 16em; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.03em; color: var(--on-dark); } +.cta-text { margin-top: 20px; max-width: 36em; font-size: 18px; line-height: 1.6; color: var(--on-dark-72); } +@media (max-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } } + +/* ========================================================================== + Lead form (section type "form"): copy left, form card right + ========================================================================== */ +.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px 72px; align-items: start; } +.lead .section-head { margin-bottom: 32px; } +.lead-points { grid-template-columns: minmax(0, 1fr); gap: 12px; } +.lead-note { margin-top: 28px; font-size: 15px; line-height: 1.55; color: var(--ink-60); } +.lead-form { + display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; + padding: 36px; border-radius: 20px; background: #fff; + box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -30px color-mix(in srgb, var(--navy-deep) 25%, transparent); +} +.lead-form .field { grid-column: 1 / -1; } +.lead-form .field-half { grid-column: auto; } +.lead-form .field[hidden] { display: none; } +.field-optional { margin-left: 4px; font-weight: 400; font-size: 13px; color: var(--ink-45); } +.lead-form select, .lead-form textarea { + padding: 0 14px; max-width: 100%; + font: inherit; font-size: 15px; color: var(--ink); + border: 1px solid var(--rule); border-radius: 8px; background: #fff; + transition: border-color var(--dur-hover) var(--ease-hover), box-shadow var(--dur-hover) var(--ease-hover); +} +.lead-form select { height: 48px; } +.lead-form select:invalid { color: var(--ink-45); } +.lead-form textarea { padding: 12px 14px; min-height: 88px; resize: vertical; line-height: 1.5; } +.lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-11); } +.lead-form .btn-primary { grid-column: 1 / -1; justify-content: center; margin-top: 6px; } +.lead-form .btn-primary[hidden] { display: none; } +.lead-status { grid-column: 1 / -1; padding: 12px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; } +.lead-status.is-ok { background: #e7f6ef; color: #135c3c; } +.lead-status.is-error { background: #fdecea; color: #8a1c12; } +.lead-privacy { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--ink-60); } +.lead-privacy a { color: var(--violet); } +@media (max-width: 960px) { .lead { grid-template-columns: minmax(0, 1fr); } } +@media (max-width: 520px) { + .lead-form { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; } + .lead-form .field-half { grid-column: 1 / -1; } +} + +/* ========================================================================== + Sign-in form + ========================================================================== */ +.form-band { padding: 96px 0 120px; background: var(--paper); } +.form-page { + max-width: 460px; margin-inline: auto; + padding: 44px 40px; border-radius: 20px; background: #fff; + box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -30px color-mix(in srgb, var(--navy-deep) 25%, transparent); +} +.form-page .statement { margin: 14px 0 32px; font-size: 36px; color: var(--ink); } +.form-page form { display: flex; flex-direction: column; gap: 18px; } +.field { display: flex; flex-direction: column; gap: 8px; } +.field label { font-size: 14px; font-weight: 600; color: var(--ink); } +.field input { + height: 48px; padding: 0 14px; + font: inherit; font-size: 15px; color: var(--ink); + border: 1px solid var(--rule); border-radius: 8px; background: #fff; + transition: border-color var(--dur-hover) var(--ease-hover), box-shadow var(--dur-hover) var(--ease-hover); +} +.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-11); } +.field-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-68); } +.field-row label { display: inline-flex; gap: 8px; align-items: center; } +.field-row input { accent-color: var(--violet); } +.field-row a { color: var(--violet); text-decoration: none; font-weight: 500; } +.form-page .btn-primary { width: 100%; margin-top: 6px; } +.form-foot { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-68); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; } +.form-note { margin-top: 12px; font-size: 14px; color: var(--ink-60); } +.form-note a { color: var(--violet); } +@media (max-width: 520px) { .form-page { padding: 32px 22px; } } + +/* Cloud or self hosted (Sign In, Start Now): each box links to that system's own page */ +.choose { max-width: 820px; margin-inline: auto; } +.choose .statement { margin: 14px 0 12px; font-size: 36px; color: var(--ink); } +.choose-lede { margin: 0 0 32px; font-size: var(--fs-dek); color: var(--ink-68); } +.choose-question { margin: 0 0 20px; font-size: 24px; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); } +.choose-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } +@media (max-width: 700px) { .choose-options { grid-template-columns: minmax(0, 1fr); } } +.choose-option { + display: flex; flex-direction: column; gap: 12px; + padding: 32px 28px 30px; border-radius: 20px; background: #fff; + color: inherit; text-decoration: none; + box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -30px color-mix(in srgb, var(--navy-deep) 25%, transparent); + transition: box-shadow var(--dur-hover) var(--ease-hover); +} +.choose-option:hover, .choose-option:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--violet), 0 30px 60px -30px color-mix(in srgb, var(--navy-deep) 25%, transparent); } +.choose-option-title { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); } +.choose-option-text { font-size: 15px; line-height: 1.6; color: var(--ink-68); } +.choose-option .more { margin-top: auto; padding-top: 8px; } + +/* ========================================================================== + Order wizard (/start-now/) — steps on a white card, the cart beside it + ========================================================================== */ +.order-band { padding: 72px 0 104px; scroll-margin-top: var(--head-h); } +.order [hidden], .order-band [hidden] { display: none !important; } +.order-head { max-width: 760px; margin-bottom: 36px; } +.order-head .statement { margin: 14px 0 0; font-size: 44px; color: var(--ink); } +.order-lede { margin-top: 14px; font-size: var(--fs-dek); color: var(--ink-68); } +.order-alert { padding: 18px 22px; border-radius: var(--radius-sm); background: #fff; box-shadow: 0 0 0 1px var(--rule); } + +.order-rail { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: none; } +.order-rail li { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-45); } +.order-rail-n { + display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; + font-family: var(--font-mono); font-size: 12px; background: var(--paper-2); color: var(--ink-60); +} +.order-rail li.is-done { color: var(--ink-68); } +.order-rail li.is-done .order-rail-n { background: var(--violet-11); color: var(--violet); } +.order-rail li.is-current { color: var(--ink); font-weight: 600; } +.order-rail li.is-current .order-rail-n { background: var(--navy-deep); color: #fff; } +@media (max-width: 700px) { .order-rail-l { display: none; } .order-rail li.is-current .order-rail-l { display: inline; } } + +.order-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; } +.order.has-cart .order-grid { grid-template-columns: minmax(0, 1fr) 380px; } +@media (max-width: 1000px) { .order.has-cart .order-grid { grid-template-columns: minmax(0, 1fr); } } + +.order-main, .order-cart { + padding: 40px; border-radius: 20px; background: #fff; + box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -30px color-mix(in srgb, var(--navy-deep) 25%, transparent); +} +.order:not(.has-cart) .order-main { max-width: 720px; } +.order-cart { position: sticky; top: calc(var(--head-h) + 20px); padding: 28px; } +@media (max-width: 1000px) { .order-cart { position: static; } } +@media (max-width: 520px) { .order-main { padding: 28px 20px; } .order-cart { padding: 22px 18px; } } + +.order-title { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); outline: none; } +.order-sub { margin: 40px 0 14px; font-size: 20px; letter-spacing: -.01em; color: var(--ink); } +.order-text { margin-top: 12px; max-width: var(--measure); font-size: 16px; line-height: 1.6; color: var(--ink-86); } +.order-text a { color: var(--violet); } +.order-muted { color: var(--ink-60); } +.order-main .actions { margin-top: 8px; } +.order-main .btn-primary { background: var(--navy-deep); color: #fff; } +.order-main .btn-primary:hover { background: var(--violet); } +.order-main .btn:disabled, .order-cart .btn:disabled { opacity: .45; cursor: default; } +.btn.is-busy { opacity: .6; cursor: progress; } +.order .btn-text { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; } +.order .form-foot .btn-text { font-size: 15px; } + +.order-form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; } +.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } +.field-pair.field-triple { grid-template-columns: 2fr 1fr 1.4fr; } +@media (max-width: 600px) { .field-pair, .field-pair.field-triple { grid-template-columns: minmax(0, 1fr); } } +.field small { font-size: 13px; color: var(--ink-60); } +.order select { + height: 44px; padding: 0 12px; max-width: 100%; + font: inherit; font-size: 15px; color: var(--ink); + border: 1px solid var(--rule); border-radius: 8px; background: #fff; +} +.order select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-11); } +.order-error { padding: 12px 14px; border-radius: 8px; background: #fdecea; color: #8a1c12; font-size: 14px; } +.order-error a { color: inherit; font-weight: 600; } +.order-ok { padding: 12px 14px; border-radius: 8px; background: #e7f6ef; color: #135c3c; font-size: 14px; font-weight: 500; } +.order-ok::before { content: "✓ "; } +.order-captcha:empty { display: none; } + +.order-affix { display: flex; align-items: stretch; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; } +.order-affix:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-11); } +.field .order-affix input { flex: 1; min-width: 0; border: 0; border-radius: 0; box-shadow: none; } +.order-affix span { display: flex; align-items: center; padding: 0 14px; background: var(--paper); color: var(--ink-60); font-size: 15px; white-space: nowrap; } +.order-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; } +.order-suggest [data-suggestions] { display: contents; } +.order-chip { + padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); + font-family: var(--font-mono); font-size: 13px; color: var(--ink); cursor: pointer; +} +.order-chip:hover { border-color: var(--violet); color: var(--violet); } + +.order-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } +@media (max-width: 700px) { .order-choices { grid-template-columns: minmax(0, 1fr); } } +.order-choice { + display: flex; gap: 12px; align-items: flex-start; padding: 20px; + border: 1px solid var(--rule); border-radius: var(--radius-sm); cursor: pointer; + transition: border-color var(--dur-hover) var(--ease-hover), box-shadow var(--dur-hover) var(--ease-hover); +} +.order-choice:hover { border-color: var(--ink-45); } +.order-choice.is-selected { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-11); } +.order-choice input { margin-top: 4px; accent-color: var(--violet); } +.order-choice-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; } +.order-choice-name { font-weight: 600; color: var(--ink); } +.order-choice-text { font-size: 14px; line-height: 1.5; color: var(--ink-68); } +.order-region { margin-top: 8px; } +.order-region select { width: 100%; } + +.order-others { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--violet); border-radius: var(--radius-sm); background: var(--violet-7); } +.order-others legend { padding: 0 6px; font-weight: 600; color: var(--ink); } +.order-others label { display: flex; gap: 10px; align-items: center; margin-top: 8px; font-size: 15px; } +.order-others input { accent-color: var(--violet); } + +.order-bundles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } +@media (max-width: 1200px) { .order-bundles { grid-template-columns: minmax(0, 1fr); } } +.order-bundle { padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: #fff; transition: border-color var(--dur-hover) var(--ease-hover); } +.order-bundle.is-selected { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-11); } +.order-bundle-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; } +.order-bundle h4 { font-size: 18px; color: var(--ink); } +.order-price { margin-top: 2px; font-size: 22px; font-weight: 600; color: var(--ink); } +.order-price span { font-size: 14px; font-weight: 400; color: var(--ink-60); } +.order-bundle-text { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-68); } +.order-bundle details { margin-top: 12px; font-size: 14px; } +.order-bundle summary { cursor: pointer; font-weight: 600; color: var(--violet); } +.order-bundle ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-86); line-height: 1.7; } + +.order-apps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); } +.order-app { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); } +.order-app label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; } +.order-app input { align-self: center; accent-color: var(--violet); width: 16px; height: 16px; } +.order-app-name { font-weight: 600; color: var(--ink); } +.order-app-cat { font-size: 14px; color: var(--ink-60); } +.order-app-price { font-family: var(--font-mono); font-size: 13px; color: var(--ink-86); white-space: nowrap; } +.order-app.is-bundled label { cursor: default; } +.order-app.is-bundled .order-app-price { color: var(--violet); } +.order-info-text { grid-column: 1 / -1; margin: 4px 0 2px; font-size: 14px; line-height: 1.5; color: var(--ink-68); } + +.order-info, .order-remove { + display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; + border: 1px solid var(--ink-22); border-radius: 50%; background: #fff; + font-family: Georgia, serif; font-size: 13px; font-style: italic; font-weight: 700; color: var(--ink-60); cursor: pointer; +} +.order-remove { font-family: var(--font); font-style: normal; font-size: 16px; font-weight: 400; border-color: transparent; } +.order-info:hover, .order-info[aria-expanded="true"] { border-color: var(--violet); color: var(--violet); } +.order-remove:hover { color: #8a1c12; background: #fdecea; } + +/* storage meter: OS / core / apps, 2px gaps, free space as the track */ +.order-meter { display: flex; gap: 2px; height: 16px; margin-top: 16px; border-radius: 4px; overflow: hidden; background: var(--paper-2); } +.order-seg { display: block; min-width: 3px; } +.seg-os { background: #1f8f7a; } +.seg-core { background: var(--violet); } +.seg-apps { background: #d0662b; } +.seg-free { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); } +.order-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-68); } +.order-legend li { display: inline-flex; align-items: center; gap: 8px; } +.order-legend i { width: 10px; height: 10px; border-radius: 2px; } +.order-legend strong { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink); } +.order-stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; } +.order-stepper > span:first-child { font-weight: 600; margin-right: 6px; } +.order-stepper .btn-sm { width: 40px; padding: 0; font-size: 18px; } +.order-stepper output { min-width: 64px; text-align: center; font-family: var(--font-mono); font-size: 14px; } +.order-note { color: var(--violet); font-size: 14px; } +.order-nav { margin-top: 40px !important; } + +.order-summary dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 20px 0 0; padding: 20px; border-radius: var(--radius-sm); background: var(--paper); font-size: 15px; } +.order-summary dt { font-weight: 600; color: var(--ink); } +.order-summary dd { margin: 0; color: var(--ink-86); overflow-wrap: anywhere; } + +/* the cart */ +.order-cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; } +.order-cart h2 { font-size: 20px; color: var(--ink); } +.order-billing { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper); } +.order-billing button { padding: 6px 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-60); cursor: pointer; } +.order-billing button[aria-pressed="true"] { background: var(--navy-deep); color: #fff; } +.order-lines { margin: 18px 0 0; padding: 0; list-style: none; } +.order-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px 24px; align-items: center; gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; } +.order-line-main { display: flex; flex-direction: column; min-width: 0; } +.order-line-name { font-weight: 600; color: var(--ink); } +.order-line-note { font-size: 12.5px; color: var(--ink-60); } +.order-line-note:empty { display: none; } +.order-line-price { font-family: var(--font-mono); font-size: 13px; color: var(--ink); white-space: nowrap; } +.order-line.is-included { padding: 6px 0; } +.order-line.is-included .order-line-name { font-weight: 500; color: var(--ink-68); } +.order-line.is-included .order-line-price { color: var(--ink-45); } +.order-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; font-size: 16px; font-weight: 600; color: var(--ink); } +.order-total strong { font-size: 26px; letter-spacing: -.02em; } +.order-cart-note { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-60); } +.order-cart-files { display: flex; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); } +.order-cart .btn-text { font-size: 14px; } +.order-load { cursor: pointer; } +.order-cart .order-error { margin-top: 12px; } + +/* ========================================================================== + Footer — navy, many columns + ========================================================================== */ +.foot { + padding: 88px 0 36px; + background: var(--navy-deep); + font-size: 14px; line-height: 1.5; color: var(--on-dark-56); + border-top: 1px solid var(--on-dark-8); +} +.foot a { color: var(--on-dark-72); text-decoration: none; transition: color var(--dur-hover) var(--ease-hover); } +.foot a:hover { color: var(--on-dark); } +.foot-top-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px 80px; } +.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; } +.foot-mark .brand-logo { width: 176px; } +.foot-line { max-width: 32ch; font-size: 15px; color: var(--on-dark-72); } +.foot-place { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; } +.foot-head { font-size: 14px; font-weight: 600; color: var(--on-dark); } +.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; } +.foot-group { display: flex; flex-direction: column; gap: 18px; min-width: 0; } +.foot-links { display: flex; flex-direction: column; gap: 12px; } +.foot-legal { + display: flex; align-items: center; gap: 24px; + margin-top: 72px; padding-top: 24px; + border-top: 1px solid var(--on-dark-8); + font-size: 13px; +} +.foot-social { display: flex; gap: 10px; margin-top: 8px; } +.foot-social a { display: inline-flex; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--on-dark-16); font-size: 13px; } +.foot-social a:hover { border-color: var(--on-dark-56); } +.foot-social .arrow { margin-left: 4px; } +.foot-policy { white-space: nowrap; } +.foot-top { margin-left: auto; white-space: nowrap; display: inline-flex; gap: 6px; } +.foot-up { display: inline-block; transition: translate var(--dur-hover) var(--ease-hover); } +.foot-top:hover .foot-up { translate: 0 -2px; } +@media (max-width: 1000px) { .foot-top-row { grid-template-columns: minmax(0, 1fr); } } +@media (max-width: 600px) { + .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } + .foot-legal { flex-wrap: wrap; row-gap: 10px; } + .foot-top { margin-left: 0; } +} + +/* ========================================================================== + Agent view — the footer's Human / Agent switch, and the page as Markdown + (static/js/agent-view.js) + ========================================================================== */ +.view-switch { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px; border-radius: 999px; border: 1px solid var(--on-dark-16); } +.view-switch[hidden] { display: none; } +.view-switch + .foot-top { margin-left: 0; } +.view-label { padding: 0 6px 0 10px; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; } +.view-switch button { + padding: 5px 13px; border: 0; border-radius: 999px; + background: none; color: var(--on-dark-72); font: inherit; font-size: 13px; cursor: pointer; + transition: color var(--dur-hover) var(--ease-hover), background-color var(--dur-hover) var(--ease-hover); +} +.view-switch button:hover { color: var(--on-dark); } +.view-switch button[aria-pressed="true"] { background: var(--lime); color: var(--navy-deep); font-weight: 500; } +@media (max-width: 600px) { .view-switch { margin-left: 0; } } + +.view-agent #content > :not(.agent-view) { display: none; } +.agent-view { padding: 64px 0 96px; background: var(--paper); } +.agent-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; } +.agent-note { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-68); } +.agent-note .note-live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-11); } +.agent-back { + flex: none; margin-left: 6px; padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap; + font: inherit; font-family: var(--font); font-size: 14px; letter-spacing: 0; text-transform: none; + color: var(--violet); text-decoration: underline; text-underline-offset: 3px; +} +.agent-back:hover { color: var(--violet-deep); } +.agent-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; } +.agent-links a { color: var(--violet); } +.agent-copy { padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; } +.agent-copy:hover { border-color: var(--ink-45); } +.agent-md { + margin: 0; padding: 40px clamp(20px, 4vw, 48px); + border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--rule); + font-family: var(--font-mono); font-size: 14px; line-height: 1.7; color: var(--ink-86); + white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; +} +.agent-md a { color: var(--violet); text-underline-offset: 3px; } +.agent-md a:hover { color: var(--violet-deep); } + +/* ========================================================================== + Reveal — content rises in as it scrolls into view (JS adds html.js) + ========================================================================== */ +html.js [data-reveal] { + opacity: 0; + translate: 0 16px; + transition: opacity .7s var(--ease-standard), translate .7s var(--ease-out); + transition-delay: var(--d, 0s); +} +html.js [data-reveal].is-visible { opacity: 1; translate: 0; } +/* the first screen paints at once — never hidden behind an animation */ +html.js .hero [data-reveal] { opacity: 1; translate: 0; transition: none; } + +@media (prefers-reduced-motion: reduce) { + html { scroll-behavior: auto; } + html.js [data-reveal] { opacity: 1; translate: 0; transition: none; } + .field-layer i::after { animation: none; display: none; } + *, *::before, *::after { transition-duration: .001ms !important; } +} + +/* ---- the theme's own additions ---- */ +.brand, .brand:hover, .foot-mark { text-decoration: none; } +.brand-name { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--on-dark); } +.foot .brand-name { color: inherit; } +.page-body { padding-top: var(--sp-section); padding-bottom: var(--sp-section); } diff --git a/internal/theme/files/static/js/supermarket-leads.js b/internal/theme/files/static/js/supermarket-leads.js new file mode 100644 index 0000000..054fb3f --- /dev/null +++ b/internal/theme/files/static/js/supermarket-leads.js @@ -0,0 +1,50 @@ +/* Sends the site's lead forms to EspoCRM's Lead Capture. Written by + Supermarket: the form posts here instead of to [params.leads] action + directly, so its fields can be mapped onto a Lead's. */ +(function () { + var mapped = { email: 'emailAddress', 'e-mail': 'emailAddress', phone: 'phoneNumber', tel: 'phoneNumber', + company: 'accountName', organization: 'accountName', organisation: 'accountName', church: 'accountName' }; + function label(form, name) { + var el = form.querySelector('[name="' + name + '"]'); + var l = el && el.id && form.querySelector('label[for="' + el.id + '"]'); + return l ? l.childNodes[0].textContent.trim() : name; + } + window.leadPost = function (form, data) { + var lead = { firstName: null, lastName: null, emailAddress: null, accountName: null, phoneNumber: null }; + var notes = []; + data.forEach(function (value, name) { + value = String(value).trim(); + if (!value) return; + var key = name.toLowerCase(); + if (key === 'name' || key === 'full_name' || key === 'fullname') { + var parts = value.split(/\s+/); + lead.lastName = parts.pop(); + lead.firstName = parts.length ? parts.join(' ') : null; + } else if (key === 'first_name' || key === 'firstname') { + lead.firstName = value; + } else if (key === 'last_name' || key === 'lastname') { + lead.lastName = value; + } else if (mapped[key]) { + lead[mapped[key]] = value; + } else if (key === 'source') { + notes.unshift('Form: ' + value); + } else if (key === 'page') { + notes.push('Page: ' + location.origin + value); + } else { + notes.push(label(form, name) + ': ' + value); + } + }); + if (!lead.lastName) lead.lastName = lead.emailAddress || 'Website visitor'; + var q = new URLSearchParams(location.search); + ['utm_campaign', 'utm_source', 'utm_medium', 'utm_content'].forEach(function (k) { + if (q.get(k)) notes.push(k + ': ' + q.get(k)); + }); + if (document.referrer) notes.push('Came from: ' + document.referrer); + lead.description = notes.join('\n') || null; + return fetch(form.action, { + method: 'POST', + headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, + body: JSON.stringify(lead) + }); + }; +})(); diff --git a/internal/theme/files/theme.toml b/internal/theme/files/theme.toml new file mode 100644 index 0000000..6caef67 --- /dev/null +++ b/internal/theme/files/theme.toml @@ -0,0 +1,4 @@ +name = "Supermarket" +license = "Proprietary" +description = "Websites made of sections, built and kept by Supermarket." +min_version = "0.146.0" diff --git a/internal/theme/theme.go b/internal/theme/theme.go new file mode 100644 index 0000000..6005b11 --- /dev/null +++ b/internal/theme/theme.go @@ -0,0 +1,57 @@ +// Package theme is the Hugo theme new sites are made with: federated- +// website's look and sections, made generic, with each site's brand as +// settings. Supermarket copies it into a site as themes/supermarket/. +package theme + +import ( + "embed" + "io/fs" + "sort" + "strconv" + "strings" +) + +// Version is the theme's version, written into the site's copy +// (themes/supermarket/VERSION) so an older copy can be updated. Raise it +// whenever the files change. +const Version = 1 + +// Dir is where the theme goes in a site. +const Dir = "themes/supermarket" + +// Name is the theme's name in hugo.toml. +const Name = "supermarket" + +//go:embed all:files +var files embed.FS + +// Files are the theme's files: path (inside the theme) → content, +// VERSION included. +func Files() map[string]string { + out := map[string]string{"VERSION": strconv.Itoa(Version) + "\n"} + _ = fs.WalkDir(files, "files", func(p string, d fs.DirEntry, err error) error { + if err != nil || d.IsDir() { + return err + } + raw, err := files.ReadFile(p) + if err != nil { + return err + } + out[strings.TrimPrefix(p, "files/")] = string(raw) + return nil + }) + return out +} + +// Paths are the theme's file paths, sorted. +func Paths() []string { + var ps []string + for p := range Files() { + ps = append(ps, p) + } + sort.Strings(ps) + return ps +} + +// LeadScript is the lead forms' script (static/js/supermarket-leads.js). +func LeadScript() string { return Files()["static/js/supermarket-leads.js"] } diff --git a/internal/theme/theme_test.go b/internal/theme/theme_test.go new file mode 100644 index 0000000..b5a52d3 --- /dev/null +++ b/internal/theme/theme_test.go @@ -0,0 +1,144 @@ +package theme + +import ( + "os" + "os/exec" + "path/filepath" + "strings" + "testing" +) + +const allSections = `--- +title: Everything +description: Every section type. +sections: + - type: hero + eyebrow: New + title: "One **bill** for everything" + subhead: The apps your team needs. + ctas: + - { label: Start, url: /start/, style: primary } + - { label: Learn, url: "#more", style: ghost } + log: + - { tag: App, text: Read 14 tickets } + - { think: true, text: Checking } + - { done: true } + - type: text + kicker: Why + headline: Because + body: "It's **simple**." + - type: features + headline: Features + items: [{ label: Fast, body: Very }, { label: Private, body: Yours }] + - type: cards + columns: 2 + items: [{ label: A, title: Card one, body: Text, link: /a/, linktext: Read }, { title: Card two, body: More, visual: true }] + - type: steps + items: [{ title: Sign up, body: Two minutes }, { title: Move in, body: We help }] + - type: checklist + items: ["Email", "Files"] + - type: split + columns: [{ title: Before, items: [Bills] }, { title: After, items: [One bill] }] + - type: stats + items: [{ value: "80%", label: saved }, { value: "24/7", label: support }] + - type: table + headers: [Them, Us] + rows: [{ label: Price, cells: ["$50", "$5"] }] + - type: faq + items: [{ q: Is it safe?, a: "Yes." }] + - type: callout + text: A note. + - type: form + headline: Ask us + subject: Contact + fields: [{ name: name, label: Name, required: true }, { name: email, label: Email, type: email, required: true }] + - type: nonsense + title: An unknown type is skipped + - type: final-cta + headline: Ready? + ctas: [{ label: Go, url: /go/ }] +--- +` + +func TestThemeBuilds(t *testing.T) { + hugo, err := exec.LookPath("hugo") + if err != nil { + t.Skip("no hugo") + } + site := t.TempDir() + for p, body := range Files() { + full := filepath.Join(site, Dir, p) + os.MkdirAll(filepath.Dir(full), 0o755) + os.WriteFile(full, []byte(body), 0o644) + } + cfg := `baseURL = "https://acme.example/" +title = "Acme" +theme = "supermarket" +disableKinds = ["taxonomy", "term", "RSS"] +[params] + tagline = "Widgets for everyone" +[params.brand] + primary = "#ff6600" + accent = "#0055ff" + font = "IBM Plex Sans" +[params.header] + ctas = [{ label = "Get started", url = "/start/", style = "primary" }] +[params.footer] + groups = [{ title = "Company", menu = "footer_company" }] +[params.leads] + action = "https://crm.example/api/v1/LeadCapture/k" +[[menu.main]] + name = "Pricing" + url = "/pricing/" +[[menu.footer_company]] + name = "About" + url = "/about/" +` + os.WriteFile(filepath.Join(site, "hugo.toml"), []byte(cfg), 0o644) + os.MkdirAll(filepath.Join(site, "content"), 0o755) + os.WriteFile(filepath.Join(site, "content", "_index.md"), []byte(allSections), 0o644) + os.WriteFile(filepath.Join(site, "content", "plain.md"), []byte("---\ntitle: Plain\n---\nJust **Markdown**.\n"), 0o644) + out := filepath.Join(t.TempDir(), "public") + cmd := exec.Command(hugo, "--quiet", "--destination", out) + cmd.Dir = site + if msg, err := cmd.CombinedOutput(); err != nil { + t.Fatalf("hugo: %v\n%s", err, msg) + } + home, _ := os.ReadFile(filepath.Join(out, "index.html")) + h := string(home) + for _, want := range []string{ + "Acme — Widgets for everyone", "--lime: #ff6600", "--violet: #0055ff", `family=IBM%20Plex%20Sans:wght`, `--font: "IBM Plex Sans"`, + `Acme`, ">Pricing<", ">Get started<", "One bill for everything", "Read 14 tickets", + "section-features", "Card one", "section-steps", "section-checklist", "section-split", "section-stats", "section-table", "section-faq", + "section-callout", "section-form", `action="https://crm.example/api/v1/LeadCapture/k"`, "window.leadPost", "supermarket-leads.js", + "Ready?", ">About<", "© ", + } { + if !strings.Contains(h, want) { + t.Errorf("home lacks %q", want) + } + } + if strings.Contains(h, "An unknown type is skipped") || strings.Contains(h, "Federated") { + t.Error("an unknown section, or Federated's own text, shows") + } + plain, _ := os.ReadFile(filepath.Join(out, "plain", "index.html")) + if !strings.Contains(string(plain), "Just Markdown") { + t.Errorf("plain page: %s", plain) + } + for _, f := range []string{"css/supermarket.css", "js/supermarket-leads.js", "404.html"} { + if _, err := os.Stat(filepath.Join(out, f)); err != nil { + t.Errorf("%s missing", f) + } + } +} + +func TestFiles(t *testing.T) { + fs := Files() + if fs["VERSION"] != "1\n" || !strings.Contains(fs["README.md"], "| `hero` |") || !strings.Contains(LeadScript(), "window.leadPost") { + t.Error("files") + } + for p := range fs { + if strings.Contains(fs[p], "federated.computer") { + t.Errorf("%s mentions federated.computer", p) + } + } +}