/* Retensity: landing page.
   Dark stage. Red and green mean
   removed/added or before/after, never decoration. */

:root {
  /* the page's tint: every surface, rule and glow reads from these.
     Graphite: a true grey-black under white light, with no hue of its
     own, so green is left to mean "saved" and red "removed". */
  --bg: #0a0a0a;
  --bg-rgb: 10, 10, 10;
  --bg-tint: #0f0f0f;
  --panel: #141414;
  --panel-2: #191919;
  --panel-top: #131313;
  --panel-bottom: #0d0d0d;
  --tint: 240, 240, 236;
  --glow: 235, 235, 228;
  --glow-deep: 110, 110, 104;
  --line: rgba(var(--tint), 0.08);
  --line-2: rgba(var(--tint), 0.15);
  --text: #b8b8b4;
  --dim: #82827e;
  --bright: #f4f1e7;

  --paper: #f3efe2;
  --paper-ink: #1b1a14;

  --add: #63d595;
  --add-bg: rgba(99, 213, 149, 0.09);
  --del: #f08d81;
  --del-bg: rgba(240, 141, 129, 0.08);
  --amber: #e3bf66;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--paper); color: var(--paper-ink); }

a { color: inherit; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- logo marks (single-colour, take the text colour) ---------- */

.mark {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  vertical-align: -0.16em;
}
.mark-n8n { -webkit-mask-image: url(assets/logos/n8n.svg); mask-image: url(assets/logos/n8n.svg); width: 1.9em; height: 1.3em; }
.mark-posthog { -webkit-mask-image: url(assets/logos/posthog.svg); mask-image: url(assets/logos/posthog.svg); }
.mark-metabase { -webkit-mask-image: url(assets/logos/metabase.svg); mask-image: url(assets/logos/metabase.svg); }
.mark-chatwoot { -webkit-mask-image: url(assets/logos/chatwoot.svg); mask-image: url(assets/logos/chatwoot.svg); }
.mark-grafana { -webkit-mask-image: url(assets/logos/grafana.svg); mask-image: url(assets/logos/grafana.svg); }
.mark-twenty { -webkit-mask-image: url(assets/logos/twenty.svg); mask-image: url(assets/logos/twenty.svg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font: 500 15.5px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: inset 0 -2px 0 rgba(27, 26, 20, 0.14), 0 8px 30px -10px rgba(243, 239, 226, 0.45);
}
.btn-primary:hover { background: #fffdf5; }
.btn-ghost {
  color: var(--bright);
  border: 1px solid var(--line-2);
  background: rgba(var(--tint), 0.03);
}
.btn-ghost:hover { border-color: rgba(var(--tint), 0.32); background: rgba(var(--tint), 0.06); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; box-shadow: inset 0 -2px 0 rgba(27, 26, 20, 0.14); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 17px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(var(--bg-rgb), 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark {
  font: 500 17px/1 var(--mono);
  letter-spacing: -0.02em;
  color: var(--bright);
  text-decoration: none;
}
.wordmark span { color: var(--dim); }
/* The one decorative green: the full stop, the same square as in the mark. */
.wordmark .dot { color: var(--add); }
.nav-links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text);
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}
.nav-links a:hover { color: var(--bright); background: rgba(var(--tint), 0.06); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(36px, min(5.4vw, 7vh), 76px) 0 clamp(64px, 8vw, 104px);
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--nav-h)) 0 0;
  z-index: -1;
  pointer-events: none;
}
/* light from above the headline, and a green pool under the stage */
.hero::before {
  background:
    radial-gradient(52% 34% at 50% 0%, rgba(243, 239, 226, 0.10), transparent 70%),
    radial-gradient(50% 30% at 50% 72%, rgba(var(--glow), 0.26), transparent 74%),
    radial-gradient(74% 42% at 50% 77%, rgba(var(--glow-deep), 0.34), transparent 76%);
}
/* ledger ruling, fading out from the centre */
.hero::after {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(62% 56% at 50% 34%, #000 20%, transparent 78%);
  mask-image: radial-gradient(62% 56% at 50% 34%, #000 20%, transparent 78%);
  opacity: 0.75;
}

.hero-copy { text-align: center; }

h1 {
  font: 400 clamp(48px, min(7.6vw, 12vh), 100px)/0.98 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.035em;
  color: var(--bright);
  text-wrap: balance;
}
.lede {
  max-width: 40em;
  margin: clamp(18px, 2.2vw, 26px) auto 0;
  font-size: clamp(17px, 1.55vw, 20.5px);
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.assurances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-top: clamp(30px, 3.6vw, 46px);
  font-size: 14px;
  color: var(--dim);
}
.assurances li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.assurances li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    var(--add)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.6 7.3l2.2 2.2 4.6-5' fill='none' stroke='%230a0a0a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* ---------- the stage: a bill shown as a diff, with what was measured ---------- */

.stage {
  display: grid;
  max-width: 1100px;
  margin: 14px auto 0;
}
.stage > .panel { grid-area: 1 / 1; visibility: hidden; }
.stage > .panel.is-active { visibility: visible; }

/* the showcase: a charcoal slab with a hard edge and a quiet glow
   under it, enough to lift it off the page without softening it */
.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow:
    0 0 0 1px rgba(var(--tint), 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 40px 80px -28px #000,
    0 26px 120px -34px rgba(var(--glow), 0.26);
  --text: #cfcfca;
  --dim: #94948f;
  --line: rgba(var(--tint), 0.11);
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--bright);
}
.crumb b { font-weight: 400; color: var(--dim); margin: 0 -4px; }
.crumb .mark { color: var(--bright); }
.crumb-link {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}
.crumb-link:hover { color: var(--bright); text-decoration: underline; }
.panel-bar .pill { margin-left: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill-ok { color: var(--add); background: var(--add-bg); box-shadow: inset 0 0 0 1px rgba(99, 213, 149, 0.22); }
.pill-ok::before { box-shadow: 0 0 0 3px rgba(99, 213, 149, 0.18); }
.pill-wait { color: var(--amber); background: rgba(227, 191, 102, 0.08); box-shadow: inset 0 0 0 1px rgba(227, 191, 102, 0.2); }

.panel-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
}
.panel-main { padding: 30px 30px 32px; }
.panel-title {
  max-width: 21em;
  font: 400 clamp(22px, 2.3vw, 29px)/1.2 var(--serif);
  letter-spacing: -0.015em;
  color: var(--bright);
  text-wrap: balance;
}

.bill {
  margin-top: 26px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2);
  background: rgba(var(--tint), 0.025);
  font: 400 14.5px/1 var(--mono);
}
.bill-head,
.bill-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.1fr) minmax(0, 1fr) 92px;
  align-items: center;
  height: 42px;
  padding-right: 18px;
}
.bill-head {
  height: 36px;
  font-size: 12px;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.bill-head span,
.bill-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-head span:last-child,
.bill-row span:last-child { text-align: right; }
.bill-row span:first-child { text-align: center; font-weight: 500; }
.bill-row.del { background: var(--del-bg); color: #f3b3aa; }
.bill-row.del span:first-child { color: var(--del); }
.bill-row.del span:nth-child(4) { text-decoration: line-through; text-decoration-color: rgba(240, 141, 129, 0.55); }
.bill-row.add { background: var(--add-bg); color: #b9ecd0; }
.bill-row.add span:first-child { color: var(--add); }
.bill-row.add span:last-child { color: var(--add); font-weight: 500; }

.note {
  padding: 14px 18px 16px 34px;
  border-block: 1px solid var(--line);
  background: rgba(var(--tint), 0.025);
  font: 400 14px/1.5 var(--sans);
  color: var(--text);
}
.note-by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bright);
}
.avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  /* The mark on paper; the letter in the markup is only a fallback. */
  background: var(--paper) url("assets/logo-light.svg") center / cover;
  color: transparent;
  font: 600 12px/1 var(--mono);
  font-style: normal;
  overflow: hidden;
}

