/* FFWM client portal — brand tokens per ffwm_brand_guidelines: navy-dominant,
   gold as a small accent, warm neutrals (never cool gray). Matches the
   approved mockup from the planning session exactly. */
:root {
  --navy: #0D2B4E;
  --navy-light: #1a3d63;
  --gold: #EBAB0C;
  --paper: #F4F1E9;
  --surface: #FFFFFF;
  --ink: #2B2A27;
  --muted: #8a8275;
  --muted-2: #5a564d;
  --hairline: #e5e1d2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  background: var(--navy);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar .mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.topbar .wordmark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.04em;
}
.topbar .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.topbar a.logout {
  color: #cbd5e1;
  font-size: 12px;
  text-decoration: none;
}

.main { max-width: 900px; margin: 0 auto; padding: 32px 28px 8px; }
.eyebrow { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.greeting { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 26px; color: var(--ink); margin: 0 0 24px; }

.hero {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border-left: 3px solid var(--gold);
}
.hero .label { font-size: 12px; font-weight: 600; color: #B8860B; letter-spacing: 0.06em; margin: 0 0 8px; }
.hero .amount { font-family: 'Montserrat', sans-serif; font-size: 34px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.hero .sub { font-size: 14px; color: var(--muted-2); margin: 0; }

.tiles { max-width: 900px; margin: 0 auto; padding: 0 28px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border-radius: 12px; padding: 18px; }
.tile svg { color: var(--navy); }
.tile .tile-label { font-size: 13px; color: var(--muted); margin: 12px 0 2px; }
.tile .tile-value { font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.tile a { font-size: 13px; color: var(--navy); font-weight: 500; text-decoration: none; }

.section-label { max-width: 900px; margin: 4px auto 0; padding: 0 28px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }
.accounts { max-width: 900px; margin: 0 auto; padding: 12px 28px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.account-tile { background: var(--surface); border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; }
.account-tile .name { font-size: 14px; font-weight: 500; color: var(--ink); margin: 0; }
.account-tile .kind { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.account-tile svg { color: var(--muted); }

.footer { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--hairline); padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; }
.footer p { font-size: 12px; color: var(--muted); margin: 0; }
.footer a { font-size: 13px; color: var(--navy); font-weight: 500; text-decoration: none; }

/* Login page */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: var(--navy); border-radius: 14px; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 360px; }
.login-card .mark { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.login-card .wordmark { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15px; color: #fff; letter-spacing: 0.04em; margin: 0 0 28px; text-align: center; }
.login-card .prompt { font-size: 13px; color: #cbd5e1; margin: 0 0 20px; }
.login-card .btn {
  width: 100%; background: var(--gold); border: none; border-radius: 8px; padding: 12px 14px;
  text-align: center; font-size: 13px; font-weight: 600; color: #5a3d00; text-decoration: none;
  display: block; cursor: pointer;
}
.login-card .secured { font-size: 11px; color: #8593a8; margin: 18px 0 0; }

.empty-state { max-width: 480px; margin: 80px auto; text-align: center; padding: 0 24px; }
.empty-state h1 { font-family: 'Montserrat', sans-serif; font-size: 20px; color: var(--ink); }
.empty-state p { color: var(--muted-2); }

@media (max-width: 600px) {
  .tiles, .accounts { grid-template-columns: 1fr; }
}
