/* Intact CSV Editor — site styles.
   Swiss grid, Helvetica Neue (the face the app sets its PDFs in), the MarketVision blues.
   No web fonts are loaded: every Mac already has these faces, and nothing is fetched
   from a third party. */

@font-face {
  font-family: "Intact Display";
  src: local("HelveticaNeue-CondensedBlack"), local("Helvetica Neue Condensed Black");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Intact Display";
  src: local("HelveticaNeue-CondensedBold"), local("Helvetica Neue Condensed Bold");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f6f8fb;
  --paper-2: #edf1f7;
  --surface: #ffffff;
  --ink: #0e1726;
  --ink-2: #33415a;
  --muted: #5d6b82;
  --rule: #d9e1ec;
  --rule-2: #e7ecf4;
  --blue: #1f69c1;
  --blue-2: #2275d7;
  --blue-3: #4a90e2;
  --blue-ink: #0f4a92;
  --wash: #e6effb;
  --wash-2: #f1f6fd;
  --ok: #12775a;
  --ok-wash: #e0f3ea;
  --bad: #b3322a;
  --bad-wash: #fbe7e4;
  --warn: #8f5d00;
  --warn-wash: #fbefd8;
  --btn-ink: #ffffff;
  --code-bg: #0f1a2b;
  --code-ink: #dbe6f5;
  --shadow-1: 0 1px 2px rgba(14, 23, 38, .06), 0 2px 8px -2px rgba(14, 23, 38, .08);
  --shadow-window: 0 0 0 .5px rgba(14, 23, 38, .18), 0 2px 4px rgba(14, 23, 38, .06),
    0 18px 36px -12px rgba(14, 23, 38, .22), 0 48px 96px -32px rgba(14, 23, 38, .32);

  /* The app window, drawn in the Mac's own light appearance. */
  --win-bg: #ffffff;
  --win-chrome: #f6f6f7;
  --win-chrome-2: #ececee;
  --win-line: #dcdcdf;
  --win-grid: #e9e9ec;
  --win-ink: #1d1d1f;
  --win-ink-2: #6e6e73;
  --win-margin: #f7f7f8;
  --win-select: rgba(10, 100, 214, .14);
  --win-focus: #0a64d6;
  --win-accent: #0a64d6;
  --win-field: #ffffff;

  --font-display: "Intact Display", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 10px;
  --header-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a111e;
    --paper-2: #0e1829;
    --surface: #101b2d;
    --ink: #edf2fa;
    --ink-2: #c3cee0;
    --muted: #8d9bb2;
    --rule: #223250;
    --rule-2: #182640;
    --blue: #2a74d0;
    --blue-2: #3b86e0;
    --blue-3: #7db4f7;
    --blue-ink: #a8ccf8;
    --wash: #12264a;
    --wash-2: #0f1f3a;
    --ok: #4cc38a;
    --ok-wash: #0f2d23;
    --bad: #ff8577;
    --bad-wash: #3a1714;
    --warn: #f2b554;
    --warn-wash: #33260d;
    --code-bg: #070d18;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px -2px rgba(0, 0, 0, .5);
    --shadow-window: 0 0 0 .5px rgba(255, 255, 255, .12), 0 2px 4px rgba(0, 0, 0, .3),
      0 18px 36px -12px rgba(0, 0, 0, .55), 0 48px 96px -32px rgba(0, 0, 0, .7);

    --win-bg: #1e1e20;
    --win-chrome: #2a2a2d;
    --win-chrome-2: #323236;
    --win-line: #3d3d42;
    --win-grid: #2f2f33;
    --win-ink: #ececef;
    --win-ink-2: #9c9ca3;
    --win-margin: #252528;
    --win-select: rgba(64, 145, 255, .22);
    --win-focus: #3d8ef5;
    --win-accent: #3d8ef5;
    --win-field: #1b1b1d;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--wash); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-size: 21px; line-height: 1.25; }
h4 { font-size: 17px; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: 1em; }
code, kbd, samp { font-family: var(--font-mono); font-size: .88em; }
code { background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: 5px; padding: .08em .35em; }
kbd {
  display: inline-block; min-width: 1.6em; padding: .05em .4em; text-align: center;
  border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px;
  background: var(--surface); color: var(--ink-2); font-size: .82em;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px;
  background: var(--ink); color: var(--paper); border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.wrap-mid { max-width: 980px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 11px; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin: 3px 2px -5px; background: var(--blue-2); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  font: 600 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted);
  text-decoration: none; padding: 7px 8px; border: 1px solid var(--rule); border-radius: 7px;
}
.lang:hover { color: var(--ink); border-color: var(--muted); }
.menu-toggle {
  display: none; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  border-radius: 8px; width: 40px; height: 40px; padding: 0; cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; display: block; margin: auto; }

/* ---------- Buttons ---------- */

.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font: 600 16px/1 var(--font-sans); letter-spacing: -.005em;
  padding: 14px 20px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--b); color: var(--btn-ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px color-mix(in srgb, var(--blue) 70%, transparent); }
