/* ============================================================
   LANDING / COMPARISON PAGES — /grammarly-alternative, /languagetool-alternative,
   /deepl-alternative, /mac-translator. Builds on marketing.css + mac.css.
   ============================================================ */

/* These H1s carry the search phrase, so they run longer than /mac's. */
.mac-hero-title { font-size: clamp(40px, 5vw, 64px); }

.vs-section { padding: 110px 0 20px; }
.vs-section .section-head { margin-bottom: 48px; }

/* ---- comparison table ---- */
.vs-wrap {
  overflow-x: auto;
  border: 0.5px solid var(--sl-hair);
  border-radius: 16px;
  background: var(--sl-panel);
  box-shadow: 0 1px 2px rgba(10,14,28,0.04), 0 18px 50px -28px rgba(10,14,28,0.12);
}
table.vs-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.vs-table th, .vs-table td {
  text-align: left; vertical-align: top;
  padding: 18px 24px;
  border-bottom: 0.5px solid var(--sl-hair);
  font: 400 14px/1.5 var(--sl-sans);
  color: var(--sl-ink-2);
}
.vs-table tr:last-child td { border-bottom: none; }
.vs-table thead th {
  font: 400 20px/1.2 var(--sl-serif);
  letter-spacing: -0.4px;
  color: var(--sl-ink);
}
.vs-table thead td:first-child {
  font: 500 10px/1 var(--sl-sans);
  text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--sl-mute-2);
  vertical-align: bottom;
}
.vs-table thead th.us { color: var(--wm-primary); }
.vs-table tbody th { width: 30%; color: var(--sl-ink); font-weight: 500; }
.vs-table td.us { background: rgba(0,123,255,0.03); }
.vs-note {
  margin: 16px 4px 0;
  font: 400 12.5px/1.5 var(--sl-sans);
  color: var(--sl-mute);
}

/* ---- typical mistakes, in the page's language ---- */
.vs-examples {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 780px) { .vs-examples { grid-template-columns: 1fr; } }
.vs-example {
  background: var(--sl-panel);
  border: 0.5px solid var(--sl-hair);
  border-radius: 12px;
  padding: 24px 26px;
}
.vs-example .vs-diff { margin: 0 0 10px; font: 400 18px/1.4 var(--sl-sans); color: var(--sl-ink); }
.vs-example .vs-diff del {
  text-decoration: line-through; text-decoration-color: #EF4444; text-decoration-thickness: 1.5px;
  color: var(--sl-mute); margin-right: 6px;
}
.vs-example .vs-diff ins {
  text-decoration: none; font-weight: 600;
  background: rgba(101,196,102,0.14); color: #2B7F2B;
  padding: 1px 6px; border-radius: 4px;
}
.vs-example p {
  margin: 0;
  font: 400 14px/1.6 var(--sl-sans);
  color: var(--sl-mute);
}
.vs-example p b { color: var(--sl-ink-2); font-weight: 600; }

/* ---- hero visual: the correction popover, standalone ---- */
.vs-hero-card .mac-correction {
  position: relative; right: auto; bottom: auto;
  width: auto; max-width: 440px;
  padding: 22px 22px 18px;
}
.vs-hero-card .mac-correction::before { display: none; }
.vs-hero-card .mac-correction .mc-diff { font-size: 22px; }
.vs-hero-card .mac-correction .mc-diff ins { color: #2B7F2B; }
.vs-hero-card .mac-correction .mc-rule { font-size: 14px; }
.vs-hero-card .mac-correction .mc-cat { color: #0066D6; }
.vs-hero-card .mac-correction .mc-apply { background: #0066D6; }

/* ---- hero visual: apps it checks in ---- */
.vs-apps {
  background: var(--sl-panel);
  border: 0.5px solid var(--sl-hair);
  border-radius: 14px;
  padding: 26px 26px 22px;
  box-shadow: 0 1px 2px rgba(10,14,28,0.05), 0 24px 54px -14px rgba(10,14,28,0.18);
  max-width: 440px;
}
.vs-apps-label {
  font: 500 10px/1 var(--sl-sans);
  text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--sl-mute-2);
  margin-bottom: 16px;
}
.vs-apps ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.vs-apps li { display: flex; align-items: center; gap: 8px; font: 500 15px/1.3 var(--sl-sans); color: var(--sl-ink); }
.vs-apps li svg { width: 16px; height: 16px; stroke: #2B7F2B; stroke-width: 2.6; fill: none; flex-shrink: 0; }
.vs-apps li.more { grid-column: 1 / -1; color: var(--sl-mute); font-weight: 400; }
