/* CompareHCM — Design System
   Charcoal #18181b | Indigo #6366f1 | Sky #0ea5e9 | Slate #1e293b | Page #f8fafc */

:root {
  --navy: #18181b;        /* charcoal — headings, header/footer bg, table header */
  --navy-2: #27272a;      /* charcoal depth — gradients, alt badge */
  --sky: #0ea5e9;         /* sky accent */
  --orange: #6366f1;      /* indigo — primary CTA + accents */
  --orange-dark: #4f46e5; /* darker indigo — hover */
  --light: #cbd5e1;       /* light text on dark surfaces */
  --gray: #1e293b;        /* body text — dark slate */
  --bg: #f8fafc;          /* page background — near white */
  --white: #ffffff;
  --border: #e2e8f0;      /* card border */
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 28px rgba(15, 23, 42, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
a { color: var(--orange); }
section { padding: 56px 0; }
.section-sub { max-width: 640px; margin: 0 auto 2rem; text-align: center; color: #5a6275; }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid #27272a;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo {
  font-size: 1.4rem; font-weight: 800; color: #fff;
  text-decoration: none; letter-spacing: -0.5px;
}
.logo span { color: var(--orange); }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a {
  color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange); border-bottom-color: var(--orange); }
.nav-cta { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  border: none; cursor: pointer; transition: background 0.15s ease;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #3f3f46; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 15px 34px; font-size: 1.1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #18181b 0%, #27272a 70%, #3f3f46 100%);
  color: #fff; text-align: center; padding: 88px 0 96px;
}
.hero h1 { color: #fff; font-size: 2.9rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 680px; margin: 0 auto 2rem; color: var(--light); }
.hero .btn { margin: 0 8px; }

/* Smaller page hero */
.page-hero {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  color: #fff; padding: 48px 0;
}
.page-hero h1 { color: #fff; font-size: 2.1rem; margin-bottom: 0.4rem; }
.page-hero p { color: var(--light); margin: 0; max-width: 760px; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 12px; color: var(--sky); }
.breadcrumbs a { color: var(--sky); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Vendor grid / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-lg); }

.vendor-card { display: flex; flex-direction: column; }
.vendor-card .vendor-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.vendor-card h3 { font-size: 1.1rem; }
.vendor-card .best-for { font-size: 0.9rem; color: #5a6275; margin-bottom: 10px; }
.vendor-card ul { list-style: none; margin-bottom: 14px; }
.vendor-card ul li { font-size: 0.88rem; padding: 3px 0 3px 22px; position: relative; }
.vendor-card ul li::before { content: "✓"; color: var(--sky); font-weight: 800; position: absolute; left: 0; }
.vendor-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }

/* ---------- Vendor logos (Clearbit) ---------- */
.vendor-logo {
  width: 120px; height: 40px; object-fit: contain;
  background: #fff; padding: 8px; border-radius: 6px;
  box-sizing: border-box; flex-shrink: 0; border: 1px solid var(--border);
}
.vendor-logo.lg { width: 160px; height: 52px; padding: 10px; }
.vendor-logo-fallback {
  display: inline-flex; align-items: center; min-height: 40px;
  font-weight: 800; color: var(--navy); background: #fff;
  padding: 8px 12px; border-radius: 6px; font-size: 0.95rem;
  border: 1px solid var(--border); flex-shrink: 0;
}

.logo-badge {
  width: 48px; height: 48px; min-width: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; color: #fff; background: var(--navy);
}
.logo-badge.alt { background: var(--navy-2); }
.logo-badge.sky { background: var(--sky); }
.logo-badge.orange { background: var(--orange); }
.logo-badge.lg { width: 72px; height: 72px; min-width: 72px; font-size: 1.5rem; border-radius: 14px; }

.rating { color: var(--orange); font-weight: 700; font-size: 0.95rem; }
.rating .stars { letter-spacing: 1px; }
.rating .muted { color: #98a0b3; font-weight: 500; font-size: 0.8rem; }

.tag {
  display: inline-block; background: var(--light); color: var(--navy);
  font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  margin: 0 6px 6px 0;
}
.tag.orange { background: #e0e7ff; color: #4338ca; }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px;
}
.filter-bar label { font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.filter-bar select {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; color: var(--gray); background: #fff;
}

/* ---------- How it works ---------- */
.steps { counter-reset: step; }
.step { text-align: center; padding: 28px 20px; }
.step .step-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--sky); color: #fff; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.95rem; color: #5a6275; margin: 0; }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 36px; max-width: 720px; margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; color: var(--gray); background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--sky); border-color: var(--sky);
}
.form-note { font-size: 0.8rem; color: #98a0b3; margin-top: 10px; }

/* ---------- Tables (comparisons, pricing) ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.compare th, table.compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare thead th { background: var(--navy); color: #fff; font-size: 0.95rem; }
table.compare thead th:first-child { width: 22%; }
table.compare tbody th { background: #f1f5f9; color: var(--navy); font-weight: 700; width: 22%; }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: none; }
table.compare .win { color: var(--orange); font-weight: 700; }
table.compare .check { color: #1d9e55; font-weight: 800; }
table.compare .cross { color: #c4441c; font-weight: 800; }

/* ---------- Pros / Cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pros, .cons { border-radius: var(--radius); padding: 22px 24px; }
.pros { background: #eef9f1; border: 1px solid #cdeBD8; }
.cons { background: #fdf1ec; border: 1px solid #f5d8c8; }
.pros h3 { color: #1d7a44; } .cons h3 { color: #c4441c; }
.pros ul, .cons ul { list-style: none; margin-top: 10px; }
.pros li, .cons li { padding: 5px 0 5px 26px; position: relative; font-size: 0.95rem; }
.pros li::before { content: "+"; position: absolute; left: 4px; font-weight: 800; color: #1d9e55; }
.cons li::before { content: "–"; position: absolute; left: 4px; font-weight: 800; color: #c4441c; }

/* ---------- Content / article ---------- */
.content-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow); }
.content-block h2 { margin-top: 1.6rem; }
.content-block h2:first-child { margin-top: 0; }
.content-block ul, .content-block ol { margin: 0 0 1rem 1.4rem; }
.content-block li { margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: 2.2fr 1fr; gap: 28px; align-items: start; }
.sidebar .card { margin-bottom: 20px; }
.sidebar h3 { margin-bottom: 10px; }
.sidebar ul { list-style: none; }
.sidebar li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.sidebar li:last-child { border-bottom: none; }

/* ---------- Partner CTA box ---------- */
.cta-box {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 30px 34px; display: flex; align-items: center; gap: 26px;
  box-shadow: var(--shadow-lg); margin: 36px 0;
  border-left: 6px solid var(--orange);
}
.cta-box h3 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.cta-box p { color: var(--light); margin: 0; font-size: 0.97rem; }
.cta-box .btn { white-space: nowrap; }
.cta-box .cta-body { flex: 1; }

/* ---------- Shortlist banner (every page, above footer) ---------- */
.shortlist-banner {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff; padding: 48px 0; text-align: center;
}
.shortlist-banner h2 { color: #fff; margin-bottom: 6px; }
.shortlist-banner p { color: #e0e7ff; margin-bottom: 20px; }
.shortlist-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.shortlist-form input[type="email"] {
  padding: 13px 16px; border: none; border-radius: 8px; min-width: 320px; font-size: 1rem;
}
.shortlist-form .btn { background: #fff; color: var(--orange-dark); }
.shortlist-form .btn:hover { background: #e0e7ff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #94a3b8; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #94a3b8; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--sky); }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; text-decoration: none; }
.footer-logo span { color: var(--orange); }
.footer-blurb { font-size: 0.9rem; margin-top: 10px; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.82rem; color: #64748b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Misc ---------- */
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 800; color: var(--orange); margin-bottom: 8px; }
.verdict {
  background: #eef6fc; border: 1px solid #c5e3f5; border-left: 6px solid var(--sky);
  border-radius: var(--radius); padding: 24px 28px; margin: 28px 0;
}
.verdict h3 { color: var(--navy); margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 2.1rem; }
  h1 { font-size: 1.9rem; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; text-align: center; }
  .shortlist-form input[type="email"] { min-width: 0; width: 100%; }
}
