/* === inlined tokens-base.css === */
/* Colour & type tokens — brand colours sampled from the logo. */

/* Manrope + JetBrains Mono (variable, latin + latin-ext), self-hosted — no external request. */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('assets/fonts/jetbrainsmono-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; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('assets/fonts/jetbrainsmono-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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/manrope-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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/manrope-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; }

:root {
  /* -------- Brand colors (sampled from logo) -------------- */
  --c-ink:           #0E172B;   /* IT-EXPRESS wordmark */
  --c-express-blue:  #2562EA;   /* The "X" */
  --c-slate:         #465469;   /* BAYERN tier */
  --c-mist:          #CAD5E0;   /* Em-dash & tagline */

  /* -------- Neutral surface palette ----------------------- */
  --c-paper:         #FFFFFF;
  --c-snow:          #F6F8FB;
  --c-fog:           #EDF1F6;
  --c-cloud:         #DCE3EC;
  --c-graphite:      #1B2540;

  /* -------- Ink tint scale (text + secondary) ------------- */
  --c-ink-900:       #0E172B;
  --c-ink-700:       #283149;
  --c-ink-500:       #465469;
  --c-ink-300:       #8C97A8;
  --c-ink-200:       #B4BCC8;
  --c-ink-100:       #CAD5E0;
  --c-ink-050:       #EDF1F6;

  /* -------- Express Blue scale ---------------------------- */
  --c-blue-900:      #0F2D86;
  --c-blue-700:      #1A47C2;
  --c-blue-600:      #2562EA;   /* canonical */
  --c-blue-500:      #4C7DEE;
  --c-blue-200:      #B8CBF7;
  --c-blue-100:      #DCE6FB;
  --c-blue-050:      #EFF3FE;

  /* -------- Semantic status colors ------------------------ */
  --c-success:       #058A5E;
  --c-success-bg:    #E6F4EE;
  --c-warning:       #B16A00;
  --c-warning-bg:    #FBEFD8;
  --c-danger:        #C0271A;
  --c-danger-bg:     #FBE7E4;
  --c-info:          var(--c-blue-600);
  --c-info-bg:       var(--c-blue-050);

  /* -------- Foreground roles ------------------------------ */
  --fg-1:            var(--c-ink-900);   /* primary text */
  --fg-2:            var(--c-ink-700);   /* default body */
  --fg-3:            var(--c-ink-500);   /* secondary, captions */
  --fg-4:            var(--c-ink-300);   /* tertiary, hints */
  --fg-disabled:     var(--c-ink-200);
  --fg-on-brand:     #FFFFFF;
  --fg-link:         var(--c-blue-600);
  --fg-link-hover:   var(--c-blue-700);

  /* -------- Background roles ------------------------------ */
  --bg-page:         var(--c-paper);
  --bg-surface:      var(--c-paper);
  --bg-muted:        var(--c-snow);
  --bg-sunken:       var(--c-fog);
  --bg-inverse:      var(--c-ink-900);
  --bg-brand:        var(--c-blue-600);
  --bg-brand-hover:  var(--c-blue-700);

  /* -------- Borders --------------------------------------- */
  --border-subtle:   var(--c-ink-100);   /* default 1px */
  --border-strong:   var(--c-ink-300);
  --border-ink:      var(--c-ink-900);
  --border-focus:    var(--c-blue-600);

  /* -------- Shadows --------------------------------------- */
  --shadow-sm:       0 1px 2px rgba(14, 23, 43, 0.06);
  --shadow-md:       0 6px 16px -4px rgba(14, 23, 43, 0.10);
  --shadow-lg:       0 20px 40px -12px rgba(14, 23, 43, 0.18);
  --shadow-focus:    0 0 0 2px var(--c-paper), 0 0 0 4px var(--c-blue-600);

  /* -------- Radii ----------------------------------------- */
  --radius-xs:       4px;
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-full:     9999px;

  /* -------- Spacing (4px base, 8px step) ------------------ */
  --space-1:         4px;
  --space-2:         8px;
  --space-3:         12px;
  --space-4:         16px;
  --space-5:         24px;
  --space-6:         32px;
  --space-7:         48px;
  --space-8:         64px;
  --space-9:         96px;
  --space-10:        128px;

  /* -------- Typography ------------------------------------ */
  --font-display:    'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:       'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, SFMono-Regular, 'Roboto Mono', monospace;

  /* Display sizes (marketing heroes) */
  --t-display-xl:    72px;   /* hero */
  --t-display-lg:    56px;
  --t-display-md:    44px;

  /* Headings */
  --t-h1:            36px;
  --t-h2:            28px;
  --t-h3:            22px;
  --t-h4:            18px;
  --t-h5:            16px;

  /* Body */
  --t-body-lg:       18px;
  --t-body:          16px;
  --t-body-sm:       14px;
  --t-caption:       13px;
  --t-eyebrow:       12px;

  /* Line heights */
  --lh-tight:        1.05;
  --lh-snug:         1.2;
  --lh-normal:       1.45;
  --lh-relaxed:      1.6;

  /* Letter spacing */
  --ls-tight:        -0.02em;
  --ls-normal:       0;
  --ls-eyebrow:      0.12em;

  /* -------- Motion ---------------------------------------- */
  --ease-out:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:     cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast:        120ms;
  --dur-base:        180ms;
  --dur-slow:        220ms;

  /* -------- Layout ---------------------------------------- */
  --layout-max:      1200px;
  --layout-gutter:   24px;
  --layout-side:     80px;
}

