/* Shared styles for static marketing pages (compare index + articles). Mirrors pricing.html (Langdock-style). */
:root {
  --bg: #ffffff; --bg-2: #f6f6f7; --bg-3: #efeff1; --card: #ffffff; --card-2: #fafafa;
  --ink: #0e0f12; --ink-2: #43454d; --muted: #80828b; --dim: #a3a5ad;
  --line: #e9e9ec; --line-2: #dcdde1; --accent: #2f4bff; --accent-soft: #eef0ff;
  --panel: #f4f4f5;
  --shadow: 0 1px 2px rgba(14,15,18,.04), 0 12px 32px -12px rgba(14,15,18,.12), 0 40px 80px -40px rgba(14,15,18,.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-top: 76px; text-rendering: optimizeLegibility; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.6 "Inter", system-ui, sans-serif; overflow-x: hidden; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 4px; font-size: 14px; }
.skip:focus { top: 16px; }

/* nav (identical to landing + pricing) */
.navwrap { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.72); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.navwrap.scrolled { background: rgba(250,250,250,.78); }
nav { position: relative; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 0 28px; }
.brand { font-family: "Geist", sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.05em; display: inline-flex; align-items: baseline; gap: 7px; }
.brand::before { content: ""; width: .75em; height: .6em; flex: 0 0 auto; background: currentColor; -webkit-mask: url(/mark.svg) center / contain no-repeat; mask: url(/mark.svg) center / contain no-repeat; }
.links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; font-size: 14.5px; color: var(--ink); }
.links a { padding: 6px 12px; border-radius: 4px; transition: color .15s, background .15s; }
.links a:hover { background: rgba(14,15,18,.05); }
.nav-r { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.nav-r .pill { height: 40px; padding: 0 16px 0 14px; border-radius: 5px; gap: 8px; }
.login { padding: 6px 12px; color: var(--ink); border-radius: 4px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, transform .15s; }
.pill:hover { background: #2a2c33; }
.pill:active { transform: translateY(1px); }
.menu-btn { display: none; width: 38px; height: 38px; border-radius: 5px; place-items: center; color: var(--ink); }
.menu-btn:hover { background: var(--bg-2); }
.mmenu { display: none; position: absolute; left: 12px; right: 12px; top: 64px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 8px; }
.mmenu a { display: block; padding: 11px 12px; border-radius: 4px; font-size: 15px; color: var(--ink-2); }
.mmenu a:hover { background: var(--bg-2); color: var(--ink); }
nav.open .mmenu { display: block; }

/* page frame (same as pricing) */
.pr { padding: 88px 0 0; }
.pr-head { margin-left: 264px; max-width: 620px; }
.pr-head h1 { font: 500 44px/1.05 "Geist", sans-serif; letter-spacing: -0.04em; }
.pr-head > p { margin-top: 16px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.pr-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 40px; margin-top: 56px; align-items: start; }
.pr-side { position: sticky; top: 88px; display: grid; gap: 28px; padding-top: 20px; }
.pr-lbl { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pr-hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pr-hint a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.side-v { font-size: 14px; color: var(--ink); }
.side-links { display: grid; gap: 2px; }
.side-links a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); transition: color .15s; }
.side-links a:hover { color: var(--ink); }
.pr-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.pr-panel { background: var(--panel); border-radius: 6px; padding: 28px; }
.pr-ph h2 { font: 500 20px/1.2 "Geist", sans-serif; letter-spacing: -0.02em; }
.pr-ph p { margin-top: 6px; font-size: 14px; color: var(--muted); max-width: 480px; }
.pr-fine { font-size: 12px; color: var(--muted); line-height: 1.55; max-width: 720px; padding: 0 4px; }
.pr-fine a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* compare index cards (like pricing plan cards) */
.cmp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.cmp-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 22px; transition: border-color .2s, box-shadow .2s; }
.cmp-card:hover { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cmp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cmp-top h3 { font: 500 17px "Geist", sans-serif; letter-spacing: -0.02em; }
.cmp-top span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cmp-card p { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.cmp-price { margin-top: 20px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.cmp-price b { color: var(--ink); font-weight: 500; }
.cmp-cta { display: flex; align-items: center; justify-content: center; height: 42px; margin-top: auto; border-radius: 5px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink); transition: background .15s, border-color .15s; }
.cmp-card .cmp-price + .cmp-cta { margin-top: 24px; }
.cmp-card:hover .cmp-cta { background: var(--ink); border-color: var(--ink); color: #fff; }

/* article */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.ameta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--muted); }
.tldr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.tldr > div { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 22px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.tldr > div:last-child { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tldr b { display: block; font: 500 17px "Geist", sans-serif; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
.tbl { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-size: 14px; line-height: 1.5; }
.pr-panel .tbl { margin-top: 12px; }
.tbl table { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 18px; }
.tbl tbody tr + tr > * { border-top: 1px solid var(--line); }
.tbl thead th { font: 500 15px "Geist", sans-serif; letter-spacing: -0.02em; color: var(--ink); border-bottom: 1px solid var(--line); }
.tbl thead th:nth-child(2) { color: var(--muted); }
.tbl tbody th { font-weight: 400; font-size: 13px; color: var(--muted); width: 22%; }
.tbl td { color: var(--muted); }
.tbl td:last-child { color: var(--ink); }

.prose { max-width: 680px; padding: 32px 4px 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font: 500 24px/1.2 "Geist", sans-serif; letter-spacing: -0.03em; color: var(--ink); margin-top: 56px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font: 500 17px/1.3 "Geist", sans-serif; letter-spacing: -0.02em; color: var(--ink); margin-top: 32px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--dim); }
.prose .tbl { margin-top: 20px; }
.tbl.wide { overflow-x: auto; }
.tbl.wide table { min-width: 560px; }
.tbl.wide thead th:nth-child(n) { color: var(--ink); font-size: 13.5px; }
.tbl.wide tbody th { width: auto; min-width: 120px; color: var(--ink); font-weight: 500; }
.tbl.wide tbody th a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tbl.wide td, .prose .tbl.wide td:last-child { color: var(--ink-2); font-size: 13.5px; }
.prose code { font: 13px "Geist Mono", monospace; background: var(--bg-2); padding: 2px 5px; border-radius: 3px; }
.answer { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 680px; }
.answer strong { color: var(--ink); font-weight: 600; }
.prose .tbl tbody th { color: var(--ink-2); }
.prose .tbl td:last-child { color: var(--ink); }

/* final CTA (same as pricing) */
.pr-final { padding: 128px 0 40px; text-align: center; }
.pr-final h2 { font: 500 clamp(32px, 4vw, 44px)/1.08 "Geist", sans-serif; letter-spacing: -0.04em; }
.pr-final .pill { margin-top: 32px; height: 44px; padding: 0 20px; }
.pr-fnote { margin-top: 14px; font-size: 13px; color: var(--muted); }
.pr-fnote a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* footer (same as pricing) */
footer { padding: 64px 0 40px; color: var(--muted); font-size: 14px; }
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.fgrid .brand { color: var(--ink); }
.fgrid .tag-line { margin-top: 10px; max-width: 260px; }
.fgrid h5 { font-weight: 500; color: var(--ink); font-size: 13px; margin-bottom: 14px; }
.fgrid a:not(.brand) { display: block; margin-bottom: 10px; transition: color .15s; }
.fgrid a:hover { color: var(--ink); }
.fbot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; font-size: 13px; }
.fbot a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 1000px) {
  .pr-head { margin-left: 0; }
  .pr-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
  .pr-side { position: static; padding-top: 0; }
  .pr-side .toc-block { display: none; }
}
@media (max-width: 900px) {
  .links, .login { display: none; }
  .nav-r { margin-left: auto; }
  .menu-btn { display: grid; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  nav { padding: 0 8px 0 16px; }
  .nav-r .pill { display: none; }
  .pr { padding-top: 56px; }
  .pr-head h1 { font-size: 36px; }
  .pr-panel { padding: 18px; }
  .cmp-cards, .tldr { grid-template-columns: 1fr; }
  .tbl { overflow-x: auto; }
  .tbl table { min-width: 560px; }
  .pr-final { padding: 96px 0 32px; }
}
