/* ==========================================================================
   SyntaxionBlocks — marketing site, account portal and admin console
   Design system: Syntaxion (shared with syntaxion.co.uk). Geist throughout,
   near-black on white, one hot-pink accent, flat surfaces and hairlines,
   pill-shaped actions.

   Order matters:
     1. Fonts and tokens (the system's tokens.css, colour + scale only)
     2. Site-specific layout and pages (everything the shared bundle lacks)
     3. The shared component bundle (components/bundle.css), last so it wins
     4. Site overrides that adapt the bundle to this site's markup
   ========================================================================== */

/* ---- 1. Fonts (self-hosted, Geist + Geist Mono, OFL) -------------------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/geist-400.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/geist-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/geist-600.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/geist-600.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/geist-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/geist-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/geist-mono-500.woff2") format("woff2"); }

/* ---- Tokens (light is the default; dark follows the OS until the toggle is used) */
:root, :root[data-theme="light"] {
  --background: #ffffff; /* Page ground, and the fill of cards and panels that sit on a surface band. */
  --surface: #f7f7fb; /* Alternate section bands, inputs, table headers, icon tiles and inline code chips. */
  --border: #e7e7ee; /* Hairlines: card outlines, dividers, table rules and the resting outline of secondary buttons. About 1.2:1 against the ground, so it is decorative only: interactive controls also need a fill or a label. */
  --foreground: #0a0a14; /* Headings, body text and values on background and surface (18:1 or better). It is also the fill of the dark pill button, with background as its label. */
  --muted: #5a5a6e; /* Secondary text: leads, descriptions, captions, table headers, footer links and placeholder copy. 6.3:1 or better on background and surface in both themes. */
  --accent: #e63864; /* The brand pink. It fills primary buttons and marks, and colours focus rings, the active tab underline, step numerals, eyebrows, icons and the one highlighted word in a headline. In light it is 4.11:1 on white, so for accent text under 24px use accent-text. */
  --accent-hover: #d12a55; /* Hover and pressed state of an accent fill or accent-coloured link. */
  --accent-text: #c2234c; /* Intentional addition: the accent for text under 24px (eyebrows, links, badge and Pro-tag labels, code-chip text, the current docs link). Light is a deeper shade of the pink, chosen to clear 5:1 on white, surface and accent-wash; dark reuses accent (5.9:1 or better). */
  --accent-wash: rgba(230, 56, 100, 0.1); /* Accent at 10% (the site's bg-accent/10). The tint behind accent badges, the Pro tag, the current contents link and icon discs. Put accent-text on it, never accent. */
  --on-accent: #ffffff; /* Intentional addition. Label colour on an accent fill. In light, white on #e63864 is 4.11:1, so primary buttons use a 16px medium label at minimum and hover to accent-hover (5.0:1). In dark the label goes near-black (6.4:1), because white on #ff4f7e would be 3.2:1. */
  --success: #047857; /* Resolved, active, copied and saved states (the site's emerald-700 and -300). Always pair it with a word or a check icon. */
  --success-wash: rgba(16, 185, 129, 0.1); /* Tint behind success badges and flash messages (emerald-500/10). */
  --warning: #b45309; /* In-progress, expiring and lapsed states (amber-700 and -300). Always pair it with a word. */
  --warning-wash: rgba(245, 158, 11, 0.1); /* Tint behind warning badges (amber-500/10). */
  --danger: #b91c1c; /* Errors, urgent priority and destructive actions (red-700 and -300). Its hue sits close to the brand pink, so danger always carries a word (Error, Delete, Urgent) and never relies on colour alone. */
  --danger-wash: rgba(239, 68, 68, 0.1); /* Tint behind danger badges and error flashes (red-500/10). */
  --info: #1d4ed8; /* Open or neutral-informational states (blue-700 and -300). */
  --info-wash: rgba(59, 130, 246, 0.1); /* Tint behind info badges (blue-500/10). */
  --code-bg: #0f0f18; /* Code panel and terminal-strip ground. It is the same in both themes, because a code panel is an object, like a print. */
  --code-line: #1c1c2a; /* Code panel border, title-bar rule and copy-button outline. */
  --code-fg: #f2f2f7; /* Code panel text (16:1 on code-bg). */
  --code-dim: #9a9ab0; /* Comments, file names and the copy button at rest in code panels (6.9:1). */
  --code-keyword: #ff4f7e; /* Syntax: keys and keywords. This is the brand pink as it appears on dark. */
  --code-fn: #93c5fd; /* Syntax: function names. */
  --code-string: #6ee7b7; /* Syntax: strings, and the shell prompt. */
  --code-array: #fcd34d; /* Syntax: array brackets and numbers. */
  --shadow-pop: 0 12px 32px -12px rgba(10, 10, 20, 0.18); /* Intentional addition. Only for things that float over content (the open mobile menu, dropdowns). Never on cards. */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #07070c;
    --surface: #0f0f18;
    --border: #1c1c2a;
    --foreground: #f2f2f7;
    --muted: #9a9ab0;
    --accent: #ff4f7e;
    --accent-hover: #ff6b91;
    --accent-text: var(--accent);
    --accent-wash: rgba(255, 79, 126, 0.1);
    --on-accent: #07070c;
    --success: #6ee7b7;
    --warning: #fcd34d;
    --danger: #fca5a5;
    --info: #93c5fd;
    --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  --background: #07070c;
  --surface: #0f0f18;
  --border: #1c1c2a;
  --foreground: #f2f2f7;
  --muted: #9a9ab0;
  --accent: #ff4f7e;
  --accent-hover: #ff6b91;
  --accent-text: var(--accent);
  --accent-wash: rgba(255, 79, 126, 0.1);
  --on-accent: #07070c;
  --success: #6ee7b7;
  --warning: #fcd34d;
  --danger: #fca5a5;
  --info: #93c5fd;
  --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
}
:root {
  --space-1: 4px; /* Badge vertical padding, icon-to-label nudges. */
  --space-2: 8px; /* Gap between a badge and its neighbours, or between an input and its helper text. */
  --space-3: 12px; /* Button horizontal padding at small size, gaps in toolbars, and the vertical padding of buttons and inputs. */
  --space-4: 16px; /* Input horizontal padding, gaps in a form and the padding of small panels. */
  --space-5: 20px; /* Space between a field label and the next field. */
  --space-6: 24px; /* Page gutter, button horizontal padding, card padding on small cards and the gap between grid cards. */
  --space-8: 32px; /* Card padding, and the gap between icon nav links. */
  --space-10: 40px; /* Empty-state padding and the gap below a section lead. */
  --space-16: 64px; /* Space between a section head and its content, and between the columns of a two-column split. */
  --space-24: 96px; /* Section vertical padding (py-24). */
  --container: 1152px; /* Max content width (max-w-6xl), with space-6 gutters. */
  --header-height: 64px; /* Height of the fixed site header (h-16). */
  --radius-md: 6px; /* Badges, the Pro tag, inline code chips and tiny outline buttons. */
  --radius-lg: 8px; /* Inputs, selects, icon tiles, small panels, and copy buttons in code panels. */
  --radius-2xl: 16px; /* Cards, panels, plan cards, code panels, tables and empty states. */
  --radius-full: 9999px; /* All buttons, the hero tag and status dots. */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-hero: 600 72px/1.05 var(--font-sans); /* The single h1 of a landing page on desktop. Use 48px on mobile. Colour one word with accent. */
  --text-section-title: 600 48px/1 var(--font-sans); /* Section h2 on desktop. Use section-title-mobile below 768px. */
  --text-section-title-mobile: 600 30px/36px var(--font-sans); /* Section h2 on mobile, and page titles in the account portal and docs. */
  --text-price: 600 40px/1 var(--font-sans); /* Licence prices on plan cards and stat values. Set with tabular numerals. */
  --text-title-lg: 600 20px/28px var(--font-sans); /* Card titles in two-up layouts, panel headings and docs h3. */
  --text-title: 600 18px/28px var(--font-sans); /* Card titles in three-up grids and FAQ questions. */
  --text-lead: 400 18px/28px var(--font-sans); /* The paragraph under a section title, in muted. */
  --text-body: 400 16px/1.625 var(--font-sans); /* Running copy and docs prose. */
  --text-small: 400 14px/1.625 var(--font-sans); /* Card descriptions, table cells, footer links and helper text. */
  --text-button: 500 16px/24px var(--font-sans); /* Button labels. Small buttons use 14px. */
  --text-label: 500 14px/20px var(--font-sans); /* Uppercase section eyebrow in accent-text. */
  --text-field-label: 500 14px/20px var(--font-sans); /* Form field labels, set above the control in sentence case. */
  --text-caption: 400 12px/16px var(--font-sans); /* Uppercase metadata labels in muted: column heads, fact labels, footer column titles. */
  --text-badge: 500 11px/16px var(--font-sans); /* Badges and the Pro tag, uppercase. */
  --text-numeral: 400 14px/20px var(--font-mono); /* Zero-padded step numbers in accent-text. */
  --text-code: 400 14px/1.75 var(--font-mono); /* Code panels and the install strip. */
  --text-machine: 400 14px/20px var(--font-mono); /* Anything machine-shaped: licence keys, hostnames, dates, field names and inline code. Sans is for anything a person wrote. */
}