/* ===========  Base typography  =========== */

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-2);
  background: var(--bg-page);
  font-feature-settings: 'kern', 'ss01';
}

/* Semantic tags map to tokens — override per-context as needed */
h1, .h1 { font-family: var(--font-display); font-size: var(--t-h1); font-weight: 800; line-height: var(--lh-snug); letter-spacing: var(--ls-tight); color: var(--fg-1); }
h2, .h2 { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 800; line-height: var(--lh-snug); letter-spacing: var(--ls-tight); color: var(--fg-1); }
h3, .h3 { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 700; line-height: var(--lh-snug); color: var(--fg-1); }
h4, .h4 { font-family: var(--font-display); font-size: var(--t-h4); font-weight: 700; line-height: var(--lh-normal); color: var(--fg-1); }
h5, .h5 { font-family: var(--font-display); font-size: var(--t-h5); font-weight: 600; line-height: var(--lh-normal); color: var(--fg-1); }

p { margin: 0 0 var(--space-4); }
small, .caption { font-size: var(--t-caption); color: var(--fg-3); }
code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.92em; }

.display-xl { font-family: var(--font-display); font-size: var(--t-display-xl); font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--fg-1); }
.display-lg { font-family: var(--font-display); font-size: var(--t-display-lg); font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--fg-1); }
.display-md { font-family: var(--font-display); font-size: var(--t-display-md); font-weight: 800; line-height: var(--lh-snug); letter-spacing: var(--ls-tight); color: var(--fg-1); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-3);
}

a { color: var(--fg-link); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--fg-link-hover); }

::selection { background: var(--c-blue-100); color: var(--c-ink-900); }

/* === inlined tokens.css === */
/* ============================================================
   IT-EXPRESS Bayern — Tokens (extended)
   --------------------------------------------------------------
   Wraps the base design-system tokens and layers on:
     · Dark Mode  (html[data-theme="dark"])
     · Tweak modes (type-scale, radius, density)
   ============================================================ */


/* ---------------------------------------------------------------
   Type-scale tweaks
   ─ ruhig    : default (closer Manrope sizes, controlled rhythm)
   ─ dramatisch: bigger display, more contrast top-to-bottom
   --------------------------------------------------------------- */
:root[data-typescale="dramatisch"] {
  --t-display-xl: 96px;
  --t-display-lg: 72px;
  --t-display-md: 56px;
  --t-h1: 44px;
  --t-h2: 32px;
  --t-h3: 24px;
}

/* ---------------------------------------------------------------
   Radius tweaks
   ─ weich   : default (8 / 12 / 20 — quiet modern)
   ─ scharf  : sharp, almost zero radius — engineered, technical
   --------------------------------------------------------------- */
:root[data-radius="scharf"] {
  --radius-xs: 0px;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
}

/* ---------------------------------------------------------------
   Density tweaks
   ─ komfortabel: default (current spacing)
   ─ kompakt    : 75% inner spacing
   --------------------------------------------------------------- */
:root[data-density="kompakt"] {
  --space-1: 3px;
  --space-2: 6px;
  --space-3: 9px;
  --space-4: 12px;
  --space-5: 18px;
  --space-6: 24px;
  --space-7: 36px;
  --space-8: 48px;
  --space-9: 72px;
  --space-10: 96px;
}

/* ---------------------------------------------------------------
   Dark Mode
   ─ Mapped roles only — brand hex stays sampled-from-logo.
   ─ Express Blue stays vivid; surfaces invert to deep ink.
   --------------------------------------------------------------- */