.btn-primary:hover { background: var(--blue-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary:hover { background: var(--blue-2); } }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { border-color: var(--muted); color: var(--ink); }
.btn-small { font-size: 14px; padding: 9px 13px; border-radius: 8px; }
.btn-ghost { color: var(--blue); padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { color: var(--blue-ink); }
.btn-ghost .arrow { transition: transform .15s; }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .09em;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow .ref {
  font-weight: 600; color: var(--muted); border: 1px solid var(--rule); border-radius: 4px;
  padding: 3px 5px; letter-spacing: .04em; background: var(--surface);
}
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.tiny { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); font-weight: 900; letter-spacing: -.01em; line-height: .92; }

/* ---------- Sections ---------- */

.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-tight { padding: clamp(44px, 6vw, 72px) 0; }
.section + .section { border-top: 1px solid var(--rule-2); }
.section-alt { background: var(--surface); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 780px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head.wide { max-width: 1040px; }
.section-head p { color: var(--ink-2); font-size: 19px; line-height: 1.55; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 0 0 clamp(56px, 7vw, 96px); }
.hero-sheet {
  /* The page's own grid, labelled the way a spreadsheet labels its columns. */
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-sheet .cols {
  position: absolute; inset: 0 0 0 0; margin: 0 auto; max-width: var(--maxw); padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr);
}
.hero-sheet .cols span {
  border-left: 1px solid var(--rule-2); position: relative;
  font: 600 10.5px/1 var(--font-mono); color: color-mix(in srgb, var(--muted) 70%, transparent);
  letter-spacing: .08em;
}
.hero-sheet .cols span:last-child { border-right: 1px solid var(--rule-2); }
.hero-sheet .cols span::before { content: attr(data-col); position: absolute; top: 12px; left: 8px; }
.hero-sheet::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34px;
  border-bottom: 1px solid var(--rule-2);
  background: color-mix(in srgb, var(--paper-2) 60%, transparent);
}
.hero-sheet .fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 55%, var(--paper) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 0;
  padding-top: clamp(80px, 9vw, 116px);
}
.hero-copy { grid-column: 1 / span 5; padding-right: clamp(12px, 2.4vw, 36px); align-self: center; }
.hero-copy h1 { font-size: clamp(38px, 4.9vw, 62px); }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 em { font-style: normal; color: var(--blue); }
.hero-copy .lede { margin-bottom: 30px; }
.hero-demo { grid-column: 6 / span 7; align-self: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.assurances {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none;
  font-size: 14.5px; color: var(--muted);
}
.assurances li { display: inline-flex; align-items: center; gap: 7px; }
.assurances svg { width: 15px; height: 15px; color: var(--ok); flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 8px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--rule);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 22px;
}
.pill img { width: 18px; height: 18px; }

/* ---------- The round-trip instrument ---------- */

.demo {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: var(--shadow-window); overflow: hidden; position: relative;
}
.demo-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--rule-2); background: var(--wash-2);
}
.demo-file { display: flex; align-items: center; gap: 9px; min-width: 0; font: 500 13px/1.2 var(--font-mono); color: var(--ink-2); }
.demo-file img { width: 20px; height: 20px; flex: none; }
.demo-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--paper-2);
  border: 1px solid var(--rule-2);
}
.seg button {
  font: 600 12.5px/1 var(--font-sans); color: var(--muted); background: transparent; border: 0;
  padding: 7px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg button:hover { color: var(--ink); }
.demo-body { position: relative; min-height: 236px; }
.demo-stat { margin: 10px 2px 0; font: 12px/1.5 var(--font-mono); color: var(--muted); }
.demo-stat b { color: var(--ink-2); font-weight: 600; }
.demo-panel { padding: 14px; }
.demo-panel[hidden] { display: none; }
.demo-caption { font-size: 13px; color: var(--muted); margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; }
.demo-caption b { color: var(--ink-2); font-weight: 600; }
.bytes {
  margin: 0; font: 12.5px/1.75 var(--font-mono); color: var(--ink-2); white-space: pre; overflow-x: auto;
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: 8px; padding: 10px 12px;
}
.bytes .sep { color: var(--blue); font-weight: 700; }
.bytes .eol { color: var(--muted); font-size: 10px; letter-spacing: .02em; }
.bytes .u8 { background: var(--wash); border-radius: 3px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue-3) 30%, transparent); }
.bytes .q { color: var(--warn); }
.mini-grid { width: 100%; border-collapse: separate; border-spacing: 0; font: 12.5px/1.2 var(--font-ui); color: var(--ink); }
.mini-grid-wrap { overflow-x: auto; border: 1px solid var(--rule-2); border-radius: 8px; }
.mini-grid th, .mini-grid td {
  padding: 7px 9px; border-bottom: 1px solid var(--rule-2); border-right: 1px solid var(--rule-2);
  white-space: nowrap; text-align: left;
}
.mini-grid tr > *:last-child { border-right: 0; }
.mini-grid tbody tr:last-child > * { border-bottom: 0; }
.mini-grid th { font-weight: 600; color: var(--ink-2); background: var(--paper); font-size: 11.5px; }
.mini-grid .rn { color: var(--muted); background: var(--paper); text-align: right; width: 1%; font-size: 11px; }
.mini-grid td.changed { background: var(--bad-wash); color: var(--bad); font-weight: 600; position: relative; }
.mini-grid td.kept { background: color-mix(in srgb, var(--ok-wash) 55%, transparent); color: var(--ink); }
.mini-grid td.changed del { display: block; font-size: 10px; font-weight: 400; color: color-mix(in srgb, var(--bad) 70%, var(--muted)); text-decoration-thickness: 1px; margin-bottom: 2px; }
.mini-grid td .num { font-variant-numeric: tabular-nums; }
.demo-foot {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px 14px; align-items: center;
  padding: 11px 14px; border-top: 1px solid var(--rule-2); background: var(--wash-2);
  font: 12px/1.3 var(--font-mono); color: var(--muted);
}
.demo-foot .hash { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.verdict {
  font: 700 11.5px/1 var(--font-sans); letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; white-space: nowrap;
}
.verdict.same { color: var(--ok); background: var(--ok-wash); }
.verdict.diff { color: var(--bad); background: var(--bad-wash); }
.demo-note { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }

/* ---------- Proof strip ---------- */

.proof-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof > div { padding: 28px 24px 26px; border-right: 1px solid var(--rule-2); }
.proof > div:first-child { padding-left: 0; }
.proof > div:last-child { border-right: 0; }
.proof .figure { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 5vw, 64px); line-height: .9; letter-spacing: -.01em; color: var(--ink); display: block; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.proof .figure small { font-size: .45em; font-weight: 700; margin-left: 3px; color: var(--blue); letter-spacing: 0; }
.proof p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); max-width: 22em; }

