/* Bugsoft Portal website: the one stylesheet of website/ and the handbook in website/docs/ (made by php bin/handbook).
   The design system of the site (forge-work/design/tokens.json, every text and background pair checked for WCAG AA):
   deep ink navy for the brand and the main action, cool neutrals tinted towards it, the ladybird red only as a
   signature (logo, small marks), teal only inside the product. Inter Tight and Inter (SIL OFL 1.1, fonts/OFL-*.txt)
   from this site. Light and dark follow prefers-color-scheme, until the visitor picks one with the switch in the
   header (theme.js sets data-theme="light" or "dark" on <html>); the dark theme is a navy night of its own. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-tight-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-muted: #f4f6fa;
  --surface: #ffffff;
  --raised: #ffffff;
  --text: #0b1530;
  --text-2: #4b5670;
  --border: #e2e7ef;
  --border-strong: #cbd3e0;
  --border-input: #7f8aa3;
  --primary: #13295e;
  --primary-hover: #0c1d47;
  --on-primary: #ffffff;
  --accent: #1c3d8f;              /* links */
  --accent-hover: #13295e;
  --accent-soft: #e9eefa;         /* selection, the current item, marks */
  --on-accent: #ffffff;
  --signature: #cf1f3a;           /* the ladybird red: a signature, never a button */
  --support: #0f6f68;             /* teal: the product's own header, inside the product only */
  --focus: #2a5bd7;
  --code-bg: #f1f4f9;
  --note-bg: #f2f6fd;
  --note-border: #c6d4ee;
  --warn-bg: #fdf6ec;
  --warn-border: #ecd1a5;
  --scrim: rgb(255 255 255 / 0.82);
  --callout-bar: #8ea4d3;         /* the bar of a note (DRAFT, Note) */
  --warn-bar: #d9a35a;
  --feature-bg: #13295e;          /* the highlighted plan on the pricing page */
  --feature-line: rgb(255 255 255 / 16%);
  --feature-border: #13295e;
  --on-feature: #ffffff;
  --on-feature-muted: #c9d3ec;
  --feature-btn-bg: #ffffff;
  --on-feature-btn: #13295e;
  --term-bg: #0b1530;             /* code blocks: a terminal, like the product's own window */
  --term-chrome: #131f3f;
  --term-dot: #34446e;
  --on-term: #e6ecfb;
  --field-1: #e9eef7;             /* the tile field in a page's head: app tiles, as behind the landing page */
  --field-2: #d6dff0;
  --field-3: #b9c7e4;
  --shadow: 0 1px 2px rgb(11 21 48 / 5%), 0 12px 32px -14px rgb(11 21 48 / 18%);
  --shadow-card: 0 1px 2px rgb(11 21 48 / 4%), 0 8px 24px -16px rgb(11 21 48 / 16%);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max: 1200px;
  --gutter: 16px;
  --header: 64px;
  --font: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight Variable", "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fast: 160ms;
  color-scheme: light dark;
}

