/* ============================================================================
   Comparison pages — /compare and /compare/bitely-vs-*.

   The rest of the site inlines its CSS per page, which is fine when each page
   is a one-off. The comparison pages are nine copies of one layout, so they
   share this file instead: a spacing or colour change lands everywhere at once
   rather than nine times.

   The pages themselves are plain HTML and can be edited by hand. They are also
   generated by scripts/build-compare.py, which is where the table data lives.
   ========================================================================== */

:root {
  --dark: #1a2e1a;
  --green: #357a4d;
  --med: #5aad6f;
  --light: #8cc9a0;
  --muted: #6b7f6b;
  --hint: #99aa99;
  --bg: #fafdf8;
  --card: #ffffff;
  --border: rgba(26,46,26,0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--dark); font-weight: 300; line-height: 1.7; }

/* ── Nav ── */
nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 16px 48px; background: rgba(250,253,248,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-left { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-left img { height: 34px; width: auto; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 400; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--green); }
.nav-links a.current { color: var(--green); }
/* Written as .nav-links a.nav-cta, not .nav-cta: the plain `.nav-links a` rule
   above is the more specific selector and would otherwise win the colour. */
.nav-links a.nav-cta { background: var(--green); color: #fff; padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 500; text-decoration: none; transition: background 0.2s; }
.nav-links a.nav-cta:hover { background: var(--dark); color: #fff; }

/* ── Layout ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.narrow { max-width: 760px; margin: 0 auto; }

/* ── Versus hero ── */
.hero { text-align: center; padding: 72px 0 64px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hint); margin-bottom: 20px; }

.versus { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 50px; padding: 8px 20px 8px 8px; box-shadow: 0 2px 12px rgba(26,46,26,0.05); }
.chip img { height: 28px; width: 28px; border-radius: 7px; }
.chip .mono { display: inline-flex; align-items: center; justify-content: center; height: 28px; width: 28px; border-radius: 7px; background: var(--dark); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: -0.3px; }
.chip .name { font-size: 16px; font-weight: 500; color: var(--dark); }
.versus .vs { font-size: 13px; font-weight: 400; letter-spacing: 1.5px; text-transform: lowercase; color: var(--hint); }

.hero h1 { font-family: 'Instrument Serif', serif; font-size: 62px; font-weight: 400; line-height: 1.08; letter-spacing: -1.5px; margin: 0 auto 32px; max-width: 900px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero p { font-size: 17px; color: var(--muted); max-width: 660px; margin: 0 auto 20px; }
.hero p:last-of-type { margin-bottom: 36px; }
.hero .btn { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff; padding: 14px 34px; border-radius: 50px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.hero .btn:hover { background: var(--dark); transform: translateY(-2px); }

/* ── Section headings ── */
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-family: 'Instrument Serif', serif; font-size: 40px; font-weight: 400; letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 12px; }
.section-head h2 em { font-style: italic; color: var(--green); }
.section-head p { font-size: 15px; color: var(--muted); max-width: 580px; margin: 0 auto; }

/* ── Comparison table ── */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 22px; background: var(--card); box-shadow: 0 2px 24px rgba(26,46,26,0.04); }
table.compare { width: 100%; min-width: 760px; border-collapse: collapse; }
table.compare th, table.compare td { text-align: left; padding: 18px 26px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: none; }
table.compare thead th { font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--hint); padding-top: 22px; padding-bottom: 22px; }
table.compare thead th.col-us { background: var(--dark); color: #fff; }
table.compare thead th.col-them { background: rgba(26,46,26,0.03); color: var(--muted); }
table.compare tbody td.col-us { background: rgba(90,173,111,0.06); }
table.compare tbody td.col-them { background: rgba(26,46,26,0.015); }
table.compare tbody th { font-size: 15px; font-weight: 400; color: var(--dark); }
table.compare tbody th span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
table.compare td { font-size: 14.5px; color: var(--muted); }
table.compare td.col-us { color: var(--dark); font-weight: 400; }
.col-us, .col-them { width: 26%; }
table.compare td.mark-cell { text-align: center; }
.best { display: inline-block; margin-left: 10px; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; vertical-align: middle; }

.mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 14px; font-weight: 500; line-height: 1; }
.mark.yes { background: rgba(53,122,77,0.12); color: var(--green); }
.mark.no { background: rgba(26,46,26,0.05); color: var(--hint); }
.fn { font-size: 11px; color: var(--hint); vertical-align: super; margin-left: 3px; text-decoration: none; }
.fn:hover { color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.table-notes { margin-top: 20px; }
.table-notes p { font-size: 13px; color: var(--hint); margin-bottom: 6px; }
.table-notes a { color: var(--muted); }

/* ── Choose-if cards ── */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.verdict-card { border-radius: 22px; padding: 32px; border: 1px solid var(--border); background: var(--card); }
.verdict-card.pick { background: linear-gradient(135deg, rgba(53,122,77,0.07) 0%, rgba(140,201,160,0.07) 100%); border-color: rgba(53,122,77,0.18); }
.verdict-card h3 { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; margin-bottom: 14px; }
.verdict-card ul { list-style: none; }
.verdict-card li { font-size: 15px; color: var(--muted); padding-left: 22px; position: relative; margin-bottom: 10px; }
.verdict-card li::before { content: ''; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--light); }

/* ── Hub: comparison cards ── */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
a.hub-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
a.hub-card:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(26,46,26,0.07); border-color: rgba(53,122,77,0.2); }
.hub-card .versus { justify-content: flex-start; gap: 10px; margin-bottom: 16px; }
.hub-card .chip { box-shadow: none; padding: 5px 15px 5px 5px; }
.hub-card .chip img, .hub-card .chip .mono { height: 22px; width: 22px; border-radius: 6px; font-size: 11px; }
.hub-card .chip .name { font-size: 14px; }
.hub-card h3 { font-family: 'Instrument Serif', serif; font-size: 22px; font-weight: 400; color: var(--dark); margin-bottom: 8px; line-height: 1.25; }
.hub-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.hub-card .more { font-size: 14px; font-weight: 500; color: var(--green); }