/* ==== 2. Site layout and pages ============================================ */
/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1rem + .1vw, 17px);
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
/* An author-level `display` beats the UA rule for [hidden], and the portal
   toggles whole panels with it — .btn, .acct__who and friends would otherwise
   stay on screen while marked hidden. */
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-md); }

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }
/* Grid/flex children must be allowed to shrink below their content's intrinsic
   width, or a code panel's longest <pre> line stretches its track past the viewport. */
.hero__grid > *, .showcase > *, .split > *, .transform > *, .pipe > *,
.showcase__aside, .hero__media, .split__copy, .split__media { min-width: 0; }
.code, .blockcard, .shot { min-width: 0; max-width: 100%; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; }
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 1.075rem; color: var(--muted); max-width: 60ch; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --_bg: var(--accent); --_fg: #fff;
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 600; line-height: 1;
  padding: .82em 1.25em; border-radius: var(--radius-lg); border: 1px solid transparent;
  background: var(--_bg); color: var(--_fg); cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none;  box-shadow: none; }
.btn:active { transform: translateY(0); }
.btn--primary { box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--ghost { --_bg: transparent; --_fg: var(--foreground); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); box-shadow: none; background: var(--background); }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--sm { font-size: .875rem; padding: .62em 1em; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--foreground); font-weight: 600; letter-spacing: -.02em; font-size: 1.06rem; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 700; }
.brand span { color: var(--accent-text); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__links a {
  color: var(--muted); font-size: .93rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-lg);
  /* A nav label never wraps. Allowed to, "How it works" breaks over two lines
     and the row silently "fits" at a width where it plainly does not — which is
     how the sideways scroll hid in plain sight. */
  white-space: nowrap;
}
.nav__links a:hover { color: var(--foreground); background: var(--surface); text-decoration: none; }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background);
  color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { color: var(--foreground); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav__toggle { display: none; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 60px); align-items: center;
}
.hero__copy { max-width: 34rem; }
.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.9vw, 4rem);
  line-height: 1.03; margin-top: 22px;
}
.hero h1 .mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.04em; }
.hero h1 .u { position: relative; white-space: nowrap; }
.hero h1 .u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .07em; height: .11em;
  background: var(--accent); border-radius: 2px; opacity: .9;
}
.hero__lede { margin-top: 22px; font-size: 1.16rem; line-height: 1.55; color: var(--muted); }
.hero__lede b { color: var(--foreground); font-weight: 600; }
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-family: var(--font-mono); font-size: .8rem; color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .5em; }
.hero__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__meta .dot--blue { background: var(--accent); }
.hero__meta .dot--green { background: #34a06a; }

/* Hero transform: code -> block */
.transform { position: relative; display: grid; gap: 0; }
.transform__arrow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--background); color: var(--accent);
  border: 1px solid var(--border); box-shadow: none;
}
.transform__arrow svg { width: 22px; height: 22px; }

/* ---- Code panels --------------------------------------------------------- */
.code {
  background: var(--code-bg); color: var(--code-fg); border-radius: var(--radius-2xl);
  border: 1px solid var(--code-line); box-shadow: none; overflow: hidden;
  font-family: var(--font-mono); font-size: .84rem; line-height: 1.75;
}
.code__bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  border-bottom: 1px solid var(--code-line); background: rgba(255,255,255,.02);
}
.code__dots { display: inline-flex; gap: 6px; }
.code__dots i { width: 11px; height: 11px; border-radius: 50%; background: #33415a; }
.code__name { margin-left: 6px; color: var(--code-dim); font-size: .76rem; letter-spacing: .02em; }
.code__copy {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--code-line); color: var(--code-dim);
  font-family: var(--font-mono); font-size: .72rem; padding: 4px 9px; border-radius: var(--radius-lg); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.code__copy:hover { color: var(--code-fg); border-color: #3b4a63; }
.code__copy.is-done { color: var(--code-string); border-color: var(--code-string); }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code code { font-family: inherit; white-space: pre; }
/* A code panel dropped inside a card or a callout must not inherit that
   surface's inline-code chip — the chip has its own background and border,
   and on the dark panel it paints a light box behind every line. This is the
   general form of the reset .docs__body has always carried. */
.code pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.tok-key { color: var(--code-keyword); }
.tok-fn  { color: var(--code-fn); }
.tok-str { color: var(--code-string); }
.tok-arr { color: var(--code-array); }
.tok-com { color: var(--code-dim); font-style: italic; }
.tok-var { color: #9ad0ff; }
.tok-punc{ color: #8194ad; }
.cl { display: block; }

/* Mini rendered "block" preview that the code becomes */
.blockcard {
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl);
  box-shadow: none; overflow: hidden;
}
.blockcard__chrome {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: var(--surface);
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted);
}
.blockcard__chrome .wp { width: 15px; height: 15px; border-radius: 3px; background: var(--foreground); flex: none; }
.blockcard__body { padding: 18px; display: grid; gap: 14px; }
.blockcard__tag {
  justify-self: start; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-text); background: var(--accent-wash);
  padding: 3px 8px; border-radius: var(--radius-md);
}
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field .control {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 9px 11px;
  background: var(--background); color: var(--muted); font-size: .82rem; min-height: 20px;
}
.field .control--tall { min-height: 44px; }
.field-row { display: flex; align-items: center; gap: 10px; }
.field-row .toggle { width: 34px; height: 19px; border-radius: var(--radius-2xl); background: var(--accent); position: relative; flex: none; }
.field-row .toggle::after { content:""; position: absolute; right: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.field-row span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field-swatch { width: 24px; height: 24px; border-radius: var(--radius-md); border: 1px solid var(--border); background: #2271b1; flex: none; }

/* ---- Marquee logos-ish trust strip (facts, not fake logos) --------------- */
.facts { border-block: 1px solid var(--border); background: var(--surface); }
.facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border-inline: 1px solid var(--border);
}
.fact { background: var(--surface); padding: 22px 20px; text-align: center; }
.fact b { display: block; font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; color: var(--foreground); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); }

/* ---- Pipeline (how it works) --------------------------------------------- */
.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.pipe__step {
  position: relative; background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius-2xl); padding: 24px 22px 26px; box-shadow: none;
}
.pipe__step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--accent);
  letter-spacing: .05em;
}
.pipe__step h3 { font-size: 1.12rem; margin-top: 14px; }
/* The last step's copy names a template path with no spaces in it. Without this
   the path sets the track's minimum width, so the whole four-column grid stayed
   339px per column and pushed the page sideways at every viewport under 1400. */