.measured {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border-left: 1px solid var(--line);
  border-radius: 0 0 12px 0;
  background: rgba(99, 213, 149, 0.045);
}
/* a finding that is not a saving: no green */
.measured.is-plain { background: rgba(var(--tint), 0.03); }
.measured.is-plain .measured-num { color: var(--bright); }
.measured-num.is-long { font-size: clamp(50px, 4.7vw, 68px); line-height: 0.92; }
.measured-label { font-size: 14px; color: var(--dim); }
.measured-num {
  margin-top: 16px;
  font: 400 clamp(68px, 6.6vw, 96px)/0.84 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.045em;
  color: var(--add);
}
.measured-unit { margin-top: 14px; font-size: 15.5px; color: var(--text); }
/* what the measured unit saving comes to at a stated volume: arithmetic, not a claim about that company */
.measured-scale { margin-top: 16px; font-size: 14px; line-height: 1.4; color: var(--dim); }
.measured-scale b { display: block; font: 500 19px/1.25 var(--sans); letter-spacing: -0.015em; color: var(--bright); }
.measured dl {
  margin: 28px 0 26px;
  border-top: 1px solid var(--line);
  font: 400 13.5px/1 var(--mono);
}
.measured dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.measured dt { color: var(--dim); }
.measured dd { color: var(--bright); text-align: right; }
/* the way to the full case, now that the logos switch examples */
.measured a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: auto;
  border-radius: 999px;
  background: rgba(var(--tint), 0.08);
  box-shadow: inset 0 0 0 1px rgba(var(--tint), 0.24);
  font: 500 14.5px/1 var(--sans);
  color: var(--bright);
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.measured a:hover { background: rgba(var(--tint), 0.15); box-shadow: inset 0 0 0 1px rgba(var(--tint), 0.4); }

