/* guide.css — shared design system for the long-form guide pages
   (compare / ci-cost / macos-runner). Tokens and type scale are lifted
   verbatim from index.html so the guides and the landing page are one
   surface. Guides deliberately omit the particle canvas: these are
   text-first reference pages, and the hero engine is the landing page's
   own signature.
   Fonts: Inter, JetBrains Mono, Fraunces — SIL Open Font License,
   self-hosted alongside index.html. No external requests, no trackers. */

@font-face {
  font-family: "Inter";
  src: url("inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("jetbrains-mono-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fraunces-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #000;
  --panel: rgba(6, 7, 8, 0.6);
  --bone: #cfd3d9;
  --bone-deep: #8b9199;
  --ink: #f0f2f5;
  --ink-2: rgba(232, 236, 242, 0.72);
  --ink-3: rgba(232, 236, 242, 0.66);
  --ink-4: rgba(232, 236, 242, 0.66);
  --hair: rgba(216, 224, 235, 0.11);
  --hair-2: rgba(216, 224, 235, 0.2);
  --red: #e5484d;
  --red-hi: #f2555a;
  --font: "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --disp: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #fff; color: #000; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.6); outline-offset: 3px; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 26px; }

/* ============ nav — same structure as index.html, always solid ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 18px 26px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; align-self: center; }
.brand-svg { height: 20px; width: auto; display: block; }
nav .nl { display: flex; gap: 20px; }
nav .nl a { transition: color 0.15s; }
nav .nl a::after { content: ""; display: block; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.2s var(--ease); }
nav .nl a:hover { color: var(--bone); }
nav .nl a:hover::after { transform: scaleX(1); }
nav .nl a[aria-current="page"] { color: var(--bone); }
nav .nl a[aria-current="page"]::after { transform: scaleX(1); }
nav .right { margin-left: auto; display: flex; gap: 18px; align-items: baseline; }
.dl {
  color: #000; background: var(--ink);
  padding: 6px 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 0.15s, box-shadow 0.2s;
}
.dl:hover { background: #fff; box-shadow: 0 0 28px rgba(255, 255, 255, 0.35); }
@media (max-width: 760px) { nav .nl { display: none; } }

/* ============ page header ============ */
.phead { padding: 132px 0 0; border-bottom: 1px solid var(--hair); }
.phead .inner { padding-bottom: 54px; }
.crumb {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.crumb a { color: var(--bone-deep); }
.crumb a:hover { color: var(--bone); }
.crumb .sep { color: var(--red); margin: 0 8px; }
h1 {
  margin-top: 22px;
  font-family: var(--disp);
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 380;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 em { font-style: italic; font-weight: 480; color: var(--red-hi); }
.phead .lede { margin-top: 20px; max-width: 660px; font-size: 15.5px; color: var(--ink-2); }
.phead .lede b { color: var(--ink); font-weight: 560; }
.stamp {
  margin-top: 26px;
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  border: 1px solid var(--hair-2);
  border-radius: 2px;
  padding: 5px 11px;
}
.stamp b { color: var(--bone); font-weight: 500; }

/* ============ sections ============ */
section { padding: 76px 0 0; }
.sn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--red-hi);
  text-transform: lowercase;
}
h2 {
  margin-top: 16px;
  font-family: var(--disp);
  font-size: clamp(24px, 3.1vw, 34px);
  font-weight: 380;
  letter-spacing: -0.01em;
  line-height: 1.14;
  color: var(--ink);
}
h2 em { font-style: italic; font-weight: 480; color: var(--red-hi); }
h3 {
  margin-top: 40px;
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 460;
  color: var(--ink);
  letter-spacing: 0;
}
h4 {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
}
.lede { margin-top: 14px; max-width: 660px; font-size: 15px; color: var(--ink-2); }
.lede b { color: var(--ink); font-weight: 560; }
p { margin-top: 14px; max-width: 68ch; }
p b, li b { color: var(--ink); font-weight: 560; }
p a, li a, .tblnote a, dd a {
  color: var(--bone);
  border-bottom: 1px solid var(--hair-2);
  transition: color 0.15s, border-color 0.15s;
}
p a:hover, li a:hover, .tblnote a:hover, dd a:hover { color: var(--ink); border-bottom-color: var(--red); }
ul, ol { margin-top: 14px; max-width: 68ch; padding-left: 0; list-style: none; }
ol { counter-reset: ol; }
li { position: relative; padding: 5px 0 5px 24px; color: var(--ink-3); }
ul > li::before { content: "+"; position: absolute; left: 0; color: var(--bone-deep); font-family: var(--mono); }
ol > li::before {
  counter-increment: ol;
  content: counter(ol);
  position: absolute; left: 0;
  color: var(--red); font-family: var(--mono); font-size: 11px; top: 7px;
}

/* ============ tables ============ */
.tscroll { overflow-x: auto; margin-top: 34px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 680px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-4);
  border-bottom-color: var(--hair-2);
}
td { color: var(--ink-3); }
td.pr { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
td.cfg { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; }
tr.us td { color: var(--ink); }
tr.us td.pr .pb { color: var(--red-hi); font-weight: 700; }
.open { color: var(--red-hi); }
.soldout { color: var(--bone-deep); }
/* Source credit under a table cell's label. Block-level by default so it
   sits on its own line instead of running into the provider name; the
   inline variant is for the ≈EUR notes inside a price cell. */
.src {
  display: block;
  margin-top: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--bone-deep); white-space: nowrap;
}
td.pr .src { display: inline; margin-top: 0; }
.src a { color: var(--bone-deep); border-bottom: 1px solid var(--hair); }
.src a:hover { color: var(--bone); border-bottom-color: var(--red); }
.src .d { display: block; color: var(--ink-4); opacity: 0.75; }
.tblnote { font-size: 12px; color: var(--ink-4); margin-top: 16px; max-width: 78ch; line-height: 1.7; }

/* ============ note / caveat panel ============ */
.note {
  margin-top: 30px;
  border-left: 2px solid var(--red);
  background: var(--panel);
  padding: 20px 24px;
  max-width: 74ch;
}
.note h4 { margin-top: 0; }
.note p:first-of-type { margin-top: 10px; }
.note p { font-size: 13.5px; color: var(--ink-3); }
.note ul { margin-top: 10px; }
.note li { font-size: 13.5px; }

/* ============ code ============ */
code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--bone);
  background: rgba(216, 224, 235, 0.07);
  border-radius: 2px;
  padding: 1px 5px;
}
pre {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 18px 20px;
  overflow-x: auto;
  max-width: 100%;
}
pre code {
  background: none; padding: 0; border-radius: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--bone);
  display: block;
  white-space: pre;
}
pre code .c { color: var(--bone-deep); font-style: italic; }
pre code .p { color: var(--red-hi); }

