/* === VS DATADOG PAGE STYLES === */

/* Shared section labels */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-headline {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 48px;
}

/* Nav */
.vs-nav {
  border-bottom: 1px solid var(--border);
}

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: #33eeff; }

/* Hero */
.vs-hero {
  padding: 100px 24px 80px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.vs-hero-inner { max-width: 760px; margin: 0 auto; }

.vs-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.vs-badge {
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.vs-vs-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

.datadog-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fbca4e; /* Datadog yellow-ish */
  letter-spacing: 0.02em;
}

.vs-headline {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}

.vs-sub {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.vs-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.btn-primary:hover { background: #33eeff; }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--fg-muted); }

/* Pricing Math */
.vs-math {
  padding: 100px 24px;
  background: var(--bg-elevated);
}

.vs-math-inner { max-width: 960px; margin: 0 auto; }
.vs-math .section-sub { margin-bottom: 40px; }

.math-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.math-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.math-col-subtrace {
  border-color: var(--accent);
  background: #0d1a1a;
}

.math-col-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.math-col-subtrace .math-col-header { border-bottom-color: rgba(0,229,255,0.2); }

.math-tool-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}

.math-col-subtrace .math-tool-name { color: var(--accent); }

.math-pricing-note {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.math-breakdown {
  padding: 20px 24px 0;
}

.math-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.math-label {
  font-size: 13px;
  color: var(--fg-dim);
}

.math-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.math-col-subtrace .math-val { color: var(--accent); }

.math-unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--fg-muted);
  margin-left: 2px;
}

.math-detail {
  font-size: 11px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  margin-bottom: 14px;
  padding-left: 0;
  text-align: right;
}

.math-line-subtle .math-label { color: var(--fg-muted); font-style: italic; }

.math-total {
  margin: 20px 24px 0;
  padding: 20px;
  border-top: 1px solid var(--border);
  background: #0a0a0a;
  border-radius: 8px;
}

.math-col-subtrace .math-total { border-color: rgba(0,229,255,0.2); background: rgba(0,229,255,0.05); }

.math-total-label {
  display: block;
  font-size: 11px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.math-total-val {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

.math-total-flat .math-total-val { color: var(--green); }

.math-total-note {
  padding: 12px 24px 20px;
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.math-total-note a {
  color: var(--fg-dim);
  text-decoration: underline;
}

.math-total-note-accent {
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

.math-savings-strip {
  background: linear-gradient(135deg, #0d1a1a 0%, #0a2018 100%);
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 24px 32px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.savings-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.savings-desc {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* Feature Comparison */
.vs-feature-section { padding: 100px 24px; }

.vs-feature-inner { max-width: 960px; margin: 0 auto; }

.vs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.vs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

.vs-table th,
.vs-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.vs-table thead th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: var(--bg-elevated);
}

.vs-table tbody tr:last-child td { border-bottom: none; }
.vs-table tbody tr:hover td { background: #161616; }

.vs-feature-col { width: 26%; }

.vs-subtrace-col {
  background: #0d1a1a;
  color: var(--accent);
  font-weight: 600;
  width: 30%;
}

.vs-subtrace-cell {
  background: #0d1a1a;
  color: var(--accent);
  font-weight: 600;
}

.vs-feature-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  font-weight: 500;
}

.check { color: var(--green); margin-right: 4px; }
.cross { color: var(--fg-muted); margin-right: 4px; }

/* When to still use Datadog */
.vs-when-section {
  background: var(--bg-elevated);
  padding: 100px 24px;
}

.vs-when-inner { max-width: 800px; margin: 0 auto; }

.vs-when-headline {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.vs-when-sub {
  font-size: 15px;
  color: var(--fg-dim);
  margin-bottom: 48px;
}

.vs-when-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.vs-when-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.when-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.vs-when-list strong { color: var(--fg); }
.vs-when-list p { color: var(--fg-dim); margin-top: 6px; font-size: 14px; line-height: 1.65; }
.vs-when-list div + div strong { display: block; }

/* Migration Guide */
.vs-migrate-section { padding: 100px 24px; }
.vs-migrate-inner { max-width: 800px; margin: 0 auto; }

.migrate-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 48px 0 48px;
}

.migrate-step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}

.migrate-step:last-child { padding-bottom: 0; }

/* Connector line between steps */
.migrate-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-body { flex: 1; padding-top: 4px; }

.step-body h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
}

.step-body p a {
  color: var(--accent);
  text-decoration: underline;
}

.migrate-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.migrate-note {
  font-size: 13px;
  color: var(--fg-muted);
}

.migrate-note a { color: var(--fg-dim); text-decoration: underline; }

/* Demo Strip */
.vs-demo-section {
  background: var(--bg-elevated);
  padding: 100px 24px;
  text-align: center;
}

.vs-demo-inner { max-width: 700px; margin: 0 auto; }

.vs-demo-strip {
  margin-top: 8px;
}

.demo-link-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  overflow: hidden;
}

.demo-link-card:hover {
  border-color: var(--accent);
  background: #0d1a1a;
}

.demo-link-inner {
  padding: 40px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.demo-screenshot-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-link-text {
  text-align: left;
}

.demo-link-text strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 6px;
}

.demo-link-text span {
  font-size: 13px;
  color: var(--fg-dim);
}

/* Footer CTA */
.vs-cta-section {
  padding: 100px 24px;
  text-align: center;
}

.vs-cta-inner { max-width: 560px; margin: 0 auto; }

.vs-cta-headline {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.vs-cta-sub {
  font-size: 16px;
  color: var(--fg-dim);
  margin-bottom: 36px;
  line-height: 1.6;
}

.vs-cta-form { margin-bottom: 16px; }

.cta-input-row {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.cta-email-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 15px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}

.cta-email-input::placeholder { color: var(--fg-muted); }
.cta-email-input:focus { border-color: var(--accent); }

.cta-submit-btn {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: background 0.15s;
}

.cta-submit-btn:hover { background: #33eeff; }

.cta-success {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 16px 0;
}

.vs-cta-fine {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .math-grid { grid-template-columns: 1fr; }

  .vs-hero { padding: 60px 20px 50px; }
  .vs-math { padding: 60px 20px; }
  .vs-feature-section { padding: 60px 20px; }
  .vs-when-section { padding: 60px 20px; }
  .vs-migrate-section { padding: 60px 20px; }
  .vs-demo-section { padding: 60px 20px; }
  .vs-cta-section { padding: 60px 20px; }

  .cta-input-row { flex-direction: column; }
  .cta-submit-btn { width: 100%; }

  .vs-hero-actions { flex-direction: column; align-items: center; }
  .migrate-cta { flex-direction: column; align-items: flex-start; }
}