/* ─────────────────────────────────────────────────────────────────
   Shared styles for /compare/* pages.
   Same navy aesthetic as the rest of the site. Loaded by every
   vs-*.html and the compare/index.html hub.
   ───────────────────────────────────────────────────────────────── */

:root {
  --blue: #1a6bff;
  --blue-bright: #4d8fff;
  --navy: #040d1f;
  --navy-card: #0a1c3a;
  --navy-mid: #102447;
  --navy-border: rgba(26,107,255,0.18);
  --white: #f0f4ff;
  --muted: rgba(180,200,255,0.7);
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #7c3aed;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--navy); color: var(--white); font-family: var(--font-body); overflow-x: hidden; }

/* ── Nav (same as rest of site) ─────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(4,13,31,0.7); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navy-border);
}
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.nav-logo-img { height: 32px; width: 32px; display: block; }
.nav-logo-text span { color: var(--blue-bright); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--blue); color: white !important; padding: 9px 22px; border-radius: 8px; font-weight: 600 !important; transition: background 0.2s, transform 0.15s !important; }
.nav-cta:hover { background: var(--blue-bright) !important; transform: translateY(-1px); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--navy-border); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; transition: background 0.2s, border-color 0.2s; }
.nav-toggle:hover { background: rgba(26,107,255,0.07); border-color: rgba(26,107,255,0.4); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────── */
.page-hero {
  padding: 140px 24px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(26,107,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 14px; font-family: var(--font-mono); }
.breadcrumb a { color: var(--blue-bright); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.vs-tag {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--blue-bright);
  margin-bottom: 16px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.0;
}
h1 .vs {
  display: inline-block;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font-mono);
  margin: 0 6px;
  vertical-align: middle;
  letter-spacing: 0;
}
h1 span:not(.vs) {
  background: linear-gradient(135deg, var(--blue-bright), #7eb3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin: 22px auto 0;
  line-height: 1.65;
  font-weight: 300;
}

/* ── Content layout ─────────────────────────── */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.comp-section { margin-bottom: 64px; }
.comp-section h2 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--white);
  letter-spacing: -0.7px;
  margin-bottom: 18px;
}

/* ── TL;DR card ─────────────────────────────── */
.tldr-card {
  background: linear-gradient(135deg, rgba(26,107,255,0.06), rgba(124,58,237,0.04));
  border: 1px solid var(--navy-border);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 56px;
}
.tldr-head {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}
.tldr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tldr-col {
  display: flex; flex-direction: column;
}
.tldr-label {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.tldr-col p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
}
.tldr-col p strong { color: var(--white); font-weight: 500; }

/* ── Comparison table ───────────────────────── */
.comp-table {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  overflow: hidden;
}
.comp-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--navy-border);
}
.comp-row:last-child { border-bottom: none; }
.comp-row.comp-header {
  background: rgba(26,107,255,0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--blue-bright);
}
.comp-row > div {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  display: flex;
  align-items: center;
}
.comp-row > div + div { border-left: 1px solid var(--navy-border); }
.comp-row > .comp-feat { color: var(--white); font-weight: 500; }
.comp-row > .comp-cm { color: var(--white); }
.comp-row > .comp-cm.yes,
.comp-row > .comp-other.yes { color: var(--green); font-weight: 500; position: relative; padding-left: 30px; }
.comp-row > .comp-cm.yes::before,
.comp-row > .comp-other.yes::before { content: '✓'; position: absolute; left: 14px; font-weight: 700; }
.comp-row > .comp-cm.no,
.comp-row > .comp-other.no { color: rgba(180,200,255,0.5); position: relative; padding-left: 30px; }
.comp-row > .comp-cm.no::before,
.comp-row > .comp-other.no::before { content: '✗'; position: absolute; left: 14px; color: var(--red); font-weight: 700; }
.comp-row > .comp-cm.partial,
.comp-row > .comp-other.partial { color: var(--amber); position: relative; padding-left: 30px; }
.comp-row > .comp-cm.partial::before,
.comp-row > .comp-other.partial::before { content: '~'; position: absolute; left: 14px; font-weight: 700; }
.legend {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
  line-height: 1.6;
}

