/* The home pages, / and /pl/: a centred hero, soft gradients, pill buttons and a lot of air.
   Loaded after /assets/site.css and only adds or overrides; every new colour is a token set for light, system dark and forced dark. */

:root {
  --a-glow-1: rgba(99, 102, 241, 0.26);
  --a-glow-2: rgba(168, 85, 247, 0.18);
  --a-glow-3: rgba(251, 146, 60, 0.16);
  --a-tint: #f4f2fb;
  --a-card: #ffffff;
  --a-grad-from: #3b3fd0;
  --a-grad-to: #8b3fd0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --a-glow-1: rgba(129, 140, 248, 0.26);
    --a-glow-2: rgba(192, 132, 252, 0.16);
    --a-glow-3: rgba(251, 146, 60, 0.08);
    --a-tint: #13141b;
    --a-card: #191b23;
    --a-grad-from: #aeb2ff;
    --a-grad-to: #dcb0ff;
  }
}
:root[data-theme="dark"] {
  --a-glow-1: rgba(129, 140, 248, 0.26);
  --a-glow-2: rgba(192, 132, 252, 0.16);
  --a-glow-3: rgba(251, 146, 60, 0.08);
  --a-tint: #13141b;
  --a-card: #191b23;
  --a-grad-from: #aeb2ff;
  --a-grad-to: #dcb0ff;
}

.home { --section: clamp(4.5rem, 3rem + 7vw, 9.5rem); --r-lg: 20px; --r-xl: 28px; }
.home .section + .section { border-top: 0; }
.home h2 { font-weight: 620; }

/* ---------- Shared pieces ---------- */

.a-head { max-width: 46rem; margin: 0 auto var(--s-8); text-align: center; }
.a-head h2, .home .split h2, .a-perf h2 { font-size: var(--text-2xl); letter-spacing: -0.035em; line-height: 1.08; }
.a-head .lede { margin-inline: auto; }
.a-kicker { margin-bottom: var(--s-4); font-size: var(--text-sm); font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }
.a-tint { background: var(--a-tint); }
.a-note { max-width: 44rem; margin: var(--s-7) auto 0; text-align: center; font-size: var(--text-sm); color: var(--ink-2); }
.a-center { justify-content: center; }

.a-frame {
  padding: clamp(0.3rem, 0.1rem + 0.6vw, 0.6rem); border: 1px solid var(--line); background: var(--surface-2);
  border-radius: clamp(0.75rem, 0.4rem + 1.2vw, 1.5rem); box-shadow: var(--shadow-lg);
}
.a-frame picture { display: block; overflow: hidden; border: 1px solid var(--line); background: var(--surface); border-radius: clamp(0.5rem, 0.25rem + 0.8vw, 1rem); }
.a-frame img { width: 100%; }
.a-frame-link { display: block; border-radius: clamp(0.5rem, 0.25rem + 0.8vw, 1rem); }
.a-frame-link picture { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.a-frame-link:hover picture, .a-frame-link:focus-visible picture { border-color: var(--accent); box-shadow: var(--shadow-md); }

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

.a-hero { position: relative; overflow: hidden; padding-top: clamp(3.5rem, 2rem + 7vw, 7.5rem); text-align: center; }
.a-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -10% -20% 0;
  background:
    radial-gradient(38% 46% at 22% 30%, var(--a-glow-1), transparent 70%),
    radial-gradient(36% 44% at 78% 26%, var(--a-glow-2), transparent 70%),
    radial-gradient(50% 40% at 50% 78%, var(--a-glow-3), transparent 72%);
}
.a-pill {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: var(--s-6); padding: 0.3rem 0.9rem 0.3rem 0.35rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: var(--text-sm); color: var(--ink-2);
}
.a-pill span { padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: var(--text-xs); }
.a-hero h1 { max-width: 20ch; margin-inline: auto; font-size: var(--text-3xl); font-weight: 680; letter-spacing: -0.05em; line-height: 1; }
.a-hero h1 em { font-style: normal; color: var(--accent); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .a-hero h1 em {
    background: linear-gradient(100deg, var(--a-grad-from), var(--a-grad-to)); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent; padding-bottom: 0.08em;
  }
}
.a-hero .lede { max-width: 40rem; margin: var(--s-6) auto 0; font-size: var(--text-xl); line-height: 1.45; }
.a-hero .cta-row, .a-hero .hero-facts { justify-content: center; }
.a-frame-hero { max-width: 68rem; margin: clamp(2.5rem, 1.5rem + 4vw, 5rem) auto 0; }

/* ---------- Stats ---------- */

