/* ==========================================================================
   COMPARE — landing page
   --------------------------------------------------------------------------
   1. Section chrome (.lp-compare*) — keeps the page's 96 / 64 / 48px vertical
      rhythm and the section heading.
   2. Terminal Matrix table — the provided design, scoped to .terminal-window
      so neither its variables nor its generic class names (.cell, .red,
      .bold, .badge, .prompt) can leak into the rest of the site.
   ========================================================================== */

.lp-compare {
  border-top: 1px solid var(--lp-line);
  border-bottom: 1px solid var(--lp-line);
  background: rgba(10, 10, 12, 0.6);
  scroll-margin-top: 80px;
  position: relative;
  padding-top: 96px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lp-compare {
    padding-top: 64px;
  }
}

@media (max-width: 768px) {
  .lp-compare {
    padding-top: 48px;
  }
}

.lp-compare::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
  border-radius: 6px;
}

/* No top padding here: .lp-compare's own padding-top (96px desktop, 64px
   tablet, 48px mobile) IS the gap below the // REPLACES strip. The old 56px here
   stacked on top of it and produced ~152px of dead space. */
.lp-compare-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 48px;
  position: relative;
  z-index: 1;
}

.lp-compare-head {
  text-align: center;
  margin-bottom: 40px;
}

.lp-compare-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-accent);
  margin-bottom: 12px;
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(240, 160, 32, 0.2);
  border-radius: 2px;
  background: rgba(240, 160, 32, 0.04);
}

.lp-compare-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--lp-text);
  margin: 0 0 12px;
  line-height: 1.15;
}

.lp-compare-sub {
  max-width: 560px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--lp-muted);
}

@media (max-width: 768px) {
  .lp-compare-inner {
    padding: 0 16px 28px; /* 48px total gap, all from .lp-compare padding-top */
  }

  .lp-compare-head {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .lp-compare-inner {
    padding: 0 16px 20px; /* keep the table 16px off both screen edges */
  }
}

/* ==========================================================================
   TERMINAL MATRIX
   Scoped to .terminal-window so it doesn't break global variables.
   ========================================================================== */

.terminal-window {
  --bg: #050505;
  --panel-bg: #0a0a0a;
  --text: #d1d5db;
  --text-bright: #ffffff;
  --text-muted: #6b7a8a;
  --amber: #f0a020;
  --amber-glow: rgba(240, 160, 32, 0.15);
  --green: #4ade80;
  --green-glow: rgba(74, 222, 128, 0.2);
  --red: #f87171;
  --border: #262b36;
  --font-dev: 'Kode Mono', monospace;

  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  font-family: var(--font-dev);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  text-align: left;
}

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

.terminal-window .terminal-header {
  padding: 12px 20px;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 11px;
  background: var(--panel-bg);
}

.terminal-window .prompt { color: var(--green); font-weight: 700; }

.terminal-window .compare-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

@media (min-width: 1000px) {
  .terminal-window .compare-wrapper { mask-image: none; -webkit-mask-image: none; }
}

.terminal-window .compare-grid {
  display: grid;
  grid-template-columns: 140px repeat(4, 1fr);
  min-width: 900px;
  border-bottom: 1px dashed var(--border);
}

.terminal-window .col-header {
  padding: 16px 12px;
  border-bottom: 1px dashed var(--border);
  border-right: 1px dashed var(--border);
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--text);
  cursor: crosshair;
  transition: background 0.2s;
  background: var(--panel-bg);
}

.terminal-window .col-header:last-child { border-right: none; }
.terminal-window .col-header .prompt { margin-right: 8px; }

.terminal-window .col-header.active {
  color: var(--amber);
  border-bottom: 1px solid var(--amber);
  border-left: 1px dashed var(--amber);
  border-right: 1px dashed var(--amber);
  background: rgba(240, 160, 32, 0.08);
}
.terminal-window .col-header.active .prompt { color: var(--amber); }

.terminal-window .badge {
  font-size: 9px;
  padding: 2px 6px;
  border: 1px dashed var(--border);
  border-radius: 2px;
  margin-left: auto;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.terminal-window .col-header.active .badge {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 8px var(--amber-glow);
}

.terminal-window .row-label {
  padding: 16px 12px;
  border-bottom: 1px dashed var(--border);
  border-right: 1px dashed var(--border);
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: flex-start;
  background: var(--panel-bg);
  position: sticky;
  left: 0;
  z-index: 10;
  box-shadow: 4px 0 10px rgba(10, 10, 10, 0.9);
}

.terminal-window .row-label::before { content: '//'; margin-right: 6px; color: var(--border); }

.terminal-window .cell {
  padding: 16px 12px;
  border-bottom: 1px dashed var(--border);
  border-right: 1px dashed var(--border);
  color: var(--text);
  transition: background 0.2s;
  display: flex;
  align-items: flex-start;
  background: var(--panel-bg);
}

.terminal-window .cell:last-child { border-right: none; }
.terminal-window .row-label:nth-last-child(-n+5),
.terminal-window .cell:nth-last-child(-n+4) { border-bottom: none; }

.terminal-window .cell.active-col {
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.06) 0%, rgba(74, 222, 128, 0.01) 100%);
  color: var(--green);
  text-shadow: 0 0 4px var(--green-glow);
  border-left: 1px dashed var(--amber);
  border-right: 1px dashed var(--amber);
  font-weight: 500;
}
.terminal-window .cell.active-col:hover { background: linear-gradient(90deg, rgba(74, 222, 128, 0.1) 0%, rgba(74, 222, 128, 0.03) 100%); }

.terminal-window .cell:not(.active-col):hover { background: rgba(255, 255, 255, 0.03); color: var(--text-bright); }

.terminal-window .bold { font-weight: 700; }
.terminal-window .red { color: var(--red); }

.terminal-window .cell:not(.active-col)::before { content: '>'; margin-right: 8px; color: var(--border); font-weight: 700; transition: color 0.2s; }
.terminal-window .cell:not(.active-col):hover::before { color: var(--text-muted); }
.terminal-window .cell.active-col::before { content: '[+]'; margin-right: 8px; color: var(--green); font-weight: 700; font-size: 11px; margin-top: 2px; }
.terminal-window .cell.red::before { content: '[-]'; color: var(--red); font-size: 11px; margin-top: 2px; }

@media (max-width: 768px) {
  .terminal-window .compare-grid { grid-template-columns: 110px repeat(4, 1fr); }
  .terminal-window .row-label { padding: 12px 10px; font-size: 10px; }
  .terminal-window .col-header { padding: 12px 10px; font-size: 10px; }
  .terminal-window .cell { padding: 12px 10px; font-size: 11px; }
  .terminal-window .badge { display: none; }
  .terminal-window .terminal-header { padding: 10px 14px; }
}
