/* Skin for the static pages (compare / features / about / terms / privacy).

   The bar at the top is a deliberate TWIN of the landing page's own header
   (frontend/src/components/LandingPage.jsx:833-906) — same geometry, same
   order, same controls. The owner's words: moving from the app to one of
   these pages "felt like going to a different site". It did, because it was
   a different header. Every measurement below is copied from that file, so
   when one changes the other has to.

   Theme follows the app exactly: the choice lives in localStorage under
   `theme` and site.js applies it before first paint. Light is the unclassed
   default here (the app's default is light too), dark is html.dark — so a
   reader with JavaScript off still gets a sane page. */

:root {
  color-scheme: light;
  --bg: #f2f4f7;
  --bg2: #ffffff;
  --panel: rgba(255, 255, 255, 0.75);
  --panel2: #ffffff;
  --ink: #101722;
  --ink2: #5a6879;
  --line: rgba(19, 26, 36, 0.11);
  --acc: #067a67;
  --acc2: #6d5ae6;
  --acc-ink: #ffffff;
  --ok: #0f9d58;
  --warn: #c98514;
  --tint: rgba(6, 122, 103, 0.06);
  --glow: 0 0 40px rgba(6, 122, 103, 0.18);
  --shadow: 0 20px 50px -28px rgba(16, 23, 34, 0.25);
}

html.dark {
  color-scheme: dark;
  --bg: #0b0f16;
  --bg2: #0e141d;
  --panel: rgba(255, 255, 255, 0.03);
  --panel2: rgba(255, 255, 255, 0.06);
  --ink: #e9eef5;
  --ink2: #93a0b4;
  --line: rgba(233, 238, 245, 0.09);
  --acc: #3fe0c5;
  --acc2: #8f7bff;
  --acc-ink: #062019;
  --ok: #3fe08a;
  --warn: #f0b34e;
  --tint: rgba(63, 224, 197, 0.07);
  --glow: 0 0 40px rgba(63, 224, 197, 0.22);
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* The same two accent washes the landing lays over its background, so the
     page under the shared bar is the same page. */
  background:
    radial-gradient(1200px 700px at 75% -10%, color-mix(in oklab, var(--acc) 12%, transparent), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, color-mix(in oklab, var(--acc2) 10%, transparent), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

/* ── The bar. A twin of the landing's, item for item. ──────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.topbar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.topbar .brand img {
  width: 42px; height: 42px; border-radius: 12px;
  object-fit: contain; background: #fff; box-shadow: var(--glow);
}
.topbar .brand b {
  font: 700 21px/1 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.02em;
}
/* Violet → green across DX only, the hero headline's clipped gradient run in
   reverse. `color` stays solid so a browser without -webkit-text-fill-color
   renders green instead of nothing. */
.topbar .brand b span {
  background: linear-gradient(90deg, var(--acc2), var(--acc));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--acc);
  -webkit-text-fill-color: transparent;
}

.bar-right { display: flex; align-items: center; gap: 12px; }

.topbar nav { display: flex; align-items: center; gap: 18px; margin-right: 4px; }
.topbar nav a {
  font: 600 13px/1 "Space Grotesk", Inter, sans-serif;
  color: var(--ink2);
  text-decoration: none;
}
.topbar nav a:hover { color: var(--acc); }
/* The page you are on, at full brightness. The landing gives Features this
   same treatment; here it moves with you. */
.topbar nav a[aria-current="page"] { color: var(--ink); }

.langs {
  display: flex; gap: 2px; padding: 3px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
}
.langs button {
  padding: 6px 12px; border: none; cursor: pointer; border-radius: 9px;
  font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em; background: transparent; color: var(--ink2);
  transition: all 0.2s; font-family: "JetBrains Mono", ui-monospace, monospace;
}
.langs button.on {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: var(--acc-ink);
}

.themebtn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; transition: all 0.2s; padding: 0;
}

.topbar .ghost {
  padding: 9px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); text-decoration: none;
  font: 600 13px/1 "Space Grotesk", Inter, sans-serif;
}
.topbar .ghost:hover { border-color: color-mix(in srgb, var(--acc) 45%, transparent); }

