:root {
  --navy: #05043f;
  --blue: #155b8d;
  --cyan: #3f98b6;
  --orange: #e58a45;
  --ink: #141827;
  --muted: #687080;
  --line: #e7e9ef;
  --bg: #f6f8fc;
  --white: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.topbar { min-height: 76px; padding: 14px 36px; display: flex; align-items: center; justify-content: space-between; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.brand img { height: 42px; width: auto; }
.topbar nav a { color: var(--muted); font-weight: 700; }
.page { max-width: 1180px; margin: 0 auto; padding: 42px 24px 72px; }
.footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--muted); font-size: 13px; }
.footer img { height: 26px; width: auto; opacity: .82; }
.login-card { max-width: 460px; margin: 54px auto; padding: 42px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 50px rgba(20,24,39,.08); text-align: center; }
.login-logo { width: 260px; max-width: 80%; margin-bottom: 22px; }
h1 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 54px); line-height: 1.02; }
h2 { margin: 0 0 12px; font-size: 24px; }
h3 { margin: 22px 0 12px; }
.muted { color: var(--muted); }
.form { display: grid; gap: 12px; margin-top: 28px; text-align: left; }
.form label { font-weight: 800; color: var(--navy); }
.form input { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 16px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--navy); color: white; font-weight: 800; cursor: pointer; }
.button.secondary { background: #eef2ff; color: var(--navy); }
.error { margin: 18px 0; padding: 12px 14px; background: #fff1f1; color: #aa1f1f; border-radius: 12px; font-weight: 700; }
.hero-card, .section-card, .client-hero, .client-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 14px 38px rgba(20,24,39,.06); }
.hero-card { padding: 36px; margin-bottom: 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.client-card { padding: 24px; display: flex; align-items: center; gap: 18px; transition: transform .16s ease, box-shadow .16s ease; }
.client-card:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(20,24,39,.10); }
.client-card img { width: 76px; height: 76px; object-fit: contain; }
.client-card h2, .client-card p { margin: 0; }
.client-hero { overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 42px; margin-bottom: 24px; background: linear-gradient(135deg, var(--brand), #111653); color: white; }
.client-hero h1 { font-size: clamp(42px, 5vw, 72px); }
.client-hero h2 { color: rgba(255,255,255,.85); font-size: 24px; }
.client-hero img { width: min(340px, 36vw); max-height: 180px; object-fit: contain; }
.eyebrow { margin: 0 0 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; }
.section-card { padding: 30px; margin-bottom: 22px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.metrics div { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcff; }
.metrics span { display: block; font-size: 13px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.metrics strong { font-size: 22px; color: var(--navy); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 28px; align-items: center; }
.summary-image { width: 100%; border-radius: 18px; border: 1px solid var(--line); background: white; }
.clean-list { padding-left: 18px; line-height: 1.8; }
.columns { columns: 2; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.pill-list li { padding: 9px 12px; background: #eef2ff; border-radius: 999px; color: var(--navy); font-weight: 800; }
.report-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 780px) {
  .topbar { padding: 14px 20px; }
  .client-hero, .section-heading { display: block; }
  .client-hero img { margin-top: 28px; width: 100%; }
  .two-col { grid-template-columns: 1fr; }
  .columns { columns: 1; }
}
.powered-by-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 24px;
  color: #667085;
  font-size: 0.95rem;
  font-weight: 500;
}

.powered-by-login img {
  height: 30px;
  width: auto;
  display: block;
}

/* Login page refinements */
.login-title {
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.04;
  margin: 0 0 18px;
}

.page:has(.login-card) {
  padding-bottom: 6px;
}

.login-card {
  margin-bottom: 14px;
}

.page:has(.login-card) + .footer {
  padding-top: 0;
}

/* Force login title into exactly two lines */
.login-card .login-title {
  font-size: 40px !important;
  line-height: 1.08 !important;
  margin: 0 0 22px !important;
  text-align: center;
}

.login-card .login-title span {
  display: block;
  white-space: nowrap;
}

/* Header LeadHarbor link */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.leadharbor-header-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.leadharbor-header-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.leadharbor-header-link img {
  height: 34px;
  width: auto;
  display: block;
}