.pipe__step code { overflow-wrap: anywhere; }
.pipe__step p { margin-top: 9px; font-size: .95rem; color: var(--muted); }
.pipe__step .glyph { position: absolute; top: 20px; right: 20px; color: var(--muted); opacity: .5; }
.pipe__step .glyph svg { width: 22px; height: 22px; }
.pipe__step:not(:last-child)::after {
  content: ""; position: absolute; right: -13px; top: 50%; z-index: 2;
  width: 26px; height: 1px; background: var(--border);
}

/* ---- Split (two ways) ---------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
.split--reverse .split__media { order: -1; }
.ways { display: grid; gap: 16px; }
.way {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--background);
  box-shadow: none;
}
.way__icon { width: 40px; height: 40px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-text); flex: none; }
.way__icon svg { width: 20px; height: 20px; }
.way h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.way h3 .pill { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--radius-md); background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.way p { margin-top: 8px; font-size: .95rem; color: var(--muted); }
.way__note { margin-top: 18px; font-size: .92rem; color: var(--muted); padding-left: 16px; }
.way__note b { color: var(--foreground); font-weight: 600; }

/* Framed screenshot */
.shot {
  border: 1px solid var(--border); border-radius: var(--radius-2xl); overflow: hidden;
  box-shadow: none; background: var(--background);
}
.shot__bar { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-bottom: 1px solid var(--border); background: var(--surface); }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.shot__bar span { margin-left: 8px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.shot img { width: 100%; height: auto; }
.shot--plain { border-radius: var(--radius-2xl); }
.shot--plain img { border-radius: 0; }

/* ---- Feature grid -------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: 26px 24px; box-shadow: none;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover {  box-shadow: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.feature__icon { width: 42px; height: 42px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-text); margin-bottom: 18px; }
.feature__icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.1rem; }
.feature p { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.feature code { font-family: var(--font-mono); font-size: .85em; background: var(--surface); padding: .1em .4em; border-radius: var(--radius-md); color: var(--accent-text); border: 1px solid var(--border); }

/* ---- Type specimen (21 field types) -------------------------------------- */
.specimen { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.tc {
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: 22px; box-shadow: none;
}
.tc__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.tc__label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.tc__count { margin-left: auto; color: var(--muted); }
.tc__list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tc__list li {
  font-family: var(--font-mono); font-size: .82rem; color: var(--foreground);
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 9px; border-radius: var(--radius-lg);
}
.tc__list li b { color: var(--accent-text); font-weight: 500; }

/* ---- Template showcase --------------------------------------------------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.showcase .code { align-self: stretch; }
.showcase__aside { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.showcase__aside h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem); }
.showcase__aside p { color: var(--muted); font-size: 1.05rem; }
.helperlist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.helperlist code { font-family: var(--font-mono); font-size: .8rem; background: var(--background); border: 1px solid var(--border); color: var(--foreground); padding: 5px 10px; border-radius: var(--radius-lg); }
.helperlist code b { color: var(--accent-text); font-weight: 500; }

/* ---- Pull quote (editorial serif moment) --------------------------------- */
.quote { text-align: center; max-width: 40ch; margin-inline: auto; }
.quote p { font-family: var(--font-sans); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.15rem); line-height: 1.32; color: var(--foreground); letter-spacing: -.01em; }
.quote .mark { font-family: var(--font-sans); font-style: italic; font-size: 3rem; color: var(--accent); line-height: 0; display: block; height: 1.1rem; }

/* ---- Gallery ------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.gallery figcaption b { color: var(--foreground); font-weight: 600; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .02em; }

/* ---- "No" band ----------------------------------------------------------- */
.nos { background: var(--code-bg); color: #cfd8e6; border-radius: 0; }
.nos .wrap { padding-block: clamp(56px, 8vw, 96px); }
.nos .eyebrow { color: var(--code-array); }
.nos h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); max-width: 20ch; }
.nos__grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--code-line); border: 1px solid var(--code-line); border-radius: var(--radius-2xl); overflow: hidden; }
.no { background: var(--code-bg); padding: 26px 26px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.no__x { width: 30px; height: 30px; border-radius: var(--radius-lg); background: rgba(224,166,74,.12); color: var(--code-array); display: grid; place-items: center; flex: none; }
.no__x svg { width: 16px; height: 16px; }
.no h3 { color: #fff; font-size: 1.06rem; }
.no p { margin-top: 7px; font-size: .93rem; color: #93a3ba; }
.no code { font-family: var(--font-mono); background: rgba(255,255,255,.06); padding: .1em .4em; border-radius: var(--radius-md); color: #cbd6e6; font-size: .85em; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 0; max-width: 800px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 4px 22px 0; display: flex;
  align-items: center; gap: 16px; font-weight: 600; font-size: 1.08rem; color: var(--foreground);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s ease; margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq summary .q { font-family: var(--font-mono); color: var(--accent); font-size: .9rem; flex: none; }
.faq__a { padding: 0 40px 24px 40px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.faq__a code { font-family: var(--font-mono); font-size: .85em; background: var(--surface); padding: .1em .4em; border-radius: var(--radius-md); color: var(--accent-text); border: 1px solid var(--border); }

/* The same chip on the remaining prose surfaces. There is no bare `code` rule
   on purpose — each surface sets its own background, and a global one would be
   wrong on the dark panels — so a new kind of prose block has to be named here.
   These are the ones the comparison and guide pages introduced. */
.section-head p code, .plans-note code, .plan__list code,
.docs__steps code, .note code, table.grid td code {
  font-family: var(--font-mono); font-size: .85em; background: var(--surface);
  padding: .1em .4em; border-radius: var(--radius-md); color: var(--accent-text);
  border: 1px solid var(--border); overflow-wrap: anywhere;
}

/* ---- CTA ----------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: clamp(44px, 6vw, 76px) var(--space-6);
  box-shadow: none;
}
.cta h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); max-width: 18ch; margin-inline: auto; }
.cta p { margin: 18px auto 0; max-width: 52ch; color: var(--muted); font-size: 1.1rem; }
.cta__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta__code {
  margin: 26px auto 0; max-width: 460px; display: flex; align-items: center; gap: 12px;
  background: var(--code-bg); color: var(--code-fg); font-family: var(--font-mono); font-size: .86rem;
  padding: 13px 16px; border-radius: var(--radius-lg); text-align: left; border: 1px solid var(--code-line);
}
.cta__code .prompt { color: var(--code-string); }
.cta__code .cmd { color: var(--code-fg); flex: 1; }
.cta__code button { margin-left: auto; background: transparent; border: 1px solid var(--code-line); color: var(--code-dim); border-radius: var(--radius-lg); padding: 5px 8px; cursor: pointer; }
.cta__code button:hover { color: #fff; }
.cta__code button.is-done { color: var(--code-string); border-color: var(--code-string); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px 32px; padding-block: 56px 40px; }
.footer__brand .brand { font-size: 1.1rem; }
.footer__brand p { margin-top: 14px; font-size: .92rem; color: var(--muted); max-width: 34ch; }
/* Ownership credit — the wordmark is the link, the sentence beside it is not. */
.footer__brand .footer__owner {
  margin-top: 20px; max-width: none; font-size: .82rem; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
}
.footer__owner a { display: inline-flex; flex: none; }
.footer__owner img { height: 14px; width: auto; }  /* cap height matched to the sentence beside it */
.footer__col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.footer__col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.footer__col a { color: var(--muted); font-size: .93rem; }
.footer__col a:hover { color: var(--foreground); }
.footer__bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 22px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.footer__bar p { font-family: var(--font-mono); font-size: .78rem; }
.footer__bar .made { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.footer__bar .made b { color: var(--muted); font-weight: 500; }

/* ---- Pricing page -------------------------------------------------------- */
.price-hero { text-align: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(20px, 3vw, 32px); }
.price-hero .eyebrow { justify-content: center; }
.price-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); margin-top: 18px; }
.price-hero p { margin: 20px auto 0; max-width: 54ch; color: var(--muted); font-size: 1.14rem; }

/* Three paid tiers. 1024px rather than the page's full 1120px so the cards
   stay readable columns rather than stretching into banners. */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1024px; margin: 0 auto; align-items: stretch; }
.plan {
  position: relative; background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius-2xl); padding: 30px 26px; box-shadow: none;
  display: flex; flex-direction: column; gap: 18px;
}
.plan--featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: none; }
.plan--featured::before {
  content: "Most agencies"; position: absolute; top: -11px; left: 30px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 4px 10px; border-radius: var(--radius-md);
}
.plan__name { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price b { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--foreground); font-variant-numeric: tabular-nums; }
.plan__price .per { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.plan__tag { font-size: .95rem; color: var(--muted); }
.plan__list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.plan__list li { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; font-size: .95rem; color: var(--foreground); }
.plan__list li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; flex: none; }
.plan__list li.muted { color: var(--muted); }
.plan__list li.muted svg { color: var(--muted); }
.plan__cta { margin-top: auto; }
.plan__cta .btn { width: 100%; justify-content: center; }
.plan__fine { font-size: .8rem; color: var(--muted); text-align: center; }

/* The free edition. A band rather than a fourth card: it is a different kind of
   thing — a WordPress.org download, not a purchase — and putting it above the
   paid cards makes the page read the way the funnel actually runs. */
.plan-free {
  max-width: 1024px; margin: 0 auto 22px; background: var(--surface);
  border: 1px solid var(--border); border-left: 1px solid var(--border);
  border-radius: var(--radius-2xl); padding: 26px 30px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center;
}
.plan-free h3 { font-size: 1.2rem; }
.plan-free p { margin-top: 8px; color: var(--muted); font-size: .95rem; max-width: 62ch; }
.plan-free__price {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-text);
}
.plan-free .btn { white-space: nowrap; }