/* ── Honest recommendation card ─────────────── */
.rec-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 64px;
}
.rec-card h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.rec-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
  font-weight: 300;
}
.rec-card p:last-child { margin-bottom: 0; }
.rec-card p strong { color: var(--white); font-weight: 500; }

/* ── Why-grid ───────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.why-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 22px 22px 20px;
}
.why-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── FAQ ────────────────────────────────────── */
.faq-section {
  margin-bottom: 64px;
}
.faq-section h2 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--white);
  letter-spacing: -0.7px;
  margin-bottom: 22px;
}
.faq-item {
  padding: 20px 0;
  border-top: 1px solid var(--navy-border);
}
.faq-item:last-child { border-bottom: 1px solid var(--navy-border); }
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}
.faq-item p strong { color: var(--white); font-weight: 500; }
.faq-item p em { color: var(--blue-bright); font-style: normal; }

/* ── CTA ────────────────────────────────────── */
.cta-card {
  text-align: center;
  padding: 36px 32px;
  background: linear-gradient(135deg, rgba(26,107,255,0.10), rgba(124,58,237,0.06));
  border: 1px solid var(--navy-border);
  border-radius: 18px;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.cta-card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.6;
}
.cta-row {
  display: flex; gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-row a.primary {
  display: inline-block;
  background: var(--blue); color: white;
  padding: 12px 24px; border-radius: 10px;
  font-weight: 600; text-decoration: none; font-size: 14px;
  transition: background 0.2s, transform 0.15s;
}
.cta-row a.primary:hover { background: var(--blue-bright); transform: translateY(-1px); }
.cta-row a.ghost {
  display: inline-block;
  color: var(--blue-bright); text-decoration: none; font-size: 14px;
  padding: 12px 18px;
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cta-row a.ghost:hover { background: rgba(26,107,255,0.06); color: var(--white); border-color: rgba(77,143,255,0.4); }

/* ── Footer ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--navy-border);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--white); text-decoration: none; }
.footer-logo span { color: var(--blue-bright); }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: rgba(180,200,255,0.25); }

/* ── Compare hub specifics ──────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.compare-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 24px 24px 22px;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.2s, transform 0.15s;
  display: flex; flex-direction: column;
}
.compare-card:hover { border-color: rgba(77,143,255,0.5); transform: translateY(-2px); }
.compare-vs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.compare-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.compare-name span { color: var(--blue-bright); }
.compare-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
  margin-bottom: 16px;
}
.compare-cta {
  font-size: 13px; font-weight: 600;
  color: var(--blue-bright);
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-logo-text { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(4,13,31,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--navy-border);
    padding: 0 24px; gap: 0;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }
  .nav-links.open { max-height: 500px; opacity: 1; padding: 18px 24px 22px; pointer-events: auto; }
  .nav-links li { list-style: none; }
  .nav-links a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid rgba(26,107,255,0.08); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .nav-cta { background: transparent !important; color: var(--muted) !important; padding: 12px 0 !important; border-radius: 0; font-weight: 500 !important; display: block; box-shadow: none; transform: none !important; }
  .nav-links .nav-cta:hover { background: transparent !important; color: var(--white) !important; }

  .tldr-grid { grid-template-columns: 1fr; gap: 16px; }
  .comp-row { grid-template-columns: 1.4fr 1fr 1fr; }
  .comp-row > div { padding: 12px 12px; font-size: 13px; }
  .comp-row > .comp-cm.yes::before,
  .comp-row > .comp-other.yes::before,
  .comp-row > .comp-cm.no::before,
  .comp-row > .comp-other.no::before,
  .comp-row > .comp-cm.partial::before,
  .comp-row > .comp-other.partial::before { left: 8px; }
  .comp-row > .comp-cm.yes,
  .comp-row > .comp-other.yes,
  .comp-row > .comp-cm.no,
  .comp-row > .comp-other.no,
  .comp-row > .comp-cm.partial,
  .comp-row > .comp-other.partial { padding-left: 22px; }
}
@media (max-width: 720px) {
  footer { flex-direction: column; text-align: center; }
}
