/* Floperati shared stylesheet — vanilla CSS for dashboard, leaderboard, landing.
 * Style tokens lifted from reference/floperati-site-design-concept (style only;
 * no framework, no build step). All data rendering stays in each page's own
 * script; this file must never change behavior, only presentation. */

:root {
  color-scheme: light;
  --background: #fafafa;
  --foreground: #1d1d1f;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-fg: #737373;
  --faint: #a0a0a0;
  --border: #eaeaea;
  --border-soft: #f0f0f0;
  --input: #e2e2e2;
  --primary: #1d1d1f;
  --primary-fg: #ffffff;
  --green-bg: #eaf8ef;
  --green-fg: #287b46;
  --gray-bg: #f1f1f1;
  --gray-fg: #777777;
  --amber-bg: #fdf3e3;
  --amber-fg: #92580a;
  --accent: #6d4aff;
  --accent-soft: #eee9ff;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }

/* ---------- buttons / inputs (shared) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--foreground);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--muted); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: #333336; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
input[type="email"], input[type="password"], input[type="text"], input[type="number"], textarea {
  padding: 8px 10px;
  border: 1px solid var(--input);
  border-radius: 7px;
  background: var(--card);
  color: var(--foreground);
  font-size: 13px;
}
input[type="number"] { width: 64px; text-align: center; }
label { font-size: 13px; }

/* ---------- app shell (dashboard + leaderboard) ---------- */
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.04em; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--primary); color: var(--primary-fg); font-size: 13px;
}
.main { display: flex; flex-direction: column; min-height: 100vh; }
/* ---------- shared site header (single source: header.js) ----------
   One header for landing, dashboard, and leaderboard: brand left, nav
   (Dashboard · Leaderboard, fixed order) next, auth area pinned right.
   Auth slot contents are rendered by site-auth.renderAuthHeader with the
   same options everywhere — signed in: [avatar name] [Sign out];
   signed out: [Start My Agents]. Nothing swaps sides. */
.site-header { border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.85); }
.site-header-inner {
  width: min(1120px, calc(100% - 84px));
  margin: 0 auto;
  min-height: 58px;
  display: flex; align-items: center; gap: 26px;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--muted-fg); font-size: 13px; text-decoration: none; padding: 7px 10px; border-radius: 7px; }
