/* Comma Hub — client portal skin (Build P).
   Built to spec/unified-dashboard-design/Unified Client Portal.dc.html +
   Client Portal Mobile.dc.html. Warmer + calmer than the advisor console.
   Status-only: NO dollar figures, no advice, no auto-upsell (liability firewall). */

:root {
  --bg: #E7E1D3;
  --panel: #FFFDF8;
  --panel-2: #F7F4ED;
  --line: #DBD4C4;
  --ink: #2E2E2E;
  --ink-2: #4A463E;
  --muted: #6B655A;
  --muted-2: #8A8072;
  --dark: #2A2A2A;
  --gold: #C9A800;
  --gold-bright: #E6C200;
  --green: #5E7F4E;
  --amber: #B45309;
  --red: #B4241F;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Source Serif 4', Georgia, serif; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }

/* ── Sign in: split screen ───────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.split .left {
  background: var(--dark); color: #F7F4ED;
  padding: 44px; display: flex; flex-direction: column;
}
.split .left .logo { font-weight: 800; font-size: 22px; }
.split .left .logo b { color: var(--gold-bright); }
.split .left .pitch { margin-top: auto; max-width: 420px; }
.split .left .pitch h2 { font-size: 40px; line-height: 1.12; margin: 0 0 18px; letter-spacing: -.02em; }
.split .left .pitch p { color: rgba(247,244,237,.72); font-size: 15.5px; line-height: 1.6; margin: 0; }
.split .left .foot {
  margin-top: auto; padding-top: 34px; font-size: 13px;
  display: flex; gap: 18px; flex-wrap: wrap;
  color: rgba(247,244,237,.42);
}
/* Anchors keep the previous muted-span look: inherited colour, no underline until
   hover, so the footer reads as quiet wayfinding rather than a row of links. */
.split .left .foot a {
  color: inherit; text-decoration: none;
  transition: color .15s ease;
}
.split .left .foot a:hover { color: rgba(247,244,237,.85); text-decoration: underline; text-underline-offset: 3px; }
.split .left .foot a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.split .right { display: grid; place-items: center; padding: 40px 32px; }
.signin { width: 100%; max-width: 380px; }
.signin .eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.signin h1 { font-size: 32px; margin: 10px 0 6px; letter-spacing: -.02em; }
.signin .sub { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-bottom: 22px; }
.signin label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.signin input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--panel);
}
.signin input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.signin button.primary {
  width: 100%; margin-top: 16px; padding: 13px; border: 0; border-radius: 10px;
  background: var(--gold-bright); color: #2A2A2A; font-weight: 700; font-size: 15px;
}
.signin button.primary:hover { background: var(--gold); }
.signin .note { margin-top: 16px; color: var(--muted-2); font-size: 13px; text-align: center; }
.signin .msg { margin-top: 14px; font-size: 13.5px; line-height: 1.5; min-height: 18px; }
.signin .msg.err { color: var(--red); }
.signin .msg.ok { color: var(--green); }

/* ── Portal shell ────────────────────────────────────────── */
.nav {
  background: var(--dark); color: #F7F4ED;
  display: flex; align-items: center; gap: 22px; padding: 0 28px; height: 60px;
}
.nav .logo { font-weight: 800; font-size: 19px; }
.nav .logo b { color: var(--gold-bright); }
.nav .spacer { flex: 1; }
.nav .who { display: flex; align-items: center; gap: 12px; }
.nav .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(247,244,237,.16);
  display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #F7F4ED;
}
.nav .email { color: rgba(247,244,237,.6); font-size: 13px; }
.nav .signout { color: rgba(247,244,237,.55); font-size: 13px; background: none; border: 0; }
.nav .signout:hover { color: #F7F4ED; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 40px 28px 64px; }
.eyebrow-biz { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hello { font-size: 40px; margin: 8px 0 10px; letter-spacing: -.02em; }
.lede { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 620px; margin: 0; }

/* Business switcher — multi-entity is normal, not an edge case. */
.switcher { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 4px; }
.switcher .biz {
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink-2); font-size: 13.5px; font-weight: 600;
}
.switcher .biz:hover { border-color: var(--muted-2); }
.switcher .biz.active { background: var(--dark); color: #F7F4ED; border-color: var(--dark); }

.section-title { font-size: 19px; margin: 30px 0 14px; }

/* ── Service cards ───────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; min-height: 176px;
}
.card .top { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; }
.card .tag { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.card .titles { flex: 1; min-width: 0; }
.card .title { font-weight: 700; font-size: 15.5px; }
.card .tagline { color: var(--muted); font-size: 13px; margin-top: 1px; }
.card .pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.card .headline { font-size: 25px; margin: 4px 0 3px; letter-spacing: -.01em; }
.card .stage { color: var(--muted); font-size: 13.5px; }
.card .foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 12.5px; display: flex; align-items: center; gap: 7px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); } .dot.amber { background: var(--amber); }
.dot.red { background: var(--red); } .dot.none { background: var(--muted-2); }

.card.notconnected { background: var(--panel-2); box-shadow: none; }
.card.notconnected .body { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 2px; }
.card.notconnected .ask { display: block; margin-top: 10px; color: var(--ink-2); font-weight: 600; }
.card.static { background: linear-gradient(180deg, #FBF7EC, #F2EDDD); }
.card.static .body { color: var(--muted); font-size: 14px; line-height: 1.55; }

.empty {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; text-align: center; box-shadow: var(--shadow);
}
.empty h2 { font-size: 22px; margin: 0 0 8px; }
.empty p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

.footnote { margin-top: 30px; color: var(--muted-2); font-size: 12.5px; line-height: 1.6; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .left { min-height: auto; padding: 28px; }
  .split .left .pitch { margin-top: 26px; }
  .split .left .pitch h2 { font-size: 30px; }
  .split .left .foot { display: none; }
  .split .right { padding: 32px 22px 46px; }
  .nav { padding: 0 16px; gap: 12px; }
  .nav .email { display: none; }
  .wrap { padding: 26px 16px 52px; }
  .hello { font-size: 29px; }
  .grid { grid-template-columns: 1fr; }
}
