/* GENERATED by scripts/merge-fragments.mjs — edit assets/css/_base.css or
   assets/css/_fragments/*.css, never this file. Wrapped in @layer components
   so Tailwind utilities (assets/css/tailwind.css) take precedence. */
@layer components {
/* ============================================================
   ERMLib — hand-written stylesheet (no framework)
   Sections:
   01 TOKENS      02 BASE        03 LAYOUT      04 COMPONENTS
   05 PAGES       06 UTILITIES   07 DARK        08 RTL
   09 MOTION
   ============================================================ */

/* ==== FONTS START ==== */
/* Self-hosted web fonts — generated by scripts/fetch-fonts.mjs, do not edit.
   Geologica (npm @fontsource-variable/geologica, weight axis) and
   Noto Sans Arabic — both SIL Open Font License. */

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geologica-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* geologica-cyrillic-wght-normal */

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geologica-cyrillic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* geologica-greek-wght-normal */

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geologica-greek.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* geologica-vietnamese-wght-normal */

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geologica-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* geologica-latin-ext-wght-normal */

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geologica-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* geologica-latin-wght-normal */

@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/geologica-latin.woff2) format('woff2');
  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;
}

/* arabic */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-arabic-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

/* math */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-arabic-math.woff2) format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-208E, U+2090-209C, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}

/* symbols */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-arabic-symbols.woff2) format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AD, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F7FF, U+1F800-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FA89, U+1FA8F-1FAC6, U+1FACE-1FADC, U+1FADF-1FAE9, U+1FAF0-1FAF8, U+1FB00-1FBFF;
}

/* latin-ext */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-arabic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/noto-sans-arabic-latin.woff2) format('woff2');
  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;
}
/* ==== FONTS END ==== */

/* ==================== 01 TOKENS ==================== */
:root {
  /* great-falls: cool gray palette (from globals.css @theme) */
  --primary-50: #f4f5f7;
  --primary-100: #e8e9ee;
  --primary-200: #d8dae1;
  --primary-300: #9fa3b4;
  --primary-400: #838799;
  --primary-500: #686d85;
  --primary-600: #52566b;
  --primary-700: #3b3e4c;
  --primary-800: #252730;
  --primary-900: #0e0f13;
  --primary-950: #000000;

  /* "ink" neutral scale (2026-09-21). The same values are exposed to
     Tailwind as slate-* in _tailwind.css, so legacy and converted pages
     share one neutral ramp. Cool, slightly blue-black — the logo ink. */
  --ink: #0b1120;
  --slate-50: #f7f8fa;
  --slate-100: #eef0f4;
  --slate-200: #dfe3ea;
  --slate-300: #c5cbd6;
  --slate-400: #98a0b0;
  --slate-500: #636b7e;
  --slate-600: #4b5264;
  --slate-700: #2b3241;
  --slate-800: #191f29;
  --slate-900: #0f141b;

  /* signal purple (2026-09-27) — links, focus, the one vivid CTA. The brand's
     second colour: --blue-600 is exactly the accent #7F3EF1, and the rest of
     the ramp is that hue in OKLCH keeping the old ladder's lightness steps.
     The token names stay blue-* because _tailwind.css has to keep overriding
     Tailwind's blue-* to back the bg-blue-600 utilities converted pages use;
     renaming half the family would read worse than one honest comment. */
  --blue-400: #b5a0fe;
  --blue-500: #8f5bfe;
  --blue-600: #7f3ef1;
  --blue-700: #6932ca;
  --blue-800: #552ca2;
  --accent: var(--blue-600);

  /* Film grain: a tiled fractal-noise SVG shared by the grained hero grounds
     (home tiles, the features/modules page hero). Blend it with overlay or
     soft-light so it reads as texture, not as a grey veil. */
  --erm-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");

  /* semantic aliases — components reference these, .dark overrides them.
     Light = "reading room": cool paper canvas, white panels that lift. */
  --bg: var(--slate-100);
  --fg: var(--slate-700);
  --fg-strong: var(--ink);
  --muted: var(--slate-500);
  --muted-strong: var(--slate-600);
  --border: var(--slate-200);
  --border-soft: rgb(11 17 32 / 0.06);
  --surface: var(--slate-50);
  --surface-hover: var(--slate-100);
  --card-bg: #ffffff;
  --panel-bg: #ffffff;
  --header-bg: rgb(238 240 244 / 0.85);
  --link-hover: var(--ink);

  /* typography */
  --erm-font-display: "Geologica", "Noto Sans Arabic", sans-serif;
  --erm-font-sans: "Geologica", "Noto Sans Arabic", sans-serif;

  /* radius — pills for controls, 20–24px for panels */
  --erm-radius-sm: 0.5rem;
  --erm-radius-md: 0.75rem;
  --erm-radius-lg: 1rem;
  --erm-radius-xl: 1.25rem;
  --erm-radius-2xl: 1.5rem;
  --erm-radius-4xl: 2rem;
  --erm-radius-full: 9999px;

  /* third colour — "amber": eyebrows, the dot on a live thing, animated
     accents, the warm end of gradients. Never a button on its own. */
  --amber-400: #ffc466;
  --amber-500: #f0a020;
  --amber-600: #c9800f;
  --accent-2: var(--amber-500);
  --mint-500: #23c48f;

  /* shadows — none, by decision (2026-09-21): depth comes from the canvas
     step (paper → white panel) and from borders, never from drop shadows.
     The tokens stay so legacy rules keep resolving. */
  --erm-shadow-sm: none;
  --erm-shadow-md: none;
  --erm-shadow-lg: none;
  --erm-shadow-xl: none;
  --erm-lift: none;

  /* misc */
  --erm-container-max: 80rem; /* max-w-7xl */
  --header-height: 3.5rem; /* 56 px at the top of the page (bar tightens to 40 px on scroll) */
}

/* Dark = "night desk": dim navy canvas, panels one step lighter, off-white
   text, pale-purple CTA (never a saturated purple on black). */
.dark {
  --bg: var(--slate-900);
  --fg: #d9e0ea;
  --fg-strong: #f2f5f9;
  --muted: #8e97a8;
  --muted-strong: #aab3c2;
  --border: rgb(255 255 255 / 0.09);
  --border-soft: rgb(255 255 255 / 0.05);
  --surface: #212835;
  --surface-hover: var(--slate-700);
  --card-bg: var(--slate-800);
  --panel-bg: #1d2430;
  --header-bg: rgb(15 20 27 / 0.82);
  --link-hover: #ffffff;
  --accent-2: var(--amber-400);
}

/* ==================== 02 BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  height: 100%;
}

body {
  font-family: var(--erm-font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100%;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--erm-font-display);
  font-weight: 500;
  color: var(--fg-strong);
  line-height: 1.2;
}

p { margin: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
/* The hidden attribute must beat any component display rule — without this
   .form-banner { display:flex } showed the error banner on every form page. */
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--primary-200);
  color: var(--primary-900);
}

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon--xs { width: 0.875rem; height: 0.875rem; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--md { width: 1.25rem; height: 1.25rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }

/* ==================== 03 LAYOUT ==================== */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site__main { flex: 1; }

.erm-container {
  margin-inline: auto;
  max-width: var(--erm-container-max);
  padding-inline: 1rem;
  width: 100%;
}
@media (min-width: 640px) { .erm-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .erm-container { padding-inline: 2rem; } }

.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }

/* ==================== 04 COMPONENTS ==================== */

/* --- Buttons (port of Button.tsx) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: var(--erm-radius-full);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, padding 0.25s ease, font-size 0.25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }

/* Ink: the quiet solid — sign-in, secondary actions. */
.btn--solid-slate {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.btn--solid-slate:hover { background: #1a2140; color: #fff; }
.dark .btn--solid-slate { background: #e6ecf5; color: var(--ink); box-shadow: none; }
.dark .btn--solid-slate:hover { background: #ffffff; color: var(--ink); }

/* Signal: the one vivid CTA per view. Pale purple with ink text in the dark. */
.btn--solid-blue {
  background: var(--blue-600);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16);
}
.btn--solid-blue:hover { background: var(--blue-500); color: #fff; }
.btn--solid-blue:active { background: var(--blue-700); color: #fff; }
.dark .btn--solid-blue { background: #c9bdff; color: var(--ink); box-shadow: none; }
.dark .btn--solid-blue:hover { background: #d8d0ff; color: var(--ink); }
.dark .btn--solid-blue:active { background: #bcaafe; color: var(--ink); }

.btn--solid-white { background: #fff; color: var(--ink); box-shadow: none; }
.btn--solid-white:hover { background: var(--slate-50); }
.btn--solid-white:active { background: var(--slate-100); color: var(--slate-600); }

.btn--outline-slate {
  font-weight: 500;
  background: var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--fg);
}
.btn--outline-slate:hover { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--slate-300); }
.dark .btn--outline-slate { background: var(--surface); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14); color: var(--fg); }
.dark .btn--outline-slate:hover { color: #fff; background: var(--surface-hover); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28); }

.btn--outline-white {
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
  color: #fff;
}
.btn--outline-white:hover { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5); }

.btn--sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }

/* --- Header --- */
.header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Logo and links form one cluster at the start; the action cluster sits at
   the end. Every size is a calc() on --hk (1 at the top of the page, 0 once
   scrolled — see the header fragment): bar 56 → 40 px, logo 22 → 18 px,
   links 13 → 12 px, icon buttons 34 → 30 px. */
.header__nav {
  display: flex;
  align-items: center;
  gap: calc(1.125rem + 0.25rem * var(--hk, 1));
  min-block-size: calc(2.5rem + 1rem * var(--hk, 1));
  padding-block: calc(0.3125rem + 0.1875rem * var(--hk, 1));
}
.header__nav > .header__actions { margin-inline-start: auto; }

.header__logo { display: flex; align-items: center; }
.logo-img { height: 24px; width: auto; transition: height 0.25s ease; }
.header__logo .logo-img { height: calc(18px + 4px * var(--hk, 1)); transition: none; }
.logo-img--dark { display: none; }
.dark .logo-img--light { display: none; }
.dark .logo-img--dark { display: block; }

.header__desktop-nav,
.header__desktop-actions { display: none; }
@media (min-width: 1024px) {
  .header__desktop-nav { display: flex; align-items: center; gap: 0.125rem; }
  .header__desktop-actions { display: flex; align-items: center; gap: 0.5rem; }
  .header__mobile-controls { display: none !important; }
}
.header__mobile-controls { display: flex; align-items: center; gap: 0.5rem; }

.nav-link {
  position: relative;
  z-index: 1;
  border-radius: var(--erm-radius-full);
  padding: calc(0.3125rem + 0.0625rem * var(--hk, 1)) calc(0.5rem + 0.125rem * var(--hk, 1));
  font-size: calc(0.75rem + 0.0625rem * var(--hk, 1));
  font-weight: 500;
  line-height: 1.25;
  color: var(--muted-strong);
  transition: color 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
}
/* Hover is a soft ink tint. With JS the tint is the shared .nav-pill (see
   the header fragment) that glides between links; this static fill is the
   fallback when the pill is not running. */
.header__desktop-nav:not(.has-pill) .nav-link:hover,
.header__desktop-nav:not(.has-pill) .nav-link[aria-expanded="true"] { background: rgb(11 17 32 / 0.06); }
.dark .header__desktop-nav:not(.has-pill) .nav-link:hover,
.dark .header__desktop-nav:not(.has-pill) .nav-link[aria-expanded="true"] { background: rgb(255 255 255 / 0.08); }
.nav-link:hover,
.nav-link[aria-expanded="true"] { color: var(--fg-strong); }
.dark .nav-link { color: var(--muted-strong); }
.dark .nav-link:hover,
.dark .nav-link[aria-expanded="true"] { color: #fff; }

/* mega menu */
.mega-menu { position: relative; }
.mega-menu__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-start: 0;
  z-index: 50;
  width: 34rem;
  border-radius: var(--erm-radius-xl);
  border: 1px solid var(--border);
  background: var(--panel-bg);
  padding: 0.75rem;
  box-shadow: var(--erm-shadow-lg);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms cubic-bezier(0.22, 1, 0.36, 1), visibility 200ms;
  transform-origin: top;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96) translateY(-4px);
}
.mega-menu.is-open .mega-menu__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}
.mega-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: var(--erm-radius-md);
  padding: 0.75rem;
  transition: background-color 0.15s ease;
}
.mega-menu__item:hover { background: var(--surface); }
.dark .mega-menu__item:hover { background: rgb(51 65 85 / 0.5); }
.mega-menu__icon {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
}
.dark .mega-menu__icon { background: rgb(14 15 19 / 0.2); color: var(--primary-300); }
.mega-menu__item-title { font-size: 0.875rem; font-weight: 500; color: var(--fg-strong); font-family: var(--erm-font-sans); }
.mega-menu__item-desc {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mega-menu__footer {
  margin-top: 0.5rem;
  border-top: 1px solid var(--slate-100);
  padding-top: 0.5rem;
}
.dark .mega-menu__footer { border-top-color: var(--slate-700); }
.mega-menu__all-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--erm-radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-600);
  transition: background-color 0.15s ease;
}
.mega-menu__all-link:hover { background: var(--primary-50); }
.dark .mega-menu__all-link { color: var(--blue-400); }
.dark .mega-menu__all-link:hover { background: rgb(14 15 19 / 0.2); }

/* icon button (theme toggle, mobile menu button) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--erm-radius-full);
  color: var(--fg);
  transition: background-color 0.15s ease, color 0.15s ease, width 0.25s ease, height 0.25s ease;
}
.icon-btn:hover { background: var(--surface-hover); color: var(--fg-strong); }
.dark .icon-btn:hover { background: rgb(255 255 255 / 0.08); }
.icon-btn .icon { width: 1.25rem; height: 1.25rem; transition: width 0.25s ease, height 0.25s ease; }
.theme-toggle__sun { display: none; }
.dark .theme-toggle__sun { display: block; }
.dark .theme-toggle__moon { display: none; }

/* generic dropdown/popover */
.popover { position: relative; }
.popover__panel {
  position: absolute;
  z-index: 50;
  border-radius: var(--erm-radius-xl);
  border: 1px solid var(--border);
  background: var(--panel-bg);
  box-shadow: var(--erm-shadow-lg);
  transition: transform 150ms ease-out, opacity 150ms ease-out, visibility 150ms;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
}
/* Child combinator on purpose: a descendant selector leaked the open state
   into any popover nested inside the panel and rendered it pre-expanded. */
.popover.is-open > .popover__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.popover__panel--down {
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  transform-origin: top;
}
.popover__panel--up {
  bottom: calc(100% + 0.5rem);
  inset-inline-start: 0;
  transform-origin: bottom;
}

/* mobile menu */
.mobile-menu__panel { width: 16rem; padding: 0.5rem; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 0.125rem; }
.mobile-menu__link {
  border-radius: var(--erm-radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-700);
  display: block;
}
.mobile-menu__link:hover { background: var(--surface-hover); }
.dark .mobile-menu__link { color: var(--slate-300); }
.mobile-menu__sublink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--erm-radius-md);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-strong);
}
.mobile-menu__sublink:hover { background: var(--surface-hover); }
.mobile-menu__sublink .icon { width: 0.875rem; height: 0.875rem; color: var(--primary-500); }
.mobile-menu__heading {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
}
.mobile-menu__divider {
  margin-block: 0.25rem;
  border: 0;
  border-top: 1px solid var(--slate-100);
}
.dark .mobile-menu__divider { border-top-color: var(--slate-700); }

/* search bar trigger (enhanced in Phase 7) */
.search-bar { position: relative; }
.search-bar__form { display: flex; align-items: center; }
.search-bar__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--erm-radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.375rem 0.625rem;
  transition: border-color 0.15s ease;
}
.search-bar__input-wrap:focus-within { border-color: var(--slate-400); }
.search-bar__input {
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  width: 8rem;
  color: var(--fg);
}
.search-bar__input:focus { outline: none; }
.search-bar__input::placeholder { color: var(--muted); }
.search-bar__icon { color: var(--muted); }
@media (max-width: 1023.5px) {
  .search-bar__input { width: 5.5rem; }
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}
.dark .footer { background: var(--slate-900); border-top-color: var(--slate-800); }
.footer__top { padding-block: 4rem; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
/* Brand column + five link columns (Product, Solutions, Company, Resources, Legal). */
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr repeat(5, 1fr); } }
.footer__tagline { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-strong);
  font-family: var(--erm-font-sans);
}
.footer__links { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.footer__link { font-size: 0.875rem; color: var(--muted); transition: color 0.15s ease; }
.footer__link:hover { color: var(--link-hover); }
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-soft);
  padding-block: 2rem;
}
@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
.dark .footer__bottom { border-top-color: var(--slate-800); }
.footer__copyright { font-size: 0.875rem; color: var(--muted); }

/* locale switcher */
.locale-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--erm-radius-full);
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.locale-switcher__btn:hover { border-color: var(--slate-300); background: var(--surface); }
.dark .locale-switcher__btn { color: var(--fg); }
.dark .locale-switcher__btn:hover { border-color: rgb(255 255 255 / 0.2); background: var(--surface-hover); }
/* Full-width row (navigation sheet): flag + name, chevron pushed to the end. */
.locale-switcher__btn--row { width: 100%; padding: 0.75rem 0.875rem; }
.locale-switcher__btn--row .locale-switcher__chevron { margin-inline-start: auto; }
.locale-switcher__chevron { color: var(--muted); width: 0.875rem; height: 0.875rem; }
.locale-switcher__panel { width: 11rem; padding: 0.375rem; }
.locale-switcher__panel--row { width: 100%; }
.locale-switcher__list { display: flex; flex-direction: column; gap: 0.125rem; }
.locale-switcher__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: var(--erm-radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-700);
}
.dark .locale-switcher__option { color: var(--slate-300); }
.locale-switcher__option:hover { background: var(--surface-hover); }
.locale-switcher__option.is-active {
  background: var(--primary-50);
  color: var(--primary-700);
}
.dark .locale-switcher__option.is-active {
  background: rgb(14 15 19 / 0.3);
  color: var(--primary-300);
}
.locale-switcher__flag { font-size: 1rem; }
.locale-switcher__check { margin-inline-start: auto; color: var(--primary-500); }

/* --- Scroll progress + sticky CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 60;
  border-top: 1px solid var(--border);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 0.75rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-inline: auto;
  max-width: var(--erm-container-max);
}
.sticky-cta__text { font-size: 0.875rem; font-weight: 500; color: var(--fg-strong); }
@media (max-width: 639.5px) { .sticky-cta__text { display: none; } }

/* --- Cards, badges (shared) --- */
.card {
  border-radius: var(--erm-radius-2xl);
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 1.5rem;
  box-shadow: var(--erm-lift);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--erm-radius-full);
  padding: 0.3125rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}