.site-nav a:hover { background: var(--muted); color: var(--foreground); }
.site-nav a.active { background: var(--muted); color: var(--foreground); font-weight: 600; }
.site-auth { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.content { width: min(1120px, calc(100% - 84px)); margin: 0 auto; padding: 44px 0 36px; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 9px; color: #8c8c8c; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
/* Concept-style section kickers (10px / wide tracking) above panel headings. */
.section-kicker {
  display: flex; align-items: center; gap: 6px; margin: 0 0 8px;
  color: #8c8c8c; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.section-kicker svg { display: block; }
.page-intro h1 { margin: 0; font-size: 27px; font-weight: 650; letter-spacing: -0.04em; }
.intro-copy { margin: 8px 0 0; color: var(--muted-fg); font-size: 14px; }
/* The common footer is .landing-footer (shared with the landing page). */

/* ---------- cards / panels ---------- */
.card, .panel {
  border: 1px solid #e7e7e7;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.section { margin-bottom: 14px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; }
.panel-head h2 { margin: 0; font-size: 14px; font-weight: 650; }
.panel-head p { margin: 5px 0 0; color: #8a8a8a; font-size: 12px; }
.panel-body { padding: 0 20px 20px; }
.panel-body > p:first-child { margin-top: 0; }
.divided > * { border-top: 1px solid var(--border-soft); }
.divided > *:first-child { border-top: 0; }
.empty-note { color: var(--faint); font-size: 12px; }
.fineprint { color: var(--faint); font-size: 11px; }

/* ---------- two-column lower grid + panel foot (dashboard) ---------- */
.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lower-grid .section { margin-bottom: 0; }
.panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-top: 1px solid var(--border-soft);
  color: #999999; font-size: 11px;
}
.panel-foot[hidden] { display: none; }
.refresh-note { display: inline-flex; align-items: center; gap: 5px; }
.refresh-note svg { display: block; }

/* ---------- metric strip (segmented: one bordered container) ---------- */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid #e7e7e7; border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02); overflow: hidden; margin-bottom: 24px;
}
.metric { padding: 17px 20px 15px; border-right: 1px solid var(--border-soft); }
.metric:last-child { border-right: 0; }
.metric-top { color: var(--muted-fg); font-size: 12px; }
.metric-value { margin-top: 12px; font-size: 25px; font-weight: 600; letter-spacing: -0.04em; }
.metric-value small { color: var(--faint); font-size: 14px; font-weight: 400; }
.metric-foot { margin-top: 8px; color: #9a9a9a; font-size: 11px; }

/* ---------- agent cards (header · stat tiles · footer) ---------- */
.agent-card {
  margin: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px 24px 14px;
}
.agent-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.agent-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.agent-card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.agent-card__icon svg { display: block; width: 22px; height: 22px; }
/* Shared role artwork base (landing role cards + dashboard agent cards);
   tone comes from the icon-<role> class on the same element. */
.agent-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
}
.icon-flopster { background: #eee9ff; color: #7654d3; }
.icon-flopify { background: #e4f5ed; color: #27804f; }
.icon-flopsmith { background: #fff0df; color: #b77025; }
.agent-icon svg { display: block; }
.agent-card__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.agent-card__name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.agent-card__did {
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-top: 2px;
}
.agent-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.agent-card__actions .btn { font-weight: 500; }
/* Card status renders as dot + text (no pill background);
   the tone classes (.status-green/amber/gray) still supply the colors. */
.agent-card .status-badge { background: none; padding: 0; font-size: 13px; }
.agent-card .status-badge::before { width: 6px; height: 6px; }
.agent-card__stats {
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 12px;
}
.stat-tile {
  background: var(--muted);
  border-radius: 10px;
  padding: 1rem;
  min-width: 0;
}
.stat-tile__label {
  font-size: 13px;
  color: var(--muted-fg);
  margin-bottom: 4px;
}
.stat-tile__value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat-tile--primary .stat-tile__value { font-size: 28px; }
.stat-tile--rank .stat-tile__value { font-size: 15px; line-height: 1.6; }
.stat-tile__sub {
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.stat-tile__sub--positive { color: var(--green-fg); font-weight: 600; }
.agent-card__footer {
  text-align: right;
  font-size: 12px;
  color: var(--faint);
  margin-top: 10px;
}
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600; white-space: nowrap;
}
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-green { background: var(--green-bg); color: var(--green-fg); }
.status-gray { background: var(--gray-bg); color: var(--gray-fg); }
.status-amber { background: var(--amber-bg); color: var(--amber-fg); }
.rename-row { display: flex; align-items: center; gap: 8px; padding: 8px 20px 12px 70px; font-size: 12px; flex-wrap: wrap; }
.rename-row .msg { color: var(--amber-fg); }
/* Setup CTAs render as concept-style attention bars (soft card rows). */
.cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 14px 20px 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 7px; background: var(--muted);
  font-size: 12px;
}
/* Outrank .divided > *:first-child (border-top: 0) so every bar keeps its box. */
.divided > .cta-row { border: 1px solid var(--border); border-radius: 7px; }

/* ---------- activity feed ---------- */.activity-row { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--border-soft); }
.activity-row:first-child { border-top: 0; }
.activity-check {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 13px; font-weight: 700;
}
/* Colors come from the tone class the renderer adds (status-green/amber/gray)
   so each outcome can carry its own icon + tone. */
.activity-check svg { display: block; }
.activity-copy { flex: 1; min-width: 0; font-size: 12px; color: #535353; }
.activity-copy strong { color: var(--foreground); font-weight: 600; }
.activity-copy span { display: block; overflow: hidden; margin-top: 4px; color: #989898; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.activity-row time { color: var(--faint); font-size: 10px; white-space: nowrap; }

/* ---------- billing ---------- */
.bill-card { padding: 14px 20px; border-top: 1px solid var(--border-soft); }
.bill-card:first-child { border-top: 0; }
.bill-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.bill-title { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.bill-sub { margin: 6px 0 0; color: #626262; font-size: 12px; }
.bill-line { margin: 8px 0 0; font-size: 12px; color: #535353; }
.bill-note { margin: 8px 0 0; font-size: 11px; color: #929292; }
.bill-card .btn { margin-top: 10px; }

/* ---------- activity pager ---------- */
.pager { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #929292; }
.pager .btn[disabled] { opacity: 0.4; cursor: default; }

/* ---------- points ---------- */
.points-overall { font-size: 13px; }
.points-row { padding: 12px 20px; border-top: 1px solid var(--border-soft); font-size: 12px; }
.points-row:first-child { border-top: 0; }
.points-row .nick { font-weight: 600; }
.points-row .meta { color: #8a8a8a; }
.notice-full {
  margin: 0 0 14px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--muted); font-size: 12px; color: #555555;
}

/* ---------- leaderboard ---------- */
.lb-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: #8a8a8a; font-size: 11px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid #e8e8e8; border-radius: 7px; background: var(--background); }
.segmented button { padding: 6px 10px; border: 0; border-radius: 5px; background: transparent; color: #8a8a8a; font-size: 11px; }
.segmented button.selected { background: var(--card); color: var(--foreground); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); font-weight: 600; }
.segmented button:disabled { cursor: default; }
.lb-head, .lb-row { display: grid; grid-template-columns: 58px minmax(210px, 1.5fr) 90px 80px minmax(170px, 1fr); align-items: center; gap: 14px; }
.lb-head { padding: 11px 20px; color: #9b9b9b; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.lb-row { padding: 10px 20px; border-top: 1px solid #f2f2f2; font-size: 12px; min-height: 63px; }
.lb-rank { color: #8f8f8f; font-variant-numeric: tabular-nums; }
.lb-agent { min-width: 0; }
.lb-agent strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lb-agent small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; color: #a3a3a3; font-size: 10px; }
.lb-agent .lb-did { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.lb-agent .lb-flags { color: var(--amber-fg); }
.lb-points { font-variant-numeric: tabular-nums; font-weight: 600; }
.lb-delta { color: #20834a; font-size: 11px; font-weight: 600; }
.lb-activity { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.lb-tag { padding: 3px 9px; border-radius: 6px; background: var(--muted); color: #7a7a7a; font-size: 10.5px; white-space: nowrap; }
.lb-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border-soft); color: #999999; font-size: 11px; }
.lb-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.mover-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--border-soft); font-size: 12px; }
.mover-row:first-child { border-top: 0; }
.mover-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mover-delta { margin-left: auto; color: #20834a; font-weight: 600; font-size: 11px; white-space: nowrap; }
.mover-score { color: var(--faint); font-size: 11px; white-space: nowrap; }

/* ---------- auth / forms ---------- */
.auth-card p { margin: 0 0 12px; }
.form-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.oauth-row { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }

/* ---------- modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center; padding: 20px;
  background: rgba(20, 20, 20, 0.25);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border: 1px solid #e4e4e4; border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}
.modal-head { display: flex; justify-content: space-between; gap: 12px; padding: 23px 24px 7px; }
.modal-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.04em; }
.modal-head .eyebrow { margin-bottom: 6px; }
.modal-close { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--muted-fg); font-size: 18px; line-height: 1; }
.modal-copy { margin: 0; padding: 0 24px 18px; color: var(--muted-fg); font-size: 12px; }
.modal-list { border-top: 1px solid #eeeeee; }
.purchase-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 24px; border-bottom: 1px solid #f1f1f1; }
.purchase-row > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.purchase-row strong { font-size: 13px; }
.purchase-row span { color: #888888; font-size: 11px; }
.purchase-ctl { display: flex; align-items: center; gap: 12px; }
.modal-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 14px; flex-wrap: wrap; padding: 18px 24px; font-size: 12px; }
.modal-total strong { font-size: 16px; }
.modal-total[hidden] { display: none; }
.pay-switch { display: flex; gap: 10px; padding: 4px 24px 0; }
.paymode-btn { flex: 1; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--foreground); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.paymode-btn.paymode-on { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.months-row { display: flex; gap: 10px; padding: 12px 24px 0; }
.month-btn { flex: 1; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--foreground); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.month-btn.month-on { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 24px 12px; }
.modal-note { margin: 0; padding: 0 24px 22px; color: #aaaaaa; font-size: 10px; text-align: right; }
.modal-next { margin: 8px 0 0; color: #6e6e6e; font-size: 11px; text-align: right; }
.modal-body { padding: 0 24px 22px; font-size: 13px; }
#buy-form-view[hidden], #buy-success-view[hidden], #setup-form-view[hidden], #setup-success-view[hidden] { display: none; }
.buy-success-status, .setup-success-status { margin: 0 0 8px; font-size: 15px; line-height: 1.55; }
.setup-key { width: 100%; font-family: monospace; font-size: 11px; }
.checkline { display: block; margin: 8px 0; font-size: 12px; }

/* ---------- landing page ---------- */
.landing { background: var(--card); }
.header-profile { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.header-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.avatar-initial { display: grid; place-items: center; background: #e9f2ff; color: #2872c8; font-size: 12px; }

/* ---------- auth modal (Login04 pattern, vanilla) ---------- */
.auth-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.04em; }
.auth-title { margin: 0; font-size: 19px; letter-spacing: -0.03em; }
.auth-switch { margin: 8px 0 0; color: var(--muted-fg); font-size: 13px; }
.linklike { padding: 0; border: 0; background: none; color: var(--foreground); font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.oauth-duo { display: flex; gap: 10px; margin-top: 18px; }
.oauth-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--foreground); font-size: 12.5px; font-weight: 600; }
.oauth-btn:hover { background: var(--muted); }
.oauth-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #a0a0a0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.field { margin: 0 0 12px; }
.field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; }
.btn-block { width: 100%; justify-content: center; padding: 10px; }
/* Email-link sent stage: same stage pattern as every other auth state —
   replaces the form + toggle when visible (hidden otherwise). */
.auth-sent { margin-top: 18px; }
.auth-sent[hidden] { display: none; }
.auth-sent strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.auth-sent .modal-copy { padding: 6px 0 14px; }
#auth-tos-row { font-size: 12px; margin: 2px 0 12px; }
.hero { width: min(1120px, calc(100% - 84px)); margin: 0 auto; padding: 72px 0 56px; text-align: left; }
.hero h1 { margin: 0; font-size: 44px; font-weight: 650; letter-spacing: -0.045em; max-width: 640px; }
.hero .sub { margin: 16px 0 0; color: var(--muted-fg); font-size: 17px; max-width: 620px; }
.hero-cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-cta .btn { padding: 11px 20px; font-size: 14px; border-radius: 8px; }
.proof { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--background); }
.proof-inner { width: min(1120px, calc(100% - 84px)); margin: 0 auto; padding: 26px 0; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; color: var(--muted-fg); font-size: 13px; }
.proof-inner strong { color: var(--foreground); font-size: 20px; letter-spacing: -0.03em; }
.proof-stat { display: flex; flex-direction: column; gap: 2px; }
.landing-section { width: min(1120px, calc(100% - 84px)); margin: 0 auto; padding: 56px 0; }
.landing-section h2 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -0.035em; }
.landing-section > p.section-sub { margin: 10px 0 0; color: var(--muted-fg); font-size: 14px; max-width: 640px; }
.problem-quote {
  margin: 26px 0 0; padding: 22px 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); font-size: 17px; letter-spacing: -0.01em;
  max-width: 720px;
}
.problem-quote small { display: block; margin-top: 10px; color: var(--muted-fg); font-size: 12px; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.role-card { padding: 20px; }
.role-card h3 { margin: 10px 0 0; font-size: 15px; }
.role-card p { margin: 8px 0 0; color: var(--muted-fg); font-size: 12px; }
.role-price { margin-top: 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.role-price small { color: var(--faint); font-size: 11px; font-weight: 400; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.step { padding: 18px; }
.step-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--muted); font-size: 12px; font-weight: 700; }
.step h3 { margin: 12px 0 0; font-size: 13px; }
.step p { margin: 6px 0 0; color: var(--muted-fg); font-size: 12px; }
.faq { margin-top: 26px; max-width: 760px; }
.faq details { border: 1px solid var(--border); border-radius: 8px; background: var(--card); margin-bottom: 8px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.faq details p { margin: 10px 0 0; color: #555555; font-size: 13px; }
.final-cta { border-top: 1px solid var(--border); background: var(--background); }
.final-cta-inner { width: min(1120px, calc(100% - 84px)); margin: 0 auto; padding: 64px 0; text-align: left; }
.final-cta-inner h2 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.04em; }
.landing-footer { width: min(1120px, calc(100% - 84px)); margin: 0 auto; padding: 24px 0 32px; display: flex; justify-content: space-between; gap: 12px; color: #aaaaaa; font-size: 11px; flex-wrap: wrap; }

/* ---------- dashboard concept typography (scoped to dashboard.html) ----------
   Shared classes (.page-intro h1, .eyebrow, panel/modal h2) adopt the
   concept's type rhythm only on the dashboard via body.page-dashboard;
   leaderboard/landing keep today's scale. No color tokens change. */
.page-dashboard .page-intro h1 { font-size: 36px; letter-spacing: -0.05em; }
.page-dashboard .eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.page-dashboard .panel-head h2 { font-size: 20px; letter-spacing: -0.035em; }
.page-dashboard .modal-head h2 { font-size: 20px; letter-spacing: -0.035em; }
.page-dashboard .metric-value,
.page-dashboard .stat-tile__value,
.page-dashboard .pager { font-variant-numeric: tabular-nums; }
.page-dashboard .btn svg { display: block; }
/* Full-bleed list bodies: rows carry their own inset + hairlines. */
.page-dashboard #agents-out,
.page-dashboard #activity-out,
.page-dashboard #billing-out { padding: 0; }
.page-dashboard #agents-out > .empty-note,
.page-dashboard #activity-out > .empty-note { margin: 0; padding: 12px 20px; }
.page-dashboard #agents-out > p { margin: 0; padding: 0 20px; }
.page-dashboard #billing-out > .empty-note { margin: 0; padding: 12px 20px; }
.page-dashboard #billing-out > .fineprint {
  margin: 0; padding: 10px 20px; border-top: 1px solid var(--border-soft);
}

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .agent-card__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .content { width: min(100% - 50px, 850px); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .lower-grid { grid-template-columns: 1fr; }
  .agent-card { margin: 12px 16px; padding: 16px 18px 12px; }
  .rename-row { padding-left: 20px; }
  .lb-head, .lb-row { grid-template-columns: 44px minmax(150px, 1.4fr) 70px 64px minmax(120px, 1fr); gap: 10px; }
  .role-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lb-duo { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  /* Header collapses to two rows: brand + auth on row one, nav full-width
     on row two. Signed-in name hides (avatar only) so row one always fits. */
  .site-header-inner { width: calc(100% - 34px); flex-wrap: wrap; gap: 12px; row-gap: 10px; padding: 10px 0; }
  .site-nav { order: 3; flex-basis: 100%; }
  .header-name { display: none; }
  .content { width: calc(100% - 34px); padding: 28px 0; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .page-dashboard .page-intro h1 { font-size: 28px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; }
  .metric:not(:last-child) { border-bottom: 1px solid var(--border-soft); }
  .lb-head { display: none; }
  .lb-row { grid-template-columns: 40px 1fr auto; }
  .lb-delta, .lb-activity { display: none; }
  .activity-row time { display: none; }
  .hero h1 { font-size: 32px; }
  .steps { grid-template-columns: 1fr; }
  .purchase-row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .purchase-ctl { width: 100%; justify-content: space-between; }
}
