/* nmbr — built from the app's own tokens (Nmbr/DesignSystem/Tokens.generated.swift).
   Dark only, like the app itself. */
:root {
  color-scheme: dark;
  --bg: #07070A;
  --bg-2: #0B0B10;
  --surface: #111117;
  --raised: #16161D;
  --hairline: #23232C;
  --hairline-2: #2E2E39;
  --text: #F4F4F6;
  --text-2: #A3A3AE;
  --text-3: #6C6C78;
  --accent: #3D8BFF;
  --grad-a: #1AD5FE;
  --grad-b: #1E63EF;
  --sleep: #8D8AFF;
  --work: #4D9DFF;
  --home: #4FD0E7;
  --commute: #FFA83D;
  --exercise: #4FE07B;
  --social: #FF6B87;
  --leisure: #C77FEE;
  --food: #FFD84D;
  --positive: #4FE07B;
  --negative: #FF6B87;
  --shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  --sans: "Instrument Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* Names the privacy and admin pages use. */
  --body: var(--sans);
  --display: var(--sans);
  --elevated: var(--raised);
  --fill: var(--bg-2);
  --radius: 24px;
}
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; }
.micro { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 13px 20px; border-radius: 999px; border: 0; cursor: pointer; background: var(--text); color: var(--bg); justify-self: start; }
.button.quiet { background: var(--bg-2); color: var(--text); border: 1px solid var(--hairline-2); }
.button[disabled] { opacity: .5; cursor: default; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
em.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--sans);
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--text) 88%, var(--accent)); }
.btn-ghost { color: var(--text); border-color: var(--hairline-2); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn[disabled] { opacity: .5; cursor: default; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 60%, transparent);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--sans); letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--text-2); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav .btn { padding: 10px 16px; font-size: 14px; }

footer { border-top: 1px solid var(--hairline); padding-block: 40px 56px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* Forms */
.field { display: grid; gap: 7px; font-size: 14px; color: var(--text-2); }
.field .hint { color: var(--text-3); }
input, textarea, select {
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease;
}
input:hover, textarea:hover { border-color: var(--hairline-2); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
input[type="file"] { padding: 10px; font-size: 14px; color: var(--text-2); }
.status { font-size: 14px; min-height: 1.2em; }
.status.ok { color: var(--positive); }
.status.err { color: var(--negative); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .wrap { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
