/* Voltmeter site — the app's dark tokens (android/.../theme/Tokens.kt). */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0d0e0f;
  --surface: #16171a;
  --raised: #1e2023;
  --line: #2a2c30;
  --text: #f3f3f1;
  --soft: #d5d7db;
  --muted: #a3a6ac;
  --faint: #7c8087;
  --energy: #6ee7b7;
  --gutter: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Geist", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--energy); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font: 500 0.9em "Geist Mono", ui-monospace, monospace;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.mark { width: 28px; height: 28px; fill: none; stroke: var(--energy); }

/* Header */
.top {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 15px; }
nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
nav a[aria-current="page"] { color: var(--text); background: var(--raised); }

main { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter) 48px; }

/* Home */
.hero { text-align: center; padding: 56px 0 32px; }
.hero .mark { width: 72px; height: 72px; }
.hero h1 { font-size: clamp(40px, 8vw, 64px); line-height: 1.05; letter-spacing: -0.04em; margin: 20px 0 12px; font-weight: 600; }
.lede { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 auto; }
.soon { color: var(--faint); font: 500 13px "Geist Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 20px; }

.shots { display: flex; gap: 20px; justify-content: center; margin: 24px 0 48px; }
.shots img {
  width: min(280px, 44%);
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.features div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.features h2 { font-size: 17px; margin: 0 0 6px; font-weight: 600; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }
.cta { text-align: center; color: var(--muted); margin-top: 40px; }

/* Documents */
.doc { max-width: 720px; margin: 24px auto 0; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 16px 0 24px; font-weight: 600; }
.doc h2 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 8px; font-weight: 600; }
.doc p, .doc li { color: var(--soft); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 16px; }
.doc hr + p { color: var(--faint); font-size: 14px; }
.doc .lede { margin: 0 0 8px; text-align: left; }

/* Help FAQ */
.help section { margin-top: 32px; }
.help h2 { color: var(--faint); font: 500 13px "Geist Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
.help details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 8px 0; }
.help summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 500;
  position: relative;
}
.help summary::-webkit-details-marker { display: none; }
.help summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}
.help details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.help details > div { padding: 0 18px 8px; border-top: 1px solid var(--line); }

/* Footer */
footer { border-top: 1px solid var(--line); max-width: 960px; margin: 0 auto; padding: 24px var(--gutter) 40px; color: var(--faint); font-size: 14px; }
footer p { margin: 4px 0; }
footer .fine { font-size: 13px; }

@media (max-width: 520px) {
  .top { justify-content: center; }
  .hero { padding-top: 32px; }
  .shots { gap: 12px; }
  .shots img { border-radius: 20px; }
}