/* Dark: when the system asks for it and the visitor did not choose light, or when the visitor (or the page's host)
   chose dark: data-theme on <html>, set by theme.js. The two blocks hold the same values. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090f20;
    --bg-muted: #0d1529;
    --surface: #0d1529;
    --raised: #131d36;
    --text: #e9eef8;
    --text-2: #a3afc8;
    --border: #1f2b48;
    --border-strong: #2e3c62;
    --border-input: #6d7ca3;
    --primary: #e6ecfb;
    --primary-hover: #ffffff;
    --on-primary: #0b1530;
    --accent: #9fb8ff;
    --accent-hover: #c7d5ff;
    --accent-soft: #18264a;
    --on-accent: #0b1530;
    --signature: #ff5a70;
    --support: #34b5a5;
    --focus: #7ea2ff;
    --code-bg: #121c35;
    --note-bg: #0f1a36;
    --note-border: #2b3d6a;
    --warn-bg: #1f1a10;
    --warn-border: #5a4520;
    --scrim: rgb(9 15 32 / 0.8);
    --callout-bar: #4a64a6;
    --warn-bar: #9a7432;
    --feature-bg: #15234a;
    --feature-line: rgb(159 184 255 / 18%);
    --feature-border: #3d5797;
    --on-feature: #e9eef8;
    --on-feature-muted: #b4c1de;
    --feature-btn-bg: #e6ecfb;
    --on-feature-btn: #0b1530;
    --term-bg: #060b18;
    --term-chrome: #0d1529;
    --term-dot: #2e3c62;
    --on-term: #dbe4f7;
    --field-1: #0e172d;
    --field-2: #131e3a;
    --field-3: #1b2a50;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 70%);
    --shadow-card: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -18px rgb(0 0 0 / 60%);
  }
}
:root[data-theme="dark"] {
  --bg: #090f20;
  --bg-muted: #0d1529;
  --surface: #0d1529;
  --raised: #131d36;
  --text: #e9eef8;
  --text-2: #a3afc8;
  --border: #1f2b48;
  --border-strong: #2e3c62;
  --border-input: #6d7ca3;
  --primary: #e6ecfb;
  --primary-hover: #ffffff;
  --on-primary: #0b1530;
  --accent: #9fb8ff;
  --accent-hover: #c7d5ff;
  --accent-soft: #18264a;
  --on-accent: #0b1530;
  --signature: #ff5a70;
  --support: #34b5a5;
  --focus: #7ea2ff;
  --code-bg: #121c35;
  --note-bg: #0f1a36;
  --note-border: #2b3d6a;
  --warn-bg: #1f1a10;
  --warn-border: #5a4520;
  --scrim: rgb(9 15 32 / 0.8);
  --callout-bar: #4a64a6;
  --warn-bar: #9a7432;
  --feature-bg: #15234a;
  --feature-line: rgb(159 184 255 / 18%);
  --feature-border: #3d5797;
  --on-feature: #e9eef8;
  --on-feature-muted: #b4c1de;
  --feature-btn-bg: #e6ecfb;
  --on-feature-btn: #0b1530;
  --term-bg: #060b18;
  --term-chrome: #0d1529;
  --term-dot: #2e3c62;
  --on-term: #dbe4f7;
  --field-1: #0e172d;
  --field-2: #131e3a;
  --field-3: #1b2a50;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 70%);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -18px rgb(0 0 0 / 60%);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 32px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -0.04em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.4vw, 2.875rem); letter-spacing: -0.036em; line-height: 1.04; }
h3 { font-size: 1.1875rem; letter-spacing: -0.015em; }
p, ul, ol, dl, pre, table, figure { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color var(--fast) var(--ease), text-decoration-color var(--fast) var(--ease); }
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
strong { font-weight: 600; }
small, .small { font-size: 0.875rem; color: var(--text-2); }
code, kbd, pre { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--code-bg); border: 1px solid var(--border); border-radius: 5px; padding: 0.1em 0.35em; }
kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0.05em 0.4em; background: var(--surface); }
/* Code blocks: a terminal in the product's own ink, in both themes. */
pre {
  position: relative;
  background: var(--term-bg);
  color: var(--on-term);
  border: 1px solid var(--term-bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  overflow-x: auto;
  line-height: 1.6;
  font-size: 0.875rem;
  tab-size: 2;
}
pre ::selection { background: #2e4a8f; color: #ffffff; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--text); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip:focus { top: 12px; color: var(--bg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.wrap.wide { max-width: calc(1280px + 2 * var(--gutter)); }

/* Buttons: one filled main button (navy; light ink in dark), the others outlined. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: 0.9375rem; line-height: 1.2; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgb(11 21 48 / 18%), inset 0 1px 0 rgb(255 255 255 / 10%); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-muted); color: var(--text); border-color: var(--border-input); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--scrim);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: 12px; color: var(--text); text-decoration: none;
  font: 650 1.0625rem/1 var(--font-display); letter-spacing: -0.015em; }
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav li + li { margin: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.site-nav a:hover { color: var(--text); background: var(--bg-muted); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.header-cta { margin-left: auto; }
/* The theme switch (theme.js): a small track with a sun and a moon; the knob sits behind the theme on screen
   (aria-pressed: dark). Hidden without the script. */
.theme-toggle {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; flex: none;
  width: 64px; height: 36px; padding: 0 9px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--bg-muted); color: var(--text-2); cursor: pointer;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.theme-toggle::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--raised); box-shadow: 0 1px 2px rgb(11 21 48 / 20%), 0 0 0 1px var(--border);
  transition: transform 320ms var(--ease);
}
.theme-toggle[aria-pressed="true"]::before { transform: translateX(26px); }
.theme-toggle:hover { border-color: var(--border-input); color: var(--text); }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { position: relative; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: color var(--fast) var(--ease), opacity var(--fast) var(--ease); }
.theme-toggle[aria-pressed="false"] .theme-sun, .theme-toggle[aria-pressed="true"] .theme-moon { color: var(--text); }
.theme-toggle[aria-pressed="false"] .theme-moon, .theme-toggle[aria-pressed="true"] .theme-sun { opacity: 0.7; }
@media (max-width: 759px) {
  .site-header { position: static; }
  .site-header .wrap { padding-top: 12px; }
  .site-nav { order: 3; width: 100%; margin: 4px -12px 6px; }
  .site-nav ul { gap: 0; }
}
@media (max-width: 479px) {
  .jump a { min-height: 36px; padding: 0 12px; font-size: 0.875rem; }
  /* Six menu items on one row on a phone: the row uses the gutter on both sides. */
  .site-nav { width: calc(100% + 20px); margin-left: -10px; }
  .site-nav a { padding: 8px 7px; font-size: 0.875rem; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 72px; color: var(--text-2); font-size: 0.9375rem; margin-top: 0; background: var(--bg); }
.site-footer .wrap { display: grid; gap: 40px; }
.site-footer p { margin: 0 0 6px; }
.site-footer strong { color: var(--text); font-family: var(--font-display); font-weight: 650; }
.site-footer nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px; }
.site-footer h2 { font: 600 0.8125rem/1.4 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--text); }
@media (min-width: 900px) {
  .site-footer .wrap { grid-template-columns: 1fr 1.4fr; }
}

/* Sections */
.section { padding: 88px 0; }
.section.muted, .band { background: var(--bg-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section.muted + .section, .section + .section.muted { border-top: 0; }
@media (min-width: 900px) {
  .section { padding: 120px 0; }
}
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head p:last-child { margin-bottom: 0; }
.section-head p, .lead { color: var(--text-2); font-size: 1.125rem; }
.lead { font-size: 1.1875rem; line-height: 1.55; }
.eyebrow, .section-head .eyebrow, .feature-text .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.07em; text-transform: uppercase; margin: 0 0 16px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--signature); flex: none; }
.hint { color: var(--text-2); font-size: 0.875rem; margin: 16px 0 0; }
.spaced { margin-top: 32px; }
.center-text { text-align: center; }
.section.tight { padding-top: 40px; }
.section + .section:not(.muted):not(.cta) { border-top: 1px solid var(--border); }
ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps > li { margin: 0; counter-increment: step; }
ol.steps > li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent-soft); color: var(--text); font-weight: 650; font-size: 0.875rem; }

