@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --bg: #f2f2f0;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #55555a;
  --soft: #8a8a8f;
  --line: #d6d6d3;
  --button-hover: #3a3a3d;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #18181b;
    --ink: #ededed;
    --muted: #a1a1a6;
    --soft: #77777d;
    --line: #2a2a2e;
    --button-hover: #c8c8cc;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

/* Labels: the monospace voice of the page. */

.eyebrow,
.case-tag,
.section-label,
.lang,
.offer-index {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Header */

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
}

.site-header nav a,
.lang {
  text-decoration: none;
  color: var(--muted);
}

.site-header nav a:hover,
.lang:hover {
  color: var(--ink);
}

.lang {
  border: 1px solid var(--line);
  padding: 4px 10px;
}

@media (max-width: 720px) {
  .site-header nav {
    display: none;
  }

  .lang {
    margin-left: auto;
  }
}

/* Hero */

.hero {
  padding-top: clamp(48px, 10vw, 120px);
  padding-bottom: clamp(56px, 9vw, 112px);
}

h1 {
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 20px;
  max-width: 15ch;
}

h1 em,
.display em {
  font-style: normal;
  color: var(--soft);
}

.lede {
  margin-top: 28px;
  max-width: 40rem;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 24px;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--button-hover);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.text-link:hover {
  border-color: var(--ink);
}

.flow {
  list-style: none;
  padding: 0;
  margin-top: clamp(56px, 8vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.flow li {
  position: relative;
  padding: 16px 32px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.flow li span {
  display: block;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: 16px;
  top: 16px;
  font-family: var(--mono);
  font-size: 1.25rem;
}

@media (max-width: 640px) {
  .flow {
    grid-template-columns: 1fr;
  }

  .flow li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .flow li:not(:last-child)::after {
    content: "↓";
    right: 0;
  }
}

/* Sections */

.section {
  /* A rule aligned with the text column, not the padded box. */
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.section-label {
  display: flex;
  gap: 12px;
  color: var(--muted);
}

.section-label span {
  color: var(--ink);
}

.display {
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 20px;
  max-width: 22ch;
}

/* Offers */

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.offer {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 28px;
}

.offer.lead {
  border-top: 3px solid var(--ink);
}

.offer-index {
  color: var(--soft);
}

.offer h3 {
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.offer p {
  margin-top: 16px;
  color: var(--muted);
}

.offer ul {
  list-style: none;
  padding: 0;
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.9375rem;
}

.offer li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

@media (max-width: 900px) {
  .offers {
    grid-template-columns: 1fr;
  }
}

/* Cases */

.case {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px 64px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.case:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.case-tag {
  color: var(--muted);
}

.case h3 {
  font-weight: 600;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 12px;
}

.case-body p {
  margin-top: 16px;
  color: var(--muted);
}

.figures {
  display: grid;
  align-content: start;
}

.figures div {
  border-top: 1px solid var(--ink);
  padding: 16px 0 20px;
}

.figures dt {
  font-family: var(--mono);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.figures dd {
  margin-top: 8px;
  color: var(--muted);
}

.case-aside {
  align-self: start;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.case-aside p {
  color: var(--muted);
}

.case-aside .text-link {
  display: inline-block;
  margin-top: 16px;
}

@media (max-width: 800px) {
  .case {
    grid-template-columns: 1fr;
  }
}

/* Method */

.steps {
  list-style: none;
  padding: 0;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--soft);
}

.steps h3 {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 6px;
}

.steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact .button {
  margin-top: 40px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.0625rem;
  padding: 18px 32px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 48px;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.legal {
  margin-top: 16px;
}

.legal summary {
  cursor: pointer;
  color: var(--muted);
}

.legal summary:hover {
  color: var(--ink);
}

.legal dl {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 8px 24px;
  margin-top: 20px;
  max-width: 52rem;
}

.legal dt {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 640px) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal dd {
    margin-bottom: 12px;
  }
}
