/* site/static/style.css — els mateixos colors que l'app (Theme.Colors). */

:root {
  --bg: #0c0c0f;
  --surface: #17171c;
  --accent: #3d7bd6;
  --text: #f2f2f4;
  --muted: #a0a0aa;
  --line: rgba(255, 255, 255, 0.10);
  --measure: 46rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

/* ── Capçalera ─────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.brand { color: inherit; }
.brand:hover { text-decoration: none; }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--accent);
  border-radius: 5px;
}
.logo-word { font-weight: 600; letter-spacing: 0.42em; font-size: 0.95rem; }

.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a, .langs a { color: var(--muted); font-size: 0.95rem; }
.nav a[aria-current], .langs a[aria-current] { color: var(--text); }

.langs { display: flex; gap: 1rem; font-size: 0.9rem; }

/* ── Cos ───────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
}

section + section { margin-top: clamp(3rem, 7vw, 5rem); }

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }

p { margin: 0 0 1rem; max-width: var(--measure); }

.lead { font-size: 1.2rem; color: var(--text); }
.note, .muted { color: var(--muted); font-size: 0.95rem; }

/* ── Inici ─────────────────────────────────────────────────────────────── */

.hero h1 { max-width: 20ch; }

.status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
}
.status h2 { margin-top: 0; font-size: 1.05rem; color: var(--muted); }
.status p { margin-bottom: 0; }

.features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.features li p { color: var(--muted); margin: 0; }

.privacy-callout p { max-width: var(--measure); }
.cta { font-weight: 500; }

/* ── Pàgines de text ───────────────────────────────────────────────────── */

.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .q { font-weight: 600; margin-bottom: 0.25rem; }
.prose .a { color: var(--muted); }

/* ── Peu ───────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0 0 0.35rem; }