/* the bill is read line by line, then the result: once on load, and again each time an example is chosen */
@keyframes line-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.panel.is-active .bill-row, .panel.is-active .note { animation: line-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(200ms + var(--i) * 110ms); }
.panel.is-active .measured-num, .panel.is-active .measured-unit, .panel.is-active .measured dl { animation: line-in 450ms cubic-bezier(0.2, 0.7, 0.2, 1) 620ms backwards; }

/* ---------- logos: the tabs that choose the example below ---------- */

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  margin-top: clamp(40px, 4.8vw, 64px);
}
.logos p { padding-bottom: 3px; font-size: 14.5px; color: var(--dim); white-space: nowrap; }
.logos ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px clamp(4px, 1.4vw, 18px);
}
.logos a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 14px;
  font: 600 clamp(17px, 1.6vw, 21px)/1 var(--sans);
  letter-spacing: -0.03em;
  color: var(--bright);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 160ms ease;
}
.logos a:hover { opacity: 0.8; }
.logos a[aria-current="true"] { opacity: 1; }
.logos a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--bright);
}

/* ---------- sections ---------- */

.section { padding: clamp(80px, 10vw, 136px) 0; border-top: 1px solid var(--line); }
.section-tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg) 85%); }

.section-head { max-width: 46rem; }
.section-head h2,
.closing h1, .closing h2 {
  font: 400 clamp(38px, 5vw, 64px)/1.02 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
  color: var(--bright);
  text-wrap: balance;
}
.section-head p {
  margin-top: 20px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text);
  text-wrap: pretty;
}
.section-head .btn { margin-top: 30px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split > .section-head { position: sticky; top: calc(var(--nav-h) + 40px); }

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
  counter-reset: none;
}
.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.step-n {
  font: 300 italic 64px/0.9 var(--serif);
  font-variation-settings: "opsz" 72;
  color: var(--paper);
  opacity: 0.9;
}
.steps h3 {
  margin-top: 26px;
  font: 500 22px/1.2 var(--sans);
  letter-spacing: -0.02em;
  color: var(--bright);
}
.steps p { margin-top: 10px; font-size: 16px; }
.steps .step-out {
  margin-top: auto;
  padding-top: 22px;
  font-size: 14px;
  color: var(--dim);
}
.steps .step-out::before {
  content: "";
  display: block;
  margin-bottom: 16px;
  border-top: 1px dashed var(--line-2);
}
.step-out b { font-weight: 500; color: var(--bright); }