/* Hero */
.hero { padding: 64px 0 0; text-align: center; overflow: hidden; }
.hero .wrap > * { margin-left: auto; margin-right: auto; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 640px; font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.hero .actions { justify-content: center; }
.hero-shot { margin: 56px 0 0; }
.hero-shot figcaption { color: var(--text-2); font-size: 0.8125rem; margin: 14px 0 0; }
@media (min-width: 900px) {
  .hero { padding-top: 104px; }
  .hero-shot { margin-top: 72px; }
}
/* The head of every other page: the landing page's type (eyebrow, a large tight headline, one lead), left-aligned,
   with a quiet field of app tiles on the right on wide screens (as behind the landing page's product window). */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 64px; border-bottom: 1px solid var(--border); }
@media (min-width: 900px) {
  .page-hero { padding: 112px 0 104px; }
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.045em; font-weight: 660; max-width: 15ch; margin: 0; }
.page-hero .lead { max-width: 38rem; margin: 24px 0 0; }
.page-hero .meta { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 0.875rem; }
.page-hero .actions { margin-top: 36px; }
.page-hero .hint { margin-top: 18px; }
.page-hero .checks { margin: 28px 0 0; max-width: 38rem; }
.page-hero.not-found { padding-bottom: 120px; }
@media (max-width: 599px) {
  .page-hero h1 { font-size: 2.375rem; line-height: 1.02; }
  .page-hero .lead { font-size: 1.0625rem; margin-top: 16px; }
  .page-hero .actions { margin-top: 26px; gap: 10px; }
  .page-hero .actions .btn { flex: 1 1 auto; }
}
/* The tiles: one rounded tile and its copies (box-shadow keeps the radius), near ones crisp, far ones smaller and soft. */
.page-hero::after {
  content: ""; position: absolute; z-index: -1; display: none; pointer-events: none;
  top: 72px; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); width: 44px; height: 44px; border-radius: 12px;
  background: var(--field-3);
  box-shadow:
    -64px 0 0 0 var(--field-2), -128px 0 3px -4px var(--field-1), -192px 0 6px -10px var(--field-1),
    0 64px 0 0 var(--field-2), -64px 64px 0 0 var(--field-3), -128px 64px 2px -3px var(--field-2), -192px 64px 4px -6px var(--field-1), -256px 64px 7px -12px var(--field-1),
    0 128px 2px -3px var(--field-2), -64px 128px 0 0 var(--field-2), -128px 128px 0 0 var(--field-3), -192px 128px 3px -5px var(--field-2), -256px 128px 6px -10px var(--field-1), -320px 128px 9px -14px var(--field-1),
    0 192px 0 0 var(--field-3), -64px 192px 2px -3px var(--field-2), -128px 192px 0 0 var(--field-2), -192px 192px 0 0 var(--field-3), -256px 192px 5px -8px var(--field-2), -320px 192px 8px -12px var(--field-1),
    0 256px 4px -6px var(--field-2), -64px 256px 0 0 var(--field-3), -128px 256px 3px -5px var(--field-1), -192px 256px 2px -4px var(--field-2),
    -64px 320px 6px -9px var(--field-1), -128px 320px 5px -8px var(--field-2);
}
/* The ladybird red once, as a small signature tile in the field. */
.page-hero::before {
  content: ""; position: absolute; z-index: 0; display: none; pointer-events: none;
  top: calc(72px + 256px + 15px); right: calc(max(var(--gutter), calc((100vw - var(--max)) / 2)) + 256px + 15px);
  width: 14px; height: 14px; border-radius: 4px; background: var(--signature);
}
@media (min-width: 1180px) {
  .page-hero::after, .page-hero::before { display: block; }
}

/* The head arrives as the page opens (CSS only, while the animations are on), as the landing page's hero does. */
[data-motion="on"] :is(.page-hero .wrap, .reading-head) > * { animation: page-rise 900ms var(--ease) backwards; }
[data-motion="on"] :is(.page-hero .wrap, .reading-head) > :nth-child(2) { animation-delay: 70ms; }
[data-motion="on"] :is(.page-hero .wrap, .reading-head) > :nth-child(3) { animation-delay: 140ms; }
[data-motion="on"] :is(.page-hero .wrap, .reading-head) > :nth-child(4) { animation-delay: 210ms; }
[data-motion="on"] :is(.page-hero .wrap, .reading-head) > :nth-child(n+5) { animation-delay: 280ms; }
@keyframes page-rise {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}

/* Sections come in as they scroll into view (site.js; home.js on the landing page), only while the animations are on. */
.reveals body:not(.home) .reveal { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 700ms var(--ease), transform 1100ms var(--ease); }
.reveals body:not(.home) .reveal.is-in { opacity: 1; transform: none; }
.reveals body:not(.home) :is(.grid, .plans, .personas, .flist) > .reveal:nth-child(3n+2) { transition-delay: 70ms; }
.reveals body:not(.home) :is(.grid, .plans, .personas, .flist) > .reveal:nth-child(3n) { transition-delay: 140ms; }
.reveals body:not(.home) .plans > .reveal:nth-child(4) { transition-delay: 210ms; }