/* ---------- The diff table (what intact means) ---------- */

.diff-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1); }
.diff-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.diff-table th, .diff-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.diff-table thead th {
  font: 600 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.diff-table tbody tr:last-child > * { border-bottom: 0; }
.diff-table td:first-child { color: var(--ink); font-weight: 600; width: 26%; }
.diff-table td:first-child span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 3px; }
.diff-table .val { font: 500 15px/1.3 var(--font-mono); padding: 3px 8px; border-radius: 6px; display: inline-block; }
.diff-table .val.orig { background: var(--paper-2); color: var(--ink); }
.diff-table .val.bad { background: var(--bad-wash); color: var(--bad); }
.diff-table .val.good { background: var(--ok-wash); color: var(--ok); }
.diff-table td small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ---------- App window mockup ---------- */

.window {
  border-radius: 12px; overflow: hidden; background: var(--win-bg); color: var(--win-ink);
  box-shadow: var(--shadow-window); font: 13px/1.25 var(--font-ui); text-align: left;
  -webkit-font-smoothing: antialiased;
}
.win-titlebar {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px;
  height: 52px; padding: 0 14px; background: var(--win-chrome); border-bottom: 1px solid var(--win-line);
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win-title { display: grid; line-height: 1.15; min-width: 0; }
.win-title b { font-size: 13px; font-weight: 700; white-space: nowrap; }
.win-title span { font-size: 11px; color: var(--win-ink-2); white-space: nowrap; }
.win-tools { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.tb {
  display: inline-grid; place-items: center; width: 30px; height: 26px; border-radius: 6px; color: var(--win-ink-2);
}
.tb svg { width: 16px; height: 16px; }
.tb.on { background: var(--win-chrome-2); color: var(--win-ink); }
.win-search {
  display: flex; align-items: center; gap: 6px; height: 28px; width: 190px; padding: 0 9px;
  border-radius: 7px; background: var(--win-field); border: 1px solid var(--win-line); color: var(--win-ink-2); font-size: 12.5px;
}
.win-search svg { width: 13px; height: 13px; flex: none; }
.win-search b { color: var(--win-ink); font-weight: 500; }
.win-tabs { display: flex; height: 30px; background: var(--win-chrome-2); border-bottom: 1px solid var(--win-line); }
.win-tabs span {
  flex: 1; display: grid; place-items: center; font-size: 12px; color: var(--win-ink-2);
  border-right: 1px solid var(--win-line); white-space: nowrap; overflow: hidden;
}
.win-tabs span.on { background: var(--win-chrome); color: var(--win-ink); font-weight: 500; }
.win-tabs span:last-child { border-right: 0; }
.win-main { display: grid; grid-template-columns: 1fr 250px; min-height: 0; }
.win-grid-area { overflow: hidden; border-right: 1px solid var(--win-line); position: relative; }
.win-grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12.5px; }
.win-grid th, .win-grid td {
  height: 24px; padding: 0 7px; border-right: 1px solid var(--win-grid); border-bottom: 1px solid var(--win-grid);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left;
}
.win-grid thead th {
  height: 27px; background: var(--win-chrome); font-weight: 600; font-size: 11.5px; color: var(--win-ink);
  border-bottom: 1px solid var(--win-line); position: relative;
}
.win-grid thead th .h { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.win-grid thead th .h svg { width: 9px; height: 9px; color: var(--win-ink-2); flex: none; }
.win-grid thead th.sorted .h svg { color: var(--win-accent); }
.win-grid thead th.filtered .h svg { color: var(--win-accent); }
.win-grid .rn {
  width: 38px; text-align: right; color: var(--win-ink-2); background: var(--win-margin); font-size: 11px;
  font-variant-numeric: tabular-nums; border-right: 1px solid var(--win-line);
}
.win-grid thead .rn { background: var(--win-chrome); }
.win-grid td.r { text-align: right; font-variant-numeric: tabular-nums; }
.win-grid td.sel { background: var(--win-select); }
.win-grid td.focus { box-shadow: inset 0 0 0 2px var(--win-focus); background: var(--win-select); }
.win-grid tr.flag .rn { position: relative; }
.win-grid tr.flag .rn::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #ff9f0a; }
.win-grid td.ghost, .win-grid th.ghost { color: color-mix(in srgb, var(--win-ink-2) 55%, transparent); }
.win-grid td.link { color: var(--win-accent); }
.win-inspector { background: var(--win-chrome); padding: 12px 12px 14px; font-size: 12px; display: grid; align-content: start; gap: 10px; }
.win-seg { display: grid; grid-template-columns: repeat(4, 1fr); padding: 2px; border-radius: 7px; background: var(--win-chrome-2); gap: 2px; }
.win-seg span { text-align: center; font-size: 11px; padding: 4px 0; border-radius: 5px; color: var(--win-ink-2); }
.win-seg span.on { background: var(--win-bg); color: var(--win-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 500; }
.win-preset { background: var(--win-bg); border: 1px solid var(--win-line); border-radius: 8px; padding: 9px 10px; display: grid; gap: 3px; }
.win-preset b { font-size: 12px; }
.win-preset span { color: var(--win-ink-2); font-size: 11px; line-height: 1.35; }
.win-form { display: grid; grid-template-columns: auto 1fr; gap: 7px 10px; align-items: center; }
.win-form label { color: var(--win-ink-2); font-size: 11.5px; text-align: right; white-space: nowrap; }
.win-form .popup {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 7px; font-size: 11.5px;
  background: var(--win-bg); border: 1px solid var(--win-line); border-radius: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.04);
  white-space: nowrap; overflow: hidden;
}
.win-form .popup svg { width: 8px; height: 8px; color: var(--win-ink-2); flex: none; }
.win-check { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.win-check i { width: 13px; height: 13px; border-radius: 4px; background: var(--win-accent); display: grid; place-items: center; }
.win-check i::after { content: ""; width: 6px; height: 3px; border: 1.6px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.win-divider { height: 1px; background: var(--win-line); margin: 2px 0; }
.win-meter { display: grid; gap: 4px; }
.win-meter span { font-size: 11px; color: var(--win-ink-2); display: flex; justify-content: space-between; }
.win-meter i { display: block; height: 5px; border-radius: 3px; background: var(--win-chrome-2); overflow: hidden; }
.win-meter i b { display: block; height: 100%; background: var(--win-accent); border-radius: 3px; }
.win-status {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; height: 27px; padding: 0 12px;
  background: var(--win-chrome); border-top: 1px solid var(--win-line); font-size: 11.5px; color: var(--win-ink-2);
  white-space: nowrap; overflow: hidden;
}
.win-status b { color: var(--win-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.win-status .dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 7px 2px; vertical-align: middle; opacity: .6; }

.tour { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.tour-callouts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.tour-callouts li { list-style: none; padding: 18px 18px 0 0; }
.tour-callouts ol { margin: 0; padding: 0; }
.tour-callouts .n {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff; font: 700 12px/1 var(--font-sans); margin-bottom: 10px;
}
.tour-callouts h3 { font-size: 16.5px; margin-bottom: 6px; }
.tour-callouts p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.marker {
  position: absolute; z-index: 3; width: 22px; height: 22px; border-radius: 50%; background: var(--blue);
  color: #fff; font: 700 12px/22px var(--font-sans); text-align: center;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent);
}
/* Pointing at a description below the window marks its number on the window: the number
   grows a little and sends out a ring, again and again, until the pointer moves on. */
.marker::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue);
  opacity: 0; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .marker { transition: transform .2s var(--ease-out); }
  .marker.pulse { transform: scale(1.15); }
  .marker.pulse::after { animation: marker-ring 1.4s var(--ease-out) infinite; }
}
@keyframes marker-ring {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}
.window-stage { position: relative; max-width: 100%; }
.window { max-width: 100%; }

/* ---------- Feature lists ---------- */

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; }
.group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.group h3 svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px;
  border-left: 2px solid var(--blue-2); border-bottom: 2px solid var(--blue-2); transform: rotate(-45deg);
}
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks code { white-space: nowrap; }
.group .more { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---------- Split blocks with code ---------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > :first-child { order: 2; }
.split h2 { margin-bottom: 18px; }
.split .lede { margin-bottom: 22px; }
.code-window { background: var(--code-bg); border-radius: 12px; box-shadow: var(--shadow-window); overflow: hidden; color: var(--code-ink); }
.code-window .bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: color-mix(in srgb, var(--code-bg) 80%, #fff 6%); border-bottom: 1px solid rgba(255,255,255,.06); font: 12px/1 var(--font-ui); color: #8ea3c0; }
.code-window pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.7 var(--font-mono); }
.code-window .kw { color: #7fb4ff; }
.code-window .fn { color: #9ee2c4; }
.code-window .str { color: #f5c787; }
.code-window .com { color: #6f819b; }
.code-window .num { color: #f29fb0; }
.code-window table { width: 100%; border-collapse: collapse; font: 12.5px/1.2 var(--font-ui); }
.code-window th, .code-window td { padding: 7px 14px; text-align: left; border-top: 1px solid rgba(255,255,255,.07); white-space: nowrap; }
.code-window th { color: #8ea3c0; font-weight: 600; font-size: 11.5px; background: rgba(255,255,255,.03); }
.code-window td.r { text-align: right; font-variant-numeric: tabular-nums; }
.code-window .result-head { display: flex; justify-content: space-between; padding: 9px 14px; font: 11.5px/1 var(--font-ui); color: #8ea3c0; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Format chips ---------- */

.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.format-group { margin-bottom: 22px; }
.format-group h4 { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--rule); font-size: 14.5px; color: var(--ink); text-decoration: none;
  line-height: 1.1;
}
a.chip:hover { border-color: var(--blue-3); color: var(--blue); }
.chip .ext { font: 600 11px/1 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.formats-total { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.formats-total .display { font-size: 64px; color: var(--blue); }
.formats-total h3 { font-size: 22px; }

/* ---------- Benchmarks ---------- */

.bench { display: grid; gap: 12px; }
.bench-row { display: grid; grid-template-columns: 200px 1fr 70px; align-items: center; gap: 16px; font-size: 15px; }
.bench-row .label { color: var(--ink-2); }
.bench-row .bar { height: 12px; border-radius: 3px; background: var(--rule-2); position: relative; overflow: hidden; }
.bench-row .bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--blue-3), var(--blue)); border-radius: 3px; min-width: 3px; }
.bench-row .t { font: 600 14.5px/1 var(--font-mono); text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.bench-axis { display: grid; grid-template-columns: 200px 1fr 70px; gap: 16px; font: 11.5px/1 var(--font-mono); color: var(--muted); }
.bench-axis .ticks-x { display: flex; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 6px; }

/* ---------- Safety list ---------- */

.safety { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.safety > div { padding: 26px 24px 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); }
.safety svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 14px; }
.safety h3 { font-size: 18px; margin-bottom: 8px; }
.safety p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Coverage chart ---------- */

.coverage { display: grid; gap: 9px; }
.cov-row { display: grid; grid-template-columns: 170px 1fr 120px; align-items: center; gap: 14px; font-size: 14.5px; }
.cov-row a, .cov-row span.name { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-row a:hover { color: var(--blue); }
.cov-bar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--rule-2); }
.cov-bar i { display: block; height: 100%; }
.cov-bar .d { background: var(--blue); }
.cov-bar .p { background: var(--blue-3); opacity: .55; }
.cov-bar .t { background: var(--bad); opacity: .7; }
.cov-bar .n { background: var(--rule); }
.cov-row .cov-num { font: 500 13px/1.2 var(--font-mono); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.cov-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.cov-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cov-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- Comparison grid ---------- */

.fgrid-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.fgrid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.fgrid th, .fgrid td { padding: 10px 12px; border-bottom: 1px solid var(--rule-2); text-align: center; vertical-align: middle; }
.fgrid tbody tr:last-child > * { border-bottom: 0; }
.fgrid thead th {
  background: var(--paper); font: 600 13px/1.25 var(--font-sans); color: var(--ink-2); vertical-align: bottom;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.fgrid thead th a { color: var(--ink-2); text-decoration: none; }
.fgrid thead th a:hover { color: var(--blue); }
.fgrid thead th.us { color: var(--blue); }
.fgrid thead th.us img { display: block; margin: 0 auto 6px; }
.fgrid thead th.feat, .fgrid tbody th { text-align: left; }
.fgrid tbody th { font-weight: 500; color: var(--ink); min-width: 250px; }
.fgrid .us { background: color-mix(in srgb, var(--wash) 65%, transparent); }
.fgrid tr.grp th {
  background: var(--paper); font: 600 11.5px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); padding-top: 16px;
}
.fgrid tr[data-status="adv"] th[scope="row"] { font-weight: 600; }
.mk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 700; }
.mk svg { width: 14px; height: 14px; }
.mk-yes { color: var(--ink-2); background: var(--paper-2); }
.mk-yes.mk-us { color: #fff; background: var(--blue); }
.mk-part { color: var(--warn); }
.mk-part svg { width: 16px; height: 16px; }
.mk-no { color: color-mix(in srgb, var(--muted) 80%, transparent); font-weight: 400; }
.mk-skip { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.fgrid-hint { display: none; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.mk-legend span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Advantage bars ---------- */

.adv { display: grid; gap: 8px; }
.adv-head, .adv-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: center; gap: 12px; }
.adv-head { font: 600 11.5px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 4px; }
.adv-head span:first-child { text-align: right; color: var(--blue); }
.adv-l, .adv-r { display: flex; align-items: center; gap: 8px; height: 20px; }
.adv-l { justify-content: flex-end; }
.adv-l i, .adv-r i { display: block; height: 14px; border-radius: 3px; min-width: 2px; }
.adv-l i { background: linear-gradient(270deg, var(--blue-3), var(--blue)); }
.adv-r i { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.adv-l b, .adv-r b { font: 600 13.5px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); min-width: 22px; }
.adv-l b { text-align: right; color: var(--blue); }
.adv-name { text-align: center; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-name a { color: var(--ink); text-decoration: none; }
.adv-name a:hover { color: var(--blue); }

/* ---------- Only-in-Intact list ---------- */

/* Groups flow down three columns, so a long group does not leave holes beside it. */
.only-us { columns: 3 260px; column-gap: 40px; }
.only-us > div { break-inside: avoid; padding-bottom: 30px; }
.only-us h3 { font: 600 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 12px; }
.score { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); }
.page-head .score { margin-top: clamp(32px, 4vw, 48px); }
.score > div { padding: 22px 24px; border-right: 1px solid var(--rule-2); }
.score > div:last-child { border-right: 0; }
.score .display { font-size: 60px; display: block; margin-bottom: 8px; color: var(--ink); }
.score .display small { font-size: .5em; color: var(--muted); }
/* The brand blue of the download band, in both themes: white type needs a dark ground. */
.score > div:first-child { background: linear-gradient(135deg, #2275d7 0%, #1f69c1 45%, #0f4a92 100%); }
.score > div:first-child .display, .score > div:first-child p { color: #fff; }
.score p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.score .quiet .display { font-size: 44px; color: var(--muted); }

/* Where the other product is ahead. */
.ahead h2 { font-size: 30px; margin-bottom: 14px; }
.ahead h3 { font: 600 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 12px; }
.ahead > .ticks { margin-top: 20px; }
.ticks li.more { color: var(--muted); }
.ticks li.more::before { content: none; }
.nowrap { white-space: nowrap; }

/* ---------- Status pills ---------- */

.st { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--font-sans); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.done { color: var(--ok); background: var(--ok-wash); }
.st.partial { color: var(--warn); background: var(--warn-wash); }
.st.todo { color: var(--bad); background: var(--bad-wash); }
.st.na { color: var(--muted); background: var(--paper-2); }
.st.yes { color: var(--ok); background: var(--ok-wash); }
.st.no { color: var(--bad); background: var(--bad-wash); }

/* ---------- Tables (spec, comparison) ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.spec thead th { font: 600 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.spec.glance tbody th { width: 20%; }
.spec.glance td { width: 40%; }
.spec td { color: var(--ink-2); }
.spec .r { text-align: right; font-variant-numeric: tabular-nums; }
.spec tr.group-row th { background: var(--paper); font: 600 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--blue); padding-top: 18px; }
.spec .us { background: color-mix(in srgb, var(--wash) 55%, transparent); }
.spec thead th.us { color: var(--blue); }

.feature-table td:first-child { color: var(--ink); }
.feature-table td:last-child { width: 1%; }
details.more-rows { border-top: 1px solid var(--rule-2); }
details.more-rows > summary { cursor: pointer; padding: 13px 16px; font-weight: 600; color: var(--blue); list-style: none; }
details.more-rows > summary::-webkit-details-marker { display: none; }
details.more-rows > summary::after { content: " ↓"; }
details.more-rows[open] > summary::after { content: " ↑"; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; align-items: center; }
.filter-bar button {
  font: 600 13.5px/1 var(--font-sans); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.filter-bar button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Verdict / comparison summary ---------- */

.verdict-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--surface); }
.verdict-box > div { padding: 28px 28px 30px; }
.verdict-box > div + div { border-left: 1px solid var(--rule); }
.verdict-box h3 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.verdict-box h3 img { width: 26px; height: 26px; }
.verdict-box .them h3 .dot { width: 26px; height: 26px; border-radius: 7px; background: var(--paper-2); border: 1px solid var(--rule); display: inline-grid; place-items: center; font: 700 12px/1 var(--font-mono); color: var(--muted); }
.big-score { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 4px; }
.big-score .display { font-size: 72px; color: var(--ink); }
.big-score span { color: var(--muted); font-size: 15px; }

/* ---------- Article (guides) ---------- */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; margin-top: 2em; color: var(--ink); }
.prose h3 { font-size: 21px; margin-top: 1.7em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose table th, .prose table td { border-bottom: 1px solid var(--rule); padding: 10px 12px; text-align: left; }
.prose table th { font: 600 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prose .table-wrap { background: var(--surface); }
.prose pre { background: var(--code-bg); color: var(--code-ink); padding: 16px 18px; border-radius: 10px; overflow-x: auto; font: 14px/1.6 var(--font-mono); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue-3); color: var(--ink); font-size: 19px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 58px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; margin: 0 !important; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 14px/1 var(--font-sans);
}
.steps li b { color: var(--ink); }
.callout { border: 1px solid var(--rule); border-left: 4px solid var(--blue-2); background: var(--surface); border-radius: 10px; padding: 18px 20px; font-size: 16.5px; }
.callout.warn { border-left-color: var(--warn); }
.callout.good { border-left-color: var(--ok); }
.callout h4 { margin-bottom: 6px; }
.aside-stack { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.toc { border: 1px solid var(--rule); border-radius: 12px; padding: 18px; background: var(--surface); }
.toc h4 { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); }
.app-card { border-radius: 14px; padding: 20px; background: linear-gradient(160deg, var(--blue-2), var(--blue-ink)); color: #fff; box-shadow: var(--shadow-1); }
.app-card img { width: 44px; height: 44px; margin-bottom: 10px; }
.app-card h4 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.app-card p { font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.86); margin-bottom: 14px; }
.app-card .btn { background: #fff; color: var(--blue-ink); width: 100%; }
.app-card .btn:hover { background: #eaf2fd; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------- Page heads (inner pages) ---------- */

.page-head { padding: clamp(56px, 7vw, 92px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule-2); position: relative; overflow: hidden; }
.page-head .lede { margin-top: 18px; }
.page-head .cta-row { margin-top: 28px; }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--rule-2) 1px, transparent 1px), linear-gradient(90deg, var(--rule-2) 1px, transparent 1px);
  background-size: 100% 32px, 120px 100%;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
}
.page-head .wrap { position: relative; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; list-style: none; padding: 0; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.head-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }

/* ---------- Link cards (hubs) ---------- */

.link-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.link-list a {
  display: grid; gap: 8px; align-content: start; padding: 24px 24px 26px 0; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--rule); position: relative;
}
.link-list a:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--rule-2); }
.link-list a h3 { font-size: 19px; transition: color .15s; }
.link-list a p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.link-list a .tag { font: 600 11.5px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.link-list a:hover h3 { color: var(--blue); }
.link-list a .go { font-size: 14.5px; font-weight: 600; color: var(--blue); margin-top: 4px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 46em; font-size: 16.5px; line-height: 1.65; }
.faq .answer > * + * { margin-top: .8em; }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); padding: 28px; display: grid; gap: 16px; align-content: start; }
.plan.featured { border-color: var(--blue-2); box-shadow: 0 0 0 1px var(--blue-2), var(--shadow-1); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--blue); color: #fff; font: 700 11.5px/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .price { display: flex; align-items: baseline; gap: 8px; }
.plan .price .display { font-size: 56px; }
.plan .price span:not(.display) { color: var(--muted); font-size: 15px; }
.plan .price .display { color: var(--ink); }
.plan .btn { width: 100%; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; overflow: hidden; border-radius: 22px; padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(1200px 400px at 110% -40%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #2275d7 0%, #1f69c1 45%, #0f4a92 100%);
  color: #fff; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 100% 28px, 96px 100%;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-band > * { position: relative; }
.cta-band img { width: 88px; height: 88px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.25)); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.86); font-size: 18px; max-width: 34em; }
.cta-band .btn-primary { background: #fff; color: var(--blue-ink); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.cta-band .btn-primary:hover { background: #eef5fe; color: var(--blue-ink); }
.cta-band .sub { font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 10px; text-align: center; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); background: var(--surface); padding: 64px 0 36px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--blue); }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 24em; line-height: 1.55; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule-2); color: var(--muted); font-size: 13.5px; }
.footer-bottom a { color: var(--muted); }

/* ---------- Misc ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 44px; }
.mt-xl { margin-top: 72px; }
.stack-s > * + * { margin-top: 12px; }
.note { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.sources { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.sources a { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--surface); }
.kpis > div { padding: 20px 22px; border-right: 1px solid var(--rule-2); }
.kpis > div:last-child { border-right: 0; }
.kpis .display { font-size: 44px; display: block; margin-bottom: 6px; }
.kpis p { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.side-nav a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.side-nav a:hover { background: var(--paper-2); color: var(--ink); }
.features-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.feature-block { padding: 8px 0 56px; border-bottom: 1px solid var(--rule-2); margin-bottom: 48px; }
.feature-block:last-child { border-bottom: 0; }
.feature-block > h2 { font-size: 34px; margin-bottom: 12px; }
.feature-block > p.lede { margin-bottom: 26px; }
.feature-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; }
.feature-items > div h3 { font-size: 17px; margin-bottom: 6px; }
.feature-items > div p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.reveal.d1 { animation-delay: .06s; }
.reveal.d2 { animation-delay: .14s; }
.reveal.d3 { animation-delay: .22s; }
.reveal.d4 { animation-delay: .3s; }
@keyframes rise { from { transform: translateY(12px); } to { transform: none; } }
.flip-in { animation: flipin .35s ease both; }
@keyframes flipin { from { transform: translateY(3px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* The marked number still stands out, with a ring that stays still. */
  .marker.pulse::after { transform: scale(1.7); opacity: .45; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-copy { grid-column: 1 / -1; padding-right: 0; margin-bottom: 44px; }
  .hero-demo { grid-column: 1 / -1; }
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .tour-callouts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .aside-stack { position: static; }
  .features-layout { grid-template-columns: minmax(0, 1fr); }
  .side-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .side-nav a { border: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .head-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header-actions .lang { display: none; }
  .menu-toggle { display: grid; }
  .site-header.open .nav {
    display: grid; position: absolute; top: var(--header-h); left: 0; right: 0; gap: 2px;
    padding: 10px var(--gutter) 18px; background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px -16px rgba(14,23,38,.25);
  }
  .site-header.open .nav a { font-size: 17px; padding: 12px 10px; }
  .site-header.open .nav .lang-mobile { display: block; }
  .cols-3, .cols-2 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div:nth-child(odd) { padding-left: 0; }
  .proof > div:nth-child(even) { padding-left: 20px; padding-right: 0; }
  .marker { display: none; }
  .score { grid-template-columns: minmax(0, 1fr); }
  .score > div { border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .adv-head, .adv-row { grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); gap: 8px; }
  .adv-name { font-size: 13px; }
  .proof > div:nth-child(2) { border-right: 0; }
  .proof > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule-2); }
  .formats { grid-template-columns: minmax(0, 1fr); }
  .safety { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .win-main { grid-template-columns: 1fr; }
  .win-inspector { display: none; }
  .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-list a:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .link-list a:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--rule-2); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .verdict-box { grid-template-columns: minmax(0, 1fr); }
  .verdict-box > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .cta-band { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .cta-band img { width: 64px; height: 64px; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .kpis > div { border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .feature-items { grid-template-columns: minmax(0, 1fr); }
  .bench-row, .bench-axis { grid-template-columns: 130px 1fr 60px; }
  .cov-row { grid-template-columns: 120px 1fr 90px; }
}
.lang-mobile { display: none; }
@media (max-width: 900px) {
  /* On a phone the window keeps its columns and scrolls sideways, as the app would. */
  .win-grid-area { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .win-grid { min-width: 720px; }
  .win-tools .tb:not(:last-child) { display: none; }
}
@media (max-width: 720px) {
  /* The before-and-after table becomes one card per row. */
  .diff-table { min-width: 0; }
  .diff-table thead { display: none; }
  .diff-table, .diff-table tbody, .diff-table tr, .diff-table td { display: block; width: auto !important; }
  .diff-table tr { padding: 16px 18px; border-bottom: 1px solid var(--rule-2); }
  .diff-table tbody tr:last-child { border-bottom: 0; }
  .diff-table td { padding: 6px 0; border: 0; }
  .diff-table td:nth-child(2)::before, .diff-table td:nth-child(3)::before {
    display: block; font: 600 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted); margin: 8px 0 6px;
  }
  .diff-table td:nth-child(2)::before { content: "After a spreadsheet round trip"; }
  .diff-table td:nth-child(3)::before { content: "After Intact CSV Editor"; }
  html:lang(de-CH) .diff-table td:nth-child(2)::before { content: "Nach einer Tabellenkalkulation"; }
  html:lang(de-CH) .diff-table td:nth-child(3)::before { content: "Nach Intact CSV Editor"; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .brand span { font-size: 15px; }
  .tour-callouts { grid-template-columns: minmax(0, 1fr); }
  .safety { grid-template-columns: minmax(0, 1fr); }
  .link-list { grid-template-columns: minmax(0, 1fr); }
  .link-list a:nth-child(2n) { padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg button { padding: 7px 7px; font-size: 12px; }
  .demo-top { flex-direction: column; align-items: stretch; }
  .win-search { display: none; }
  .hero-sheet .cols span:nth-child(n+7) { display: none; }
  .hero-sheet .cols { grid-template-columns: repeat(6, 1fr); }
  .bench-row, .bench-axis { grid-template-columns: 100px 1fr 54px; gap: 10px; font-size: 14px; }
  .cov-row { grid-template-columns: 100px 1fr 76px; gap: 10px; }
  .demo-foot { grid-template-columns: 1fr auto; }
  .demo-foot .lbl { display: none; }
  /* The comparison grid on a phone: the feature stays put while the products scroll past. */
  .fgrid-hint { display: block; font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
  .fgrid th, .fgrid td { padding: 9px 8px; }
  .fgrid tbody th[scope="row"] { min-width: 150px; }
  .fgrid tbody th[scope="row"], .fgrid thead th.feat {
    position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: inset -1px 0 0 var(--rule-2);
  }
  .fgrid thead th.feat { background: var(--paper); }
  .fgrid thead th.us span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  /* With one product beside ours there is nothing to scroll: all three columns fit. */
  .fgrid.pair tbody th[scope="row"], .fgrid.pair thead th.feat { position: static; min-width: 0; box-shadow: none; }
  .fgrid.pair thead th:not(.feat) { white-space: normal; width: 84px; }
  .fgrid.pair thead th.us span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
}

@media print {
  .site-header, .site-footer, .cta-band, .menu-toggle { display: none !important; }
  body { background: #fff; }
}
