/* Apensum website. System fonts only (nothing loaded from third parties). */
:root {
  --brand: #1a56db;
  --brand-strong: #0f3fa8;
  --brand-soft: #e8efff;
  --ink: #111a33;
  --text: #2b3550;
  --muted: #5b6474;
  --line: #e3e7f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --card: #ffffff;
  --ok: #12805c;
  --ok-soft: #e3f6ee;
  --shadow: 0 1px 2px rgba(17, 26, 51, 0.05), 0 8px 24px rgba(17, 26, 51, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 63, 168, 0.18);
  --radius: 14px;
  --shot-backdrop: linear-gradient(135deg, #eef3ff 0%, #f4f0ff 55%, #eaf6ff 100%);
  --shot-glow-1: radial-gradient(60% 70% at 0% 0%, rgba(26, 86, 219, 0.16), transparent 70%);
  --shot-glow-2: radial-gradient(55% 65% at 100% 100%, rgba(124, 92, 255, 0.16), transparent 70%);
  --shot-bar: #f4f6fa;
  --shot-dot: #cfd6e2;
  --shot-edge: rgba(17, 26, 51, 0.08);
  --shot-shadow: 0 1px 2px rgba(17, 26, 51, 0.06), 0 22px 48px -18px rgba(15, 63, 168, 0.35);
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5b8cf0;
    --brand-strong: #8aaef5;
    --brand-soft: #18264a;
    --ink: #f1f4fb;
    --text: #cdd4e4;
    --muted: #94a0b8;
    --line: #26304a;
    --bg: #0c1222;
    --bg-alt: #111a2e;
    --card: #141e34;
    --ok: #4cc38a;
    --ok-soft: #13301f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shot-backdrop: linear-gradient(135deg, #111a33 0%, #17153a 55%, #0f1f35 100%);
    --shot-glow-1: radial-gradient(60% 70% at 0% 0%, rgba(91, 140, 240, 0.22), transparent 70%);
    --shot-glow-2: radial-gradient(55% 65% at 100% 100%, rgba(140, 110, 255, 0.2), transparent 70%);
    --shot-bar: #1a2440;
    --shot-dot: #3a4664;
    --shot-edge: rgba(255, 255, 255, 0.08);
    --shot-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 22px 48px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.icon { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow .icon { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.92rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: #0f3fa8; }
.btn-light:hover { background: #eef3ff; color: #0f3fa8; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* The header's logo sits a little higher: centred, the larger wordmark's baseline would be 2.3px below the menu's. */
.header-row > .brand { position: relative; top: -0.145rem; }
.wordmark { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }
.wordmark b { color: var(--ink); font-weight: 750; }
.menu summary { list-style: none; cursor: pointer; display: none; padding: 8px; border-radius: 8px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { display: flex; align-items: center; gap: 18px; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--brand); }
/* Modules submenu: opens on hover or keyboard focus (no JavaScript). */
.nav-sub { position: relative; display: flex; }
.nav-sub-label {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--text);
}
.nav-sub-label .icon { width: 16px; height: 16px; transition: transform 0.15s; }
.nav-sub-label:hover, .nav-sub-label[aria-current], .nav-sub:focus-within .nav-sub-label { color: var(--brand); }
.nav-sub-menu {
  position: absolute; top: 100%; left: -14px; min-width: 220px; padding: 8px; margin-top: 10px;
  display: none; flex-direction: column; gap: 2px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
/* An invisible bridge over the gap, so the pointer can move from the label into the menu. */
.nav-sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-sub-menu a { padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav-sub-menu a:hover, .nav-sub-menu a[aria-current] { background: var(--brand-soft); }
.nav-sub:hover .nav-sub-menu, .nav-sub:focus-within .nav-sub-menu { display: flex; }
.nav-sub:hover .nav-sub-label .icon, .nav-sub:focus-within .nav-sub-label .icon { transform: rotate(180deg); }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.langs a { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 3px 7px; border-radius: 6px; }
.langs a span { display: none; }
.langs a[aria-current] { background: var(--brand-soft); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
/* The buttons never wrap ("Log in" on two lines in English and French). */
.header-actions .btn { white-space: nowrap; }
/* The header may be wider than the pages' content: the logo, the menu, the languages and the button need about
   1050px in French, the longest language; below 1180px the small-screen menu takes over. */
.site-header .wrap { max-width: 1400px; }
.menu { display: none; }
@media (max-width: 1180px) {
  .menu-panel.bar { display: none; }
  .menu { display: block; }
  .menu summary { display: inline-flex; }
  .menu .menu-panel {
    position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav { flex-direction: column; gap: 4px; }
  .nav a { padding: 10px 4px; font-size: 1.05rem; }
  /* In the small-screen menu the module pages are always listed, indented under their label. */
  .nav-sub { flex-direction: column; }
  .nav-sub-label { padding: 10px 4px; font-size: 1.05rem; cursor: default; }
  .nav-sub-label .icon { display: none; }
  .nav-sub-menu, .nav-sub:hover .nav-sub-menu, .nav-sub:focus-within .nav-sub-menu {
    display: flex; position: static; margin: 0; padding: 0 0 0 16px; min-width: 0; border: 0; box-shadow: none; background: none;
  }
  .nav-sub-menu::before { display: none; }
  .nav-sub-menu a:hover, .nav-sub-menu a[aria-current] { background: none; }
  .langs { flex-wrap: wrap; border: 0; padding: 0; gap: 6px; }
  .langs a { border: 1px solid var(--line); padding: 6px 10px; font-size: 0.9rem; }
  .langs a span { display: inline; margin-left: 6px; font-weight: 500; }
  .header-actions .btn { flex: 1; }
}

/* Sections */
.section { padding: 88px 0; }
.section.tight { padding: 40px 0 72px; }
.band { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .section { padding: 64px 0; } }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card.subtle { box-shadow: none; background: var(--bg-alt); margin-top: 28px; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand);
}
.mini { display: flex; gap: 14px; align-items: flex-start; }
.mini > .icon { color: var(--brand); margin-top: 3px; }
.mini h3 { font-size: 1.02rem; margin-bottom: 4px; }
.mini p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.compact { row-gap: 30px; column-gap: 36px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon {
  width: 22px; height: 22px; padding: 3px; margin-top: 2px;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 2.6;
}

/* Hero */
.hero {
  padding: 72px 0 84px;
  background:
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero .lead { font-size: 1.22rem; margin-bottom: 28px; }
.note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 0.92rem; }
.note .icon { width: 18px; height: 18px; }

/* Hero showcase: the modules' real screens (one shown, hero.js), a phone in front at the lower left. */
.showcase { position: relative; width: 100%; max-width: 700px; justify-self: center; padding: 0 0 36px 44px; }
.hero-grid:has(.showcase) { grid-template-columns: 1fr 1.08fr; gap: 44px; }
@media (max-width: 960px) { .hero-grid:has(.showcase) { grid-template-columns: minmax(0, 1fr); } }
.sc-window {
  overflow: hidden; border-radius: 14px; background: var(--card);
  border: 1px solid var(--shot-edge); box-shadow: var(--shadow-lg);
}
.sc-window::before {
  content: ""; display: block; height: 28px; border-bottom: 1px solid var(--shot-edge);
  background:
    radial-gradient(circle at 16px 50%, var(--shot-dot) 0 4px, transparent 4.5px),
    radial-gradient(circle at 30px 50%, var(--shot-dot) 0 4px, transparent 4.5px),
    radial-gradient(circle at 44px 50%, var(--shot-dot) 0 4px, transparent 4.5px),
    var(--shot-bar);
}
.sc-screens { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.sc-screens img, .sc-phone img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top;
  opacity: 0; transition: opacity 0.35s ease;
}
.sc-screens img.on, .sc-phone img.on { opacity: 1; }
.sc-phone {
  position: absolute; left: 0; bottom: 0; width: 24%; aspect-ratio: 390 / 844; overflow: hidden;
  border-radius: 22px; border: 6px solid #111a33; background: #111a33; box-shadow: var(--shadow-lg);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.showcase:not(.has-phone) .sc-phone { opacity: 0; transform: translateY(14px); }
@media (max-width: 960px) { .showcase { padding-left: 24px; } }
@media (prefers-reduced-motion: reduce) { .sc-screens img, .sc-phone img, .sc-phone { transition: none; } }

/* The module tiles under the hero */
.mods { margin-top: -36px; position: relative; padding-bottom: 24px; }
.mods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .mods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mods-grid { grid-template-columns: minmax(0, 1fr); } }
.mod-tile {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(17, 26, 51, 0.05); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.mod-tile .feature-icon { flex: none; margin: 0; }
.mod-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mod-text strong { font-size: 1.02rem; }
.mod-text span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.mod-arrow { flex: none; color: var(--muted); transition: transform 0.2s, color 0.2s; }
.mod-tile:hover, .mod-tile:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
@media (hover: hover) { .mod-tile.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); } }
.mod-tile:hover .mod-arrow, .mod-tile:focus-visible .mod-arrow { color: var(--brand); transform: translateX(3px); }

/* App mock-up */
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 480px; justify-self: center; width: 100%;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: linear-gradient(135deg, #1a56db, #0f3fa8); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.mock-bar span { margin-left: 10px; color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; }
.mock-body { padding: 18px; display: grid; gap: 14px; background: var(--bg-alt); }
.mock-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mock-row.small { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.mock-row.small strong { color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-ok b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-brand { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.chip-brand b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.price-badge.word strong { font-size: 1.6rem; }
.mock-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 110px; margin-top: 14px; align-items: end; }
.mock-week .day { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.mock-week .day span { align-self: end; display: block; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--brand) 75%, transparent); }
.mock-week .day.off span { background: repeating-linear-gradient(135deg, var(--line) 0 4px, transparent 4px 8px); }
.mock-week .day.now span { background: linear-gradient(to top, var(--brand), color-mix(in srgb, var(--brand) 35%, transparent)); }
.mock-week .day small { font-size: 0.72rem; color: var(--muted); }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.mock-tile small { display: block; font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tile strong { font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.mock-tile em { font-style: normal; font-size: 0.78rem; color: var(--muted); margin-left: 4px; }
.mock-toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-size: 0.88rem; font-weight: 500;
}
.mock-toast .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 2.6; }

/* Facts strip */
.facts { border-block: 1px solid var(--line); background: var(--card); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid div { padding: 26px 20px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.facts-grid div:first-child { border-left: 0; }
.facts-grid strong { font-size: 1.8rem; color: var(--brand); letter-spacing: -0.03em; line-height: 1.1; }
.facts-grid span { color: var(--muted); font-size: 0.92rem; }
.facts-small .facts-grid div { padding: 16px 18px; }
.facts-small .facts-grid strong { font-size: 1.2rem; }
.facts-small .facts-grid span { font-size: 0.84rem; }
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid div:nth-child(3) { border-left: 0; }
  .facts-grid div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Holidays card */
.holiday-card { display: grid; gap: 14px; }
.holiday-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cantons { display: flex; flex-wrap: wrap; gap: 6px; }
.canton { font-size: 0.78rem; font-weight: 700; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); }
.canton.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.canton.more { border-style: dashed; }
.holidays { list-style: none; padding: 0; margin: 0; }
.holidays li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.holidays li:last-child { border-bottom: 0; }
.holidays time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.holiday-card p { margin: 0; }

/* Page head */
.page-head { padding: 64px 0 28px; }
.page-head .lead { margin-bottom: 0; }

/* Features page */
.with-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 24px; padding-bottom: 40px; }
.toc { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.95rem; }
.toc a .icon { width: 18px; height: 18px; color: var(--muted); }
.toc a:hover { background: var(--bg-alt); color: var(--brand); }
.feature-groups { display: grid; gap: 20px; }
.feature-group { scroll-margin-top: 90px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feature-group-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.feature-group-head .feature-icon { margin: 0; }
.feature-group-head .lead { font-size: 1.02rem; margin: 0; }
.feature-group h2 { font-size: 1.4rem; margin-bottom: 6px; }
/* Screenshots of the app (videos/screens.mjs) between a group's intro and its list. */
.shots { display: grid; gap: 16px; margin: 4px 0 24px; }
.shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.shot { margin: 0; }
/* Each screenshot and video sits in a browser window on a soft gradient backdrop (.frame > .window). */
.frame {
  display: block; padding: clamp(12px, 3.2vw, 32px); border-radius: 20px; border: 1px solid var(--line);
  background: var(--shot-glow-1), var(--shot-glow-2), var(--shot-backdrop);
}
.window {
  display: block; overflow: hidden; border-radius: 12px; background: var(--card);
  border: 1px solid var(--shot-edge); box-shadow: var(--shot-shadow);
}
.window::before {
  content: ""; display: block; height: 26px; border-bottom: 1px solid var(--shot-edge);
  background:
    radial-gradient(circle at 16px 50%, var(--shot-dot) 0 4px, transparent 4.5px),
    radial-gradient(circle at 30px 50%, var(--shot-dot) 0 4px, transparent 4.5px),
    radial-gradient(circle at 44px 50%, var(--shot-dot) 0 4px, transparent 4.5px),
    var(--shot-bar);
}
.window img, .window video { display: block; width: 100%; height: auto; background: var(--bg-alt); }
.shot a { cursor: zoom-in; }
.shot a:hover .window { box-shadow: var(--shot-shadow), 0 0 0 3px var(--brand-soft); }
.shot figcaption { margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
.feature-video { margin: 4px 0 24px; }
.feature-video video { aspect-ratio: 16 / 10; background: #0f3fa8; }
.shots.phones .frame { padding: clamp(10px, 2.4vw, 20px); border-radius: 26px; }
.shots.phones .window { border-radius: 18px; }
.shots.phones .window::before { display: none; }
@media (max-width: 640px) { .shots.two { grid-template-columns: minmax(0, 1fr); } }
.shots.phones { grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: 32px; }
@media (max-width: 640px) { .shots.phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 900px) {
  .with-toc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line); padding: 6px 10px; font-size: 0.88rem; }
  .feature-group { padding: 22px; }
  .feature-group-head { flex-direction: column; gap: 12px; }
}

/* CTA */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 48px; border-radius: 22px; color: #e6edff;
  background: radial-gradient(500px 240px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 70%), linear-gradient(135deg, #1a56db, #0f3fa8);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 52ch; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } .cta-band .btn { width: 100%; } }

/* Contact */
.contact-card { display: grid; gap: 4px; justify-items: start; }
.contact-card .btn { margin: 8px 0 12px; }
.contact-card p { margin-bottom: 4px; }

/* Long text */
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose p { max-width: 70ch; }
.facts-list { display: grid; grid-template-columns: 200px 1fr; gap: 12px 24px; margin: 0 0 32px; }
.facts-list dt { font-weight: 600; color: var(--ink); }
.facts-list dd { margin: 0; }
@media (max-width: 560px) { .facts-list { grid-template-columns: 1fr; gap: 2px; } .facts-list dd { margin-bottom: 12px; } }
.todo { color: #b4231a; font-style: normal; background: #fdecea; padding: 0 6px; border-radius: 4px; }
.note-block { margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 56px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid nav a { color: var(--text); text-decoration: none; }
.footer-grid nav a:hover { color: var(--brand); }
.footer-grid p { margin-top: 12px; max-width: 40ch; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Gutachten page: the five steps of an assessment */
.case-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.case-steps .plugin-step-head { margin-bottom: 12px; }

/* Plugin page: numbered steps, each with its code example */
.plugin-steps { list-style: none; display: grid; gap: 20px; padding: 0; margin: 0; counter-reset: none; }
.plugin-step { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px 24px; align-items: start; }
.plugin-step-head { display: flex; align-items: center; gap: 10px; }
.step-no {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.95rem;
}
.plugin-step h3 { margin-bottom: 6px; }
.plugin-step p { color: var(--text); }
.code {
  margin: 0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; max-width: 100%;
  background: #0f1a33; color: #dbe4f5; border: 1px solid var(--line);
  font: 0.8rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre;
}
@media (max-width: 900px) {
  .plugin-step { grid-template-columns: minmax(0, 1fr); }
}

/* News by e-mail: the footer's one-line form and the News page's forms */
.news-form { display: grid; gap: 8px; margin-top: 16px; }
.news-form label:not(.hp) { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.news-row { display: flex; gap: 8px; flex-wrap: wrap; }
.news-row input {
  flex: 1 1 200px; min-width: 0; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); color: var(--ink); font: inherit;
}
.news-row input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.news-form.compact { max-width: 380px; }
.news-form.compact small a { color: var(--muted); }
.news-privacy { margin-top: 20px; font-size: 0.9rem; }

/* Language chooser (/) and 404 */
.chooser { min-height: 100vh; display: grid; place-items: center; background: var(--bg-alt); }
.chooser-main { max-width: 560px; padding: 48px 20px; display: grid; gap: 28px; justify-items: center; }
.chooser-list { display: grid; gap: 10px; width: 100%; }
.chooser-option {
  display: grid; gap: 2px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); text-decoration: none; color: var(--text); box-shadow: var(--shadow);
}
.chooser-option strong { color: var(--ink); font-size: 1.05rem; }
.chooser-option span { color: var(--muted); font-size: 0.92rem; }
.chooser-option:hover { border-color: var(--brand); }
.not-found { display: grid; gap: 22px; width: 100%; }
.not-found section { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.not-found section:last-child { border-bottom: 0; }
.not-found h1 { font-size: 1.3rem; margin-bottom: 4px; }
.not-found p { margin-bottom: 6px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link-arrow .icon { transition: none; }
  .btn:hover { transform: none; }
}

/* Pricing */
.section.tight-bottom { padding-bottom: 0; }
.pricing-teaser { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 36px; }
.pricing-teaser .lead { margin-bottom: 14px; }
.price-badge {
  display: grid; justify-items: center; gap: 4px; padding: 26px 34px; border-radius: 18px;
  background: var(--brand-soft); color: var(--brand); text-align: center;
}
.price-badge strong { font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; }
.price-badge span { font-size: 0.9rem; color: var(--muted); }
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 32px; }
.plan .checklist { margin: 8px 0 26px; flex: 1; align-content: start; }
.plan .btn { align-self: flex-start; }
.plan-main { border: 2px solid var(--brand); }
.price-tiers { list-style: none; margin: -4px 0 4px; padding: 0; display: grid; gap: 2px; font-size: 0.9rem; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.price strong { font-size: 2.4rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.price span { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 800px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.profile { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 32px 24px; }
.profile h2 { margin: 12px 0 0; }
.profile p { margin: 0 0 10px; }
.profile .link-arrow { font-size: 0.92rem; overflow-wrap: anywhere; }
.portrait { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.portrait.initials {
  display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; color: #fff;
  background: linear-gradient(135deg, #1a56db, #0f3fa8);
}
.about-grid .prose h2 { margin-top: 1.6em; }
.about-grid .prose p { font-size: 1.08rem; }
.invest { display: flex; gap: 22px; align-items: flex-start; padding: 34px; }
.invest .feature-icon { flex: none; margin: 0; }
.invest p { max-width: 70ch; color: var(--muted); }
@media (max-width: 640px) { .invest { flex-direction: column; } }
.brochure-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 10px; }
.brochure-links .icon { transform: rotate(90deg); }
.brochure-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.brochure-card .btn { margin-top: auto; }
.brochure-card p.small { margin: 0; }
.brochure-preview { display: block; width: 100%; border-radius: 8px; overflow: hidden; border: 1px solid var(--line, #e2e8f0); box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.25); transition: transform 0.15s ease; margin-bottom: 6px; }
.brochure-preview:hover { transform: translateY(-2px); }
.brochure-preview img { display: block; width: 100%; height: auto; }

/* Contact */
.stack { display: grid; gap: 20px; }

/* Phone behind a click, profile links */
.reveal {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
}
.reveal .icon, .profile-links .icon { width: 18px; height: 18px; }
.reveal:hover { color: var(--brand-strong); }
a.phone { font-weight: 600; font-variant-numeric: tabular-nums; }
.profile-links { display: grid; gap: 10px; justify-items: center; margin-top: 8px; font-size: 0.92rem; }
.profile-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.profile-links a:hover { text-decoration: underline; }
.profile .muted.small { margin-top: -6px; }

/* Role demo videos (home) */
.role-rows { display: grid; gap: 64px; }
.role-row { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.role-row.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.role-row.flip .role-text { order: 2; }
.role-text h3 { font-size: 1.5rem; margin-bottom: 8px; }
.role-text p { color: var(--muted); font-size: 1.05rem; }
.role-text .small { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.role-text .small .icon { width: 16px; height: 16px; }
.role-video { margin: 0; }
.role-video video { aspect-ratio: 16 / 10; background: #0f3fa8; }
@media (max-width: 900px) {
  .role-row, .role-row.flip { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .role-row.flip .role-text { order: 0; }
  .role-rows { gap: 48px; }
}

/* Hourly rate behind a click (pricing) */
.rate-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--brand); background: var(--brand-soft); border: 1px dashed var(--brand);
}
.rate-button:hover { background: color-mix(in srgb, var(--brand) 14%, var(--card)); }
.rate-button .icon { width: 18px; height: 18px; }
.rate-popover {
  width: min(460px, calc(100vw - 32px)); margin: auto; padding: 28px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); color: var(--text); box-shadow: var(--shadow-lg);
}
.rate-popover::backdrop { background: rgba(15, 23, 42, 0.45); }
.rate-popover h3 { margin-bottom: 4px; }
.rate-popover .price span:first-child { color: var(--muted); }
.rate-popover p { color: var(--muted); }
.rate-popover .actions { margin-top: 18px; }

/* Contact form (posted to the Apensum API, see infra/site/Caddyfile form-action). */
.contact-form { gap: 10px; justify-items: stretch; }
.contact-form > .feature-icon, .contact-form > .btn { justify-self: start; }
.field { display: grid; gap: 4px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; scroll-margin-top: 90px; }
/* The e-mail address is plain text (no mailto:, which does nothing without a mail program): one click selects it. */
.email { user-select: all; font-weight: 600; overflow-wrap: anywhere; }
.contact-address { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.contact-address .icon { width: 18px; height: 18px; }
.page-head .actions { margin-top: 28px; }

/* GitHub button (security page, home page): mark, label, repository address. */
.github-link { gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.github-link .icon { width: 20px; height: 20px; }
.github-repo { font-weight: 400; font-size: 0.88em; }
/* The Working Hours Act teaser on the security page: the whole card is the link. */
.law-teaser { display: flex; gap: 20px; align-items: flex-start; text-decoration: none; color: inherit; margin-bottom: 24px; }
.law-teaser:hover { border-color: var(--brand); }
.law-teaser p { color: var(--muted); }
.law-teaser .feature-icon { flex: none; margin: 0; }
@media (max-width: 640px) { .law-teaser { flex-direction: column; gap: 12px; } }
.footer-github { display: inline-flex; align-items: center; gap: 6px; }
.footer-github .icon { width: 16px; height: 16px; }

/* References: the steps after the first contact */
.references-steps { margin: 16px 0 24px; }
.references-steps li { display: flex; gap: 14px; align-items: center; }
.references-steps p { margin: 0; }

/* News posts (assets/news.js): the list on the News page and one post */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.post-list .card p { margin: 0; }
.post-list h2 { margin: 6px 0; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--brand); }
.post-body h2 { margin-top: 1.6em; }
.post-body ul, .post-body ol { padding-left: 1.3em; max-width: 70ch; }
.post-body li { margin: 4px 0; }
.post-body figure { margin: 24px 0; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.post-body blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--brand); color: var(--muted); }
.post-body code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-alt); padding: 1px 5px; border-radius: 5px; }
.post-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 4px 0 12px; }
.card .checklist + .small { margin-top: 14px; }

/* Enlarged picture (assets/zoom.js): a modal dialog, closed by Esc, the × or a click beside it. */
.news-posts img { cursor: zoom-in; }
.zoom-open { overflow: hidden; }
dialog.zoom {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; display: none; align-items: center; justify-content: center; cursor: zoom-out;
}
dialog.zoom[open] { display: flex; }
dialog.zoom::backdrop { background: rgba(10, 20, 40, 0.82); }
dialog.zoom img {
  max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); background: #fff; cursor: default;
}
.zoom-close {
  position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, 0.95); color: #0f172a; font-size: 28px; line-height: 1;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center;
}
.zoom-close:hover, .zoom-close:focus-visible { background: #fff; outline: 2px solid #3b82f6; outline-offset: 2px; }

/* Support: the articles one below the other, each with an anchor (the cards at the top link to them). */
a.card.feature { color: inherit; text-decoration: none; }
a.card.feature:hover { border-color: var(--brand, #1a56db); }
.support { display: grid; gap: 56px; max-width: 860px; }
.support-article { scroll-margin-top: 96px; }
.support-article h3 { margin: 28px 0 12px; }
.support-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.support-steps li { padding-left: 4px; }

/* Countries: what each country pack sets (page `countries`). */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.compare th, table.compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.compare thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody th { color: var(--ink); white-space: nowrap; }
table.compare .icon { width: 18px; height: 18px; color: var(--brand); }

/* The home page's terminal: the quick start, in the hero (pages.mjs terminal). */
.mock.terminal { align-self: center; }
.mock.terminal .code { margin: 0; border: 0; border-radius: 0 0 16px 16px; padding: 22px 24px; font-size: 0.85rem; line-height: 1.7; }

/* ------------------------------------------------------------------------------------------------
   Plain and technical (afundum is not sold): flat sections, no gradients or shadows, cards as simple
   bordered boxes, the home page as one narrow document (pages.mjs home, `.doc`). */
.hero, .page-head, .band { background: none; border-block: 0; }
.section { padding: 48px 0; }
.section.tight { padding: 24px 0 40px; }
.section-head { margin-bottom: 24px; }
.card { box-shadow: none; border-radius: 8px; padding: 20px; }
.card:hover { transform: none; box-shadow: none; }
.btn, .btn:hover { transform: none; box-shadow: none; border-radius: 6px; }
.feature-icon { background: none; width: auto; height: auto; justify-content: flex-start; margin-bottom: 6px; }
.lead { font-size: 1.05rem; }
h1 { letter-spacing: -0.01em; }

.header-github { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.header-github:hover { color: var(--brand); }
.header-github svg { width: 18px; height: 18px; }

.doc { padding: 56px 0 72px; }
.doc .wrap.narrow { max-width: 760px; }
.doc h1 { font-size: 2.4rem; margin-bottom: 0.3em; }
.doc h2 { font-size: 1.3rem; margin: 2.2em 0 0.6em; padding-bottom: 0.3em; border-bottom: 1px solid var(--line); }
.doc p { margin: 0 0 1em; }
.doc .lead { max-width: none; color: var(--text); }
.doc-links { font-weight: 600; }
.doc-links a { text-decoration: none; }
.doc .code { font-size: 0.85rem; line-height: 1.7; padding: 16px 18px; }
.doc-list { margin: 0 0 1em; padding-left: 1.2em; }
.doc-list li { margin: 0.35em 0; }
.doc .holiday-card { max-width: 460px; margin: 1em 0; }

/* Get started: a step's anchor clears the sticky header; long commands scroll inside their block */
.plugin-step { scroll-margin-top: 96px; }
.plugin-step > * { min-width: 0; }
.plugin-step pre.code, .doc pre.code { overflow-x: auto; max-width: 100%; }