/* Screenshots */
.frame { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.hero-shot .frame { border-radius: 14px; }

/* Facts */
.band { padding: 28px 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.facts li { margin: 0; display: flex; flex-direction: column; font-size: 0.9375rem; }
.facts strong { color: var(--text); }
.facts span { color: var(--text-2); }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.facts a { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.facts a:hover strong { color: var(--accent); }

/* Feature rows */
.feature { display: grid; gap: 28px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature-text { max-width: 520px; }
.feature-text p { color: var(--text-2); }
.feature-text h2 { margin-bottom: 0.4em; }
.more { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.more a { text-decoration: none; }
.more a::after { content: " \2192"; display: inline-block; transition: transform var(--fast) var(--ease); }
.more a:hover { text-decoration: underline; }
.more a:hover::after { transform: translateX(3px); }
.all-features { margin: 72px 0 0; text-align: center; }
@media (min-width: 900px) {
  .all-features { margin-top: 112px; }
}
.feature-media { margin: 0; min-width: 0; }
.feature-media.stack { display: grid; gap: 16px; }
.feature-media.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 420px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .feature + .feature { margin-top: 112px; }
  .feature.flip .feature-text { order: 2; }
  .feature-media.phones { justify-self: center; }
}

/* Cards and grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1040px) {
  .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; min-width: 0;
  box-shadow: var(--shadow-card); transition: border-color var(--fast) var(--ease); }
.card:hover { border-color: var(--border-strong); }
.card > :last-child { margin-bottom: 0; }
.card h3 { font-size: 1.1875rem; letter-spacing: -0.015em; }
.card p { color: var(--text-2); }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: ""; position: absolute; left: 3px; top: 0.5em; width: 11px; height: 6px;
  border-left: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(-45deg);
}
.steps-list { padding-left: 1.4em; }
.steps-list li::marker { color: var(--text-2); font-weight: 600; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.chips li { margin: 0; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 0.875rem; color: var(--text); background: var(--surface); }

.local-demo { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--border); max-width: 760px; }
.local-demo p { color: var(--text-2); }

/* Pricing */
.price-teaser { display: grid; gap: 24px; align-items: end; }
.price-teaser p:last-child { margin-bottom: 0; }
.price-teaser > div:first-child p { color: var(--text-2); max-width: 600px; }
.price { font: 650 2rem/1.1 var(--font-display); letter-spacing: -0.03em; margin: 0 0 8px; color: var(--text); font-variant-numeric: tabular-nums; }
.price small { font: 400 0.875rem/1.4 var(--font); letter-spacing: 0; }
@media (min-width: 900px) {
  .price-teaser { grid-template-columns: 1fr auto; gap: 64px; }
  .price-teaser-cta { text-align: right; }
}
.plans { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.plan { display: flex; flex-direction: column; padding: 28px 24px 24px; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .who { font-size: 0.9375rem; margin-bottom: 0; }
@media (min-width: 1040px) {
  .plan .who { min-height: 3em; }
}
.plan .price { margin: 20px 0 6px; font-size: 2.5rem; letter-spacing: -0.045em; color: var(--text); }
.plan .price small { font-size: 0.9375rem; color: var(--text-2); margin-left: 2px; }
/* The VAT, on two lines: what the price is, and the amount with VAT. */
.plan .vat { display: flex; flex-direction: column; gap: 2px; font-size: 0.875rem; line-height: 1.45; color: var(--text-2);
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.plan .vat span:first-child { color: var(--text); font-weight: 550; }
.plan .vat .sep { display: none; }
.plan .checks { flex: 1; font-size: 0.9375rem; }
.plan .btn { width: 100%; margin-top: 12px; }
/* The highlighted plan: the brand's navy (a raised navy in dark). */
.plan-featured { background: var(--feature-bg); border-color: var(--feature-border); color: var(--on-feature);
  box-shadow: 0 1px 2px rgb(11 21 48 / 12%), 0 28px 56px -28px rgb(11 21 48 / 55%); }
.plan-featured:hover { border-color: var(--feature-border); }
.plan-featured h3, .plan-featured .price, .plan-featured .vat span:first-child { color: var(--on-feature); }
.plan-featured p, .plan-featured .who, .plan-featured .vat, .plan-featured .price small, .plan-featured .checks li { color: var(--on-feature-muted); }
.plan-featured .vat { border-color: var(--feature-line); }
.plan-featured .checks li::before { border-color: var(--on-feature-muted); }
.plan-featured .btn-primary { background: var(--feature-btn-bg); color: var(--on-feature-btn); box-shadow: none; }
.plan-featured .btn-primary:hover { background: var(--feature-btn-bg); color: var(--on-feature-btn); opacity: 0.92; }
.plans-note { margin-top: 24px; max-width: 46rem; }
/* A price in a plain card (the extras and the discounts on the pricing page). */
.card:not(.plan) .price { color: var(--text); margin: 6px 0 18px; }
.card:not(.plan) .price small { color: var(--text-2); }
/* Six plans: two columns, three on a medium screen, six in a row on a wide screen. */
@media (min-width: 1040px) and (max-width: 1199px) {
  .plans-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans-6 .plan-featured { margin-top: 0; margin-bottom: 0; padding-top: 28px; padding-bottom: 24px; }
}
@media (min-width: 1200px) {
  .plans-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .plans-6 .plan { padding-left: 18px; padding-right: 18px; }
  .plans-6 .plan .who { min-height: 4.5em; }
  .plans-6 .plan .price { font-size: 1.875rem; }
  .plans-6 .plan .price small { display: block; margin: 6px 0 0; }
}
@media (min-width: 1040px) {
  .plan-featured { margin-top: -12px; margin-bottom: -12px; padding-top: 40px; padding-bottom: 36px; }
}

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 1.0625rem; transition: color var(--fast) var(--ease);
}
.faq summary:hover { color: var(--text-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.75px solid var(--text-2); border-bottom: 1.75px solid var(--text-2); transform: rotate(45deg); transition: transform 320ms var(--ease); }
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details > :not(summary) { color: var(--text-2); }
.faq details[open] { padding-bottom: 8px; }

/* Closing call to action */
.cta { text-align: center; border-top: 1px solid var(--border); }
.cta h2 { margin-inline: auto; font-size: clamp(2.25rem, 4vw, 3.25rem); }
.cta .lead { margin-left: auto; margin-right: auto; max-width: 560px; }
.cta .actions { justify-content: center; }

/* Between two pages of the site: a short cross-fade (browsers that know cross-document view transitions). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: var(--ease); }
/* Animations paused by the visitor (the button under the hero): nothing glides. */
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { transition-duration: 0s !important; }

/* Tables, lists of details, notes */
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.table-wrap table { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-muted); font-weight: 600; font-size: 0.875rem; color: var(--text); }
tbody tr:last-child > * { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; }
.details dt { font-weight: 600; }
.details dd { margin: 0; color: var(--text-2); }
@media (max-width: 559px) {
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 10px; }
}
/* Callouts: a Note (and the DRAFT notes) and a Warning, quiet, with a bar on the left. */
.note, .warn { border: 1px solid var(--note-border); border-left: 3px solid var(--callout-bar); background: var(--note-bg);
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 1.5em; }
.warn { border-color: var(--warn-border); border-left-color: var(--warn-bar); background: var(--warn-bg); }
.prose :is(.note, .warn) { font-size: 0.9375rem; line-height: 1.65; margin: 1.25em 0 1.5em; }
.note > :last-child, .warn > :last-child { margin-bottom: 0; }
.meta { color: var(--text-2); font-size: 0.9375rem; }

.downloads { list-style: none; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.downloads li { margin: 0; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.downloads li + li { border-top: 1px solid var(--border); }
.downloads li > a:first-child { font-family: var(--mono); font-size: 0.9375rem; font-weight: 600; }
.downloads span { color: var(--text-2); font-size: 0.9375rem; flex: 1 1 220px; }
.downloads .sums { display: inline-flex; gap: 12px; font-size: 0.875rem; }

/* Long text: the legal pages, accessibility and releases. A reading layout: the head in the landing page's type, a
   column of about 72 characters on the left edge, and the contents beside it (sticky) on wide screens. */
.prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.028em; margin-top: 2.25em; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.75em; }
.prose ol ol { margin-top: 0.5em; }
.prose li + li { margin-top: 0.5em; }
.prose :is(ol, ul) > li::marker { color: var(--text-2); }
.prose ol > li::marker { font-weight: 600; font-variant-numeric: tabular-nums; }
.prose .lead { font-size: 1.1875rem; }
.legal-page { padding: 56px 0 96px; }
@media (min-width: 900px) {
  .legal-page { padding: 104px 0 136px; }
}
.reading-head { max-width: 72ch; }
.reading-head h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 660; margin: 0; }
.reading-head .meta { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; font-size: 0.875rem; }
.reading-head .meta::before { content: ""; width: 6px; height: 6px; margin-top: 0.6em; border-radius: 2px; background: var(--signature); flex: none; }
.reading-head .lead { margin: 24px 0 0; }
.reading-body > h2 { padding-top: 1.25em; border-top: 1px solid var(--border); }
.reading-body > h2:first-child { margin-top: 1.5em; }
@media (max-width: 599px) {
  .reading-head h1 { font-size: 2.375rem; line-height: 1.02; }
  .reading-head .lead { font-size: 1.0625rem; margin-top: 16px; }
}
.toc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-card);
  padding: 20px 24px; margin: 40px 0 8px; font-size: 0.9375rem; max-width: 72ch; }
.toc h2 { font: 600 0.8125rem/1.4 var(--font); letter-spacing: 0.07em; text-transform: uppercase; margin: 0 0 12px; color: var(--text-2); }
.toc ol { margin: 0; padding-left: 1.6em; }
.toc li + li { margin-top: 6px; }
.toc li::marker { color: var(--text-2); font-variant-numeric: tabular-nums; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 640px) and (max-width: 1179px) {
  .reading .toc ol { columns: 2; column-gap: 40px; }
  .reading .toc li { break-inside: avoid; }
}
@media (min-width: 1180px) {
  .reading { display: grid; grid-template-columns: minmax(0, 72ch) 248px; column-gap: 96px; align-items: start; }
  .reading > * { grid-column: 1; }
  .reading > .toc {
    grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header) + 40px); margin: 6px 0 0;
    max-height: calc(100vh - var(--header) - 80px); overflow-y: auto; overscroll-behavior: contain;
    padding: 0 0 0 20px; border: 0; border-left: 1px solid var(--border); border-radius: 0; background: none; box-shadow: none; font-size: 0.875rem;
  }
  .reading > .toc ol { padding-left: 1.7em; }
  .reading > .toc a { color: var(--text-2); }
  .reading > .toc a:hover { color: var(--text); text-decoration: none; }
}

/* Releases: each version a block of its own, its parts with small labels */
.release { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.release h2 { margin: 0; font-size: 1.75rem; }
.release > .meta { margin: 8px 0 20px; font-size: 0.9375rem; }
.release h3 { font: 600 0.8125rem/1.4 var(--font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text); margin: 28px 0 10px; }
.release ul { padding-left: 1.2em; }

/* Features page: the groups as pills, then every feature as a card of one height that links to the docs */
.jump { margin: 32px 0 0; }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump li { margin: 0; }
.jump a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 8px 0 16px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 600;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.jump a:hover { border-color: var(--border-input); background: var(--bg-muted); color: var(--text); }
.jump span { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 8px; border-radius: 999px;
  background: var(--bg-muted); color: var(--text-2); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.jump a:hover span { background: var(--raised); }
.section.fgroup { padding: 72px 0 80px; }
@media (min-width: 900px) {
  .section.fgroup { padding: 112px 0 120px; }
}
.fgroup-head { max-width: 660px; margin-bottom: 16px; }
.fgroup-head p { color: var(--text-2); font-size: 1.125rem; margin: 0; }
.fgroup h3 {
  display: flex; align-items: center; gap: 12px;
  font: 600 0.8125rem/1.3 var(--font); letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text); margin: 48px 0 16px;
}
/* An icon square per group of features, in the site's navy, drawn like the product's own line icons. */
.fi { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent); }
.fi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) {
  .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
}
@media (min-width: 1040px) {
  .flist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.flist li { margin: 0; min-width: 0; }
.flist a {
  position: relative; display: block; height: 100%; padding: 18px 44px 18px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--raised); color: var(--text); text-decoration: none; box-shadow: var(--shadow-card);
  transition: border-color var(--fast) var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.flist a::after {
  content: ""; position: absolute; top: 24px; right: 22px; width: 7px; height: 7px;
  border-top: 1.75px solid var(--text-2); border-right: 1.75px solid var(--text-2); transform: rotate(45deg);
  transition: transform 320ms var(--ease), border-color var(--fast) var(--ease);
}
.flist a:hover { border-color: var(--border-strong); color: var(--text); transform: translate3d(0, -2px, 0); box-shadow: var(--shadow); }
.flist a:hover::after { border-color: var(--text); transform: translate3d(3px, 0, 0) rotate(45deg); }
.flist strong { display: block; font: 600 1.0625rem/1.3 var(--font-display); letter-spacing: -0.012em; }
.flist span { display: block; margin-top: 6px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }
.flist code { font-size: 0.8125rem; }

/* Trial: the request form (site.js turns it into an e-mail) and the parts of "your own server" */
.request-form { display: grid; gap: 20px; margin: 8px 0 0; padding: 28px; }
@media (min-width: 640px) {
  .request-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .request-form .field-wide { grid-column: 1 / -1; }
}
.field label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.field label span { font-weight: 400; color: var(--text-2); }
.field :is(input, select, textarea) {
  width: 100%; min-height: 44px; padding: 9px 12px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-input); border-radius: var(--radius-sm);
  transition: border-color var(--fast) var(--ease);
}
.field textarea { min-height: 112px; resize: vertical; }
.field :is(input, select, textarea):hover { border-color: var(--text-2); }
.field :is(input, select, textarea):focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.request-form .btn { min-width: 200px; }
.wrap.measure > h3 { margin-top: 2.25em; }
.wrap.measure > * { max-width: 760px; }
/* Code on the pages: the terminal with the window bar of the product (three dots). */
main:not(.docs) .section pre { border-radius: var(--radius); padding: 50px 22px 20px; margin: 0 0 1.25em; box-shadow: var(--shadow-card); }
main:not(.docs) .section pre::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 32px; border-bottom: 1px solid rgb(255 255 255 / 6%);
  background: radial-gradient(circle at 18px 16px, var(--term-dot) 4.5px, transparent 5px), radial-gradient(circle at 34px 16px, var(--term-dot) 4.5px, transparent 5px),
    radial-gradient(circle at 50px 16px, var(--term-dot) 4.5px, transparent 5px), var(--term-chrome);
}
/* Downloads: one row per file, with its checksum and signature */
.downloads { background: var(--raised); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.downloads li { padding: 16px 20px; transition: background-color var(--fast) var(--ease); }
.downloads li:hover { background: var(--bg-muted); }
.downloads .sums a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px;
  font-family: var(--mono); font-size: 0.8125rem; text-decoration: none; }