/* Where "buy again next year" lives now: once, under the cards, as a fact about
   the model rather than a bullet in every tier that reads like a warning. */
.plans-note {
  max-width: 1024px; margin: 18px auto 0; text-align: center;
  font-size: .86rem; color: var(--muted); line-height: 1.6;
}
.plans-note b { color: var(--muted); font-weight: 600; }

.support {
  max-width: 860px; margin: 40px auto 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 30px 34px;
  border-left: 1px solid var(--border);
}
.support h3 { font-size: 1.3rem; }
.support p { margin-top: 10px; color: var(--muted); font-size: 1rem; max-width: 68ch; }

.pnote { max-width: 760px; margin: 40px auto 0; display: grid; gap: 14px; }
.pnote__row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl); }
.pnote__row svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; flex: none; }
.pnote__row h4 { font-size: 1rem; }
.pnote__row p { margin-top: 5px; font-size: .92rem; color: var(--muted); }
.pnote__row code { font-family: var(--font-mono); font-size: .85em; background: var(--surface); padding: .1em .4em; border-radius: var(--radius-md); color: var(--accent-text); border: 1px solid var(--border); }

/* Three columns need more room than two did, so they get tighter rather than
   fewer: two columns would leave the featured tier either orphaned on its own
   row or spanning both and punching holes in the grid, and three narrow cards
   read better than either. Below that it is one column — a full-width card at
   tablet size is a banner, so the stack keeps a card's width. */
@media (max-width: 900px) {
  .plans { gap: 14px; }
  .plan { padding: 26px 20px; }
  .plan__price b { font-size: 2.2rem; }
  .plan__list li { font-size: .9rem; }
}
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; gap: 20px; }
  .plan { padding: 30px 26px; }
  .plan__price b { font-size: 2.6rem; }
  .plan-free { grid-template-columns: 1fr; padding: 24px; max-width: 460px; }
  .support { padding: 26px 24px; }
}

/* "Pro" markers on docs.html. Small and matter-of-fact: the free edition is a
   real plugin, so these say which of the four features a licence adds rather
   than decorating the page with a sales pitch. */
.pro-tag {
  display: inline-block; vertical-align: baseline;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-md); padding: .1em .4em; margin-left: .4em;
}
h2 .pro-tag { font-size: .48em; position: relative; top: -.35em; }
.pro-note {
  margin-top: 10px; padding: 12px 16px; font-size: .92rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 1px solid var(--border); border-radius: var(--radius-lg);
}

/* ---- Account portal & admin console -------------------------------------- */
/* Shared by account.html and admin.html. Same type case as the rest of the
   site: mono for anything machine-shaped (keys, hostnames, dates), sans for
   anything a person wrote. */

.acct { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.acct__head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.acct__head h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.5rem); margin-top: 14px; }
.acct__head p { margin-top: 12px; color: var(--muted); max-width: 56ch; }
.acct__who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.acct__who b { color: var(--foreground); font-weight: 500; }

