/* vcusers.org: the polished fintech look.
   Modelled on the way stripe.com builds a page (taken as a pattern, not
   copied): white paper inside a column framed by two hairline rails, a
   headline that runs on in grey, a ribbon of warm gradient bleeding off the
   top corner, product UI floating on gradient panels in a bento grid, a band
   of big numbers between fading rules. Geist for words, Geist Mono for every
   figure. Colour is semantic: indigo is interactive, green the cheaper total,
   orange a limit. The frame (masthead, CTA, footer) is written by frame.py. */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-2: #f6f9fc;
  --bg-3: #eef2f8;
  --ink: #0b2240;
  --ink-2: #3c4a5e;
  --ink-3: #64748b;
  --ink-4: #94a0b2;
  --line: #e6ebf1;
  --line-2: #d5dde7;

  --accent: #5b4cf5;
  --accent-2: #7a6dff;
  --accent-soft: #eeecff;
  --win: #0a9f6e;
  --win-soft: #e3f7ef;
  --warn: #e8682f;
  --warn-soft: #fff1e8;

  --grad: linear-gradient(100deg, #ff9a3d 0%, #ff5a8a 38%, #b05cff 70%, #6a6cff 100%);

  --c-auto: #f07a2d;
  --c-db: #4c7dff;
  --c-mon: #12a873;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gutter: 32px;
  --col: 720px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 34, 64, .06), 0 1px 1px rgba(11, 34, 64, .04);
  --shadow: 0 2px 5px -1px rgba(50, 50, 93, .1), 0 1px 3px -1px rgba(0, 0, 0, .08);
  --shadow-lg: 0 30px 60px -12px rgba(50, 50, 93, .25), 0 18px 36px -18px rgba(0, 0, 0, .3);
}
@media (max-width: 860px) { :root { --gutter: 20px; } }

* { box-sizing: border-box; }
:target, [id] { scroll-margin-top: 96px; }

html { background: var(--bg); overflow-x: clip; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* body is a column flex container: without this a wide table would push the
   page sideways instead of scrolling inside its own wrapper */
body > * { max-width: 100%; }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-sans); font-weight: 500; margin: 0; letter-spacing: -0.025em; color: var(--ink); }

/* the small labels: mono, uppercase, wide */
.eyebrow, .tag, .verdict-label, .readnext h2, .ledger-table thead th, .lg-kind,
.ref-head, .footer-col p, .calc-bar, .cat-count, .toc p, .glance dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page { max-width: none; margin: 0; padding: 0; }

/* -------------------------------------------------------------- the rails
   Two hairlines run the full height of the page at the edges of the content
   column, so every section sits in the same frame. */
.shell { position: relative; }
.shell::before, .shell::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
  z-index: 0;
}
.shell::before { left: calc(var(--gutter) - 24px); }
.shell::after { right: calc(var(--gutter) - 24px); }
@media (max-width: 860px) { .shell::before, .shell::after { display: none; } }

