/* AI Visibility Index: one stylesheet. Neutral ground, one sans, hairline rules, one blue accent. */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-hover: #f4f4f5;
  --fg: #0f0f10;
  --fg-2: #4b4b50;
  --fg-3: #6e6e75;
  --line: #ebebed;
  --line-2: #d6d6da;
  --accent: #2851e6;
  --accent-soft: #e9eeff;
  --ring: rgb(40 81 230 / 0.28);
  --select: rgb(40 81 230 / 0.16);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --w-page: 1120px;
  --w-text: 680px;
  --gutter: 24px;
  --r: 8px;
  --r-sm: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0d; --bg-2: #111113; --bg-hover: #18181b; --fg: #ededef; --fg-2: #b2b2b8; --fg-3: #8d8d95;
    --line: #232326; --line-2: #34343a; --accent: #7b98ff; --accent-soft: #171d33; --ring: rgb(123 152 255 / 0.35); --select: rgb(123 152 255 / 0.28);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0d; --bg-2: #111113; --bg-hover: #18181b; --fg: #ededef; --fg-2: #b2b2b8; --fg-3: #8d8d95;
  --line: #232326; --line-2: #34343a; --accent: #7b98ff; --accent-soft: #171d33; --ring: rgb(123 152 255 / 0.35); --select: rgb(123 152 255 / 0.28);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) transparent; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--select); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
strong { font-weight: 600; }
em { font-style: normal; font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }
.icon { flex: none; display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 12px; border-radius: var(--r); background: var(--fg); color: var(--bg); text-decoration: none; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--w-page); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.main { flex: 1; padding: 56px 0 112px; }

/* ---------- Header ---------- */
.hdr { border-bottom: 1px solid var(--line); background: var(--bg); }
.hdr__in { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand__mark { color: var(--fg); }
.nav { display: flex; gap: 2px; font-size: 14px; }
.nav a { padding: 6px 10px; border-radius: var(--r-sm); color: var(--fg-2); text-decoration: none; white-space: nowrap; transition: color 0.15s, background-color 0.15s; }
.nav a:hover { color: var(--fg); background: var(--bg-hover); }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 500; }
.theme { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: none; color: var(--fg-2); cursor: pointer; transition: color 0.15s, background-color 0.15s; }
.theme:hover { color: var(--fg); background: var(--bg-hover); }
.theme__i { display: none; }
.theme[data-mode="auto"] .theme__i--auto, .theme:not([data-mode]) .theme__i--auto, .theme[data-mode="light"] .theme__i--light, .theme[data-mode="dark"] .theme__i--dark { display: block; }

/* ---------- Page heads ---------- */
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--fg-3); margin-bottom: 16px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.head { max-width: 760px; margin-bottom: 40px; }
.head h1, .phead h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.032em; font-weight: 600; }
.lead { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--fg-2); max-width: 62ch; }
.sub { margin-top: 12px; font-size: 14px; color: var(--fg-3); }
.sub a { color: var(--fg-2); }
.head--404 { padding: 64px 0; }
.head--404 .actions { margin-top: 28px; }

/* ---------- Buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--fg);
  font: 500 14px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:hover { background: var(--bg-hover); }
.btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--primary:hover { background: var(--fg); opacity: 0.86; }
.btn--ghost { border-color: transparent; color: var(--fg-2); }
.btn--ghost:hover { color: var(--fg); }
.btn--lg { height: 48px; padding: 0 20px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.input, .select select {
  width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--fg);
  font: 400 15px/1 var(--font); transition: border-color 0.15s, box-shadow 0.15s;
}
.input { padding: 0 12px 0 36px; }
.input::placeholder { color: var(--fg-3); opacity: 1; }
.input::-webkit-search-cancel-button { -webkit-appearance: none; }
.input:hover, .select select:hover { border-color: var(--fg-3); }
.input:focus, .select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.search { position: relative; display: block; flex: 1 1 280px; min-width: 0; }
.search > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.search__key { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 4px; font: 500 12px/1 var(--font); color: var(--fg-3); pointer-events: none; }
.search:focus-within .search__key { display: none; }
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding: 0 34px 0 12px; cursor: pointer; }
.select > .icon { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }
.field { display: block; min-width: 0; }
.field--labelled { display: grid; gap: 6px; }
.field__label { font-size: 13px; color: var(--fg-3); }

/* ---------- Directory filters ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 20px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__row .field { flex: 0 1 200px; }
.toggle {
  height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--fg-2);
  font: 500 13px/1 var(--font); cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.toggle:hover { color: var(--fg); border-color: var(--fg-3); }
.toggle[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.count { margin-left: auto; font-size: 14px; color: var(--fg-3); white-space: nowrap; }
.empty { display: grid; justify-items: start; gap: 12px; padding: 40px 12px; color: var(--fg-2); border-bottom: 1px solid var(--line); }

/* ---------- Logos ----------
   Tool and AI engine logos sit on a white tile with a hairline ring, so dark glyphs stay visible
   in dark mode and every logo reads as the same object. Missing logos become a letter mark. */
