/* eli5bot.com. Dark only, one accent, one 6px radius. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111214;
  --surface: #18191c;
  --sunken: #0b0c0e;
  --text: #ecece9;
  --text-2: #b7b9bd;
  --text-3: #8f9298;
  --line: #2a2c30;
  --line-strong: #3b3e43;
  --accent: #f28a4a;
  --accent-ink: #1c0e05;
  --accent-soft: rgb(242 138 74 / 0.11);
  --add: #5cc47e;
  --add-bg: rgb(92 196 126 / 0.09);
  --del: #f0838b;
  --del-bg: rgb(240 131 139 / 0.09);
  --marker: rgb(242 138 74 / 0.3);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow: 0 28px 56px -28px rgb(0 0 0 / 0.75);
  --radius: 6px;
  --display: "Bricolage Grotesque", "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --gutter: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  /* Paper grain over the flat colour; bands repeat it over their own colour. */
  background: var(--grain), var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
code,
pre {
  font-family: var(--mono);
}
h1,
h2,
h3,
.argument-lead,
.third {
  text-wrap: balance;
}
p,
dd,
li {
  text-wrap: pretty;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  z-index: 20;
}
.skip:focus {
  top: 12px;
}

/* Buttons and the waitlist form */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 15px/1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease);
}
.button:hover {
  color: var(--accent-ink);
  filter: brightness(1.06);
}
.button:active {
  transform: translateY(1px);
}
.button[disabled] {
  cursor: progress;
  filter: saturate(0.6);
}
.button-small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.waitlist {
  display: grid;
  gap: 8px;
  max-width: 460px;
}
.waitlist label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.waitlist input[type="email"] {
  height: 44px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: 400 16px var(--sans);
}
.waitlist input[type="email"]:focus-visible {
  border-color: var(--accent);
  outline-offset: 0;
}
.waitlist input[aria-invalid="true"] {
  border-color: var(--del);
}
.form-note {
  font-size: 14px;
  color: var(--text-3);
}
.form-note[data-state="error"] {
  color: var(--del);
}
.form-note[data-state="done"] {
  color: var(--text);
  font-weight: 600;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.wordmark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.wordmark span {
  font-weight: 500;
  color: var(--text-3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}
.nav-links a:not(.button) {
  text-decoration: none;
  color: var(--text-2);
}
.nav-links a:not(.button):hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  column-gap: 48px;
  row-gap: 32px;
}
.hero-head {
  grid-column: 1 / -1;
}
.eyebrow {
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
h1,
h2,
.wordmark,
.price,
.flow li::before {
  font-family: var(--display);
  font-stretch: 85%;
}
h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}
h1 > span {
  display: block;
}
h1 > span + span {
  color: var(--text-3);
}

/* The highlighter: what an explanation does to a diff, used on the few phrases that carry the argument. */
mark {
  color: var(--text);
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 72% / 100% 0.4em;
  padding-inline: 0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .hero mark {
    animation: mark 1.1s var(--ease) 0.5s both;
  }
  .js .reveal mark {
    background-size: 0 0.4em;
    transition: background-size 1.1s var(--ease) 0.2s;
  }
  .js .reveal.is-visible mark {
    background-size: 100% 0.4em;
  }
}
@keyframes mark {
  from {
    background-size: 0 0.4em;
  }
}
.hero-copy {
  display: grid;
  align-content: start;
  gap: 28px;
  padding-top: 8px;
}
.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 34ch;
}
.text-link {
  font-weight: 600;
  justify-self: start;
}

