/* Shared stylesheet of the content pages (features, compare, guides, about). Same tokens, fonts and header as the
   landing page (web/index.html keeps its own inline copy), plus long-form reading styles. Built into web/assets/. */
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0D1014; --surface: #151A20; --surface-2: #1C232B; --surface-3: #242C36; --line: #222A33; --outline: #5B6775;
  --fg: #E8EDF2; --muted: #9AA6B2; --mint: #7CE3C4; --on-mint: #0B1A16; --mint-soft: #1D2E2D; --warn: #F2877B;
  --glow: rgba(124, 227, 196, 0.14); --dot: rgba(154, 166, 178, 0.16);
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --step--1: 0.8125rem; --step-0: 1rem; --step-1: 1.125rem;
  --step-2: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  --r-s: 14px; --r-m: 20px; --r-l: 28px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F4F6F8; --surface: #FFFFFF; --surface-2: #EBEFF3; --surface-3: #E3E8ED; --line: #E3E8ED; --outline: #8A95A1;
    --fg: #10161D; --muted: #56616D; --mint: #0B7A64; --on-mint: #FFFFFF; --mint-soft: #D3EFE7; --warn: #B3261E;
    --glow: rgba(11, 122, 100, 0.10); --dot: rgba(86, 97, 109, 0.16);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F6F8; --surface: #FFFFFF; --surface-2: #EBEFF3; --surface-3: #E3E8ED; --line: #E3E8ED; --outline: #8A95A1;
  --fg: #10161D; --muted: #56616D; --mint: #0B7A64; --on-mint: #FFFFFF; --mint-soft: #D3EFE7; --warn: #B3261E;
  --glow: rgba(11, 122, 100, 0.10); --dot: rgba(86, 97, 109, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 500; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 2.5vw, 24px); }
.label { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); }

/* Header: brand, sections, download. On phones the sections drop to a scrollable second row instead of hiding. */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; min-height: 68px; }
.top .brand { justify-self: start; }
.top-end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; }
.langs a { padding: 5px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--fg); }
.langs a[aria-current] { background: var(--surface-3); color: var(--fg); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.seal { fill: none; stroke: var(--mint); stroke-linecap: round; stroke-linejoin: round; }
.seal .inner { stroke: var(--outline); }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--mint); color: var(--on-mint); }
.btn-primary:hover { background: color-mix(in srgb, var(--mint) 88%, var(--fg)); }
.btn-small { min-height: 42px; padding: 8px 18px; font-size: 0.92rem; }

/* Breadcrumbs and page header */
.crumbs { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); padding-top: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--outline); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

.doc { max-width: 960px; margin-inline: auto; padding-bottom: 24px; }
.doc-head { display: grid; gap: 14px; padding-block: 28px 8px; }
.doc-head h1 { font-size: var(--step-3); }
.dek { font-size: var(--step-1); color: var(--muted); }
.meta { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }

.answer { margin-top: 26px; background: var(--surface); border-radius: var(--r-m); padding: 20px 22px; border-left: 3px solid var(--mint); display: grid; gap: 8px; }
.answer p { color: var(--fg); }


/* Long-form text */
.prose { margin-top: 8px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.15rem; margin-top: 1.7em; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 88%, var(--muted)); }
.prose a { color: var(--mint); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose strong { color: var(--fg); font-weight: 750; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.prose .steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.prose .steps li { counter-increment: s; background: var(--surface); border-radius: var(--r-s); padding: 14px 16px 14px 56px; position: relative; margin: 0; }
.prose .steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; }
.note { background: var(--surface); border-radius: var(--r-m); padding: 16px 20px; }
.note.warn { border-left: 3px solid var(--warn); }
.note b:first-child { display: block; margin-bottom: 4px; }

.table-wrap { overflow-x: auto; border-radius: var(--r-m); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--fg); font-weight: 650; }
.yes { color: var(--mint); font-weight: 700; }
.no { color: var(--warn); font-weight: 700; }

/* FAQ */
.faq-block { margin-top: 3em; }
.faq-block h2 { font-size: var(--step-2); margin-bottom: 18px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--r-m); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.03rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--mint); transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div > * + * { margin-top: 0.7em; }
.faq a { color: var(--mint); }