.badge--primary { background: var(--slate-100); color: var(--slate-700); }
.dark .badge--primary { background: rgb(255 255 255 / 0.08); color: var(--fg); }
.badge--blue { background: rgb(127 62 241 / 0.1); color: var(--blue-700); }
.dark .badge--blue { background: rgb(201 189 255 / 0.16); color: #dad3ff; }

/* ==================== 05 PAGES ==================== */
/* ---- fragment: about.css ---- */
/* ---------- About page ---------- */

/* Hero with background image. Pulls up under the fixed, transparent header
   so the image reaches the top edge; the extra top padding keeps the copy
   where it was. */
.about-hero {
  --erm-crumbs-h: 2.5rem; /* declared on .erm-breadcrumbs, not :root */
  position: relative;
  overflow: hidden;
  margin-block-start: calc(-1 * var(--header-height));
  padding-block: calc(5rem + var(--header-height) + var(--erm-crumbs-h)) 5rem;
}
@media (min-width: 640px) {
  .about-hero { padding-block: calc(7rem + var(--header-height) + var(--erm-crumbs-h)) 7rem; }
}
.about-hero__bg {
  position: absolute;
  inset: 0;
}
.about-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.95));
}
.dark .about-hero__scrim {
  background: linear-gradient(to bottom, rgb(15 23 42 / 0.9), rgb(15 23 42 / 0.8), rgb(15 23 42 / 0.95));
}
.about-hero__inner { position: relative; }
.about-hero__content {
  margin-inline: auto;
  max-width: 48rem;
  text-align: center;
}
.about-hero__badge {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  margin-block-end: 1.5rem;
}
.about-hero__title {
  font-family: var(--erm-font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
@media (min-width: 640px) {
  .about-hero__title { font-size: 3rem; }
}
.about-hero__description {
  margin-block-start: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .about-hero__description { color: var(--slate-400); }

/* Stats bar */
.about-stats {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding-block: 3rem;
}
.dark .about-stats { background: rgb(30 41 59 / 0.3); }
.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .about-stats__grid { grid-template-columns: repeat(4, 1fr); }
}
.about-stats__item { text-align: center; }
.about-stats__value {
  font-family: var(--erm-font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--blue-600);
}
.dark .about-stats__value { color: var(--blue-400); }
.about-stats__label {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Mission */
.about-mission { padding-block: 5rem; }
@media (min-width: 640px) {
  .about-mission { padding-block: 7rem; }
}
.about-mission__grid {
  display: grid;
  align-items: center;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .about-mission__grid { grid-template-columns: repeat(2, 1fr); }
}
.about-mission__title {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
@media (min-width: 640px) {
  .about-mission__title { font-size: 2.25rem; }
}
.about-mission__text {
  margin-block-start: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .about-mission__text { color: var(--slate-400); }
.about-mission__text + .about-mission__text { margin-block-start: 1rem; }
.about-mission__image {
  width: 100%;
  height: auto;
  border-radius: var(--erm-radius-xl);
  object-fit: cover;
}

/* Vision card */
.about-vision {
  background: var(--surface);
  padding-block: 4rem;
}
.dark .about-vision { background: rgb(30 41 59 / 0.3); }
.about-vision__card {
  margin-inline: auto;
  max-width: 48rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  padding: 2rem;
}
.dark .about-vision__card { background: rgb(30 41 59 / 0.5); }
.about-vision__title {
  font-family: var(--erm-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.about-vision__text {
  margin-block-start: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .about-vision__text { color: var(--slate-400); }

/* Values */
.about-values { padding-block: 5rem; }
.about-values__header {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.about-values__title {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
@media (min-width: 640px) {
  .about-values__title { font-size: 2.25rem; }
}
.about-values__subtitle {
  margin-block-start: 1rem;
  font-size: 1rem;
  color: var(--muted-strong);
}
.dark .about-values__subtitle { color: var(--slate-400); }
.about-values__grid {
  margin-inline: auto;
  margin-block-start: 4rem;
  display: grid;
  max-width: 64rem;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .about-values__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .about-values__grid { grid-template-columns: repeat(3, 1fr); }
}
.about-values__card {
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dark .about-values__card { background: rgb(30 41 59 / 0.5); }
.about-values__card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--erm-shadow-lg);
}
.dark .about-values__card:hover { border-color: var(--primary-600); }
.about-values__icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-lg);
  background: var(--primary-100);
  color: var(--primary-700);
  transition: background 0.2s ease, color 0.2s ease;
}
.dark .about-values__icon {
  background: rgb(14 15 19 / 0.4);
  color: var(--primary-300);
}
.about-values__card:hover .about-values__icon {
  background: var(--primary-700);
  color: #fff;
}
.about-values__card-title {
  margin-block-start: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.about-values__card-text {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .about-values__card-text { color: var(--slate-400); }

/* Success stories */
.about-stories {
  background: var(--surface);
  padding-block: 5rem;
}
.dark .about-stories { background: rgb(30 41 59 / 0.3); }
@media (min-width: 640px) {
  .about-stories { padding-block: 7rem; }
}
.about-stories__header {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.about-stories__title {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
@media (min-width: 640px) {
  .about-stories__title { font-size: 2.25rem; }
}
.about-stories__subtitle {
  margin-block-start: 1rem;
  font-size: 1rem;
  color: var(--muted-strong);
}
.dark .about-stories__subtitle { color: var(--slate-400); }
.about-stories__grid {
  margin-block-start: 4rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) {
  .about-stories__grid { grid-template-columns: repeat(2, 1fr); }
}
.about-stories__card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dark .about-stories__card { background: rgb(30 41 59 / 0.5); }
.about-stories__card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--erm-shadow-xl);
}
.dark .about-stories__card:hover { border-color: var(--primary-600); }
.about-stories__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.about-stories__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.about-stories__card:hover .about-stories__media img { transform: scale(1.05); }
.about-stories__body { padding: 2rem; }
.about-stories__icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-lg);
  background: var(--primary-100);
  color: var(--primary-700);
}
.dark .about-stories__icon {
  background: rgb(14 15 19 / 0.4);
  color: var(--primary-300);
}
.about-stories__card-title {
  margin-block-start: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.about-stories__card-text {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-strong);
}
.dark .about-stories__card-text { color: var(--slate-400); }
.about-stories__more {
  margin-block-start: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-700);
  transition: gap 0.2s ease;
}
.dark .about-stories__more { color: var(--primary-300); }
.about-stories__card:hover .about-stories__more { gap: 0.625rem; }

/* Careers CTA with video background */
.about-careers {
  position: relative;
  overflow: hidden;
  padding-block: 6rem;
}
.about-careers__bg {
  position: absolute;
  inset: 0;
}
.about-careers__bg video,
.about-careers__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-careers__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(79 51 142 / 0.9), rgb(94 50 178 / 0.7), rgb(115 57 218 / 0.6));
}
.about-careers__inner {
  position: relative;
  z-index: 1;
}
.about-careers__content {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.about-careers__title {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 500;
  color: #fff;
}
.about-careers__description {
  margin-block-start: 1rem;
  color: rgb(241 239 255 / 0.8);
}
.about-careers__actions { margin-block-start: 2rem; }

@media (prefers-reduced-motion: reduce) {
  /* Static poster instead of ambient video */
  .about-careers__bg video { display: none; }
  .about-careers__bg {
    background: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1920&h=1080&fit=crop&auto=format&q=80") center / cover no-repeat;
  }
}

/* ---- fragment: blog.css ---- */
/* ---------- BLOG (updates index / post / category / author) ----------
   Listing: featured card → six-cell bento → rows of three, centred pager.
   Post: header with tools, cover, sticky TOC beside the article, tags,
   author (no avatar), share dock that rides the viewport bottom. */

/* Page header */
.blog-head {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.blog-head__title {
  font-family: var(--erm-font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
@media (min-width: 640px) { .blog-head__title { font-size: 3rem; } }
.blog-head__title--sub { font-size: 1.875rem; margin-block-start: 1rem; }
@media (min-width: 640px) { .blog-head__title--sub { font-size: 2.25rem; } }
.blog-head__subtitle {
  margin-block-start: 1rem;
  font-size: 1.125rem;
  color: var(--muted-strong);
}

/* Category chips */
.blog-cats {
  margin-block-start: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.blog-cat-chip {
  border-radius: var(--erm-radius-full);
  background: var(--surface-hover);
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-strong);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.blog-cat-chip:hover {
  background: rgb(127 62 241 / 0.08);
  color: var(--blue-600);
}
.dark .blog-cat-chip:hover {
  background: rgb(201 189 255 / 0.14);
  color: var(--blue-400);
}

/* --- Listing: featured, bento, rows --- */
.blog-featured { margin-block-start: 3rem; }
.blog-bento,
.blog-grid {
  margin-block-start: 1.25rem;
  display: grid;
  gap: 1.25rem;
}
.blog-head + .blog-bento,
.blog-head + .blog-grid,
.blog-cats + .blog-bento,
.blog-cats + .blog-grid { margin-block-start: 3rem; }
@media (min-width: 640px) {
  .blog-bento { grid-template-columns: repeat(2, 1fr); }
  .blog-bento__cell--wide { grid-column: span 2; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-bento { grid-template-columns: repeat(4, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-empty {
  margin-block-start: 3rem;
  text-align: center;
  color: var(--muted);
}

/* --- Post card --- */
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--erm-radius-2xl);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: border-color 0.2s ease, transform 0.2s ease;
  height: 100%;
}
.post-card:hover { border-color: var(--slate-300); transform: translateY(-2px); }
.dark .post-card:hover { border-color: rgb(255 255 255 / 0.2); }

.post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.04); }

.post-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.875rem;
  font-weight: 700;
  color: rgb(255 255 255 / 0.2);
  background: linear-gradient(to bottom right, var(--primary-700), var(--primary-600));
}
.post-card__placeholder--big { font-size: 3.75rem; }
.post-card__placeholder--product-updates { background: linear-gradient(to bottom right, var(--blue-600), var(--blue-400)); }
.post-card__placeholder--industry-insights { background: linear-gradient(to bottom right, var(--primary-600), var(--primary-300)); }
.post-card__placeholder--best-practices { background: linear-gradient(to bottom right, var(--primary-700), var(--primary-600)); }
.post-card__placeholder--case-studies { background: linear-gradient(to bottom right, var(--primary-700), var(--primary-500)); }
.post-card__placeholder--technical-deep-dives { background: linear-gradient(to bottom right, var(--slate-800), var(--slate-600)); }
.post-card__placeholder--events-webinars { background: linear-gradient(to bottom right, var(--primary-500), var(--primary-700)); }

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}
.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.post-card__title {
  margin-block-start: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}
.post-card__title a {
  color: var(--fg-strong);
  text-decoration: none;
  transition: color 0.2s ease;
}
.post-card__title a:hover { color: var(--blue-600); }
.dark .post-card__title a:hover { color: var(--blue-400); }
.post-card__title--lg { margin-block-start: 1rem; font-size: 1.5rem; font-weight: 700; }
.post-card__excerpt {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__excerpt--full {
  margin-block-start: 0.75rem;
  display: block;
  -webkit-line-clamp: unset;
}
/* Byline: author name + reading time, no avatar. Sits at the card's foot. */
.post-card__by {
  margin-block-start: auto;
  padding-block-start: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.post-card__by a {
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
}
.post-card__by a:hover { color: var(--blue-600); }
.dark .post-card__by a:hover { color: var(--blue-400); }

/* Wide cell of the bento: media beside the text from 640 px up */
@media (min-width: 640px) {
  .post-card--wide { flex-direction: row; }
  .post-card--wide .post-card__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 100%; }
  .post-card--wide .post-card__body { padding: 1.5rem; justify-content: center; }
  .post-card--wide .post-card__title { font-size: 1.375rem; font-weight: 700; }
  .post-card--wide .post-card__excerpt { -webkit-line-clamp: 3; }
}
[dir="rtl"] .post-card--wide { flex-direction: row-reverse; }

/* Featured variant */
.post-card--featured .post-card__grid { display: grid; }
@media (min-width: 1024px) {
  .post-card--featured .post-card__grid { grid-template-columns: 1fr 1fr; }
  .post-card--featured .post-card__media { aspect-ratio: auto; height: 100%; }
}
.post-card--featured .post-card__body {
  padding: 2rem;
  justify-content: center;
  align-items: flex-start;
}
@media (min-width: 1024px) { .post-card--featured .post-card__body { padding: 2.5rem; } }
.post-card__flag { margin-block-end: 0.75rem; }
.post-card__foot {
  margin-block-start: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.post-card__foot .post-card__by { margin: 0; padding: 0; }
.post-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-600);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.post-card__read:hover { gap: 0.625rem; }
.dark .post-card__read { color: var(--blue-400); }
[dir="rtl"] .post-card__read .icon { transform: scaleX(-1); }

/* --- Pager: centred, previous / jump select / next --- */
.blog-pager {
  margin-block-start: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}
.blog-pager__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-full);
  background: var(--card-bg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.blog-pager__btn:hover { border-color: var(--slate-300); color: var(--fg-strong); }
.dark .blog-pager__btn:hover { border-color: rgb(255 255 255 / 0.2); color: #fff; }
.blog-pager__btn.is-disabled { opacity: 0.45; pointer-events: none; }
.blog-pager__jump {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.blog-pager__jump .select,
.blog-pager__jump .erm-select { margin: 0; inline-size: auto; min-inline-size: 4.75rem; }
.blog-pager__jump .erm-select__btn { padding-block: 0.5rem; }
.blog-pager__go {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-full);
  background: var(--card-bg);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
}
@media (max-width: 639px) {
  .blog-pager { gap: 0.625rem; }
  .blog-pager__btn { padding: 0.5rem; }
  .blog-pager__btn span { display: none; }
}

/* --- Post page: header + cover --- */
.post-wrap { max-width: 48rem; margin-inline: auto; }
.post-header { text-align: center; }
/* Same fix as .modules-block__chip (2026-10-01): a grey-on-grey chip read as
   no chip at all, so it takes the purple badge tint plus a hairline edge. */
.post-cat-badge {
  display: inline-block;
  border: 1px solid rgb(127 62 241 / 0.55);
  border-radius: 100rem;
  background: rgb(127 62 241 / 0.07);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-700);
}
.dark .post-cat-badge {
  border-color: rgb(201 189 255 / 0.24);
  background: rgb(201 189 255 / 0.16);
  color: #dad3ff;
}
.post-cat-badge--sm { padding: 0.125rem 0.625rem; }
.post-title {
  margin-block-start: 1rem;
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--fg-strong);
}
@media (min-width: 640px) { .post-title { font-size: 2.25rem; } }
.post-meta {
  margin-block-start: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.post-meta__author {
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
}
.post-meta__author:hover { color: var(--blue-600); }
.dark .post-meta__author:hover { color: var(--blue-400); }

/* "View as Markdown" / "Copy for LLM" */
.post-tools {
  margin-block-start: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.post-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-full);
  background: var(--card-bg);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-strong);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.post-tool:hover { border-color: var(--slate-300); color: var(--fg-strong); }
.dark .post-tool:hover { border-color: rgb(255 255 255 / 0.2); color: #fff; }
.post-tool.is-copied { border-color: var(--blue-500); color: var(--blue-600); }
.dark .post-tool.is-copied { border-color: #c9bdff; color: #dad3ff; }

.post-cover {
  margin-block-start: 2rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--erm-radius-2xl);
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Two columns: sticky TOC beside the article --- */
.post-layout {
  margin-block-start: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .post-layout {
    grid-template-columns: 13rem minmax(0, 44rem);
    justify-content: center;
    align-items: start;
    gap: 3.5rem;
  }
}
.post-body { min-width: 0; }

/* TOC: a collapsible box on phones, a quiet sticky column on desktop */
.post-toc {
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--card-bg);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
}
.post-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  list-style: none;
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.post-toc__summary::-webkit-details-marker { display: none; }
.post-toc__chevron { transition: transform 0.2s ease; }
.post-toc[open] .post-toc__chevron { transform: rotate(180deg); }
.post-toc__list {
  margin-block-start: 0.75rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  border-inline-start: 1px solid var(--border);
}
.post-toc__link {
  display: block;
  margin-inline-start: -1px;
  padding: 0.3125rem 0.75rem;
  border-inline-start: 2px solid transparent;
  line-height: 1.4;
  color: var(--muted-strong);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.post-toc__link--h3 { padding-inline-start: 1.5rem; font-size: 0.75rem; }
.post-toc__link:hover { color: var(--fg-strong); }
.post-toc__link[aria-current="true"] { color: var(--blue-600); border-color: var(--blue-600); }
.dark .post-toc__link[aria-current="true"] { color: #dad3ff; border-color: #c9bdff; }
@media (min-width: 1024px) {
  .post-toc {
    position: sticky;
    inset-block-start: calc(var(--header-height) + 1.5rem);
    max-block-size: calc(100vh - var(--header-height) - 3rem);
    overflow-y: auto;
    border: 0;
    background: transparent;
    padding: 0 0.25rem;
    margin-inline: -0.25rem;
  }
  .post-toc__summary { pointer-events: none; }
  .post-toc__chevron { display: none; }
}

/* Tags */
.post-tags {
  margin-block-start: 2.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.post-tags__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-inline-end: 0.25rem;
}
.post-tag {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  border-radius: var(--erm-radius-full);
  background: var(--surface-hover);
  font-size: 0.75rem;
  color: var(--muted-strong);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.post-tag:hover { background: rgb(127 62 241 / 0.08); color: var(--blue-600); }
.dark .post-tag:hover { background: rgb(201 189 255 / 0.14); color: var(--blue-400); }

/* Author card (post footer), no avatar */
.author-card {
  margin-block-start: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-2xl);
  padding: 1.25rem 1.5rem;
}
.author-card__name {
  font-weight: 600;
  color: var(--fg-strong);
  text-decoration: none;
}
.author-card__name:hover { color: var(--blue-600); }
.dark .author-card__name:hover { color: var(--blue-400); }
.author-card__role {
  margin-block-start: 0.125rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Share dock: the last child of the article column, stuck to the viewport
   bottom while the column scrolls past, parked in place once it ends. */
.post-dock {
  position: sticky;
  inset-block-end: 1rem;
  z-index: 20;
  display: flex;
  justify-content: center;
  margin-block-start: 2.5rem;
  pointer-events: none;
}
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-full);
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  pointer-events: auto;
}
.dark .share-bar { background: rgb(15 20 27 / 0.82); border-color: rgb(255 255 255 / 0.1); }
.share-bar__label { font-size: 0.75rem; color: var(--muted); margin-inline-end: 0.25rem; }
.share-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: var(--erm-radius-full);
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.share-bar__btn:hover {
  background: var(--surface-hover);
  color: var(--fg-strong);
}
.share-bar__btn.is-copied { color: var(--blue-600); }
.dark .share-bar__btn.is-copied { color: var(--blue-400); }

/* Related posts */
.post-related {
  margin-block-start: 4rem;
  border-block-start: 1px solid var(--border);
  padding-block-start: 3rem;
}
.post-related__title {
  font-family: var(--erm-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg-strong);
}
.related-grid {
  margin-block-start: 1.5rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }

/* Author page hero (no avatar) */
.author-hero {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.author-hero__name {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--fg-strong);
}
.author-hero__role {
  margin-block-start: 0.25rem;
  font-weight: 500;
  color: var(--primary-600);
}
.dark .author-hero__role { color: var(--primary-300); }
.author-hero__bio {
  margin-block-start: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-strong);
}

/* Article body typography (replaces @tailwindcss/typography) */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg);
  overflow-wrap: break-word;
}
.prose > :first-child { margin-block-start: 0; }
.prose > :last-child { margin-block-end: 0; }
.prose p { margin-block: 1.25em; }
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--erm-font-display);
  font-weight: 700;
  color: var(--fg-strong);
  scroll-margin-block-start: calc(var(--header-height) + 1.5rem);
}
.prose h1 { font-size: 1.875em; margin-block: 0 0.9em; line-height: 1.2; }
.prose h2 { font-size: 1.5em; margin-block: 2em 1em; line-height: 1.33; }
.prose h3 { font-size: 1.25em; margin-block: 1.6em 0.6em; line-height: 1.5; }
.prose h4 { font-size: 1em; margin-block: 1.5em 0.5em; line-height: 1.5; }
.prose a {
  color: var(--blue-600);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--link-hover); }
.dark .prose a { color: var(--blue-400); }
.prose strong { font-weight: 600; color: var(--fg-strong); }
.prose ul,
.prose ol {
  margin-block: 1.25em;
  padding-inline-start: 1.625em;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-block: 0.5em; padding-inline-start: 0.375em; }
.prose li::marker { color: var(--muted); }
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul { margin-block: 0.75em; }
.prose blockquote {
  margin-block: 1.6em;
  border-inline-start: 0.25rem solid var(--border);
  padding-inline-start: 1em;
  font-style: italic;
  color: var(--muted-strong);
}
.prose blockquote p:first-of-type { margin-block-start: 0; }
.prose blockquote p:last-of-type { margin-block-end: 0; }
.prose code {
  background: var(--surface);
  border-radius: var(--erm-radius-sm);
  padding: 0.2em 0.4em;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  color: var(--fg-strong);
}
.prose pre {
  margin-block: 1.7em;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--erm-radius-lg);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  line-height: 1.7;
}
.prose pre code {
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 0.875em;
}
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-block: 2em;
  border-radius: var(--erm-radius-lg);
}
/* Italic line directly after an image reads as a caption (MdxComponents figcaption look) */
.prose img + em,
.prose p:has(> img:only-child) + p:has(> em:only-child) > em {
  display: block;
  margin-block: -1.25em 0;
  text-align: center;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted);
}
.prose hr {
  margin-block: 3em;
  border: 0;
  border-block-start: 1px solid var(--border);
}
.prose table {
  width: 100%;
  margin-block: 2em;
  border-collapse: collapse;
  font-size: 0.875em;
  line-height: 1.7;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  padding: 0.5em 0.75em;
  border-block-end: 1px solid var(--border);
  text-align: start;
}
.prose th { font-weight: 600; color: var(--fg-strong); }

/* ---- fragment: breadcrumbs.css ---- */
/* ---------- Breadcrumbs ----------
   partials/breadcrumbs.php, rendered by layout.php at the top of <main> on
   every page but home and 404. Colour and type are Tailwind utilities in the
   partial; this file owns the spacing, because it has to cooperate with the
   fixed header and with whatever hero comes next. The row is 40 px tall
   (12 px pad + 28 px line) and pulls the following section up by 20 px, so
   it sits inside that section's own top padding (never less than 48 px on
   any page) and pages grow by 20 px, not 40. */
.erm-breadcrumbs {
  --erm-crumbs-h: 2.5rem;
  position: relative;
  z-index: 5;
  padding-block-start: 0.75rem;
  margin-block-end: -1.25rem;
}
.erm-breadcrumbs__list { min-height: 1.75rem; }

/* Full-bleed heroes pull up under the header by --header-height (about,
   features, modules). On those pages the row is taken out of flow and laid
   over the hero instead. It used to cancel its own height with a negative
   bottom margin, but that margin *collapses* with the hero's negative top
   margin (the larger one wins, they do not add), which left the hero
   starting 40 px down and a strip of plain canvas behind the header
   (fixed 2026-10-01). Out of flow, there is no margin to collapse with. */
.page-about .erm-breadcrumbs,
.page-features .erm-breadcrumbs,
.page-modules .erm-breadcrumbs {
  position: absolute;
  inset-inline: 0;
  top: var(--header-height);
  margin-block-end: 0;
}

/* Native <details> marker off; Tailwind's list-none covers Firefox/Chrome,
   WebKit needs the pseudo-element. */
.erm-breadcrumbs__more::-webkit-details-marker { display: none; }

/* ---- fragment: compare.css ---- */
/* ---------- Comparison pages ----------
   templates/pages/compare*.php are Tailwind-first; this file owns the one
   thing utilities cannot express — the comparison table's phone layout.
   From 640 px it is a real three-column <table>; below that every row
   becomes a card: the feature name is the card title and each cell shows
   its column name (data-label) above the text. The winning cell of a row
   (data-edge on the <tr>) is tinted in both layouts. */
