/* The public site at nomadbuild.site: the landing and the legal pages.
   One file rather than inline styles, because the site is served under
   `Content-Security-Policy: default-src 'none'; style-src 'self'` (Caddyfile.tls).
   Dark only, like the app; the tokens are the app's greens. */
:root {
  color-scheme: dark;
  --bg: #07120F;
  --surface: #0F1D18;
  --surface2: #142620;
  --ink: #E9F4EE;
  --soft: #B3C6BD;
  --muted: #7C9389;
  --mint: #5CD9A6;
  --on-mint: #062A1E;
  --line: rgba(233, 244, 238, .1);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint); }
img { display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* ── top bar ─────────────────────────────────────────────────────────── */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.lang { display: flex; gap: 6px; flex-wrap: wrap; }
.lang a { color: var(--soft); text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 14px; }
.lang a:hover { border-color: var(--mint); color: var(--mint); }
.lang a[aria-current] { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }

/* ── landing ─────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero .lead { color: var(--soft); font-size: 18px; margin: 0 0 28px; max-width: 34em; }
.hero-art { justify-self: center; width: min(200px, 55vw); aspect-ratio: 1; border-radius: 22%; overflow: hidden; border: 1px solid var(--line); }
.hero-art img { width: 100%; height: 100%; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; background: var(--mint); color: var(--on-mint); font-weight: 700; text-decoration: none; border-radius: 12px; padding: 13px 22px; }
.btn:hover { filter: brightness(1.08); }
.pill { color: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 14px; }

.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 8px; }
.section .sub { color: var(--soft); margin: 0 0 28px; max-width: 40em; }

.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { color: var(--soft); margin: 0; font-size: 15px; }
.card .tag { color: var(--mint); font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }

.contact { background: var(--surface2); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; }
.contact h2 { margin-top: 0; }

@media (min-width: 720px) {
  .hero { grid-template-columns: 1.4fr 1fr; padding: 64px 0 80px; }
  .hero-art { justify-self: end; width: 280px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}

/* ── legal pages ─────────────────────────────────────────────────────── */
.doc { padding: 8px 0 48px; }
.doc section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; }
.doc section:first-of-type { border-top: 0; margin-top: 0; padding-top: 8px; }
.doc h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--soft); }
.doc ul, .doc ol { padding-left: 22px; }
.date { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }

/* ── footer ──────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.foot nav a { color: var(--soft); text-decoration: none; }
.foot nav a:hover { color: var(--mint); }
.foot p { margin: 0; }