/* Cards: hubs and related pages */
.hub-head { display: grid; gap: 14px; max-width: 960px; padding-block: 28px 36px; }
.hub-head h1 { font-size: var(--step-3); }
.hub-intro { max-width: 960px; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--surface); border-radius: var(--r-l); padding: 22px 24px; display: grid; gap: 8px; align-content: start; text-decoration: none; transition: background-color 0.15s ease; }
.card:hover { background: var(--surface-2); }
.card b { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.25; }
.card span { color: var(--muted); font-size: 0.94rem; }
.card .tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); }
.related { margin-top: 3.2em; }
.related h2 { font-size: var(--step-2); margin-bottom: 18px; }

/* Closing call to action */
.cta { margin-block: 64px 24px; background: var(--surface); border-radius: var(--r-l); padding: clamp(28px, 5vw, 48px); display: grid; justify-items: center; text-align: center; gap: 14px; }
.cta svg { width: 72px; height: 72px; }
.cta h2 { font-size: var(--step-2); max-width: 24ch; }
.cta p { color: var(--muted); max-width: 52ch; }
.play-badge { display: inline-flex; border-radius: 10px; }
.play-badge img { display: block; width: auto; height: 56px; }
.hero-note { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 64px; padding-block: 44px 40px; color: var(--muted); font-size: 0.92rem; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-cols b { display: block; color: var(--fg); font-size: 0.95rem; margin-bottom: 10px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-cols a { color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: var(--fg); }
.foot-legal { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.85rem; }
.foot-legal a { color: var(--muted); }

@media (max-width: 860px) {
  .top .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
  .nav { grid-column: 1 / -1; order: 3; overflow-x: auto; gap: 20px; padding-bottom: 12px; scrollbar-width: none; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .prose .steps li { padding-left: 50px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
.prose .checked { color: var(--muted); font-size: 0.88rem; }
.prose table.vs { min-width: 0; table-layout: fixed; }
.prose table.vs th:first-child { width: 52%; }
.prose table.vs th:not(:first-child) { text-align: center; }
.prose table.vs th:nth-child(2) { color: var(--mint); }
.prose table.vs td:first-child b { display: block; color: var(--fg); font-weight: 700; line-height: 1.35; }
.prose table.vs td:first-child small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.prose table.vs td:not(:first-child) { text-align: center; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.prose table.vs td:nth-child(2) { background: color-mix(in srgb, var(--mint-soft) 45%, transparent); }
.prose td.mark small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.9rem; font-weight: 800; line-height: 1; }
.ic.ok { color: var(--mint); background: var(--mint-soft); }
.ic.no { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.ic.part { color: var(--fg); background: var(--surface-3); }
.prose table.price td:first-child { color: var(--muted); }
.prose table.price td strong { color: var(--fg); font-size: 1rem; }
.prose .price-note { color: var(--muted); font-size: 0.86rem; margin-top: 10px; }
@media (max-width: 560px) {
  .prose table.vs th:first-child { width: 46%; }
  .prose table.vs th, .prose table.vs td { padding: 10px 8px; }
}
.prose table.price small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.82rem; font-weight: 400; line-height: 1.4; }
.prose table.price td[rowspan] { vertical-align: middle; color: var(--muted); }
.vs-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.vs-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--r-l); padding: 20px 22px; text-decoration: none; transition: background-color 0.15s ease; }
.vs-card:hover { background: var(--surface-2); }
.vs-mono { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--fg); background: color-mix(in srgb, hsl(var(--h) 65% 50%) 26%, var(--surface-3)); }
.vs-body { display: grid; gap: 4px; min-width: 0; }
.vs-body b { font-family: var(--font-display); font-size: 1.06rem; letter-spacing: -0.01em; line-height: 1.25; color: var(--fg); }
.vs-meta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); }
.vs-diff { margin-top: 2px; color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
.prose table.vs th, .prose table.vs td, .prose table.price th, .prose table.price td { overflow-wrap: break-word; hyphens: auto; }
.prose table.price { min-width: 0; table-layout: fixed; }
.prose table.price th:first-child { width: 24%; }
@media (max-width: 560px) { .prose table.price th, .prose table.price td { padding: 10px 8px; } .prose table.price th:first-child { width: 26%; } }
.prose table.price td:not(:first-child) { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.vs-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; object-fit: cover; background: var(--surface-3); }