.a-stats { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.a-stats dl { display: grid; gap: var(--s-6) var(--s-7); margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 56rem) { .a-stats dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); } .a-stats dt { white-space: nowrap; } }
.a-stats div { text-align: center; }
.a-stats dt { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 680; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.a-stats dt span { color: var(--accent); }
.a-stats dd { max-width: 15rem; margin: var(--s-2) auto 0; font-size: var(--text-sm); line-height: 1.45; color: var(--ink-2); }
@media (max-width: 26rem) { .a-stats dl { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Showcase ---------- */

.a-show { margin: 0; }
.a-show figcaption { margin-top: var(--s-5); }
.a-show h3 { font-size: 1.1875rem; letter-spacing: -0.02em; }
.a-show p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; }
.a-show .text-link { margin-top: var(--s-3); font-size: var(--text-sm); }
.a-show-lead figcaption { max-width: 40rem; margin-inline: auto; text-align: center; }
.a-show-lead h3 { font-size: var(--text-xl); }
.a-show-lead p { font-size: var(--text-base); }
.a-show-row { display: grid; gap: var(--s-7) var(--s-6); margin-top: var(--s-8); }
@media (min-width: 52rem) { .a-show-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.a-show-row .a-frame { box-shadow: var(--shadow-md); border-radius: var(--r-lg); padding: 0.3rem; }
.a-show-row .a-frame picture { border-radius: calc(var(--r-lg) - 0.3rem); }

/* ---------- Capability wall ---------- */

.a-wall { list-style: none; columns: 21rem 3; column-gap: var(--s-4); }
.a-wall .cap { break-inside: avoid; margin-bottom: var(--s-4); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--a-card); box-shadow: var(--shadow-sm); }
.a-wall .cap-fact { font-size: var(--text-xl); font-weight: 680; letter-spacing: -0.035em; line-height: 1.1; color: var(--accent); }
.a-wall h3 { margin-top: var(--s-2); font-size: 1.0625rem; letter-spacing: -0.01em; }
.a-wall .cap > p:not(.cap-fact) { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); }
.cap-items { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--s-5); }
.a-wall .cap-items li {
  padding: 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  font-size: var(--text-xs); color: var(--ink-2); max-width: 100%;
}
.a-wall .cap-items li.m { font-family: var(--font-mono); font-size: 0.75rem; border-radius: var(--r-sm); color: var(--ink); }

/* ---------- Examples ---------- */

.a-samples a { border-radius: var(--r-xl); background: var(--a-card); padding: var(--s-6); }
.ex-tag {
  display: inline-block; margin-bottom: var(--s-3); padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 0.75rem; font-weight: 600;
}

/* ---------- Privacy, performance ---------- */

.a-trio, .a-duo, .a-steps, .a-enables { list-style: none; display: grid; gap: var(--s-4); }
@media (min-width: 52rem) { .a-trio, .a-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .a-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.a-trio li, .a-duo li, .a-steps li, .a-enables li { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--a-card); text-align: left; }
.a-trio h3, .a-duo h3, .a-steps h3, .a-enables h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.a-trio p, .a-duo p, .a-steps p, .a-enables p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; }

.a-perf { text-align: center; }
.a-perf h2 { max-width: 22ch; margin-inline: auto; }
.a-figure { margin-top: var(--s-7); font-size: clamp(2.75rem, 1rem + 8.2vw, 6.75rem); font-weight: 700; letter-spacing: -0.055em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.a-figure span { color: var(--accent); }
.a-figure-label { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--text-sm); }
.a-duo { margin-top: var(--s-8); }
.a-phone-stage { background-image: radial-gradient(60% 60% at 50% 40%, var(--a-glow-1), transparent 75%); border-radius: var(--r-xl); }

/* ---------- Moving from SpreadJS ---------- */

