/* The public pages of stimulai.ch: the landing page, the legal notice and the privacy notice, in
   English, German, French and Italian. Static files built by site/build.py, served by nginx
   without a login (see nginx.conf and the Authelia bypass rule); they load nothing from another
   host - the privacy notice says so. Colours follow the app (tailwind.config.js). */
:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
a:hover { color: #60a5fa; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

header.top {
  border-bottom: 1px solid var(--border);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.top-actions { display: flex; align-items: center; gap: 16px; }
.langs { display: flex; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.langs a { color: var(--muted); text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.langs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.langs a[aria-current="page"] { color: var(--text); }
@media (max-width: 480px) {
  .top-actions { gap: 8px; }
  .top-actions .button { padding: 8px 12px; }
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.button:hover { background: var(--primary-dark); color: #fff; }
.button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.05); }

.hero { padding: 72px 0 48px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 18ch;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 24px 0 56px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.feature h2 { font-size: 1.05rem; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); }

section.band { border-top: 1px solid var(--border); padding: 40px 0; }
section.band h2 { margin-top: 0; }
section.band p { color: var(--muted); max-width: 70ch; }

article.legal { padding: 48px 0 64px; max-width: 75ch; }
article.legal h1 { margin-top: 0; }
article.legal h2 { margin-top: 2em; font-size: 1.2rem; }
article.legal p, article.legal li { color: #cbd5e1; }
article.legal .updated { color: var(--muted); font-size: 0.9rem; }
address { font-style: normal; }

footer.bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.bottom nav { display: flex; gap: 20px; }
footer.bottom a { color: var(--muted); }
