/* OFbloom — shared styles (landing + dashboard). Palette and type from the Grok landing page. */
:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #00AFF0;
  --accent-hover: #0095d0;
  --border: #e8e8e8;
  --ok: #16a34a;
  --warn: #b45309;
  --bad: #dc2626;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }
header.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; gap: 16px; }
.logo { font-weight: 700; font-size: 22px; color: var(--accent); text-decoration: none; }
.btn {
  background: var(--accent); color: #fff; border: none; padding: 10px 20px; border-radius: 8px;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--accent-hover); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--surface); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.sub { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card p { color: var(--muted); font-size: 14px; }
section.block { margin-bottom: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.proof { display: flex; gap: 40px; flex-wrap: wrap; }
.proof div { font-size: 13px; color: var(--muted); }
.proof strong { display: block; font-size: 22px; font-weight: 700; color: var(--text); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: #bbf7d0; background: #f0fdf4; }
.pill.off { color: var(--muted); }
.pill.warn { color: var(--warn); border-color: #fde68a; background: #fffbeb; }
.pill.bad { color: var(--bad); border-color: #fecaca; background: #fef2f2; }
.feed-card { display: flex; flex-direction: column; gap: 8px; }
.feed-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--accent); padding: 8px 12px; background: var(--surface); border-radius: 0 8px 8px 0; }
.note.warn { border-left-color: var(--warn); }
footer { color: var(--muted); font-size: 13px; margin-top: 48px; border-top: 1px solid var(--border); padding-top: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
input, select, textarea {
  font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.hidden { display: none !important; }
code { font-size: 12px; overflow-wrap: anywhere; word-break: break-word; }

/* Dashboard shell */
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--border); padding: 24px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.sidebar .logo { margin: 0 8px 20px; }
.nav-item { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; cursor: pointer; border: 0; background: none; text-align: left; font-family: inherit; }
.nav-item:hover { background: var(--surface); }
.nav-item.active { background: #e6f7fe; color: #0077a8; font-weight: 600; }
.sidebar .who { margin-top: auto; font-size: 12px; color: var(--muted); padding: 8px 12px; word-break: break-all; }
.main { padding: 32px; min-width: 0; }
.main h1 { font-size: 28px; }
.view { display: none; }
.view.active { display: block; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .src { font-size: 11px; color: var(--muted); margin-top: 4px; }
.thread { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.msg { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: 14px; max-width: 80%; }
.msg.out { align-self: flex-end; background: #e6f7fe; border-color: #bae6fd; }
.msg .meta { font-size: 11px; color: var(--muted); }
.inbox { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.convo { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; border: 1px solid transparent; }
.convo:hover { background: #fff; border-color: var(--border); }
.convo.active { background: #fff; border-color: var(--accent); }
.mobile-nav { display: none; }

@media (max-width: 760px) {
  h1 { font-size: 32px; }
  .wrap { padding: 20px 16px 60px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 5; }
  .mobile-nav .nav-item { white-space: nowrap; }
  .main { padding: 20px 16px; }
  .inbox { grid-template-columns: 1fr; }
}