/* ---------------------------------------------------------------- masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand-tld { color: var(--ink-4); font-weight: 500; }
.brand-caret {
  width: 8px;
  height: 18px;
  margin-left: 4px;
  border-radius: 2px;
  background: var(--grad);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.topnav { display: flex; gap: 2px; height: 100%; align-items: center; }
.topnav a {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--ink); background: var(--bg-2); }
.topnav a[aria-current] { color: var(--accent); }
.masthead-contact { margin-left: auto; }

@media (max-width: 860px) {
  .masthead-inner { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 0; }
  .brand { height: 38px; }
  .topnav {
    order: 3;
    flex: 1 0 100%;
    height: 44px;
    margin: 0 -12px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .topnav::-webkit-scrollbar { display: none; }
}

/* ------------------------------------------------------------------ buttons */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s, box-shadow .2s, transform .15s;
}
.pill:active { transform: translateY(1px); }
.pill-solid { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(91, 76, 245, .55); }
.pill-solid:hover { background: #4a3be6; box-shadow: 0 10px 22px -8px rgba(91, 76, 245, .65); }
.pill-solid::after { content: "\203A"; font-size: 20px; line-height: 1; transition: transform .15s; }
.pill-solid:hover::after { transform: translateX(3px); }
.pill-outline { background: #fff; border-color: var(--line-2); color: var(--accent); box-shadow: var(--shadow-sm); }
.pill-outline:hover { border-color: var(--accent-2); }
.masthead .pill { height: 36px; padding: 0 14px; font-size: 14px; }

/* ------------------------------------------------------------------ ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ticker-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; gap: 34px; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker-inner:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker a { display: flex; align-items: baseline; gap: 7px; padding: 9px 0; color: var(--ink-3); }
.ticker a:hover { color: var(--accent); }
.ticker b { color: var(--ink); font-weight: 600; }
.ticker i { font-style: normal; color: var(--ink-4); }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-inner { overflow-x: auto; scrollbar-width: none; }
}

/* ------------------------------------------------------------------- shell */
.shell { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.shell > * { position: relative; z-index: 1; }

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 48px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}
.section-top h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.035em; }
.section-top p { font-size: 17px; line-height: 1.6; color: var(--ink-3); margin: 0; max-width: 50ch; }

.more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: var(--accent); }
.more::after { content: "\203A"; font-size: 19px; line-height: 1; transition: transform .15s; }
.more:hover::after { transform: translateX(3px); }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 96px 0 104px;
  isolation: isolate;
}
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 44px; padding: 56px 0 72px; } }

/* the ribbon: three skewed bands of warm gradient that drift, bleeding off
   the top right corner of the page */
