@font-face {
  font-family: Inter;
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("roboto-mono.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --ink: #1e1e1e;
  --muted: #4d4d4d;
  --faint: #707070;
  --border: #e6e6e6;
  --ground: #f5f5f5;
  --accent: #6c47ff;
  --accent-hover: #5a38e6;
  --tint: #f3ebff;
  --tint-ink: #7a2ee0;
  --link: #007be5;
  --mono: "Roboto Mono", ui-monospace, monospace;
}

html {
  /* Keeps a section's heading clear of the sticky header. */
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 22px;
  letter-spacing: -0.003em;
}

a {
  color: var(--link);
}

a:hover {
  color: #005fb8;
}

a:focus-visible,
.code-body:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

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

.wordmark {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wordmark span {
  font-weight: 500;
  color: var(--accent);
}

.wordmark-small {
  font-size: 13px;
  line-height: 16px;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}

.site-nav > a:not(.button) {
  color: var(--ink);
  text-decoration: none;
}

.site-nav > a:not(.button):hover {
  color: var(--accent);
}

/* Buttons */

.button {
  height: 44px;
  padding: 0 20px;
  box-sizing: border-box;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 6px;
}

.button-small {
  height: 36px;
  padding: 0 16px;
}

.button-wide {
  padding: 0 24px;
}

.button-primary,
.button-primary:hover {
  background: var(--accent);
  color: #ffffff;
}

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

.button-outline,
.button-outline:hover {
  box-shadow: inset 0 0 0 1px #d9d9d9;
  color: var(--ink);
}

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

/* Hero */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 96px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  align-self: flex-start;
  height: 28px;
  padding: 0 10px;
  border-radius: 9999px;
  background: var(--tint);
  color: var(--tint-ink);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.005em;
  display: flex;
  align-items: center;
}

h1 {
  font-size: 56px;
  line-height: 62px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.lead {
  font-size: 17px;
  line-height: 28px;
  color: var(--muted);
  max-width: 520px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* The before and after picture */

.mock {
  flex: 1 1 480px;
  min-width: 0;
  position: relative;
  background: var(--ground);
  border-radius: 13px;
  border: 1px solid var(--border);
  padding: 32px 24px 56px;
  box-sizing: border-box;
}

.mock-sides {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.mock-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-label {
  font-size: 11px;
  line-height: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #b3b3b3;
}

.dot-accent {
  background: var(--accent);
}

.strong {
  font-weight: 550;
}

.mono {
  color: var(--faint);
  font-family: var(--mono);
}

.mock-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.mock-after {
  position: relative;
}

.mock-button {
  height: 32px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 4px;
  font-weight: 550;
  display: flex;
  align-items: center;
}

.mock-after .mock-button {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
}

.mock-button.save {
  background: #2563eb;
  color: #ffffff;
}

.mock-button.save.focused {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #2563eb;
}

.mock-button.cancel {
  box-shadow: inset 0 0 0 1px #d0d5dd;
}

.mock-button.delete {
  background: #b91c1c;
  color: #ffffff;
}

.mock-button.delete.darker {
  position: relative;
  background: #991b1b;
}

.mock-pin {
  position: absolute;
  right: -16px;
  top: -16px;
  width: 24px;
  height: 24px;
  border-radius: 12px 12px 12px 0;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--accent);
}

.mock-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -28px;
  max-width: 360px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 13px;
  box-shadow: 0 0 0.5px #0000004d, 0 5px 12px #00000033;
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mock-avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #bde3ff;
  font-size: 11px;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-note-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-note-title {
  font-size: 11px;
  line-height: 16px;
}

.requested {
  color: #dc3412;
  font-weight: 550;
}

.mock-note-body {
  font-size: 12px;
  line-height: 18px;
}

/* Sections */

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
}

h2 {
  font-size: 36px;
  line-height: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-heading p {
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}

.how {
  background: var(--ground);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.step {
  background: #ffffff;
  border-radius: 13px;
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 16px 16px 16px 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.step-who {
  margin-top: auto;
  font-size: 11px;
  line-height: 16px;
  color: var(--faint);
  font-weight: 550;
  letter-spacing: 0.005em;
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px 40px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: var(--tint);
  color: var(--tint-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

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

/* Pipeline */

.pipeline {
  background: var(--ink);
  color: #ffffff;
}

.pipeline-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.pipeline-text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipeline-text p {
  font-size: 15px;
  line-height: 24px;
  color: #cccccc;
}

.code {
  flex: 1 1 460px;
  min-width: 0;
  border-radius: 13px;
  background: #2c2c2c;
  border: 1px solid #444444;
  overflow: hidden;
}

.code-title {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #444444;
  font-family: var(--mono);
  font-size: 11px;
  color: #b3b3b3;
}

.code-body {
  overflow-x: auto;
}

.code pre {
  margin: 0;
  padding: 20px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 20px;
  color: #f2f2f2;
}

/* Closing */

.closing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.closing h2 {
  font-size: 40px;
  line-height: 48px;
  max-width: 640px;
}

.closing p {
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
  max-width: 520px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  line-height: 16px;
  color: var(--faint);
}

/* Phones */

@media (max-width: 640px) {
  .hero {
    padding: 48px 16px 80px;
    gap: 40px;
  }

  h1 {
    font-size: 38px;
    line-height: 44px;
  }

  h2,
  .closing h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .section-inner,
  .pipeline-inner {
    padding: 56px 16px;
  }

  .closing {
    padding: 64px 16px;
  }

  .site-header-inner,
  .site-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mock {
    padding: 24px 16px 64px;
  }

  .mock-panel {
    padding: 16px;
  }

  .steps,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}