.logo {
  flex: none; display: inline-block; width: var(--s); height: var(--s); vertical-align: middle;
  border-radius: calc(var(--s) * 0.24); background: #fff; box-shadow: 0 0 0 1px var(--line); object-fit: contain;
}
.logo--engine { border-radius: calc(var(--s) * 0.3); }
.logo--mark {
  display: inline-grid; place-items: center; background: var(--bg-hover); color: var(--fg-2);
  font-size: calc(var(--s) * 0.46); font-weight: 600; line-height: 1; letter-spacing: 0;
}
.mention { white-space: nowrap; }
.mention .logo { margin-right: 6px; vertical-align: -3px; }
a.mention { text-decoration-color: var(--line-2); }
.tool-cell { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tool-cell:hover span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.logo-pair { display: inline-flex; align-items: center; }
.logo-pair .logo + .logo { margin-left: -6px; box-shadow: 0 0 0 1px var(--line), 0 0 0 3px var(--bg); }
.logo-pair--lg { display: flex; margin-bottom: 20px; }
.logo-pair--lg .logo + .logo { margin-left: -10px; }
.pair-link { display: inline-flex; align-items: center; gap: 12px; }
.icon-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cols--icons li { display: flex; align-items: center; gap: 10px; }

/* ---------- Tool list ---------- */
.list { --cols: minmax(0, 1fr) 200px 84px 136px; }
.list--nocat { --cols: minmax(0, 1fr) 84px 136px; }
.list__head, .row { display: grid; grid-template-columns: var(--cols); column-gap: 24px; }
.list__head { padding: 0 12px 10px; font-size: 13px; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.list__head .col-eng, .list__head .col-price { text-align: right; }
.row { align-items: center; padding: 16px 12px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color 0.12s; }
.row:hover { background: var(--bg-2); }
.row:hover .row__name { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.row:focus-visible { outline-offset: -2px; border-radius: var(--r-sm); }
.row__lead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.row__main { display: grid; gap: 3px; min-width: 0; }
.row__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.row__desc { font-size: 14px; line-height: 1.5; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row__cat { font-size: 14px; color: var(--fg-2); line-height: 1.4; }
.row__eng { text-align: right; font-size: 15px; }
.row__price { display: grid; justify-items: end; text-align: right; gap: 1px; }
.price { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.price__unit { font-weight: 400; color: var(--fg-3); font-size: 0.875em; }
.price__plan { font-size: 13px; color: var(--fg-3); line-height: 1.35; }
.price--state { font-weight: 400; font-size: 14px; color: var(--fg-2); white-space: normal; letter-spacing: 0; }
.badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 18px; letter-spacing: 0; color: var(--fg-2); white-space: nowrap; }
.np { color: var(--fg-3); }

/* ---------- Blocks (home and lists) ---------- */
.block { margin-top: 80px; }
.block--first { margin-top: 0; }
.block--year { margin-top: 56px; }
.head + .block--year { margin-top: 0; }
.block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.block__head h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; }
.block__count { font-size: 14px; color: var(--fg-3); }
.block__intro { margin: -6px 0 20px; color: var(--fg-2); font-size: 15px; max-width: 64ch; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--fg-2); text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--fg); }
.more .icon { transition: transform 0.2s var(--ease); }
.more:hover .icon { transform: translateX(2px); }

/* ---------- Home ---------- */
.hero { max-width: 780px; padding: 32px 0 8px; }
.hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -0.038em; font-weight: 600; }
.hero .lead { margin-top: 20px; font-size: 19px; }
.hero__search { display: flex; gap: 8px; margin-top: 36px; max-width: 600px; }
.search--lg .input { height: 48px; padding-left: 42px; font-size: 16px; }
.search--lg > .icon { left: 15px; }
.hero__quick { margin-top: 16px; font-size: 14px; color: var(--fg-3); }
.hero__quick a { color: var(--fg-2); }
/* Category list: name and description, a few logos, the count. Used on home and /categories/. */
.catlist { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.catlist li { border-bottom: 1px solid var(--line); }
.catrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; align-items: center; gap: 24px; padding: 18px 12px; text-decoration: none; transition: background-color 0.12s; }
.catrow:hover { background: var(--bg-2); }
.catrow:hover .catrow__name { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.catrow__main { display: grid; gap: 3px; min-width: 0; }
.catrow__name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.catrow__desc { font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.catrow__n { text-align: right; font-size: 14px; color: var(--fg-3); white-space: nowrap; }
.logo-stack { display: inline-flex; align-items: center; }
.logo-stack .logo + .logo { margin-left: -6px; box-shadow: 0 0 0 1px var(--line), 0 0 0 2px var(--bg); }
.cat-intro { max-width: 720px; margin: -12px 0 48px; color: var(--fg-2); font-size: 16px; line-height: 1.65; }
.chips-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--fg-2); text-decoration: none; transition: color 0.15s, border-color 0.15s; }
.chips-list a:hover { color: var(--fg); border-color: var(--fg-3); }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; border-top: 1px solid var(--line); padding-top: 24px; }
.principles dt { font-weight: 600; }
.principles dd { margin-top: 4px; color: var(--fg-2); font-size: 15px; max-width: 46ch; }