:root[data-theme="dark"] {
  --c-paper: #0B1322;
  --c-snow:  #0F1A2E;
  --c-fog:   #14223B;
  --c-cloud: #1B2A47;

  /* Ink role scale flips: 900 = lightest, 050 = darkest surface */
  --c-ink-900: #F2F5FA;
  --c-ink-700: #C7CFDD;
  --c-ink-500: #8E99AE;
  --c-ink-300: #5A6781;
  --c-ink-200: #3D4A66;
  --c-ink-100: #283149;
  --c-ink-050: #18223B;

  /* Foreground roles */
  --fg-1: #F2F5FA;
  --fg-2: #C7CFDD;
  --fg-3: #8E99AE;
  --fg-4: #5A6781;
  --fg-disabled: #3D4A66;

  /* Backgrounds */
  --bg-page: #0B1322;
  --bg-surface: #14223B;
  --bg-muted: #0F1A2E;
  --bg-sunken: #0B1322;
  --bg-inverse: #F2F5FA;

  /* Borders */
  --border-subtle: #1B2A47;
  --border-strong: #3D4A66;
  --border-ink: #F2F5FA;

  /* Blue scale tilts brighter so it pops on dark ink */
  --c-blue-050: #0F2147;
  --c-blue-100: #15306B;
  --c-blue-200: #1E45A0;
  --c-blue-500: #5C8AF2;
  --c-blue-600: #6F9BFF;
  --c-blue-700: #4C7DEE;

  --bg-brand: var(--c-blue-600);
  --bg-brand-hover: var(--c-blue-500);
  --fg-link: var(--c-blue-500);
  --fg-link-hover: var(--c-blue-600);

  /* Status tints — keep saturation, drop luminance background */
  --c-success-bg: #0E2A22;
  --c-warning-bg: #2B1F0C;
  --c-danger-bg:  #2B100E;
  --c-info-bg:    #0F2147;

  /* Shadows: lighter overlay since surface is already dark */
  --shadow-sm: 0 1px 0 rgba(255,255,255,0.04), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 16px -4px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.6);
  --shadow-focus: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--c-blue-600);

  color-scheme: dark;
}

/* ---------------------------------------------------------------
   Body baseline (re-asserted post-import so theme attr wins)
   --------------------------------------------------------------- */
html, body { background: var(--bg-page); color: var(--fg-2); }

/* === site.css === */
/* Shared styles for the marketing site and the customer portal. */


* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-page);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* Marketing site */

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* Site header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--bg-page) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .inner {
  height: 72px;
  display: flex; align-items: center; gap: 36px;
  padding: 0 32px; max-width: 1240px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 16px; letter-spacing: -0.005em;
  color: var(--fg-1);
}
.brand .x {
  color: var(--c-blue-600);
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; line-height: 1;
}
.brand .tier {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; color: var(--fg-3); letter-spacing: 0.04em;
  margin-top: 1px;
}
.brand-stack { display: flex; flex-direction: column; line-height: 1.1; }