.downloads .sums a:hover { border-color: var(--border-input); }

/* Demo: the people as cards */
.personas { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) {
  .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
}
@media (min-width: 1040px) {
  .personas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.persona { margin: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; gap: 8px 16px; padding: 22px;
  background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: border-color var(--fast) var(--ease); }
.persona:hover { border-color: var(--border-strong); }
.persona-mark { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--text); font: 650 0.875rem/1 var(--font-display); letter-spacing: 0.02em; }
.persona-name { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.persona-name strong { font: 600 1.0625rem/1.3 var(--font-display); letter-spacing: -0.012em; }
.persona-name span { color: var(--text-2); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.persona > p:last-child { grid-column: 2; margin: 0; color: var(--text-2); font-size: 0.9375rem; line-height: 1.5; }

/* Security: calm blocks, the heading beside the text on wide screens */
.page-hero .toc-pills { margin: 36px 0 0; }
.toc-pills { border: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; max-width: none; }
.toc-pills h2 { font: 600 0.8125rem/1.4 var(--font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-2); margin: 0 0 12px; }
.toc-pills ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc-pills li + li { margin: 0; }
.toc-pills a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: 0.875rem; font-weight: 550; text-decoration: none;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.toc-pills a:hover { border-color: var(--border-input); background: var(--bg-muted); color: var(--text); text-decoration: none; }
.blocks-section { padding-top: 16px; }
.block { padding: 48px 0; border-top: 1px solid var(--border); }
.block:first-child { border-top: 0; }
.block h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; }
.block-body { max-width: 44rem; font-size: 1.0625rem; line-height: 1.7; }
.block-body > :last-child { margin-bottom: 0; }
.block-body li + li { margin-top: 0.6em; }
.block-body li::marker { color: var(--text-2); }
@media (min-width: 900px) {
  .block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: 64px; padding: 64px 0; }
  .block h2 { position: sticky; top: calc(var(--header) + 32px); align-self: start; margin: 0; }
}

