/* Direction 03 — same tokens as ios/Veyra/Theme/VeyraColor.swift. No mockup palette. */
:root {
  --ink: #15191C;
  --field: #F5F6F7;
  --void: #0A0E11;
  --accent: #0F6E66;
  --n100: #E4E7E9;
  --n200: #C6CCD0;
  --n300: #939BA1;
  --n400: #5C656B;
  --n500: #333A3F;
  --hairline: rgba(21, 25, 28, 0.12);
  --source-border: rgba(21, 25, 28, 0.45);
  --display: "InstrumentSans-SemiBold", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree-Regular", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrainsMono-Medium", "JetBrains Mono", ui-monospace, monospace;
}

@font-face {
  font-family: "InstrumentSans-SemiBold";
  src: url("/static/fonts/InstrumentSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Figtree-Regular";
  src: url("/static/fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "JetBrainsMono-Medium";
  src: url("/static/fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--field);
  line-height: 1.45;
}

body.chrome-void {
  background: var(--void);
  color: var(--field);
}

.shell {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 5.5rem;
}

.mark {
  width: 2rem;
  height: 2rem;
  display: block;
  color: inherit;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

p { margin: 0.5rem 0; }

.muted { color: var(--n400); }
.chrome-void .muted { color: var(--n300); }

.banner {
  border: 1px solid var(--n500);
  background: var(--n100);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.card {
  background: #fff;
  border: 1px solid var(--n100);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.75rem 0;
}

.alert-card {
  background: #fff;
  border: 1px solid var(--n100);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.75rem 0;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline);
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--source-border);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--field);
  font-family: var(--display);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--field);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-around;
  padding: 0.65rem 0.5rem calc(0.65rem + env(safe-area-inset-bottom));
}

.footer a {
  color: var(--n400);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.8rem;
}

.footer a[aria-current="page"] { color: var(--ink); }

.pairing-code {
  font-family: var(--mono);
  font-size: 1.15rem;
  word-break: break-all;
}

input, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--n200);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-family: var(--body);
  background: #fff;
  color: var(--ink);
}