/* Sign-in */
.signin { max-width: 480px; margin: 8px auto 0; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 32px 30px; box-shadow: none; }
.signin h2 { font-size: 1.35rem; }
.signin > p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.signin form { margin-top: 22px; display: grid; gap: 12px; }
.signin .btn { width: 100%; justify-content: center; }
.signin__alt { margin-top: 16px; font-size: .86rem; color: var(--muted); text-align: center; }
.signin__alt button { background: none; border: 0; padding: 0; color: var(--accent-text); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Form controls */
.inp {
  width: 100%; font: inherit; font-size: .95rem; color: var(--foreground);
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: .68em .8em;
}
.inp:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.inp--code { font-family: var(--font-mono); letter-spacing: .38em; text-transform: uppercase; text-align: center; font-size: 1.15rem; }
.inp--mono { font-family: var(--font-mono); font-size: .86rem; }
select.inp { appearance: none; padding-right: 2em;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.lbl { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.btn--danger { --_bg: transparent; --_fg: #b32d2e; border-color: color-mix(in srgb, #b32d2e 35%, var(--border)); }
.btn--danger:hover { --_bg: #b32d2e; --_fg: #fff; border-color: #b32d2e; }
:root[data-theme="dark"] .btn--danger { --_fg: #ff8f8f; }
.btn--tiny { font-size: .78rem; padding: .5em .8em; border-radius: var(--radius-lg); }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* Flash messages */
.flash { margin: 0 0 20px; padding: 13px 16px; border-radius: var(--radius-lg); font-size: .92rem; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.flash--ok { border-color: color-mix(in srgb, #1a7f37 40%, var(--border)); background: color-mix(in srgb, #1a7f37 8%, var(--background)); color: var(--foreground); }
.flash--err { border-color: color-mix(in srgb, #b32d2e 40%, var(--border)); background: color-mix(in srgb, #b32d2e 8%, var(--background)); color: var(--foreground); }

/* Licence card */
.lics { display: grid; gap: 20px; }
.lic { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl); box-shadow: none; overflow: hidden; }
.lic--lapsed { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.lic__head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.lic__key { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 1rem; letter-spacing: -.01em; color: var(--foreground); word-break: break-all; }
.lic__copy { background: transparent; border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--muted); padding: 4px 7px; cursor: pointer; line-height: 0; flex: none; }
.lic__copy:hover { color: var(--accent-text); border-color: var(--accent); }
.lic__copy.is-done { color: #1a7f37; border-color: #1a7f37; }
.lic__copy svg { width: 13px; height: 13px; }
.lic__badges { display: flex; flex-wrap: wrap; gap: 7px; }
.lic__body { padding: 20px 24px 24px; }

.badge { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--background); color: var(--muted); white-space: nowrap; }
.badge--accent { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--accent-wash); color: var(--accent-text); }
.badge--ok { border-color: color-mix(in srgb, #1a7f37 45%, var(--border)); background: color-mix(in srgb, #1a7f37 10%, var(--background)); color: #1a7f37; }
.badge--warn { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-wash); color: var(--accent); }
.badge--err { border-color: color-mix(in srgb, #b32d2e 45%, var(--border)); background: color-mix(in srgb, #b32d2e 10%, var(--background)); color: #b32d2e; }
:root[data-theme="dark"] .badge--ok { color: #6fcf97; }
:root[data-theme="dark"] .badge--err { color: #ff8f8f; }

/* Seat counters */
.seats { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px dashed var(--border); }
.seat { font-size: .86rem; color: var(--muted); }
.seat b { display: block; font-family: var(--font-mono); font-size: 1.25rem; color: var(--foreground); font-variant-numeric: tabular-nums; font-weight: 600; }
.seat--free b { color: var(--accent); }

/* Site list */
.sites { list-style: none; margin: 0; padding: 0; }
.site { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); }
.site:last-child { border-bottom: 0; }
.site__url { font-family: var(--font-mono); font-size: .92rem; color: var(--foreground); word-break: break-all; }
.site__meta { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; color: var(--muted); }
.site__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: end; }
/* Wide enough for the longest option ("Development (free)") to clear the
   dropdown arrow drawn in the padding. */
.site__actions .inp { width: auto; min-width: 12em; font-size: .82rem; padding: .45em 2.2em .45em .7em; }

.addsite { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px; align-items: end; }
.addsite .btn { white-space: nowrap; }

.empty { text-align: center; padding: 48px 24px; background: var(--background); border: 1px dashed var(--border); border-radius: var(--radius-2xl); }
.empty h2 { font-size: 1.3rem; }
.empty p { margin: 12px auto 22px; max-width: 46ch; color: var(--muted); }

/* The note explaining free dev/staging seats */
/* The download card. Sits above the licence list because it answers the
   question someone arrives with; the licences below are what they come back
   for later. Stacks on narrow screens so the button never squeezes the text. */
.dl { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 22px; background: var(--background); border: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 22px 26px; box-shadow: none; }
.dl__text { min-width: min(100%, 24ch); }
.dl__text h2 { font-size: 1.15rem; }
.dl__text p { margin-top: 7px; color: var(--muted); font-size: .93rem; max-width: 60ch; }
.dl__text p b { color: var(--foreground); font-weight: 500; }
.dl__action { display: flex; gap: 10px; flex-wrap: wrap; }


.devnote { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 22px 26px; }
.devnote h3 { font-size: 1.08rem; }
.devnote p { margin-top: 9px; color: var(--muted); font-size: .93rem; max-width: 74ch; }
.devnote code { font-family: var(--font-mono); font-size: .85em; background: var(--background); padding: .12em .45em; border-radius: var(--radius-md); color: var(--accent-text); border: 1px solid var(--border); }

/* Admin console */
/* Real gaps rather than the 1px-hairline-grid trick: the tile count doesn't
   divide evenly into every viewport, and a part-filled last row would show the
   grid's own background as an empty grey block. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin-bottom: 26px; }
.stat { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 16px 16px; }
.stat b { display: block; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--foreground); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 3px; font-size: .78rem; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.toolbar .inp { flex: 1; min-width: 220px; }

.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--background); }
table.grid { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
table.grid th, table.grid td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.grid th { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface); position: sticky; top: 0; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover { background: var(--surface); }
table.grid .mono { font-family: var(--font-mono); font-size: .84rem; word-break: break-all; }
table.grid .grid__empty { color: var(--muted); }
/* Used in tables and in the licence lists on an account, so it is not scoped
   to either. Keys and addresses stay on one line and widen their column
   instead: the table already scrolls sideways, and a licence key broken across
   four lines is unreadable in a way a scrollbar is not. */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-family: var(--font-mono); font-size: .84rem; text-align: left; white-space: nowrap; }
.linkish:hover { color: var(--accent); }

.pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }

.panel { margin-top: 26px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 24px 26px; box-shadow: none; }
.panel h2 { font-size: 1.2rem; }
.panel h3 { font-size: .95rem; margin-top: 24px; }
.panel h4 { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.panel > .site__meta { margin-top: 8px; max-width: 82ch; }
/* Bleeds to the panel's edges, so the padding here has to undo the panel's. */
.panel__head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  margin: -24px -26px 18px; padding: 17px 26px; border-bottom: 1px solid var(--border);
  background: var(--surface); border-radius: 17px 17px 0 0; }
.panel__head h2 { font-size: 1.1rem; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.panel__grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; align-items: end; }
.panel__grid .btn { justify-self: start; }
.checkline { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.checkline input { accent-color: var(--accent); }

.facts-inline { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--border); }
.facts-inline .lbl { margin-bottom: 3px; }
.facts-inline b { font-family: var(--font-mono); font-size: .95rem; font-weight: 500; color: var(--foreground); }

.log { list-style: none; margin: 12px 0 0; padding: 0; max-height: 320px; overflow-y: auto; font-family: var(--font-mono); font-size: .78rem; }
.log li { padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--muted); display: grid; grid-template-columns: 10.5em 11em 1fr; gap: 10px; }
.log li:last-child { border-bottom: 0; }
.log .t { color: var(--muted); }
.log .k { color: var(--accent-text); }

/* Console tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 10px 15px; font: inherit; font-size: .93rem; color: var(--muted); cursor: pointer; border-radius: 9px 9px 0 0; }
.tab:hover { color: var(--foreground); background: var(--surface); }
.tab.is-on { color: var(--accent-text); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 2.5px solid var(--accent); outline-offset: -2px; }
.pane__note { margin-bottom: 20px; max-width: 78ch; color: var(--muted); font-size: .92rem; }

/* Reports */
.range { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.range .inp { flex: none; width: auto; min-width: 0; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
#reportBody[aria-busy="true"] { opacity: .5; }
.report__caption { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.report h3 { margin-top: 28px; }
.report .tablewrap { margin-top: 12px; }
.report__split { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px 28px; margin-top: 24px; }
.stats--tight { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); margin: 18px 0 0; }
.stats--tight .stat { padding: 13px 14px; }
.stats--tight .stat b { font-size: 1.22rem; }

.breakdown__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 11px; }
.breakdown__head { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; font-size: .84rem; color: var(--muted); }
.breakdown__head b { font-family: var(--font-mono); font-size: .76rem; font-weight: 500; color: var(--foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown__track { margin-top: 5px; height: 6px; border-radius: 3px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.breakdown__fill { height: 100%; background: var(--accent); }

/* Charts. Hand-built SVG — see assets/admin-reports.js. Everything is in
   viewBox units, so the type size here is relative to a 200-unit-tall chart,
   not to the page. */
/* The SVG scales to its box, which means its type shrinks with it. Below the
   min-width the chart scrolls sideways instead — the same bargain the tables
   make, and better than axis labels nobody can read. */
.chart { margin: 14px 0 0; overflow-x: auto; }
.chart__svg { display: block; width: 100%; min-width: 560px; height: auto; }
.chart__grid { stroke: var(--border); stroke-width: .6; }
.chart__axis { font-family: var(--font-mono); font-size: 8px; fill: var(--muted); }
.chart__bar { transition: opacity .15s ease; }
.chart__bar:hover { opacity: .72; }
.chart__bar--a { fill: var(--accent); }
.chart__bar--b { fill: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.legend__key { display: inline-flex; align-items: center; gap: 7px; }
.legend__swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend__swatch--a { background: var(--accent); }
.legend__swatch--b { background: var(--accent); }

@media (max-width: 760px) {
  .site { grid-template-columns: 1fr; }
  .site__actions { justify-content: start; }
  .addsite { grid-template-columns: 1fr; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .presets { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chart__bar { transition: none; }
}

/* ---- Scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .feature { transition: none; }
}

/* ---- Responsive ---------------------------------------------------------- */
/* The nav row had no give between the phone menu and a roomy desktop: full
   spacing all the way down to 760px, and past its own width it pushed the whole
   page sideways rather than adapting — 180px of it at 761px, on every page.
   Two changes. Tighten the spacing through the middle, so the links survive a
   small laptop rather than a full-width one. And hand over to the menu button at
   960px, which is where the widest nav (index and docs, seven links) still has
   room to spare: measured, that row needs 880px to make a single line at all and
   960px to do it without butting against the theme toggle. Lower the number and
   you get the packed row back; the labels can no longer wrap to disguise it. */
@media (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav__links { gap: 0; margin-left: 0; }
  .nav__links a { padding: 8px 8px; font-size: .89rem; }
}
@media (max-width: 1000px) {
  .footer { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--background); color: var(--foreground); cursor: pointer;
  }
  .nav__toggle svg { width: 20px; height: 20px; }
  .nav[data-open="true"] .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: var(--space-6); right: var(--space-6); top: 70px;
    background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl);
    padding: 8px; box-shadow: none; margin: 0;
  }
  .nav[data-open="true"] .nav__links a { padding: 12px 14px; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { max-width: 40rem; }
  .transform { max-width: 520px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .showcase { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr 1fr; }
  .pipe__step:not(:last-child)::after { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .nos__grid { grid-template-columns: 1fr; }
}
/* The header CTA outlives the menu button. Once the links are behind it the row
   is brand, toggle and button with room to spare, and this is the page's primary
   action — it goes only when the row is genuinely narrow. */
@media (max-width: 620px) {
  .nav__cta-desktop { display: none; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .faq__a { padding-left: 0; padding-right: 0; }
  .hero__cta .btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Documentation (docs.html)
   The manual lives on the site, not in a repository README: the people who
   need it have bought the plugin, not cloned the source.
   ========================================================================== */
.docs-hero { padding-block: clamp(34px, 5vw, 60px) clamp(24px, 3vw, 34px); border-bottom: 1px solid var(--border); background: var(--surface); }
.docs-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); margin-top: 16px; }
.docs-hero p { margin-top: 18px; max-width: 62ch; color: var(--muted); font-size: 1.1rem; }
.docs-hero__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 9px 16px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .02em; color: var(--muted); }
.docs-hero__meta span { display: inline-flex; align-items: center; gap: .55em; }
.docs-hero__meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.docs-hero__meta i.b { background: var(--accent); }

.docs { display: grid; grid-template-columns: 234px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: clamp(30px, 4vw, 48px) clamp(56px, 8vw, 96px); }

/* Sidebar contents */
.docs__side { position: sticky; top: 82px; }
.docs__side h2 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.docs__toc { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 1px; max-height: calc(100vh - 160px); overflow-y: auto; }
.docs__toc a { display: block; padding: 6px 13px; font-size: .9rem; color: var(--muted);  }
.docs__toc a:hover { color: var(--foreground); background: var(--surface); text-decoration: none; }
.docs__toc a[aria-current="true"] { color: var(--accent-text); border-left-color: var(--accent); background: var(--accent-wash); }
.docs__aside { margin-top: 22px; padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--background); font-size: .85rem; color: var(--muted); }
.docs__aside b { display: block; color: var(--foreground); font-weight: 600; font-size: .9rem; }
.docs__aside p { margin-top: 7px; }

/* Prose */
.docs__body { min-width: 0; max-width: 78ch; }
.docs__body > section { scroll-margin-top: 88px; padding-bottom: clamp(28px, 4vw, 44px); }
.docs__body > section + section { border-top: 1px solid var(--border); padding-top: clamp(34px, 4vw, 52px); }
.docs__body h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.95rem); }
.docs__body h3 { font-size: 1.14rem; margin-top: 34px; }
.docs__body h4 { font-size: .99rem; margin-top: 26px; }
.docs__body p { margin-top: 14px; color: var(--muted); }
.docs__body p b, .docs__body li b, .docs__body td b { color: var(--foreground); font-weight: 600; }
.docs__body ul, .docs__body ol { margin: 14px 0 0; padding-left: 21px; color: var(--muted); display: grid; gap: 9px; }
.docs__body li { min-width: 0; }
.docs__body li::marker { color: var(--muted); }
/* Inline code is often a path or a signature with no spaces in it — let it
   break rather than push the page sideways on a phone. */
.docs__body code { font-family: var(--font-mono); font-size: .85em; background: var(--surface); padding: .1em .4em; border-radius: var(--radius-md); color: var(--accent-text); border: 1px solid var(--border); overflow-wrap: anywhere; }
.docs__body .lede { font-size: 1.08rem; color: var(--muted); }
.docs__body .code { margin-top: 20px; box-shadow: none; }
.docs__body .code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.docs__body .tablewrap { margin-top: 20px; }
.docs__body table.grid td code { white-space: nowrap; }
/* The reference tables scroll sideways in their own box, not vertically, so a
   sticky header row would only slide under the translucent site header. */
.docs__body table.grid th { position: static; }
.docs__body table.grid { min-width: 560px; }
.docs__body .faq { margin-top: 20px; max-width: none; }
.docs__body hr { margin: 34px 0 0; border: 0; border-top: 1px dashed var(--border); }

/* A callout for the things that bite: nesting limits, escaping, priority 5 */
.note { margin-top: 20px; padding: 16px 20px; background: var(--background); border: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: var(--radius-2xl); }
.note h4, .note p:first-child { margin-top: 0; }
.note h4 { font-size: .95rem; }
.note p { margin-top: 8px; font-size: .93rem; }
.note--accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

/* Numbered "do this, then this" runs */
.docs__steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: dstep; }
.docs__steps li { position: relative; padding-left: 44px; color: var(--muted); }
.docs__steps li::before {
  counter-increment: dstep; content: counter(dstep);
  position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: var(--radius-lg);
  display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-text);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
}
.docs__steps li b { color: var(--foreground); font-weight: 600; }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 22px; }
  .docs__side { position: static; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--background); padding: 18px 20px; }
  .docs__toc { max-height: none; grid-auto-flow: column; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-template-rows: repeat(7, auto); gap: 2px 10px; }
  .docs__aside { display: none; }
}
@media (max-width: 560px) {
  /* Fourteen entries stacked would push the first paragraph off a phone screen,
     so let them pair up into two columns instead. */
  .docs__toc { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
}


/* ==== 3. Shared component bundle (Syntaxion design system) ============== */
/* Syntaxion — component styles for syntaxion.co.uk and syntaxionblocks.com.
   Every value comes from tokens.css; this file adds none of its own colours.
   Class names follow the GutenFields site (assets/styles.css), so that site can
   swap stylesheets without rewriting its markup.
   Flat by rule: borders and surface bands, no drop shadows on cards. */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.625;
  color: var(--foreground); background: var(--background);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code, kbd, .mono { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-md); }
::selection { background: var(--accent-wash); }
[hidden] { display: none !important; }

/* ---- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }
.section { padding-block: var(--space-24); border-top: 1px solid var(--border); }
.section--surface { background: var(--surface); }
.section-head { max-width: 42rem; margin-bottom: var(--space-16); }
.section-head h2 { font-size: 48px; line-height: 1; }
.section-head p { margin-top: var(--space-4); font-size: 18px; line-height: 28px; color: var(--muted); }
@media (max-width: 767px) { .section-head h2 { font-size: 30px; line-height: 36px; } }

/* ---- Eyebrow & hero tag -------------------------------------------------- */
.eyebrow {
  display: block; margin-bottom: var(--space-3);
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-text);
}
.tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--surface); font-size: 12px; line-height: 16px; color: var(--muted);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--accent); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 500;
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-full);
  border: 1px solid var(--border); background: transparent; color: var(--foreground);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn:hover { border-color: color-mix(in srgb, var(--foreground) 40%, transparent); color: var(--foreground); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--dark { background: var(--foreground); border-color: var(--foreground); color: var(--background); }
.btn--dark:hover { opacity: .9; color: var(--background); border-color: var(--foreground); }
.btn--sm { font-size: 14px; line-height: 20px; padding: 10px 20px; }
.btn--tiny { font-size: 12px; line-height: 16px; padding: 8px 12px; border-radius: var(--radius-md); }
.btn--tiny:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.btn--danger:hover { background: var(--danger-wash); border-color: var(--danger); color: var(--danger); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--background) 70%, transparent);
  backdrop-filter: blur(12px);
}
.nav { display: flex; align-items: center; gap: var(--space-8); height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--foreground); font-weight: 600; font-size: 18px; letter-spacing: -0.025em; }
.brand:hover { color: var(--foreground); }
.brand img { height: 24px; width: auto; display: block; }
.brand__product { color: var(--muted); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: var(--space-8); font-size: 14px; }
.nav__links a { color: var(--muted); white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--foreground); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius-full); background: transparent;
  color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--foreground); border-color: color-mix(in srgb, var(--foreground) 40%, transparent); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---- Cards --------------------------------------------------------------- */