.nav-main { display: flex; gap: 28px; }
.nav-main a {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  color: var(--fg-2); transition: color var(--dur-fast) var(--ease-out);
}
.nav-main a:hover { color: var(--fg-1); }
.nav-main a.active { color: var(--fg-1); font-weight: 600; }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn:focus-visible { outline: 2px solid var(--c-blue-600); outline-offset: 2px; }
.btn-primary { background: var(--c-blue-600); color: #fff; }
.btn-primary:hover { background: var(--c-blue-700); color: #fff; }
.btn-secondary { background: var(--bg-surface); color: var(--fg-1); border-color: var(--border-subtle); }
.btn-secondary:hover { border-color: var(--border-strong); }
.btn-dark { background: var(--c-ink-900); color: #fff; }
.btn-dark:hover { background: var(--c-graphite); }
.btn-ghost { background: transparent; color: var(--fg-1); }
.btn-ghost:hover { background: var(--bg-muted); }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: color-mix(in oklab, var(--c-danger), black 8%); color: #fff; }
.btn-success { background: var(--c-success); color: #fff; }
.btn-sm { font-size: 12px; padding: 7px 12px; }
.btn-lg { font-size: 16px; padding: 14px 22px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn[disabled], .btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Hero / sections */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: start;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow.blue { color: var(--c-blue-600); }
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: currentColor;
}

.display-xxl {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 7vw, 88px); line-height: 0.98;
  letter-spacing: -0.025em; color: var(--fg-1); margin: 16px 0 24px;
}
.display-xxl .x { color: var(--c-blue-600); }
.display-xxl .em { color: var(--fg-3); font-weight: 800; }
.display-xl { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.022em; color: var(--fg-1); margin: 12px 0 20px; }
.display-lg { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.02em; color: var(--fg-1); margin: 12px 0 16px; }
.display-md { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.015em; color: var(--fg-1); margin: 8px 0 12px; }

.lede {
  font-size: 19px; line-height: 1.55;
  color: var(--fg-3); max-width: 540px; margin: 0 0 32px;
}

.hero-meta {
  display: flex; gap: 56px; padding-top: 32px;
  border-top: 1px solid var(--border-subtle); max-width: 540px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong {
  font-family: var(--font-display); font-weight: 800;
  font-size: 24px; color: var(--fg-1); letter-spacing: -0.01em;
}
.hero-meta span { font-size: 13px; color: var(--fg-3); }

/* Hero card stack */
.hero-card-area {
  position: relative; height: 480px;
}
.h-card {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 12px;
}
.h-card.c1 { top: 0; right: 0; width: 340px; }
.h-card.c2 { top: 168px; left: 20px; width: 310px; transform: rotate(-2deg); }
.h-card.c3 { top: 320px; right: 30px; width: 280px; transform: rotate(1.5deg); }

.h-card .h {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
}
.h-card .h-title {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--fg-1);
}
.h-card .mono { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.bar { height: 6px; background: var(--bg-muted); border-radius: 99px; overflow: hidden; }
.bar > div { height: 100%; background: var(--c-blue-600); border-radius: 99px; }

.pill {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  padding: 3px 9px; border-radius: 99px; display: inline-flex; align-items: center; gap: 5px;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.pill.green { background: var(--c-success-bg); color: var(--c-success); }
.pill.amber { background: var(--c-warning-bg); color: var(--c-warning); }
.pill.blue { background: var(--c-info-bg); color: var(--c-blue-600); }
.pill.red { background: var(--c-danger-bg); color: var(--c-danger); }
.pill.neutral { background: var(--bg-muted); color: var(--fg-2); }

/* Logo wall */
.logo-wall {
  padding: 56px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.logo-wall .row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px 48px; flex-wrap: wrap; margin-top: 18px;
}
.logo-mark {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--fg-3); letter-spacing: 0.01em;
  transition: color var(--dur-fast) var(--ease-out);
}
.logo-mark:hover { color: var(--fg-1); }

/* Section header */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.muted { background: var(--bg-muted); }
.section-head {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px; align-items: end; margin-bottom: 56px;
}
.section-head .right { color: var(--fg-3); font-size: 16px; max-width: 480px; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.svc-card:hover { border-color: var(--border-strong); }
.svc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.svc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-1);
}
.svc-num { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); }
.svc-card h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  letter-spacing: -0.01em; margin: 0; color: var(--fg-1);
}
.svc-card p { color: var(--fg-3); font-size: 15px; margin: 0; line-height: 1.55; }
.svc-card ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.svc-card li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-2); }
.svc-card li i { color: var(--c-blue-600); width: 16px; height: 16px; }
.svc-link {
  margin-top: auto; padding-top: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--c-blue-600);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Process steps */
.process-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; } }
.process-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}
.step-num { font-family: var(--font-mono); font-size: 12px; color: var(--c-blue-600); font-weight: 600; }
.process-step h4 {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  margin: 12px 0 6px; color: var(--fg-1); letter-spacing: -0.005em;
}
.process-step p { font-size: 14px; color: var(--fg-3); margin: 0 0 14px; line-height: 1.55; }
.step-dur {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
}

/* Cases */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }
.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.case-card:hover { border-color: var(--border-strong); }
.case-media {
  aspect-ratio: 16/10;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 18px;
}
.case-media::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.18) 1px, transparent 0);
  background-size: 16px 16px;
  pointer-events: none;
  opacity: 0.7;
}
.case-tag {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  padding: 4px 10px; border-radius: 99px;
  position: relative; z-index: 1;
}
.case-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.case-body h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; margin: 0; color: var(--fg-1); letter-spacing: -0.01em;
}
.case-body p { font-size: 14px; color: var(--fg-3); margin: 0; line-height: 1.55; }
.case-metrics {
  display: flex; gap: 24px; margin-top: 4px;
  padding-top: 16px; border-top: 1px solid var(--border-subtle);
}
.case-metrics div { display: flex; flex-direction: column; }
.case-metrics strong {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  color: var(--fg-1); letter-spacing: -0.01em;
}
.case-metrics span { font-size: 12px; color: var(--fg-3); }

