/* erpost hub — tokens shared with the CRM design brief (deep navy + blue, light, quiet) */

:root {
  color-scheme: light;
  --canvas: #f5f7fa;
  --surface: #ffffff;
  --ink: #0e2a47;      /* brand navy — logo, headings, monograms */
  --accent: #1e6bd6;   /* links, focus */
  --text: #18222e;
  --text-2: #5b6776;
  --text-3: #98a2af;
  --hairline: #e4e8ee;
  --hairline-2: #d7dce4;
  --live: #16a34a;
  --radius: 10px;
  --font: "Inter", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.wordmark {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-dot { color: var(--accent); }

.top-nav { display: flex; gap: 18px; }

.top-nav a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 150ms ease;
}

.top-nav a:hover { color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────── */

.hero { margin: 40px 0 30px; }

.hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero p {
  margin: 0;
  max-width: 52ch;
  color: var(--text-2);
}

/* ── Grid ───────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}

.noscript { grid-column: 1 / -1; color: var(--text-2); }

.tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tile:hover,
.tile:focus-visible {
  border-color: color-mix(in srgb, var(--team, var(--accent)) 45%, var(--hairline));
  box-shadow: 0 10px 28px rgba(14, 42, 71, 0.09);
  transform: translateY(-2px);
}

.tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--team, var(--accent));
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 550;
  color: var(--text-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
}

.status-soon::before { background: #d97706; }

.tile-main { display: flex; flex-direction: column; gap: 3px; }

.code {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.code::after {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--team, var(--accent));
}

.name {
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 600;
}

.note {
  font-size: 12.5px;
  color: var(--text-2);
}

.tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.host {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  color: var(--team, var(--accent));
  font-size: 16px;
  line-height: 1;
  flex: none;
  transition: transform 160ms ease;
}

.tile:hover .arrow { transform: translate(2px, -2px); }

/* Empty slots */

.tile-empty {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px dashed var(--hairline-2);
  border-radius: var(--radius);
  color: var(--text-3);
}

.tile-empty .plus { font-size: 22px; font-weight: 300; line-height: 1; }

.tile-empty .empty-label { font-size: 12px; }

/* ── Footer ─────────────────────────────────────────────── */

.bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--text-2);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 760px) {
  .hero { margin-top: 24px; }
  .hero h1 { font-size: 25px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .tile { padding: 14px; }
  .code { font-size: 30px; }
  .status { display: none; }
}

@media (max-width: 400px) {
  .page { padding: 0 16px; }
  .note { display: none; }
  .name { font-size: 13.5px; }
  .host { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .arrow, .top-nav a { transition: none; }
  .tile:hover { transform: none; }
}