.hero-ribbon {
  position: absolute;
  z-index: -1;
  top: -360px;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  height: 1000px;
  overflow: hidden;
  pointer-events: none;
  filter: saturate(115%);
}
.hero-ribbon i {
  position: absolute;
  top: 0;
  right: -140px;
  width: 1250px;
  height: 100%;
  border-radius: 40%;
  background: var(--grad);
  background-size: 200% 200%;
  animation: ribbon 18s ease-in-out infinite alternate;
}
.hero-ribbon i:nth-child(1) { transform: rotate(-32deg) scaleY(.42) translate(20%, 22%); }
.hero-ribbon i:nth-child(2) { transform: rotate(-32deg) scaleY(.22) translate(14%, 120%); opacity: .55; filter: blur(20px); animation-duration: 24s; }
.hero-ribbon i:nth-child(3) { transform: rotate(-32deg) scaleY(.18) translate(34%, -100%); opacity: .5; filter: blur(26px); animation-duration: 30s; }
@keyframes ribbon { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-copy { position: relative; }
@media (max-width: 960px) { .hero-ribbon { top: -720px; opacity: .5; } .hero-ribbon i { right: -700px; } }
@media (prefers-reduced-motion: reduce) { .hero-ribbon i { animation: none; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--accent);
  margin: 0 0 22px;
}
.eyebrow .rule { width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.hero h1 {
  font-size: clamp(44px, 6.2vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 18px;
  text-wrap: balance;
}
/* the subhead runs on from the headline in grey */
.hero .subhead { font-size: clamp(20px, 2vw, 25px); line-height: 1.4; letter-spacing: -0.02em; color: var(--ink-3); max-width: 30ch; margin: 0 0 34px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-live { display: flex; align-items: center; gap: 9px; margin: 26px 0 0; font: 400 12.5px/1.4 var(--font-mono); color: var(--ink-3); }
.hero-live i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 4px var(--win-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(10, 159, 110, .08); } }
@media (prefers-reduced-motion: reduce) { .hero-live i { animation: none; } }

/* -------------------------------------------------------------- calculator */
/* The product shot: a white app window floating over the ribbon. */
.calc {
  position: relative;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11, 34, 64, .06);
  overflow: hidden;
}
.calc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-3);
}
.calc-bar span:first-child { display: inline-flex; align-items: center; color: var(--ink); }
.calc-bar span:first-child::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f57;
  box-shadow: 15px 0 0 #febc2e, 30px 0 0 #28c840;
  margin-right: 46px;
}
.calc-bar span:last-child { color: var(--ink-4); }
.calc-pairs { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 18px 6px; }
.calc-pairs button {
  font: 500 12px/1 var(--font-sans);
  padding: 8px 12px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.calc-pairs button:hover { border-color: var(--accent-2); color: var(--accent); }
.calc-pairs button[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: var(--accent); }
.calc-inputs { display: grid; grid-template-columns: auto 1fr; gap: 26px; padding: 16px 18px 18px; border-bottom: 1px solid var(--line); }
.calc-in { display: grid; gap: 9px; justify-items: start; }
.calc-in > span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.calc-step { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; }
.calc-step button { width: 34px; height: 34px; background: #fff; border: 0; color: var(--ink-2); font: 500 16px/1 var(--font-mono); cursor: pointer; }
.calc-step button:hover { background: var(--bg-2); color: var(--accent); }
.calc-step output { min-width: 34px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.is-flat .calc-step { opacity: .35; pointer-events: none; }
.calc-rate { grid-template-columns: 1fr auto; align-items: center; column-gap: 14px; justify-items: stretch; }
.calc-rate > span { grid-column: 1 / -1; }
.calc-rate input { width: 100%; accent-color: var(--accent); margin: 0; }
.calc-rate output { font-size: 14px; font-weight: 600; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }

.calc-rows { padding: 6px 18px 4px; }
.calc-row { padding: 15px 0; }
.calc-row + .calc-row { border-top: 1px solid var(--line); }
.calc-row p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; }
.calc-row p span { font: 500 13px/1.3 var(--font-sans); color: var(--ink-2); }
.calc-row b { font-size: 27px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.calc-track { display: flex; height: 8px; margin: 11px 0 8px; background: var(--bg-3); border-radius: 99px; overflow: hidden; font-style: normal; }
.calc-track i { display: block; height: 100%; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
[data-bar="saas"] { background: linear-gradient(90deg, #aab4c3, #7c889b); }
[data-bar="self-cash"] { background: linear-gradient(90deg, #22c08b, var(--win)); }
[data-bar="self-time"] { background: repeating-linear-gradient(135deg, var(--win) 0 3px, #bfeedd 3px 6px); }
.calc-row small { display: block; font-size: 11px; color: var(--ink-4); }
.calc:not(.self-wins) .calc-row:first-child b,
.calc.self-wins .calc-row:last-child b { color: var(--win); }
.calc-verdict { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); font: 400 14px/1.55 var(--font-sans); color: var(--ink-2); background: var(--bg-2); }
.calc-verdict b { color: var(--win); font-family: var(--font-mono); font-weight: 600; }
.calc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font: 500 14px/1 var(--font-sans);
  color: var(--accent);
}
.calc-foot::after { content: "\203A"; font-size: 19px; transition: transform .15s; }
.calc-foot:hover { background: var(--accent-soft); }
.calc-foot:hover::after { transform: translateX(3px); }
@media (max-width: 520px) { .calc-inputs { grid-template-columns: 1fr; } .calc-bar span:last-child { display: none; } }

/* ------------------------------------------------------------- tool wall */
/* the logo row, set as type: ten tools in ruled cells between the rails */
.tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -24px;
}
.tools a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 92px;
  border-left: 1px solid var(--line);
  transition: background .2s;
}
.tools a:nth-child(5n+1) { border-left: 0; }
.tools a:nth-child(n+6) { border-top: 1px solid var(--line); }
.tools a b { font-size: 19px; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); opacity: .82; transition: opacity .2s; }
.tools a span { font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.tools a:hover { background: var(--bg-2); }
.tools a:hover b { opacity: 1; }
@media (max-width: 860px) {
  .tools { grid-template-columns: repeat(2, 1fr); margin: 0 calc(var(--gutter) * -1); }
  .tools a { border-left: 0; border-top: 1px solid var(--line); height: 76px; }
  .tools a:nth-child(-n+2) { border-top: 0; }
  .tools a:nth-child(even) { border-left: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- method */
.method { padding: 104px 0 40px; }
.statement { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.22; letter-spacing: -0.03em; color: var(--ink-4); max-width: 30ch; margin: 0 0 56px; font-weight: 500; text-wrap: pretty; }
.statement b { color: var(--ink); font-weight: 500; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 0;
  min-height: 380px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
/* the gradient wash each card's mock floats on */
.bento-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62%;
  background: var(--grad);
  opacity: .9;
  mask-image: linear-gradient(180deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.bento-server::before { background: linear-gradient(100deg, #6a6cff, #4c7dff 50%, #39c6ff); }
.bento-hours::before { background: linear-gradient(100deg, #12a873, #4bd59c 50%, #b9f06b); }
/* the expand mark in the corner */
.bento-card::after {
  content: "\2197";
  position: absolute;
  top: 22px; right: 22px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 500 14px/1 var(--font-mono);
}
.bento-card h3 { font-size: 24px; letter-spacing: -0.03em; margin: 0 0 10px; padding-right: 40px; }
.bento-card > p { font-size: 15.5px; line-height: 1.55; color: var(--ink-3); margin: 0 0 22px; max-width: 34ch; position: relative; }
.mock {
  position: relative;
  margin-top: auto;
  margin-bottom: -1px;
  padding: 16px 18px;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.mock-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-3); }
.mock-row:first-child, .mock-dots + .mock-row, .mock-bars + .mock-row { border-top: 0; }
.mock-row b { color: var(--ink); font-weight: 600; }
.mock-muted b { color: var(--win); }
.mock-dots { display: flex; gap: 6px; margin-bottom: 8px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mock-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin-bottom: 8px; }
.mock-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #4bd59c, var(--win)); opacity: .85; }
.mock-bars i:first-child { background: linear-gradient(180deg, #ffb070, var(--warn)); }
.bento-sum {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px 48px;
  align-items: center;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.bento-sum::before { display: none; }
.bento-sum::after { background: rgba(255, 255, 255, .1); color: #fff; }
.bento-sum h3 { color: #fff; grid-column: 1; }
.bento-sum > p:not(.bento-eq) { color: #a8b4c6; max-width: none; margin: 0; grid-column: 2; grid-row: 1 / span 2; }
.bento-eq { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; font-family: var(--font-mono); font-size: 13px; }
.bento-eq span { padding: 7px 11px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; }
.bento-eq em { font-style: normal; color: #ff9a3d; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card { min-height: 320px; }
  .bento-sum { grid-template-columns: 1fr; padding: 28px; }
  .bento-sum > p:not(.bento-eq) { grid-column: 1; grid-row: auto; }
}

/* ------------------------------------------------------------------ stats */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 72px -24px 96px;
  padding: 44px 0;
  background: var(--bg-2);
}
.stats::before, .stats::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2) 20%, var(--line-2) 45%, var(--line-2) 70%, transparent);
}
.stats::before { top: 0; }
.stats::after { bottom: 0; }
.stats div { text-align: center; padding: 0 16px; }
.stats b { display: block; font-size: clamp(40px, 4.6vw, 58px); font-weight: 500; letter-spacing: -0.05em; line-height: 1.05; color: var(--ink-4); }
.stats div:first-child b { color: var(--ink); }
.stats span { display: block; max-width: 20ch; margin: 8px auto 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; gap: 28px 0; margin: 48px calc(var(--gutter) * -1) 64px; } }

/* -------------------------------------------------------------- categories */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 0 104px; }
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  --c: var(--accent);
}
.cat-auto { --c: var(--c-auto); }
.cat-db { --c: var(--c-db); }
.cat-mon { --c: var(--c-mon); }
.cat::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  opacity: .22;
  transition: opacity .25s;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat:hover::before { opacity: .38; }
.cat-count { color: var(--c); }
.cat h3 { font-size: 26px; letter-spacing: -0.035em; margin: 14px 0 10px; }
.cat p { font-size: 15px; line-height: 1.55; color: var(--ink-3); margin: 0 0 22px; }
.cat-fig { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cat-fig b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr; padding-bottom: 72px; } }

/* ------------------------------------------------------------------ ledger */
.ledger { padding: 0 0 104px; }
.ledger-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.ledger-tabs[hidden] { display: none; }
.ledger-tabs button {
  font: 500 14px/1 var(--font-sans);
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s, box-shadow .15s;
}
.ledger-tabs button:hover { color: var(--ink); }
.ledger-tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.ledger-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.ledger-table { width: 100%; border-collapse: collapse; }
.ledger-table thead th { text-align: left; color: var(--ink-4); padding: 14px 22px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.ledger-table tbody tr { transition: background .15s; }
.ledger-table tbody tr:hover { background: #fafbfe; }
.ledger-table tbody tr[hidden] { display: none; }
.ledger-table tbody th, .ledger-table td { text-align: left; vertical-align: top; padding: 22px; border-bottom: 1px solid var(--line); }
.ledger-table tbody tr:last-child th, .ledger-table tbody tr:last-child td { border-bottom: 0; }
.ledger-table tbody th { width: 44%; font-weight: 400; }
.ledger-table tbody th a { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; transition: color .15s; }
.ledger-table tbody th a:hover { color: var(--accent); }
.lg-kind { display: block; color: var(--accent); margin: 7px 0 0; font-size: 10.5px; }
.lg-dek { display: block; font-size: 14px; line-height: 1.55; color: var(--ink-3); margin-top: 7px; max-width: 48ch; }
.lg-tool { display: block; font-size: 12.5px; color: var(--ink-4); margin-bottom: 5px; }
.lg-fig { display: block; font: 600 15px/1.3 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.lg-fig.win { color: var(--win); }
.lg-when { font: 400 11.5px/1.6 var(--font-mono); color: var(--ink-4); white-space: nowrap; }
@media (max-width: 760px) {
  .ledger-table thead { display: none; }
  .ledger-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
  .ledger-table tbody tr:last-child { border-bottom: 0; }
  .ledger-table tbody th, .ledger-table td { border: 0; padding: 0; }
  .ledger-table tbody th { grid-column: 1 / -1; width: auto; margin-bottom: 14px; }
  .ledger-table td.lg-when { grid-column: 1 / -1; margin-top: 10px; }
  .ledger-table td.lg-when::before { content: "checked "; }
  .ledger-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
}

.ref-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
@media (max-width: 760px) { .ref-list { grid-template-columns: 1fr; } }
.ref-head { grid-column: 1 / -1; color: var(--ink-4); margin: 0 0 2px; }
.ref-list a, .guide-card {
  display: block;
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.ref-list a:hover, .guide-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.ref-list a b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.ref-list a span { display: block; font-size: 14.5px; color: var(--ink-3); margin-top: 4px; }

.unit { padding: 0 0 104px; }
.unit .more { margin-top: 22px; }
.faq { padding: 0 0 104px; }
.faq-list { max-width: var(--col); }

/* ------------------------------------------------------------- listings */
.guide-grid, .card-grid { display: grid; gap: 16px; }
.guide-grid { grid-template-columns: 1fr 1fr; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .guide-grid, .card-grid { grid-template-columns: 1fr; } }
.guide-grid > .guide-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.guide-card .tag { display: block; color: var(--accent); margin: 0 0 10px; font-size: 10.5px; }
.guide-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 7px; }
.guide-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); margin: 0; }
.guide-card::after { content: "\2197"; position: absolute; top: 20px; right: 22px; font-family: var(--font-mono); color: var(--ink-4); transition: color .2s, transform .2s; }
.guide-card:hover::after { color: var(--accent); transform: translate(2px, -2px); }

/* ------------------------------------------------------------ spec sheets */
.specs { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 4px 20px; margin: 20px 0; box-shadow: var(--shadow-sm); }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.spec-row:first-child { border-top: 0; }
.spec-label { color: var(--ink-3); }
.spec-value { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }

/* --------------------------------------------------------------- the format */
.verdict-label { color: var(--ink-3); margin: 8px 0 12px; }
.verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 30px; }
.verdict > div {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.verdict > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.verdict > div:nth-child(2)::before { background: var(--win); }
.verdict > div:nth-child(3)::before { background: var(--warn); }
.verdict h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.verdict > div:nth-child(2) h3 { color: var(--win); }
.verdict > div:nth-child(3) h3 { color: var(--warn); }
.verdict p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }

.vs-scroll, .costmodel { overflow-x: auto; margin: 24px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.vs, .costmodel table { width: 100%; min-width: 540px; border-collapse: collapse; }
table.vs th, table.vs td, .costmodel th, .costmodel td { padding: 13px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
table.vs thead th, .costmodel thead th { border-top: 0; background: var(--bg-2); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
table.vs tbody tr:hover, .costmodel tbody tr:hover { background: #fafbfe; }
table.vs tbody th, .costmodel tbody th { width: 26%; font-size: 14px; font-weight: 500; color: var(--ink-3); }
table.vs td, .costmodel td { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.costmodel tr.total th, .costmodel tr.total td { background: var(--bg-2); font-weight: 600; color: var(--ink); }
.costmodel tr.total td { font-size: 14px; }
.costmodel tr.total td.win { color: var(--win); }
.article .vs-note, .article .cost-note { font: 400 12.5px/1.6 var(--font-mono); color: var(--ink-4); margin: 0 0 32px; }

/* ------------------------------------------------------------- task maths */
.taskmath { padding: 32px 28px 26px; margin: 0; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--bg-2), #fff); box-shadow: var(--shadow-sm); }
.tm-row { display: flex; align-items: center; }
.tm-chip { flex: 1 1 120px; min-width: 0; text-align: center; padding: 15px 8px; font-size: 14.5px; font-weight: 600; border-radius: 12px; background: #fff; box-shadow: var(--shadow), 0 0 0 1px rgba(91, 76, 245, .25); color: var(--ink); }
.tm-chip em { display: block; font-family: var(--font-mono); font-style: normal; font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.tm-chip.tm-trigger { box-shadow: 0 0 0 1px var(--line-2); color: var(--ink-3); background: var(--bg-2); }
.tm-chip.tm-trigger em { color: var(--ink-4); }
.tm-arrow { flex: 0 0 28px; height: 2px; background: linear-gradient(90deg, var(--line-2), var(--accent)); position: relative; }
.tm-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
@media (max-width: 680px) {
  .tm-row { flex-direction: column; align-items: stretch; }
  .tm-arrow { flex: 0 0 22px; width: 2px; height: 22px; margin: 0 auto; background: linear-gradient(180deg, var(--line-2), var(--accent)); }
  .tm-arrow::after { right: auto; left: -4px; top: auto; bottom: -1px; border: 0; border-top: 7px solid var(--accent); border-left: 5px solid transparent; border-right: 5px solid transparent; }
}
.tm-eq { display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.tm-eq b { color: var(--ink-4); font-weight: 400; }
.tm-eq strong { font-weight: 600; font-size: 26px; letter-spacing: -.04em; color: var(--warn); }
.taskmath figcaption { font-size: 13.5px; color: var(--ink-3); text-align: center; margin-top: 12px; }

/* -------------------------------------------------------------------- faq */
.faq-item { border-top: 1px solid var(--line); padding: 24px 0; max-width: 80ch; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.faq-item p { font-size: 15.5px; line-height: 1.65; color: var(--ink-3); margin: 0; }

/* ---------------------------------------------------------------- article */
.breadcrumb, .article-hero, .article, .byline-end, .glance { max-width: var(--col); }
.breadcrumb { margin: 0 auto; padding: 40px 0 0; font: 400 12.5px/1.5 var(--font-mono); color: var(--ink-4); }
.breadcrumb a { color: var(--ink-3); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.article-hero { position: relative; margin: 0 auto; padding: 26px 0 26px; }
.article-hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.04em; margin: 0 0 18px; text-wrap: balance; }
.article-hero .dek { font-size: 20px; line-height: 1.5; letter-spacing: -0.015em; color: var(--ink-3); margin: 0 0 22px; }
.article-hero .byline { font: 400 12.5px/1.5 var(--font-mono); color: var(--ink-4); margin: 0; }
.article-hero .byline a { color: var(--ink-2); }
.article-hero .byline a:hover { color: var(--accent); }

/* at a glance: the summary strip under the headline */
.glance {
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}
.glance div { min-width: 0; }
.glance dt { color: var(--ink-4); font-size: 10px; margin: 0 0 6px; }
.glance dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.glance dd a { color: var(--accent); }
.glance-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.glance-tools span { padding: 2px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); font-size: 12.5px; }
.glance[data-cat="automation"] dd a { color: var(--c-auto); }
.glance[data-cat="databases"] dd a { color: var(--c-db); }
.glance[data-cat="monitoring"] dd a { color: var(--c-mon); }
@media (max-width: 760px) { .glance { grid-template-columns: 1fr 1fr; } .glance div:nth-child(3) { grid-column: 1 / -1; } }

.article { margin: 0 auto; padding-bottom: 80px; }
.article h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.035em; margin: 56px 0 14px; }
.article h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 30px 0 10px; }
.article p, .article li { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--accent); }
.article strong, .article b { color: var(--ink); font-weight: 600; }
.article a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(91, 76, 245, .3); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.article a:hover { text-decoration-color: var(--accent); }
.article .guide-card, .article .guide-card:hover { text-decoration: none; color: inherit; }
.article code { font-family: var(--font-mono); font-size: .86em; padding: 2px 6px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); }
.article .note {
  position: relative;
  margin: 28px 0;
  padding: 16px 20px 16px 50px;
  border-radius: 12px;
  background: var(--warn-soft);
  font-size: 16px;
  line-height: 1.65;
  color: #6b3418;
}
.article .note::before {
  content: "!";
  position: absolute;
  left: 18px; top: 18px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 700 12px/1 var(--font-mono);
  color: #fff;
  background: var(--warn);
}
.article figure.photo, .shots figure { margin: 28px 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11, 34, 64, .06); }
.article figure.photo .inner { padding: 0; }
.article figure.photo img { width: 100%; }
.article figure.photo figcaption { font-size: 13px; color: var(--ink-3); margin: 0; padding: 11px 14px; border-top: 1px solid var(--line); background: var(--bg-2); }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 34px; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }
.shots figure { display: flex; flex-direction: column; margin: 0; }
.shots img { width: 100%; aspect-ratio: 1400 / 538; height: auto; object-fit: cover; object-position: left top; }
.shots--one { grid-template-columns: 1fr; }
.shots--one figure { max-width: 100%; }
.shots figcaption { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); padding: 10px 12px; margin-top: auto; border-top: 1px solid var(--line); background: var(--bg-2); }
.shots figcaption b { color: var(--ink-2); font-weight: 600; }

.readnext { max-width: none; margin: 48px 0 0; }
.readnext h2 { color: var(--ink-4); margin: 0 0 14px; font-size: 11px; letter-spacing: .08em; }
.readnext .guide-card h3 { font-size: 17px; }
.readnext .guide-card p { font-size: 14px; }

.byline-end { margin: 40px auto 0; padding: 18px 22px; border-radius: 14px; background: var(--bg-2); font-size: 14.5px; color: var(--ink-3); }
.byline-end a { color: var(--accent); }

/* components inside .article keep their own type */
.article .verdict h3 { margin: 0 0 10px; font-size: 11px; letter-spacing: .08em; }
.article .verdict p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.article .guide-card h3 { margin: 0 0 7px; font-size: 17px; }
.article .guide-card p { font-size: 14px; line-height: 1.55; color: var(--ink-3); margin: 0; }
.article .faq-item h3 { margin: 0 0 8px; font-size: 18px; }
.article .faq-item p { font-size: 15.5px; line-height: 1.65; color: var(--ink-3); margin: 0; }
.article .spec-row { font-size: 15px; }
.article .specs { margin: 20px 0 26px; }

/* on this page: pinned beside the reading column where there is room */
.toc { display: none; }
@media (min-width: 1280px) {
  .toc {
    display: block;
    position: fixed;
    top: 128px;
    left: calc(50% + var(--col) / 2 + 40px);
    width: 190px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-left: 16px;
    border-left: 1px solid var(--line);
    z-index: 5;
  }
  .toc p { color: var(--ink-4); margin: 0 0 12px; font-size: 10.5px; }
  .toc a { position: relative; display: block; padding: 5px 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); transition: color .15s; }
  .toc a:hover { color: var(--ink); }
  .toc a[aria-current] { color: var(--accent); font-weight: 500; }
  .toc a[aria-current]::before { content: ""; position: absolute; left: -17px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent); }
}

/* group headings on the comparisons index */
.guide-group { margin-bottom: 48px; }
.guide-group:last-of-type { margin-bottom: 10px; }
.group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.group-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.group-head p { font-size: 14.5px; color: var(--ink-3); margin: 0; }
.shell:has(.guide-group) .breadcrumb,
.shell:has(.guide-group) .article-hero { margin-left: 0; }

/* ---------------------------------------------------------------- the CTA */
.cta {
  position: relative;
  max-width: var(--wrap);
  width: calc(100% - 2 * var(--gutter));
  margin: 24px auto 80px;
  padding: 64px 32px;
  border-radius: 24px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -10% -60% -10%;
  height: 120%;
  background: var(--grad);
  opacity: .55;
  filter: blur(60px);
  border-radius: 50%;
}
.cta-icon { width: 60px; height: 60px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 30px -10px rgba(0, 0, 0, .6); color: #fff; }
.cta-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 14px; }
.cta-text { font-size: 17px; line-height: 1.6; color: #c3cde0; max-width: 52ch; margin: 0 auto 28px; }
.cta .pill-solid { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.cta .pill-solid:hover { background: #f1f3ff; }

/* ----------------------------------------------------------------- footer */
.site-footer { margin-top: auto; background: var(--bg-2); color: var(--ink-3); border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 60px var(--gutter) 44px; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.footer-about p { font-size: 14.5px; line-height: 1.65; max-width: 40ch; margin: 16px 0 0; }
.footer-col p { color: var(--ink-4); margin: 0 0 12px; font-size: 10.5px; }
.footer-col a { display: block; font-size: 14.5px; padding: 5px 0; color: var(--ink-2); transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.copyright {
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--wrap) - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  font: 400 12px/1.5 var(--font-mono);
  color: var(--ink-4);
}
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 3px var(--win-soft); }

@media (prefers-reduced-motion: reduce) {
  .brand-caret { animation: none; }
  .ref-list a, .guide-card, .pill, .cat { transition: none; }
  .ref-list a:hover, .guide-card:hover, .cat:hover { transform: none; }
}