.topbar .go {
  padding: 10px 20px; border-radius: 12px; border: none;
  font: 600 13px/1 "Space Grotesk", Inter, sans-serif;
  color: var(--acc-ink); text-decoration: none;
  background: linear-gradient(135deg, var(--acc), color-mix(in oklab, var(--acc) 55%, var(--acc2)));
  box-shadow: var(--glow);
  transition: transform 0.2s;
}
.topbar .go:hover { transform: translateY(-2px); }

/* The landing drops the nav at 960 and the wordmark at 560. Same here, so the
   two bars stay the same shape at every width — except that these pages keep
   the nav, because on a page that IS one of those links, hiding them would
   strand the reader. It moves to its own row instead. */
@media (max-width: 960px) {
  .topbar { padding: 10px 14px; gap: 8px; row-gap: 10px; }
  /* The right-hand group stops being a box and hands its children straight to
     the bar, so they can be ordered into TWO rows instead of stacking into
     three (brand alone / controls / nav) — that measured 140px at 375px, and
     chrome that tall is the complaint this whole change started from. */
  .bar-right { display: contents; }
  /* Explicit order, because the DOM order that reads best on a desktop
     (nav first) is not the one that packs into two rows on a phone.
     Row 1: brand · theme · trial.   Row 2: nav · languages. */
  .topbar .brand { order: 0; }
  .topbar .themebtn { order: 1; margin-left: auto; }
  .topbar .go { order: 2; }
  .topbar nav { order: 3; margin: 0; gap: 16px; }
  .topbar .langs { order: 4; margin-left: auto; }
  .langs button { padding: 6px 9px; }
}
@media (max-width: 560px) {
  .topbar .brand b { display: none; }
  .topbar .ghost { display: none; } /* same as the landing: one door on a phone */
  .topbar .go { padding: 9px 14px; }
}

/* ── The band each page opens with ─────────────────────────────────────── */
/* Pages used to start with a bare <h1> against a flat background, which is
   most of what "shabby" meant. */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { padding: 54px 20px 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; margin: 0 0 16px; border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  background: color-mix(in srgb, var(--acc) 8%, transparent);
  font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--acc);
}
.hero h1 { margin: 0 0 14px; }
.hero .lede { margin: 0; font-size: 1.08rem; }

/* ── Content ───────────────────────────────────────────────────────────── */
.wrap { max-width: 820px; margin: 0 auto; padding: 40px 20px 20px; }

h1 {
  font: 700 clamp(28px, 4.6vw, 40px)/1.14 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}
h2 {
  font: 700 clamp(19px, 2.6vw, 23px)/1.3 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.7rem;
}
h3 { font: 600 17px/1.4 "Space Grotesk", Inter, sans-serif; margin: 1.8rem 0 0.5rem; }
p { margin: 0 0 1rem; }
strong, b { font-weight: 600; }
a { color: var(--acc); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.muted { color: var(--ink2); font-size: 0.92rem; }
.lede { font-size: 1.06rem; color: var(--ink2); max-width: 640px; }
ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin: 0.35rem 0; }
li::marker { color: var(--acc); }

.cta {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), color-mix(in oklab, var(--acc) 55%, var(--acc2)));
  color: var(--acc-ink);
  text-decoration: none;
  font: 600 14px/1 "Space Grotesk", Inter, sans-serif;
  box-shadow: var(--glow);
  transition: transform 0.2s;
}
.cta:hover { transform: translateY(-2px); }
.cta.ghost {
  background: none; box-shadow: none;
  color: var(--acc);
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
}

/* ── Components the feature page is built from ─────────────────────────── */
h2 .kicker {
  display: block;
  font: 600 10.5px/1.4 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 6px;
}
/* Clear the sticky bar when the table of contents jumps here — the bar is
   ~71px on a desktop and taller once the nav wraps. */
h2[id] { scroll-margin-top: 110px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin: 18px 0 6px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--bg2);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 5px; }
.card p { margin: 0; font-size: 0.93rem; color: var(--ink2); }

.replaces, .note, .imp {
  border-left: 3px solid var(--ok);
  background: color-mix(in srgb, var(--ok) 8%, transparent);
  padding: 11px 16px;
  border-radius: 0 12px 12px 0;
  margin: 12px 0;
  font-size: 0.93rem;
}
.replaces b { color: var(--ok); }
.note, .imp {
  border-left-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
}

