/* Xerg homepage. Tokens from the Xerg design system (tokens/*.css); Geist Mono served from here. */

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/geist-mono-latin.woff2") format("woff2");
}

:root {
  /* Base palette (exact, no substitutions) */
  --white: #FFFFFF;
  --gray-light: #EDEDED;
  --gray-mid: #CECECE;
  --gray-dark: #2D2D2D;
  --near-black: #0C0C0C;
  --green: #28B44B;

  /* Semantic: light ground */
  --surface-page: var(--gray-light);
  --surface-raised: var(--white);
  --surface-sunken: #E4E4E4;
  --text-primary: var(--near-black);
  --text-secondary: var(--gray-dark);
  --text-inverse: var(--white);
  --rule: var(--gray-mid);
  --rule-strong: var(--near-black);

  /* Semantic: dark ground */
  --surface-page-dark: var(--near-black);
  --surface-raised-dark: #161616;
  --text-primary-dark: var(--white);
  --text-secondary-dark: var(--gray-mid);
  --rule-dark: #2D2D2D;

  /* Accent / action */
  --accent: var(--green);
  --accent-hover: #22A043;
  --accent-press: #1C8938;
  --on-accent: var(--white);

  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --tracking-mono: 0.06em;
  --tracking-mono-wide: 0.12em;
  --radius-1: 2px;
  --radius-2: 4px;
  /* The sign-up button at the top right, and the menu's, which matches it */
  --radius-cta: 12px;
  --shadow-lift: 0 8px 24px rgba(12, 12, 12, 0.08);
  --glow-radial: radial-gradient(closest-side, rgba(40, 180, 75, 0.45), rgba(40, 180, 75, 0));
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

[data-ground="dark"] {
  --surface-page: var(--surface-page-dark);
  --surface-raised: var(--surface-raised-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --rule: var(--rule-dark);
  --rule-strong: var(--gray-mid);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
html[data-ground="dark"] { color-scheme: dark; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 500; }
a { color: inherit; }
a:hover { color: var(--green); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-mono); }
.muted { color: var(--text-secondary); }
.theme-dark-only { display: none !important; }
[data-ground="dark"] .theme-dark-only { display: block !important; }
[data-ground="dark"] .theme-light-only { display: none !important; }
/* By the site's theme, not the ground under it: for what sits on the footer, which is dark in both. */
.site-dark-only { display: none !important; }
html[data-ground="dark"] .site-dark-only { display: block !important; }
html[data-ground="dark"] .site-light-only { display: none !important; }

/* ---- Floating header: logo, theme switch, menu ---- */
.site-header {
  position: fixed; top: 24px; left: 24px; z-index: 20;
  width: min(320px, calc(100vw - 48px));
  background: var(--surface-raised); border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: var(--shadow-lift);
}
.site-header .bar { height: 56px; padding: 0 8px 0 20px; display: flex; align-items: center; gap: 12px; }
.site-header .home { display: block; line-height: 0; text-decoration: none; }
.site-header .home img { height: 20px; display: block; width: auto; }
.site-header .spacer { flex: 1; }
.theme-switch { display: flex; border: 1px solid var(--rule); border-radius: 8px; padding: 2px; gap: 2px; }
.theme-switch button {
  width: 32px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; cursor: pointer;
  background: transparent; color: var(--text-secondary);
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.theme-switch button[aria-pressed="true"] { background: var(--text-primary); color: var(--surface-raised); }
.menu-button {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 8px;
  background: transparent; color: var(--text-primary); cursor: pointer; transition: border-color 150ms var(--ease);
}
.menu-button:hover { border-color: var(--rule-strong); }
.menu-button .close { display: none; }
.menu-button[aria-expanded="true"] .open { display: none; }
.menu-button[aria-expanded="true"] .close { display: block; }
.menu { padding: 8px 20px 20px; display: grid; gap: 24px; }
.menu[hidden] { display: none; }
.menu nav { display: grid; border-top: 1px solid var(--rule); }
.menu nav a {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
  border-bottom: 1px solid var(--rule); font-size: 18px; color: var(--text-primary); text-decoration: none;
  transition: color 150ms var(--ease);
}
.menu nav a:hover { color: var(--green); }
.menu nav a span:last-child { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.menu .fine { font-size: 10px; color: var(--text-secondary); }
/* Sign-up with its line centred just under it, then Sign in. */
.menu-signup { display: grid; gap: 10px; justify-items: center; text-align: center; }
.menu-signup .button { border-radius: var(--radius-cta); }
.menu-signin {
  justify-self: center; font-size: 16px; color: var(--text-primary);
  text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px;
}

/* The design system's Button: primary, square-cornered, the one green element. */
.button {
  height: 44px; padding: 0 22px; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.01em; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius-1); cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.button:active { background: var(--accent-press); }
.button.lg { height: 56px; padding: 0 32px; font-size: 20px; }
.button.full { width: 100%; height: 52px; font-size: 18px; }
.button.wide { width: 100%; }
.button svg { flex: none; }
/* Secondary: outlined, inverts on hover. (The design system draws it in near-black, which vanishes
   on dark ground; the text colour is near-black on light ground and white on dark.) */
.button.secondary { background: transparent; color: var(--text-primary); border-color: var(--text-primary); }
.button.secondary:hover { background: var(--text-primary); color: var(--surface-raised); }
.button.secondary:active { background: var(--text-primary); }

/* The design system's Tag (neutral) */
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--rule);
  border-radius: var(--radius-1); font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--text-secondary); background: transparent; white-space: nowrap;
}

.cta-float {
  position: fixed; top: 24px; right: 24px; z-index: 20; height: 58px; padding: 0 24px;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  background: var(--green); color: var(--white); border-radius: var(--radius-cta); text-decoration: none;
  font-size: 16px; font-weight: 500; box-shadow: var(--shadow-lift);
  transition: background 150ms var(--ease);
}
.cta-float:hover { background: #22A043; color: var(--white); }
.cta-float:active { background: #1C8938; }
/* On phones the header and the button would meet: sign-up is in the menu there. */
@media (max-width: 639px) { .cta-float { display: none; } }

/* ---- Sections ---- */
.section { border-bottom: 1px solid var(--rule); }
.section.raised { background: var(--surface-raised); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 88px 40px; display: grid; gap: 48px; }
.section-head { display: grid; gap: 16px; }
.label-rule { display: flex; align-items: center; gap: 12px; }
.label-rule .mono { font-size: 11px; letter-spacing: var(--tracking-mono-wide); color: var(--text-secondary); white-space: nowrap; }
.label-rule .line { flex: 1; height: 1px; background: var(--rule); }
.h2 { font-size: 44px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.h2.narrow { max-width: 720px; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.45; color: var(--text-secondary); }
@media (max-width: 639px) {
  .wrap { padding: 64px 24px; gap: 40px; }
  .h2 { font-size: 34px; }
}

/* Hero */
.hero-copy { max-width: 720px; margin: 0 auto; padding: 112px 24px 0; display: grid; gap: 20px; justify-items: center; text-align: center; }
.hero-copy .kicker { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-mono-wide); color: var(--text-secondary); }
.hero-copy h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.hero-copy p { font-size: 20px; line-height: 1.45; color: var(--text-secondary); max-width: 600px; text-wrap: pretty; }
.projects { display: flex; gap: 8px; overflow-x: auto; padding: 40px 24px 0; justify-content: center; scrollbar-width: none; }
.projects::-webkit-scrollbar { display: none; }
@media (max-width: 639px) { .projects { justify-content: flex-start; } }
.projects button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px;
  border-radius: 999px; cursor: pointer; font-family: var(--font-sans); font-size: 14px; white-space: nowrap;
  border: 1px solid var(--rule); background: transparent; color: var(--text-primary);
  transition: background 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.projects button[aria-pressed="true"] { border-color: var(--text-primary); background: var(--text-primary); color: var(--surface-raised); }
.projects img { width: 16px; height: 16px; border-radius: 3px; display: block; background: var(--white); }
.hero-graph { position: relative; width: 100%; height: clamp(420px, 72vh, 820px); }
@media (max-width: 639px) { .hero-graph { height: 60vh; } }
.hero-graph xerg-graph { position: absolute; inset: 0; }
.hero-graph .failed {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--text-secondary);
}
.hero-graph .failed[hidden] { display: none; }

/* Member of */
.backers { max-width: 1200px; margin: 0 auto; padding: 40px; display: grid; gap: 24px; }
.backers .logos { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
@media (max-width: 639px) { .backers { padding: 40px 24px; } .backers .logos { flex-wrap: wrap; } }
.backers figure { display: grid; gap: 10px; justify-items: start; min-width: 0; flex: 0 1 auto; }
.backers img { height: clamp(32px, 4.5vw, 56px); width: auto; max-width: 100%; object-fit: contain; display: block; filter: brightness(0); }
/* NVIDIA's badge brings its own box: white with black in the light theme, the inverse in the dark. */
.backers img.nvidia { filter: none; }
[data-ground="dark"] .backers img:not(.nvidia) { filter: brightness(0) invert(1); }
.backers figcaption { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--text-secondary); white-space: nowrap; }

/* 01 How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--rule-strong); }
.steps > div { display: grid; gap: 12px; align-content: start; padding: 24px 24px 24px 0; border-right: 1px solid var(--rule); margin-right: 24px; }
.steps .n { font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--tracking-mono); color: var(--text-secondary); }
.steps h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
.steps p { font-size: 16px; line-height: 1.45; color: var(--text-secondary); text-wrap: pretty; }

/* 02 What teams use it for */
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; }
.use { border: 1px solid var(--rule); border-radius: var(--radius-2); padding: 28px; display: grid; gap: 14px; align-content: start; background: var(--surface-page); }
.use .pain { font-size: 14px; line-height: 1.45; color: var(--text-secondary); }
.use h3 { font-size: 24px; letter-spacing: -0.01em; }
.use p { font-size: 16px; line-height: 1.45; color: var(--text-secondary); }
/* Links from a claim to the docs page that backs it */
.steps p a, .use p a, .faq details p a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease); }
.steps p a:hover, .use p a:hover, .faq details p a:hover { color: var(--green); text-decoration-color: var(--green); }
.panel { margin-top: 8px; border: 1px solid var(--rule); border-radius: var(--radius-2); background: var(--surface-raised); font-family: var(--font-mono); font-size: 12px; }
.panel .q { padding: 12px 14px; border-bottom: 1px solid var(--rule); color: var(--text-primary); }
.panel .a { padding: 12px 14px; display: grid; gap: 8px; color: var(--text-primary); }
.panel .row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; padding: 10px 14px; border-bottom: 1px solid var(--rule); color: var(--text-primary); }
.panel .row.head { font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--text-secondary); }
.panel .row span + span { color: var(--text-secondary); }
.panel .row.head span { color: var(--text-secondary); }