/* Contact: the company details as a card beside the text */
.contact-more { max-width: 46rem; color: var(--text-2); }
.details.card { gap: 0; padding: 8px 28px; }
.details.card dt { padding-right: 24px; }
.details.card > * { padding: 14px 0; border-top: 1px solid var(--border); }
.details.card > :nth-child(-n+2) { border-top: 0; }
@media (max-width: 559px) {
  .details.card > * { padding: 0; }
  .details.card dt { padding-top: 14px; }
  .details.card dd { padding-bottom: 14px; margin: 0; border-top: 0; }
  .details.card > :nth-child(2) { padding-top: 0; }
}
@media (min-width: 900px) {
  .company { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; align-items: start; }
  .company > * { grid-column: 1; }
  .company > .details { grid-column: 2; grid-row: 1 / span 4; }
}
.company > p { color: var(--text-2); max-width: 34rem; }

/* ── Handbook (website/docs/, made by php bin/handbook) ─────────────────────────────────────────────────────────── */
.docs { padding: 24px 0 80px; }
.docs-wrap { width: 100%; max-width: calc(1600px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 24px; }
@media (min-width: 960px) {
  .docs { padding-top: 0; }
  .docs-wrap { grid-template-columns: 264px minmax(0, 1fr); gap: 56px; }
}

.docs-side { min-width: 0; }
@media (min-width: 960px) {
  .docs-side {
    position: sticky; top: var(--header); align-self: start; max-height: calc(100vh - var(--header));
    overflow-y: auto; padding: 32px 8px 32px 0; border-right: 1px solid var(--border);
  }
}
.docs-menu { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 12px; }
.docs-menu summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 0.9375rem; }
.docs-menu[open] summary { border-bottom: 1px solid var(--border); }
.docs-menu .docs-nav { padding: 12px 8px 8px; }
.docs-side > .docs-nav { display: none; }
@media (min-width: 960px) {
  .docs-menu { display: none; }
  .docs-side > .docs-nav { display: block; margin-top: 24px; }
}
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li + li { margin-top: 0; }
.docs-nav > ul > li + li { margin-top: 20px; }
.docs-nav-group { display: flex; align-items: center; gap: 8px; padding: 4px 10px; margin-bottom: 6px; font: 600 0.75rem/1.4 var(--font);
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.docs-nav-group::before { content: ""; width: 5px; height: 5px; border-radius: 1.5px; background: var(--border-input); flex: none; transition: background-color var(--fast) var(--ease); }
.docs-nav-group:hover { color: var(--accent); }
.docs-nav-group:hover::before, .docs-nav li:has([aria-current="page"]) > .docs-nav-group::before { background: var(--signature); }
.docs-nav ul ul a { display: block; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-size: 0.90625rem; line-height: 1.4;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.docs-nav ul ul a:hover { color: var(--text); background: var(--bg-muted); }
.docs-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); font-weight: 600; box-shadow: inset 2px 0 0 var(--primary); }

