:root {
  --bg: #fff;
  --fg: #111;
  --muted: #5f6368;
  --line: #e6e6e6;
  --card: #f7f7f8;
  --accent: #2f6bff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101011;
    --fg: #f2f2f2;
    --muted: #a0a0a6;
    --line: #26262a;
    --card: #18181b;
    --accent: #6b95ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  z-index: 2;
}
.skip:focus { top: 12px; }

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  text-decoration: none;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--fg);
  color: var(--bg);
  font: 700 15px/1 ui-serif, Georgia, serif;
}
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
nav a:hover { color: var(--fg); }

.hero {
  text-align: center;
  padding: 72px 0 40px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}
h1 {
  margin: 0 auto;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-wrap: balance;
}
h1 span { display: block; }
.lede,
.dek {
  margin: 24px auto 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  text-wrap: pretty;
}
.dek { margin-left: 0; margin-right: 0; font-size: 17px; }
.hero .lede { max-width: 33rem; text-wrap: balance; }
.audience {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { border-color: var(--muted); }
.button-primary {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}
.button-primary:hover { opacity: 0.85; }

.demo { padding: 24px 0 8px; }
.video-frame,
.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 24px 64px -24px rgb(0 0 0 / 0.25);
}
.shot { background: var(--card); box-shadow: none; }
.video-frame video,
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.video-frame video { aspect-ratio: 1708 / 998; }
.caption,
.shot figcaption {
  margin: 14px auto 0;
  max-width: 40rem;
  text-wrap: balance;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.features,
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  padding: 28px 0 8px;
}
.feature,
.step {
  padding: 24px;
  border-radius: 12px;
  background: var(--card);
}
.feature h2,
.step h3,
.block h2 {
  margin: 0 0 8px;
  font-size: 17px;
}
.feature p,
.step p,
.block > p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 16px;
}
.features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.section { padding: 56px 0 8px; }
.section h2.display {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 24px 0 8px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  background: var(--bg);
}
.card:hover { border-color: var(--muted); }
.card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  background: var(--card);
}
.card h3,
.card p { margin: 0; }
.card h3 { font-size: 17px; line-height: 1.35; }
.card p { color: var(--muted); font-size: 15px; }

.faq-list { padding: 8px 0 16px; }
.faq {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  flex: none;
  width: 1ch;
  color: var(--muted);
  font-weight: 400;
}
.faq[open] summary::before { content: "\2212"; }
.faq p { margin: 0 0 14px calc(1ch + 12px); max-width: 40rem; color: var(--muted); }
.faq a { color: var(--fg); }

.callout {
  margin: 28px 0;
  padding: 24px;
  border-radius: 14px;
  background: var(--card);
}
.callout p { margin: 0 0 16px; max-width: 40rem; }

.article {
  max-width: 40rem;
  margin: 0 auto;
  padding: 28px 0 72px;
}
.article h1,
.page-title {
  font-size: clamp(34px, 5vw, 52px);
  text-align: left;
}
.crumb {
  margin: 0 0 18px;
  line-height: 1.4;
  color: var(--muted);
  font-size: 14px;
}
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.byline,
.article .byline {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.sources {
  padding-left: 1.2em;
  font-size: 15px;
}
.sources li { margin: 4px 0; }
.feature-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 22px 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.article { font-size: 18px; line-height: 1.55; }
.article p { margin: 0 0 1em; text-wrap: pretty; }
.article h2 {
  margin: 2.1rem 0 0.6rem;
  font-size: 1.35rem;
  line-height: 1.25;
}
.article a { text-decoration: underline; text-underline-offset: 2px; }
.article a.card { text-decoration: none; }
.article .card p { font-size: 15px; }
.article ul,
.article ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.article ol { list-style: decimal; }
.article li { margin: 0.4rem 0; }
.article li::marker { color: var(--muted); }
.article .shot { margin: 8px 0 1.2rem; }
.article .shot figcaption { text-align: left; max-width: none; text-wrap: pretty; }
.article-figure { background: #fff; }
.article-figure picture { display: block; border-bottom: 1px solid var(--line); }
.article .article-figure figcaption {
  margin: 0;
  padding: 12px 16px 14px;
  background: var(--card);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer .wrap { padding-top: 28px; padding-bottom: 48px; }
.foot {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 24px;
}
.foot ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }
.legal { margin: 22px 0 0; }

@media (max-width: 700px) {
  .foot,
  .foot ul { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding-top: 48px; }
  .video-frame,
  .feature-image,
  .shot { border-radius: 10px; }
  .section { padding-top: 40px; }
  nav { column-gap: 16px; }
  .article { font-size: 17px; }
}

/* ---------- The words move. The marks don't. (home) ---------- */
.drift { padding-top: 24px; }
.drift .dek a, .drift-foot a { color: inherit; text-underline-offset: 2px; }
.drift .dek { max-width: 40rem; }
.drift-app {
  margin-top: 24px;
  padding: 24px 28px 20px;
  border-radius: 12px;
  background: var(--card);
}
.drift-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px 20px;
  align-items: center;
}
.drift-row figure { margin: 0; }
.drift-arrow { color: var(--muted); font-size: 24px; }
.drift-row figcaption {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}
.drift-row figcaption.bad { color: #d92d20; }
.drift-row figcaption.good { color: #138a4a; }
@media (prefers-color-scheme: dark) {
  .drift-row figcaption.bad { color: #ff6b61; }
  .drift-row figcaption.good { color: #3ddc84; }
}
.drift-app.is-ready figcaption { opacity: 0; transition: opacity 0.3s ease; }
.drift-app.is-ready figcaption.shown { opacity: 1; }
.drift-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fafb;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -18px rgb(0 0 0 / 0.25);
}
.drift-bar {
  position: relative;
  display: flex;
  gap: 5px;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  background: #ececef;
  border-bottom: 1px solid #e2e2e6;
}
.drift-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.drift-bar i:nth-child(2) { background: #febc2e; }
.drift-bar i:nth-child(3) { background: #28c840; }
.drift-bar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #3a3f48;
  font-size: 12px;
  font-weight: 600;
}
.drift-board { position: relative; aspect-ratio: 352 / 200; overflow: hidden; background: #f9fafb; }
.drift-world { position: absolute; inset: 0; }
.drift-world .drift-img { display: block; width: 100%; height: 100%; max-width: none; }
.drift-app.is-ready .drift-world {
  inset: auto;
  left: 0;
  top: 0;
  width: 352px;
  height: 200px;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
}
.drift-world [hidden] { display: none; }
.drift-chars span {
  position: absolute;
  background-size: 352px 200px;
  background-repeat: no-repeat;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.drift-chars.no-anim span { transition: none; }
.drift-circle { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.drift-draw {
  fill: none;
  stroke: #fff;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.6, 1);
}
.drift-ink { fill: #e03131; }
.drift-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.drift-foot p { margin: 0; max-width: 40rem; color: var(--muted); font-size: 14px; }
.drift-replay {
  font: inherit;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
.drift-replay:hover { border-color: var(--muted); }
.drift-replay:disabled { visibility: hidden; }
.drift-app:not(.is-ready) .drift-replay { display: none; }
@media (max-width: 700px) {
  .drift-app { padding: 18px; }
  .drift-row { grid-template-columns: minmax(0, 1fr); }
  .drift-arrow { justify-self: center; transform: rotate(90deg); line-height: 1; }
  .drift-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .drift-chars span, .drift-draw, .drift-app.is-ready figcaption { transition: none; }
}