/* ============ definition rows ============ */
dl { margin-top: 24px; border-top: 1px solid var(--hair); max-width: 74ch; }
dt {
  margin-top: 20px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone);
}
dd { margin: 8px 0 20px; font-size: 13.5px; color: var(--ink-3); border-bottom: 1px solid var(--hair); padding-bottom: 20px; }

/* ============ calculator ============ */
.calc {
  margin-top: 40px;
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  background: var(--panel);
  padding: 30px 28px;
}
.calc-row { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-end; }
.field { flex: 1 1 260px; min-width: 0; }
.field label {
  display: block;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 12px;
}
.field .hint { display: block; margin-top: 8px; font-family: var(--font); font-size: 11.5px; letter-spacing: 0; text-transform: none; color: var(--ink-4); }
input[type="number"], select {
  width: 100%;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--hair-2);
  border-radius: 2px;
  padding: 11px 13px;
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--bone-deep) 50%), linear-gradient(135deg, var(--bone-deep) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
select option { background: #0a0b0c; color: var(--ink); }
input[type="number"]:focus, select:focus { outline: none; border-color: var(--red); }
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin-top: 4px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: var(--hair-2); border-radius: 2px;
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--hair-2); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px; margin-top: -6.5px;
  border-radius: 50%; background: var(--ink);
  border: 0; cursor: pointer;
  transition: background 0.15s, box-shadow 0.2s;
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%; background: var(--ink);
  border: 0; cursor: pointer;
}
input[type="range"]:hover::-webkit-slider-thumb { background: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, 0.45); }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.5); }

.out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.card {
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  padding: 22px 22px 24px;
  background: rgba(0, 0, 0, 0.4);
}
.card.win { border-color: var(--red); }
.card .ct {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-4);
}
.card .cv {
  margin-top: 12px;
  font-family: var(--disp); font-size: clamp(28px, 4vw, 38px);
  font-weight: 430; letter-spacing: -0.01em; color: var(--ink);
  line-height: 1.05;
}
.card.win .cv { color: var(--red-hi); }
.card .cs { margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em; }
.verdict {
  margin-top: 20px;
  border: 1px solid var(--hair);
  border-left: 2px solid var(--red);
  background: rgba(0, 0, 0, 0.4);
  padding: 18px 22px;
  font-size: 14px;
  color: var(--ink-2);
}
.verdict b { color: var(--ink); font-weight: 560; }
.verdict .big { color: var(--red-hi); font-weight: 700; }
@media (max-width: 620px) { .out { grid-template-columns: 1fr; } }

/* ============ waitlist cta ============ */
.cta {
  margin-top: 96px;
  border-top: 1px solid var(--hair);
  padding: 74px 0 0;
  text-align: center;
}
.cta .sn { text-transform: none; letter-spacing: 0.4em; }
.cta h2 {
  margin-top: 20px;
  font-size: clamp(28px, 4.2vw, 44px);
}
.cta p { margin: 18px auto 0; max-width: 480px; font-size: 14.5px; color: var(--ink-2); }
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.btn-w {
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 700; color: #000;
  background: var(--ink);
  padding: 14px 24px;
  letter-spacing: 0.05em;
  transition: background 0.15s, box-shadow 0.25s, transform 0.15s var(--ease);
}
.btn-w:hover { background: #fff; box-shadow: 0 0 44px rgba(255, 255, 255, 0.4); transform: translateY(-1px); }
.btn-g {
  font-family: var(--mono);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  padding: 14px 22px;
  border: 1px solid var(--hair-2);
  background: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.btn-g:hover { color: var(--bone); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 24px rgba(255, 255, 255, 0.1); }
.heronote {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}

/* ============ footer ============ */
footer {
  margin-top: 88px;
  background: var(--bg);
  border-top: 1px solid var(--hair);
  padding: 40px 0 48px;
  font-size: 12.5px; color: var(--ink-4);
}
footer .fnav { display: flex; gap: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; flex-wrap: wrap; }
footer .fnav a::before { content: "/"; color: var(--bone-deep); margin-right: 2px; }
footer .fnav a:hover { color: var(--bone); }
footer .fine { margin-top: 18px; max-width: 78ch; line-height: 1.7; }