.card { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: var(--space-8); }
.card--sm { padding: var(--space-6); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.feature { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: var(--space-8); transition: border-color .15s ease; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.feature h3 { font-size: 18px; line-height: 28px; }
.feature p { margin-top: var(--space-2); font-size: 14px; color: var(--muted); }
.feature code, .chip {
  font-family: var(--font-mono); font-size: .85em; padding: .1em .4em; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border); color: var(--accent-text); overflow-wrap: anywhere;
}
.icon-tile {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none; margin-bottom: var(--space-5);
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); color: var(--accent);
}
.icon-tile svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---- Steps (how it works) ---------------------------------------------- */
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); counter-reset: step; }
.pipe__step { border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: var(--space-6); background: var(--background); }
.pipe__step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--accent-text); margin-bottom: var(--space-3); }
.pipe__step h3 { font-size: 20px; line-height: 28px; }
.pipe__step p { margin-top: var(--space-2); font-size: 14px; color: var(--muted); }
.pipe__step code { font-family: var(--font-mono); font-size: .9em; overflow-wrap: anywhere; }
@media (max-width: 900px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pipe { grid-template-columns: 1fr; } }

/* ---- Code panel ---------------------------------------------------------- */
.code {
  background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--code-line);
  border-radius: var(--radius-2xl); overflow: hidden; min-width: 0;
  font-family: var(--font-mono); font-size: 14px; line-height: 1.75;
}
.code__bar { display: flex; align-items: center; gap: var(--space-2); padding: 10px var(--space-4); border-bottom: 1px solid var(--code-line); }
.code__name { color: var(--code-dim); font-size: 12px; }
.code__copy {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--code-line); border-radius: var(--radius-lg);
  color: var(--code-dim); font-family: var(--font-mono); font-size: 12px; padding: 4px 10px; cursor: pointer;
}
.code__copy:hover { color: var(--code-fg); }
.code__copy.is-done { color: var(--code-string); border-color: var(--code-string); }
.code__copy svg { width: 13px; height: 13px; }
.code pre { margin: 0; padding: var(--space-5) var(--space-6); overflow-x: auto; }
.code pre code { white-space: pre; background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.tok-key { color: var(--code-keyword); }
.tok-fn { color: var(--code-fn); }
.tok-str { color: var(--code-string); }
.tok-arr { color: var(--code-array); }
.tok-com { color: var(--code-dim); font-style: italic; }
.tok-punc { color: var(--code-dim); }
.cmdline {
  display: flex; align-items: center; gap: var(--space-3); max-width: 30rem;
  background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--code-line); border-radius: var(--radius-full);
  font-family: var(--font-mono); font-size: 14px; padding: 10px 10px 10px var(--space-5);
}
.cmdline .prompt { color: var(--code-string); }
.cmdline .cmd { flex: 1; overflow-x: auto; white-space: nowrap; }

