/* Compare pages: Vanta / Drata, high-contrast layout, SEO-friendly structure */

.cmp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cmp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
  max-width: 720px;
}

.cmp-stat {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  box-shadow: 0 1px 2px rgba(11, 13, 18, 0.04);
}

.cmp-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
  color: var(--ink);
}

.cmp-stat span {
  font-size: 0.72rem;
  color: var(--ink-3);
  line-height: 1.4;
}

/* Intro split */
.cmp-intro {
  padding: clamp(48px, 7vw, 80px) 0;
}

.cmp-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.cmp-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 16px;
}

.cmp-intro h2 em {
  font-style: italic;
  color: var(--cyan-deep);
}

.cmp-intro p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 14px;
}

.cmp-thesis {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--onyx);
  color: var(--parchment);
}

.cmp-thesis .eyebrow {
  color: var(--cyan);
}

.cmp-thesis h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.cmp-thesis p {
  color: rgba(245, 242, 232, 0.78);
  font-size: 0.94rem;
  line-height: 1.58;
  margin: 0;
}

/* Comparison table band */
.cmp-compare {
  padding: clamp(56px, 9vw, 96px) 0;
  background: var(--onyx);
  color: var(--parchment);
}

.cmp-compare .eyebrow {
  color: var(--teal);
}

.cmp-compare h2,
.cmp-compare h2.font-display,
.cmp-compare .font-display {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--parchment);
}

.cmp-related h2,
.cmp-related h2.font-display,
.cmp-related .font-display {
  color: var(--parchment);
}

.cmp-related .sub {
  color: rgba(245, 242, 232, 0.72);
}

.cmp-compare h2 em {
  font-style: italic;
  color: var(--cyan);
}

.cmp-compare-lede {
  color: rgba(245, 242, 232, 0.72);
  max-width: 42em;
  margin: 0 0 32px;
  font-size: 1rem;
  line-height: 1.58;
}

.cmp-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(245, 242, 232, 0.12);
  background: rgba(0, 0, 0, 0.22);
  -webkit-overflow-scrolling: touch;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}

.cmp-table th,
.cmp-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(245, 242, 232, 0.08);
  vertical-align: top;
  line-height: 1.5;
}

.cmp-table thead th {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 232, 0.55);
  background: rgba(0, 0, 0, 0.35);
}

.cmp-table tbody td:first-child {
  font-weight: 600;
  color: rgba(245, 242, 232, 0.95);
  width: 22%;
}

.cmp-table tbody td:nth-child(2) {
  color: rgba(245, 242, 232, 0.55);
  width: 39%;
}

.cmp-table tbody td:last-child {
  color: rgba(245, 242, 232, 0.92);
  width: 39%;
}

.cmp-table tbody td:last-child strong {
  color: var(--lime);
  font-weight: 600;
}

.cmp-table tr:last-child td {
  border-bottom: none;
}

.cmp-footnote {
  margin-top: 18px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: rgba(245, 242, 232, 0.42);
  line-height: 1.5;
}

/* Pillar cards */
.cmp-pillars {
  padding-top: clamp(48px, 7vw, 72px);
  padding-bottom: clamp(48px, 7vw, 72px);
}

.cmp-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.cmp-pillar {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
  box-shadow: 0 1px 2px rgba(11, 13, 18, 0.04);
}

.cmp-pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 10px;
}

.cmp-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}

.cmp-pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.cmp-pillar a {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-deep);
  text-decoration: none;
}

.cmp-pillar a:hover {
  text-decoration: underline;
}

/* Fit evaluation */
.cmp-fit {
  padding: clamp(48px, 7vw, 80px) 0;
}

.cmp-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.cmp-fit-card {
  padding: 24px 26px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.cmp-fit-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink);
}

.cmp-fit-card ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cmp-fit-card li {
  margin-bottom: 8px;
}

.cmp-fit-card--highlight {
  border-color: rgba(154, 226, 52, 0.35);
  background: linear-gradient(145deg, rgba(154, 226, 52, 0.08) 0%, rgba(255, 255, 255, 0.65) 100%);
}

/* Related links on dark band, fixed contrast */
.cmp-related {
  padding: clamp(40px, 6vw, 64px) 0;
}

.cmp-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cmp-related-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid rgba(245, 242, 232, 0.18);
  color: rgba(245, 242, 232, 0.9);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, background 0.2s;
}

.cmp-related-links a:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(154, 226, 52, 0.08);
}

@media (max-width: 900px) {
  .cmp-intro-grid,
  .cmp-pillar-grid,
  .cmp-fit-grid {
    grid-template-columns: 1fr;
  }

  .cmp-stats {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .cmp-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cmp-hero-actions .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmp-pillar,
  .cmp-related-links a {
    transition: none;
  }
}