/* The design system's Terminal */
.terminal { margin-top: 8px; background: var(--near-black); border: 1px solid #2D2D2D; border-radius: var(--radius-2); overflow: hidden; }
.terminal .title { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #2D2D2D; }
.terminal .title span:first-child { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--gray-mid); }
.terminal .title span:last-child { width: 8px; height: 8px; background: var(--accent); display: block; }
.terminal pre { margin: 0; padding: 18px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--white); white-space: pre-wrap; }
.terminal .ln { display: block; }
.terminal .prompt { color: var(--accent); margin-right: 8px; }
.terminal .accent { color: var(--accent); }
.terminal .dim { color: var(--gray-mid); }

/* 03 What teams say */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.quotes figure { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--radius-2); padding: 28px; display: grid; gap: 24px; align-content: space-between; }
.quotes blockquote { font-size: 18px; line-height: 1.45; color: var(--text-primary); text-wrap: pretty; }
.quotes figcaption { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--rule); }
.quotes figcaption span:first-child { font-size: 16px; font-weight: 500; }
.quotes figcaption span:last-child { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--text-secondary); }

/* 04 Trust and price */
.pricing { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; }
.pricing .lead { max-width: 480px; }
.pricing .link { font-size: 16px; color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; justify-self: start; }
.trust { display: grid; border-top: 1px solid var(--rule-strong); align-content: start; }
.trust > div { display: grid; grid-template-columns: 24px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.trust .glyph { font-family: var(--font-mono); font-size: 14px; }
.trust svg { margin-top: 3px; }
.trust p { font-size: 16px; line-height: 1.45; }
.trust strong { font-weight: 500; }

/* Closing call to action, on dark ground */
.closing { position: relative; background: var(--near-black); overflow: hidden; color: var(--white); }
.closing .glow { position: absolute; left: 50%; top: 120%; width: 900px; height: 900px; transform: translate(-50%, -50%); background-image: var(--glow-radial); opacity: 0.45; pointer-events: none; }
.closing .wrap { position: relative; padding: 104px 40px; gap: 24px; justify-items: start; }
.closing h2 { font-size: 64px; letter-spacing: -0.02em; line-height: 1.05; color: var(--white); }
.closing p { font-size: 20px; line-height: 1.45; color: var(--gray-mid); max-width: 520px; }
.closing .fine { font-size: 11px; color: var(--gray-mid); }
@media (max-width: 639px) { .closing .wrap { padding: 80px 24px; } .closing h2 { font-size: 44px; } }

/* Footer, on dark ground on every page */
.site-footer { background: var(--near-black); color: var(--white); }
.footer-wrap { max-width: 1200px; margin: 0 auto; padding: 72px clamp(20px, 4vw, 40px) 40px; display: grid; gap: 48px; }
/* The organizations Xerg is a member of, spread across the top, each over its name. White on the
   footer's dark ground; NVIDIA's badge brings its own box (see .site-light-only). */
.footer-members { display: grid; gap: 40px; }
.footer-members .logos { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-members figure { display: grid; gap: 14px; justify-items: start; min-width: 0; flex: 0 1 auto; }
.footer-members img { height: clamp(32px, 4.2vw, 52px); width: auto; max-width: 100%; object-fit: contain; display: block; filter: brightness(0) invert(1); }
.footer-members img.nvidia { height: clamp(36px, 4.7vw, 58px); filter: none; }
.footer-members figcaption { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--gray-mid); white-space: nowrap; }
@media (max-width: 639px) { .footer-members .logos { flex-wrap: wrap; gap: 28px 32px; justify-content: flex-start; } }
/* The logo and line, the three columns, and Oneleet's SOC 2 badge on the right. */
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.footer-brand { display: grid; gap: 20px; align-content: start; }
.footer-brand .home { display: block; line-height: 0; width: max-content; }
.footer-brand .home img { height: 26px; width: auto; display: block; }
.footer-brand p { font-size: 18px; line-height: 1.45; color: var(--gray-mid); max-width: 320px; }
/* Oneleet's SOC 2 badge says its own status; the light or dark one shows, to match the ground under it. */
.site-footer .soc2 { display: block; line-height: 0; width: max-content; }
.site-footer .soc2 img { width: 96px; height: auto; }
.site-footer .head { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: var(--tracking-mono-wide); color: var(--white); }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px 12px; }
.footer-links > div { display: grid; gap: 16px; align-content: start; justify-items: start; }
@media (min-width: 1000px) {
  .footer-top { grid-template-columns: minmax(0, 1.9fr) minmax(0, 3fr) auto; gap: 24px; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer .soc2 { justify-self: end; }
}
.footer-links a, .footer-links button {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--gray-mid); text-decoration: none;
  transition: color 150ms var(--ease);
}
.footer-links a:hover, .footer-links button:hover { color: var(--white); }
/* "Your privacy choices" opens CookieYes's preferences (its cky-banner-element class). */
.footer-links button { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.footer-rule { height: 1px; background: var(--gray-dark); }
.footer-bottom .social { display: flex; gap: 8px; }
.icon-link {
  width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gray-dark);
  color: var(--gray-mid); text-decoration: none; transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.icon-link:hover { color: var(--white); border-color: var(--gray-mid); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-bottom .copyright { font-size: 15px; color: var(--gray-mid); }
.footer-bottom .status {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 20px 0 10px; min-width: 200px;
  border: 1px solid var(--gray-dark); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--white);
  text-decoration: none; transition: border-color 150ms var(--ease);
}
.footer-bottom .status:hover { border-color: var(--gray-mid); color: var(--white); }
.footer-bottom .status .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }

