/* Askeo web: "graphite & volt", same identity as the app. */
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/BarlowCondensed_600SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/BarlowCondensed_700Bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/Inter_400Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/Inter_600SemiBold.woff2') format('woff2'); }

:root {
  --bg: #0b0d0c;
  --surface: #131615;
  --raised: #1b1f1d;
  --line: #262b28;
  --line-strong: #353b37;
  --text: #f1f4ec;
  --muted: #a0a8a1;
  --faint: #6b736d;
  --accent: #c6f135;
  --accent-pressed: #a9d21f;
  --accent-soft: rgba(198, 241, 53, 0.14);
  --radius: 18px;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---- header */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(11, 13, 12, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 24px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

/* ---- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-pressed); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--raised); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-block { width: 100%; }

/* ---- activity */
.athlete { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line-strong); display: grid; place-items: center; overflow: hidden; font: 700 20px/1 var(--display); color: var(--accent); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.athlete b { display: block; font-weight: 600; }
.athlete span { color: var(--muted); font-size: 14px; }
.title { font: 700 clamp(34px, 8vw, 52px)/1.02 var(--display); letter-spacing: 0.01em; margin: 16px 0 20px; text-wrap: balance; }

.map {
  position: relative; height: min(62vh, 440px); min-height: 300px;
  border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line);
}
.map #map { position: absolute; inset: 0; }
.map .layer {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(19, 22, 21, 0.9); color: var(--text); font: 600 13px/1 var(--body); cursor: pointer;
}
.map .layer[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 14px; padding: 24px; text-align: center; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.stat { background: var(--surface); padding: 16px 18px; }
.stat dt { color: var(--muted); font-size: 13px; }
.stat dd { margin: 4px 0 0; font: 700 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat dd small { font: 600 16px/1 var(--display); color: var(--muted); margin-left: 4px; }
.stat.main dd { color: var(--accent); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.note { color: var(--faint); font-size: 13px; margin: 12px 2px 0; }

/* ---- invite */
.invite {
  margin: 32px 0 40px; padding: 24px; border-radius: 24px;
  background: linear-gradient(160deg, #1b1f1d 0%, #131615 60%); border: 1px solid var(--line);
}
.invite h2 { font: 700 30px/1.05 var(--display); margin: 0 0 8px; }
.invite p { color: var(--muted); margin: 0 0 20px; }
.invite .actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .invite .actions { grid-template-columns: 1fr 1fr; } }
.invite .fine { font-size: 13px; color: var(--faint); margin: 14px 0 0; }
.features { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.features li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.features li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; }

/* ---- landing */
.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero img.bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,12,0.2) 0%, rgba(11,13,12,0.65) 55%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 48px; }
.hero h1 { font: 700 clamp(48px, 13vw, 96px)/0.92 var(--display); text-transform: uppercase; margin: 0 0 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 18px; max-width: 34ch; margin: 0 0 28px; }

.footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; padding: 20px 0 32px; }

.empty { text-align: center; padding: 72px 0 24px; }
.empty h1 { font: 700 40px/1.05 var(--display); margin: 0 0 10px; }
.empty p { color: var(--muted); margin: 0 auto; max-width: 40ch; }

/* MapLibre attribution, quieter on dark */
.maplibregl-ctrl-attrib { background: rgba(11, 13, 12, 0.7) !important; color: var(--faint) !important; font-size: 10px !important; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