/* ---------- case studies ---------- */

.findings {
  margin-top: clamp(36px, 4.6vw, 56px);
  border-top: 1px solid var(--line-2);
}
.finding {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 210px 176px 64px;
  align-items: center;
  gap: 8px 28px;
  padding: 22px 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}
.finding:hover { background: rgba(var(--tint), 0.04); }
.finding-who { display: grid; gap: 9px; }
.case-co {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 19px/1 var(--sans);
  letter-spacing: -0.03em;
  color: var(--bright);
}
.tag {
  font: 400 12.5px/1 var(--mono);
  color: var(--add);
}
.tag-alt { color: var(--dim); }
.finding-title {
  font-size: 17px;
  line-height: 1.4;
  color: var(--bright);
  text-decoration: none;
  text-wrap: pretty;
}
/* the whole row opens the case page; the pull request number stays its own link */
.finding-title::after { content: ""; position: absolute; inset: 0; }
.finding-title:focus-visible { outline: none; }
.finding:has(.finding-title:focus-visible) { outline: 2px solid var(--paper); outline-offset: -2px; }
.finding-num {
  font: 400 34px/1 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
  color: var(--bright);
}
.finding-num small {
  display: block;
  margin-top: 7px;
  font: 400 13px/1.35 var(--sans);
  letter-spacing: 0;
  color: var(--dim);
}
.finding .pill { justify-self: start; }
.finding-pr {
  position: relative;
  z-index: 1;
  justify-self: end;
  font: 400 13px/1 var(--mono);
  color: var(--dim);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}
.finding-pr:hover { color: var(--bright); }

/* ---------- row lists: what we find, pricing ---------- */

.rows { border-top: 1px solid var(--line-2); }
.rows > .row {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.rows > .row dt {
  font: 500 18px/1.35 var(--sans);
  letter-spacing: -0.015em;
  color: var(--bright);
}
.rows > .row dd { font-size: 16.5px; }
.rows > .row dd b { font-weight: 500; color: var(--bright); }
.seen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--dim);
}
.seen a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-weight: 500;
  color: var(--bright);
  text-decoration: none;
}
.seen a:hover { background: rgba(var(--tint), 0.06); }

/* pricing example: how one saving is split, month by month */
.example {
  margin-top: 34px;
  padding: 22px 22px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.example figcaption { font-size: 15px; font-weight: 500; color: var(--bright); }
.ex-row { margin-top: 20px; }
.ex-row > span { display: block; font: 400 12.5px/1 var(--mono); color: var(--dim); }
.ex-bar { display: flex; gap: 3px; height: 42px; margin-top: 9px; }
.ex-bar i {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 13px;
  border-radius: 9px;
  font: 500 13.5px/1 var(--sans);
  white-space: nowrap;
}
.ex-bar .you { flex: 0 0 calc(var(--w) - 2px); background: var(--add); color: #06130c; }
.ex-bar .us { flex: 1; background: rgba(var(--tint), 0.09); color: var(--bright); }

.rows-more { margin-top: 20px; font-size: 14.5px; color: var(--dim); }
.rows-more a { color: var(--text); text-underline-offset: 3px; }
.rows-more a:hover { color: var(--bright); }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font: 500 19px/1.3 var(--sans);
  letter-spacing: -0.015em;
  color: var(--bright);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--dim), var(--dim)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--dim), var(--dim)) center / 1.5px 100% no-repeat;
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 38em; padding: 0 40px 24px 0; font-size: 16.5px; }

/* ---------- closing ---------- */