/* The hero picture: the real diff behind the explanation of it. */
.hero-visual {
  display: grid;
  min-height: 470px;
}
.hero-visual > * {
  grid-area: 1 / 1;
}
.diff {
  width: 64%;
  height: 470px;
  justify-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sunken);
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent);
}
.diff pre {
  margin: 0;
  padding: 10px 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-3);
  white-space: pre;
}
.diff pre span {
  display: block;
  padding-inline: 12px;
}
.diff .add {
  color: var(--add);
  background: var(--add-bg);
}
.diff .del {
  color: var(--del);
  background: var(--del-bg);
}
.diff .hunk {
  color: var(--text-3);
  opacity: 0.7;
}
.diff .meta {
  color: var(--text-2);
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  /* Two copies of the diff loop upward: the volume never stops coming. */
  .diff-track {
    animation: diff-scroll 500s linear infinite;
  }
  .hero-visual .gh-comment {
    animation: rise 0.9s var(--ease) 0.2s both;
  }
}
@keyframes diff-scroll {
  to {
    transform: translateY(-50%);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.hero-visual .gh-comment {
  justify-self: end;
  align-self: start;
  width: 74%;
  margin-top: 40px;
  max-height: 430px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
/* A warm light from the top right, so the hero isn't flat black. */
.hero {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse 70% 65% at 80% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
/* On wide screens the diff becomes the hero's background, a wall of code the headline and the comment sit on. */
@media (min-width: 1001px) {
  .hero .diff {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64vw;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    -webkit-mask-image: linear-gradient(to right, transparent 8%, #000 62%), linear-gradient(transparent, #000 14%, #000 76%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 8%, #000 62%), linear-gradient(transparent, #000 14%, #000 76%, transparent);
    mask-composite: intersect;
    opacity: 0.6;
  }
  .hero .diff pre {
    font-size: 12px;
    line-height: 1.75;
  }
  .hero-visual {
    min-height: 500px;
  }
  .hero-visual .gh-comment {
    width: min(100%, 600px);
    margin-top: 8px;
    max-height: 500px;
  }
}

/* A rendered ELI5 comment, styled after GitHub's comment box. */
.gh-comment {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.55;
}
.gh-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--sunken) 55%, var(--surface));
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 13px;
  color: var(--text-3);
}
.gh-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font: 700 10px/1 var(--mono);
}
.gh-head strong {
  color: var(--text);
}
.gh-badge {
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
}
.md {
  padding: 16px 18px 20px;
}
.md > * + * {
  margin-top: 12px;
}
.md h4 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.md h5 {
  margin: 18px 0 0;
  font-size: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.md h6 {
  margin: 12px 0 0;
  font-size: 14px;
}
.md ul {
  padding-left: 20px;
  list-style: disc;
}
.md ul li + li {
  margin-top: 4px;
}
.md ol {
  padding-left: 20px;
  list-style: decimal;
}
.md ol li + li {
  margin-top: 8px;
}
.ref {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.alert {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 14px;
}
.alert-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.alert ul {
  padding: 0;
  list-style: none;
}
.alert label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 8px;
  cursor: pointer;
}
.alert input {
  margin: 3px 0 0;
  accent-color: var(--accent);
}
.alert li + li {
  margin-top: 6px;
}
.md table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.md th,
.md td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}
.md th {
  background: color-mix(in srgb, var(--sunken) 50%, var(--surface));
}
.md details summary {
  cursor: pointer;
  font-weight: 600;
}
.md details ul {
  margin-top: 8px;
}
.md code {
  font-size: 12px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--sunken);
}
.md-sub {
  font-size: 12px;
  color: var(--text-3);
}
/* "How it works" as GitHub draws the bot's Mermaid diagram: before and after side by side, steps top to bottom, changed steps outlined. */
.md .diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 12px;
}
.md .diagram-title {
  margin-bottom: 8px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.md .diagram ol {
  display: grid;
  gap: 18px;
  padding: 0;
  list-style: none;
}
.md .diagram li {
  position: relative;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sunken);
  font-size: 13px;
  line-height: 1.4;
}
.md .diagram li.changed {
  border: 2px solid var(--text-2);
}
.md .diagram li + li::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 18px;
  background: var(--text-3);
}
.md .diagram li + li::after {
  content: "";
  position: absolute;
  left: calc(50% - 4px);
  top: -6px;
  border: 4px solid transparent;
  border-top-color: var(--text-3);
}
.md .diagram .tag {
  margin-right: 6px;
  font: 600 10px/1 var(--mono);
  color: var(--accent);
}

/* Sections */
.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}
/* Bands break the run of same-coloured sections: the example sits lower, the refusal takes a warm tint of the accent, the close goes to the accent. */
.band,
.band + .section {
  border-top: 0;
}
.band-sunken {
  background: var(--grain), var(--sunken);
}
.band-warm {
  background: var(--grain), #1d130d;
}
.band-accent {
  --text: var(--accent-ink);
  --text-2: var(--accent-ink);
  --text-3: var(--accent-ink);
  background: var(--grain), var(--accent);
  color: var(--text);
}
.band-accent a {
  text-decoration-color: currentColor;
}
.band-accent a:hover {
  color: inherit;
}
.band-accent .button,
.band-accent .button:hover {
  background: #16181b;
  color: #fffaf6;
}
.band-accent .waitlist input[type="email"] {
  border-color: transparent;
  background: #fffaf6;
  color: #16181b;
}
.band-accent :focus-visible {
  outline-color: currentColor;
}
.band-accent .form-note[data-state] {
  color: var(--text);
  font-weight: 600;
}
h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 20ch;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.section-lede {
  margin-top: 20px;
  font-size: 19px;
  color: var(--text-2);
  max-width: 60ch;
}

