/* Comparison pages (/vs/…, /alternatives/…, /alternatives) and templates (/templates/…), built by scripts/compare-pages.mjs.
   Same look as the landing page: its tokens, header, buttons and self-hosted fonts (SIL OFL 1.1, /media/fonts/). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/media/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/media/fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0e1116; --alt: #0b0e12; --surface: #161b22; --border: #2a323d; --rule: #20262f;
  --text: #e6edf3; --muted: #8b96a3; --accent: #3fb68b; --on-accent: #0e1116; --tint: rgba(63, 182, 139, .07);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f5; --alt: #eff0ee; --surface: #fff; --border: #d9dde2; --rule: #e3e5e8;
    --text: #1a1f24; --muted: #5f6b77; --accent: #187a56; --on-accent: #fff; --tint: rgba(24, 122, 86, .06);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header and footer: the landing page's */
header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--rule); }
header .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 14px/1 var(--mono); letter-spacing: .06em; white-space: nowrap; }
.brand img { width: 24px; height: 24px; border-radius: 5px; }
header nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
header nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
header nav a:hover, header nav a[aria-current] { color: var(--text); }
.btn { display: inline-block; padding: 10px 16px; border-radius: 4px; border: 1px solid var(--border); color: var(--text); background: var(--surface); text-decoration: none; font: 600 14px/1.2 var(--sans); white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); color: var(--on-accent); }
header .btn { padding: 7px 12px; font-size: 13px; }
.btn.big { padding: 14px 24px; font-size: 16px; }
footer { border-top: 1px solid var(--rule); padding: 28px 0 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* the article */
article { max-width: 800px; margin: 0 auto; padding: 56px 24px 24px; overflow-wrap: break-word; }
.crumbs { font: 500 13px/1 var(--mono); color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
h1 { font: 700 clamp(32px, 4.6vw, 46px)/1.1 var(--sans); letter-spacing: -.025em; margin: 0 0 14px; }
h2 { font: 700 clamp(22px, 2.6vw, 27px)/1.25 var(--sans); letter-spacing: -.015em; margin: 64px 0 14px; }
h3 { font: 600 18px/1.35 var(--sans); margin: 32px 0 8px; }
p { margin: 0 0 16px; }
.meta { font: 400 13px/1.5 var(--mono); color: var(--muted); margin: 0 0 28px; }
.meta a { color: var(--muted); }
.summary { font-size: clamp(17px, 1.9vw, 19px); line-height: 1.6; color: var(--muted); margin: 0 0 40px; }
.summary b, .summary strong { color: var(--text); font-weight: 600; }
strong, b { font-weight: 600; }
article ul, article ol { padding: 0; margin: 0 0 20px; list-style: none; }
article li { position: relative; padding-left: 22px; margin: 8px 0; }
article ul > li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 8px; height: 2px; border-radius: 1px; background: var(--accent); }
article ol { counter-reset: step; }
article ol > li { counter-increment: step; padding-left: 36px; margin: 14px 0; }
article ol > li::before { content: counter(step); position: absolute; left: 0; top: .2em; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font: 500 11px/1 var(--mono); }
code, kbd { font: 500 .86em var(--mono); background: var(--surface); border: 1px solid var(--border); padding: .1em .35em; border-radius: 4px; }
article img { display: block; border: 1px solid var(--border); border-radius: 8px; margin: 8px 0 24px; background: #0e1116; }
article p > a:only-child { font-weight: 600; text-decoration: none; color: var(--accent); }
article p > a:only-child:hover { text-decoration: underline; }

/* comparison table: hairline rows, the Life Console column (or row) tinted */
.table { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow-x: auto; margin: 0 0 8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; }
thead th { font: 600 12px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr + tr td { border-top: 1px solid var(--rule); }
tbody td:first-child { color: var(--muted); font-weight: 500; }
table.lc-col thead th:nth-child(2) { color: var(--accent); }
table.lc-col tr > :nth-child(2) { background: var(--tint); }
table.lc-col tbody td:first-child { width: 22%; }
tr.lc-row td { background: var(--tint); }
table tbody td:first-child strong { color: var(--text); }

/* "Pick X if" / "Pick Life Console if": two cards side by side */
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 64px 0 0; }
.pick { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 22px 24px 8px; }
.pick h2 { font-size: 19px; margin: 0 0 12px; }
.pick.lc { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.pick li { font-size: 15px; }

/* links to the other comparisons */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0 0 8px; }
.cards a { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-decoration: none; font-weight: 500; line-height: 1.45; transition: border-color .15s; }
.cards a::after { content: " →"; color: var(--accent); }
.cards a:hover { border-color: var(--accent); color: var(--text); }

/* closing call to action */
.closer { max-width: 800px; margin: 72px auto 80px; padding: 0 24px; }
.closer .box { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.closer p { margin: 0; }
.closer .line { font: 700 clamp(22px, 2.8vw, 28px)/1.2 var(--sans); letter-spacing: -.015em; margin-bottom: 6px; }
.closer .sub { color: var(--muted); font-size: 15px; }
.closer .sub a { color: var(--muted); }

@media (max-width: 720px) {
  header nav .opt { display: none; }
  .picks { grid-template-columns: 1fr; margin-top: 48px; }
  h2 { margin-top: 48px; }
  article { padding-top: 36px; }
  .closer .box { padding: 26px 22px; }
}
/* phones: each table row becomes a small labelled card */
@media (max-width: 560px) {
  .table { border: 0; background: none; overflow: visible; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: auto !important; }
  tbody tr { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); margin: 0 0 10px; overflow: hidden; }
  tbody tr + tr td { border-top: 0; }
  td { padding: 8px 14px; }
  td + td { border-top: 1px solid var(--rule) !important; }
  tbody td:first-child { color: var(--text); font-weight: 600; padding-top: 12px; }
  td[data-label]::before { content: attr(data-label); display: block; font: 500 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  table.lc-col tr > :nth-child(2) { background: var(--tint); }
}

/* templates: blank tables to fill in, and a print layout that prints only the template */
.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: -12px 0 32px; }
.downloads .btn { white-space: normal; text-align: center; }
article img[src^="/media/templates/"] { background: #fff; }
.blank table { table-layout: fixed; }
.blank th { white-space: normal; }
.blank td { height: 44px; }
.blank td:empty::after { content: ""; }
.howto { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; color: var(--muted); }
@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --muted: #333; --border: #999; --rule: #bbb; --accent: #000; --tint: transparent; color-scheme: light; }
  header, footer, .closer, .crumbs, .no-print, article img { display: none !important; }
  article { max-width: none; padding: 0 2px; }
  h1 { font-size: 22px; margin: 0 0 6px; }
  h2 { font-size: 15px; margin: 18px 0 6px; break-after: avoid; }
  .table { border: 1px solid #999; border-radius: 0; break-inside: avoid; overflow: visible; }
  table { font-size: 11px; }
  .blank td { height: 34px; }
  thead { display: table-header-group !important; }
  table, tbody, tr, td { display: revert !important; }
  td[data-label]::before { content: none !important; }
}