.toc {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 26px 0;
  background: var(--bg2);
  box-shadow: var(--shadow);
  columns: 2;
  column-gap: 26px;
  font-size: 0.94rem;
}
.toc a { display: block; padding: 3px 0; text-decoration: none; color: var(--ink2); }
.toc a:hover { color: var(--acc); }
@media (max-width: 640px) { .toc { columns: 1; } }

.price { font-size: 0.95rem; color: var(--ink2); }

/* ── Screens, drawn ────────────────────────────────────────────────────── */
/* The product lives behind a login, so a marketing page cannot carry a
   photograph of it. These panels are the screens rebuilt in HTML — sharper
   than a raster screenshot at any size, alive in both themes, and they
   cannot go stale against a redesign the way a PNG does. Every label and
   number in them is one the real code can produce. */
.ui {
  margin: 22px 0 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ui-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.ui-bar .dot { width: 9px; height: 9px; border-radius: 99px; background: var(--line); }
.ui-bar .dot:first-child { background: color-mix(in srgb, var(--danger, #d64545) 55%, var(--line)); }
.ui-bar .dot:nth-child(2) { background: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.ui-bar .dot:nth-child(3) { background: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.ui-bar b {
  margin-left: 8px;
  font: 600 10.5px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink2);
}

.ui-body { padding: 16px 18px; font-size: 0.92rem; }
.ui-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; padding: 7px 0;
}
.ui-row > .ui-v:last-child, .ui-row > b:last-child, .ui-row > .chip:last-child { margin-left: auto; }
.ui-k {
  font: 600 10px/1.4 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink2);
}
.ui-v { font: 500 13px/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--ink); }
.ui-body i { color: var(--ink2); font-style: normal; }

.ui-sep { height: 1px; background: var(--line); margin: 10px 0; }
.ui-tot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding-top: 11px;
  border-top: 1px solid var(--line);
  font: 700 14px/1 "JetBrains Mono", ui-monospace, monospace;
}
.ui-tot > :last-child { margin-left: auto; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--panel);
  font: 600 11px/1.4 Inter, sans-serif; color: var(--ink2);
  white-space: nowrap;
}
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 9%, transparent); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.chip.acc { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 35%, transparent); background: color-mix(in srgb, var(--acc) 9%, transparent); }

.ui-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ui-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  background: var(--panel2);
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.86rem;
}
.ui-card .ui-row { padding: 0; }
@media (max-width: 620px) {
  .ui-cols { grid-template-columns: 1fr; }
  .ui-body { padding: 14px; font-size: 0.88rem; }
}

/* ── The comparison table ──────────────────────────────────────────────── */
.tblwrap {
  overflow-x: auto;
  margin: 1.4rem 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg2);
  box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 640px; }
th, td { padding: 12px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; font-weight: 500; }
th {
  font: 600 11px/1.35 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink2);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
th .muted { display: block; font-size: 10px; letter-spacing: 0; text-transform: none; opacity: 0.8; }
tr:last-child td { border-bottom: 0; }
td.y { color: var(--ok); font-weight: 700; }
td.n { color: var(--ink2); }
.adx { background: var(--tint); }
th.adx { color: var(--ink); }

/* ── Legal pages ───────────────────────────────────────────────────────── */
/* Terms has fourteen numbered sections, no lists at all and two paragraphs
   set entirely in capitals. Nothing here rewrites the wording — it just
   stops the capitals reading as one undifferentiated brick. */
.legal h2 {
  font-size: 17px;
  margin: 2.2rem 0 0.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p { color: var(--ink2); font-size: 0.95rem; }
/* Direct children only: a paragraph that is one long <strong> INSIDE a
   callout already has a box around it, and boxing it twice looked like a
   rendering fault. */
.legal > p:has(> strong:only-child), .legal > .caps {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

footer {
  max-width: 820px;
  margin: 3.5rem auto 0;
  padding: 1.2rem 20px 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink2);
}
footer a { color: var(--ink2); }
footer a:hover { color: var(--acc); }

:where(a, button):focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