/* Search */
.doc-search { position: relative; }
.doc-search label { display: block; font: 600 0.75rem/1.4 var(--font); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 8px; color: var(--text-2); }
.doc-search input {
  width: 100%; min-height: 42px; padding: 8px 40px 8px 38px; font: inherit; font-size: 0.9375rem; color: var(--text);
  background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
  transition: border-color var(--fast) var(--ease);
}
.doc-search input:hover { border-color: var(--border-input); }
.doc-search input::-webkit-search-cancel-button { display: none; }
/* A magnifier and the "/" key that jumps to the box (site.js), drawn in CSS. */
.doc-search::before { content: ""; position: absolute; left: 13px; bottom: 13px; width: 15px; height: 15px; pointer-events: none;
  background: radial-gradient(circle at 6px 6px, transparent 3.7px, var(--text-2) 3.9px, var(--text-2) 5.4px, transparent 5.6px),
    linear-gradient(45deg, transparent 36%, var(--text-2) 36%, var(--text-2) 64%, transparent 64%) right bottom / 6px 6px no-repeat; }
.doc-search::after { content: "/" / ""; position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text-2); font: 500 0.75rem/1 var(--mono); pointer-events: none; }
.doc-search:focus-within::after { opacity: 0; }
.doc-search input::placeholder { color: var(--text-2); opacity: 1; }
.doc-search input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.doc-search-results {
  position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); width: min(560px, calc(100vw - 2 * var(--gutter)));
  max-height: 70vh; overflow-y: auto; list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.doc-search-results li + li { margin-top: 2px; }
.doc-search-results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.doc-search-results a:hover, .doc-search-results a.is-active { background: var(--bg-muted); }
.doc-search-results strong { display: block; }
.doc-search-group, .doc-search-snippet { display: block; font-size: 0.8125rem; color: var(--text-2); margin-top: 2px; }
.doc-search-results mark { background: var(--accent-soft); color: inherit; border-radius: 2px; }
.doc-search-none { padding: 10px 12px; color: var(--text-2); font-size: 0.9375rem; }

/* The article: one comfortable column, with "On this page" beside it on wide screens */
.docs-article { min-width: 0; padding-top: 8px; }
@media (min-width: 960px) {
  .docs-article { padding-top: 40px; }
}
@media (min-width: 1240px) {
  .docs-article { display: grid; grid-template-columns: minmax(0, 92ch) 220px; column-gap: 56px; align-content: start; }
  .docs-article > * { grid-column: 1; }
  .docs-article > .doc-toc {
    grid-column: 2; grid-row: 1 / span 20; align-self: start; position: sticky; top: calc(var(--header) + 40px);
    margin: 0; border: 0; padding: 0; border-radius: 0; background: none; box-shadow: none;
  }
  .docs-article > .doc-toc ol { border-left: 1px solid var(--border); }
  .docs-article > .doc-toc a { padding: 5px 0 5px 16px; margin-left: -1px; border-left: 1px solid transparent; }
  .docs-article > .doc-toc a:hover { border-left-color: var(--text); }
}
.doc-content, .docs-article > h1, .docs-article > .lead, .docs-article > .doc-meta, .docs-article > .doc-crumbs { max-width: 92ch; }
.doc-crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; font-size: 0.875rem; color: var(--text-2); }
.doc-crumbs li + li { margin: 0; }
.doc-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--border-strong); }
.doc-crumbs a { color: var(--text-2); text-decoration: none; }
.doc-crumbs a:hover { color: var(--accent); }
.docs-article > h1 { font-size: clamp(2.25rem, 4.2vw, 3.25rem); line-height: 1.02; letter-spacing: -0.042em; margin-bottom: 0.4em; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.doc-meta li { margin: 0; font-size: 0.8125rem; font-weight: 500; color: var(--text-2); background: var(--bg-muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; }
.doc-meta li:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.doc-meta li:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--signature); }
.docs-article > .lead { font-size: 1.1875rem; line-height: 1.6; color: var(--text-2); margin-bottom: 8px; }
.doc-toc { font-size: 0.875rem; margin: 28px 0 8px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-card); }
.doc-toc h2 { font: 600 0.75rem/1.4 var(--font); letter-spacing: 0.07em; text-transform: uppercase; margin: 0 0 12px; color: var(--text); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; }
.doc-toc li + li { margin-top: 2px; }
.doc-toc a { color: var(--text-2); text-decoration: none; line-height: 1.4; display: block; padding: 4px 0; transition: color var(--fast) var(--ease); }
.doc-toc a:hover { color: var(--text); }