/* The bottleneck: a short argument set as text. */
.argument-lead {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 30ch;
  font-weight: 600;
}
.argument-lead em {
  font-style: normal;
  color: var(--text-3);
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.answers p {
  margin-top: 10px;
  color: var(--text-2);
  max-width: 44ch;
}
.answers h3 s {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.third {
  margin-top: 56px;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* Anatomy: the parts of a comment, next to a real one. */
.anatomy-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}
.parts {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 4px;
}
.parts a {
  display: block;
  padding: 12px 0 12px 18px;
  border-left: 2px solid var(--line);
  text-decoration: none;
  color: var(--text-3);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.parts a strong {
  display: block;
  font-size: 17px;
  color: inherit;
}
.parts a span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.45;
}
.parts a.is-active,
.parts a:hover {
  color: var(--text);
  border-left-color: var(--accent);
}
.full-comment figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-3);
}
.full-comment [data-part] {
  scroll-margin-top: 120px;
  border-radius: 4px;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.full-comment [data-part].is-active {
  background: var(--accent-soft);
  box-shadow: 0 0 0 8px var(--accent-soft);
}

/* What it doesn't do: four things, crossed out, with what it does instead beside them. */
.not-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 56px;
  align-items: end;
  margin-top: 48px;
}
.not-list {
  display: grid;
  gap: 6px;
}
.not-list li {
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 650;
  color: var(--text-3);
}
/* A background rather than a pseudo-element, so an item that wraps is struck through on every line. */
.strike {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 58% / 100% 0.075em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .js .strike {
    background-size: 0 0.075em;
    transition: background-size 0.7s var(--ease) calc(var(--i, 0) * 120ms);
  }
  .js .is-visible .strike {
    background-size: 100% 0.075em;
  }
}
.not-close {
  font-size: 20px;
  color: var(--text-2);
  max-width: 40ch;
  padding-bottom: 6px;
}

/* Trust: five cells, each showing the thing it claims. */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.cell {
  grid-column: span 2;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  align-content: start;
  gap: 10px;
}
.cell p {
  color: var(--text-2);
  font-size: 16px;
}
.cell-wide {
  grid-column: span 4;
}
/* Two views of one thing joined by a line: a claim and the lines its link opens, a comment before and after an update. */
.chain {
  min-width: 0;
  margin-top: 8px;
}
.chain > * {
  position: relative;
}
.chain > * + * {
  margin-top: 28px;
}
.chain > :not(:last-child)::after {
  content: "";
  position: absolute;
  left: 32px;
  top: 100%;
  width: 2px;
  height: 29px;
  background: var(--accent);
}
.chain .gh-comment {
  box-shadow: none;
}
.chain .md {
  font-size: 15px;
  color: var(--text);
}
/* The claim's few lines wrap rather than scroll, so the part the claim is about stays in view on a phone. */
.chain .code pre {
  grid-template-columns: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chain .code pre > span {
  padding-left: 4ch;
  text-indent: -4ch;
}
.chain .code pre > .hl {
  padding-left: calc(4ch + 10px);
}
.chain .code pre b {
  text-indent: 0;
}
/* The line the comment carries while it's out of date. GitHub shows it in italics and renders the hashes as commit links. */
.status-quote {
  margin-top: 8px;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--accent);
  font-style: italic;
}
.status-quote code {
  font: 500 0.88em var(--mono);
  color: var(--accent);
}
.code .hl {
  margin-inline: -12px;
  padding-inline: 10px 12px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}