/* CTA banner */
.cta-banner {
  background: var(--c-ink-900); color: #fff;
  padding: 80px 0;
  position: relative; overflow: hidden;
}
:root[data-theme="dark"] .cta-banner { background: var(--bg-muted); }
.cta-banner h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 12px 0 20px; color: #fff;
}
:root[data-theme="dark"] .cta-banner h2 { color: var(--fg-1); }
.cta-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-banner .lede { color: var(--c-mist); font-size: 18px; max-width: 540px; margin: 0; }
:root[data-theme="dark"] .cta-banner .lede { color: var(--fg-3); }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-phone {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: #fff; display: flex; align-items: center; gap: 10px;
}
:root[data-theme="dark"] .cta-phone { color: var(--fg-1); }

/* Footer */
.site-foot {
  background: var(--c-graphite);
  color: var(--c-mist);
  padding: 64px 0 32px;
}
:root[data-theme="dark"] .site-foot { background: var(--bg-muted); color: var(--fg-3); border-top: 1px solid var(--border-subtle); }
.site-foot .row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
}
@media (max-width: 900px) { .site-foot .row { grid-template-columns: 1fr 1fr; } }
.site-foot .foot-h {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  color: #fff; margin: 0 0 14px; letter-spacing: 0.04em; text-transform: uppercase;
}
:root[data-theme="dark"] .site-foot .foot-h { color: var(--fg-1); }
.site-foot a, .site-foot p { display: block; color: inherit; font-size: 14px; margin: 0 0 8px; line-height: 1.5; }
.site-foot a:hover { color: #fff; }
:root[data-theme="dark"] .site-foot a:hover { color: var(--fg-1); }
.site-foot p { color: var(--c-mist); }
:root[data-theme="dark"] .site-foot p { color: var(--fg-3); }
.foot-brand p { margin: 16px 0 18px; max-width: 320px; }
.foot-bottom {
  display: flex; justify-content: space-between; padding-top: 28px; margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; font-family: var(--font-mono); color: rgba(255,255,255,0.5);
}
:root[data-theme="dark"] .foot-bottom { border-color: var(--border-subtle); color: var(--fg-4); }

/* Portal (app layout) */

.portal { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

.side {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 20px 14px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-brand { padding: 6px 8px 16px; }
.side-org {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  cursor: pointer;
}
.side-org:hover { background: var(--bg-muted); }
.org-avatar {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--c-ink-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
}
.org-meta { flex: 1; min-width: 0; }
.org-name { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--fg-1); }
.org-tag { font-size: 11px; color: var(--fg-3); }

.side-section { font-family: var(--font-display); font-weight: 600; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); padding: 14px 10px 6px; }

.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 500; font-size: 13px;
  color: var(--fg-2); cursor: pointer; transition: background var(--dur-fast) var(--ease-out);
  background: transparent; border: 0; text-align: left; width: 100%;
}
.side-link i { color: var(--fg-3); width: 18px; height: 18px; }
.side-link:hover { background: var(--bg-muted); color: var(--fg-1); }
.side-link:hover i { color: var(--fg-1); }
.side-link.active { background: var(--c-ink-050); color: var(--fg-1); font-weight: 600; }
.side-link.active i { color: var(--c-blue-600); }
.side-badge {
  margin-left: auto; background: var(--c-blue-600); color: #fff;
  font-family: var(--font-mono); font-size: 10px;
  padding: 1px 7px; border-radius: 99px; font-weight: 600;
}

.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 2px; }
.side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-sm); margin-top: 4px;
  cursor: pointer;
}
.side-user:hover { background: var(--bg-muted); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 99px;
  background: var(--c-blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
}
.user-meta { flex: 1; min-width: 0; }
.user-name { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--fg-1); }
.user-role { font-size: 11px; color: var(--fg-3); }

/* main */
.main { display: flex; flex-direction: column; min-width: 0; background: var(--bg-muted); }
.topbar {
  height: 64px; background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 18px;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 10;
}
.topbar-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.crumb { color: var(--fg-3); }
.crumb-active { color: var(--fg-1); font-weight: 600; }
.crumb-sep { color: var(--fg-4); }
.topbar h1 {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  color: var(--fg-1); margin: 0; letter-spacing: -0.01em;
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-muted); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 10px; width: 320px;
}
.search input {
  border: 0; background: transparent; outline: none;
  font-family: var(--font-body); font-size: 13px;
  flex: 1; color: var(--fg-1);
}
.search input::placeholder { color: var(--fg-3); }
.search kbd {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: 4px; padding: 1px 6px; color: var(--fg-3);
}
.icon-btn {
  background: transparent; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fg-2); position: relative;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--bg-muted); color: var(--fg-1); border-color: var(--border-strong, var(--border-subtle)); }