.doc-content { font-size: 1.0625rem; line-height: 1.7; padding-top: 16px; }
.doc-content h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.028em; margin: 2.4em 0 0.6em; padding-top: 1.6em; border-top: 1px solid var(--border); }
.doc-content > h2:first-child { margin-top: 0.75em; border-top: 0; padding-top: 0; }
.doc-content h3 { font-size: 1.1875rem; margin: 2em 0 0.5em; }
.doc-content p, .doc-content ul, .doc-content ol, .doc-content pre, .doc-content .table-wrap { margin-bottom: 1.15em; }
.doc-content li + li { margin-top: 0.45em; }
.doc-content li > ul, .doc-content li > ol, .doc-content li > pre, .doc-content li > .table-wrap { margin-top: 0.5em; }
.doc-content code { font-size: 0.84em; }
.doc-content pre { font-size: 0.875rem; border-radius: var(--radius); }
.doc-content table { font-size: 0.9375rem; line-height: 1.55; }
.doc-content td ul, .doc-content td ol { margin: 0; padding-left: 1.1em; }
.doc-content td code { white-space: nowrap; }
.doc-content .note, .doc-content .warn { padding: 16px 20px; font-size: 1rem; line-height: 1.65; }
.doc-content .note::before, .doc-content .warn::before { display: block; font: 600 0.75rem/1.4 var(--font); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 6px; }
.doc-content .note::before { content: "Note"; color: var(--text); }
.doc-content .warn::before { content: "Warning"; color: var(--text); }
.doc-content .table-wrap { border-radius: var(--radius); background: var(--raised); box-shadow: var(--shadow-card); }
.doc-content thead th { font-size: 0.8125rem; letter-spacing: 0.01em; color: var(--text-2); }
.doc-content tbody tr { transition: background-color var(--fast) var(--ease); }
.doc-content tbody tr:hover { background: color-mix(in srgb, var(--bg-muted) 60%, transparent); }
.doc-content .meta { margin-top: -0.4em; }
.doc-shot { margin: 1.75em 0; }
.doc-shot img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.doc-shot.phone { max-width: 320px; }

.doc-pager { display: grid; gap: 12px; margin: 64px 0 24px; }
@media (min-width: 640px) {
  .doc-pager { grid-template-columns: 1fr 1fr; }
}
.doc-pager a { position: relative; display: block; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--raised);
  box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; font: 600 1.0625rem/1.35 var(--font-display); letter-spacing: -0.012em;
  transition: border-color var(--fast) var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.doc-pager a:hover { border-color: var(--border-strong); color: var(--text); transform: translate3d(0, -2px, 0); box-shadow: var(--shadow); }
.doc-pager span { display: block; font: 600 0.75rem/1.4 var(--font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.doc-pager .prev span::before { content: "\2190\00a0"; }
.doc-pager .next span::after { content: "\00a0\2192"; }
.doc-pager .next { text-align: right; grid-column: -2; }
.doc-help { max-width: 72ch; color: var(--text-2); font-size: 0.9375rem; border-top: 1px solid var(--border); padding-top: 20px; }

/* The handbook start page */
.doc-roles { list-style: none; padding: 0; display: grid; gap: 12px; margin: 32px 0 16px; max-width: 72ch; }
@media (min-width: 640px) {
  .doc-roles { grid-template-columns: 1fr 1fr; }
}
.doc-roles li { margin: 0; }
.doc-roles a { position: relative; display: block; height: 100%; padding: 20px 44px 20px 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--raised); box-shadow: var(--shadow-card); text-decoration: none; color: var(--text);
  transition: border-color var(--fast) var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.doc-roles a::after { content: ""; position: absolute; top: 26px; right: 22px; width: 7px; height: 7px;
  border-top: 1.75px solid var(--text-2); border-right: 1.75px solid var(--text-2); transform: rotate(45deg); }
.doc-roles a:hover { border-color: var(--border-strong); transform: translate3d(0, -2px, 0); box-shadow: var(--shadow); }
.doc-roles strong { display: block; margin-bottom: 4px; font: 600 1.0625rem/1.3 var(--font-display); letter-spacing: -0.012em; }
.doc-roles span { color: var(--text-2); font-size: 0.9375rem; }
.doc-groups h2 { font-size: 1.375rem; margin: 2.2em 0 0.6em; }
.doc-list { list-style: none; padding: 0; border-top: 1px solid var(--border); }
.doc-list li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--border); }
.doc-list a { font-weight: 600; text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
.doc-list span { display: block; color: var(--text-2); font-size: 0.9375rem; margin-top: 2px; }

@media print {
  .site-header, .site-footer, .docs-side, .doc-toc, .doc-pager, .page-hero::before, .page-hero::after { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .docs-wrap { display: block; }
}
