/* ===== CyberHeroesHQ — Vendor Comparison Page ===== */
/* Extends educators.css design system. Requires educators.css to be loaded first. */
/* Vibe: Transparent, factual, confident. Procurement-grade credibility. */

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.cmp-hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: var(--white);
  padding: 80px 24px 72px;
  text-align: center;
}

.cmp-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.cmp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(14,165,233,0.3);
  color: var(--sky-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.cmp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.cmp-hero-title em {
  font-style: italic;
  color: var(--sky-400);
}

.cmp-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cmp-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cmp-update-note {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.cmp-update-note strong {
  color: rgba(255,255,255,0.6);
}

/* ── Comparison Table Section ──────────────────────────────────────────────── */
.cmp-table-section {
  padding: 72px 0;
  background: var(--slate-50);
}

.cmp-table-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cmp-table-header {
  text-align: center;
  margin-bottom: 40px;
}

.cmp-table-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy-900);
  margin-bottom: 10px;
}

.cmp-table-header p {
  color: var(--slate-600);
  font-size: 14px;
}

.cmp-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

/* ── Table ─────────────────────────────────────────────────────────────────── */
.cmp-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 13.5px;
}

/* Column widths */
.cmp-feature-col { width: 22%; }
.cmp-us-col      { width: 18%; }
.cmp-table th:not(.cmp-feature-col):not(.cmp-us-col) { width: 15%; }

/* Header row */
.cmp-table thead tr {
  background: var(--navy-900);
}

.cmp-table thead th {
  padding: 20px 16px;
  text-align: center;
  vertical-align: bottom;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.cmp-table thead th.cmp-feature-col {
  text-align: left;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cmp-table thead th.cmp-us-col {
  background: rgba(14,165,233,0.12);
  border-left: 2px solid var(--sky-500);
  border-right: 2px solid var(--sky-500);
}

/* Vendor header block */
.cmp-vendor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cmp-vendor-icon {
  font-size: 22px;
  line-height: 1;
}

.cmp-vendor-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.cmp-vendor-tag {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

.cmp-vendor-us .cmp-vendor-name { color: var(--sky-400); }
.cmp-vendor-us .cmp-vendor-tag  { color: rgba(56,189,248,0.6); }

/* Section separator rows */
.cmp-section-row td {
  background: var(--navy-800);
  color: rgba(255,255,255,0.55);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-top: 2px solid var(--navy-700);
}

/* Data rows */
.cmp-table tbody tr:not(.cmp-section-row) {
  border-bottom: 1px solid var(--slate-200);
  transition: background 0.15s;
}

.cmp-table tbody tr:not(.cmp-section-row):hover {
  background: var(--slate-50);
}

.cmp-table tbody td {
  padding: 16px 16px;
  vertical-align: top;
  border-right: 1px solid var(--slate-200);
}

/* Highlighted "us" column */
.cmp-table tbody td.cmp-us,
.cmp-table thead th.cmp-us-col {
  background: rgba(14,165,233,0.04);
  border-left: 2px solid var(--sky-400);
  border-right: 2px solid var(--sky-400);
}

/* Feature cell (first column) */
.cmp-feature {
  font-weight: 600;
  color: var(--navy-900);
  padding-right: 12px;
}

.cmp-feature strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
}

.cmp-feature-note {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--slate-500);
  line-height: 1.3;
}

/* Status icons */
.cmp-yes, .cmp-partial, .cmp-no {
  display: block;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 5px;
}

/* Detail text under icon */
.cmp-detail {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--slate-600);
}

.cmp-detail a {
  color: var(--sky-500);
  font-weight: 500;
  text-decoration: none;
}

.cmp-detail a:hover { text-decoration: underline; }

/* Footnote markers */
sup {
  font-size: 9px;
  color: var(--slate-400);
  vertical-align: super;
}

/* ── Footnotes ──────────────────────────────────────────────────────────────── */
.cmp-footnotes {
  margin-top: 32px;
  padding: 24px;
  background: var(--slate-100);
  border-radius: var(--r-md);
  border: 1px solid var(--slate-200);
}

.cmp-footnotes h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.cmp-footnotes ol {
  padding-left: 18px;
  margin-bottom: 12px;
}

.cmp-footnotes ol li {
  font-size: 12.5px;
  color: var(--slate-600);
  margin-bottom: 6px;
  line-height: 1.45;
}