/* ---- About and Pricing ---- */
/* The top of a page: a mono label, the headline and a line under it, centred. */
.page-top { max-width: 720px; margin: 0 auto; padding: 136px 24px 72px; display: grid; gap: 20px; justify-items: center; text-align: center; }
.page-top .kicker { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-mono-wide); color: var(--text-secondary); }
.page-top h1 { font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.page-top p { font-size: 20px; line-height: 1.45; color: var(--text-secondary); max-width: 620px; text-wrap: pretty; }
.wrap.flush { padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }
.h2.fluid { font-size: clamp(32px, 4vw, 44px); }

/* About: the team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 899px) { .team { grid-template-columns: minmax(0, 1fr); } }
.team article { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--radius-2); overflow: hidden; display: flex; flex-direction: column; }
.team img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: 1px solid var(--rule); }
.team .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.team .who { display: grid; gap: 6px; }
.team h2 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
.team .role { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--text-secondary); }
.team p { font-size: 16px; line-height: 1.45; color: var(--text-secondary); text-wrap: pretty; flex: 1; }
.team .links { display: flex; gap: 8px; padding-top: 8px; }
.team .links a {
  width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--radius-1);
  color: var(--text-primary); text-decoration: none; transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.team .links a:hover { color: var(--green); border-color: var(--green); }

/* The closing section, centred (About and Pricing) */
.closing.centred .wrap { max-width: 720px; padding: 104px 24px; justify-items: center; text-align: center; }
.closing.centred h2 { font-size: clamp(40px, 6vw, 64px); }
.closing .email { font-size: 22px; color: var(--white); text-decoration: underline; text-decoration-color: var(--gray-dark); text-underline-offset: 6px; transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease); }
.closing .email:hover { color: var(--green); text-decoration-color: var(--green); }
.closing .actions { display: flex; justify-content: center; margin-top: 8px; }
.closing .alt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--gray-mid); text-decoration: none; }
.closing .alt:hover { color: var(--green); }
@media (max-width: 639px) {
  .closing.centred .wrap { padding: 104px 24px; }
  .closing .actions { width: 100%; }
  .closing .actions .button { width: 100%; }
}