/* ---------- Changes ---------- */
.changes { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.change { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.change__when { display: grid; gap: 2px; align-content: start; padding-top: 2px; font-size: 14px; color: var(--fg-3); }
.change__type { font-size: 13px; }
.change__title { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; margin-top: 2px; }
.change__sum { margin-top: 4px; font-size: 15px; color: var(--fg-2); max-width: 70ch; }
.change__meta { margin-top: 8px; font-size: 13px; color: var(--fg-3); }
.change__meta a { color: var(--fg-2); }
.changes--compact { border-top: 0; }
.changes--compact .change { grid-template-columns: 1fr; gap: 2px; padding: 0 0 16px; margin-bottom: 16px; }
.changes--compact .change:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.changes--compact .change__when { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 0; }
.changes--compact .change__type::before { content: "·"; margin-right: 8px; }

/* ---------- Profile ---------- */
.phead { max-width: 780px; margin-bottom: 32px; }
/* With a screenshot: text on the left, the landing page in a plain browser frame on the right. */
.phead--shot { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; margin-bottom: 40px; }
.phead__text { min-width: 0; }
.shot { margin: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.shot__bar { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.shot__dots { display: flex; gap: 6px; flex: none; }
.shot__dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.shot__url { flex: 1; margin-right: 38px; text-align: center; font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #fff; }
.prose-body { display: grid; gap: 14px; font-size: 17px; line-height: 1.65; }
.prose-body p { max-width: 62ch; }
/* Pros and cons: two short lists side by side, neutral ink, plus and minus marks. */
.pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pc__head { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--fg); }
.pc__list { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; }
.pc__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.pc__list .icon { margin-top: 4px; }
.pc__list--pro .icon { color: var(--fg); }
.pc__list--con .icon { color: var(--fg-3); }
.pc--compact { gap: 20px; margin-top: 16px; }
.pc--compact .pc__list { font-size: 14px; gap: 6px; }
.fact__text { display: block; font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.price__from { font-weight: 400; font-size: 0.875em; color: var(--fg-3); letter-spacing: 0; }
.pair-intros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: -8px 0 32px; }
.pair-intros__name { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.pair-intros p { font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.phead__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.phead .lead { margin-top: 10px; }
.meta { margin-top: 10px; font-size: 14px; color: var(--fg-3); }
.phead .actions { margin-top: 24px; }
.callout { margin-top: 16px; padding: 12px 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); font-size: 15px; color: var(--fg-2); }
.callout strong { color: var(--fg); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 18px 20px 18px 0; min-width: 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact dt { font-size: 13px; color: var(--fg-3); }
.fact dd { margin-top: 4px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.fact dd small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--fg-3); }
.fact__unit { font-size: 15px; font-weight: 400; color: var(--fg-3); letter-spacing: 0; }
.fact__state { font-size: 16px; font-weight: 500; letter-spacing: -0.005em; }
.fact .np { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.checked { margin-top: 12px; font-size: 14px; color: var(--fg-3); }
.checked a { color: var(--fg-2); }
.secs { margin-top: 48px; }
.sec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.secs > .sec:last-child { border-bottom: 1px solid var(--line); }
.sec__label { font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--fg); }
.sec__n { color: var(--fg-3); font-weight: 400; margin-left: 4px; }
.sec__body { display: grid; gap: 14px; align-content: start; max-width: var(--w-text); min-width: 0; font-size: 16px; }
.sec__body > .table-wrap { max-width: none; }
.note { font-size: 14px; line-height: 1.55; color: var(--fg-3); }
.note a { color: var(--fg-2); }
.note--below { margin-top: 12px; }
.note-list { padding-left: 1.1em; display: grid; gap: 5px; font-size: 14px; line-height: 1.55; color: var(--fg-3); }
.note-list li::marker { color: var(--line-2); }
.plan-notes { display: grid; gap: 8px; font-size: 14px; line-height: 1.55; }
.plan-notes > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.plan-notes dt { color: var(--fg-2); font-weight: 500; }
.plan-notes dd { color: var(--fg-3); }
.table--plans td:nth-child(3) { color: var(--fg-2); }
.nowrap { white-space: nowrap; }
.note--end { margin-top: 40px; }
.ref { margin-left: 4px; font-size: 11px; font-weight: 500; vertical-align: super; line-height: 0; color: var(--fg-3); text-decoration: none; }
.ref:hover { color: var(--fg); }
.kv { display: grid; }
.kv__row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv__row:first-child { padding-top: 0; }
.kv__row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--fg-3); }
.kv dd { min-width: 0; overflow-wrap: break-word; }
.cols { list-style: none; padding: 0; columns: 2; column-gap: 32px; font-size: 15px; }
.cols li { break-inside: avoid; padding: 3px 0; }
.bullets { padding-left: 1.15em; display: grid; gap: 8px; }
.bullets li::marker { color: var(--fg-3); }
.table-notes { display: grid; gap: 8px; margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--fg-3); max-width: 76ch; }
.footnotes { padding-left: 1.4em; display: grid; gap: 4px; }
.footnotes li { padding-left: 2px; scroll-margin-top: 24px; }
.footnotes li::marker { font-size: 12px; font-variant-numeric: tabular-nums; }
.footnotes li:target { color: var(--fg); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table thead th { padding-top: 0; padding-bottom: 10px; font-size: 13px; font-weight: 400; color: var(--fg-3); white-space: nowrap; }
.table tbody th { font-weight: 500; }
.table tbody th a { text-decoration-color: var(--line-2); }
.table .r { text-align: right; }
.cell-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--fg-3); }
.table--prices tbody td:nth-child(2) { color: var(--fg-2); max-width: 520px; }
.table--prices .price { font-size: 16px; }
.table--matrix { font-size: 14px; }
.table--matrix td, .table--matrix th { white-space: nowrap; }
.cmp { table-layout: fixed; min-width: 640px; }
.cmp thead th { font-size: 16px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; white-space: normal; }
.cmp__tool { display: grid; justify-items: start; gap: 10px; text-decoration: none; }
.cmp__tool:hover span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cmp thead td { border-bottom: 1px solid var(--line); width: 180px; }
.cmp tbody th { width: 180px; font-weight: 400; color: var(--fg-3); font-size: 14px; }
.cmp .price__plan { display: block; }

/* ---------- Compare picker ---------- */
.picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.summary { list-style: none; padding: 0; display: grid; gap: 6px; margin: -16px 0 32px; color: var(--fg-2); max-width: 70ch; }
.summary strong { color: var(--fg); font-weight: 500; }
.links { list-style: none; padding: 0; display: grid; gap: 8px; }

/* ---------- Pricing calculator ---------- */
.calc { margin-bottom: 32px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc__sentence { font-size: 26px; line-height: 1.6; font-weight: 500; letter-spacing: -0.02em; }
.calc__sentence input, .select--inline select {
  font: inherit; letter-spacing: inherit; color: var(--fg); background: none; border: 0; border-bottom: 2px solid var(--line-2);
  border-radius: 0; padding: 0 2px; height: auto; transition: border-color 0.15s;
}
.calc__sentence input { width: 3.4ch; text-align: center; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.calc__sentence input::-webkit-outer-spin-button, .calc__sentence input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__sentence input:hover, .select--inline select:hover { border-color: var(--fg-3); }
.calc__sentence input:focus, .select--inline select:focus { outline: none; box-shadow: none; border-color: var(--accent); }
.select--inline { display: inline-block; }
.select--inline select { padding-right: 22px; }
.select--inline > .icon { right: 2px; color: var(--fg-3); }
.calc__out { display: block; margin-top: 6px; font-size: 15px; color: var(--fg-3); }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--fg-3); }
.ftr__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.ftr__about { display: grid; gap: 4px; max-width: 52ch; }
.ftr__name { font-weight: 600; color: var(--fg); }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.ftr__nav a { color: var(--fg-2); text-decoration: none; }
.ftr__nav a:hover { color: var(--fg); }

/* ---------- Motion ---------- */
.flip-enter { animation: flip-in 0.35s var(--ease) both; }
@keyframes flip-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .list, .list--nocat { --cols: minmax(0, 1fr) 72px 128px; }
  .list .col-cat { display: none; }
  .phead--shot { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .main { padding: 32px 0 80px; }
  .hdr__in { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 12px; }
  /* All six links visible: they wrap to a second line instead of scrolling out of sight. */
  .nav { order: 3; flex: 0 0 calc(100% + 10px); flex-wrap: wrap; margin: 6px 0 0 -10px; padding-bottom: 8px; }
  .head h1, .phead h1 { font-size: 30px; letter-spacing: -0.028em; }
  .lead { font-size: 17px; }
  .hero { padding-top: 8px; }
  .hero h1 { font-size: 38px; letter-spacing: -0.034em; }
  .hero .lead { font-size: 17px; }
  .hero__search { flex-direction: column; }
  .hero__search .search { flex: none; }
  .filters__row .field { flex: 1 1 calc(50% - 4px); }
  .filters__row .search { flex-basis: 100%; }
  .search__key { display: none; }
  .count { margin-left: 0; width: 100%; }
  .list, .list--nocat { --cols: minmax(0, 1fr) auto; }
  .row__price { max-width: 42vw; }
  .price__plan { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .list .col-eng { display: none; }
  .list__head { padding-inline: 0; }
  .row { padding: 14px 0; column-gap: 16px; }
  .row:hover { background: none; }
  .block { margin-top: 56px; }
  .catrow { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px 0; }
  .catrow:hover { background: none; }
  .catrow .logo-stack { grid-column: 1; grid-row: 2; }
  .catrow__n { grid-column: 2; grid-row: 1; align-self: start; }
  .pair-intros { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .prose-body { font-size: 16px; }
  .cat-intro { margin-top: -16px; font-size: 15px; }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .change { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .change__when { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 0; }
  .change__type::before { content: "·"; margin-right: 8px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact, .fact + .fact { padding: 14px 12px 14px 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .fact:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .fact dd { font-size: 19px; }
  .secs { margin-top: 32px; }
  .sec { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .kv__row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; }
  .cols { columns: 1; }
  .plan-notes > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .calc__sentence { font-size: 21px; }
  .picker { grid-template-columns: minmax(0, 1fr); }
  .table th, .table td { padding-right: 12px; }
  /* Price table becomes a two-line list: tool and price, plan underneath. */
  .table--prices thead { display: none; }
  .table--prices, .table--prices tbody { display: block; }
  .table--prices tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table--prices th, .table--prices td { padding: 0; border: 0; }
  .table--prices td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 14px; }
  .table--prices td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
}