.icon-btn .dot {
  position: absolute; top: 6px; right: 8px;
  width: 7px; height: 7px; background: var(--c-blue-600);
  border: 2px solid var(--bg-surface); border-radius: 99px;
}

.content { padding: 28px; display: flex; flex-direction: column; gap: 22px; max-width: 1400px; }
.content.wide { max-width: none; }

/* Cards / panels */
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}
.panel-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 18px; gap: 16px; flex-wrap: wrap;
}
.panel-head h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  margin: 0; color: var(--fg-1); letter-spacing: -0.005em;
}
.panel-head .sub { font-size: 13px; color: var(--fg-3); margin-top: 4px; }
.panel-actions { display: flex; gap: 8px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative; overflow: hidden;
  transition: transform .25s var(--ease-out, ease), box-shadow .25s ease, border-color .25s ease;
}
.stat > * { position: relative; z-index: 1; }
.stat::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in oklab, var(--c-blue-500) 16%, transparent), transparent 62%);
  opacity: 0; transition: opacity .3s var(--ease-out, ease);
}
.stat:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--c-blue-500) 45%, var(--border-subtle)); box-shadow: 0 14px 32px -20px color-mix(in oklab, var(--c-blue-600) 60%, transparent); }
.stat:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .stat, .stat::after { transition: none !important; } .stat:hover { transform: none; } }

/* Skip-Link — Tastatur-Sprung zum Hauptinhalt (a11y). */
.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 1000;
  background: var(--c-blue-600); color: #fff;
  padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: 0 10px 28px -12px rgba(0,0,0,.5);
  transition: top .18s var(--ease-out, ease);
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

/* Globaler Tastatur-Fokusring (Fallback) — greift fuer Links u. a. fokussierbare
   Elemente ohne eigene Regel; spezifischere .btn/.input-Regeln gewinnen. */
:focus-visible { outline: 2px solid var(--c-blue-500); outline-offset: 2px; }
a:focus-visible { outline-offset: 3px; }
.stat-label { font-size: 12px; color: var(--fg-3); display: flex; align-items: center; gap: 6px; }
.stat-value {
  font-family: var(--font-display); font-weight: 800;
  font-size: 32px; color: var(--fg-1);
  letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px;
}
.stat-delta {
  font-size: 12px; margin-top: 4px;
  font-family: var(--font-display); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.stat-delta.green { color: var(--c-success); }
.stat-delta.amber { color: var(--c-warning); }
.stat-delta.red { color: var(--c-danger); }
.stat-delta.blue { color: var(--c-blue-600); }
.stat-delta.neutral { color: var(--fg-3); }

/* Tables */
.table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left;
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg-3);
  padding: 12px 16px; border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-muted);
}
.tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--fg-2); vertical-align: middle;
  transition: background-color .18s var(--ease-out, ease);
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--bg-muted); }
@media (prefers-reduced-motion: reduce) { .tbl td { transition: none; } }
.tbl .mono { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.tbl .name { font-family: var(--font-display); font-weight: 600; color: var(--fg-1); }

/* Chips */
.chip {
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: 99px; padding: 5px 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  color: var(--fg-2); cursor: pointer;
}
.chip:hover { background: var(--bg-muted); }
.chip.active, .chip:has(input:checked) { background: var(--c-ink-900); color: #fff; border-color: var(--c-ink-900); }
:root[data-theme="dark"] .chip.active, :root[data-theme="dark"] .chip:has(input:checked) { background: var(--bg-inverse); color: var(--bg-page); }
.chip:has(input:focus-visible) { outline: 2px solid var(--c-blue-500); outline-offset: 2px; }
/* Visuell versteckt, aber fuer Screenreader/Tastatur erreichbar. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Forms */
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--fg-1); }
.form-row .hint { font-size: 12px; color: var(--fg-3); }
.input, .textarea, .select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body); font-size: 14px;
  color: var(--fg-1);
  width: 100%;
}
.input:focus, .textarea:focus, .select:focus {
  outline: 2px solid var(--c-blue-600); outline-offset: 1px;
  border-color: var(--c-blue-600);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5l4 4 4-4' stroke='%238C97A8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.input-group {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 8px 12px;
}
.input-group input {
  border: 0; background: transparent; outline: none;
  flex: 1; font-family: var(--font-body); font-size: 14px;
  color: var(--fg-1);
}
.input-group .prefix, .input-group .suffix {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
}
.field-error { color: var(--c-danger); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.input.invalid, .textarea.invalid { border-color: var(--c-danger); }

.checkbox, .radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input, .radio input { width: 16px; height: 16px; accent-color: var(--c-blue-600); }
.checkbox span, .radio span { font-size: 14px; color: var(--fg-1); }

.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; gap: 10px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .knob {
  width: 36px; height: 20px;
  background: var(--bg-muted); border: 1px solid var(--border-subtle);
  border-radius: 99px; position: relative;
  transition: background var(--dur-fast) var(--ease-out);
}
.switch .knob::before {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; background: #fff;
  border-radius: 99px; box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: transform var(--dur-fast) var(--ease-out);
}
.switch input:checked + .knob { background: var(--c-blue-600); border-color: var(--c-blue-600); }
.switch input:checked + .knob::before { transform: translateX(16px); }
.switch .lbl { font-size: 14px; color: var(--fg-1); }

/* Section heads inside content */
.h-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h-row h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 0; letter-spacing: -0.01em; color: var(--fg-1); }
.h-row .sub { font-size: 13px; color: var(--fg-3); margin-top: 4px; }

/* Empty states */
.empty {
  padding: 56px 32px; text-align: center;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.empty .ico { width: 56px; height: 56px; border-radius: 99px; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; color: var(--fg-3); margin-bottom: 8px; }
.empty h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0; color: var(--fg-1); }
.empty p { font-size: 14px; color: var(--fg-3); max-width: 360px; margin: 0; }

/* Toasts */
.toast-wrap {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px; z-index: 100;
}
.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: start;
  min-width: 320px; max-width: 420px;
}
.toast .ico {
  width: 28px; height: 28px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.toast.success .ico { background: var(--c-success-bg); color: var(--c-success); }
.toast.warn .ico { background: var(--c-warning-bg); color: var(--c-warning); }
.toast.error .ico { background: var(--c-danger-bg); color: var(--c-danger); }
.toast.info .ico { background: var(--c-info-bg); color: var(--c-blue-600); }
.toast .body { flex: 1; }
.toast .ttl { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--fg-1); }
.toast .msg { font-size: 13px; color: var(--fg-3); margin-top: 2px; line-height: 1.45; }
.toast .close { background: transparent; border: 0; cursor: pointer; color: var(--fg-3); padding: 2px; }
.toast .close:hover { color: var(--fg-1); }