.erm-compare-table { overflow: hidden; border: 1px solid var(--border); border-radius: var(--erm-radius-xl); background: var(--card-bg); }
.dark .erm-compare-table { background: var(--surface); }
.erm-compare-table__table { width: 100%; border-collapse: separate; border-spacing: 0; }
.erm-compare-table__head th { padding: 0.875rem 1rem; text-align: start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-strong); border-block-end: 1px solid var(--border); background: var(--surface); }
.dark .erm-compare-table__head th { background: rgb(255 255 255 / 0.03); }
.erm-compare-table__head th:first-child { width: 22%; }
.erm-compare-row__feature, .erm-compare-row__cell { padding: 0.875rem 1rem; vertical-align: top; border-block-end: 1px solid var(--border-soft); font-size: 0.875rem; line-height: 1.55; }
.erm-compare-row:last-child .erm-compare-row__feature, .erm-compare-row:last-child .erm-compare-row__cell { border-block-end: 0; }
.erm-compare-row__feature { font-weight: 600; color: var(--fg-strong); text-align: start; }
.erm-compare-row__cell { color: var(--fg); }
.erm-compare-row__cell::before { display: none; }
/* The edge tint: a soft purple for ERMLib, a soft amber when the other product leads. */
.erm-compare-row[data-edge="ermlib"] .erm-compare-row__cell--ermlib { background: rgb(127 62 241 / 0.07); }
.erm-compare-row[data-edge="competitor"] .erm-compare-row__cell--competitor { background: rgb(240 160 32 / 0.1); }
.dark .erm-compare-row[data-edge="ermlib"] .erm-compare-row__cell--ermlib { background: rgb(201 189 255 / 0.1); }
.dark .erm-compare-row[data-edge="competitor"] .erm-compare-row__cell--competitor { background: rgb(255 196 102 / 0.1); }
.erm-compare-row__mark { display: flex; align-items: center; gap: 0.3rem; margin-block-end: 0.3rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.erm-compare-row__mark--ermlib { color: var(--blue-600); }
.dark .erm-compare-row__mark--ermlib { color: #dad3ff; }
.erm-compare-row__mark--competitor { color: var(--amber-600); }
.dark .erm-compare-row__mark--competitor { color: var(--amber-400); }

@media (max-width: 639.98px) {
  .erm-compare-table__table, .erm-compare-table__body, .erm-compare-row, .erm-compare-row__feature, .erm-compare-row__cell { display: block; }
  .erm-compare-table__head { display: none; }
  .erm-compare-row { border-block-end: 1px solid var(--border); padding: 0.25rem 0 0.5rem; }
  .erm-compare-row:last-child { border-block-end: 0; }
  .erm-compare-row__feature { padding: 0.875rem 1rem 0.375rem; border: 0; font-size: 0.9375rem; }
  .erm-compare-row__cell { margin: 0.375rem 0.75rem; padding: 0.625rem 0.75rem; border: 1px solid var(--border-soft); border-radius: var(--erm-radius-md); }
  .erm-compare-row__cell::before { content: attr(data-label); display: block; margin-block-end: 0.2rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-strong); }
}

/* ---- fragment: contact-map.css ---- */
/* --- Contact map facade (Google Maps loads on request) --- */
.contact-map__facade {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-block-size: 300px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--surface);
  text-align: center;
}
.contact-map__icon { color: var(--blue-600, #824eed); }
.contact-map__address { max-inline-size: 22rem; font-size: 0.9375rem; color: var(--fg-strong); }
.contact-map__link { font-size: 0.875rem; font-weight: 500; color: var(--blue-600, #824eed); }
.contact-map__link:hover { text-decoration: underline; }
.dark .contact-map__link { color: var(--blue-400, #af97ff); }
.contact-map__note { font-size: 0.75rem; color: var(--muted); }
.contact-map__frame { display: block; border: 0; border-radius: var(--erm-radius-lg); }

/* ---- fragment: detail-pages.css ---- */
/* ---------- Detail pages (feature-detail, module-detail, careers, job, success-story) ---------- */

/* Hero (shared) */
.dp-hero { padding-block: 5rem; }
@media (min-width: 640px) {
  .dp-hero { padding-block: 7rem; }
}
.dp-hero__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .dp-hero__grid { grid-template-columns: repeat(2, 1fr); }
}
.dp-hero__title {
  font-family: var(--erm-font-display);
  margin-block-start: 1.5rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg-strong);
}
@media (min-width: 640px) {
  .dp-hero__title { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .dp-hero__title { font-size: 3.75rem; }
  .dp-hero__title--md { font-size: 3rem; }
}
.dp-hero__subtitle {
  margin-block-start: 1rem;
  font-size: 1rem;
  color: var(--muted);
}
.dp-hero__description {
  margin-block-start: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .dp-hero__description { color: var(--slate-400); }
.dp-hero__actions {
  margin-block-start: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.dp-hero__figure {
  display: flex;
  justify-content: center;
}
/* The hero picture is the large animated library illustration
   (partials/feature-art.php): no panel and no ground behind it. */
.dp-hero__art { display: flex; width: 100%; align-items: center; justify-content: center; }

/* Sections */
.dp-section { padding-block: 5rem; }
.dp-section--sm { padding-block: 4rem; }
.dp-section--alt { background: var(--surface); }
.dark .dp-section--alt { background: rgb(30 41 59 / 0.3); }
.dp-section--tint { background: var(--primary-50); }
.dark .dp-section--tint { background: rgb(14 15 19 / 0.2); }

/* Centered intro */
.dp-intro {
  margin-inline: auto;
  max-width: 48rem;
  text-align: center;
}
.dp-intro__icon {
  display: block;
  margin-inline: auto;
  margin-block-end: 1rem;
  color: var(--primary-500);
}
.dp-intro__title {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
@media (min-width: 640px) {
  .dp-intro__title { font-size: 2.25rem; }
}
.dp-intro__title--sm,
[class] .dp-intro__title--sm { font-size: 1.5rem; }
.dp-intro__description {
  margin-block-start: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .dp-intro__description { color: var(--slate-400); }
.dp-intro__institution {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Check cards (benefits / responsibilities / requirements / results) */
.dp-benefits {
  margin-block-start: 3rem;
  margin-inline: auto;
  max-width: 56rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .dp-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dp-benefits { grid-template-columns: repeat(3, 1fr); }
}
.dp-check-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  padding: 1.25rem;
  font-size: 0.875rem;
  color: var(--slate-700);
}
.dark .dp-check-card { color: var(--slate-300); }
.dp-check-card--filled {
  background: var(--card-bg);
  padding: 1rem 1.25rem;
}
.dark .dp-check-card--filled { background: rgb(30 41 59 / 0.5); }
.dp-check-card__icon {
  flex-shrink: 0;
  margin-block-start: 0.125rem;
  color: var(--primary-500);
}
.dp-check-list {
  margin-block-start: 2rem;
  display: grid;
  gap: 0.75rem;
}

/* Use cases */
.dp-usecases {
  margin-block-start: 3rem;
  margin-inline: auto;
  max-width: 48rem;
  display: grid;
  gap: 2rem;
}
.dp-usecase {
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  padding: 1.5rem;
}
.dp-usecase__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.dp-usecase__description {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .dp-usecase__description { color: var(--slate-400); }

/* Stats */
.dp-stats {
  margin-inline: auto;
  max-width: 48rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) {
  .dp-stats { grid-template-columns: repeat(3, 1fr); }
}
.dp-stat { text-align: center; }
.dp-stat__value {
  font-family: var(--erm-font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-700);
}
.dark .dp-stat__value { color: var(--primary-300); }
.dp-stat__label {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Flow illustration panel (auth / webhook) */
.dp-flow-panel {
  margin-block-start: 2.5rem;
  margin-inline: auto;
  max-width: 42rem;
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  padding: 1.5rem;
  box-shadow: none;
}
.dark .dp-flow-panel { background: rgb(30 41 59 / 0.5); }

/* Auth cards */
.dp-auth-grid {
  margin-block-start: 3rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .dp-auth-grid { grid-template-columns: repeat(2, 1fr); }
}
.dp-auth-card {
  border: 1px solid var(--primary-200);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  padding: 1.5rem;
}
.dark .dp-auth-card {
  border-color: var(--primary-600);
  background: rgb(30 41 59 / 0.5);
}
.dp-auth-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-700);
}
.dark .dp-auth-card__title { color: var(--primary-300); }
.dp-auth-card__description {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-strong);
}
.dark .dp-auth-card__description { color: var(--slate-400); }
.dp-auth-card__protocols {
  margin-block-start: 1rem;
  display: grid;
  gap: 0.75rem;
}
.dp-protocol {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.dp-protocol__step {
  margin-block-start: 0.25rem;
  display: flex;
  height: 1.5rem;
  width: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-sm);
  background: var(--primary-100);
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-700);
}
.dark .dp-protocol__step {
  background: rgb(14 15 19 / 0.3);
  color: var(--primary-300);
}
.dp-protocol__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-strong);
}
.dp-protocol__description {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Webhook event cards */
.dp-webhook-grid {
  margin-block-start: 3rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .dp-webhook-grid { grid-template-columns: repeat(2, 1fr); }
  /* Three groups (ErmDesk hidden): the first, largest one spans the row — bento, no hole. */
  .dp-webhook-card:first-child:nth-last-child(3) { grid-column: 1 / -1; }
}
.dp-webhook-card {
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--card-bg);
  padding: 1.25rem;
}
.dark .dp-webhook-card { background: rgb(30 41 59 / 0.5); }
.dp-webhook-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.dp-webhook-card__events {
  margin-block-start: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.dp-event-chip {
  border-radius: 0.25rem;
  background: var(--slate-100);
  padding: 0.125rem 0.5rem;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-strong);
}
.dark .dp-event-chip {
  background: var(--slate-700);
  color: var(--slate-400);
}

/* Testimonial quote */
.dp-quote {
  margin-inline: auto;
  max-width: 48rem;
  text-align: center;
}
.dp-quote__mark {
  font-family: var(--erm-font-display);
  font-size: 3rem;
  line-height: 1;
  color: rgb(104 109 133 / 0.2);
}
.dp-quote__icon {
  display: block;
  margin-inline: auto;
  margin-block-end: 1.5rem;
  color: var(--primary-500);
  opacity: 0.3;
}
.dp-quote__text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--slate-700);
}
.dark .dp-quote__text { color: var(--slate-300); }
.dp-quote__attribution { margin-block-start: 1.5rem; }
.dp-quote__name {
  font-weight: 600;
  color: var(--fg-strong);
}
.dp-quote__role {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Case study cards */
.dp-case-grid {
  margin-block-start: 2.5rem;
  margin-inline: auto;
  max-width: 56rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .dp-case-grid { grid-template-columns: repeat(3, 1fr); }
}
.dp-case-card {
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  padding: 1.5rem;
}
.dp-case-card__label {
  font-size: 0.875rem;
  font-weight: 600;
}
.dp-case-card__label--challenge { color: #ef4444; }
.dp-case-card__label--solution { color: #f59e0b; }
.dp-case-card__label--result { color: var(--primary-500); }
.dp-case-card__icon { display: block; margin-block-end: 0.75rem; }
.dp-case-card__icon--challenge { color: #ef4444; }
.dp-case-card__icon--solution { color: #f59e0b; }
.dp-case-card__icon--result { color: var(--primary-500); }
.dp-case-card__heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.dp-case-card__text {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-strong);
}
.dark .dp-case-card__text { color: var(--slate-400); }

/* CTA with ambient video background */
.dp-cta {
  position: relative;
  overflow: hidden;
  padding-block: 6rem;
}
.dp-cta__media { position: absolute; inset: 0; }
.dp-cta__poster,
.dp-cta__video {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.dp-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(79 51 142 / 0.9), rgb(94 50 178 / 0.75), rgb(115 57 218 / 0.65));
}
.dp-cta__content {
  position: relative;
  z-index: 1;
}
.dp-cta__inner {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.dp-cta__title {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 500;
  color: #fff;
}
.dp-cta__subtitle {
  margin-block-start: 0.75rem;
  color: rgb(241 239 255 / 0.8);
}
.dp-cta__actions { margin-block-start: 2rem; }
@media (prefers-reduced-motion: reduce) {
  .dp-cta__video { display: none; }
}

/* Solid dark CTA (careers / job / success story) */
.dp-dark-cta {
  background: var(--primary-700);
  padding-block: 5rem;
}
.dp-dark-cta--sm { padding-block: 4rem; }
.dp-dark-cta__content {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.dp-dark-cta__title {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 500;
  color: #fff;
}
.dp-dark-cta__title--sm,
[class] .dp-dark-cta__title--sm { font-size: 1.5rem; }
.dp-dark-cta__description {
  margin-block-start: 1rem;
  color: var(--slate-300);
}
.dp-dark-cta__actions {
  margin-block-start: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Back link */
.dp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.dp-back-link:hover { color: var(--primary-700); }
.dark .dp-back-link:hover { color: var(--primary-300); }

/* Narrow prose column */
.dp-narrow {
  margin-inline: auto;
  max-width: 48rem;
}
.dp-narrow__title {
  font-family: var(--erm-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg-strong);
}
.dp-narrow__text {
  margin-block-start: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .dp-narrow__text { color: var(--slate-400); }

/* Icon + heading row (success story sections) */
.dp-icon-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.dp-icon-heading__icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-md);
  background: var(--primary-100);
  color: var(--primary-700);
}
.dark .dp-icon-heading__icon {
  background: rgb(14 15 19 / 0.4);
  color: var(--primary-300);
}
.dp-icon-heading__icon--amber {
  background: #fef3c7;
  color: #d97706;
}
.dark .dp-icon-heading__icon--amber {
  background: rgb(120 53 15 / 0.4);
  color: #fbbf24;
}

/* Module workflow timeline */
.dp-workflow {
  position: relative;
  margin-block-start: 3rem;
  margin-inline: auto;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.dp-workflow--lined::before {
  content: "";
  position: absolute;
  inset-block: 20px;
  inset-inline-start: 19px;
  width: 2px;
  border-radius: var(--erm-radius-full);
  background: rgb(150 112 249 / 0.3);
}
.dp-workflow__item {
  position: relative;
  display: flex;
  gap: 1.5rem;
}
.dp-workflow__marker {
  position: relative;
  z-index: 1;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-full);
  background: var(--blue-600);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  box-shadow: none;
}
.dp-workflow__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.dp-workflow__description {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .dp-workflow__description { color: var(--slate-400); }

/* Module capability cards */
.dp-capabilities {
  margin-block-start: 3rem;
  margin-inline: auto;
  max-width: 64rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .dp-capabilities { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dp-capabilities { grid-template-columns: repeat(3, 1fr); }
}
.dp-capability {
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--primary-200);
  border-radius: var(--erm-radius-lg);
  background: var(--card-bg);
  padding: 1.5rem;
}
.dark .dp-capability {
  border-color: var(--primary-600);
  background: rgb(30 41 59 / 0.5);
}
.dp-capability__icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
}
.dark .dp-capability__icon {
  background: rgb(14 15 19 / 0.2);
  color: var(--primary-300);
}
.dp-capability__title {
  margin-block-start: 1rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.dp-capability__description {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .dp-capability__description { color: var(--slate-400); }

/* Careers — benefit cards */
.careers-benefits__grid {
  margin-block-start: 3rem;
  margin-inline: auto;
  max-width: 64rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .careers-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .careers-benefits__grid { grid-template-columns: repeat(4, 1fr); }
}
.careers-benefit {
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s ease;
}
.dark .careers-benefit { background: rgb(30 41 59 / 0.5); }
.careers-benefit:hover { box-shadow: none; }
.careers-benefit__icon {
  margin-inline: auto;
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-lg);
  background: var(--primary-100);
  color: var(--primary-700);
}
.dark .careers-benefit__icon {
  background: rgb(14 15 19 / 0.4);
  color: var(--primary-300);
}
.careers-benefit__title {
  margin-block-start: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.careers-benefit__description {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .careers-benefit__description { color: var(--slate-400); }

/* Careers — grouped job listings */
.careers-groups {
  margin-block-start: 4rem;
  margin-inline: auto;
  max-width: 56rem;
  display: grid;
  gap: 3rem;
}
.careers-group__title {
  font-family: var(--erm-font-display);
  margin-block-end: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--fg-strong);
}
.careers-group__list {
  display: grid;
  gap: 0.75rem;
}
.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--card-bg);
  padding: 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dark .job-row { background: rgb(30 41 59 / 0.5); }
.job-row:hover {
  border-color: var(--primary-200);
  box-shadow: none;
}
.dark .job-row:hover { border-color: var(--primary-600); }
.job-row__title {
  font-weight: 600;
  color: var(--fg-strong);
}
.job-row__meta {
  margin-block-start: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.job-row__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.job-row__arrow {
  flex-shrink: 0;
  color: var(--slate-400);
  transition: transform 0.15s ease, color 0.15s ease;
}
.job-row:hover .job-row__arrow {
  color: var(--primary-700);
  transform: translateX(4px);
}
[dir="rtl"] .job-row:hover .job-row__arrow { transform: translateX(-4px) scaleX(-1); }
.dark .job-row:hover .job-row__arrow { color: var(--primary-300); }

/* Job detail — hero meta */
.job-hero__body {
  margin-block-start: 2rem;
  max-width: 48rem;
}
.job-hero__meta {
  margin-block-start: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.job-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.job-hero__remote {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--erm-radius-full);
  background: var(--primary-100);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-700);
}
.dark .job-hero__remote {
  background: rgb(14 15 19 / 0.4);
  color: var(--primary-300);
}

/* Success story — hero with image */
.story-hero {
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
}
@media (min-width: 640px) {
  .story-hero { padding-block: 7rem; }
}
.story-hero__media { position: absolute; inset: 0; }
.story-hero__media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.story-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.95));
}
.dark .story-hero__overlay {
  background: linear-gradient(to bottom, rgb(15 23 42 / 0.85), rgb(15 23 42 / 0.8), rgb(15 23 42 / 0.95));
}
.story-hero__content {
  position: relative;
  z-index: 1;
}
.story-hero__body {
  margin-block-start: 2rem;
  max-width: 48rem;
}
.story-hero__tagline {
  margin-block-start: 1rem;
  font-size: 1.25rem;
  color: var(--muted-strong);
}
.dark .story-hero__tagline { color: var(--slate-400); }

/* Success story — quote card */
.story-quote {
  border: 1px solid var(--primary-200);
  border-radius: var(--erm-radius-xl);
  background: var(--primary-50);
  padding: 2rem;
}
.dark .story-quote {
  border-color: var(--primary-600);
  background: rgb(14 15 19 / 0.2);
}
.story-quote__icon { color: var(--primary-300); }
.story-quote__text {
  margin-block-start: 1rem;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--slate-700);
}
.dark .story-quote__text { color: var(--slate-300); }
.story-quote__author {
  margin-block-start: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-strong);
}
.story-quote__role {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Detail-page illustrations (hero mockups, careers, auth/webhook flows) ---------- */

.ill--wide { max-width: 560px; }

/* Generic SVG color utilities (illx-*) */
.illx-frame { fill: var(--slate-100); }
.dark .illx-frame { fill: rgb(51 65 85 / 0.4); }
.illx-panel { fill: #fff; }
.dark .illx-panel { fill: rgb(30 41 59 / 0.5); }
.illx-soft { fill: rgb(232 233 238 / 0.6); }
.dark .illx-soft { fill: rgb(14 15 19 / 0.2); }
.illx-accent { fill: rgb(104 109 133 / 0.6); }
.dark .illx-accent { fill: rgb(104 109 133 / 0.4); }
.illx-accent-solid { fill: var(--primary-500); }
.illx-line { fill: var(--slate-300); }
.dark .illx-line { fill: var(--slate-600); }
.illx-line-soft { fill: var(--slate-200); }
.dark .illx-line-soft { fill: rgb(71 85 105 / 0.3); }
.illx-chip { fill: var(--primary-200); }
.dark .illx-chip { fill: rgb(82 86 107 / 0.3); }
.illx-dot--red { fill: #fca5a5; }
.dark .illx-dot--red { fill: rgb(220 38 38 / 0.5); }
.illx-dot--amber { fill: #fcd34d; }
.dark .illx-dot--amber { fill: rgb(217 119 6 / 0.5); }
.illx-dot--gray { fill: var(--primary-300); }
.dark .illx-dot--gray { fill: rgb(104 109 133 / 0.5); }
.illx-slot { fill: var(--slate-100); }
.dark .illx-slot { fill: rgb(51 65 85 / 0.3); }
.illx-slot--booked { fill: rgb(159 163 180 / 0.7); }
.dark .illx-slot--booked { fill: rgb(104 109 133 / 0.4); }
.illx-status--red { fill: #f87171; }
.illx-status--amber { fill: #fbbf24; }
.illx-status--green { fill: #4ade80; }
.illx-pill--red { fill: #fee2e2; }
.dark .illx-pill--red { fill: rgb(127 29 29 / 0.2); }
.illx-pill--amber { fill: #fef3c7; }
.dark .illx-pill--amber { fill: rgb(120 53 15 / 0.2); }
.illx-pill--green { fill: #dcfce7; }
.dark .illx-pill--green { fill: rgb(20 83 45 / 0.2); }
.illx-pill-text { font-size: 7px; }
.illx-pill-text--red { fill: #dc2626; }
.dark .illx-pill-text--red { fill: #f87171; }
.illx-pill-text--amber { fill: #d97706; }
.dark .illx-pill-text--amber { fill: #fbbf24; }
.illx-pill-text--green { fill: #16a34a; }
.dark .illx-pill-text--green { fill: #4ade80; }
.illx-node { fill: var(--primary-100); stroke: var(--primary-300); }
.dark .illx-node { fill: rgb(14 15 19 / 0.3); stroke: var(--primary-500); }
.illx-node-text {
  fill: var(--primary-700);
  font-size: 9px;
  font-weight: 500;
}
.dark .illx-node-text { fill: var(--primary-300); }
.illx-endpoint { fill: var(--card-bg); stroke: var(--slate-300); }
.dark .illx-endpoint { fill: var(--slate-800); stroke: var(--slate-600); }
.illx-endpoint-text { fill: var(--slate-600); font-size: 9px; font-weight: 500; }
.dark .illx-endpoint-text { fill: var(--slate-400); }
.illx-dash { stroke: rgb(104 109 133 / 0.3); }
.dark .illx-dash { stroke: rgb(104 109 133 / 0.2); }
.illx-line-svg { stroke: rgb(203 213 225 / 0.4); }
.dark .illx-line-svg { stroke: rgb(71 85 105 / 0.3); }
.illx-text-faint { fill: var(--slate-400); font-size: 9px; }
.illx-text-muted { fill: var(--slate-500); font-size: 10px; }
.dark .illx-text-muted { fill: var(--slate-400); }
.illx-text-tiny { fill: var(--slate-400); font-size: 7px; }
.illx-text-label { fill: var(--slate-500); font-size: 9px; font-weight: 600; }
.illx-text-strong { fill: var(--primary-700); font-size: 10px; font-weight: 600; }
.dark .illx-text-strong { fill: var(--primary-300); }
.illx-text-inverse { fill: #fff; font-size: 11px; font-weight: 700; }
.illx-text-inverse--sm,
[class] .illx-text-inverse--sm { font-size: 9px; }
.illx-text-inverse-soft { fill: var(--primary-100); font-size: 8px; }

/* ErmDesk-specific tones */
.ill-ermdesk__header { fill: #fffbeb; }
.dark .ill-ermdesk__header { fill: rgb(120 53 15 / 0.2); }
.ill-ermdesk__header-line { fill: rgb(251 191 36 / 0.6); }
.dark .ill-ermdesk__header-line { fill: rgb(245 158 11 / 0.4); }
.ill-ermdesk__value {
  fill: var(--slate-800);
  font-size: 14px;
  font-weight: 700;
}
.dark .ill-ermdesk__value { fill: #fff; }

/* Careers illustration */
.ill-careers { max-width: 480px; }
.ill-careers__desk { fill: var(--primary-100); }
.dark .ill-careers__desk { fill: var(--primary-600); }
.ill-careers__leg { fill: var(--primary-200); }
.dark .ill-careers__leg { fill: var(--primary-700); }
.ill-careers__laptop { fill: var(--primary-700); }
.dark .ill-careers__laptop { fill: var(--primary-500); }
.ill-careers__code { fill: rgb(255 255 255 / 0.4); }
.ill-careers__body--1 { fill: var(--primary-500); }
.dark .ill-careers__body--1 { fill: var(--primary-600); }
.ill-careers__body--2 { fill: var(--primary-300); }
.dark .ill-careers__body--2 { fill: var(--primary-700); }
.ill-careers__body--3 { fill: var(--primary-600); }
.dark .ill-careers__body--3 { fill: var(--primary-500); }
.ill-careers__head { fill: var(--primary-100); stroke: var(--primary-300); }
.dark .ill-careers__head { fill: rgb(14 15 19 / 0.4); stroke: var(--primary-500); }
.ill-careers__smile { stroke: var(--primary-500); }
.dark .ill-careers__smile { stroke: var(--primary-300); }
.ill-careers__stroke { stroke: var(--primary-300); }
.dark .ill-careers__stroke { stroke: var(--primary-500); }
.ill-careers__steam { stroke: rgb(159 163 180 / 0.4); opacity: 0; }
.ill-careers__pot { fill: var(--primary-100); }
.dark .ill-careers__pot { fill: rgb(14 15 19 / 0.4); }

/* Entry animations for detail-page illustrations.
   Default state (no JS / reduced motion) is the finished illustration. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal-ready [data-reveal] .ill-fade { opacity: 0; }
  .js-reveal-ready [data-reveal].is-visible .ill-fade {
    animation: ill-fade 0.6s ease forwards;
    animation-delay: var(--ill-delay, 0s);
  }
  .js-reveal-ready [data-reveal] .ill-rise {
    opacity: 0;
    transform: translateY(15px);
    transform-box: fill-box;
  }
  .js-reveal-ready [data-reveal].is-visible .ill-rise {
    animation: ill-rise 0.5s ease-out forwards;
    animation-delay: var(--ill-delay, 0s);
  }
  .js-reveal-ready [data-reveal] .ill-drop {
    opacity: 0;
    transform: translateY(-15px);
    transform-box: fill-box;
  }
  .js-reveal-ready [data-reveal].is-visible .ill-drop {
    animation: ill-rise 0.5s ease-out forwards;
    animation-delay: var(--ill-delay, 0s);
  }
  .js-reveal-ready [data-reveal] .ill-slide-in {
    opacity: 0;
    transform: translateX(-15px);
    transform-box: fill-box;
  }
  .js-reveal-ready [data-reveal] .ill-slide-in--rev { transform: translateX(15px); }
  .js-reveal-ready [data-reveal].is-visible .ill-slide-in {
    animation: ill-settle 0.5s ease-out forwards;
    animation-delay: var(--ill-delay, 0s);
  }
  .js-reveal-ready [data-reveal] .ill-grow-x {
    transform: scaleX(0);
    transform-box: fill-box;
    transform-origin: left center;
  }
  .js-reveal-ready [data-reveal].is-visible .ill-grow-x {
    animation: ill-grow-x 0.5s ease-out forwards;
    animation-delay: var(--ill-delay, 0s);
  }
  .ill-float {
    animation: ill-float var(--ill-float-dur, 3s) ease-in-out infinite alternate;
  }
  .ill-float--alt { animation-direction: alternate-reverse; }
  .ill-careers__steam {
    animation: ill-steam 2s ease-in-out infinite;
  }
  .illx-particle {
    fill: var(--primary-500);
    opacity: 0;
    animation: ill-particle var(--ill-dur, 2s) ease-in-out infinite;
    animation-delay: var(--ill-delay, 0s);
  }
}
@media (prefers-reduced-motion: reduce) {
  .illx-particle { display: none; }
  .ill-careers__steam { opacity: 0.5; }
}

@keyframes ill-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ill-settle {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes ill-grow-x {
  to { transform: scaleX(1); }
}
@keyframes ill-float {
  from { transform: translateY(-4px); }
  to { transform: translateY(4px); }
}
@keyframes ill-steam {
  0%, 100% { opacity: 0.3; transform: translateY(-2px); }
  50% { opacity: 0.8; transform: translateY(-6px); }
}

/* ---- fragment: feature-art.css ---- */
/* ============================================================
   Feature art: the four animated library illustrations and their
   icons (partials/feature-art.php, partials/feature-icon.php),
   used by the home bento, the features page and the detail heroes.
   ============================================================ */

/* Colours from the hand-off's -light / -dark pair. The source uses #44188A
   for two jobs that part ways in the dark file — every outline (→ #F1EBFE)
   and a few deep fills (→ #581FB3) — hence --fa-line and --fa-deep. */
.feature-art,
.feature-icon {
  --fa-line: #44188a;
  --fa-deep: #44188a;
  --fa-accent: #7f3ef1;
  --fa-spark: #c3a8f9;
  --fa-tint: #e0d2fc;
  --fa-paper: #eff1f5;
}
.dark .feature-art,
.dark .feature-icon {
  --fa-line: #f1ebfe;
  --fa-deep: #581fb3;
  --fa-accent: #a572f5;
  --fa-spark: #7f3ef1;
  --fa-tint: #3a2a5e;
  --fa-paper: #2a2d3a;
}

.fa-stroke {
  fill: none;
  stroke: var(--fa-line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fa-stroke--accent { stroke: var(--fa-accent); }
/* Fills come after .fa-stroke so an element carrying both keeps its fill. */
.fa-paper { fill: var(--fa-paper); }
.fa-tint { fill: var(--fa-tint); }
.fa-accent { fill: var(--fa-accent); }
.fa-deep { fill: var(--fa-deep); }
.fa-spark { fill: var(--fa-spark); }
/* The barcode scan line is the one mark not in the source; it only exists
   while it moves, so a still picture is exactly the designer's. */
.fa-scan { fill: none; stroke: var(--fa-accent); stroke-width: 2; stroke-linecap: round; opacity: 0; }

.feature-art { display: block; width: 100%; height: auto; margin-inline: auto; overflow: visible; }
.feature-art--sm { max-width: 15rem; }
.feature-art--md { max-width: 22rem; }
.feature-art--lg { max-width: 30rem; }
.feature-icon { display: block; width: 1.5rem; height: 1.5rem; }

/* --- Motion. Slow, small and out of phase (--d), so four pictures on one
   screen read as alive rather than busy. Transforms are on the element's
   own box; the pie wedge alone turns about the dial's centre. --- */
@media (prefers-reduced-motion: no-preference) {
  .feature-art :is(.fa-bob, .fa-pulse, .fa-grow, .fa-nudge, .fa-twinkle, .fa-type, .fa-tag, .fa-code, .fa-scan) {
    transform-box: fill-box;
    animation-delay: var(--d, 0s);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }
  .feature-art .fa-bob { animation-name: fa-bob; animation-duration: 4.2s; }
  .feature-art .fa-pulse { transform-origin: center; animation-name: fa-pulse; animation-duration: 3.2s; }
  .feature-art .fa-grow { transform-origin: bottom; animation-name: fa-grow; animation-duration: 3.6s; }
  .feature-art .fa-nudge { animation-name: fa-nudge; animation-duration: 2.4s; }
  .feature-art .fa-twinkle { transform-origin: center; animation-name: fa-twinkle; animation-duration: 2.8s; }
  .feature-art .fa-type { transform-origin: left; animation-name: fa-type; animation-duration: 4.8s; }
  .feature-art .fa-tag { animation-name: fa-tag; animation-duration: 3s; }
  .feature-art .fa-code { animation-name: fa-code; animation-duration: 2.6s; }
  .feature-art .fa-code--r { animation-name: fa-code-r; }
  .feature-art .fa-scan { animation-name: fa-scan; animation-duration: 3.4s; animation-timing-function: linear; }
  .feature-art .fa-spin {
    transform-box: view-box;
    transform-origin: 181px 112px;
    animation: fa-spin 9s linear infinite;
  }
  /* 72 is a multiple of both dash cycles in the set (4+5 and 4+4), so the
     loop has no visible seam. */
  .feature-art .fa-flow { animation: fa-flow 6s linear infinite; }

  /* Outlines draw in once when the card scrolls into view (main.js adds
     .is-visible to the nearest [data-reveal]); paths only, because
     pathLength on <rect>/<circle> is not reliable everywhere. */
  .js-reveal-ready [data-reveal] .feature-art .fa-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js-reveal-ready [data-reveal].is-visible .feature-art .fa-draw { animation: fa-draw 1.2s ease-out 0.15s forwards; }
}

@keyframes fa-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes fa-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes fa-grow { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }
@keyframes fa-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes fa-twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(0.72) rotate(45deg); } }
@keyframes fa-type { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fa-tag { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes fa-code { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-2px); } }
@keyframes fa-code-r { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
@keyframes fa-scan {
  0% { transform: translateX(0); opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { transform: translateX(46px); opacity: 0; }
}
@keyframes fa-spin { to { transform: rotate(360deg); } }
@keyframes fa-flow { to { stroke-dashoffset: -72; } }
@keyframes fa-draw { to { stroke-dashoffset: 0; } }

/* ---- fragment: features.css ---- */
/* ---------- Features page ---------- */

/* Alternating feature blocks */
.features-block { padding-block: 4rem; }
@media (min-width: 640px) {
  .features-block { padding-block: 6rem; }
}
.features-block--alt { background: var(--surface); }
.dark .features-block--alt { background: rgb(30 41 59 / 0.3); }
.features-block__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .features-block__grid { grid-template-columns: repeat(2, 1fr); }
  .features-block__grid--reversed .features-block__text { order: 2; }
  .features-block__grid--reversed .features-block__figure { order: 1; }
}
.features-block__icon {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-xl);
  color: #fff;
}
/* The four feature blocks carry the two-tone line icon from the library set
   (partials/feature-icon.php) on an outlined tile, not a filled one. */
.features-block__icon--art { border: 1px solid var(--border); background: transparent; }
.features-block__icon--art .feature-icon { width: 1.75rem; height: 1.75rem; }
.features-block__title {
  font-family: var(--erm-font-display);
  margin-block-start: 1.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
.features-block__description {
  margin-block-start: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .features-block__description { color: var(--slate-400); }
.features-block__benefits {
  margin-block-start: 1.5rem;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.features-block__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-700);
}
.dark .features-block__benefits li { color: var(--slate-300); }
.features-block__check {
  flex-shrink: 0;
  margin-block-start: 0.125rem;
  color: var(--primary-500);
}
.features-block__more {
  margin-block-start: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-700);
}
.dark .features-block__more { color: var(--primary-300); }
.features-block__more:hover { text-decoration: underline; }
.features-block__panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  padding: 2rem;
}
.dark .features-block__panel { background: rgb(30 41 59 / 0.5); }
/* Feature pictures stand on the section itself: no panel, no ground. */
.features-block__art { display: flex; align-items: center; justify-content: center; padding-block: 1rem; }

/* --- Multilingual block: language tiles in the figure panel --- */
.features-block__icon--langs { background: linear-gradient(to bottom right, var(--blue-600), #a98efe); }
.features-langs__panel { padding: 1.5rem; }
.features-langs__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.features-langs__list {
  margin-block-start: 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) { .features-langs__list { grid-template-columns: repeat(3, 1fr); } }
.features-langs__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--fg-strong);
}
.dark .features-langs__item { background: rgb(255 255 255 / 0.04); }
.features-langs__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  inline-size: 2rem;
  block-size: 1.5rem;
  border-radius: var(--erm-radius-sm);
  background: rgb(127 62 241 / 0.1);
  color: var(--blue-600);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.dark .features-langs__code { background: rgb(201 189 255 / 0.14); color: #dad3ff; }
.features-langs__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.features-langs__note { margin-block-start: 1rem; font-size: 0.8125rem; color: var(--muted); }

/* --- Enterprise block: centred head, five-card bento (first spans two), note + CTA --- */
.features-enterprise__head { max-width: 44rem; margin-inline: auto; text-align: center; }
.features-enterprise__head .features-block__title { margin-block-start: 1rem; }
.features-enterprise__bento {
  margin-block-start: 3rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .features-enterprise__bento { grid-template-columns: repeat(2, 1fr); }
  .features-enterprise__card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .features-enterprise__bento { grid-template-columns: repeat(3, 1fr); }
  .features-enterprise__card:first-child { grid-column: span 2; }
}
.features-enterprise__card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  transition: border-color 0.2s ease;
}
.features-enterprise__card:hover { border-color: var(--slate-300); }
.dark .features-enterprise__card { background: rgb(30 41 59 / 0.5); }
.dark .features-enterprise__card:hover { border-color: rgb(255 255 255 / 0.2); }
.features-enterprise__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: var(--erm-radius-md);
  background: rgb(127 62 241 / 0.1);
  color: var(--blue-600);
}
.features-enterprise__card:nth-child(3n+2) .features-enterprise__icon { background: rgb(240 160 32 / 0.14); color: var(--amber-600, #b45309); }
.features-enterprise__card:nth-child(3n) .features-enterprise__icon { background: rgb(35 196 143 / 0.14); color: #128a63; }
.dark .features-enterprise__icon { background: rgb(201 189 255 / 0.14); color: #dad3ff; }
.dark .features-enterprise__card:nth-child(3n+2) .features-enterprise__icon { background: rgb(255 196 102 / 0.14); color: var(--amber-400, #ffc466); }
.dark .features-enterprise__card:nth-child(3n) .features-enterprise__icon { background: rgb(35 196 143 / 0.16); color: #6fe3bd; }
.features-enterprise__card-title {
  margin-block-start: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.features-enterprise__card-desc {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted-strong);
}
.features-enterprise__foot {
  margin-block-start: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  text-align: center;
}
.features-enterprise__note { font-size: 0.875rem; color: var(--muted); }

/* Bottom CTA */
.features-cta {
  background: var(--primary-700);
  padding-block: 5rem;
}
.features-cta__content {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.features-cta__title {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
}
.features-cta__actions { margin-block-start: 2rem; }

/* ---------- Inline SVG illustrations (shared) ---------- */

.ill {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin-inline: auto;
}
.ill text {
  font-family: var(--erm-font-sans);
}

/* Entry animations — only with JS reveal active + motion allowed.
   Default state (no JS / reduced motion) is the finished illustration. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal-ready [data-reveal] .ill-pop {
    opacity: 0;
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
  }
  .js-reveal-ready [data-reveal].is-visible .ill-pop {
    animation: ill-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--ill-delay, 0s);
  }
  .js-reveal-ready [data-reveal] .ill-slide {
    opacity: 0;
    transform: translateX(-60px);
  }
  .js-reveal-ready [data-reveal].is-visible .ill-slide {
    animation: ill-slide 0.6s ease-out forwards;
    animation-delay: var(--ill-delay, 0s);
  }
}

@keyframes ill-pop {
  to { opacity: 1; transform: scale(1); }
}
@keyframes ill-slide {
  to { opacity: 1; transform: translateX(0); }
}
@keyframes ill-grow {
  to { transform: scaleY(1); }
}
@keyframes ill-fade {
  to { opacity: 1; }
}

/* ---- fragment: footer.css ---- */
/* footer — registered company details under the copyright line */
.footer__legal-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 640px) {
  .footer__legal-info { align-items: start; }
}
.footer__registration { font-size: 0.8125rem; color: var(--muted); }

/* LinkedIn under the tagline: a round icon button, the same hover tint as
   the header's icon buttons. */
.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.75rem;
  margin-inline-start: -0.5rem;
  border-radius: var(--erm-radius-full);
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.footer__social:hover { background: rgb(11 17 32 / 0.06); color: var(--fg-strong); }
.dark .footer__social:hover { background: rgb(255 255 255 / 0.08); color: #fff; }

/* ---- fragment: forms.css ---- */
/* ---- Forms (contact + sales) ---- */

/* Shared field primitives */
.field { margin-block-start: 1rem; }
.field:first-child,
.wizard__step-header + .field { margin-block-start: 0; }
.form__row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__row .field { margin-block-start: 1rem; }
@media (min-width: 640px) { .form__row .field + .field { margin-block-start: 1rem; } }
/* Submit row: clear air above the button, full width on phones. */
.form__actions { margin-block-start: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 639px) { .form__actions .btn { flex: 1 1 100%; } }

.field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-strong);
}
.field__label-icon { vertical-align: -0.125em; margin-inline-end: 0.375rem; color: var(--muted); }
.field__req { color: #dc2626; }
.dark .field__req { color: #f87171; }

.input,
.select,
.textarea {
  margin-block-start: 0.25rem;
  display: block;
  inline-size: 100%;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-md);
  background: var(--card-bg);
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--fg-strong);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.dark .input,
.dark .select,
.dark .textarea { background: var(--surface); }
.input::placeholder,
.textarea::placeholder { color: var(--muted); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgb(127 62 241 / 0.18);
}
.dark .input:focus,
.dark .select:focus,
.dark .textarea:focus { background: var(--surface); box-shadow: 0 0 0 3px rgb(201 189 255 / 0.22); }
.textarea { resize: vertical; min-block-size: 8rem; }
/* Names, organisations, subjects: first letter of every word — JS title-cases
   the value on blur and the server does the same, this is the live hint. */
.input[data-capitalize] { text-transform: capitalize; }
.input[data-capitalize]::placeholder { text-transform: none; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23686d85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-inline-end: 2.25rem;
}
[dir="rtl"] .select { background-position: left 0.6rem center; }
/* Once select.js has built the custom control the native element only
   carries the value for the form post. */
.select.is-enhanced { display: none !important; }

/* --- Custom select (select.js): button + Motion-animated listbox --- */
.erm-select { position: relative; margin-block-start: 0.25rem; }
.erm-select__btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  inline-size: 100%;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-md);
  background: var(--card-bg);
  padding: 0.625rem 0.875rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--fg-strong);
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dark .erm-select__btn { background: var(--surface); }
.erm-select__btn:hover { border-color: var(--slate-300); }
.dark .erm-select__btn:hover { border-color: rgb(255 255 255 / 0.2); }
.erm-select__btn:focus-visible,
.erm-select.is-open .erm-select__btn { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgb(127 62 241 / 0.18); }
.dark .erm-select__btn:focus-visible,
.dark .erm-select.is-open .erm-select__btn { box-shadow: 0 0 0 3px rgb(201 189 255 / 0.22); }
.field.is-invalid .erm-select__btn { border-color: #ef4444; }
.erm-select__value { flex: 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erm-select__value.is-placeholder { color: var(--muted); }
.erm-select__flag { font-size: 1.125rem; line-height: 1; flex-shrink: 0; }
.erm-select__chevron { flex-shrink: 0; width: 1rem; height: 1rem; color: var(--muted); transition: transform 0.2s ease; }
.erm-select.is-open .erm-select__chevron { transform: rotate(180deg); }
.erm-select__panel {
  position: absolute;
  z-index: 60;
  inset-inline: 0;
  top: calc(100% + 0.375rem);
  min-inline-size: 100%;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--panel-bg);
  padding: 0.375rem;
  transform-origin: top;
  will-change: transform, opacity;
}
.erm-select__panel[hidden] { display: none; }
.erm-select__search { padding: 0.125rem 0.125rem 0.375rem; border-block-end: 1px solid var(--border-soft); margin-block-end: 0.25rem; }
.erm-select__input {
  inline-size: 100%;
  border: 0;
  border-radius: var(--erm-radius-sm);
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--fg-strong);
}
.erm-select__input:focus { outline: none; box-shadow: 0 0 0 2px rgb(127 62 241 / 0.25); }
.erm-select__list {
  max-block-size: 15rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0;
  padding: 0;
}
.erm-select__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: var(--erm-radius-sm);
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  color: var(--fg);
  cursor: pointer;
}
.erm-select__option[hidden] { display: none; }
.erm-select__option.is-active { background: var(--surface-hover); color: var(--fg-strong); }
.erm-select__option[aria-selected="true"] { background: rgb(127 62 241 / 0.1); color: var(--blue-700); font-weight: 500; }
.dark .erm-select__option[aria-selected="true"] { background: rgb(201 189 255 / 0.16); color: #dad3ff; }
.erm-select__option-sub { margin-inline-start: auto; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.erm-select__empty { padding: 0.75rem 0.625rem; font-size: 0.8125rem; color: var(--muted); }
/* Compact variant for the dial-code control: flag + code only on the button */
.erm-select--dial { margin-block-start: 0; flex: 0 0 auto; inline-size: auto; }
.erm-select--dial .erm-select__btn { inline-size: auto; padding-inline: 0.75rem; }
.erm-select--dial .erm-select__panel { inline-size: 18rem; inset-inline: 0 auto; }
[dir="rtl"] .erm-select--dial .erm-select__panel { inset-inline: auto 0; }

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea {
  border-color: #ef4444;
}
.field.is-invalid .input:focus,
.field.is-invalid .select:focus,
.field.is-invalid .textarea:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.field__error {
  margin-block-start: 0.375rem;
  font-size: 0.75rem;
  color: #dc2626;
}
.dark .field__error { color: #f87171; }
.field__extra { margin-block-start: 0.75rem; }

/* Phone: dial-code select + tel input (libphonenumber formats as you type) */
.phone-combo {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-block-start: 0.25rem;
}
.phone-combo .select,
.phone-combo .input { margin-block-start: 0; }
.phone-combo__code { inline-size: auto; flex: 0 0 auto; }
.phone-combo__number { flex: 1 1 auto; min-inline-size: 0; font-variant-numeric: tabular-nums; }
.field__hint { margin-block-start: 0.375rem; font-size: 0.75rem; color: var(--muted); }
.field__hint a { color: var(--blue-600); font-weight: 500; }
.dark .field__hint a { color: var(--blue-400); }
.field__hint--ok { color: #128a63; }
.dark .field__hint--ok { color: #6fe3bd; }

/* Agreement: a drawn checkbox (the native control is visually hidden but
   stays focusable and clickable through the label). */
.checkbox-field { margin-block-start: 1.25rem; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.checkbox:hover { border-color: var(--slate-300); }
.dark .checkbox:hover { border-color: rgb(255 255 255 / 0.2); }
.checkbox:has(input:checked) { border-color: var(--blue-500); background: rgb(127 62 241 / 0.05); }
.dark .checkbox:has(input:checked) { border-color: #c9bdff; background: rgb(201 189 255 / 0.08); }
.checkbox:has(input:focus-visible) { box-shadow: 0 0 0 3px rgb(127 62 241 / 0.18); }
.field.is-invalid .checkbox { border-color: #ef4444; }
.checkbox input[type="checkbox"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.checkbox__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  inline-size: 1.375rem;
  block-size: 1.375rem;
  margin-block-start: 0.0625rem;
  border: 1.5px solid var(--slate-300);
  border-radius: 0.4375rem;
  background: var(--card-bg);
  color: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.dark .checkbox__box { border-color: rgb(255 255 255 / 0.28); background: var(--surface-hover); }
.checkbox__box .icon { width: 0.875rem; height: 0.875rem; stroke-width: 3; opacity: 0; transform: scale(0.5); transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.checkbox input:checked + .checkbox__box { background: var(--blue-600); border-color: var(--blue-600); }
.dark .checkbox input:checked + .checkbox__box { background: #c9bdff; border-color: #c9bdff; color: var(--ink); }
.checkbox input:checked + .checkbox__box .icon { opacity: 1; transform: scale(1); }
.checkbox__label { font-size: 0.875rem; line-height: 1.5; color: var(--muted-strong); }
.checkbox__label a { color: var(--fg-strong); font-weight: 500; text-decoration: underline; text-decoration-color: var(--slate-300); text-underline-offset: 0.2em; }
.checkbox__label a:hover { color: var(--blue-600); text-decoration-color: currentColor; }
.dark .checkbox__label a:hover { color: var(--blue-400); }

/* Flash / fetch banners */
.form-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-block: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}
.form-banner--error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c; /* red-600 was 4.41:1 on red-50 */
}
.dark .form-banner--error {
  border-color: #7f1d1d;
  background: rgba(127, 29, 29, 0.2);
  color: #f87171;
}

/* Success card */
.form-success {
  border: 1px solid #bbf7d0;
  border-radius: var(--erm-radius-2xl);
  background: #f0fdf4;
  padding: 1.5rem;
  text-align: center;
  color: #166534;
  box-shadow: none;
}
.form-success--lg { padding: 2.5rem; }
.form-success__icon {
  margin-inline: auto;
  margin-block-end: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border-radius: var(--erm-radius-full);
  background: #dcfce7;
  color: #16a34a;
}
.form-success--lg .form-success__icon { inline-size: 3.5rem; block-size: 3.5rem; margin-block-end: 1rem; }
.form-success__title { font-size: 1.125rem; font-weight: 600; margin-block-end: 0.5rem; }
.form-success p { font-size: 0.875rem; }
.dark .form-success {
  border-color: #166534;
  background: #052e16;
  color: #86efac;
}
.dark .form-success__icon { background: #14532d; color: #4ade80; }

/* ---- Contact page ---- */
.contact-page__header {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.contact-page__title {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
.contact-page__subtitle {
  margin-block-start: 1rem;
  font-size: 1.125rem;
  color: var(--muted-strong);
}
.contact-grid {
  margin-block-start: 2rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) { .contact-grid { margin-block-start: 3rem; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
/* Phones: the page header sits closer to the bar and the form. */
@media (max-width: 767px) {
  .contact-page.section { padding-block: 2.5rem 4rem; }
  .contact-page__subtitle { margin-block-start: 0.5rem; font-size: 1rem; }
}

.contact-info { display: grid; gap: 2rem; align-content: start; }
.contact-info__title {
  font-family: var(--erm-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.contact-info__body {
  margin-block-start: 1rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-strong);
}
.contact-info__company { font-weight: 500; color: var(--fg-strong); }
.contact-info__link { transition: color 0.15s ease; }
.contact-info__link:hover { color: var(--blue-600); }
.dark .contact-info__link:hover { color: var(--blue-400); }
.contact-info__hours { font-size: 0.75rem; color: var(--muted); }
.contact-info__label { color: var(--muted); }
.contact-map {
  overflow: hidden;
  border-radius: var(--erm-radius-lg);
  border: 1px solid var(--border);
}
.contact-map iframe { display: block; inline-size: 100%; }

/* Obfuscated email: reversed server-side, flipped back visually via bidi
   override (readable no-JS fallback); JS swaps in a real mailto link. */
.obf-email__text { unicode-bidi: bidi-override; direction: rtl; }
.obf-email a { transition: color 0.15s ease; }
.obf-email a:hover { color: var(--blue-600); }
.dark .obf-email a:hover { color: var(--blue-400); }

/* ---- Sales page ---- */
.sales-hero {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.sales-hero__badge { margin-block-end: 1.25rem; }
.sales-hero__title {
  font-family: var(--erm-font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
@media (min-width: 640px) { .sales-hero__title { font-size: 3rem; } }
.sales-hero__subtitle {
  margin-block-start: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.sales-grid {
  margin-inline: auto;
  margin-block-start: 3.5rem;
  display: grid;
  max-width: 64rem;
  align-items: start;
  gap: 3rem;
}
@media (min-width: 1024px) { .sales-grid { grid-template-columns: 1fr 320px; } }

/* Wizard */
.wizard { padding: 1.5rem; }
@media (min-width: 640px) { .wizard { padding: 2rem; } }
.wizard__step {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}
.wizard__step + .wizard__step { margin-block-start: 2.5rem; }
/* JS-enhanced: one step at a time */
.wizard--js .wizard__step { display: none; }
.wizard--js .wizard__step.is-active { display: block; }
.wizard--js .wizard__step + .wizard__step { margin-block-start: 0; }

.wizard__step-header {
  margin-block-end: 1.5rem;
  border-block-end: 1px solid var(--border-soft);
  padding-block-end: 1.25rem;
}
.wizard__step-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg-strong);
}
.wizard__step-header p {
  margin-block-start: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Progress indicator (hidden without JS) */
.wizard__progress { display: none; }
.wizard--js .wizard__progress {
  display: flex;
  align-items: flex-start;
  margin-block-end: 2rem;
}
.wizard__progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-align: center;
}
.wizard__progress-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: var(--erm-radius-full);
  border: 2px solid var(--border);
  background: var(--card-bg);
  color: var(--muted);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.wizard__progress-check { display: none; }
.wizard__progress-item.is-active .wizard__progress-dot {
  border-color: var(--blue-600);
  background: rgba(150, 112, 249, 0.1);
  color: var(--blue-600);
}
.wizard__progress-item.is-done .wizard__progress-dot {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: #fff;
}
.wizard__progress-item.is-done .wizard__progress-icon { display: none; }
.wizard__progress-item.is-done .wizard__progress-check { display: block; }
.wizard__progress-label {
  display: none;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted);
}
@media (min-width: 640px) { .wizard__progress-label { display: block; } }
.wizard__progress-item.is-active .wizard__progress-label,
.wizard__progress-item.is-done .wizard__progress-label { color: var(--blue-600); }
.dark .wizard__progress-item.is-active .wizard__progress-label,
.dark .wizard__progress-item.is-done .wizard__progress-label { color: var(--blue-400); }
.wizard__progress-bar {
  flex: 1 1 auto;
  block-size: 2px;
  margin-inline: 0.5rem;
  margin-block-start: 1.125rem;
  border-radius: var(--erm-radius-full);
  background: var(--border);
  transition: background-color 0.15s ease;
}
.wizard__progress-bar.is-done { background: var(--blue-600); }

/* Radio cards (module selection modes) */
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  inline-size: 100%;
  margin-block-start: 1rem;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--card-bg);
  padding: 1rem;
  text-align: start;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.radio-card:hover { border-color: var(--border-soft); background: var(--surface-hover); }
.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-card__dot {
  margin-block-start: 0.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  flex-shrink: 0;
  border-radius: var(--erm-radius-full);
  border: 2px solid var(--border);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.radio-card__dot::after {
  content: "";
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-radius: var(--erm-radius-full);
  background: #fff;
  opacity: 0;
}
.radio-card:has(input:checked) { border-color: var(--blue-500); background: rgba(150, 112, 249, 0.06); }
.radio-card:has(input:checked) .radio-card__dot { border-color: var(--blue-600); background: var(--blue-600); }
.radio-card:has(input:checked) .radio-card__dot::after { opacity: 1; }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.radio-card__body { flex: 1 1 auto; min-inline-size: 0; display: block; }
.radio-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.radio-card__icon { color: var(--muted); }
.radio-card:has(> input:checked) .radio-card__icon { color: var(--blue-600); }
.radio-card__title { font-size: 0.875rem; font-weight: 600; color: var(--fg-strong); }
.radio-card__badge {
  border-radius: var(--erm-radius-full);
  background: rgba(150, 112, 249, 0.12);
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--blue-600);
}
.dark .radio-card__badge { color: var(--blue-400); }
.radio-card__subtitle {
  display: block;
  margin-block-start: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}
.radio-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-block-start: 0.75rem;
}
.module-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--erm-radius-full);
  background: rgba(150, 112, 249, 0.12);
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--blue-600);
}
.dark .module-pill { color: var(--blue-400); }

/* Promo banner */
.wizard__promo {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-block-start: 1rem;
  border: 1px solid rgba(150, 112, 249, 0.35);
  border-radius: var(--erm-radius-md);
  background: rgba(150, 112, 249, 0.08);
  padding: 0.75rem;
  color: var(--blue-600);
}
.dark .wizard__promo { color: var(--blue-400); }
.wizard__promo p { font-size: 0.75rem; line-height: 1.6; }

/* Module checkbox tiles */
.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-block-start: 0.75rem;
}
/* Three tiles (ErmDesk hidden): the first spans the row — no empty cell. */
.module-grid > .module-tile:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.module-tile {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-md);
  background: var(--card-bg);
  padding: 0.625rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.module-tile:hover { border-color: var(--border-soft); }
.module-tile input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.module-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  flex-shrink: 0;
  border-radius: var(--erm-radius-sm);
  background: var(--surface);
  color: var(--muted);
}
.module-tile__label { font-size: 0.75rem; font-weight: 500; color: var(--muted-strong); }
.module-tile__check { margin-inline-start: auto; color: var(--blue-600); opacity: 0; }
.module-tile:has(input:checked) {
  border-color: var(--blue-500);
  background: rgba(150, 112, 249, 0.08);
}
.module-tile:has(input:checked) .module-tile__icon { background: rgba(150, 112, 249, 0.12); color: var(--blue-600); }
.module-tile:has(input:checked) .module-tile__label { color: var(--blue-600); }
.dark .module-tile:has(input:checked) .module-tile__label { color: var(--blue-400); }
.module-tile:has(input:checked) .module-tile__check { opacity: 1; }
.module-tile:has(input:focus-visible) { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* Wizard nav */
.wizard__nav {
  margin-block-start: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-block-start: 1px solid var(--border);
  padding-block-start: 1.5rem;
}
.wizard__nav-spacer { flex: 1 1 auto; }
.wizard__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.wizard__back:hover { color: var(--fg-strong); }
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* Trust sidebar */
.trust-sidebar { display: grid; gap: 2rem; align-content: start; }
@media (min-width: 1024px) { .trust-sidebar { position: sticky; inset-block-start: 7rem; } }
.trust-sidebar__illustration { display: flex; justify-content: center; }
.trust-sidebar__metrics { display: grid; gap: 1rem; }
.trust-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--surface);
  padding: 1rem;
  transition: border-color 0.15s ease;
}
.trust-card:hover { border-color: var(--border-soft); }
.trust-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  flex-shrink: 0;
  border-radius: var(--erm-radius-md);
  background: rgba(150, 112, 249, 0.1);
  color: var(--blue-600);
}
.dark .trust-card__icon { color: var(--blue-400); }
.trust-card__value { font-size: 0.875rem; font-weight: 700; color: var(--fg-strong); }
.trust-card__label { font-size: 0.75rem; color: var(--muted); }
.trust-quote {
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--card-bg);
  padding: 1.25rem;
}
.trust-quote__mark { color: var(--muted); }
.trust-quote__text {
  margin-block-start: 0.75rem;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--muted-strong);
}
.trust-quote__meta {
  margin-block-start: 0.75rem;
  border-block-start: 1px solid var(--border-soft);
  padding-block-start: 0.75rem;
}
.trust-quote__author { font-size: 0.875rem; font-weight: 500; color: var(--fg-strong); }
.trust-quote__role { font-size: 0.75rem; color: var(--muted); }

/* Contact illustration (static port; gentle motion via CSS) */
.contact-illustration__panel { fill: var(--card-bg); stroke: var(--border); }
.contact-illustration__stroke { stroke: var(--border); }
.contact-illustration__line { fill: var(--border-soft); }
.contact-illustration__plane-top { fill: rgba(150, 112, 249, 0.8); }
.contact-illustration__plane-bottom { fill: rgba(130, 78, 237, 0.6); }
.contact-illustration__trail { stroke: rgba(175, 151, 255, 0.3); }
.contact-illustration__bubble { fill: var(--surface); stroke: var(--border); }
.contact-illustration__bubble-tail { fill: var(--surface); }
.contact-illustration__dot-muted { fill: var(--muted); opacity: 0.4; }
.contact-illustration__at { fill: var(--muted); opacity: 0.3; }
.contact-illustration__badge { fill: var(--blue-500); }
.contact-illustration__badge-num { fill: #fff; }
.contact-illustration__plane { animation: contact-plane-float 3s ease-in-out infinite; }
.contact-illustration__pulse { fill: var(--muted); opacity: 0.15; animation: contact-dot-pulse 2s ease-in-out infinite; }
.contact-illustration__pulse--slow { animation-duration: 2.5s; }
.contact-illustration__pulse--slower { animation-duration: 3s; }
@keyframes contact-plane-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes contact-dot-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-illustration__plane,
  .contact-illustration__pulse { animation: none; }
}

/* Legal modal (<dialog>) */
/* Centred in the viewport (explicit, so no ancestor rule can pin it to a
   corner) and opened with a scale + fade: @starting-style for the entry,
   allow-discrete so the exit can play before display flips. */
.legal-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  inline-size: min(100% - 2rem, 42rem);
  max-block-size: min(85dvh, 46rem);
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-2xl);
  background: var(--card-bg);
  color: var(--fg);
  padding: 0;
  flex-direction: column;
  transform: scale(0.94);
  opacity: 0;
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    display 0.26s allow-discrete,
    overlay 0.26s allow-discrete;
}
.legal-dialog[open] { display: flex; transform: none; opacity: 1; }
@starting-style {
  .legal-dialog[open] { transform: scale(0.94); opacity: 0; }
}
.legal-dialog::backdrop {
  background: rgb(11 17 32 / 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.26s ease, display 0.26s allow-discrete, overlay 0.26s allow-discrete;
}
.legal-dialog[open]::backdrop { opacity: 1; }
@starting-style {
  .legal-dialog[open]::backdrop { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-dialog, .legal-dialog::backdrop { transition: none; }
}
.legal-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  border-block-end: 1px solid var(--border);
  padding: 0.875rem 1rem 0.875rem 1.5rem;
}
.legal-dialog__title {
  font-family: var(--erm-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.legal-dialog__close { cursor: pointer; }
.legal-dialog__footer { flex-shrink: 0; }
.legal-dialog__body {
  max-block-size: 60vh;
  overflow-y: auto;
  padding: 1.5rem;
}
.legal-dialog__updated {
  margin-block-end: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.legal-dialog__section + .legal-dialog__section { margin-block-start: 2rem; }
.legal-dialog__section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.legal-dialog__section p {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.legal-dialog__footer {
  border-block-start: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

/* ---- fragment: header.css ---- */
/* ============================================================
   Header: transparent at the top of the page, glass once scrolled;
   Motion-animated mega menus; navigation sheet; search modal.
   Overrides the component rules in section 04 (later = wins).
   ============================================================ */

/* --- Skip link: off-canvas until it receives keyboard focus --- */
.skip-link {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  border-radius: var(--erm-radius-md);
  background: var(--blue-600, #7f3ef1);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: none; outline: 2px solid #fff; outline-offset: 2px; }
.site__main:focus { outline: none; }

/* At the top the bar is part of the page: no fill, no line, no blur. It is
   fixed (out of flow), so the first section runs underneath it: .site__main
   pads by --header-height for pages whose first section sits on the canvas,
   and heroes with their own background (home, about) pull up by the same
   amount in their fragments so the image / aurora reaches the top edge. */
.header {
  --hk: 1; /* 1 = top of page (roomy), 0 = scrolled (tight); header.js tweens it */
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  background: transparent;
  border-block-end: 1px solid transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, --hk 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
/* With Motion driving --hk frame by frame the CSS transition must not fight it. */
.header.js-motion { transition: background-color 0.25s ease, border-color 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .header { transition: none; } }
.site__main { padding-block-start: var(--header-height); }
html { scroll-padding-block-start: calc(var(--header-height) + 1rem); }

/* --- Glass once scrolled; --hk goes 1 → 0 at the same time, so the bar
   tightens from 56 to 40 px and every element in it steps down together.
   Nothing hides; the links only ever disappear below the desktop
   breakpoint. --- */
.header.is-scrolled {
  background: rgb(238 240 244 / 0.72);
  border-block-end-color: rgb(11 17 32 / 0.06);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.dark .header.is-scrolled {
  background: rgb(15 20 27 / 0.68);
  border-block-end-color: rgb(255 255 255 / 0.06);
}

/* --- Desktop links: the pill is one element behind the links; header.js
   springs it (Motion) to the hovered, focused or open-menu link, so it reads
   as a single highlight that follows the pointer. --- */
.header__desktop-nav { position: relative; }
.nav-pill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 0;
  border-radius: var(--erm-radius-full);
  background: rgb(11 17 32 / 0.06);
  opacity: 0;
  pointer-events: none;
  will-change: transform, width, opacity;
}
.dark .nav-pill { background: rgb(255 255 255 / 0.08); }

/* Small amber tag next to a menu item title (Careers → Hiring). */
.nav-badge {
  display: inline-block;
  vertical-align: 0.0625rem;
  margin-inline-start: 0.375rem;
  padding: 0.0625rem 0.4375rem;
  border-radius: var(--erm-radius-full);
  background: rgb(240 160 32 / 0.16);
  color: var(--amber-600, #b45309);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}
.dark .nav-badge { background: rgb(255 196 102 / 0.16); color: var(--amber-400, #ffc466); }

/* --- Logo: optical lift (2026-09-27). The header mark is the lockup, and its
   ink box is top-heavy — the l, the b and the i-dot push the box up while
   "ermlib" has no descender to balance it, so centring the box drops the
   wordmark's x-height below the nav's. Measured at 4× on the rendered page:
   at a 22 px logo the x-height centres were logo 30.62 vs nav 28.38, i.e.
   2.25 px low. Lift by that share of the height, not a fixed 2.25 px, so the
   correction still holds once --hk tightens the bar to an 18 px logo. Scoped
   to .header__nav: the sheet head reuses .header__logo but shows the square
   mark, which is centred as drawn and must not move. --- */
.header__nav .header__logo .logo-img {
  --logo-h: calc(18px + 4px * var(--hk, 1));
  height: var(--logo-h);
  transform: translateY(calc(var(--logo-h) * -0.102));
}

/* --- Action cluster: icon buttons 34 → 30 px, glyphs 18 → 16 px, sign-in
   13 → 12 px, all on --hk. --- */
.header__actions { display: flex; align-items: center; gap: 0.125rem; }
.header__actions .icon-btn {
  width: calc(1.875rem + 0.25rem * var(--hk, 1));
  height: calc(1.875rem + 0.25rem * var(--hk, 1));
  transition: background-color 0.15s ease, color 0.15s ease;
}
/* Same ink tint as .nav-pill so the whole bar shares one hover colour. */
.header__actions .icon-btn:hover,
.header__actions .icon-btn[aria-expanded="true"] { background: rgb(11 17 32 / 0.06); }
.dark .header__actions .icon-btn:hover,
.dark .header__actions .icon-btn[aria-expanded="true"] { background: rgb(255 255 255 / 0.08); }
.header__actions .icon-btn .icon {
  width: calc(1rem + 0.125rem * var(--hk, 1));
  height: calc(1rem + 0.125rem * var(--hk, 1));
  transition: none;
}
.header__actions .btn { margin-inline-start: 0.5rem; }
.header__actions .btn--sm {
  padding: calc(0.3125rem + 0.0625rem * var(--hk, 1)) calc(0.625rem + 0.1875rem * var(--hk, 1));
  font-size: calc(0.75rem + 0.0625rem * var(--hk, 1));
}
.header__desktop-only { display: none; }
.header__menu-btn { display: inline-flex; cursor: pointer; }
@media (min-width: 1024px) {
  .header__desktop-only { display: inline-flex; }
  .header__menu-btn { display: none; }
}
.header__search-btn { cursor: pointer; }
.locale-switcher__btn--icon { cursor: pointer; }

/* --- Mega menu: the panel is a plain block; header.js animates it with
   Motion (fade + rise on open, a FLIP slide when the pointer moves from one
   trigger to the other, so the panel appears to follow the cursor). --- */
.mega-menu__panel {
  display: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
  transform-origin: top;
  will-change: transform, opacity;
}
.mega-menu.is-open .mega-menu__panel { display: block; }
/* Three items in the two-column grid: the first spans the row so there is no
   empty cell (kept for any three-entry group that is not marked wide). */
.mega-menu__grid > .mega-menu__item:first-child:nth-last-child(3) { grid-column: 1 / -1; }
/* Modules (2026-09-23): three blocks side by side — icon tile above the
   title and description — in a panel widened to fit them. */
.mega-menu__panel--wide { width: 46rem; }
.mega-menu__panel--wide .mega-menu__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.mega-menu__panel--wide .mega-menu__grid > .mega-menu__item:first-child:nth-last-child(3) { grid-column: auto; }
.mega-menu__panel--wide .mega-menu__item {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem;
  border-radius: var(--erm-radius-lg);
}
.mega-menu__panel--wide .mega-menu__icon { width: 2.5rem; height: 2.5rem; }
.mega-menu__panel--wide .mega-menu__item-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mega-menu__panel--wide .mega-menu__item:hover { transform: translateY(-2px); }
[dir="rtl"] .mega-menu__panel--wide .mega-menu__item:hover { transform: translateY(-2px); }
/* Company: three plain rows (no icon tiles) in one column, so the panel is narrow. */
.mega-menu__panel--narrow { width: 17rem; }
.mega-menu__panel--narrow .mega-menu__grid { grid-template-columns: 1fr; }
.mega-menu__panel--narrow .mega-menu__item { padding: 0.625rem 0.75rem; }
.mega-menu__grid { transition: opacity 0.15s ease; }
.mega-menu__item { transition: background-color 0.15s ease, transform 0.15s ease; }
.mega-menu__item:hover { transform: translateX(2px); }
[dir="rtl"] .mega-menu__item:hover { transform: translateX(-2px); }
/* Tinted icon tiles: purple, amber, mint, purple — the three in rotation. */
.mega-menu__item:nth-child(3n+1) .mega-menu__icon { background: rgb(127 62 241 / 0.1); color: var(--blue-600); }
.mega-menu__item:nth-child(3n+2) .mega-menu__icon { background: rgb(240 160 32 / 0.14); color: var(--amber-600); }
.mega-menu__item:nth-child(3n) .mega-menu__icon { background: rgb(35 196 143 / 0.14); color: #128a63; }
.dark .mega-menu__item:nth-child(3n+1) .mega-menu__icon { background: rgb(201 189 255 / 0.14); color: #dad3ff; }
.dark .mega-menu__item:nth-child(3n+2) .mega-menu__icon { background: rgb(255 196 102 / 0.14); color: var(--amber-400); }
.dark .mega-menu__item:nth-child(3n) .mega-menu__icon { background: rgb(35 196 143 / 0.16); color: #6fe3bd; }

/* ============================================================
   Navigation sheet — slides from the inline end (right in LTR,
   left in RTL). Native <dialog>; open/close animate with
   @starting-style + allow-discrete, and simply snap where the
   browser lacks them.
   ============================================================ */
.sheet {
  --sheet-shift: 100%;
  --sheet-dir: 1;
  position: fixed;
  inset-block: 0;
  inset-inline: auto 0;
  margin: 0;
  padding: 0;
  inline-size: min(22rem, 88vw);
  max-inline-size: none;
  block-size: 100dvh;
  max-block-size: none;
  border: 0;
  border-inline-start: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg);
  flex-direction: column;
  transform: translateX(var(--sheet-shift));
  transition:
    transform 0.32s cubic-bezier(0.32, 0.72, 0, 1),
    display 0.32s allow-discrete,
    overlay 0.32s allow-discrete;
}
[dir="rtl"] .sheet { --sheet-shift: -100%; --sheet-dir: -1; }
.sheet[open] { display: flex; transform: none; }
@starting-style {
  .sheet[open] { transform: translateX(var(--sheet-shift)); }
}
.sheet::backdrop {
  background: rgb(11 17 32 / 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.32s ease, display 0.32s allow-discrete, overlay 0.32s allow-discrete;
}
.sheet[open]::backdrop { opacity: 1; }
@starting-style {
  .sheet[open]::backdrop { opacity: 0; }
}
html.sheet-open,
html:has(.sheet[open]) { overflow: hidden; }

/* --- Stacked panels: root, and one sub-panel per group --- */
.sheet__panels { position: relative; flex: 1; min-block-size: 0; overflow: hidden; }
.sheet__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.28s;
}
.sheet__panel--sub {
  transform: translateX(calc(100% * var(--sheet-dir)));
  visibility: hidden;
}
.sheet:not([data-panel="root"]) .sheet__panel--root {
  transform: translateX(calc(-28% * var(--sheet-dir)));
  visibility: hidden;
}
.sheet[data-panel="features"] .sheet__panel[data-sheet-panel="features"],
.sheet[data-panel="modules"] .sheet__panel[data-sheet-panel="modules"],
.sheet[data-panel="company"] .sheet__panel[data-sheet-panel="company"] {
  transform: none;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet::backdrop, .sheet__panel { transition: none; }
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-block-end: 1px solid var(--border-soft);
}
.sheet__head--sub { justify-content: flex-start; }
.sheet__head--sub .sheet__close { margin-inline-start: auto; }
/* The sheet shows the square mark, not the wordmark — the bar above it
   already carries the wordmark, and a phone head needs the width for the
   close button. Sized here rather than on .logo-img so the light/dark
   display swap in _base.css keeps working untouched; .sheet__head .sheet__logo
   beats .header__logo .logo-img (same specificity, spliced later). The mark
   fills 48 of its 64 viewBox units, so 32px box reads as a 24px glyph. */
.sheet__head .sheet__logo { height: 32px; width: 32px; }
.sheet__title {
  margin: 0;
  font-family: var(--erm-font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-strong);
}
.sheet__close, .sheet__back { cursor: pointer; }

.sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.sheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border-radius: var(--erm-radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-strong);
  text-align: start;
  cursor: pointer;
}
.sheet__link:hover { background: var(--surface-hover); }
.sheet__link-chevron { color: var(--muted); }

/* Sub-panel list: icon tile + title + one-line description, like the mega menu. */
.sheet__list { display: flex; flex-direction: column; gap: 0.125rem; }
.sheet__sublink {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--erm-radius-md);
}
.sheet__sublink:hover { background: var(--surface-hover); }
.sheet__sublink-icon {
  display: flex;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-md);
  background: rgb(127 62 241 / 0.1);
  color: var(--blue-600);
}
.sheet__list li:nth-child(3n+2) .sheet__sublink-icon { background: rgb(240 160 32 / 0.14); color: var(--amber-600); }
.sheet__list li:nth-child(3n) .sheet__sublink-icon { background: rgb(35 196 143 / 0.14); color: #128a63; }
.dark .sheet__sublink-icon { background: rgb(201 189 255 / 0.14); color: #dad3ff; }
.dark .sheet__list li:nth-child(3n+2) .sheet__sublink-icon { background: rgb(255 196 102 / 0.14); color: var(--amber-400); }
.dark .sheet__list li:nth-child(3n) .sheet__sublink-icon { background: rgb(35 196 143 / 0.16); color: #6fe3bd; }
.sheet__sublink-title { display: block; font-size: 0.9375rem; font-weight: 500; color: var(--fg-strong); }
.sheet__sublink-desc {
  display: -webkit-box;
  margin-block-start: 0.125rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sheet__all {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-block-start: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--erm-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600, #7f3ef1);
}
.sheet__all:hover { background: var(--surface-hover); }
.dark .sheet__all { color: var(--blue-400, #b5a0fe); }

.sheet__foot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-block-start: 1px solid var(--border-soft);
  background: var(--surface);
}
.sheet__lang { margin-block-end: 0.25rem; }
.sheet__lang .locale-switcher__btn--row { background: var(--card-bg); }

/* ============================================================
   Search modal
   ============================================================ */
.search-modal {
  margin: 0 auto;
  margin-block-start: 10vh;
  padding: 0;
  inline-size: min(40rem, calc(100vw - 2rem));
  max-block-size: min(32rem, 75vh);
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-2xl);
  background: var(--card-bg);
  color: var(--fg);
  overflow: hidden;
}
.search-modal::backdrop {
  background: rgb(11 17 32 / 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.search-modal__form { display: flex; flex-direction: column; max-block-size: inherit; }

.search-modal__field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-block-end: 1px solid var(--border-soft);
}
.search-modal__icon { color: var(--muted); flex-shrink: 0; }
.search-modal__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 1rem;
  color: var(--fg-strong);
  outline: none;
  min-inline-size: 0;
}
.search-modal__input::placeholder { color: var(--muted); }
.search-modal__input::-webkit-search-cancel-button { display: none; }
.search-modal__close { flex-shrink: 0; }

.search-modal__body { overflow-y: auto; padding: 0.5rem; }

/* --- Live results --- */
/* Each result: a fixed-width type chip in the first column, title over
   excerpt in the second — every chip and every title line up. */
.search-modal__result {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--erm-radius-md);
  cursor: pointer;
}
.search-modal__result:hover,
.search-modal__result.is-active { background: var(--surface-hover); }
.search-modal__result.is-active { outline: 2px solid var(--blue-500, #8f5bfe); outline-offset: -2px; }
.search-modal__result-type {
  display: inline-flex;
  justify-content: center;
  margin-block-start: 0.1875rem;
  padding: 0.1875rem 0.375rem;
  border-radius: var(--erm-radius-sm);
  background: var(--surface);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted-strong);
}
.search-modal__result-body { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.search-modal__result-title { font-size: 0.9375rem; font-weight: 600; color: var(--fg-strong); }
.search-modal__result-excerpt {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-modal__all {
  display: block;
  margin-block-start: 0.25rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--erm-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600, #7f3ef1);
  cursor: pointer;
}
.search-modal__all:hover,
.search-modal__all.is-active { background: var(--surface-hover); }
.dark .search-modal__all { color: var(--blue-400, #b5a0fe); }
.search-modal__empty { padding: 1.5rem 0.75rem; text-align: center; font-size: 0.875rem; color: var(--muted); }

/* --- Recent + popular --- */
.search-modal__group { padding: 0.75rem; }
.search-modal__group + .search-modal__group { padding-block-start: 0.25rem; }
.search-modal__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 0.625rem;
}
.search-modal__group-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.search-modal__clear {
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--erm-radius-full);
  padding: 0.25rem 0.625rem;
}
.search-modal__clear:hover { color: var(--fg-strong); background: var(--surface-hover); }
.search-modal__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-full);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--muted-strong);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.search-chip:hover { border-color: var(--blue-500, #8f5bfe); color: var(--fg-strong); }
.search-chip .icon { color: var(--muted); }

.search-modal__hint {
  border-block-start: 1px solid var(--border-soft);
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}
@media (max-width: 639px) {
  .search-modal { margin-block-start: 4vh; max-block-size: 85vh; }
  .search-modal__hint { display: none; }
}

/* ---- fragment: home.css ---- */
/* ---------- HOME PAGE (templates/pages/home.php) ---------- */

/* --- Shared section head --- */
.home-section-head { margin-inline: auto; max-width: 42rem; text-align: center; }
.home-section-head__title { font-family: var(--erm-font-display); font-size: 2.25rem; font-weight: 500; letter-spacing: -0.025em; color: var(--fg-strong); }
@media (min-width: 640px) { .home-section-head__title { font-size: 3rem; } }
.home-section-head__subtitle { margin-top: 1rem; font-size: 1.125rem; color: var(--muted-strong); }
.dark .home-section-head__subtitle { color: var(--slate-400); }

/* ==================== HeroSection ====================
   Revised 2026-10-01. The whole hero fits in the first screen: it is exactly
   one viewport tall, the copy takes what it needs, the dashboard takes the
   rest, and the trust strip rides on the dashboard's faded bottom instead of
   adding a band below it. The bottom of the hero dissolves into the next
   section's colour, so there is no seam where the fold is. */
.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  margin-block-start: calc(-1 * var(--header-height));
  padding-block-start: var(--header-height);
  height: 100vh;
  height: 100svh;
  min-height: 38rem; /* short laptop screens: scroll a little rather than crush the dashboard */
}

/* Ground: an aurora (2026-10-02, replaced the black-hole particles at the
   owner's request), grain over it, and one mask that fades the lot out
   toward the sides and into the next section. */
.home-hero__ground {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-mask-image:
    radial-gradient(ellipse 95% 80% at 50% 25%, #000 35%, transparent 100%),
    linear-gradient(to bottom, #000 40%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 95% 80% at 50% 25%, #000 35%, transparent 100%),
    linear-gradient(to bottom, #000 40%, transparent 96%);
  mask-composite: intersect;
}
/* Aurora, after the owner's reference, Aceternity's "AuroraBackground"
   (React + Tailwind there, plain CSS here). Same recipe: purple bands under
   a repeating stripe of the page colour, blurred, with a copy of both in
   ::after sliding past at a different scale under mix-blend-mode:
   difference. Where the two copies cross, the light breaks up and shifts.
   Light theme draws it on black and inverts the result, exactly as the
   original does. Blues are swapped for the site's purples. Reduced motion:
   the same picture, still. */
.home-hero__aurora {
  --aurora-stripes: repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%);
  --aurora-bands: repeating-linear-gradient(100deg, #7f3ef1 10%, #b5a0fe 15%, #8f5bfe 20%, #ddd0ff 25%, #6932ca 30%);
  position: absolute;
  inset: -10px;
  opacity: 0.5;
  background-image: var(--aurora-stripes), var(--aurora-bands);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px) invert(1);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
  will-change: transform;
}
.home-hero__aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--aurora-stripes), var(--aurora-bands);
  background-size: 200%, 100%;
  background-attachment: fixed;
  mix-blend-mode: difference;
  animation: home-aurora 60s linear infinite;
}
.dark .home-hero__aurora {
  --aurora-stripes: repeating-linear-gradient(100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16%);
  filter: blur(10px);
}
@keyframes home-aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to { background-position: 350% 50%, 350% 50%; }
}
@media (prefers-reduced-motion: reduce) { .home-hero__aurora::after { animation: none; } }
.home-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-image: var(--erm-grain);
  background-size: 160px 160px;
}
.dark .home-hero__grain { opacity: 0.4; mix-blend-mode: soft-light; }

.home-hero__text {
  position: relative;
  z-index: 10;
  flex: none;
  margin-inline: auto;
  max-width: 56rem;
  padding-inline: 1.5rem;
  padding-top: 1.5rem;
  text-align: center;
}
@media (min-width: 640px) { .home-hero__text { padding-top: 2rem; } }

.home-hero__badge { font-size: 0.8125rem; padding: 0.375rem 0.875rem; }
/* Light theme: a translucent chip over the gradient instead of a grey slab
   (owner's value, 2026-10-01). The dark rule (.dark .badge--primary) wins there. */
.home-hero__badge.badge--primary { background: #ffffff47; }
.dark .home-hero__badge.badge--primary { background: rgb(255 255 255 / 0.08); }
.home-hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--erm-radius-full);
  background: var(--accent-2);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgb(240 160 32 / 0.5);
  animation: home-dot-pulse 2.4s ease-out infinite;
}
@keyframes home-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgb(240 160 32 / 0.45); }
  70%  { box-shadow: 0 0 0 8px rgb(240 160 32 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(240 160 32 / 0); }
}
@media (prefers-reduced-motion: reduce) { .home-hero__badge-dot { animation: none; box-shadow: none; } }

.home-hero__title {
  font-family: var(--erm-font-display);
  margin-top: 1rem;
  padding-bottom: 0.25rem;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
  background: linear-gradient(118deg, var(--ink) 0%, var(--ink) 48%, var(--blue-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dark .home-hero__title { background-image: linear-gradient(118deg, #ffffff 0%, #ffffff 45%, #c9bdff 100%); }
@media (min-width: 640px) { .home-hero__title { font-size: 3rem; } }
@media (min-width: 1024px) { .home-hero__title { font-size: 3.5rem; } }

.home-hero__subtitle {
  margin-inline: auto;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  text-wrap: balance;
  color: var(--muted-strong);
}
.dark .home-hero__subtitle { color: var(--slate-400); }
@media (min-width: 640px) { .home-hero__subtitle { font-size: 1rem; } }

.home-hero__ctas {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) { .home-hero__ctas { flex-direction: row; justify-content: center; } }

/* Same tones as .btn--solid-blue / .btn--outline-slate, one size up. */
.home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-full);
  padding: 0.8125rem 1.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.home-hero__cta:hover { transform: translateY(-1px); }
.home-hero__cta--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16);
}
.home-hero__cta--primary:hover { background: var(--blue-500); }
.dark .home-hero__cta--primary { background: #c9bdff; color: var(--ink); box-shadow: none; }
.dark .home-hero__cta--primary:hover { background: #d8d0ff; }
.home-hero__cta--secondary {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--fg);
  box-shadow: var(--erm-shadow-sm);
}
.home-hero__cta--secondary:hover { border-color: var(--slate-300); color: var(--ink); }
.dark .home-hero__cta--secondary {
  border-color: rgb(255 255 255 / 0.14);
  background: var(--surface);
  color: var(--fg);
  box-shadow: none;
}
.dark .home-hero__cta--secondary:hover { border-color: rgb(255 255 255 / 0.28); color: #fff; }

/* --- Dashboard wrapper: perspective + mask --- */
/* The dashboard takes whatever the viewport has left after the text, and is
   cropped (the mask already fades its bottom edge) so text + animation fit
   one screen. */
/* The dashboard takes whatever height the copy leaves in the viewport
   (flex: 1 inside a one-screen hero), so the hero never runs past the fold. */
.home-hero__dash-wrap {
  position: relative;
  z-index: 10;
  flex: 1 1 0;
  min-height: 0;
  margin-inline: auto;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 1800px;
  overflow: hidden;
}
@media (min-width: 640px) { .home-hero__dash-wrap { margin-top: 2rem; } }
.home-hero__dash-perspective { position: relative; perspective: 1400px; }
.home-hero__dash-mask {
  overflow: hidden;
  transform: rotateX(12deg) skewX(6deg);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%), linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%), linear-gradient(to right, black 85%, transparent 100%);
  mask-composite: intersect;
}

.home-hero__dash-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 30;
  display: flex;
  gap: 0;
  transform: translateX(-50%);
}
.home-hero__dash-dot {
  /* 8px dot painted inside a 24px hit area (WCAG 2.5.8 target size) */
  box-sizing: content-box;
  height: 0.5rem;
  width: 0.5rem;
  padding: 0.5rem;
  background-clip: content-box;
  border-radius: var(--erm-radius-full);
  background-color: var(--slate-400);
  transition: width 0.3s ease, background-color 0.3s ease;
}
.dark .home-hero__dash-dot { background-color: rgb(255 255 255 / 0.3); }
.home-hero__dash-dot.is-active { width: 1.5rem; background-color: var(--blue-500); }
.dark .home-hero__dash-dot.is-active { background-color: var(--blue-500); }

/* --- Trust bar --- */
/* The trust strip sits on the dashboard's faded bottom, inside the fold. */
.home-hero__trust {
  position: absolute;
  inset-inline: 0;
  bottom: 1.25rem;
  z-index: 20;
  padding-inline: 2rem;
  text-align: center;
}
.home-hero__trust-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--slate-400);
}
.dark .home-hero__trust-label { color: var(--slate-500); }
.home-hero__logos {
  margin-top: 1.5rem;
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
}
.home-hero__logo-group {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 3rem;
  row-gap: 0.75rem;
}
.home-hero__logo-group.is-active { display: flex; animation: home-logos-in 0.4s ease-out; }
@keyframes home-logos-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.home-hero__inst { font-size: 1.125rem; color: var(--slate-700); opacity: 0.3; }
.dark .home-hero__inst { color: var(--slate-400); opacity: 0.4; }
.inst--mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: 0.15em; }
.inst--wider { letter-spacing: 0.2em; }
.inst--serif-wide { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.025em; }
.inst--serif-italic { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.inst--serif-semibold { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
.inst--sans-semibold { font-weight: 600; }
.inst--sans-light { font-weight: 300; letter-spacing: 0.025em; }
.inst--sans-wide { letter-spacing: 0.025em; }
.inst--caps { text-transform: uppercase; letter-spacing: 0.05em; }
.inst--display { font-family: var(--erm-font-display); font-weight: 700; letter-spacing: -0.025em; }

/* Phones: the segment list wraps to three lines, too tall to ride on the
   dashboard without covering its numbers. There the strip stays in the flex
   column under the dashboard, which shrinks to make room; still one screen. */
@media (max-width: 639px) {
  .home-hero__trust { position: relative; bottom: auto; flex: none; padding-block: 0.75rem 1.25rem; }
  .home-hero__bottom-fade { height: 6rem; }
}

/* The seam: the last stretch of the hero dissolves into the next section's
   colour, over the dashboard and under the trust strip. */
.home-hero__bottom-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 15;
  height: 13rem;
  pointer-events: none;
  /* eased stops, so the dissolve has no visible band edge */
  background: linear-gradient(to bottom, rgb(from var(--bg) r g b / 0) 0%, rgb(from var(--bg) r g b / 0.55) 30%, var(--bg) 62%);
}

/* ==================== Languages strip ==================== */
.home-languages { padding-block: 0 0.5rem; }
.home-languages__inner {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-2xl);
  background: var(--card-bg);
}
.dark .home-languages__inner { background: var(--surface); }
@media (min-width: 1024px) {
  .home-languages__inner { grid-template-columns: 1fr 1.4fr; align-items: center; padding: 2rem 2.5rem; gap: 2.5rem; }
}
.home-languages__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
}
.dark .home-languages__label { color: #dad3ff; }
.home-languages__title {
  margin-block-start: 0.5rem;
  font-family: var(--erm-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}
.home-languages__subtitle { margin-block-start: 0.5rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted-strong); }
.home-languages__link {
  margin-block-start: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-600);
}
.dark .home-languages__link { color: var(--blue-400); }
.home-languages__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.home-languages__chip {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-full);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--fg);
}
.dark .home-languages__chip { background: rgb(255 255 255 / 0.04); }

/* ==================== HeroDashboard ==================== */
.hero-dashboard {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 1100px;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .hero-dashboard { padding-inline: 1.25rem; } }

.hero-dashboard__frame {
  overflow: hidden;
  border-radius: var(--erm-radius-xl) var(--erm-radius-xl) 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  background: var(--card-bg);
  box-shadow: var(--erm-shadow-xl);
}
.dark .hero-dashboard__frame { border-color: rgb(255 255 255 / 0.1); background: var(--card-bg); }

.hero-dashboard__appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-100);
  background: var(--slate-50);
  padding: 0.625rem 1rem;
}
@media (min-width: 640px) { .hero-dashboard__appbar { padding-inline: 1.25rem; } }
.dark .hero-dashboard__appbar { border-bottom-color: rgb(255 255 255 / 0.06); background: rgb(0 0 0 / 0.15); }
.hero-dashboard__appbar-start { display: flex; align-items: center; gap: 0.75rem; }
.hero-dashboard__logo { height: 18px; width: auto; }
.hero-dashboard__appbar-divider { height: 0.875rem; width: 1px; background: var(--slate-200); }
.dark .hero-dashboard__appbar-divider { background: rgb(255 255 255 / 0.1); }
.hero-dashboard__appbar-page { font-size: 0.6875rem; color: var(--slate-600); }
.dark .hero-dashboard__appbar-page { color: var(--slate-300); }
.hero-dashboard__appbar-end { display: none; align-items: center; gap: 0.625rem; }
@media (min-width: 640px) { .hero-dashboard__appbar-end { display: flex; } }
.hero-dashboard__institution { font-size: 0.6875rem; color: var(--slate-600); }
.dark .hero-dashboard__institution { color: var(--slate-300); }
.hero-dashboard__avatar {
  display: flex;
  height: 1.5rem;
  width: 1.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-full);
  background: var(--primary-100);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--primary-700);
}
.dark .hero-dashboard__avatar { background: rgb(82 86 107 / 0.12); color: var(--primary-300); }

.hero-dashboard__layout { display: grid; min-height: 380px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .hero-dashboard__layout { grid-template-columns: 200px 1fr; } }

/* Sidebar */
.hero-dashboard__sidebar {
  display: none;
  border-inline-end: 1px solid var(--slate-100);
  background: var(--slate-50);
  padding-block: 0.75rem;
}
@media (min-width: 1024px) { .hero-dashboard__sidebar { display: block; } }
.dark .hero-dashboard__sidebar { border-inline-end-color: rgb(255 255 255 / 0.06); background: rgb(0 0 0 / 0.1); }
.hero-dashboard__sidebar-list { display: flex; flex-direction: column; gap: 1px; padding-inline: 0.5rem; }
.hero-dashboard__sidebar-tab,
.hero-dashboard__sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  text-align: start;
  color: var(--slate-600);
}
.dark .hero-dashboard__sidebar-tab,
.dark .hero-dashboard__sidebar-item { color: var(--slate-300); }
.hero-dashboard__sidebar-tab:hover { color: var(--slate-900); }
.dark .hero-dashboard__sidebar-tab:hover { color: #ffffff; }
.hero-dashboard__sidebar-tab.is-active {
  border-radius: var(--erm-radius-md);
  border-inline-start: 2px solid var(--primary-500);
  background: var(--primary-100);
  color: var(--primary-700);
}
.dark .hero-dashboard__sidebar-tab.is-active { background: rgb(82 86 107 / 0.08); color: var(--primary-300); }
.hero-dashboard__sidebar-sep {
  margin-inline: 0.5rem;
  margin-block: 0.5rem;
  border-top: 1px solid var(--slate-100);
}
.dark .hero-dashboard__sidebar-sep { border-top-color: rgb(255 255 255 / 0.06); }

/* Content area */
.hero-dashboard__content { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.875rem; }
@media (min-width: 640px) { .hero-dashboard__content { padding: 1rem; } }
.hero-dashboard__content-head { display: flex; align-items: center; justify-content: space-between; }
.hero-dashboard__content-title { font-size: 1rem; font-weight: 700; color: var(--slate-900); }
.dark .hero-dashboard__content-title { color: var(--slate-100); }
@media (min-width: 640px) { .hero-dashboard__content-title { font-size: 1.125rem; } }
.hero-dashboard__content-sub { font-size: 0.625rem; color: var(--slate-600); }
.dark .hero-dashboard__content-sub { color: var(--slate-300); }

.hero-dashboard__pages { position: relative; height: 320px; overflow: hidden; }
.hero-dashboard__page {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-dashboard__page.is-active { display: flex; animation: dash-page-in 0.25s ease-out; }
@keyframes dash-page-in { from { opacity: 0; } to { opacity: 1; } }

/* Stats */
.hero-dashboard__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 1024px) { .hero-dashboard__stats { grid-template-columns: repeat(4, 1fr); } }
.hero-dashboard__stat {
  border-radius: var(--erm-radius-md);
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
  padding: 0.75rem;
}
.dark .hero-dashboard__stat { border-color: rgb(255 255 255 / 0.05); background: rgb(255 255 255 / 0.015); }
.hero-dashboard__stat-label {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-600);
}
.dark .hero-dashboard__stat-label { color: var(--slate-300); }
.hero-dashboard__stat-value {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--slate-900);
}
.dark .hero-dashboard__stat-value { color: #ffffff; }
@media (min-width: 640px) { .hero-dashboard__stat-value { font-size: 1.5rem; } }
.hero-dashboard__stat-value--neutral { color: var(--primary-600); }
.dark .hero-dashboard__stat-value--neutral { color: var(--primary-200); }
.hero-dashboard__stat-trend {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.5625rem;
  color: #15803d;
}
.dark .hero-dashboard__stat-trend { color: #4ade80; }
.hero-dashboard__stat-arrow {
  display: flex;
  height: 0.875rem;
  width: 0.875rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  font-size: 0.4375rem;
  background: #f0fdf4;
}
.dark .hero-dashboard__stat-arrow { background: rgb(34 197 94 / 0.1); }
.hero-dashboard__stat-trend--neutral,
.dark .hero-dashboard__stat-trend--neutral { color: var(--primary-700); }
.dark .hero-dashboard__stat-trend--neutral { color: var(--primary-200); }
.hero-dashboard__stat-trend--neutral .hero-dashboard__stat-arrow { background: var(--primary-100); }
.dark .hero-dashboard__stat-trend--neutral .hero-dashboard__stat-arrow { background: rgb(82 86 107 / 0.1); }

/* Panels (chart / insights / rooms) */
.hero-dashboard__panel {
  border-radius: var(--erm-radius-md);
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
  padding: 0.875rem;
}
.dark .hero-dashboard__panel { border-color: rgb(255 255 255 / 0.05); background: rgb(255 255 255 / 0.015); }
.hero-dashboard__panel-head {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-dashboard__panel-title { font-size: 0.8125rem; font-weight: 600; color: var(--slate-800); }
.dark .hero-dashboard__panel-title { color: var(--slate-200); }
.hero-dashboard__panel-sub { margin-top: 0.125rem; font-size: 0.5625rem; color: var(--slate-600); }
.dark .hero-dashboard__panel-sub { color: var(--slate-300); }
.hero-dashboard__range-tabs { display: flex; gap: 0.25rem; }
.hero-dashboard__range-tab {
  border-radius: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.5625rem;
  background: var(--slate-100);
  color: var(--slate-600);
}
.dark .hero-dashboard__range-tab { background: rgb(255 255 255 / 0.04); color: var(--slate-300); }
.hero-dashboard__range-tab.is-active {
  border: 1px solid var(--primary-200);
  background: var(--primary-100);
  color: var(--primary-700);
}
.dark .hero-dashboard__range-tab.is-active {
  border-color: rgb(82 86 107 / 0.15);
  background: rgb(82 86 107 / 0.1);
  color: var(--primary-100);
}

.hero-dashboard__chart { display: flex; align-items: flex-end; gap: 0.25rem; height: 100px; }
.hero-dashboard__bar {
  flex: 1;
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, rgba(110, 113, 135, 0.45) 0%, rgba(110, 113, 135, 0.08) 100%);
  transform-origin: bottom;
}
.hero-dashboard__bar.is-highlight {
  background: linear-gradient(180deg, rgba(110, 113, 135, 0.7) 0%, rgba(110, 113, 135, 0.08) 100%);
  box-shadow: none;
}
.js-reveal-ready .hero-dashboard__bar { animation: dash-bar-grow 0.4s ease-out backwards; }
@keyframes dash-bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Insights */
.hero-dashboard__chip {
  border-radius: 0.25rem;
  background: var(--primary-100);
  padding: 0.125rem 0.5rem;
  font-size: 0.5625rem;
  color: var(--primary-700);
}
.dark .hero-dashboard__chip { background: rgb(82 86 107 / 0.1); color: var(--primary-300); }
.hero-dashboard__insights { display: flex; flex-direction: column; gap: 0.5rem; }
.hero-dashboard__insight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--erm-radius-md);
  border: 1px solid var(--slate-100);
  background: #ffffff;
  padding: 0.625rem 0.75rem;
}
.dark .hero-dashboard__insight { border-color: rgb(255 255 255 / 0.04); background: rgb(255 255 255 / 0.01); }
.hero-dashboard__insight-dot { height: 0.5rem; width: 0.5rem; flex-shrink: 0; border-radius: var(--erm-radius-full); }
.hero-dashboard__insight-dot--red { background: #ef4444; }
.hero-dashboard__insight-dot--yellow { background: #eab308; }
.hero-dashboard__insight-dot--green { background: #22c55e; }
.hero-dashboard__insight-dot--blue { background: var(--blue-500); }
.hero-dashboard__insight-body { flex: 1; }
.hero-dashboard__insight-label { font-size: 0.6875rem; color: var(--slate-700); }
.dark .hero-dashboard__insight-label { color: var(--slate-300); }
.hero-dashboard__insight-action { margin-top: 0.125rem; font-size: 0.5625rem; color: var(--slate-400); }
.dark .hero-dashboard__insight-action { color: var(--slate-500); }
.hero-dashboard__insight-view {
  border-radius: 0.25rem;
  border: 1px solid var(--slate-200);
  padding: 0.125rem 0.5rem;
  font-size: 0.5625rem;
  color: var(--slate-500);
}
.dark .hero-dashboard__insight-view { border-color: rgb(255 255 255 / 0.08); color: var(--slate-400); }

/* Rooms */
.hero-dashboard__legend { display: flex; gap: 0.75rem; font-size: 0.5625rem; color: var(--slate-400); }
.dark .hero-dashboard__legend { color: var(--slate-500); }
.hero-dashboard__legend-item { display: flex; align-items: center; gap: 0.25rem; }
.hero-dashboard__legend-swatch {
  display: inline-block;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 0.125rem;
  background: var(--slate-100);
}
.dark .hero-dashboard__legend-swatch { background: rgb(255 255 255 / 0.04); }
.hero-dashboard__legend-swatch--booked { background: rgb(104 109 133 / 0.4); }
.dark .hero-dashboard__legend-swatch--booked { background: rgb(104 109 133 / 0.4); }
.hero-dashboard__rooms-scroll { overflow-x: auto; }
.hero-dashboard__rooms-grid {
  display: grid;
  min-width: 400px;
  grid-template-columns: 80px repeat(8, 1fr);
}
.hero-dashboard__hour {
  padding-inline: 0.25rem;
  padding-bottom: 0.5rem;
  text-align: center;
  font-size: 0.5625rem;
  color: var(--slate-400);
}
.dark .hero-dashboard__hour { color: var(--slate-500); }
.hero-dashboard__room-name {
  display: flex;
  align-items: center;
  padding-inline-end: 0.5rem;
  font-size: 0.625rem;
  color: var(--slate-500);
}
.dark .hero-dashboard__room-name { color: var(--slate-400); }
.hero-dashboard__slot {
  margin: 0.125rem;
  height: 1.5rem;
  border-radius: 0.125rem;
  border: 1px solid var(--slate-100);
  background: var(--slate-50);
}
.dark .hero-dashboard__slot { border-color: rgb(255 255 255 / 0.04); background: rgb(255 255 255 / 0.03); }
.hero-dashboard__slot.is-booked { border-color: var(--primary-200); background: var(--primary-100); }
.dark .hero-dashboard__slot.is-booked { border-color: rgb(82 86 107 / 0.2); background: rgb(82 86 107 / 0.3); }

.hero-dashboard__fade { height: 4rem; background: linear-gradient(to bottom, #ffffff, rgb(255 255 255 / 0)); }
.dark .hero-dashboard__fade { background: linear-gradient(to bottom, var(--primary-700), transparent); }

/* ==================== FeaturesSection: bento (2026-10-01) ====================
   Four cards on a six-column grid: wide (4) + narrow (2), then narrow (2) +
   wide (4). Wide cards set the picture beside the text, narrow ones above it;
   the second wide card is flipped so the two rows do not mirror each other.
   The pictures are partials/feature-art.php with no ground of their own: the
   card is the only surface, which is what keeps them from reading as stickers.
   No shadows (site rule): depth is the border, and the hover is a border tint
   plus the picture lifting. */
.home-bento { margin-top: 3.5rem; display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .home-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-bento__card--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .home-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
  .home-bento__card { grid-column: span 2; }
  .home-bento__card--wide { grid-column: span 4; }
}
.home-bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-2xl);
  background: var(--card-bg);
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}
.home-bento__card:hover { border-color: var(--blue-400); }
.dark .home-bento__card:hover { border-color: rgb(201 189 255 / 0.5); }
.home-bento__art { display: flex; align-items: center; justify-content: center; }
/* Narrow cards keep the picture modest so the row is not set by it; the wide
   cards, which share that row height, get the larger cut and fill it. */
.home-bento__art .feature-art--sm { max-width: 13.5rem; }
.home-bento__art .feature-art { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.home-bento__card:hover .home-bento__art .feature-art { transform: translateY(-4px); }
.home-bento__body { display: flex; flex-direction: column; flex: 1; }
@media (min-width: 640px) {
  .home-bento__card--wide { flex-direction: row-reverse; align-items: center; gap: 2.5rem; padding: 2.25rem; }
  .home-bento__card--wide.home-bento__card--flip { flex-direction: row; }
  .home-bento__card--wide .home-bento__art { flex: 0 0 44%; }
  .home-bento__card--wide .feature-art--sm { max-width: 21rem; }
}
.home-bento__icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-md);
}
.home-bento__title {
  margin: 1.25rem 0 0;
  font-family: var(--erm-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
}
.home-bento__card--wide .home-bento__title { font-size: 1.5rem; }
.home-bento__desc { margin: 0.625rem 0 0; font-size: 0.9375rem; line-height: 1.65; color: var(--muted-strong); }
.dark .home-bento__desc { color: var(--slate-400); }
.home-bento__link {
  margin-top: auto;
  padding-top: 1.25rem;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
}
.dark .home-bento__link { color: var(--blue-400); }
.home-bento__link .icon { transition: transform 0.2s ease; }
.home-bento__link:hover .icon { transform: translateX(3px); }
[dir="rtl"] .home-bento__link:hover .icon { transform: translateX(-3px); }
/* The whole card is the target; the link's box is stretched over it. */
.home-bento__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.home-bento__link:focus-visible { outline: none; }
.home-bento__card:has(.home-bento__link:focus-visible) { outline: 2px solid var(--blue-600); outline-offset: 3px; }

/* ==================== SocialProofSection ==================== */
.home-social__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 640px) { .home-social__stats { grid-template-columns: repeat(4, 1fr); } }
.home-social__stat { text-align: center; }
.home-social__stat-value {
  font-family: var(--erm-font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
@media (min-width: 640px) { .home-social__stat-value { font-size: 3rem; } }
.home-social__stat-label { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-strong); }
.dark .home-social__stat-label { color: var(--slate-400); }

.home-social__testimonials { margin-top: 5rem; }
.home-social__testimonials-title {
  font-family: var(--erm-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  color: var(--fg-strong);
}

/* --- Testimonials carousel (scroll-snap) --- */
.testimonials { margin-inline: auto; margin-top: 2.5rem; max-width: 42rem; }
.testimonials__viewport { position: relative; }
.testimonials__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonials__slide {
  flex: 0 0 100%;
  min-height: 180px;
  scroll-snap-align: center;
  text-align: center;
  padding-inline: 2.5rem;
}
.testimonials__mark { font-family: var(--erm-font-display); font-size: 3rem; line-height: 1; color: rgb(104 109 133 / 0.2); }
.testimonials__quote { margin-top: -0.75rem; font-size: 1.125rem; line-height: 1.625; color: var(--slate-700); }
.dark .testimonials__quote { color: var(--slate-300); }
.testimonials__footer { margin-top: 1.5rem; }
.testimonials__name { font-size: 0.875rem; font-weight: 600; color: var(--fg-strong); }
.testimonials__role { font-size: 0.875rem; color: var(--muted); }
.testimonials__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-full);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--muted);
  transform: translateY(-50%);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.testimonials__nav:hover { color: var(--fg-strong); border-color: var(--slate-400); }
.testimonials__nav--prev { inset-inline-start: 0; }
.testimonials__nav--next { inset-inline-end: 0; }
.testimonials__dots { margin-top: 1.5rem; display: flex; justify-content: center; gap: 0.5rem; }
.testimonials__dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: var(--erm-radius-full);
  background: var(--slate-300);
  padding: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.dark .testimonials__dot { background: var(--slate-600); }
.testimonials__dot.is-active { width: 1.5rem; background: var(--blue-600); }
.dark .testimonials__dot.is-active { background: var(--blue-600); }

/* ==================== ModulesSection ==================== */
.home-modules { background: var(--slate-50); }
.dark .home-modules { background: rgb(30 41 59 / 0.5); }

.home-modules__tabs-wrap { margin-top: 2.5rem; }
.home-modules__tablist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-inline: auto;
  width: fit-content;
  border-radius: var(--erm-radius-md);
  background: rgb(226 232 240 / 0.8);
  padding: 0.25rem;
}
.dark .home-modules__tablist { background: rgb(51 65 85 / 0.8); }
.home-modules__tab {
  border-radius: var(--erm-radius-sm);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-strong);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.home-modules__tab:hover { color: var(--slate-900); }
.dark .home-modules__tab { color: var(--slate-300); }
.dark .home-modules__tab:hover { color: #ffffff; }
.home-modules__tab.is-active { background: #ffffff; color: var(--blue-600); box-shadow: var(--erm-shadow-sm); }
.dark .home-modules__tab.is-active { background: var(--slate-600); color: var(--blue-200, #e1dbff); }

.home-modules__panels { margin-top: 3rem; }
/* progressive enhancement: without JS all panels stack; JS adds .js-tabs to hide inactive */
.home-modules__panel { margin-bottom: 3rem; }
.home-modules__panels.js-tabs .home-modules__panel { display: none; margin-bottom: 0; }
.home-modules__panels.js-tabs .home-modules__panel.is-active { display: block; animation: module-panel-in 0.25s ease-out; }
@keyframes module-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.home-modules__panel-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .home-modules__panel-grid { grid-template-columns: repeat(2, 1fr); align-items: center; } }
.home-modules__panel-title { font-family: var(--erm-font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary-700); }
/* was primary-700 at 0.9 opacity: 1.46:1 on the dark panel, effectively invisible */
.dark .home-modules__panel-title { color: var(--primary-200); }
.home-modules__panel-desc { margin-top: 0.75rem; color: var(--muted-strong); }
.dark .home-modules__panel-desc { color: var(--slate-400); }
.home-modules__features { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.home-modules__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-700);
}
.dark .home-modules__feature { color: var(--slate-300); }
.home-modules__feature-icon { color: var(--primary-700); }
.home-modules__learn-more {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-700);
}
.dark .home-modules__learn-more { color: var(--primary-300); }
.home-modules__learn-more:hover { text-decoration: underline; }
.home-modules__note { margin-top: 3rem; text-align: center; }
.home-modules__note p { font-size: 0.875rem; color: var(--muted); }
.dark .home-modules__note p { color: var(--slate-400); }

/* --- Module preview mockups --- */
.module-preview {
  border-radius: var(--erm-radius-md);
  border: 1px solid rgb(104 109 133 / 0.1);
  background: var(--slate-50);
  padding: 1rem;
}
.dark .module-preview { background: rgb(30 41 59 / 0.5); }
.module-preview__head { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.module-preview__dot { height: 0.75rem; width: 0.75rem; border-radius: 0.25rem; background: var(--primary-500); }
.module-preview__name { font-size: 0.75rem; font-weight: 600; color: var(--slate-700); }
.dark .module-preview__name { color: var(--slate-300); }
.module-preview__body { display: flex; flex-direction: column; gap: 0.5rem; }
.module-preview__navbar { height: 1.5rem; border-radius: 0.25rem; background: var(--primary-100); }
.dark .module-preview__navbar { background: rgb(14 15 19 / 0.3); }
.module-preview__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.module-preview__box { height: 4rem; border-radius: 0.25rem; background: var(--primary-50); }
.dark .module-preview__box { background: rgb(14 15 19 / 0.2); }
.module-preview__buttons { display: flex; gap: 0.5rem; }
.module-preview__btn { display: inline-block; height: 1rem; border-radius: 0.25rem; }
.module-preview__btn--primary { width: 4rem; background: var(--primary-700); }
.dark .module-preview__btn--primary { background: var(--primary-500); }
.module-preview__btn--secondary { width: 3rem; background: var(--slate-200); }
.dark .module-preview__btn--secondary { background: var(--slate-700); }
.module-preview__titlebar { height: 1rem; width: 75%; border-radius: 0.25rem; background: var(--primary-100); }
.dark .module-preview__titlebar { background: rgb(14 15 19 / 0.3); }
.module-preview__line { height: 1rem; border-radius: 0.25rem; background: var(--primary-50); }
.dark .module-preview__line { background: rgb(14 15 19 / 0.2); }
.module-preview__line--half { width: 50%; }
.module-preview__line--twothirds { width: 66%; }
.module-preview__dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  border-radius: 0.25rem;
  border: 2px dashed var(--primary-200);
  animation: module-dropzone-pulse 2s ease-in-out infinite;
}
.dark .module-preview__dropzone { border-color: rgb(82 86 107 / 0.4); }
@keyframes module-dropzone-pulse {
  0%, 100% { border-color: var(--primary-200); }
  50% { border-color: var(--primary-300); }
}
.module-preview__dropzone-label { font-size: 0.5625rem; color: var(--primary-300); }
.module-preview__calendar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.25rem; }
.module-preview__cell {
  height: 1.5rem;
  border-radius: 0.25rem;
  background: var(--slate-100);
  text-align: center;
  font-size: 0.5rem;
  line-height: 1.5rem;
}
.dark .module-preview__cell { background: var(--slate-800); }
.module-preview__cell.is-booked { background: var(--primary-700); color: #ffffff; }
.dark .module-preview__cell.is-booked { background: var(--primary-500); }
.module-preview__tickets { display: flex; flex-direction: column; gap: 0.375rem; }
.module-preview__ticket {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.25rem;
  background: #ffffff;
  padding: 0.375rem;
}
.dark .module-preview__ticket { background: rgb(51 65 85 / 0.3); }
.module-preview__ticket-dot { height: 0.5rem; width: 0.5rem; flex-shrink: 0; border-radius: var(--erm-radius-full); }
.module-preview__ticket-dot--green { background: #4ade80; }
.module-preview__ticket-dot--amber { background: #fbbf24; }
.module-preview__ticket-dot--slate { background: var(--slate-300); }
.dark .module-preview__ticket-dot--slate { background: var(--slate-600); }
.module-preview__ticket-bar { height: 0.5rem; border-radius: 0.25rem; background: var(--slate-200); }
.dark .module-preview__ticket-bar { background: var(--slate-600); }
.module-preview__ticket-bar--w75 { width: 75%; }
.module-preview__ticket-bar--w66 { width: 66%; }
.module-preview__ticket-bar--w80 { width: 80%; }
.module-preview__ticket-bar--w50 { width: 50%; }

/* ==================== AISection ==================== */
.home-ai {
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--slate-50), rgb(244 245 247 / 0.3), rgb(232 233 238 / 0.2));
}
.dark .home-ai {
  background: linear-gradient(to bottom right, var(--slate-900), rgb(14 15 19 / 0.2), rgb(14 15 19 / 0.1));
}
.home-ai__grid { display: grid; align-items: center; gap: 3rem; }
@media (min-width: 1024px) { .home-ai__grid { grid-template-columns: repeat(2, 1fr); } }

.home-ai__orbital {
  position: relative;
  margin-inline: auto;
  display: flex;
  height: 16rem;
  width: 16rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) { .home-ai__orbital { height: 20rem; width: 20rem; } }
.home-ai__center {
  position: relative;
  z-index: 10;
  display: flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-xl);
  background: linear-gradient(to bottom right, #3b3e4c, #686d85);
  box-shadow: none;
  color: #ffffff;
}
.home-ai__center .icon { width: 2rem; height: 2rem; }
.home-ai__ring { position: absolute; border-radius: var(--erm-radius-full); border: 1px solid rgb(104 109 133 / 0.1); }
.home-ai__ring--outer { inset: 1rem; }
.home-ai__ring--inner { inset: 2.5rem; border-color: rgb(159 163 180 / 0.1); }
.home-ai__orbiter {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: home-ai-orbit 20s linear infinite;
}
.home-ai__orbiter--1 { transform: rotate(0deg); }
.home-ai__orbiter--2 { transform: rotate(120deg); animation-delay: -6.667s; }
.home-ai__orbiter--3 { transform: rotate(240deg); animation-delay: -13.333s; }
@keyframes home-ai-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.home-ai__orbiter-node {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-lg);
  border: 1px solid rgb(104 109 133 / 0.2);
  background: #ffffff;
  box-shadow: var(--erm-shadow-sm);
  color: var(--primary-500);
  transform: translate(-50%, -50%) translateX(110px);
}
.dark .home-ai__orbiter-node { background: var(--slate-800); }
@media (prefers-reduced-motion: reduce) {
  .home-ai__orbiter { animation: none; }
  .module-preview__dropzone { animation: none; }
}

.home-ai__points { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.home-ai__point { display: flex; gap: 1rem; }
.home-ai__point-icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
}
.dark .home-ai__point-icon { background: rgb(14 15 19 / 0.3); color: var(--primary-300); }
.home-ai__point-text { font-size: 0.875rem; line-height: 1.625; color: var(--slate-700); }
.dark .home-ai__point-text { color: var(--slate-300); }
.home-ai__cta-link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-700);
  transition: color 0.15s ease;
}
.home-ai__cta-link:hover { color: var(--primary-900); }
.dark .home-ai__cta-link { color: var(--primary-300); }

/* ==================== MobileAppSection ==================== */
.home-mobile__inner { margin-inline: auto; max-width: 42rem; text-align: center; }
.home-mobile__icon {
  margin-inline: auto;
  margin-bottom: 1rem;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-xl);
  background: var(--primary-100);
  color: var(--primary-700);
}
.dark .home-mobile__icon { background: rgb(14 15 19 / 0.3); color: var(--primary-300); }
.home-mobile__icon .icon { width: 1.75rem; height: 1.75rem; }
.home-mobile__title {
  font-family: var(--erm-font-display);
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
@media (min-width: 640px) { .home-mobile__title { font-size: 2.25rem; } }
.home-mobile__subtitle { margin-top: 1rem; font-size: 1.125rem; color: var(--muted-strong); }
.dark .home-mobile__subtitle { color: var(--slate-400); }
.home-mobile__stores {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.home-mobile__store {
  border-radius: var(--erm-radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

/* ==================== CTASection ==================== */
.home-cta {
  position: relative;
  overflow: hidden;
  padding-block: 8rem;
  background: radial-gradient(ellipse 80% 120% at 50% 120%, rgb(143 91 254 / 0.45), transparent 60%), #261b44;
}
.home-cta__media { position: absolute; inset: 0; }
.home-cta__video { height: 100%; width: 100%; object-fit: cover; }
.home-cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(79 51 142 / 0.9), rgb(94 50 178 / 0.8), rgb(115 57 218 / 0.7));
}
.home-cta__inner { position: relative; z-index: 10; }
.home-cta__content { margin-inline: auto; max-width: 42rem; text-align: center; }
.home-cta__title {
  font-family: var(--erm-font-display);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #ffffff;
}
@media (min-width: 640px) { .home-cta__title { font-size: 3rem; } }
.home-cta__subtitle { margin-top: 1rem; font-size: 1.125rem; color: rgb(241 239 255 / 0.8); }
.home-cta__buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .home-cta__buttons { flex-direction: row; justify-content: center; } }
.home-cta__btn {
  display: inline-block;
  border-radius: var(--erm-radius-md);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.home-cta__btn--white { background: #ffffff; color: var(--slate-900); box-shadow: var(--erm-shadow-md); }
.home-cta__btn--white:hover { background: var(--primary-50); }
.home-cta__btn--ghost { border: 1px solid rgb(255 255 255 / 0.3); color: #ffffff; }
.home-cta__btn--ghost:hover { border-color: rgb(255 255 255 / 0.5); background: rgb(255 255 255 / 0.1); }
.home-cta__trust-note { margin-top: 2rem; font-size: 0.875rem; color: rgb(255 255 255 / 0.5); }

/* --- Audiences: library-first, commercial + government alongside --- */
.home-audiences { padding-block: 4rem; background: var(--surface); }
.home-audiences__head { text-align: center; max-inline-size: 48rem; margin-inline: auto; }
.home-audiences__title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}
@media (min-width: 640px) { .home-audiences__title { font-size: 2.25rem; } }
.home-audiences__subtitle {
  margin-block-start: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted-strong);
}
.home-audiences__grid {
  margin-block-start: 2.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .home-audiences__grid { grid-template-columns: repeat(3, 1fr); } }
.audience-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover { border-color: var(--blue-400); }
.audience-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: var(--erm-radius-md);
  background: rgb(127 62 241 / 0.1);
  color: var(--blue-600);
}
.audience-card:nth-child(2) .audience-card__icon { background: rgb(240 160 32 / 0.14); color: var(--amber-600); }
.audience-card:nth-child(3) .audience-card__icon { background: rgb(35 196 143 / 0.14); color: #128a63; }
.dark .audience-card__icon { background: rgb(201 189 255 / 0.14); color: #dad3ff; }
.dark .audience-card:nth-child(2) .audience-card__icon { background: rgb(255 196 102 / 0.14); color: var(--amber-400); }
.dark .audience-card:nth-child(3) .audience-card__icon { background: rgb(35 196 143 / 0.16); color: #6fe3bd; }
.audience-card__title {
  margin-block-start: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg-strong);
}
.audience-card__desc {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-strong);
}
.audience-card__cta {
  margin-block-start: auto;
  padding-block-start: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-600, #824eed);
}
.audience-card__cta:hover { gap: 0.625rem; }
.dark .audience-card__cta { color: var(--blue-400, #af97ff); }

/* ---- fragment: modules.css ---- */
/* ---------- Modules page ---------- */

/* Alternating module blocks */
.modules-block { padding-block: 4rem; }
@media (min-width: 640px) {
  .modules-block { padding-block: 6rem; }
}
.modules-block--alt { background: var(--surface); }
.dark .modules-block--alt { background: rgb(30 41 59 / 0.3); }
.modules-block__grid {
  display: grid;
  align-items: start;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .modules-block__grid { grid-template-columns: repeat(2, 1fr); }
  .modules-block__grid--reversed .modules-block__text { order: 2; }
  .modules-block__grid--reversed .modules-block__figure { order: 1; }
}
/* Module name chip. It was a neutral grey on a neutral grey: 1.03–1.05 edge
   contrast in light and 1.008 in dark, i.e. invisible. It now takes the
   signal-purple tint the site's .badge--blue uses, with a hairline border
   for an edge on both section backgrounds (2026-10-01). */
.modules-block__chip {
  display: inline-block;
  border: 1px solid rgb(127 62 241 / 0.55);
  border-radius: 100rem;
  background: rgb(127 62 241 / 0.07);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-700);
}
.dark .modules-block__chip {
  border-color: rgb(201 189 255 / 0.24);
  background: rgb(201 189 255 / 0.16);
  color: #dad3ff;
}
.modules-block__tagline {
  font-family: var(--erm-font-display);
  margin-block-start: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
.modules-block__description {
  margin-block-start: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-strong);
}
.dark .modules-block__description { color: var(--slate-400); }
.modules-block__features {
  margin-block-start: 2rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .modules-block__features { grid-template-columns: repeat(2, 1fr); }
}
.modules-block__feature {
  border: 1px solid var(--primary-200);
  border-radius: var(--erm-radius-md);
  padding: 1rem;
}
.dark .modules-block__feature { border-color: var(--primary-600); }
.modules-block__feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-700);
}
.dark .modules-block__feature-title { color: var(--primary-300); }
.modules-block__feature-text {
  margin-block-start: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-strong);
}
.dark .modules-block__feature-text { color: var(--slate-400); }
.modules-block__more {
  margin-block-start: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-700);
}
.dark .modules-block__more { color: var(--primary-300); }
.modules-block__more:hover { text-decoration: underline; }

/* Preview mockups (decorative) */
.module-preview {
  border: 1px solid var(--primary-200);
  border-radius: var(--erm-radius-lg);
  background: var(--card-bg);
  padding: 1.5rem;
}
.dark .module-preview {
  border-color: var(--primary-600);
  background: rgb(30 41 59 / 0.6);
}
.module-preview__header {
  margin-block-end: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.module-preview__dot {
  height: 0.75rem;
  width: 0.75rem;
  border-radius: 0.25rem;
  background: var(--primary-500);
}
.module-preview__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-700);
}
.dark .module-preview__name { color: var(--slate-300); }
.module-preview__stack { display: grid; gap: 0.75rem; }
.module-preview__block--nav {
  height: 2rem;
  border-radius: var(--erm-radius-md);
  background: var(--primary-100);
}
.dark .module-preview__block--nav { background: rgb(14 15 19 / 0.3); }
.module-preview__cols { display: grid; gap: 0.75rem; }
.module-preview__cols--3 { grid-template-columns: repeat(3, 1fr); }
.module-preview__cols--2 { grid-template-columns: repeat(2, 1fr); }
.module-preview__tile {
  height: 4rem;
  border-radius: var(--erm-radius-md);
  background: var(--primary-50);
}
.dark .module-preview__tile { background: rgb(14 15 19 / 0.2); }
.module-preview__tile--tall { height: 6rem; }
.module-preview__tile--outlined {
  height: 3rem;
  border: 1px solid var(--primary-200);
  border-radius: 0.25rem;
}
.dark .module-preview__tile--outlined { border-color: var(--primary-600); }
.module-preview__chips { display: flex; gap: 0.5rem; }
.module-preview__chip {
  height: 1.5rem;
  width: 4rem;
  border-radius: var(--erm-radius-sm);
  background: var(--slate-200);
}
.dark .module-preview__chip { background: var(--slate-700); }
.module-preview__chip--accent {
  width: 5rem;
  background: rgb(104 109 133 / 0.2);
}
.module-preview__line {
  height: 1.25rem;
  border-radius: 0.25rem;
  background: var(--primary-50);
}
.dark .module-preview__line { background: rgb(14 15 19 / 0.2); }
.module-preview__line--strong { background: var(--primary-100); }
.dark .module-preview__line--strong { background: rgb(14 15 19 / 0.3); }
.module-preview__dropzone {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--primary-200);
  border-radius: var(--erm-radius-md);
  font-size: 10px;
  color: var(--primary-300);
}
.dark .module-preview__dropzone { border-color: rgb(82 86 107 / 0.4); }

/* ErmRooms schedule */
.module-preview__scroll { overflow-x: auto; }
.module-preview__schedule {
  display: grid;
  min-inline-size: 300px;
}
.module-preview__hour {
  padding-inline: 0.25rem;
  padding-block-end: 0.5rem;
  text-align: center;
  font-size: 9px;
  color: var(--muted);
}
.module-preview__room {
  display: flex;
  align-items: center;
  padding-inline-end: 0.5rem;
  font-size: 10px;
  color: var(--muted);
}
.module-preview__slot {
  margin: 0.125rem;
  height: 1.75rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.25rem;
  background: var(--slate-100);
}
.dark .module-preview__slot {
  border-color: var(--slate-700);
  background: rgb(51 65 85 / 0.3);
}
.module-preview__slot--booked {
  border-color: var(--primary-200);
  background: rgb(216 218 225 / 0.6);
}
.dark .module-preview__slot--booked {
  border-color: var(--primary-600);
  background: rgb(82 86 107 / 0.3);
}

/* ErmDesk tickets */
.module-preview__tickets { display: grid; gap: 0.5rem; }
.module-preview__ticket {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--erm-radius-md);
  background: var(--surface);
  padding: 0.625rem;
}
.dark .module-preview__ticket { background: rgb(51 65 85 / 0.3); }
.module-preview__status {
  height: 0.625rem;
  width: 0.625rem;
  flex-shrink: 0;
  border-radius: var(--erm-radius-full);
  background: var(--slate-300);
}
.dark .module-preview__status { background: var(--slate-600); }
.module-preview__status--done { background: #4ade80; }
.module-preview__status--open { background: #fbbf24; }
.module-preview__ticket-line {
  height: 0.625rem;
  border-radius: 0.25rem;
  background: var(--slate-200);
}
.dark .module-preview__ticket-line { background: var(--slate-600); }
.module-preview__ticket-tag {
  margin-inline-start: auto;
  height: 1rem;
  min-inline-size: 3rem;
  border-radius: 0.25rem;
  text-align: center;
  font-size: 7px;
  line-height: 1rem;
  background: var(--slate-100);
  color: var(--slate-400);
}
.dark .module-preview__ticket-tag { background: rgb(71 85 105 / 0.3); }
.module-preview__ticket-tag--done {
  background: #dcfce7;
  color: #16a34a;
}
.dark .module-preview__ticket-tag--done {
  background: rgb(20 83 45 / 0.3);
  color: #4ade80;
}
.module-preview__ticket-tag--open {
  background: #fef3c7;
  color: #d97706;
}
.dark .module-preview__ticket-tag--open {
  background: rgb(120 53 15 / 0.3);
  color: #fbbf24;
}

/* Bottom CTA */
.modules-cta {
  background: linear-gradient(to right, #3b3e4c, #52566b, #686d85);
  padding-block: 5rem;
}
.modules-cta__content {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}
.modules-cta__title {
  font-family: var(--erm-font-display);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
}
.modules-cta__actions { margin-block-start: 2rem; }

/* ---- fragment: page-hero.css ---- */
/* ============================================================
   Page hero: the compact hero of /features and /modules
   (partials/page-hero.php, motion in page-hero.js), 2026-10-01.
   ============================================================ */

/* Pulls up under the fixed, transparent header like .about-hero, so the
   ground reaches the top edge; the breadcrumb is laid over it out of flow
   (see _fragments/breadcrumbs.css), which is why the padding reserves it. */

.page-hero {
  /* --erm-crumbs-h is declared on .erm-breadcrumbs, not :root, so it is out of
     scope here; without a local copy every calc() below is invalid and the
     padding silently drops to zero. */
  --erm-crumbs-h: 2.5rem;
  --ph-x: 30%; /* the purple field's centre; page-hero.js eases it toward the pointer */
  --ph-y: 20%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block-start: calc(-1 * var(--header-height));
  padding-block: calc(var(--header-height) + var(--erm-crumbs-h) + 1.25rem) 2rem;
  text-align: center;
}
@media (min-width: 640px) {
  .page-hero { padding-block: calc(var(--header-height) + var(--erm-crumbs-h) + 2rem) 2.5rem; }
}

/* --- Ground: three soft colour fields (the site's purple, amber, mint), a
   grain over them, and one mask over the lot so it all dissolves into the
   canvas before the first section. No hard edge, no band. --- */
.page-hero__ground {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
.page-hero__field { position: absolute; border-radius: 50%; filter: blur(60px); }
.page-hero__field--a {
  width: 46rem;
  height: 30rem;
  left: var(--ph-x);
  top: var(--ph-y);
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(127 62 241 / 0.34), rgb(127 62 241 / 0));
}
.page-hero__field--b {
  width: 34rem;
  height: 24rem;
  right: -6rem;
  top: -4rem;
  background: radial-gradient(closest-side, rgb(255 196 102 / 0.4), rgb(255 196 102 / 0));
}
.page-hero__field--c {
  width: 30rem;
  height: 20rem;
  left: -8rem;
  bottom: -6rem;
  background: radial-gradient(closest-side, rgb(35 196 143 / 0.22), rgb(35 196 143 / 0));
}
.dark .page-hero__field--a { background: radial-gradient(closest-side, rgb(127 62 241 / 0.42), rgb(127 62 241 / 0)); }
.dark .page-hero__field--b { background: radial-gradient(closest-side, rgb(255 196 102 / 0.16), rgb(255 196 102 / 0)); }
.dark .page-hero__field--c { background: radial-gradient(closest-side, rgb(35 196 143 / 0.14), rgb(35 196 143 / 0)); }

/* Grain: a tiled fractal-noise SVG. Overlay keeps it reading as texture in
   the fields and almost vanishing on the plain canvas around them. */
.page-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-image: var(--erm-grain);
  background-size: 160px 160px;
}
.dark .page-hero__grain { opacity: 0.4; mix-blend-mode: soft-light; }

/* The fields drift on their own when nothing else moves them (no pointer,
   touch screens), slowly enough to read as light rather than motion. */
@media (prefers-reduced-motion: no-preference) {
  .page-hero__field--b { animation: ph-drift-b 18s ease-in-out infinite alternate; }
  .page-hero__field--c { animation: ph-drift-c 22s ease-in-out infinite alternate; }
}
@keyframes ph-drift-b { to { transform: translate(-5rem, 3rem) scale(1.12); } }
@keyframes ph-drift-c { to { transform: translate(6rem, -2rem) scale(0.92); } }

/* --- Copy --- */
.page-hero__content { margin-inline: auto; max-width: 46rem; }
.page-hero__title {
  margin: 0;
  font-family: var(--erm-font-display);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
}
.page-hero__subtitle {
  margin: 1rem auto 0;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted-strong);
}
.dark .page-hero__subtitle { color: var(--slate-400); }

/* --- Section pills on a rail. The rail sits behind the row and is what the
   motion draws: separate parts, then one line through all of them. --- */
.page-hero__nav { position: relative; margin: 1.75rem auto 0; max-width: 60rem; }
.page-hero__rail {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, rgb(127 62 241 / 0), rgb(127 62 241 / 0.45) 15%, rgb(127 62 241 / 0.45) 85%, rgb(127 62 241 / 0));
  transform-origin: left;
}
[dir="rtl"] .page-hero__rail { transform-origin: right; }
.dark .page-hero__rail { background: linear-gradient(90deg, rgb(201 189 255 / 0), rgb(201 189 255 / 0.35) 15%, rgb(201 189 255 / 0.35) 85%, rgb(201 189 255 / 0)); }
/* A spark that runs the rail: the parts talking to each other. */
.page-hero__rail-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero__rail-pulse { animation: ph-pulse 4.5s ease-in-out 1.6s infinite; }
}
@keyframes ph-pulse {
  0% { transform: translateX(-6rem); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(calc(60rem * 0.84)); opacity: 0; }
}
@media (max-width: 767px) { .page-hero__rail { display: none; } }

.page-hero__list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--border);
  border-radius: 100rem;
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0.375rem 1rem 0.375rem 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-strong);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
[dir="rtl"] .page-hero__pill { padding: 0.375rem 0.375rem 0.375rem 1rem; }
.dark .page-hero__pill { background: rgb(25 31 41 / 0.66); }
.page-hero__pill:hover { border-color: rgb(127 62 241 / 0.55); background: rgb(255 255 255 / 0.92); }
.dark .page-hero__pill:hover { border-color: rgb(201 189 255 / 0.45); background: rgb(25 31 41 / 0.9); }
.page-hero__pill:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; }
.page-hero__pill-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 100rem;
  background: rgb(127 62 241 / 0.1);
  color: var(--blue-600);
}
.dark .page-hero__pill-icon { background: rgb(201 189 255 / 0.14); color: #dad3ff; }
.page-hero__pill-icon .feature-icon { width: 1.125rem; height: 1.125rem; }

/* Phones: one swipeable row instead of a stack of four, bleeding to the
   screen edge, with the ends faded so it reads as "there is more". */
@media (max-width: 639px) {
  .page-hero__nav { margin-inline: -1rem; }
  .page-hero__list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-inline: 1rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 2.5rem), transparent);
  }
  [dir="rtl"] .page-hero__list {
    -webkit-mask-image: linear-gradient(270deg, transparent, #000 1rem, #000 calc(100% - 2.5rem), transparent);
    mask-image: linear-gradient(270deg, transparent, #000 1rem, #000 calc(100% - 2.5rem), transparent);
  }
  .page-hero__list::-webkit-scrollbar { display: none; }
  .page-hero__list > li { flex: none; scroll-snap-align: start; }
}

/* The first section starts closer now that the hero is compact. (Adjacency,
   not :first-of-type: the hero is itself the first <section>.) */
.page-hero + .features-block,
.page-hero + .modules-block { padding-block-start: 2.5rem; }

/* ---- fragment: picture.css ---- */
/* <picture> wrapper must not introduce a box: the <img> keeps its own class and layout */
.erm-picture { display: contents; }

/* ---- fragment: pricing.css ---- */
/* ============================================================
   Pricing page (templates/pages/pricing.php)
   Port of src/components/pricing/PricingPageContent.tsx
   ============================================================ */

/* --- Shared section headings --- */
.pricing-section__title {
  font-family: var(--erm-font-display, inherit);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--fg-strong);
}
.pricing-section__title--sm { font-size: 1.5rem; }
.pricing-section__subtitle {
  margin-block-start: 0.5rem;
  font-size: 1rem;
  color: var(--muted);
}
.pricing-section__subtitle--sm { font-size: 0.875rem; }

/* --- Illustration fills (decorative SVGs) --- */
.pricing .pf-a { fill: var(--surface-hover); }
.pricing .pf-b { fill: var(--border); }
.pricing .pf-c { fill: var(--border-soft); }
.pricing .pf-acc { fill: var(--primary-500, #686d85); fill-opacity: 0.6; }
.pricing .pf-acc-solid { fill: var(--primary-500, #686d85); }
.pricing .pf-accsoft { fill: var(--primary-300, #9fa3b4); fill-opacity: 0.35; }
.pricing .pf-card { fill: var(--card-bg); }
.pricing .pf-amber { fill: #fcd34d; fill-opacity: 0.45; }
.pricing .pf-amber-strong { fill: #f59e0b; fill-opacity: 0.8; }
.pricing .pf-red { fill: #fca5a5; }

/* --- Hero + controls --- */
.pricing-hero { padding-block: 3.5rem 0; }
@media (min-width: 640px) { .pricing-hero { padding-block: 5rem 0; } }
.pricing-hero__inner {
  margin-inline: auto;
  max-inline-size: 42rem;
  text-align: center;
}
.pricing-hero__title {
  font-family: var(--erm-font-display, inherit);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
}
@media (min-width: 640px) { .pricing-hero__title { font-size: 3rem; } }
.pricing-hero__subtitle {
  margin-block-start: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
}

/* --- Package switcher (CSS-only radio tabs, works without JS) --- */
.pricing-plans { padding-block: 2.5rem 4rem; }
.plan-switch { margin-block-start: 2.5rem; }
.plan-switch__radio { position: absolute; opacity: 0; pointer-events: none; }
.plan-switch__tabs {
  margin-inline: auto;
  margin-block-end: 2rem;
  display: flex;
  gap: 0.25rem;
  inline-size: fit-content;
  max-inline-size: 100%;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-full);
  background: var(--surface);
}
.plan-switch__tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--erm-radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-strong);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.plan-switch__tab:hover { color: var(--fg-strong); }
#plan-erm:checked ~ .plan-switch__tabs .plan-switch__tab[for="plan-erm"],
#plan-bundle:checked ~ .plan-switch__tabs .plan-switch__tab[for="plan-bundle"] {
  background: var(--card-bg);
  color: var(--fg-strong);
  box-shadow: none;
}
#plan-erm:focus-visible ~ .plan-switch__tabs .plan-switch__tab[for="plan-erm"],
#plan-bundle:focus-visible ~ .plan-switch__tabs .plan-switch__tab[for="plan-bundle"] {
  outline: 2px solid var(--blue-500, #9670f9);
  outline-offset: 2px;
}

/* --- Package panel: an ink slab with two soft colour fields (signal purple
   and amber) behind a faint grid, and a hairline — so it reads as a lifted
   card on the paper canvas *and* on the night-desk canvas, where the old
   flat slate-900 fill vanished into the page. --- */
.plan-panel {
  position: relative;
  display: none;
  gap: 2rem;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--erm-radius-2xl);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(127 62 241 / 0.34), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, rgb(240 160 32 / 0.2), transparent 62%),
    linear-gradient(160deg, #151d33 0%, var(--ink, #0b1120) 70%);
  color: #fff;
}
.dark .plan-panel {
  border-color: rgb(255 255 255 / 0.12);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(201 189 255 / 0.24), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, rgb(255 196 102 / 0.16), transparent 62%),
    linear-gradient(160deg, #252f40 0%, #171e2a 70%);
}
.plan-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 90% at 60% 40%, #000 20%, transparent 100%);
  mask-image: radial-gradient(80% 90% at 60% 40%, #000 20%, transparent 100%);
}
.plan-panel > * { position: relative; z-index: 1; }
#plan-erm:checked ~ .plan-panel[data-plan="erm"],
#plan-bundle:checked ~ .plan-panel[data-plan="bundle"] { display: grid; }
@media (min-width: 1024px) {
  .plan-panel { grid-template-columns: 1.1fr 1fr; gap: 3rem; padding: 3rem; align-items: center; }
}
/* Bundle: amber leads, purple answers. */
.plan-panel--bundle {
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(240 160 32 / 0.3), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, rgb(127 62 241 / 0.3), transparent 62%),
    linear-gradient(160deg, #1a1b33 0%, var(--ink, #0b1120) 70%);
}
.dark .plan-panel--bundle {
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(255 196 102 / 0.2), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, rgb(201 189 255 / 0.22), transparent 62%),
    linear-gradient(160deg, #2a2a3c 0%, #171e2a 70%);
}
/* "What's included" sits in a frosted inset so the list has its own edge. */
.plan-panel__body {
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--erm-radius-xl);
  background: rgb(255 255 255 / 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.plan-panel__badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--erm-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.85);
}
.plan-panel__badge--accent {
  border-color: transparent;
  background: var(--accent-2, #f0a020);
  color: var(--ink, #0b1120);
}
.plan-panel__title {
  margin-block-start: 1rem;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  /* the global h1-h6 rule sets --fg-strong, which beats the panel's inherited #fff */
  color: #fff;
}
@media (min-width: 640px) { .plan-panel__title { font-size: 2.25rem; } }
.plan-panel__subtitle {
  margin-block-start: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.7);
}
.plan-panel .bundle-pill {
  background: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.9);
  box-shadow: none;
}
.plan-panel__cta {
  margin-block-start: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--erm-radius-md);
  background: var(--blue-600, #824eed);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s;
}
.plan-panel__cta:hover { background: var(--blue-500, #9670f9); }
.dark .plan-panel__cta { background: #c9bdff; color: var(--ink, #0b1120); }
.dark .plan-panel__cta:hover { background: #d8d0ff; }
.plan-panel__cta .icon { transition: transform 0.2s; }
.plan-panel__cta:hover .icon { transform: translateX(0.125rem); }
[dir="rtl"] .plan-panel__cta:hover .icon { transform: translateX(-0.125rem); }
.plan-panel__included {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.5);
}
.plan-panel__features {
  margin-block-start: 1rem;
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) { .plan-panel__features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .plan-panel__features { grid-template-columns: 1fr; } }
.plan-panel__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.85);
}
.plan-panel__check {
  flex-shrink: 0;
  margin-block-start: 0.125rem;
  color: var(--blue-400, #af97ff);
}

/* --- Module chips (shared with the bundle panel) --- */
.bundle-pills {
  margin-block-start: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.bundle-pill {
  padding: 0.25rem 0.625rem;
  border-radius: var(--erm-radius-sm);
  background: var(--card-bg);
  box-shadow: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-strong);
}

/* --- Feature bullets (add-on + support cards) --- */
.plan-card__dot {
  margin-block-start: 0.5rem;
  block-size: 0.375rem;
  inline-size: 0.375rem;
  flex-shrink: 0;
  border-radius: var(--erm-radius-full);
  background: var(--primary-500, #686d85);
}
.plan-card__dot--sm {
  margin-block-start: 0.375rem;
  block-size: 0.25rem;
  inline-size: 0.25rem;
}

/* --- Add-on modules --- */
.pricing-addons {
  padding-block: 4rem;
  background: var(--surface);
}
.pricing-addons__head { text-align: center; }
.pricing-addons__grid {
  margin-block-start: 3rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) { .pricing-addons__grid { grid-template-columns: 1fr 1fr; } }
.addon-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  transition: border-color 0.2s;
}
/* Three add-ons (ErmDesk hidden): the first spans both columns and lays
   out sideways — a bento row instead of a hole. */
@media (min-width: 640px) {
  .addon-card:first-child:nth-last-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .addon-card:first-child:nth-last-child(3) .addon-card__ill { block-size: 100%; min-block-size: 11rem; }
}
.addon-card:hover { box-shadow: none; }
.addon-card__ill {
  block-size: 11rem;
  padding: 1rem;
  background: var(--surface);
  transition: background 0.2s;
}
.addon-card:hover .addon-card__ill { background: var(--surface-hover); }
.addon-card__svg { inline-size: 100%; block-size: 100%; }
.addon-card__content { padding: 1.5rem; }
.addon-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.addon-card__meta { display: flex; align-items: center; gap: 0.75rem; }
.addon-card__icon {
  display: flex;
  block-size: 2.5rem;
  inline-size: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-lg);
  background: var(--surface-hover);
  color: var(--muted-strong);
}
.addon-card__title { font-size: 1.125rem; font-weight: 700; color: var(--fg-strong); }
.addon-card__subtitle { font-size: 0.75rem; color: var(--muted); }
.addon-card__features {
  margin-block-start: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
  margin-inline: 0;
  padding: 0;
}
.addon-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted-strong);
}

/* --- Included free --- */
.pricing-free {
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
  background: linear-gradient(to bottom, var(--surface), var(--bg));
}
.pricing-free::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgb(110 113 135 / 0.07) 1px, transparent 0);
  background-size: 24px 24px;
}
.pricing-free__container { position: relative; }
.pricing-free__head { text-align: center; }
.pricing-free__head .pricing-section__title { margin-block-start: 1rem; }
.pricing-free__subtitle {
  margin-inline: auto;
  margin-block-start: 0.75rem;
  max-inline-size: 36rem;
}
.pricing-free__grid {
  margin-inline: auto;
  margin-block-start: 3rem;
  display: grid;
  max-inline-size: 64rem;
  gap: 2rem;
}
@media (min-width: 640px) { .pricing-free__grid { grid-template-columns: repeat(3, 1fr); } }
.free-card {
  block-size: 100%;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
  box-shadow: none;
  transition: box-shadow 0.2s;
}
.free-card:hover { box-shadow: none; }
.free-card__ill {
  margin-block-end: 1.25rem;
  display: flex;
  block-size: 8rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--erm-radius-lg);
  background: var(--surface);
}
.free-card__svg { block-size: 100%; inline-size: auto; }
.free-card__svg-text {
  fill: var(--fg-strong);
  font-size: 10px;
  font-weight: 700;
}
.free-card__svg-badge {
  fill: #fff;
  font-size: 8px;
  font-weight: 700;
}
.free-card__svg-badge--sub { font-size: 6px; font-weight: 400; fill-opacity: 0.85; }
.free-card__gear { transform-origin: 70px 60px; animation: pricing-gear-spin 3s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .free-card__gear { animation: none; }
}
@keyframes pricing-gear-spin { to { transform: rotate(360deg); } }
.free-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.free-card__title { font-size: 1.125rem; font-weight: 700; color: var(--fg-strong); }
.free-card__badge { background: var(--surface); color: var(--muted-strong); }
.free-card__desc {
  margin-block-start: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-strong);
}

/* --- Support plans --- */
.pricing-support {
  padding-block: 4rem;
  border-block-start: 1px solid var(--border-soft);
  background: var(--surface);
}
.pricing-support__head { text-align: center; }
.pricing-support__grid {
  margin-inline: auto;
  margin-block-start: 2.5rem;
  display: grid;
  max-inline-size: 64rem;
  gap: 1.5rem;
}
@media (min-width: 640px) { .pricing-support__grid { grid-template-columns: repeat(3, 1fr); } }
.support-card {
  display: flex;
  block-size: 100%;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-xl);
  background: var(--card-bg);
}
.support-card--featured { border-color: var(--primary-300, #9fa3b4); }
.support-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.support-card__name-wrap { display: flex; align-items: center; gap: 0.5rem; }
.support-card__icon { color: var(--muted); }
.support-card__name { font-weight: 600; color: var(--fg-strong); }
.support-card__badge--free { background: var(--surface); color: var(--muted-strong); }
.support-card__badge--outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted-strong);
}
.support-card__desc { margin-block-start: 0.5rem; font-size: 0.75rem; color: var(--muted); }
.support-card__features {
  margin-block-start: 1rem;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  border-block-start: 1px solid var(--border-soft);
  padding-block-start: 1rem;
  list-style: none;
  margin-inline: 0;
  padding-inline: 0;
}
.support-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-strong);
}
.support-card__cta {
  margin-block-start: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-strong);
  text-decoration: none;
  transition: background 0.2s;
}
.support-card__cta:hover { background: var(--surface); }
.support-card__cta--blue {
  border-color: transparent;
  background: var(--blue-600, #824eed);
  color: #fff;
}
.support-card__cta--blue:hover { background: var(--blue-500, #9670f9); }

/* --- SLA --- */
.pricing-sla { padding-block: 4rem; }
.pricing-sla__head { text-align: center; }
.pricing-sla__icon {
  margin-inline: auto;
  display: block;
  color: var(--primary-500, #686d85);
}
.pricing-sla__head .pricing-section__title { margin-block-start: 0.75rem; }
.pricing-sla__grid {
  margin-inline: auto;
  margin-block-start: 2.5rem;
  display: grid;
  max-inline-size: 56rem;
  gap: 1.5rem;
}
@media (min-width: 640px) { .pricing-sla__grid { grid-template-columns: 1fr 1fr; } }
.sla-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
}
.sla-card__title { font-weight: 600; color: var(--fg-strong); }
.sla-card__desc {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-strong);
}

/* --- Enterprise note --- */
.pricing-note { padding-block: 2rem; text-align: center; }
.pricing-note__text { font-size: 0.875rem; color: var(--muted); }

/* --- FAQ --- */
.pricing-faq {
  padding-block: 4rem;
  border-block-start: 1px solid var(--border-soft);
}
.pricing-faq__title { text-align: center; }
.pricing-faq__list {
  margin-inline: auto;
  margin-block-start: 2rem;
  max-inline-size: 42rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-lg);
  background: var(--card-bg);
}
.pricing-faq__item + .pricing-faq__item { border-block-start: 1px solid var(--border); }
.pricing-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}
.pricing-faq__summary::-webkit-details-marker { display: none; }
.pricing-faq__summary:hover { background: var(--surface); }
.pricing-faq__q {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-strong);
  text-align: start;
}
.pricing-faq__chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s;
}
.pricing-faq__item[open] .pricing-faq__chevron { transform: rotate(180deg); }
.pricing-faq__a {
  border-block-start: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-strong);
}

/* ---- fragment: solutions.css ---- */
/* ---------- Solutions cross-links ----------
   The strip before the Features / Modules CTAs and the card that points a
   blog post at its solution page. The solution pages themselves are
   Tailwind-first (templates/pages/solution*.php). */

/* --- Strip: "How it works for your team" --- */
.erm-solutions-strip { padding-block: 0 4rem; }
.erm-solutions-strip__inner {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-2xl);
  background: var(--card-bg);
}
.dark .erm-solutions-strip__inner { background: var(--surface); }
@media (min-width: 1024px) {
  .erm-solutions-strip__inner { grid-template-columns: 1fr 1.5fr; align-items: center; padding: 2rem 2.5rem; gap: 2.5rem; }
}
.erm-solutions-strip__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
}
.dark .erm-solutions-strip__label { color: #dad3ff; }
.erm-solutions-strip__title {
  margin-block-start: 0.5rem;
  font-family: var(--erm-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}
.erm-solutions-strip__subtitle { margin-block-start: 0.5rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted-strong); }
.erm-solutions-strip__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.erm-solutions-strip__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--erm-radius-full);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-strong);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.erm-solutions-strip__chip .icon { color: var(--blue-600); }
.dark .erm-solutions-strip__chip { background: rgb(255 255 255 / 0.04); }
.dark .erm-solutions-strip__chip .icon { color: #dad3ff; }
.erm-solutions-strip__chip:hover { border-color: var(--slate-300); background: var(--card-bg); }
.dark .erm-solutions-strip__chip:hover { border-color: rgb(255 255 255 / 0.2); background: rgb(255 255 255 / 0.08); }
.erm-solutions-strip__chip--all { border-style: dashed; color: var(--blue-600); }
.dark .erm-solutions-strip__chip--all { color: #dad3ff; }

/* --- Blog post → solution card: an ink slab with the two colour fields --- */
.erm-post-solution {
  position: relative;
  overflow: hidden;
  margin-block-start: 2.5rem;
  padding: 1.5rem;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--erm-radius-2xl);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(127 62 241 / 0.34), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, rgb(240 160 32 / 0.2), transparent 62%),
    linear-gradient(160deg, #151d33 0%, var(--ink, #0b1120) 70%);
  color: #fff;
}
.dark .erm-post-solution {
  border-color: rgb(255 255 255 / 0.12);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(201 189 255 / 0.24), transparent 62%),
    radial-gradient(50% 70% at 0% 100%, rgb(255 196 102 / 0.16), transparent 62%),
    linear-gradient(160deg, #252f40 0%, #171e2a 70%);
}
@media (min-width: 640px) { .erm-post-solution { padding: 1.75rem 2rem; } }
.erm-post-solution__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.6);
}
.erm-post-solution__meta { margin-block-start: 0.625rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.erm-post-solution__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--erm-radius-full);
  background: rgb(255 255 255 / 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.85);
}
.erm-post-solution__title {
  margin-block-start: 0.875rem;
  font-family: var(--erm-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
}
.erm-post-solution__title a { color: inherit; text-decoration: none; }
.erm-post-solution__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.erm-post-solution__answer {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.erm-post-solution__actions { margin-block-start: 1.125rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.erm-post-solution__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--erm-radius-full);
  background: #fff;
  color: var(--ink, #0b1120);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.erm-post-solution__cta:hover { background: #e6ecf5; }
.erm-post-solution__hub { font-size: 0.8125rem; color: rgb(255 255 255 / 0.8); text-decoration: underline; text-underline-offset: 3px; }
.erm-post-solution__hub:hover { color: #fff; }

/* ==================== 06 UTILITIES ==================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }

/* ==================== 07 DARK (residuals) ==================== */
/* Most dark handling lives in the semantic aliases above. */

/* ==================== 08 RTL ==================== */
[dir="rtl"] { text-align: right; }
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  letter-spacing: 0 !important;
}
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

/* ==================== 09 MOTION ==================== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(-15deg); }
  100% { transform: translateX(200%) rotate(-15deg); }
}

/* reveal-on-scroll: JS adds .js-reveal-ready to <html>, then .is-visible per element.
   Without JS nothing is hidden. */
.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}
.js-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.js-reveal-ready [data-reveal="left"] { transform: translateX(-24px); }
.js-reveal-ready [data-reveal="right"] { transform: translateX(24px); }
.js-reveal-ready [data-reveal="left"].is-visible,
.js-reveal-ready [data-reveal="right"].is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
}