/* ---- Badges & tags ------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 2px var(--space-2); border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
  font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge--accent { color: var(--accent-text); background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.badge--ok { color: var(--success); background: var(--success-wash); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.badge--warn { color: var(--warning); background: var(--warning-wash); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.badge--err { color: var(--danger); background: var(--danger-wash); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.badge--info { color: var(--info); background: var(--info-wash); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.pro-tag {
  display: inline-block; vertical-align: middle; margin-left: .4em;
  padding: 1px 6px; border-radius: var(--radius-md);
  font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-text); background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ---- Forms --------------------------------------------------------------- */
.lbl { display: block; margin-bottom: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--foreground); }
.lbl .req { color: var(--accent-text); margin-left: 2px; }
.inp {
  width: 100%; font: inherit; font-size: 16px; line-height: 24px; color: var(--foreground);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4); transition: border-color .15s ease, box-shadow .15s ease;
}
.inp::placeholder { color: var(--muted); }
.inp:focus-visible { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--accent); }
.inp[aria-invalid="true"] { border-color: var(--danger); }
.inp--mono { font-family: var(--font-mono); font-size: 14px; }
.inp--code { font-family: var(--font-mono); letter-spacing: .38em; text-transform: uppercase; text-align: center; font-size: 18px; }
textarea.inp { resize: none; min-height: 120px; }
select.inp {
  appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.hint { margin-top: var(--space-2); font-size: 12px; line-height: 16px; color: var(--muted); }
.err-text { margin-top: var(--space-2); font-size: 14px; color: var(--danger); }
.field + .field { margin-top: var(--space-5); }
.checkline { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--muted); }
.checkline input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---- Flash --------------------------------------------------------------- */
.flash { padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); font-size: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--foreground); }
.flash b { font-weight: 600; }
.flash--ok { border-color: color-mix(in srgb, var(--success) 35%, transparent); background: var(--success-wash); }
.flash--ok b { color: var(--success); }
.flash--err { border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: var(--danger-wash); }
.flash--err b { color: var(--danger); }