/* Modal */
.modal-back {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(14, 23, 43, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: modalBackIn .18s ease;
}
.modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 520px; max-width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--border-subtle);
  animation: modalIn .22s var(--ease-out, ease);
}
@keyframes modalBackIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-back, .modal { animation: none; } }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin: 0; color: var(--fg-1); letter-spacing: -0.005em; }
.modal-body { padding: 24px; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: end; gap: 10px; background: var(--bg-muted); }

/* Activity feed */
.activity { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.activity li {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px dashed var(--border-subtle);
  align-items: start;
}
.activity li:last-child { border-bottom: 0; }
.act-ico {
  width: 32px; height: 32px; border-radius: 99px;
  background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-2); flex-shrink: 0;
}
.act-line { font-size: 13px; color: var(--fg-2); line-height: 1.55; }
.act-line strong { color: var(--fg-1); font-weight: 600; }
.act-line a { color: var(--c-blue-600); font-weight: 600; }
.act-when { font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); margin-top: 2px; display: block; }

/* Skeletons */
.skel {
  background: linear-gradient(90deg, var(--bg-muted), var(--bg-sunken), var(--bg-muted));
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skel 1.4s linear infinite;
}
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Tabs */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--fg-3); cursor: pointer;
  border: 0; background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--fg-1); }
.tab.active { color: var(--fg-1); border-bottom-color: var(--c-blue-600); }
.tab .count { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); background: var(--bg-muted); padding: 1px 6px; border-radius: 99px; }
.tab.active .count { background: var(--c-info-bg); color: var(--c-blue-600); }

/* helpers */
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-12 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-12 { grid-template-columns: 1fr; } }
.muted { color: var(--fg-3); }
.mono { font-family: var(--font-mono); }
.hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 20px 0; }

/* Login layout */
.login-layout {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .login-layout { grid-template-columns: 1fr; } }
.login-art {
  background: var(--c-ink-900); color: #fff;
  padding: 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
:root[data-theme="dark"] .login-art { background: var(--bg-muted); color: var(--fg-1); }
.login-art::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1.5px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(135deg, transparent 0%, black 30%, black 60%, transparent 100%);
}
.login-art-x {
  position: absolute; right: -180px; bottom: -200px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1100px; line-height: 0.75;
  color: var(--c-blue-600); opacity: 0.18; pointer-events: none;
}
.login-form-wrap {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px; background: var(--bg-page);
}
.login-form { max-width: 400px; width: 100%; }
.login-form h1 { font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1.05; letter-spacing: -0.02em; margin: 16px 0 10px; color: var(--fg-1); }
.login-form p { color: var(--fg-3); margin: 0 0 32px; }

