/* Aight customer page. Calm, warm, one ink, one green. No fonts loaded. */

:root {
  --paper: #faf8f3;
  --ink: #1c211d;
  --muted: #6b7069;
  --line: #e4dfd4;
  --green: #1f4d3a;
  --green-soft: #eef2ec;
  --field: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: 1.75rem; line-height: 1.2; }
h2 { font-size: 1.15rem; margin-bottom: 0.75rem; }
h3 { font-size: 0.95rem; color: var(--muted); margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 0.75rem; }

a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

pre code { font-size: inherit; overflow-wrap: normal; }

.brand {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.75rem;
}

.muted { color: var(--muted); font-size: 0.92rem; }

.error, .notice {
  color: var(--ink);
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  padding: 0.6rem 0.9rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}

/* Buttons and fields */

button {
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}

button:hover { background: #17402f; border-color: #17402f; }

button:focus-visible, input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

button.quiet {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
}

button.quiet:hover { background: var(--green-soft); border-color: var(--green); }

label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1.1rem 0 0.35rem;
}

input {
  font: inherit;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
}

input:focus { border-color: var(--green); }

/* Login */

body.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.login-card { width: 100%; max-width: 380px; }

.login-card h1 { margin-bottom: 0.5rem; }

.login-card form { margin-top: 1rem; }

.login-card .error { margin-top: 1.25rem; }

.login-card button[type="submit"] {
  width: 100%;
  margin-top: 1.5rem;
}

/* Dashboard */

body.dashboard main,
body.dashboard header.top {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 3rem !important;
  padding-bottom: 2rem !important;
}

header.top form { margin: 0 0 0.25rem; }

section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

section:last-child { padding-bottom: 5rem; }

.numbers .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.figure { display: flex; flex-direction: column; gap: 0.2rem; }

.figure .label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.figure .value {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.figure .value.accent { color: var(--green); }

.numbers .muted { margin-top: 1.25rem; margin-bottom: 0; }

.numbers .notice { margin-bottom: 1.5rem; }

ul.models {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

ul.models li {
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.9rem;
}

dl.details { margin: 0 0 1rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 1.5rem; }

dl.details dt { color: var(--muted); font-size: 0.9rem; padding-top: 0.15rem; }
dl.details dd { margin: 0; }

.key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.key-actions { display: inline-flex; gap: 0.5rem; }

/* One column on small screens */

@media (max-width: 640px) {
  body { font-size: 16px; }
  header.top { flex-direction: column; align-items: flex-start; padding-top: 2rem !important; }
  .numbers .row { grid-template-columns: 1fr; gap: 1.25rem; }
  .figure .value { font-size: 2rem; }
  dl.details { grid-template-columns: 1fr; gap: 0.25rem; }
  dl.details dd { margin-bottom: 0.75rem; }
}