/* ---- Note callout -------------------------------------------------------- */
.note { padding: var(--space-4) var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.note h4 { font-size: 16px; line-height: 24px; letter-spacing: -0.01em; }
.note p { margin-top: var(--space-1); font-size: 14px; color: var(--muted); }
.note__kicker { display: block; margin-bottom: var(--space-1); font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; }

/* ---- Pricing ------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--space-5); background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: var(--space-8); }
.plan--featured { border-color: var(--accent); }
.plan__flag { position: absolute; top: -12px; left: var(--space-8); }
.plan__flag.badge { background: var(--background); color: var(--accent-text); border-color: var(--accent); }
.plan__name { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.plan__price { display: flex; align-items: baseline; gap: var(--space-2); }
.plan__price b { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.plan__price .per { font-size: 14px; color: var(--muted); }
.plan__tag { font-size: 14px; color: var(--muted); }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.plan__list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; font-size: 14px; }
.plan__list li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.plan__list b { font-weight: 600; }
.plan__cta { margin-top: auto; }
.plan__fine { font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; max-width: 28rem; } }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5) 0; font-weight: 600; font-size: 18px; line-height: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); font-weight: 400; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq__a { padding: 0 var(--space-10) var(--space-6) 0; color: var(--muted); }
.faq__a b { color: var(--foreground); font-weight: 600; }

/* ---- Tabs ---------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-6); border-bottom: 1px solid var(--border); }
.tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: var(--space-3) 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--foreground); }
.tab.is-on, .tab[aria-selected="true"] { color: var(--foreground); border-bottom-color: var(--accent); }

/* ---- Stats --------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-4); }
.stat { border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: var(--space-5); background: var(--background); }
.stat b { display: block; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: var(--space-1); font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---- Table --------------------------------------------------------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--background); }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th, table.grid td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: top; }
table.grid th { font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface); }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover { background: var(--surface); }
table.grid .mono { font-family: var(--font-mono); font-size: 13px; }

/* ---- Licence card (account portal) -------------------------------------- */
.lic { border: 1px solid var(--border); border-radius: var(--radius-2xl); background: var(--background); overflow: hidden; }
.lic__head { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border); background: var(--surface); }
.lic__key { font-family: var(--font-mono); font-size: 16px; word-break: break-all; }
.lic__badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lic__body { padding: var(--space-5) var(--space-6) var(--space-6); }
.seats { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); padding-bottom: var(--space-4); border-bottom: 1px dashed var(--border); }
.seat { font-size: 14px; color: var(--muted); }
.seat b { display: block; font-family: var(--font-mono); font-size: 20px; line-height: 28px; font-weight: 500; color: var(--foreground); font-variant-numeric: tabular-nums; }
.sites { list-style: none; margin: 0; padding: 0; }
.site { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.site:last-child { border-bottom: 0; }
.site__url { font-family: var(--font-mono); font-size: 14px; word-break: break-all; }
.site__meta { margin-top: var(--space-1); font-size: 12px; color: var(--muted); }

/* ---- Empty state --------------------------------------------------------- */
.empty { text-align: center; padding: var(--space-10); border: 1px dashed var(--border); border-radius: var(--radius-2xl); background: color-mix(in srgb, var(--surface) 40%, transparent); color: var(--muted); }
.empty h2 { font-size: 20px; line-height: 28px; color: var(--foreground); }
.empty p { margin: var(--space-2) auto var(--space-6); max-width: 28rem; }

/* ---- Docs sidebar ----------------------------------------------------- */
.docs__toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs__toc a { display: block; padding: 6px var(--space-3); font-size: 14px; color: var(--muted); border-radius: var(--radius-lg); }
.docs__toc a:hover { color: var(--foreground); background: var(--surface); }
.docs__toc a[aria-current="true"] { color: var(--accent-text); background: var(--accent-wash); }
.docs__heading { font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: var(--space-3); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); }
.footer { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: var(--space-10) var(--space-8); padding-block: var(--space-16) var(--space-10); }
.footer__brand p { margin-top: var(--space-4); font-size: 14px; color: var(--muted); max-width: 34ch; }
.footer__col h4 { font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.footer__col ul { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.footer__col a { color: var(--muted); font-size: 14px; }
.footer__col a:hover { color: var(--foreground); }
.footer__bar { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: center; justify-content: space-between; padding-block: var(--space-6); border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .footer { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


/* ==== 4. Site overrides ================================================== */
/* Sans for anything a person wrote; mono stays for code, keys, hostnames,
   dates and step numerals (README: Type). The old site set labels in mono. */
.eyebrow, .hero__meta, .blockcard__tag, .field label, .field-row span, .fact b,
.way h3 .pill, .tc__label, .footer__col h4, .footer__bar p, .plan--featured::before,
.plan__name, .plan__price .per, .plan-free__price, .pro-tag, .lbl, .badge, .stat b,
table.grid th, .pager, .panel h4, .docs-hero__meta, .docs__side h2, .report__caption,
.faq summary .q, .shot__bar span { font-family: var(--font-sans); }
.eyebrow { display: block; font-size: 14px; letter-spacing: .1em; }
.eyebrow::before { content: none; }
.lbl { text-transform: none; letter-spacing: 0; }
.fact b { font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }

/* Header: the bundle's 32px gaps only fit five links; this site has seven. */
.nav { gap: var(--space-6); }
.nav__links { gap: var(--space-6); margin-left: var(--space-2); }
.nav__links a { padding: 0; border-radius: 0; font-weight: 400; }
.nav__links a:hover { background: none; }
.theme-toggle, .nav__toggle { border-radius: var(--radius-full); background: transparent; }
.theme-toggle:hover { border-color: color-mix(in srgb, var(--foreground) 40%, transparent); }
.site-header[data-scrolled="true"] { border-bottom-color: var(--border); }
@media (max-width: 1100px) {
  .nav { gap: var(--space-4); }
  .nav__links { gap: var(--space-4); margin-left: 0; }
  .nav__links a { padding: 0; font-size: 14px; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav[data-open="true"] .nav__links {
    top: calc(var(--header-height) + var(--space-2)); gap: 2px; padding: var(--space-2);
    border-radius: var(--radius-2xl); box-shadow: var(--shadow-pop);
  }
  .nav[data-open="true"] .nav__links a { padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); }
  .nav[data-open="true"] .nav__links a:hover { background: var(--surface); }
}

/* Footer: brand plus four columns on this site. */
.footer { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
.footer__owner img { height: 20px; width: auto; }
@media (max-width: 1000px) { .footer { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* Flat by rule: no lifts, no card shadows. */
.btn:hover, .feature:hover, .btn:active { transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn--ghost:hover { background: transparent; color: var(--foreground); border-color: color-mix(in srgb, var(--foreground) 40%, transparent); }
@media (max-width: 620px) { .nav__actions .nav__cta-desktop { display: none; } }
.btn, .btn--primary, .btn:hover { box-shadow: none; }
/* Icon tiles: 40px, surface, hairline, accent icon at 20px. */
.feature__icon { width: 40px; height: 40px; margin-bottom: var(--space-5); background: var(--surface); border: 1px solid var(--border); color: var(--accent); }
.feature__icon svg { width: 20px; height: 20px; }