.code {
  border-radius: var(--radius);
  background: var(--sunken);
  border: 1px solid var(--line);
  overflow: hidden;
}
.code-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font: 500 12px/1.4 var(--mono);
  color: var(--text-3);
}
/* One column as wide as the longest line, so a highlighted line stays highlighted when scrolled sideways. */
.code pre {
  display: grid;
  grid-template-columns: minmax(100%, max-content);
  margin: 0;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--text-2);
}
.code pre > span {
  display: block;
}
.code pre b {
  display: inline-block;
  width: 4ch;
  color: var(--text-3);
  font-weight: 400;
  user-select: none;
}
.contrast {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  font: 500 13px/1.5 var(--mono);
}
.contrast span {
  color: var(--text-3);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.chips span {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 500 12px/1.5 var(--mono);
  color: var(--text-2);
}

/* Our own pull requests: two quotes from the bot. */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
}
.quotes blockquote {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 550;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.quotes figcaption {
  margin-top: 14px;
  padding-left: 23px;
  font-size: 15px;
  color: var(--text-3);
}

/* How it works: four verbs in a row. */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.flow {
  counter-reset: step;
}
.flow li {
  padding-top: 20px;
  border-top: 2px solid var(--line-strong);
  counter-increment: step;
}
.flow li::before {
  content: counter(step);
  display: block;
  margin-bottom: 18px;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.flow li:first-child {
  border-top-color: var(--accent);
}
.flow p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 16px;
}
.after-flow {
  margin-top: 40px;
  color: var(--text-2);
}

/* Who reads it: a definition list. */
.audience {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.audience div {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 32px;
  padding: 20px 0;
}
.audience div + div {
  border-top: 1px solid var(--line);
}
.audience dt {
  font-weight: 650;
  font-size: 18px;
}
.audience dd {
  color: var(--text-2);
}

/* How code is handled: four facts. */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.facts h3 {
  font-size: 22px;
}
.facts p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 16px;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.plan {
  padding: 28px 24px 32px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.plan + .plan {
  border-left: 1px solid var(--line);
}
.plan h3 {
  font-size: 17px;
  color: var(--text-2);
}
.price {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.price small {
  font: 400 15px var(--sans);
  letter-spacing: 0;
  color: var(--text-3);
}
.runs {
  font-weight: 650;
}
.fit {
  color: var(--text-3);
  font-size: 15px;
}
.plan-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 36px;
}
.plan-notes p + p {
  margin-top: 10px;
}
.plan-notes ul {
  list-style: disc;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 15px;
  display: grid;
  gap: 6px;
}
.pricing-cta {
  margin-top: 40px;
}

/* FAQ */
.faq {
  margin-top: 40px;
  max-width: 780px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 650;
  font-size: 18px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font: 400 24px/1 var(--mono);
  color: var(--text-3);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 22px;
  color: var(--text-2);
  max-width: 64ch;
}

/* Closing */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
/* The hero's diff again (cloned by main.js), faint and cleared from the middle: the page ends on the code nobody reads. */
.closing .diff {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  text-align: left;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 50% 50%, transparent 58%, #000 100%);
  mask-image: radial-gradient(ellipse 60% 75% at 50% 50%, transparent 58%, #000 100%);
}
.closing .diff pre,
.closing .diff pre span {
  color: var(--accent-ink);
  background: none;
  font-size: 13px;
}
.closing h2 {
  margin-inline: auto;
  max-width: 24ch;
}
.closing .waitlist {
  margin: 40px auto 0;
  text-align: left;
}

/* Policy pages */
.prose {
  max-width: 68ch;
}
.prose h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
  margin-top: 48px;
  max-width: none;
}
.prose h2 + *,
.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 14px;
}
.prose ul {
  padding-left: 20px;
  list-style: disc;
}
.prose li + li {
  margin-top: 8px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--text-3);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  gap: 20px;
}

/* Tablet */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: 0;
  }
  .anatomy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .parts {
    position: static;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .cell,
  .cell-wide {
    grid-column: span 1;
  }
  .cell-wide {
    grid-column: 1 / -1;
  }
  .flow,
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .plan:nth-child(3) {
    border-left: 0;
  }
  .plan:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* Phone */
@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .nav-links a:not(.button) {
    display: none;
  }
  .hero {
    padding: 36px 0 56px;
  }
  .lede {
    font-size: 18px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .diff {
    width: 100%;
    height: 300px;
  }
  .md .diagram {
    grid-template-columns: 1fr;
  }
  /* Too narrow to keep the code clear of the headline and the form. */
  .closing .diff {
    display: none;
  }
  .hero-visual .gh-comment {
    width: 94%;
    margin-top: 150px;
    max-height: 380px;
  }
  .section {
    padding: 72px 0;
  }
  .answers,
  .quotes,
  .plan-notes,
  .not-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .parts,
  .bento,
  .flow,
  .facts,
  .plans {
    grid-template-columns: 1fr;
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .audience div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .quotes blockquote {
    font-size: 19px;
  }
}