/* Pricing: the billing switch and the plans */
.page-top.pricing-top { padding-bottom: 48px; }
.billing { margin-top: 12px; display: flex; border: 1px solid var(--rule); border-radius: 8px; padding: 3px; gap: 3px; background: var(--surface-raised); }
.billing button {
  height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; white-space: nowrap; background: transparent; color: var(--text-secondary);
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.billing button[aria-pressed="true"] { background: var(--text-primary); color: var(--surface-raised); }
.billing .save { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--green); }
.billing button[aria-pressed="true"] .save { color: var(--surface-raised); }
.plans-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) 40px; display: grid; gap: 24px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1099px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--surface-raised); border: 1px solid var(--rule); border-radius: var(--radius-2); padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; }
.plan.featured { border-color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--text-primary); }
.plan .top { display: grid; gap: 12px; }
.plan .name { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-mono-wide); color: var(--text-secondary); }
.plan.featured .name { color: var(--text-primary); }
.plan .price { display: flex; align-items: baseline; gap: 8px; }
.plan .amount { font-size: 44px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.plan .per { font-size: 14px; color: var(--text-secondary); }
.plan .note { font-size: 14px; line-height: 1.45; color: var(--text-secondary); min-height: 40px; }
.plan .for { font-size: 16px; line-height: 1.45; min-height: 46px; text-wrap: pretty; }
.plan .act { display: grid; gap: 8px; min-height: 72px; align-content: start; }
.plan .act .fine { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--text-secondary); text-align: center; }
.plan ul { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 12px; font-size: 14px; line-height: 1.45; }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.plan li > span:first-child { font-family: var(--font-mono); color: var(--text-secondary); }
.plan li .soon { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.plans-wrap > .fine { text-align: center; font-size: 16px; line-height: 1.45; color: var(--text-secondary); }
.open-source { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 24px; border: 1px solid var(--rule); border-radius: var(--radius-2); background: var(--surface-raised); }
.open-source p { flex: 1 1 320px; font-size: 16px; line-height: 1.45; }
.open-source strong { font-weight: 500; }
.open-source .licence { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--text-secondary); }

