/* bearkoded.app page styles: dark theme. Ink background, white and Green Tint text,
   white cards with Ink text inside, Racing Green buttons. Tokens and fonts from brand.css. */

:root {
  --line: #e4e1db;            /* hairlines inside white cards */
  --line-strong: #cfcbc3;
  --muted: #6b6a66;           /* muted text inside white cards */
  --card: #ffffff;
  --danger: #b3261e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);

  --text: #ffffff;                      /* text on Ink */
  --text-muted: rgba(255, 255, 255, .72);
  --line-dark: rgba(255, 255, 255, .14); /* hairlines on Ink */
  --danger-light: #ff8a80;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow { color: var(--green-tint); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- boot splash ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { height: 40px; opacity: .7; }

/* ---------- header ---------- */
.header { padding: 20px 0; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lockup { display: block; height: 34px; }
.lockup img { height: 34px; width: auto; display: block; }
.header.bar { background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.header .site { color: var(--green-tint); text-transform: none; }

/* ---------- white cards keep Ink text inside ---------- */
.card, .tile, .stat, .card-panel, .menu, .pill, details.project, .panel { color: var(--ink); }

/* ---------- screen (login) ---------- */
.screen { min-height: 100vh; display: flex; flex-direction: column; }
.screen main { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.card {
  width: 90vw; max-width: 500px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.card h1 {
  margin: 10px 0 24px;
  font-size: 36px;
}
.login-card {
  background: var(--ink);
  color: var(--text);
  border: 2px solid #ffffff;
  box-shadow: none;
}
.login-card h1 { font-weight: 500; text-align: center; color: #ffffff; letter-spacing: -.01em; }
.card-logo { display: block; width: 100%; height: auto; margin: 4px 0 20px; }
.card .legal { margin: 22px 0 0; text-align: center; font-size: 13.5px; color: var(--text-muted); }
.card .legal-copy { margin: 10px 0 0; text-align: center; color: var(--text-muted); }

/* Buttons: Racing Green pill, white text, Green Tint outline, as on bearkoded.com */
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 50px;
  background: var(--racing-green);
  color: #ffffff;
  border: 2px solid var(--green-tint);
  border-radius: 999px;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.gbtn:hover { background: #1b7a50; border-color: #ffffff; }
.gbtn:disabled { opacity: .6; cursor: default; }
.gbtn svg { width: 20px; height: 20px; background: #fff; border-radius: 50%; padding: 2px; }
.msg { min-height: 20px; margin: 14px 0 0; font-size: 13.5px; color: var(--danger-light); text-align: center; }
.msg:empty { margin: 0; }
.footer { padding: 20px 0 28px; color: var(--text-muted); }
.footer .wrap { display: flex; justify-content: space-between; }

/* ---------- dashboard ---------- */
.dash main { padding: 48px 0 80px; }
@media (min-width: 720px) { .dash main { padding: 72px 0 96px; } }
.dash h1 {
  margin: 10px 0 36px;
  font-size: 40px;
  color: #ffffff;
}
@media (min-width: 720px) { .dash h1 { font-size: 56px; margin-bottom: 44px; } }
.dash h1 .name { color: var(--green-tint); }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.tile {
  display: flex; flex-direction: column; gap: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile .top { display: flex; align-items: flex-start; justify-content: space-between; }
.tile .monogram {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--ink); color: var(--green-tint);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.02em;
}
.tile .tag { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.tile h2 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 4px; font-size: 24px; }
.tile h2 .arrow { color: var(--racing-green); font-weight: 400; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- user pill + menu ---------- */
.user { position: relative; }
.pill {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pill:hover { border-color: var(--green-tint); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--green-tint);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
}
.pill .chev { color: var(--muted); font-size: 10px; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 10;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px;
}
.menu .email { padding: 8px 10px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 6px; word-break: break-all; }
.menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 10px; background: none; border: 0; border-radius: 8px; font-weight: 500;
}
.menu button:hover { background: var(--paper); }

/* ---------- placeholder (BearPay) ---------- */
.placeholder p { max-width: 48ch; color: var(--text-muted); font-size: 17px; margin: 0 0 28px; }
.back { color: var(--green-tint); font-weight: 500; }
.back:hover { text-decoration: underline; }