/* ── Hub: positioning cards ── */
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pos-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
.pos-card h3 { font-family: 'Instrument Serif', serif; font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.pos-card p { font-size: 14.5px; color: var(--muted); }

/* ── CTA ── */
.cta-banner { background: linear-gradient(135deg, var(--dark) 0%, #2a4a32 100%); border-radius: 28px; padding: 72px 64px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(109,191,139,0.12) 0%, transparent 50%); pointer-events: none; }
.cta-banner h2 { font-family: 'Instrument Serif', serif; font-size: 40px; font-weight: 400; color: #fff; letter-spacing: -1px; margin-bottom: 16px; position: relative; }
.cta-banner h2 em { font-style: italic; color: var(--light); }
.cta-banner p { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.6); max-width: 460px; margin: 0 auto 36px; line-height: 1.6; position: relative; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }
.cta-btn { padding: 16px 40px; border-radius: 50px; background: #fff; color: var(--dark); font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.25s, box-shadow 0.25s; box-shadow: 0 4px 24px rgba(0,0,0,0.1); position: relative; border: none; cursor: pointer; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0,0,0,0.15); }
.cta-btn svg { width: 18px; height: 18px; fill: var(--dark); }
.cta-btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.28); box-shadow: none; }
.cta-btn.ghost:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.07); box-shadow: none; }

/* ── Other comparisons strip ── */
.more-compare { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.more-compare a { font-size: 14px; color: var(--muted); text-decoration: none; background: var(--card); border: 1px solid var(--border); border-radius: 50px; padding: 8px 18px; transition: color 0.2s, border-color 0.2s; }
.more-compare a:hover { color: var(--green); border-color: rgba(53,122,77,0.25); }

/* ── Footer ── */
footer { max-width: 1100px; margin: 0 auto; padding: 48px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-start; background: var(--bg); }
.footer-left { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-left img { height: 30px; width: auto; border-radius: 7px; }
.footer-copy { font-size: 13px; font-weight: 300; color: var(--hint); }
.footer-cols { display: flex; gap: 64px; }
.footer-col-title { font-size: 12px; font-weight: 500; color: var(--dark); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; font-weight: 300; color: var(--muted); text-decoration: none; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }

/* ── Vertical rhythm ── */
.block { margin-bottom: 88px; }
.block-tight { margin-bottom: 40px; }

@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; }
  .pos-grid { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .wrap { padding: 0 20px; }
  .hero { padding: 44px 0 44px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.5px; }
  .section-head h2 { font-size: 28px; }
  table.compare th, table.compare td { padding: 14px 16px; }
  .cta-banner { padding: 48px 24px; }
  .cta-banner h2 { font-size: 30px; }
  .block { margin-bottom: 64px; }
  footer { flex-direction: column; gap: 32px; padding: 32px 24px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
}