/* Pricing: every plan, side by side */
.compare-scroll { overflow-x: auto; margin: 0 calc(-1 * clamp(20px, 4vw, 40px)); padding: 0 clamp(20px, 4vw, 40px); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.4; text-align: left; }
.compare col.feature { width: 28%; }
.compare th, .compare td { padding: 14px 12px 14px 0; vertical-align: middle; font-weight: 400; }
.compare thead th { padding-top: 0; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-mono-wide); color: var(--text-secondary); border-bottom: 1px solid var(--rule-strong); }
.compare thead th.featured { color: var(--text-primary); }
.compare tbody tr { border-bottom: 1px solid var(--rule); }
.compare tbody th { font-weight: 500; padding-right: 16px; }
.compare th:first-child { position: sticky; left: 0; background: var(--surface-raised); }
.compare td { color: var(--text-primary); }
.compare td .cell { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 28px; }
.compare td .mark { font-family: var(--font-mono); }
.compare td .none { font-family: var(--font-mono); color: var(--text-secondary); }

/* Questions (Pricing and the homepage) */
.faq-layout { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px 56px; }
.faq { display: grid; border-top: 1px solid var(--rule-strong); align-content: start; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--text-primary); transition: color 150ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green); }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-mono); font-size: 16px; font-weight: 400; color: var(--text-secondary); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 40px 22px 0; font-size: 16px; line-height: 1.45; color: var(--text-secondary); text-wrap: pretty; }

