/* SPDX-License-Identifier: AGPL-3.0-only
   Shared look of the public information pages (comparison, self-hosting, imprint, privacy).
   System fonts, no remote assets, light and dark by the visitor's system preference. */
:root {
  color-scheme: light;
  --bg: #f4f7ff; --surface: #ffffff; --surface-2: #f8faff; --ink: #0e1a33; --muted: #46567a;
  --accent: #1d4ed8; --accent-strong: #1a3fb0; --accent-ink: #173a9c; --on-accent: #ffffff;
  --soft: #e8f0ff; --line: #d6e0f3; --good: #0b6b46; --good-soft: #e3f6ec;
  --hero-a: #e3ecff; --hero-b: #f4f7ff; --night: #112650; --night-ink: #eaf1ff; --night-muted: #bcd0f5;
  --shadow: 0 1px 2px rgb(14 26 51 / .05), 0 14px 38px rgb(29 78 216 / .09);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a1224; --surface: #121d36; --surface-2: #162341; --ink: #eef3ff; --muted: #b7c6e4;
    --accent: #8db1ff; --accent-strong: #b2caff; --accent-ink: #b2caff; --on-accent: #0a1530;
    --soft: #172a4f; --line: #2b3d63; --good: #6fdca8; --good-soft: #10302a;
    --hero-a: #14264d; --hero-b: #0a1224; --night: #0d1c3d; --night-ink: #eef3ff; --night-muted: #b7c6e4;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 38px rgb(0 0 0 / .35);
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-ink); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 50; padding: 12px 16px; border-radius: 10px; background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 10px; }
.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 760; letter-spacing: -.03em; text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(145deg, #2b62f0, #1739a8); color: #fff; font: 700 25px Georgia, serif; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav .nav-cta { padding: 9px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; }
.site-nav .nav-cta:hover { background: var(--accent-strong); color: var(--on-accent); text-decoration: none; }

/* Typography */
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
h1 { margin: 0 0 22px; font-size: clamp(40px, 5.2vw, 70px); line-height: 1.04; letter-spacing: -.05em; font-weight: 780; }
h2 { margin: 0 0 14px; font-size: clamp(27px, 3vw, 40px); line-height: 1.14; letter-spacing: -.04em; font-weight: 740; }
h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
h4 { margin: 14px 0 10px; font-size: 14px; }
p { margin: 0 0 16px; color: var(--muted); }
.eyebrow { margin: 0 0 14px; color: var(--accent-ink); font-size: 12px; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.lead { max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading p:last-child { margin-bottom: 0; }
section { margin-block: 92px; }
main > section:first-child { margin-top: 56px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn.primary { border-color: transparent; background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 22px rgb(29 78 216 / .28); }
.btn.primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }

/* Cards and grids */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card, article { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card p:last-child, article p:last-child { margin-bottom: 0; }
.card > p, article > p { font-size: 14.5px; }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 13px; background: var(--soft); color: var(--accent-ink); }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; margin: 0; list-style: none; }
.chip-list li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 560; }
.chip-list li::before { content: "✓"; color: var(--good); font-weight: 800; }
.status-badge { display: inline-block; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.5; }
.status-badge.good { border-color: transparent; background: var(--good-soft); color: var(--good); }

/* Details / accordions */
details { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
details > summary { padding: 16px 20px; cursor: pointer; font-size: 15px; font-weight: 650; }
details > summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
details[open] > summary { border-bottom: 1px solid var(--line); }
details > :not(summary) { margin-inline: 20px; }
details > p:first-of-type, details > summary + * { margin-top: 18px; }
details > :last-child { margin-bottom: 20px; }

/* Tables */
.table-scroll { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; text-align: left; }
caption { padding: 16px; color: var(--muted); text-align: left; }
th, td { padding: 14px; vertical-align: top; border-top: 1px solid var(--line); }
thead th { color: var(--muted); font-size: 13px; }

/* Callouts */
.callout { padding: 20px 24px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--soft); color: var(--ink); }
.callout p { color: var(--ink); }

/* Footer */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-block: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* Long-form text pages (imprint, privacy, self-hosting) */
.prose { max-width: 760px; margin-block: 56px 0; }
.prose h1 { font-size: clamp(34px, 4vw, 52px); }
.prose h2 { margin-top: 44px; font-size: clamp(23px, 2.4vw, 30px); }
.prose h1, .prose h2 { overflow-wrap: anywhere; hyphens: auto; }
.prose p { color: var(--ink); opacity: .9; overflow-wrap: anywhere; }
.legal-address { font-style: normal; overflow-wrap: anywhere; }
.legal-toc { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.legal-toc ul { margin: 12px 0 0; padding-left: 22px; }
.legal-toc li { margin-block: 6px; }
.legal-preview { margin-bottom: 24px; }
.legal-preview p:last-child, .prose .callout p:last-child { margin-bottom: 0; }

@media (max-width: 1100px) { .grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .wrap { padding-inline: 20px; }
  section { margin-block: 60px; }
  .site-header .wrap { min-height: 60px; }
  .site-nav { gap: 14px; font-size: 13px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.cols-5 { grid-template-columns: 1fr; }
  .card, article { padding: 20px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .btn-row, .site-footer nav { display: none; } body { background: #fff; color: #000; } }
