:root {
  --ep-blue: #1255C3;
  --ep-navy: #172231;
  --ep-grey: #697586;
  --ep-light: #F5F7FA;
  --ep-positive: #2F8F6B;
  --ep-negative: #C45C5C;
  --ep-opportunity: #B07A2A;
}

body.marketing-body {
  background: #fff;
}

.mkt-nav {
  background: #fff;
  border-bottom: 1px solid #e6ebf2;
}

.mkt-nav .navbar-brand img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.mkt-footer-logo {
  height: 52px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.4rem 0.65rem;
}
.mkt-nav .nav-link {
  color: var(--ep-navy);
  font-weight: 500;
  padding: 0.5rem 0.65rem !important;
  white-space: nowrap;
}
.mkt-nav .nav-link:hover { color: var(--ep-blue); }
.mkt-nav .nav-link.active { color: var(--ep-blue); }
.mkt-nav .btn-ep { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.mkt-nav .navbar-nav { flex-wrap: nowrap; }

.btn-ep {
  background: var(--ep-blue);
  border-color: var(--ep-blue);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.65rem 1.25rem;
}
.btn-ep:hover { background: #0e46a3; border-color: #0e46a3; color: #fff; }
.btn-ep-outline {
  background: transparent;
  border: 1.5px solid var(--ep-blue);
  color: var(--ep-blue);
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.65rem 1.25rem;
}
.btn-ep-outline:hover { background: rgba(18, 85, 195, 0.06); color: var(--ep-blue); }
.btn-ep-light {
  background: #fff;
  border-color: #fff;
  color: var(--ep-navy);
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.65rem 1.25rem;
}
.btn-ep-light:hover { background: var(--ep-light); color: var(--ep-navy); }

.mkt-hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, #fff 0%, var(--ep-light) 100%);
}
.mkt-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}
.mkt-hero .lead {
  color: var(--ep-grey);
  font-size: 1.15rem;
  max-width: 38rem;
}

.mkt-section { padding: 4.5rem 0; }
.mkt-section-alt { background: var(--ep-light); }
.mkt-section-dark {
  background: var(--ep-navy);
  color: #fff;
}
.mkt-section-dark .text-muted-on-dark { color: rgba(255,255,255,0.72); }

.mkt-section h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.mkt-kicker {
  color: var(--ep-blue);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.mkt-section-dark .mkt-kicker { color: #8eb6f0; }

.mkt-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
}
.mkt-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.mkt-card p { color: var(--ep-grey); margin-bottom: 0; }

.dash-mock {
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(23, 34, 49, 0.08);
  overflow: hidden;
}
.dash-mock-bar {
  background: var(--ep-navy);
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.dash-mock-body { padding: 1rem; }
.dash-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ep-grey);
  margin-bottom: 0.75rem;
}
.dash-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: var(--ep-light);
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}
.dash-score { font-weight: 700; color: var(--ep-blue); }
.badge-worse { color: var(--ep-negative); font-size: 0.75rem; font-weight: 600; }
.badge-better { color: var(--ep-positive); font-size: 0.75rem; font-weight: 600; }
.badge-stable { color: var(--ep-grey); font-size: 0.75rem; font-weight: 600; }
.opp-chip {
  display: inline-block;
  background: #f3ebe0;
  color: var(--ep-opportunity);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0.25rem 0.35rem 0;
}

.quote-scatter {
  display: grid;
  gap: 0.75rem;
}
.quote-card {
  background: #fff;
  border-left: 3px solid var(--ep-blue);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  color: var(--ep-grey);
  font-style: italic;
  box-shadow: 0 1px 2px rgba(23,34,49,0.04);
}
.theme-pill {
  display: inline-block;
  background: rgba(18,85,195,0.1);
  color: var(--ep-blue);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.2rem;
}

.priority-compare {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e6ebf2;
  padding: 1.25rem;
  height: 100%;
}
.priority-compare.critical { border-color: #e8b4b4; background: #fff8f8; }
.priority-compare .count { font-size: 2rem; font-weight: 700; line-height: 1; }
.priority-compare .label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.trend-bars { display: flex; align-items: flex-end; gap: 0.75rem; height: 140px; }
.trend-bars .bar {
  flex: 1;
  background: #c9d8f2;
  border-radius: 0.4rem 0.4rem 0 0;
  position: relative;
  min-width: 2.5rem;
}
.trend-bars .bar.alert { background: var(--ep-negative); }
.trend-bars .bar span {
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ep-grey);
}
.trend-alert {
  display: inline-block;
  margin-top: 2rem;
  background: #fdecec;
  color: var(--ep-negative);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ep-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.analysis-table th, .analysis-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e6ebf2;
}
.finding-pos { color: var(--ep-positive); font-weight: 600; }
.finding-neg { color: var(--ep-negative); font-weight: 600; }

.mkt-footer {
  background: var(--ep-navy);
  color: rgba(255,255,255,0.78);
  padding: 3.5rem 0 2rem;
}
.mkt-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.mkt-footer a:hover { color: #fff; }
.mkt-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.mkt-footer .brand-line { color: rgba(255,255,255,0.6); max-width: 22rem; }

.page-hero {
  padding: 3.5rem 0 2rem;
  background: var(--ep-light);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-shell {
  max-width: 28rem;
  margin: 3rem auto;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 1rem;
  padding: 2rem;
}

@media (max-width: 767.98px) {
  .mkt-hero { padding: 2.5rem 0; }
  .mkt-section { padding: 3rem 0; }
}
