@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dmsans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --panel: #0c0c0c;
  --line: #222;
  --line-soft: #161616;
  --text: #f6f6f5;
  --muted: #a3a3a3;
  --faint: #6e6e6e;
  --red: #ff2a2a;
  --red-ink: #ff4747;
  --red-wash: rgb(255 42 42 / 0.12);
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
}

a {
  color: inherit;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #000;
  font: 600 16px / 1 var(--body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.button:hover {
  background: #ff4a4a;
}
.button-small {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(0 0 0 / 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 19px / 1 var(--display);
  letter-spacing: -0.035em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-right: auto;
  font-size: 15px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 88px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-wash);
}

.headline {
  max-width: 15ch;
  margin: 0;
  font: 800 clamp(42px, 6.6vw, 82px) / 1 var(--display);
  letter-spacing: -0.052em;
}
.br-wide {
  display: none;
}

.engine {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
  vertical-align: -0.06em;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}
.engine.is-leaving {
  opacity: 0;
  transform: translateY(-0.18em);
}
.engine.is-entering {
  opacity: 0;
  transform: translateY(0.18em);
  transition: none;
}
.engine-tile {
  display: inline-grid;
  place-items: center;
  width: 0.92em;
  height: 0.92em;
  border: 1px solid var(--line);
  border-radius: 0.2em;
  background: #111;
  box-shadow: 0 0.06em 0.18em rgb(0 0 0 / 0.6);
}
.engine-tile img {
  width: 0.56em;
  height: 0.56em;
}

.underlined {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.scribble {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.26em;
  overflow: visible;
}
.scribble path {
  fill: none;
  stroke: var(--red);
  stroke-width: 7;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.lede {
  max-width: 34em;
  text-wrap: balance;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

/* Signup */

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  max-width: 480px;
  margin-top: 36px;
}
.signup input[type="email"] {
  height: 52px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: 400 16px var(--body);
}
.signup input[type="email"]::placeholder {
  color: var(--faint);
}
.signup input[type="email"]:focus-visible {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px var(--red-wash);
}
.signup .trap {
  position: absolute;
  left: -9999px;
}
.signup-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 14px;
}
.signup.is-done .signup-note {
  color: var(--text);
}
.signup.is-error .signup-note {
  color: var(--red-ink);
}
.signup.is-done input[type="email"],
.signup.is-done .button {
  display: none;
}

/* Logo chips */

.chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 64px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.chip-label {
  margin-right: 6px;
  color: var(--faint);
  font-size: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 500;
}
.chip img {
  width: 18px;
  height: 18px;
}
.chip-plain {
  color: var(--muted);
}

/* Fig. 1 */

.demo {
  margin-top: 96px;
}
.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgb(255 42 42 / 0.05),
    0 40px 120px -40px rgb(255 42 42 / 0.28);
}
.terminal-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font: 13px / 1.4 var(--mono);
}
.terminal-body {
  margin: 0;
  padding: 24px 28px 28px;
  overflow-x: auto;
  color: var(--text);
  font: 14px / 1.75 var(--mono);
  tab-size: 2;
}
.t-you {
  color: var(--red-ink);
}
.t-tool {
  color: var(--red-ink);
  font-weight: 400;
}
.t-dim {
  color: var(--faint);
}
.t-bar {
  color: var(--text);
}
.t-bar-you {
  color: var(--red);
}
.t-track {
  color: #2a2a2a;
}
.t-high {
  color: var(--text);
}
.t-ok {
  color: var(--text);
}

.caption {
  display: flex;
  gap: 14px;
  max-width: 72ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.caption-fig {
  flex: none;
  color: var(--faint);
  font: 14px / 1.6 var(--mono);
}

/* Sections */

.how,
.pricing {
  padding-top: 144px;
}

h2 {
  max-width: 24ch;
  margin: 0;
  text-wrap: balance;
  font: 800 clamp(34px, 4.6vw, 56px) / 1.02 var(--display);
  letter-spacing: -0.045em;
}
.section-lede {
  max-width: 36em;
  text-wrap: pretty;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.steps li {
  padding: 32px 32px 8px 0;
}
.steps li + li {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #000;
  font: 700 15px / 1 var(--display);
}
.steps h3 {
  margin: 20px 0 8px;
  font: 700 28px / 1.1 var(--display);
  letter-spacing: -0.035em;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.builders {
  margin: 40px 0 0;
  color: var(--faint);
  font-size: 15px;
}

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 56px;
  margin-top: 48px;
}
.credit-costs {
  max-width: 640px;
}
.credit-costs h3 {
  margin: 0 0 16px;
  font: 700 22px / 1.2 var(--display);
  letter-spacing: -0.03em;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th,
.price-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.price-table th {
  color: var(--muted);
  font-weight: 400;
  text-align: left;
}
.price-table td {
  padding-left: 24px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.price-table tr:first-child th,
.price-table tr:first-child td {
  border-top: 1px solid var(--line);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  background: var(--black);
}
.plan-name {
  color: var(--muted);
  font-size: 15px;
}
.plan-price {
  font: 800 36px / 1.1 var(--display);
  letter-spacing: -0.04em;
}
.plan-price small {
  margin-left: 2px;
  color: var(--faint);
  font: 500 15px var(--body);
  letter-spacing: 0;
}
.plan-credits {
  color: var(--text);
  font-size: 14px;
}
.plan-fit {
  margin-top: 2px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.4;
}
.fineprint {
  margin: 20px 0 0;
  color: var(--faint);
  font-size: 14px;
}

/* Final */

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 160px;
  padding-top: 96px;
  padding-bottom: 112px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.final-mark {
  margin-bottom: 28px;
}
.final h2 {
  max-width: none;
}
.final .section-lede {
  margin-inline: auto;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 13px;
}

/* Responsive */

@media (min-width: 760px) {
  .br-wide {
    display: inline;
  }
  .headline {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li,
  .steps li + li {
    padding: 28px 0 24px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-inner {
    justify-content: space-between;
  }
  .hero {
    padding-top: 56px;
  }
  .lede {
    font-size: 17px;
  }
  .signup {
    grid-template-columns: 1fr;
  }
  .chip-label {
    flex-basis: 100%;
    margin: 6px 0 0;
  }
  .terminal-body {
    padding: 18px 16px 20px;
    font-size: 12px;
  }
  .plan {
    padding: 18px 16px;
  }
  .plan-price {
    font-size: 30px;
  }
  .caption {
    flex-direction: column;
    gap: 2px;
  }
  .how,
  .pricing {
    padding-top: 104px;
  }
  .final {
    margin-top: 112px;
  }
}

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