/* ---- Blog (pages built by blog/build.mjs) ---- */
.page-top.blog-top { padding-bottom: 64px; }
.blog-top .rss { font-size: 11px; color: var(--text-secondary); text-decoration: none; }
.blog-top .rss:hover { color: var(--green); }
.blog-wrap { max-width: 840px; padding-top: 40px; padding-bottom: 96px; gap: 0; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list a { display: grid; gap: 10px; padding: 32px 0; text-decoration: none; color: var(--text-primary); }
.post-list time { font-size: 12px; color: var(--text-secondary); }
.post-list .by { font-size: 11px; color: var(--text-secondary); }
.post-list h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; transition: color 150ms var(--ease); }
.post-list a:hover h2 { color: var(--green); }
.post-list p { font-size: 16px; line-height: 1.45; color: var(--text-secondary); text-wrap: pretty; }
.post-list-empty { padding: 80px 0; text-align: center; font-size: 20px; color: var(--text-secondary); }

.post { background: var(--surface-raised); border-bottom: 1px solid var(--rule); }
.post-inner { max-width: 720px; margin: 0 auto; padding: 136px clamp(20px, 4vw, 24px) 80px; display: grid; }
.post-head { display: grid; gap: 20px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.post-head .back { justify-self: start; font-size: 12px; color: var(--text-secondary); text-decoration: none; }
.post-head .back:hover { color: var(--green); }
.post-head h1 { font-size: clamp(38px, 6vw, 56px); letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.post-summary { font-size: 20px; line-height: 1.45; color: var(--text-secondary); text-wrap: pretty; }
.post-meta { font-size: 12px; color: var(--text-secondary); }
.draft-note { justify-self: start; font-size: 11px; color: var(--text-secondary); padding: 4px 8px; border: 1px dashed var(--rule-strong); border-radius: var(--radius-1); }

.post-body { padding-top: 40px; font-size: 18px; line-height: 1.7; display: grid; gap: 24px; }
.post-body > * { margin: 0; }
.post-body p, .post-body li { text-wrap: pretty; }
.post-body h2 { margin-top: 24px; font-size: 30px; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
.post-body h3 { margin-top: 8px; font-size: 22px; letter-spacing: -0.01em; line-height: 1.3; }
.post-body h4 { font-size: 18px; line-height: 1.3; }
.post-body a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease); }
.post-body a:hover { color: var(--green); text-decoration-color: var(--green); }
.post-body strong { font-weight: 600; }
.post-body ul { padding-left: 22px; display: grid; gap: 8px; }
/* Privacy and Terms: the post layout, at a calmer size. */
.post.legal .post-head .kicker { font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-mono-wide); color: var(--text-secondary); }
.post.legal .post-body { font-size: 16px; gap: 16px; }
.post.legal .post-body h2 { margin-top: 20px; font-size: 22px; }
.post-body ol { padding-left: 24px; display: grid; gap: 8px; }
.post-body li { padding-left: 6px; }
.post-body blockquote { margin: 16px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--green); font-size: 22px; line-height: 1.45; letter-spacing: -0.01em; display: grid; gap: 12px; }
.post-body blockquote > * { margin: 0; }
.post-body code { font-family: var(--font-mono); font-size: 0.85em; padding: 2px 6px; border-radius: var(--radius-1); background: var(--surface-page); border: 1px solid var(--rule); }
.post-body pre { padding: 20px 24px; background: var(--surface-page); border: 1px solid var(--rule); border-radius: var(--radius-2); overflow-x: auto; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; }
.post-body pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.post-body figure { margin: 16px 0; display: grid; gap: 12px; }
.post-body img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius-2); }
.post-body figcaption { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--text-secondary); }
.post-body hr { margin: 16px 0; border: 0; height: 1px; background: var(--rule); }

.post-author { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 16px; }
.post-author img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.post-author div { display: grid; gap: 4px; }
.post-author strong { font-weight: 500; font-size: 16px; }
.post-author .mono { font-size: 11px; color: var(--text-secondary); }

.wrap.blog-more { max-width: 720px; padding: 72px clamp(20px, 4vw, 24px) 88px; gap: 0; }
.more-label { padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: 11px; letter-spacing: var(--tracking-mono-wide); color: var(--text-secondary); }