.closing {
  position: relative;
  padding: clamp(96px, 12vw, 168px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
  isolation: isolate;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 70% at 50% 100%, rgba(var(--glow), 0.28), transparent 72%);
}
.closing h1, .closing h2 { font-size: clamp(42px, 6.4vw, 84px); }
.closing p { max-width: 34em; margin: 24px auto 0; font-size: 18px; text-wrap: pretty; }
.closing .btn { margin-top: 36px; }
.closing-mail {
  display: block;
  width: max-content;
  margin: 18px auto 0;
  font: 400 14px/1 var(--mono);
  color: var(--dim);
  text-underline-offset: 4px;
}
.closing-mail:hover { color: var(--bright); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--dim); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--bright); }
.footer p { margin-left: auto; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .panel-body { grid-template-columns: 1fr; }
  .panel-main { padding: 26px 24px 28px; }
  .measured { padding: 26px 24px 28px; border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
  .finding { grid-template-columns: 130px minmax(0, 1fr) 170px; }
  .finding .pill { grid-column: 2; }
  .finding-pr { grid-column: 3; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-bottom: 24px; }
  .split { grid-template-columns: 1fr; }
  .split > .section-head { position: static; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  /* phones: the section links leave the bar (the footer has them), so it stays one row */
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .assurances { flex-direction: column; align-items: center; }
  .panel-bar { flex-wrap: wrap; height: auto; padding: 14px 18px; gap: 8px 14px; }
  .panel-bar .pill { margin-left: 0; }
  .panel-main, .measured { padding: 22px 16px 24px; }
  .bill { font-size: 12px; letter-spacing: -0.02em; }
  .bill-head, .bill-row { grid-template-columns: 20px minmax(0, 1.25fr) minmax(0, 0.9fr) 70px; padding-right: 8px; }
  .panel-main { padding-inline: 12px; }
  .note { padding-left: 16px; }
  .logos p { flex-basis: 100%; padding-bottom: 0; text-align: center; }
  .logos ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0 2px; }
  .logos a { gap: 7px; padding: 10px 7px 13px; font-size: 14.5px; }
  .logos a[aria-current="true"]::after { left: 7px; right: 7px; }
  .finding { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 20px 4px; }
  .finding-who { display: flex; align-items: center; gap: 12px; }
  .finding-title { grid-column: 1 / -1; grid-row: 2; }
  .finding-num { grid-column: 1 / -1; grid-row: 3; font-size: 30px; }
  .finding .pill { grid-column: 1; grid-row: 4; }
  .finding-pr { grid-column: 2; grid-row: 4; }
  .rows > .row { grid-template-columns: 1fr; }
  .footer p { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- case study pages ---------- */

.nav-links a[aria-current] { color: var(--bright); }

.case-hero {
  position: relative;
  padding: clamp(36px, 5vw, 60px) 0 clamp(44px, 6vw, 72px);
  isolation: isolate;
}
.case-hero::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--nav-h)) 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48% 90% at 86% 0%, rgba(var(--glow), 0.2), transparent 70%),
    radial-gradient(40% 60% at 10% 0%, rgba(243, 239, 226, 0.05), transparent 70%);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--dim);
  text-decoration: none;
}
.back::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.back:hover { color: var(--bright); }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(32px, 4vw, 52px);
}
.case-meta .case-co { font-size: 24px; }
/* the status is the link to the public report */
.case-meta a.pill { padding-right: 10px; text-decoration: none; transition: filter 150ms; }
.case-meta a.pill::after { content: "\2197"; font-size: 12px; opacity: 0.7; }
.case-meta a.pill:hover { filter: brightness(1.25); }
.case-meta .tag { padding-left: 16px; border-left: 1px solid var(--line-2); }
h1.case-title {
  max-width: 15em;
  margin-top: 30px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.case-figures {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line-2);
}
.case-figures div { padding: 28px 32px 4px 0; }
.case-figures div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.case-scale { max-width: 40em; margin-top: 34px; font-size: 16.5px; color: var(--text); }
.case-scale b { font-weight: 500; color: var(--bright); }
.case-figures b {
  display: block;
  font: 400 clamp(40px, 4.6vw, 64px)/0.95 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.035em;
  color: var(--bright);
}
.case-figures.is-saving div:first-child b { color: var(--add); }
.case-figures span {
  display: block;
  max-width: 18em;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--dim);
}

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-block: clamp(48px, 6vw, 80px) clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.case-main, .case-side { min-width: 0; }
.case-main > * + * { margin-top: 36px; }
.case-copy p {
  max-width: 36em;
  font-size: 18.5px;
  line-height: 1.65;
  text-wrap: pretty;
}
.case-copy p + p { margin-top: 1.05em; }
/* what the case means for the reader's own product */
.case-next { padding-top: 30px; border-top: 1px solid var(--line); }
.case-next h2 { font: 500 19px/1.3 var(--sans); letter-spacing: -0.015em; color: var(--bright); }
.case-next p { max-width: 40em; margin-top: 12px; color: var(--text); text-wrap: pretty; }
.case-next a { color: var(--bright); text-underline-offset: 3px; }
/* the line an auditor would run a highlighter over */
.k {
  color: var(--bright);
  background: linear-gradient(transparent 58%, rgba(227, 191, 102, 0.3) 0);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
code {
  padding: 0.1em 0.38em;
  border-radius: 5px;
  background: rgba(var(--tint), 0.07);
  font: 400 0.88em var(--mono);
  color: var(--bright);
}
pre code { padding: 0; background: none; font-size: inherit; color: inherit; }

.diff, .table-wrap, .meter, .facts {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.diff-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font: 400 12.5px/1.3 var(--mono);
  color: var(--dim);
}
.diff pre {
  overflow-x: auto;
  padding: 10px 0;
  font: 400 14px/1.8 var(--mono);
}
.diff .l { display: block; padding: 0 18px; white-space: pre; }
.diff .l.ctx { color: var(--dim); }
.diff .l.del { background: var(--del-bg); color: #f3b3aa; }
.diff .l.add { background: var(--add-bg); color: #b9ecd0; }
.diff-note {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
}
.diff-note b { font-weight: 500; color: var(--bright); }
.dots-wrap { height: 250px; }
.dots-wrap canvas { display: block; width: 100%; height: 100%; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font: 400 14px/1.4 var(--mono);
}
table.data caption {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12.5px;
  color: var(--dim);
}
table.data th, table.data td { padding: 12px 18px; text-align: left; white-space: nowrap; }
table.data th { font-weight: 400; font-size: 12.5px; color: var(--dim); border-bottom: 1px solid var(--line); }
table.data td { color: var(--bright); }
table.data tr + tr td { border-top: 1px solid var(--line); }

.case-side { position: sticky; top: calc(var(--nav-h) + 32px); }
.facts { padding: 4px 22px; }
.facts .row {
  display: grid;
  gap: 5px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.facts .row:last-child { border-bottom: 0; }
.facts .row span:first-child { font: 400 12.5px/1.3 var(--mono); color: var(--dim); }
.facts .row span:last-child { font-size: 15px; line-height: 1.5; color: var(--text); }
.facts a { color: var(--bright); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.facts a:hover { text-decoration-color: var(--bright); }
.facts .row .status-open { color: var(--amber); }

.more-cases { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-tint), var(--bg) 85%); }
.more-cases h2 {
  font: 400 clamp(30px, 3.4vw, 44px)/1.05 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.025em;
  color: var(--bright);
}
.more-cases ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.more-cases a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 20px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.more-cases a:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.more-cases .case-co { font-size: 16px; }
.more-cases b {
  margin-top: 26px;
  font: 400 38px/0.95 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
  color: var(--bright);
}
.more-cases a > span:last-child { margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--dim); }

@media (max-width: 1020px) {
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .case-side { position: static; }
  .more-cases ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .case-figures { grid-auto-flow: row; }
  .case-figures div { padding-right: 0; }
  .case-figures div + div { margin-top: 20px; padding: 20px 0 4px; border-left: 0; border-top: 1px solid var(--line); }
  .case-copy p { font-size: 17.5px; }
  .more-cases ul { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* case tables: every column on screen, no sideways scroll */
  table.data th, table.data td { padding: 10px 8px; white-space: normal; font-size: 12.5px; }
  table.data th:first-child, table.data td:first-child { padding-left: 14px; overflow-wrap: anywhere; }
  table.data th:last-child, table.data td:last-child { padding-right: 14px; }
  table.data caption { padding: 12px 14px; }
}
