/* FoldBytes. One family (Archivo, OFL) for everything people read; JetBrains Mono
   (OFL) only for the log lines on the folding page. Light and dark, no third-party
   requests. Headings size to their column with container units. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-fb1.woff2") format("woff2");
  font-weight: 400 720;
  font-stretch: 100% 112%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-fb1.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}


:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f6;
  --ink: #15171a;
  --ink-2: #5b6068;
  --rule: #e2e4e7;
  --accent: #0a7552;
  --accent-hover: #075f42;
  --on-accent: #ffffff;
  --sheet: #f4f5f6;
  --sheet-ink: #5f656d;
  --sheet-edge: #d8dbdf;
  --fold-light: #ffffff;
  --fold-light-amt: .3;
  --fold-shade-amt: .12;
  --fold-floor: rgba(0, 0, 0, .16);
  --band-alt-edge: transparent;
  --band: #000000;
  --band-ink: #f3f4f5;
  --band-ink-2: #a3a8af;
  --band-rule: #2c2e31;
  --band-accent: #3cc98f;
  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #111214;
    --ink: #f3f4f5;
    --ink-2: #a3a8af;
    --rule: #2c2e31;
    --accent: #3cc98f;
    --accent-hover: #62d9a7;
    --on-accent: #00170d;
    --sheet: #1f2124;
    --sheet-ink: #9ba1a8;
    --sheet-edge: #3a3d42;
    --fold-light-amt: .12;
    --fold-shade-amt: .32;
    --fold-floor: rgba(0, 0, 0, .6);
    --bg-alt: #000000;
    --band-alt-edge: #2c2e31;
    --band: #16171a;
    --band: #111214;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #111214;
  --ink: #f3f4f5;
  --ink-2: #a3a8af;
  --rule: #2c2e31;
  --accent: #3cc98f;
  --accent-hover: #62d9a7;
  --on-accent: #00170d;
  --sheet: #1f2124;
  --sheet-ink: #9ba1a8;
  --sheet-edge: #3a3d42;
  --fold-light-amt: .12;
  --fold-shade-amt: .32;
  --fold-floor: rgba(0, 0, 0, .6);
  --bg-alt: #000000;
  --band-alt-edge: #2c2e31;
  --band: #16171a;
  --band: #111214;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
main { flex: 1; }
p, li, dd, figcaption { text-wrap: pretty; }
dt { text-wrap: balance; }
@media (min-width: 900px) { body { font-size: 1.1875rem; } }
p, ul, ol, dl, dd, figure { margin: 0; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  container-type: inline-size;
}
.narrow { max-width: calc(44rem + 2 * var(--gutter)); }

.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { top: 1rem; left: 1rem; z-index: 10; width: auto; height: auto; padding: .75rem 1rem; clip-path: none; background: var(--ink); color: var(--bg); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 640; letter-spacing: -0.032em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 10.5cqi, 6.5rem); letter-spacing: -0.042em; line-height: .98; }
h2 { font-size: clamp(2.125rem, 6.4cqi, 4.25rem); }
h3 { font-size: 1.25rem; font-weight: 620; letter-spacing: -0.015em; line-height: 1.25; }
.section-lede { margin-top: 1.5rem; max-width: 40rem; font-size: clamp(1.1875rem, 2.4cqi, 1.5rem); line-height: 1.42; color: var(--ink-2); }

/* ---------- header and footer ---------- */
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.3125rem; font-weight: 720; font-stretch: 112%; letter-spacing: -0.04em; }
.top-nav { display: flex; align-items: center; gap: clamp(.25rem, 2.2vw, 1.75rem); }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.nav-link:hover { color: var(--ink); }
@media (max-width: 780px) { .nav-link { display: none; } }
@media (max-width: 380px) { .wordmark { font-size: 1.125rem; } .top-nav { gap: 0; } .btn-small { padding: 0 .85rem; font-size: .875rem; } }
.theme-btn { appearance: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.theme-btn { display: none; }
.js .theme-btn { display: inline-grid; }

.foot { border-top: 1px solid var(--rule); padding-block: 1.75rem; font-size: .875rem; color: var(--ink-2); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 2rem; }
.foot a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .22em; }
.foot a:hover { color: var(--ink); text-decoration-color: currentColor; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; transition: background-color .15s ease; }
.btn:hover { background: var(--accent-hover); }
.btn-small { min-height: 44px; padding: 0 1.1rem; font-size: .9375rem; }
.btn-large { min-height: 56px; padding: 0 2.25rem; font-size: 1.125rem; }
.text-link { display: inline-flex; align-items: center; min-height: 48px; color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.75rem; margin-top: 2.25rem; }

/* ---------- sections ---------- */
section { padding-block: clamp(5rem, 11vw, 9.5rem); }
.band-alt { background: var(--bg-alt); border-block: 1px solid var(--band-alt-edge); }