.a-steps { counter-reset: astep; }
.a-steps li { counter-increment: astep; }
.a-steps li::before {
  content: counter(astep); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: var(--s-4);
  border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.a-gains { display: grid; gap: var(--s-4); margin-top: var(--s-4); align-items: start; }
@media (min-width: 62rem) { .a-gains { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.a-map { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--a-card); overflow: hidden; }
.a-map table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.a-map th, .a-map td { padding: var(--s-3) var(--s-5); text-align: left; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.a-map th { border-top: 0; font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); }
.a-map td { width: 50%; color: var(--ink-2); }
.a-map td:first-child code { color: var(--ink-3); }
.a-map code { font-size: 0.78rem; color: var(--ink); }
@media (max-width: 39.99rem) {
  .a-map thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .a-map tr { display: block; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
  .a-map tbody tr:first-child { border-top: 0; }
  .a-map td { display: block; width: auto; padding: 0.15rem var(--s-5); border: 0; }
  .a-map td:first-child::before { content: "SpreadJS: "; font-size: var(--text-xs); color: var(--ink-3); }
  .a-map td:last-child::before { content: "8sheets: "; font-size: var(--text-xs); font-weight: 600; color: var(--accent); }
}
.home #switch .cta-row { margin-top: var(--s-7); }

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

.a-plans { display: grid; gap: var(--s-4); max-width: 56rem; margin-inline: auto; align-items: stretch; }
@media (min-width: 48rem) { .a-plans { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
.a-plan { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); padding: var(--s-7) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--a-card); }
.a-plan-main { border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.a-plan h3 { font-size: 1.0625rem; color: var(--ink-2); font-weight: 600; }
.a-price { font-size: var(--text-2xl); font-weight: 680; letter-spacing: -0.04em; line-height: 1; }
.a-price small { font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.a-plan > p:not(.a-price) { color: var(--ink-2); font-size: var(--text-sm); }
.a-plan .check-list { margin-top: 0; font-size: var(--text-sm); }
.a-tiers { align-self: stretch; margin: 0; border-top: 1px solid var(--line); font-size: var(--text-sm); line-height: 1.5; }
.a-tiers > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--s-4); padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.a-tiers dt { font-weight: 600; }
.a-tiers dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.a-tiers dd.a-tier-for { grid-column: 1 / -1; font-weight: 400; color: var(--ink-2); white-space: normal; text-align: left; }
.a-plan .btn { margin-top: auto; }

/* ---------- FAQ and final ---------- */

.a-faq { max-width: calc(50rem + 2 * var(--gutter)); }
.a-faq .faq details > p { max-width: none; }
.a-final { position: relative; overflow: hidden; text-align: center; }
.a-final::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(45% 70% at 30% 100%, var(--a-glow-1), transparent 70%), radial-gradient(45% 70% at 72% 100%, var(--a-glow-2), transparent 70%);
}
.a-final h2 { max-width: 18ch; margin-inline: auto; font-size: var(--text-3xl); font-weight: 680; letter-spacing: -0.05em; line-height: 1; }
.a-final .lede { margin-inline: auto; }
.a-final .cta-row { justify-content: center; }
.a-also { text-align: center; }
.a-proof { margin-block: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: var(--text-sm); color: var(--ink-2); }
.a-proof a { font-weight: 600; }
.a-proof-tag { display: inline-block; margin-right: var(--s-2); padding: 0 var(--s-2); border-radius: 999px; background: var(--surface-3); color: var(--ink); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; }

/* Two product entry points share the existing site typography, controls and theme. */
.component-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(16px,3vw,32px); margin:32px auto 0; text-align:left; }
.component-card { overflow:hidden; border:1px solid var(--line); border-radius:18px; background:var(--a-card); color:var(--ink); box-shadow:0 10px 26px #2320460c; }
.component-shot { display:block; overflow:hidden; aspect-ratio:2.35; border-bottom:1px solid var(--line); background:var(--a-tint); }
.component-shot picture,.grid-showcase picture { display:block; }
.component-shot img { display:block; width:100%; height:auto; }
.component-body { padding:clamp(16px,2.5vw,28px); }
.component-body h2 { font-size:clamp(1.35rem,2.4vw,2rem); line-height:1.15; margin:0 0 .4em; }
.component-body p,.grid-flow p,.grid-get p { color:var(--ink-2); margin:0; }
.component-actions,.grid-get>div:last-child { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:18px; }
.component-actions .btn { white-space:normal; }
.component-links { margin:24px 0 0; color:var(--ink-2); }
.grid-intro { padding:clamp(42px,6.5vw,94px) 0; background:linear-gradient(135deg,var(--a-tint),var(--bg)); }
.grid-intro-layout { display:grid; grid-template-columns:.84fr 1.16fr; align-items:center; gap:clamp(24px,4vw,64px); }
.grid-product-name { font-family:var(--font-mono); font-weight:650; color:var(--accent); margin:0 0 16px; }
.grid-product h1 { font-size:clamp(2.6rem,5.1vw,5.2rem); line-height:1.02; letter-spacing:-.055em; margin:0 0 20px; }
.grid-product h1 em { color:var(--accent); font-style:normal; }
.grid-showcase { min-width:0; margin:0; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--a-card); box-shadow:0 18px 40px #202d2a16; }
.grid-showcase img { width:100%; height:auto; display:block; }
.grid-showcase figcaption { display:flex; justify-content:space-between; padding:9px 14px; border-top:1px solid var(--line); color:var(--ink-2); font-size:.8rem; }
.grid-flow { padding-block:clamp(42px,6vw,80px); }.grid-flow h2,.grid-get h2 { margin:0 0 16px; }
.grid-flow>div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; }.grid-flow article { border-top:2px solid var(--line); padding-top:18px; }.grid-flow h3 { margin:0 0 8px; }
.grid-get { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:20px; padding-block:34px; border-top:1px solid var(--line); }.grid-get>div:last-child { margin:0; }
@media(max-width:48rem){.component-pair,.grid-intro-layout,.grid-flow>div {grid-template-columns:1fr}.grid-showcase {max-width:100%}.component-pair {max-width:36rem}.grid-flow>div {gap:20px}.component-links {font-size:.92rem}}
.component-card { display:flex; flex-direction:column; }
.component-body { flex:1; display:flex; flex-direction:column; }
.component-body .component-actions { margin-top:auto; padding-top:18px; }
.component-actions > .text-link,.grid-get .text-link {margin-block:0;}
.report-example { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:clamp(24px,5vw,72px); padding-block:clamp(42px,6vw,78px); }
.report-example h2 {margin:.25em 0;}
.report-example table,.product-comparison table {width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.report-example th,.report-example td,.product-comparison th,.product-comparison td {text-align:start;padding:.75rem;border-bottom:1px solid var(--line)}
.report-example td:not(:first-child),.report-example th:not(:first-child) {text-align:end}
.report-example caption,.product-comparison caption {font-weight:650;text-align:left;margin-bottom:.65rem}
.product-comparison {max-width:58rem;padding-block:clamp(30px,5vw,70px)}
.product-comparison .table-wrap {overflow-x:auto}
.product-comparison h1 {font-size:clamp(2rem,5vw,3.4rem);line-height:1.08;margin:0 0 1rem}
.product-comparison h2 {margin:2rem 0 .7rem}
@media(max-width:48rem){.report-example{grid-template-columns:1fr}.product-comparison th,.product-comparison td{padding:.5rem}}

.component-body h2 a { color:inherit; text-decoration:none; }.component-body h2 a:hover {text-decoration:underline;}

.component-home .a-hero { padding-block:clamp(28px,4vw,56px); }
.component-home .a-hero h1 { max-width:25ch; font-size:clamp(2.3rem,4.5vw,4.2rem); }
.component-home .a-hero .lede { max-width:52ch; font-size:clamp(1.08rem,1.65vw,1.4rem); }

/* ---------- Data Grid landing pages (/data-grid/, /pl/tabela/) and the comparison pages of both products ----------
   Landing-only parts are scoped to .grid-page and named grid-*. The comparison page system is named cmp-* and is used by
   /vs/, /data-grid/compare/ and their Polish copies (main.cmp-page); the landing pages borrow its tables, markers and benchmark card. */

:root { --cmp-paid: #8a4b1c; --cmp-paid-soft: #fbf0e4; --cmp-paid-line: #ecd3b8; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --cmp-paid: #f0b48f; --cmp-paid-soft: #2b2018; --cmp-paid-line: #4a3626; }
}
:root[data-theme="dark"] { --cmp-paid: #f0b48f; --cmp-paid-soft: #2b2018; --cmp-paid-line: #4a3626; }

.grid-page .a-hero h1 { max-width: 21ch; }
.grid-page .a-hero .lede { max-width: 44rem; }
.grid-page .a-frame-hero { max-width: 62rem; }
.grid-page .a-frame figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.6rem 0.5rem 0.2rem; font-size: var(--text-xs); color: var(--ink-2); text-align: left; }
.grid-page .a-frame figcaption span:first-child { font-family: var(--font-mono); }
:is(.grid-page, .cmp-page) .text-link svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:is(.grid-page, .cmp-page) .split { align-items: start; }
:is(.grid-page, .cmp-page) .split > * { min-width: 0; }
:is(.grid-page, .cmp-page) code { overflow-wrap: anywhere; }

/* Two code samples, one under the other, in the developers section */
.grid-code-stack { display: grid; gap: var(--s-4); min-width: 0; }
.grid-code-stack > * { min-width: 0; }

/* Proof strip */
.grid-proof { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.grid-proof dl { display: grid; gap: var(--s-4); margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.grid-proof dl > div { padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--a-card); box-shadow: inset 3px 0 0 var(--accent-fill); }
.grid-proof dt { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 680; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.grid-proof dt small { font-size: 0.5em; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.grid-proof dd { margin: var(--s-2) 0 0; font-size: var(--text-sm); line-height: 1.5; color: var(--ink-2); }
.grid-proof .fine { text-align: center; }

/* Workflow steps */
:is(.grid-steps, .cmp-steps) { list-style: none; display: grid; gap: var(--s-4); counter-reset: gstep; }
@media (min-width: 56rem) { :is(.grid-steps, .cmp-steps) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
:is(.grid-steps, .cmp-steps) > li { counter-increment: gstep; display: flex; flex-direction: column; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--a-card); box-shadow: var(--shadow-sm); }
:is(.grid-steps, .cmp-steps) > li::before { content: counter(gstep); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: var(--s-4); border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
:is(.grid-steps, .cmp-steps) h3 { font-size: 1.1875rem; letter-spacing: -0.02em; }
:is(.grid-steps, .cmp-steps) p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; }
.grid-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: var(--s-5); }
.grid-chips li { padding: 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: var(--text-xs); color: var(--ink-2); max-width: 100%; }
.grid-chips li.m { font-family: var(--font-mono); font-size: 0.75rem; border-radius: var(--r-sm); color: var(--ink); }

/* The checked walkthrough */
.grid-check { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--a-card); overflow: hidden; box-shadow: var(--shadow-md); }
.grid-check-title { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.grid-check ol { list-style: none; }
.grid-check li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.grid-check li:first-child { border-top: 0; }
.grid-check li span { font-weight: 600; }
.grid-check li small { display: block; margin-top: 0.1rem; font-size: var(--text-xs); font-weight: 400; color: var(--ink-2); }
.grid-check li b { padding: 0.15rem 0.6rem; border: 1px solid var(--accent-line); border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 26rem) { .grid-check li { grid-template-columns: minmax(0, 1fr); } .grid-check li b { justify-self: start; } }

/* Feature cards */
.grid-caps { list-style: none; display: grid; gap: var(--s-4); }
@media (min-width: 40rem) { .grid-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid-caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-caps > li { display: flex; flex-direction: column; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--a-card); box-shadow: var(--shadow-sm); }
.grid-caps .cap-fact { font-size: var(--text-xl); font-weight: 680; letter-spacing: -0.035em; line-height: 1.1; color: var(--accent); }
.grid-caps h3 { margin-top: var(--s-2); font-size: 1.0625rem; letter-spacing: -0.01em; }
.grid-caps li > p:not(.cap-fact) { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); }

/* Advantage cards */
.grid-why { list-style: none; display: grid; gap: var(--s-4); }
@media (min-width: 48rem) { .grid-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-why li { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--a-card); }
.grid-why h3 { font-size: 1.1875rem; letter-spacing: -0.02em; }
.grid-why p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; }
.grid-why .cmp-mark { margin-bottom: var(--s-4); }

/* Markers: every one carries its meaning as text, the colour and the sign only repeat it. */
.cmp-mark { display: inline-flex; align-items: baseline; gap: 0.35rem; padding: 0.1rem 0.6rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--text-xs); font-weight: 600; line-height: 1.5; white-space: nowrap; }
.cmp-mark::before { font-weight: 700; }
.cmp-mark.is-yes { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.cmp-mark.is-yes::before { content: "\2713"; }
.cmp-mark.is-paid { border-color: var(--cmp-paid-line); background: var(--cmp-paid-soft); color: var(--cmp-paid); }
.cmp-mark.is-paid::before { content: "$"; }
.cmp-mark.is-lib::before { content: "+"; }
.cmp-mark.is-no { border-style: dashed; }
.cmp-mark.is-no::before { content: "\2013"; }
.cmp-legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: 0 0 var(--s-5); font-size: var(--text-xs); color: var(--ink-2); }
.cmp-legend li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }

/* Tables */
.cmp-frame { border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); line-height: 1.5; }
.cmp-table caption { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; text-align: left; color: var(--ink-2); }
.cmp-table th, .cmp-table td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); overflow-wrap: anywhere; }
.cmp-table tr > :first-child { border-left: 0; }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table thead th { background: var(--surface-2); font-size: var(--text-xs); font-weight: 650; color: var(--ink); vertical-align: bottom; }
.cmp-table thead th small { display: block; font-weight: 400; color: var(--ink-2); }
.cmp-table tbody th { width: 21%; font-weight: 600; }
.cmp-table tbody th small { display: block; font-weight: 400; font-size: var(--text-xs); color: var(--ink-2); }
.cmp-table td { color: var(--ink-2); }
.cmp-table td.is-8s { background: var(--accent-soft); color: var(--ink); }
.cmp-table td .cmp-mark { margin-bottom: 0.3rem; }
.cmp-table td .cmp-mark + span { display: block; font-size: var(--text-xs); }
.cmp-table tr.cmp-group th { padding-block: 0.5rem; background: var(--surface-2); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); width: auto; }
.cmp-page sup, .cmp-table sup { font-size: 0.7em; line-height: 0; }
.cmp-page sup a, .cmp-table sup a { padding: 0 0.1em; text-decoration: none; font-weight: 600; }
@media (max-width: 47.99rem) {
  .cmp-table.is-stack, .cmp-table.is-stack tbody, .cmp-table.is-stack tr, .cmp-table.is-stack th, .cmp-table.is-stack td { display: block; width: auto; }
  .cmp-table.is-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp-table.is-stack tr { border-bottom: 1px solid var(--line-strong); }
  .cmp-table.is-stack tbody tr:last-child { border-bottom: 0; }
  .cmp-table.is-stack th, .cmp-table.is-stack td { border: 0; }
  .cmp-table.is-stack tbody th { background: var(--surface-2); }
  .cmp-table.is-stack td[data-who] { border-top: 1px solid var(--line); }
  .cmp-table.is-stack td[data-who]::before { content: attr(data-who); display: block; margin-bottom: 0.3rem; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
  .cmp-table.is-stack td.is-8s[data-who]::before { color: var(--accent); }
}

/* Benchmark */
.cmp-bench td, .cmp-bench thead th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-bench td { font-family: var(--font-mono); color: var(--ink); }
.cmp-bench td small { font-family: var(--font-sans); color: var(--ink-2); }
.cmp-bench tbody th { width: auto; }
.cmp-bench td.is-low { font-weight: 700; }
.cmp-bench td.is-low::after { content: " \25C2"; color: var(--accent); }
.cmp-bench-layout { display: grid; gap: var(--s-6) var(--s-8); align-items: start; }
@media (min-width: 60rem) { .cmp-bench-layout { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.cmp-bench-notes h3 { font-size: 1.0625rem; }
.cmp-bench-notes .check-list { margin-top: var(--s-4); font-size: var(--text-sm); }
.cmp-bench-notes .fine { color: var(--ink-2); }
@media (max-width: 26rem) { .cmp-bench th, .cmp-bench td { padding: 0.55rem 0.5rem; font-size: 0.8125rem; } }

/* Comparison pages: hub = hero, switch line, vendor cards, optional matrix / benchmark / other side, call to action, sources.
   One-to-one page = hero with the at-a-glance table and a jump list, cost and licence, features, measured, the other side,
   which one fits, call to action, sources. */
.cmp-hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1.5rem + 3vw, 4rem); }
.cmp-hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -20% -10% 0; background: radial-gradient(40% 60% at 12% 20%, var(--a-glow-1), transparent 70%), radial-gradient(36% 56% at 88% 10%, var(--a-glow-2), transparent 70%); }
.cmp-hero h1 { max-width: 22ch; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); font-weight: 680; letter-spacing: -0.045em; line-height: 1.02; }
.cmp-hero .lede { max-width: 46rem; }
.cmp-hero h1 em { font-style: normal; color: var(--accent); }
.cmp-hero-layout { display: grid; gap: var(--s-7) var(--s-8); align-items: center; }
.cmp-hero-layout > * { min-width: 0; }
@media (min-width: 62rem) { .cmp-hero-layout { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.cmp-crumb { margin-bottom: var(--s-4); font-size: var(--text-sm); color: var(--ink-2); }
.cmp-crumb a { color: inherit; }
.cmp-glance tbody th { width: 30%; }
.cmp-glance td b { display: block; color: var(--ink); }
.cmp-glance td.is-8s b { color: var(--accent); }
.cmp-sect { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.cmp-sect-head { max-width: 46rem; margin-bottom: var(--s-6); }
.cmp-sect-head h2 { font-size: var(--text-2xl); letter-spacing: -0.035em; line-height: 1.08; }
.cmp-sect-head p:not(.a-kicker) { margin-top: var(--s-4); color: var(--ink-2); }
.cmp-vendors { list-style: none; display: grid; gap: var(--s-4); }
@media (min-width: 48rem) { .cmp-vendors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmp-vendors a { display: flex; flex-direction: column; gap: var(--s-2); height: 100%; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--a-card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.cmp-vendors a:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.cmp-vendors strong { font-size: 1.1875rem; letter-spacing: -0.02em; }
.cmp-vendors span { color: var(--ink-2); font-size: var(--text-sm); }
.cmp-vendors em { margin-top: auto; padding-top: var(--s-3); font-style: normal; font-weight: 600; font-size: var(--text-sm); color: var(--accent); }
.cmp-ahead { list-style: none; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.cmp-ahead li { padding: var(--s-5) var(--s-6); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--r-lg); background: var(--a-card); }
.cmp-ahead h3 { font-size: 1.0625rem; }
.cmp-ahead p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; }
.cmp-sources { margin: var(--s-4) 0 0; padding-left: 1.6rem; font-size: var(--text-xs); line-height: 1.7; color: var(--ink-2); }
.cmp-sources li { padding-left: 0.2rem; overflow-wrap: anywhere; }
.cmp-sources li:target { background: var(--accent-soft); color: var(--ink); }
.cmp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-7); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border: 1px solid var(--accent-line); border-radius: var(--r-xl); background: var(--a-card); box-shadow: var(--shadow-lg); }
.cmp-cta h2 { font-size: var(--text-xl); letter-spacing: -0.03em; }
.cmp-cta p { margin-top: var(--s-2); max-width: 36rem; color: var(--ink-2); font-size: var(--text-sm); }
.cmp-cta .cta-row { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .cmp-vendors a { transition: none; } }
.grid-page .a-pill span { white-space: nowrap; }
.cmp-note { overflow-wrap: anywhere; }

.cmp-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin-top: var(--s-5); font-size: var(--text-sm); color: var(--ink-2); }
.cmp-switch a { font-weight: 600; }
.cmp-switch strong { color: var(--ink); font-weight: 600; }
.cmp-switch-item { white-space: nowrap; }
.cmp-jump { margin-top: var(--s-7); }
.cmp-jump ul, .cmp-groups { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cmp-jump a, .cmp-groups a { display: block; padding: 0.25rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; text-decoration: none; }
.cmp-jump a:hover, .cmp-groups a:hover { border-color: var(--accent-line); color: var(--accent); }
.cmp-groups { margin-bottom: var(--s-4); }
.cmp-groups a { font-size: var(--text-xs); }
.cmp-sect, .cmp-table tbody[id] { scroll-margin-top: calc(var(--header-h) + 0.5rem); }
.cmp-glance.is-figures td b { display: inline; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.cmp-vendors .cmp-tag { align-self: flex-start; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; font-weight: 600; }
.cmp-steps a, .cmp-ahead a { font-weight: 600; }
.cmp-help { max-width: 46rem; margin-top: var(--s-5); color: var(--ink-2); }
.cmp-sub { margin: var(--s-8) 0 var(--s-4); font-size: var(--text-lg); letter-spacing: -0.02em; }
.cmp-cta ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem var(--s-5); margin-top: var(--s-3); font-size: var(--text-sm); color: var(--ink-2); }
.cmp-cta li::before { content: "\2713"; margin-right: 0.4rem; font-weight: 700; color: var(--accent); }
.cmp-prose { max-width: 50rem; font-size: var(--text-base); line-height: 1.7; }

/* More markers, and the parts of a long matrix */
.cmp-mark.is-x::before { content: "\00D7"; }
.cmp-mark.is-part::before { content: "~"; }
.cmp-mark.is-soon::before { content: "\2026"; }
.cmp-mark.is-nd { border-style: dashed; }
.cmp-mark.is-nd::before { content: "?"; }
.cmp-table td .cmp-mark + .cmp-mark { margin-left: 0.3rem; }
.cmp-table td .cmp-mark ~ span:not(.cmp-mark) { display: block; font-size: var(--text-xs); }
.cmp-table tbody:not(:last-child) tr:last-child > * { border-bottom: 1px solid var(--line); }
.cmp-table tr.cmp-group th small { display: block; margin-top: 0.15rem; font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 400; letter-spacing: 0; text-transform: none; }
.cmp-table tr[data-edge="us"] td:nth-of-type(1), .cmp-table tr[data-edge="them"] td:nth-of-type(2) { background: var(--accent-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent-fill); }
.cmp-table tfoot th, .cmp-table tfoot td { border-top: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 600; }
.cmp-table tfoot td.is-8s { background: var(--accent-soft); }
.cmp-table tfoot tr:last-child > * { border-bottom: 0; }
.cmp-big { display: block; font-size: var(--text-lg); font-weight: 680; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.is-8s .cmp-big { color: var(--accent); }
@media (max-width: 47.99rem) {
  .cmp-table.is-stack tfoot, .cmp-table.is-stack tfoot tr, .cmp-table.is-stack tfoot th, .cmp-table.is-stack tfoot td { display: block; width: auto; border-left: 0; }
  .cmp-table.is-stack tr.cmp-group { border-bottom: 0; }
}

/* A benchmark with bars: one row per measurement, the shorter bar wins. The page's script fills widths and the winner. */
.cmp-bars tbody th { width: 30%; }
.cmp-bars .cmp-num { white-space: nowrap; font-family: var(--font-mono); font-size: 1.0625rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.cmp-bars .cmp-num small { font-family: var(--font-sans); font-size: 0.75rem; color: var(--ink-2); }
.cmp-bars .cmp-num.is-8s { background: none; color: var(--accent); font-weight: 700; }
.cmp-bars .cmp-barcell { width: 26%; vertical-align: middle; }
.cmp-bars .cmp-verdict { width: 6.5rem; font-size: var(--text-xs); font-weight: 600; }
.bar-track { display: block; height: 0.5rem; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar-track + .bar-track { margin-top: 0.3rem; }
.bar { display: block; width: var(--v, 0%); height: 100%; border-radius: 999px; background: var(--ink-3); transition: width 0.6s ease; }
.is-8s > .bar, .is-8s .calc-bar { background: var(--accent-fill); }
.verdict span { display: none; }
.verdict .v-none { display: inline; color: var(--ink-3); }
[data-win] .v-none { display: none; }
[data-win="8s"] .v-8s, [data-win="sjs"] .v-sjs, [data-win="tie"] .v-tie { display: inline; }
[data-win="8s"] .v-8s { color: var(--accent); }
.bench-pending { margin-bottom: var(--s-4); font-size: var(--text-sm); color: var(--ink-2); }
[data-bench-state="measured"] .bench-pending { display: none; }
@media (max-width: 47.99rem) {
  .cmp-bars.is-stack tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-bars.is-stack tbody th, .cmp-bars.is-stack .cmp-barcell, .cmp-bars.is-stack .cmp-verdict { grid-column: 1 / -1; width: auto; }
  .cmp-bars.is-stack .cmp-num + .cmp-num { border-left: 1px solid var(--line); }
  .cmp-bars.is-stack .cmp-verdict::before { content: attr(data-label) " "; font-weight: 400; color: var(--ink-3); }
}

/* Cost calculator (/vs/spreadjs/): works from the list prices in the table above it; the controls need JavaScript. */
.calc { display: grid; gap: var(--s-5) var(--s-7); padding: var(--s-6); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.calc-controls { display: none; gap: var(--s-4); align-content: start; }
.js .calc-controls { display: grid; }
@media (min-width: 58rem) { .js .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.calc-sliders { display: grid; gap: var(--s-4); }
@media (min-width: 30rem) { .calc-sliders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-range { display: grid; gap: var(--s-1); font-weight: 600; font-size: var(--text-sm); }
.calc-range span { display: flex; justify-content: space-between; }
.calc-range output { font-variant-numeric: tabular-nums; color: var(--accent); }
.calc-range input { width: 100%; accent-color: var(--accent-fill); }
.calc-addons { margin: 0; padding: 0; border: 0; display: grid; gap: var(--s-2) var(--s-4); min-width: 0; }
@media (min-width: 30rem) { .calc-addons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-addons legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); }
.calc-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--s-2); align-items: baseline; font-size: var(--text-sm); cursor: pointer; }
.calc-check input { accent-color: var(--accent-fill); width: 1rem; height: 1rem; margin: 0; transform: translateY(0.15rem); }
.calc-check small { grid-column: 2; color: var(--ink-2); font-size: var(--text-xs); }
.calc-result { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.calc-case { font-size: var(--text-sm); color: var(--ink-2); }
.calc-line { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--s-1) var(--s-3); align-items: center; }
.calc-who { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.calc-track { height: 1.25rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.calc-bar { display: block; width: var(--v, 0%); min-width: 3px; height: 100%; border-radius: 999px; background: var(--ink-3); transition: width 0.3s ease; }
.calc-total { grid-column: 2; font-size: var(--text-lg); font-weight: 680; font-variant-numeric: tabular-nums; }
.is-8s .calc-total { color: var(--accent); }
.calc-diff { padding-top: var(--s-3); border-top: 1px solid var(--line); font-weight: 500; }
.calc-how { font-size: var(--text-xs); line-height: 1.6; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .bar, .calc-bar { transition: none; } }

/* The home page's section about the Data Grid add-on: text and buttons beside the screenshot. */
.a-addon .cta-row { margin-top: var(--s-6); }
.a-addon .a-frame { margin: 0; box-shadow: var(--shadow-md); border-radius: var(--r-lg); padding: 0.3rem; }
.a-addon .a-frame picture { border-radius: calc(var(--r-lg) - 0.3rem); }