/* Print: invoice */
@media print {
  body { background: #fff !important; }
  .site-header, .topbar, .side, .tweaks-fab, .tweaks-panel { display: none !important; }
  .portal { grid-template-columns: 1fr !important; }
  .main { background: #fff !important; }
}

/* Responsive header + small-screen tuning */

html { -webkit-text-size-adjust: 100%; }

/* Collapsible mobile navigation */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nav-drawer { display: flex; align-items: center; gap: 36px; flex: 1; }
.nav-burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--fg-1); cursor: pointer;
}
.nav-burger span { display: flex; }
.nav-burger .ico-close { display: none; }
.nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--c-blue-600); outline-offset: 2px; }

@media (max-width: 860px) {
  .site-header .inner { gap: 14px; }
  .nav-burger { display: flex; }
  .nav-toggle:checked ~ .nav-burger .ico-open { display: none; }
  .nav-toggle:checked ~ .nav-burger .ico-close { display: flex; }

  .nav-drawer {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-toggle:checked ~ .nav-drawer { display: flex; }

  .nav-main { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-main a {
    padding: 13px 4px; font-size: 15px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .header-cta {
    flex-direction: column; align-items: stretch; gap: 8px;
    margin-left: 0; margin-top: 14px;
  }
  .header-cta .btn { justify-content: center; font-size: 14px; padding: 12px 16px; }
}

/* Small-screen spacing + type */
@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 20px; }
  .site-header .inner { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section.tight { padding: 48px 0; }
  .section-head { margin-bottom: 36px; }
  .lede { font-size: 17px; }
  .cta-grid, .hero-grid { gap: 36px; }
}

/* Lively layer — opt-in marketing interactions. The portal never uses these
   classes, so it stays untouched; every effect falls back to a clean state. */

/* Cursor spotlight: a soft highlight tracks the pointer (--mx/--my via motion.js). */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%),
              color-mix(in oklab, var(--c-blue-500) 20%, transparent), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease-out, ease);
}
.spot:hover::before { opacity: 1; }

/* Lift + glow on hover. */
.lift { transition: transform .32s var(--ease-spring, cubic-bezier(.2, .7, .2, 1)),
                    box-shadow .32s ease, border-color .32s ease; }
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -26px color-mix(in oklab, var(--c-blue-600) 60%, transparent);
  border-color: color-mix(in oklab, var(--c-blue-500) 55%, var(--border-subtle));
}
.ico { transition: transform .32s var(--ease-spring, cubic-bezier(.2, .7, .2, 1)); }
.lift:hover .ico, .spot:hover .ico { transform: translateY(-2px) scale(1.07); }

/* Gradient accent text for headline words. */
.grad {
  background: linear-gradient(100deg, var(--c-blue-500) 0%, #3FC9E6 52%, #7C8CFF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* A gradient rule that draws itself in on hover. */
.edge { position: relative; }
.edge::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c-blue-500), #3FC9E6, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out, ease);
}
.edge:hover::after { transform: scaleX(1); }

/* Sheen sweep across primary CTAs. */
.btn-mega { position: relative; overflow: hidden; }
.btn-mega::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg); transition: left .65s var(--ease-out, ease); pointer-events: none;
}
.btn-mega:hover::after { left: 150%; }

/* Animated bar — fills to --bw once its reveal section becomes visible. */
.barline { height: 7px; border-radius: 99px; background: var(--bg-muted); overflow: hidden; }
.barline > i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--c-blue-600), #3FC9E6);
  transition: width 1.15s var(--ease-spring, cubic-bezier(.2, .7, .2, 1));
}
.is-visible .barline > i { width: var(--bw, 0); }

/* Animated underline for inline text links. */
.ul-anim {
  background-image: linear-gradient(var(--c-blue-500), var(--c-blue-500));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease-out, ease);
}
.ul-anim:hover { background-size: 100% 2px; }

@media (prefers-reduced-motion: reduce) {
  .lift, .ico, .barline > i, .spot::before, .edge::after, .btn-mega::after { transition: none !important; }
  .barline > i { width: var(--bw, 0) !important; }
  .skel { animation: none !important; }
}