.cmp-footnotes ol li a {
  color: var(--sky-500);
}

.cmp-footnotes-note {
  font-size: 12px;
  color: var(--slate-500);
  line-height: 1.5;
  font-style: italic;
}

/* ── When To Choose Us ─────────────────────────────────────────────────────── */
.cmp-when-section {
  padding: 80px 24px;
  background: var(--white);
}

.cmp-when-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cmp-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy-900);
  text-align: center;
  margin-bottom: 48px;
}

.cmp-section-sub {
  text-align: center;
  color: var(--slate-600);
  font-size: 1rem;
  margin-top: -32px;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cmp-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.cmp-scenario {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}

.cmp-scenario:hover {
  box-shadow: var(--shadow-md);
}

.cmp-scenario-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.cmp-scenario h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 10px;
  line-height: 1.35;
}

.cmp-scenario p {
  font-size: 13.5px;
  color: var(--slate-600);
  line-height: 1.6;
}

.cmp-scenario p a {
  color: var(--sky-500);
  font-weight: 500;
}

/* ── When NOT to Choose Us ─────────────────────────────────────────────────── */
.cmp-when-not-section {
  padding: 80px 24px;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
}

.cmp-title-light {
  color: var(--white);
}

.cmp-when-not-section .cmp-section-sub {
  color: rgba(255,255,255,0.6);
}

.cmp-not-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.cmp-not-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}

.cmp-not-vendor {
  font-size: 14px;
  font-weight: 700;
  color: var(--sky-400);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.cmp-not-card p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

.cmp-not-card p strong {
  color: rgba(255,255,255,0.9);
}

/* ── Proof Points ───────────────────────────────────────────────────────────── */
.cmp-proof-section {
  padding: 80px 24px;
  background: var(--sky-50);
  border-top: 1px solid rgba(14,165,233,0.12);
  border-bottom: 1px solid rgba(14,165,233,0.12);
}

.cmp-proof-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cmp-proof-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.cmp-proof-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  padding: 20px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.cmp-proof-link:hover {
  box-shadow: var(--shadow-sky);
  border-color: var(--sky-400);
}

.cmp-proof-icon {
  font-size: 22px;
  line-height: 1;
}

.cmp-proof-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-800);
}

.cmp-proof-desc {
  font-size: 12.5px;
  color: var(--slate-500);
  line-height: 1.4;
}

/* ── CTA Section ────────────────────────────────────────────────────────────── */
.cmp-cta-section {
  padding: 96px 24px;
  background: var(--white);
  text-align: center;
}

.cmp-cta-inner {
  max-width: 660px;
  margin: 0 auto;
}

.cmp-cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy-900);
  margin-bottom: 16px;
}

.cmp-cta-inner > p {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 32px;
}

.cmp-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cmp-cta-sub {
  font-size: 13px;
  color: var(--slate-500);
}

.cmp-cta-sub a {
  color: var(--sky-500);
  font-weight: 500;
}

/* ── Footer inherits from educators.css site-footer ──────────────────────── */

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cmp-hero { padding: 60px 20px 52px; }
  .cmp-when-section,
  .cmp-when-not-section,
  .cmp-proof-section,
  .cmp-cta-section { padding: 60px 20px; }
  .cmp-table-section { padding: 52px 0; }
  .cmp-table-wrap { padding: 0 16px; }
  .cmp-scenario-grid,
  .cmp-not-grid,
  .cmp-proof-links { grid-template-columns: 1fr; }
  .cmp-hero-actions,
  .cmp-cta-actions { flex-direction: column; align-items: center; }
}

/* ── Small phones (≤480px) ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cmp-hero { padding: 52px 16px 44px; }
  .cmp-hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .cmp-hero-sub { font-size: 0.95rem; }
  .cmp-when-section,
  .cmp-when-not-section,
  .cmp-proof-section,
  .cmp-cta-section { padding: 48px 16px; }
  .cmp-table-wrap { padding: 0 8px; }
  /* Shrink table text slightly on very small screens */
  .cmp-table { font-size: 12px; }
  .cmp-table th, .cmp-table td { padding: 8px 6px; }
  /* Feature column stays readable */
  .cmp-feature-col { font-size: 11px; padding: 8px 6px; }
}
