/* ── /vs/<competitor>/ comparison pages — shared styles ─────────────────────
   Loaded after base.css on every head-to-head comparison page. Single source
   for the vs-page sections (hero scoreboard, at-a-glance cards, comparison
   table, deep dive, who-fits cards, FAQ, disclaimer) — edit here, never
   re-inline per page. CSS variables (:root) stay inline per page. */

/* ── Hero: dark green anchor with scoreboard ── */
.vs-hero {
  background: linear-gradient(175deg, var(--green-900) 0%, #0A4A44 100%);
  padding: 56px 24px 48px;
  text-align: left;
}

.vs-hero .section-label { color: var(--green-200); }

.vs-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.vs-hero .intro {
  font-size: 17px;
  color: var(--green-200);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.vs-intro-text {
  max-width: 620px;
  font-size: 15px;
  color: var(--green-200);
  line-height: 1.75;
  margin-bottom: 20px;
}

.vs-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--green-200);
  background: rgba(233, 245, 243, 0.12);
  border-radius: 100px;
  padding: 5px 14px;
}

.vs-updated strong { color: #fff; font-weight: 500; }

.vs-hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.vs-hero-content { flex: 1; min-width: 0; }

/* Scoreboard: two tiles face to face, serif vs-medallion between them */
.vs-duel {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.vs-duel-tile {
  width: 132px;
  height: 132px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.vs-duel-tile.lina {
  background: linear-gradient(160deg, #0F7C74, var(--primary-dark));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.vs-duel-tile.lina img { display: block; }

.vs-duel-tile.other {
  background: rgba(233, 245, 243, 0.08);
  border: 1px solid rgba(233, 245, 243, 0.18);
}

.vs-duel-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(233, 245, 243, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--green-200);
}

.vs-duel-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--green-200);
  letter-spacing: 0.02em;
}

.vs-duel-tile.lina .vs-duel-name { color: #fff; }

.vs-duel-badge {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--green-900);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 -14px;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ── At a glance: the three sharpest differences ── */
#vs-glance { padding: 40px 24px 0; }

.vs-glance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vs-glance-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 20px;
}

.vs-glance-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.vs-glance-figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.vs-glance-big {
  font-family: 'Lora', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.vs-glance-vs { font-size: 13px; color: var(--text-secondary); }

.vs-glance-card > p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Comparison table ── */
#vs-table h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.vs-table-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

table.vs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

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

.vs-table tbody tr:last-child th,
.vs-table tbody tr:last-child td { border-bottom: none; }

/* Rounded corners without overflow:hidden (which would break the sticky head) */
.vs-table thead th:first-child { border-top-left-radius: 13px; }
.vs-table thead th:last-child { border-top-right-radius: 13px; }
.vs-table tbody tr:last-child th { border-bottom-left-radius: 13px; }
.vs-table tbody tr:last-child td:last-child { border-bottom-right-radius: 13px; }

.vs-table thead th {
  position: sticky;
  top: 64px; /* below the sticky nav (base.css .nav-inner height) */
  z-index: 5;
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.vs-table thead th.vs-col-feature {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  width: 28%;
}

.vs-table thead th.vs-col-lina {
  background: var(--green-100);
  box-shadow: inset 0 3px 0 var(--primary);
  width: 36%;
}

.vs-table thead th.vs-col-other { width: 36%; }

.vs-col-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.vs-mini-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.vs-mini-mark img { display: block; }

.vs-mini-mark.other { background: #2C333B; }

.vs-group-row th {
  background: var(--bg);
  padding: 10px 20px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.vs-table tbody th[scope="row"] { font-weight: 600; color: var(--text); }

.vs-feat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}

/* Advantage chip — read down this rail alone and you get the whole story.
   It points honestly: some rows go to the competitor. */
.vs-adv {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 100px;
  padding: 2px 9px;
}

.vs-adv svg { width: 10px; height: 10px; flex-shrink: 0; }

.vs-adv-lina { background: var(--green-100); color: var(--primary); }

.vs-adv-other { background: #EEEFF1; color: var(--text-secondary); }

td.vs-cell-lina { background: #F6FBFA; }

.vs-cell-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* Status icons: check / half-circle (partial) / neutral dash — never a red cross */
.vs-st { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.vs-st-yes { color: var(--primary); }
.vs-st-part { color: #8A6D1F; }
.vs-st-no { color: #A2A6AB; }

.vs-val {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vs-val strong {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.vs-val small {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Deep dive ── */
#vs-deepdive { background: var(--bg); }
.vs-deepdive-item + .vs-deepdive-item { margin-top: 32px; }
.vs-deepdive-item h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}
.vs-deepdive-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
}

/* ── Who fits: two equal-weight cards ── */
#vs-fit { background: var(--bg); }

.vs-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vs-fit-card {
  border-radius: 14px;
  padding: 26px;
  border: 1px solid var(--border);
  background: #fff;
}

.vs-fit-card.lina {
  background: var(--green-100);
  border-color: var(--green-200);
}

.vs-fit-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text);
}

.vs-fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.vs-fit-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  gap: 9px;
}

.vs-fit-list li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 4px;
  color: #9CA1A7;
}

.vs-fit-card.lina .vs-fit-list li svg { color: var(--primary); }

/* ── FAQ ── */
.blog-faq { padding: 0 24px; }
.blog-faq > .container > h2 { font-size: 22px; font-weight: 600; margin-bottom: 4px; max-width: 720px; }
.blog-faq-item { max-width: 720px; padding: 18px 0; border-top: 1px solid var(--border); }
.blog-faq-item:first-of-type { border-top: none; }
.blog-faq-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.blog-faq-item p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; }

/* ── Disclaimer ── */
.vs-disclaimer-section { padding: 8px 24px 40px; }
.vs-disclaimer {
  max-width: 720px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .vs-hero-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .vs-hero-content { max-width: 100%; }
  .vs-duel { align-self: center; }
}

@media (max-width: 760px) {
  /* Stack each table row as a card: feature + chip on top, the two app
     cells side by side beneath — no horizontal scrolling. */
  .vs-table thead { display: none; }
  table.vs-table, .vs-table tbody { display: block; }
  .vs-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .vs-table tbody tr.vs-group-row { display: block; }
  .vs-table tbody th[scope="row"] {
    grid-column: 1 / -1;
    border-bottom: none;
    padding-bottom: 4px;
  }
  .vs-table tbody td { display: block; padding-top: 4px; }
  .vs-table tbody tr:last-child td { border-bottom: none; }
  .vs-table tbody tr:last-child th { border-radius: 0; }
  .vs-table tbody tr:last-child td:first-of-type { border-bottom-left-radius: 13px; }
  td.vs-cell::before {
    content: attr(data-col);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
  }
  td.vs-cell-lina::before { color: var(--primary); }
}

@media (max-width: 720px) {
  .vs-glance-grid { grid-template-columns: 1fr; }
  .vs-fit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .vs-hero { padding: 40px 16px 32px; }
  #vs-glance { padding: 32px 16px 0; }
  .blog-faq { padding: 0 16px; }
  .vs-disclaimer-section { padding: 8px 16px 32px; }
  .vs-duel-tile { width: 116px; height: 116px; }
}
