/* Shared styles for the comparison pages (/alternatives and /vs/*).

   index.html keeps its own inline <style> because its hero animation is generated into it
   and splitting that file risks the generator; the tokens below are duplicated from it on
   purpose. If you change a colour there, change it here too — these pages sit one click
   apart and drift is visible. */

:root {
  --bg: #0d0d14;
  --surface: #16161f;
  --line: #262633;
  --text: #ecedf3;
  --muted: #9698a8;
  --faint: #6b6d7d;
  --accent: #7b78f0;
  --accent-dim: #5b58c9;
  --good: #6fcf97;
  --warm: #f0c674;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 980px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); }

/* ── Top bar ───────────────────────────────────────────────────────────────── */
.topbar {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 14px;
}
.topbar .wrap-wide { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--text); }
.topbar .home { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 560; }
.topbar .home img { width: 24px; height: 24px; }
.topbar .spacer { flex: 1; }

/* ── Page head ─────────────────────────────────────────────────────────────── */
.page-head { padding: 62px 0 34px; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.026em;
  font-weight: 640;
}
.lede { margin: 0; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 640px; }

section { padding: 44px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 3.2vw, 27px);
  letter-spacing: -0.02em;
  font-weight: 620;
}
h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.section-lede { color: var(--muted); max-width: 640px; margin: 0 0 26px; }

strong { font-weight: 600; }
em { color: var(--text); font-style: italic; }

kbd {
  font: 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #20202c;
  border: 1px solid #33334a;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 6px;
  color: #d6d7e4;
  white-space: nowrap;
}

/* ── Callouts ──────────────────────────────────────────────────────────────── */
/* Two shapes, deliberately mirrored: what the other tool does better, and where it left
   me stuck. Same weight on the page, because a comparison that visually favours one side
   is an advert wearing a table's clothes. */
.callout {
  border-left: 3px solid var(--line);
  padding: 2px 0 2px 20px;
  margin: 0 0 22px;
  color: var(--muted);
}
.callout:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }
.callout.better { border-left-color: var(--good); }
.callout.gap { border-left-color: var(--warm); }
.callout h3 { color: var(--text); }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card .price { color: var(--faint); font-size: 13px; margin: 0 0 10px; }
.card a.more { display: inline-block; margin-top: 12px; font-size: 14px; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }

/* ── Comparison table ──────────────────────────────────────────────────────── */
/* Wide tables scroll inside their own box rather than pushing the page sideways. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 620px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  color: var(--faint);
  font-weight: 560;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
thead th.mine { color: var(--accent); }
tbody tr:last-child td { border-bottom: none; }
td:first-child, th:first-child { color: var(--text); font-weight: 500; }
td { color: var(--muted); }
td.mine { color: var(--text); background: rgba(123,120,240,0.05); }

/* Marks carry a word as well as a glyph — colour alone is not a label. */
.yes { color: var(--good); font-weight: 600; }
.no  { color: var(--faint); }
.part { color: var(--warm); }

/* ── Verdict ───────────────────────────────────────────────────────────────── */
.verdict {
  background: linear-gradient(180deg, #1a1a26, #14141d);
  border: 1px solid #2e2e42;
  border-radius: 18px;
  padding: 28px;
}
.verdict h2 { margin-bottom: 14px; }
.verdict p { color: var(--muted); }
.verdict p strong { color: var(--text); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 11px;
  font-size: 15px; font-weight: 560;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #10101a; }
.btn-primary:hover { background: #8d8bf5; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: #3a3a4d; background: #14141d; }

.fine { font-size: 13.5px; color: var(--faint); margin: 0; }

/* ── Other comparisons ─────────────────────────────────────────────────────── */
.pill-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pill {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  background: var(--surface);
}
.pill:hover { border-color: #3a3a4d; color: var(--text); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
  color: var(--faint);
  font-size: 13.5px;
  margin-top: 20px;
}
footer .wrap-wide { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

.accuracy {
  color: var(--faint);
  font-size: 13.5px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 34px;
}