/* hero */
.hero { padding-block: clamp(3.25rem, 8vw, 6.5rem) clamp(4rem, 8vw, 6rem); text-align: center; }
.hero .lede { margin: 1.5rem auto 0; max-width: 34rem; font-size: clamp(1.1875rem, 2.6cqi, 1.625rem); line-height: 1.38; color: var(--ink-2); text-wrap: balance; }
.hero-404 { min-height: 62vh; }

/* The folding page: 6 panels of 4 lines. Panel i sits at i*h*cos(fold) and tilts by
   +/-fold about its top edge; odd panels start where the even one above them ends
   (h*sin(fold) toward the viewer), so the page folds like a paper accordion. It loads
   folded; the stage's height follows the fold, so it only grows when the visitor
   unfolds it. The text scales with the width so whole lines always fit. */
@property --fold {
  syntax: "<angle>";
  inherits: true;
  initial-value: 54deg;
}
.fold { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; margin-top: clamp(3rem, 7vw, 5rem); container-type: inline-size; }
.fold-stage {
  --w: min(100cqi, 600px);
  --fs: min(12px, calc((var(--w) - 40px) / 45.6));
  --line: calc(var(--fs) * 1.5);
  --n: 6;
  --h: calc(4 * var(--line));
  --fold: 54deg;
  position: relative;
  width: var(--w);
  height: calc(var(--n) * var(--h) + 24px);
  padding-top: 12px;
  perspective: 1400px;
  perspective-origin: 50% 40%;
  transition: --fold 1.1s cubic-bezier(.66, 0, .22, 1);
}
.fold-stage.is-flat { --fold: 0deg; }
.fold-stage::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 22px;
  background: radial-gradient(closest-side, var(--fold-floor), transparent);
  opacity: 0;
  pointer-events: none;
}
.sheet { position: relative; transform-style: preserve-3d; transform-origin: 50% 0; }
.panel {
  --i: 0;
  --odd: 0;
  --tint: var(--fold-light);
  --amt: var(--fold-light-amt);
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--i) * var(--h));
  height: var(--h);
  padding: 0 20px;
  overflow: hidden;
  background: var(--sheet);
  border-inline: 1px solid var(--sheet-edge);
  color: var(--sheet-ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs);
  line-height: var(--line);
  white-space: pre;
  text-align: left;
  transform-origin: 50% 0;
}
.panel span { display: block; overflow: hidden; }
/* Folds facing up catch the light, folds facing down fall into shade. */
.panel::after { content: ""; position: absolute; inset: 0; background: var(--tint); opacity: 0; pointer-events: none; }
/* Everything that needs CSS sin() and cos(). Without them the page stays flat and readable. */
@supports (opacity: calc(sin(1deg))) {
  .fold-stage { height: calc(var(--n) * var(--h) * cos(var(--fold)) + 24px); }
  .fold-stage::after { opacity: calc(sin(var(--fold)) * 1.2); }
  .sheet { transform: scale(.96) rotateX(calc(var(--fold) * .1)); }
  .panel {
    transform:
      translateY(calc(var(--i) * var(--h) * (cos(var(--fold)) - 1)))
      translateZ(calc(var(--odd) * var(--h) * sin(var(--fold))))
      rotateX(calc(var(--fold) * (1 - 2 * var(--odd))));
  }
  .panel::after { opacity: calc(sin(var(--fold)) * var(--amt)); }
  .js .fold-btn { display: inline-flex; }
}
.panel:nth-child(even) { --odd: 1; --tint: #000; --amt: var(--fold-shade-amt); }
.panel:nth-child(2) { --i: 1; }
.panel:nth-child(3) { --i: 2; }
.panel:nth-child(4) { --i: 3; }
.panel:nth-child(5) { --i: 4; }
.panel:nth-child(6) { --i: 5; }
.panel:first-child { border-top: 1px solid var(--sheet-edge); border-radius: 6px 6px 0 0; }
.panel:last-child { border-bottom: 1px solid var(--sheet-edge); border-radius: 0 0 6px 6px; }
.fold-btn { appearance: none; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: .9375rem; cursor: pointer; }
.fold-btn:hover { color: var(--ink); border-color: var(--ink-2); }
.fold-btn { display: none; }
.fold figcaption { max-width: 34rem; font-size: .9375rem; color: var(--ink-2); text-wrap: balance; }
.fold figcaption a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.fold figcaption a:hover { text-decoration: underline; text-underline-offset: .22em; }
@media (prefers-reduced-motion: reduce) { .fold-stage { transition: none; } }

/* problem */
.split { display: grid; gap: 2rem; }
.split-text { display: grid; gap: 1rem; max-width: 32rem; color: var(--ink-2); }
@media (min-width: 900px) { .split { grid-template-columns: 7fr 5fr; gap: 4rem; align-items: end; } }

/* ruled rows: steps, industries, questions */
.rows { margin-top: 3.5rem; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.rows > li, .rows > div { display: grid; gap: .5rem 2rem; padding-block: 1.75rem; border-top: 1px solid var(--rule); }
.rows p, .rows dd { max-width: 38rem; color: var(--ink-2); }
.rows dt { font-size: 1.25rem; font-weight: 620; letter-spacing: -0.015em; line-height: 1.25; }
.steps > li { grid-template-columns: 1.75rem 1fr; column-gap: .75rem; }
.steps > li p { grid-column: 2; }
.row-num { color: var(--accent); font-size: 1.25rem; font-weight: 620; line-height: 1.25; font-variant-numeric: tabular-nums; }
@media (min-width: 780px) {
  .steps > li { grid-template-columns: 3rem 10rem 1fr; column-gap: 2rem; }
  .steps > li p { grid-column: 3; }
  .faq > div { grid-template-columns: 15rem 1fr; }
}

/* proof */
.band-proof { background: var(--band); color: var(--band-ink); }
.band-proof h2 { font-size: clamp(2.5rem, 8.4cqi, 5.75rem); letter-spacing: -0.042em; }
.band-proof .section-lede { color: var(--band-ink-2); }
.band-proof .text-link { color: var(--band-accent); margin-top: 2.5rem; }
.proof-top { display: grid; gap: clamp(3rem, 6vw, 4rem); margin-top: 1.5rem; }
.proof-top .section-lede { margin-top: 0; }
@media (min-width: 1024px) { .proof-top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.scale { --S: clamp(120px, 34cqi, 300px); --dot: 0.016309; }
.scale-pair { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: clamp(1.25rem, 5cqi, 3.5rem); }
.scale-item { display: flex; flex-direction: column; gap: .9rem; }
.scale-log {
  width: var(--S);
  height: var(--S);
  border: 1px solid var(--band-ink-2);
  background: repeating-linear-gradient(to bottom, transparent 0 7px, color-mix(in srgb, var(--band-ink) 13%, transparent) 7px 8px);
}
.scale-rec { width: calc(var(--S) * var(--dot)); height: calc(var(--S) * var(--dot)); background: var(--band-accent); }
.scale-item p { font-size: .9375rem; color: var(--band-ink-2); }
.scale-item strong { margin-right: .4em; color: var(--band-ink); font-weight: 600; }
.scale figcaption { max-width: 30rem; margin-top: 1.5rem; font-size: .9375rem; color: var(--band-ink-2); }
.matched-h { margin-top: clamp(4rem, 8vw, 6rem); max-width: 30ch; font-size: clamp(1.375rem, 3cqi, 2rem); letter-spacing: -0.025em; }
.matched { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-top: 2rem; padding: 2rem 0 0; list-style: none; border-top: 1px solid var(--band-rule); }
@media (min-width: 900px) { .matched { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.matched strong { display: block; font-size: clamp(1.625rem, 5cqi, 3.25rem); font-weight: 640; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.matched span { display: block; margin-top: .55rem; color: var(--band-ink-2); }
.proof-notes { display: grid; gap: 1.25rem; max-width: 40rem; margin-top: clamp(3.5rem, 7vw, 5rem); font-size: clamp(1.1875rem, 2.4cqi, 1.5rem); line-height: 1.42; }

/* who it is for: a statement list */
.who-list { display: grid; gap: 1.1rem; margin-top: 3rem; padding: 0; list-style: none; font-size: clamp(1.25rem, 2.8cqi, 1.875rem); line-height: 1.3; letter-spacing: -0.015em; }
.who-list strong { color: var(--ink); font-weight: 640; }
.who-list span { color: var(--ink-2); }

/* your data */
.data-list { display: grid; gap: 2rem 4rem; margin-top: 3.5rem; padding: 0; list-style: none; }
@media (min-width: 780px) { .data-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.data-list li { padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--ink-2); }
.data-list strong { color: var(--ink); font-weight: 620; }

/* contact */
.contact { text-align: center; padding-top: clamp(2rem, 5vw, 4rem); }
.contact .section-lede { margin-inline: auto; text-wrap: balance; }
.contact-email { margin-top: 1.25rem; color: var(--ink-2); }
.contact-email a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .22em; }
.contact-note { max-width: 30rem; margin: 1.5rem auto 0; font-size: .9375rem; color: var(--ink-2); }

/* legal pages */
.legal { padding-block: clamp(3.25rem, 8vw, 6rem); }
.legal h1 { font-size: clamp(2.5rem, 9cqi, 4.25rem); }
.legal .updated { margin-top: 1rem; font-size: .9375rem; color: var(--ink-2); }
.legal h2 { margin-top: 2.75rem; font-size: 1.375rem; letter-spacing: -0.02em; }
.legal p { margin-top: 1rem; }
.legal h2 + p { margin-top: .75rem; }
.legal a { color: var(--accent); }

.nw { white-space: nowrap; }
.case-label { margin-bottom: 1.25rem; font-size: 1rem; font-weight: 600; color: var(--band-accent); }
