/* Paper Mono (SIL OFL 1.1, fonts/OFL.txt), for the framework explorer */
@font-face {
  font-family: "Paper Mono";
  src: url("/fonts/PaperMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #070708;
  --raise: #101013;
  --raise-2: #18181c;
  --line: #1f1f24;
  --line-2: #36363d;
  --fg: #fafafa;
  --fg-2: #a1a1aa;
  --fg-3: #82828c;
  --accent: #ff4f00;
  --ok: #5fd38d;
  --warn: #f5b74e;
  --sans: "Geist", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:
    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --paper: "Paper Mono", var(--mono);
  --max: 1160px;
  --nav-h: 57px;
  --gutter: 24px;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-padding-top: 88px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3 {
  margin: 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 6px;
  font: 500 13px var(--mono);
}
.skip:focus {
  top: 12px;
}
.page,
.agentbar .inner,
.nav .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.label {
  font: 500 13px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  margin: 0 0 16px;
}
.label .mdmark {
  width: 18px;
  height: 11px;
  margin-left: 6px;
  vertical-align: -1px;
}
.note {
  font: 13px/1.6 var(--mono);
  color: var(--fg-3);
  margin: 12px 0 0;
}
.note a {
  color: var(--fg-2);
}
.shead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.shead .label,
.shead .note {
  margin: 0;
}
section + section {
  margin-top: 96px;
}

/* agent bar + nav */
.agentbar {
  background: var(--accent);
  color: #000;
  font: 500 13px var(--mono);
}
.agentbar .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding-block: 9px;
}
.agentbar .ab-tag {
  font: 700 12px/1.6 var(--mono);
  letter-spacing: 0.06em;
  background: #000;
  color: var(--accent);
  padding: 1px 8px;
}
.agentbar code {
  background: rgba(0, 0, 0, 0.14);
  padding: 2px 7px;
  border-radius: 3px;
  font: inherit;
}
.agentbar .dim {
  opacity: 0.75;
}
.agentbar a {
  color: #000;
}
.agentbar .ab-get {
  min-width: 0;
  text-decoration: none;
  font-weight: 500;
}
.agentbar .ab-get:hover code {
  background: rgba(0, 0, 0, 0.24);
}
.agentbar a:focus-visible {
  outline-color: #000;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
/* the official _zapier logo; letters take the nav's text color, the underscore stays Zap Orange */
.nav .mark {
  display: flex;
  flex: none;
  color: #fffdf9;
}
.nav .mark svg {
  height: 22px;
  width: auto;
}
/* the pixel ".sh" that turns the logo into the domain. Its five x-height
   rows match the logo's 13.3px x-height (2.66px a cell), it is lifted 2px so
   its bottom row sits on the logo's baseline, and pulled back over the nav's
   gap to the logo's own letter spacing */
.nav .sh {
  display: flex;
  margin-left: -14px;
  color: #fffdf9;
}
.nav .sh svg {
  height: 18.6px;
  width: auto;
  transform: translateY(-2px);
}
.nav .mark:hover,
.nav .sh:hover {
  opacity: 0.8;
}
.nav ul {
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 24px;
}
.nav ul a {
  color: var(--fg-2);
  text-decoration: none;
}
.nav ul a:hover {
  color: var(--fg);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px 56px;
  padding-block: 64px 48px;
  align-items: center;
}
.hero > div {
  container-type: inline-size;
}
/* the hero wordmark, sized to its column: AUTOMATIONS (about 9.1em wide with
   its echo) fills it up to 80px, and 404 is set at the same size */
.word {
  position: relative;
  isolation: isolate;
  width: fit-content;
  margin: 0;
  color: #fffdf9;
  font:
    700 min(80px, 10.9cqi) / 0.9 "Silkscreen",
    var(--mono);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* the outline echo, offset down and right */
.word::before {
  content: attr(data-t);
  position: absolute;
  left: 0.06em;
  top: 0.06em;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}
.tag {
  font: 500 clamp(14px, 1.7vw, 18px) / 1.2 var(--mono);
  letter-spacing: 0.02em;
  margin: 28px 0 0;
  text-transform: uppercase;
}
.pitch {
  font: 400 clamp(18px, 1.9vw, 24px) / 1.35 var(--sans);
  color: var(--fg-2);
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.pitch b {
  color: var(--fg);
  font-weight: 600;
}
.lost {
  padding-block: 120px;
}

/* try it now + the agents it works with */
.hint {
  margin: 10px 0 0;
  color: var(--fg-3);
  font: 400 14px / 1.4 var(--sans);
}
.start {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px 56px;
  margin-top: 0;
}
.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 8px 12px 16px;
  min-height: 60px;
  font: 14px/1.55 var(--mono);
  min-width: 0;
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* one line that scrolls sideways with no visible bar, so dragging a selection shows the end, as in a text field */
.cmd.one code {
  white-space: nowrap;
  overflow-wrap: normal;
  overflow-x: auto;
  scrollbar-width: none;
}
.cmd.one code::-webkit-scrollbar {
  display: none;
}
/* the fade at a cut-off edge: set by the page script, which knows when there's more to scroll */
.cmd.one code[data-end] {
  --fade: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
.cmd.one code[data-start] {
  --fade: linear-gradient(to right, transparent, #000 48px);
}
.cmd.one code[data-start][data-end] {
  --fade: linear-gradient(
    to right,
    transparent,
    #000 48px,
    #000 calc(100% - 48px),
    transparent
  );
}
.cmd.one code[data-start],
.cmd.one code[data-end] {
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}
.cmd .p {
  color: var(--accent);
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--raise-2);
  color: var(--fg);
  font: 500 13px var(--mono);
  cursor: pointer;
}
.copy:hover {
  border-color: var(--fg-3);
}
.copy svg {
  width: 15px;
  height: 15px;
}
.copy .i-done {
  display: none;
}
/* copied: the whole button turns orange, and a check replaces the copy icon */
.copy[data-done=""] {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, var(--raise-2));
  color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.copy[data-done=""] .i-copy {
  display: none;
}
.copy[data-done=""] .i-done {
  display: block;
  animation: copied 0.25s ease-out;
}
@keyframes copied {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .copy[data-done=""] .i-done {
    animation: none;
  }
}
.copy[data-done] span {
  font-size: 0;
}
.copy[data-done] span::after {
  content: "Copied";
  font-size: 13px;
}
.copy[data-done="manual"] {
  border-color: var(--warn);
  color: var(--warn);
}
.copy[data-done="manual"] span::after {
  content: "Press ⌘C / Ctrl+C";
  color: var(--warn);
}

/* the agents it works with: logos only, each linking to its setup guide */
.works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.works a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--fg);
  outline-offset: 2px;
  transition: transform 0.15s ease;
}
.works a:hover {
  transform: translateY(-2px);
}
.works img,
.works svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
/* app-icon logos (Grok Bot, Cursor) keep their rounded-square shape */
.works img {
  border-radius: 6px;
}
.works .dark img {
  filter: invert(1);
}

/* directory */
/* the search stays under the nav while the list scrolls, with the live count and Clear beside it */
.search {
  position: sticky;
  top: var(--nav-h);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--fg-3);
  padding: 14px 0;
  background: var(--bg);
}
.search:focus-within {
  border-color: var(--accent);
}
.search .count {
  flex: none;
  font: 13px var(--mono);
  color: var(--fg-3);
  white-space: nowrap;
}
.clear {
  flex: none;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-2);
  font: 13px var(--mono);
  cursor: pointer;
}
.clear:hover {
  background: var(--raise-2);
  color: var(--fg);
}
.search svg {
  width: 18px;
  height: 18px;
  stroke: var(--fg-2);
  flex: none;
}
.search input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  font: 16px var(--mono);
  min-width: 0;
}
.search input::placeholder {
  color: var(--fg-3);
}
kbd {
  font: 12px var(--mono);
  color: var(--fg-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 3px 8px;
}
/* category, then job: the same grouping as zapier.com/automations */
.filters {
  display: grid;
  gap: 12px;
  padding: 16px 0 4px;
}
.frow {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.opt {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--raise);
  color: var(--fg-2);
  font: 13px var(--sans);
  cursor: pointer;
}
.opt span {
  color: var(--fg-3);
}
.opt[data-empty]:not([aria-pressed="true"]) {
  opacity: 0.45;
}
.opt:hover {
  border-color: var(--fg-3);
  color: var(--fg);
}
.opt[aria-pressed="true"] {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}
.opt[aria-pressed="true"] span {
  color: inherit;
  opacity: 0.6;
}
.item .cat {
  display: block;
  margin-bottom: 4px;
  font: 12px var(--mono);
  color: var(--fg-3);
}
.listhead,
.item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 34%) 24px;
  gap: 24px;
}
/* each row's number counts the rows on show, so a filtered list reads 01, 02, 03 */
.list {
  counter-reset: zap;
}
.list li:not([hidden]) {
  counter-increment: zap;
}
.item .n::before {
  content: counter(zap, decimal-leading-zero);
}
.item .n {
  font: 13px/20px var(--mono);
  color: var(--fg-3);
}
.listhead[hidden] {
  display: none;
}
.listhead {
  padding: 24px 0 12px;
  border-bottom: 1px solid var(--line);
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  border-bottom: 1px solid var(--line);
}
.item {
  padding: 20px 12px 20px 0;
  margin-inline: -12px 0;
  padding-left: 12px;
  border-radius: 8px;
  text-decoration: none;
  align-items: start;
}
.item:hover {
  background: var(--raise);
}
.item .name {
  display: block;
  font: 600 16px/24px var(--sans);
}
.item .sum {
  display: block;
  margin-top: 4px;
  color: var(--fg-2);
  max-width: 62ch;
}
.item .go {
  display: flex;
  justify-content: flex-end;
  align-self: center;
  color: var(--fg-3);
}
.item .go .arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.15s ease;
}
.item:hover .go .arrow {
  transform: translateX(3px);
}
/* inline arrows sit on the text's x-height, a gap from the word they point to */
.arrow {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-left: 0.3em;
}
.arrow.left {
  transform: scaleX(-1);
  margin: 0 0.3em 0 0;
}
.item:hover .go {
  color: var(--accent);
}
.item:hover .name {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
}
.chip {
  background: var(--raise-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 2px 8px;
  font: 12px/18px var(--mono);
  color: var(--fg-2);
}
/* the app's own icon, straight on the background in one light tone: grayscale and inverted, then screened so
   whatever was white (most logos' backdrop) drops out, and brightened so coloured logos read as clearly as
   black-and-white ones. On hover it shows in its own colours, with its name in a tooltip. */
.chips:has(.app) {
  gap: 6px;
  align-items: center;
}
.app {
  --size: 20px;
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: calc(var(--size) + 8px);
  height: calc(var(--size) + 8px);
}
.app img {
  width: var(--size);
  height: var(--size);
  filter: grayscale(1) invert(1) brightness(1.7) contrast(1.15);
  mix-blend-mode: screen;
  transition: filter 0.15s ease;
}
a.app,
a.chip {
  text-decoration: none;
}
.app:hover img {
  filter: none;
  mix-blend-mode: normal;
}
/* in the list, centred in the row; on a zap's page, larger */
.item .app {
  --size: 22px;
}
.item .chips:has(.app) {
  align-self: center;
}
.facts .app {
  --size: 32px;
}
.facts .chips:has(.app) {
  gap: 10px;
  margin-top: 4px;
}
/* the tooltip and its arrow */
.app::after,
.app::before {
  position: absolute;
  left: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
  z-index: 10;
}
.app::after {
  content: attr(data-tip);
  bottom: calc(100% + 9px);
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--raise-2);
  color: var(--fg);
  font: 12px/16px var(--sans);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
.app::before {
  content: "";
  bottom: calc(100% + 4px);
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--raise-2);
  transform: translate(0, 4px) rotate(45deg);
}
.app:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.app:hover::before {
  opacity: 1;
  transform: translate(0, 0) rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
  .app img,
  .app::after,
  .app::before {
    transition: none;
  }
}
.empty {
  padding: 24px 0;
  color: var(--fg-2);
  font-family: var(--mono);
}
.empty p {
  margin: 0;
}
.none-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px !important;
  font-size: 13px;
}

/* zap page */
.detail {
  padding-top: 32px;
}
.back {
  display: inline-block;
  font: 13px var(--mono);
  color: var(--fg-2);
  text-decoration: none;
  margin-bottom: 32px;
}
.back:hover {
  color: var(--fg);
}
.dhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}
.dhead h1 {
  font: 600 clamp(30px, 4vw, 48px) / 1.08 var(--sans);
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
  text-wrap: balance;
}
.dhead > div > p {
  font-size: 18px;
  color: var(--fg-2);
  margin: 0;
  max-width: 60ch;
}
.hprompt {
  margin-top: 32px;
}
.hprompt .label {
  margin-bottom: 12px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin: 0;
}
.facts div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.facts .wide {
  grid-column: 1 / -1;
}
.facts dt {
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.facts dd {
  margin: 0;
  font: 14px var(--mono);
}
/* the source repo, then the zap's folder inside it, which can be long */
/* the repo, linked to the zap's folder on GitHub, behind GitHub's mark */
.src a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.src svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
/* how an agent installs the zap: the zap-pack commands in order, beside the folder add writes */
.setup {
  margin-top: 80px;
}
.sgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 24px;
  align-items: start;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  color: var(--fg-2);
  font: 400 15px / 1.6 var(--sans);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font: 500 13px var(--mono);
  color: var(--fg);
}
.steps b {
  color: var(--fg);
  font-weight: 600;
}
.steps .cmd {
  margin-top: 12px;
}
.setup code {
  font: 13px var(--mono);
  color: var(--fg);
  overflow-wrap: anywhere;
}
.ftree {
  --bar: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raise);
  overflow: hidden;
}
.ftree ul {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}
.ftree li {
  display: grid;
  gap: 2px;
  padding: 8px 14px 8px 40px;
}
.ftree li a {
  font: 14px var(--mono);
  justify-self: start;
}
.ftree li span {
  color: var(--fg-3);
  font: 400 13px / 1.5 var(--sans);
}
.ftree li code {
  color: var(--fg-2);
}
.ftree em {
  font-style: normal;
  color: var(--warn);
}
.setup > .hint {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .sgrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* the zap's SKILL.md, shown as is: its top half until opened */
.skill {
  margin-top: 80px;
  max-width: 760px;
}
.md.clip {
  max-height: 440px;
  overflow: hidden;
  mask-image: linear-gradient(#000 60%, transparent);
}
.more {
  margin-top: 16px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--raise);
  font: 500 13px var(--mono);
  cursor: pointer;
}
.more:hover {
  border-color: var(--fg-3);
  background: var(--raise-2);
}
/* the zap list's Show more: a quiet button centred under the list, with a background only on hover */
.listmore {
  display: block;
  margin: 16px auto 0;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-2);
  font: 500 14px var(--sans);
  cursor: pointer;
}
.listmore:hover {
  background: var(--raise-2);
  color: var(--fg);
}
.listmore:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.dochead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.dochead .label {
  margin: 0;
}
/* the raw SKILL.md, styled like the file links beside it, with a soft background on hover */
.mdlink {
  margin: -4px -8px;
  padding: 4px 8px;
  border-radius: 6px;
  font: 14px var(--mono);
  transition: background 0.15s ease;
}
.mdlink:hover {
  background: var(--raise-2);
}
.md {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
}
.md h2 {
  font: 600 22px/1.3 var(--sans);
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 48px 0 12px;
}
.md > h2:first-child {
  margin-top: 24px;
}
.md h3 {
  font: 600 17px/1.3 var(--sans);
  color: var(--fg);
  margin: 28px 0 10px;
}
.md p {
  margin: 0 0 16px;
}
.md strong {
  color: var(--fg);
  font-weight: 600;
}
.md a {
  color: var(--fg);
}
.md code {
  font: 13px var(--mono);
  color: var(--fg);
  background: var(--raise-2);
  padding: 1px 5px;
  border-radius: 4px;
}
.md pre {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font: 13px/1.65 var(--mono);
  color: var(--fg);
  font-variant-ligatures: none;
}
/* guide samples are prose (emails, texts), so they wrap */
.md pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.md pre code {
  background: none;
  padding: 0;
  font: inherit;
}
.md table {
  border-collapse: collapse;
  width: 100%;
  font: 13px var(--mono);
  display: block;
  overflow-x: auto;
}
.md th {
  text-align: left;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11.5px;
  color: var(--fg-3);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line);
}
.md td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.md ul,
.md ol {
  padding-left: 20px;
  margin: 0 0 16px;
}
.md li {
  margin: 4px 0;
}
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 96px;
}
.pager a {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.pager a:hover {
  border-color: var(--line-2);
  background: var(--raise);
}
.pager .label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--fg-3);
}
.pager .nx {
  text-align: right;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-block: 0 56px;
  margin-top: 96px;
  color: var(--fg-3);
  font: 12.5px/1.6 var(--mono);
}
/* the rule sits inside the gutter so it lines up with the content above */
.foot::before {
  content: "";
  flex-basis: 100%;
  height: 1px;
  margin-bottom: 24px;
  background: var(--line);
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot a {
  color: var(--fg-2);
}
/* the trademark note: its own line under the links, in the footer's quiet type */
.foot .tm {
  flex-basis: 100%;
  max-width: 96ch;
  margin: 0;
  color: var(--fg-3);
  font: 12px/1.6 var(--sans);
}

/* the aside is the first thing to go, so the agent bar stays on one line */
@media (max-width: 1100px) {
  .agentbar .dim {
    display: none;
  }
}
/* narrower still: just the badge and the path, which is itself the link */
@media (max-width: 820px) {
  .agentbar .inner {
    flex-wrap: nowrap;
  }
  .agentbar .ab-skip {
    display: none;
  }
  .agentbar .ab-get code {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 900px) {
  .hero,
  .start,
  .dhead {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-block: 48px 40px;
    gap: 28px;
  }
  .dhead {
    gap: 32px;
  }
  section + section {
    margin-top: 72px;
  }
}
@media (max-width: 760px) {
  .listhead {
    display: none;
  }
  .list {
    border-top: 1px solid var(--line);
  }
  .item {
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 4px 12px;
  }
  .item .chips {
    grid-column: 2;
    grid-row: 2;
    margin-top: 8px;
  }
  .item .chips:has(.app) {
    align-self: start;
  }
  .item .go {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    padding-top: 2px;
  }
}
@media (max-width: 640px) {
  .frow {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  :root {
    --gutter: 16px;
  }
  .nav .inner {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: 12px;
  }
  .nav ul {
    margin: 8px 0 0;
    width: 100%;
    gap: 20px;
    font-size: 13.5px;
  }
  .search kbd {
    display: none;
  }
  :root {
    --nav-h: 75px;
  }
  .opts {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .opts::-webkit-scrollbar {
    display: none;
  }
  .opt {
    flex: none;
  }
  .item .sum {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager .nx {
    text-align: left;
  }
  .cmd {
    flex-wrap: wrap;
    padding: 12px;
  }
  .cmd .copy {
    width: 100%;
    justify-content: center;
  }
}
/* For your agent / For you tabs above the install prompt */
.wtabs {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.wtabs button {
  display: inline-flex;
  align-items: center;
  margin-bottom: -1px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--fg-3);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
}
.wtabs button:hover {
  color: var(--fg);
}
.wtabs button[aria-selected="true"],
.wtabs .only {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
/* A zap page has the agent prompt alone (its CLI steps have their own section), shown as a selected tab */
.wtabs .only {
  display: inline-flex;
  margin-bottom: -1px;
  padding: 0 0 10px;
  border-bottom: 2px solid;
  font: 500 14px/1 var(--sans);
}
.hint code,
.points code {
  font: 13px var(--mono);
  color: var(--fg);
}
.hint a {
  color: var(--fg-2);
}

/* the framework explorer: folder on the left, the open file in an editor window on the right.
   --bar is shared by the folder row and the window's title bar so their top edges and rules line up. */
.folder {
  --bar: 44px;
  --row: 40px;
}
.fhead {
  margin-bottom: 32px;
}
/* Personal [switch] Team, at the right of the window's title bar; orange when Team is on */
.toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 4px 2px;
  border: 0;
  background: none;
  font: 500 12.5px var(--sans);
  cursor: pointer;
}
.toggle .side-l,
.toggle .side-r {
  color: var(--fg-3);
  transition: color 0.2s;
}
.toggle[aria-checked="false"] .side-l,
.toggle[aria-checked="true"] .side-r {
  color: var(--fg);
}
.toggle:hover .side-l,
.toggle:hover .side-r {
  color: var(--fg-2);
}
.toggle:hover[aria-checked="false"] .side-l {
  color: var(--fg);
}
/* a minimal switch: an outlined track and a dot that moves over and brightens */
.track {
  position: relative;
  flex: none;
  width: 26px;
  height: 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: border-color 0.2s;
}
.knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-3);
  transition:
    transform 0.2s cubic-bezier(0.22, 0.8, 0.25, 1),
    background-color 0.2s;
}
.toggle:hover .track {
  border-color: var(--fg-3);
}
.toggle[aria-checked="true"] .track {
  border-color: var(--accent);
}
.toggle[aria-checked="true"] .knob {
  transform: translateX(12px);
  background: var(--accent);
}
.toggle[aria-checked="true"] .side-r {
  color: var(--accent);
}
.xp[data-mode="personal"] .m-team,
.xp[data-mode="team"] .m-personal {
  display: none;
}
.fhead .label {
  margin-bottom: 12px;
}
.ftitle {
  margin: 0;
  font: 500 clamp(22px, 2.4vw, 28px) / 1.2 var(--sans);
  letter-spacing: -0.015em;
  color: var(--fg);
}
.fsub {
  margin: 10px 0 0;
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
}
.dsub {
  margin: -8px 0 20px;
  max-width: 68ch;
  font-size: 15px;
  color: var(--fg-2);
}
.xp {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
/* the window has a 1px top border; this keeps the folder row's rule level with the title bar's */
.side {
  padding-top: 1px;
}
.root {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--bar);
  margin: 0;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font: 500 14px var(--paper);
  color: var(--fg);
}
/* a long zap folder stays on one line, cut with an ellipsis; the title shows all of it */
.root span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.folder-ic {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--fg-2);
}
.tree {
  position: relative;
  display: grid;
  margin-top: 8px;
}
/* one highlight that slides to the open file */
.hl {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--row);
  border-radius: 8px;
  background: var(--raise-2);
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    0 10px 24px -10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.xp.ready .hl {
  transition:
    transform 0.34s cubic-bezier(0.22, 0.8, 0.25, 1),
    height 0.34s cubic-bezier(0.22, 0.8, 0.25, 1);
}
.tree button {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: var(--row);
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--fg-2);
  font: 400 14px var(--paper);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.tree button:hover,
.tree button[aria-selected="true"] {
  color: var(--fg);
}
.tree button[aria-selected="true"] {
  font-weight: 600;
}
.tree .fpath {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ftag {
  flex: none;
  font: 400 12px var(--paper);
  color: var(--fg-3);
}
.ftag.required {
  color: var(--fg-2);
}
.ftag.shared {
  color: var(--accent);
}
.stage {
  min-width: 0;
}
/* the editor window: the only thing with chrome */
.win {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--raise);
  overflow: hidden;
  box-shadow: 0 28px 56px -24px rgba(0, 0, 0, 0.7);
}
.wbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--bar);
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--raise-2);
}
.dots {
  display: inline-flex;
  flex: none;
  gap: 7px;
}
.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-2);
}
.wpath {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 13px var(--paper);
  color: var(--fg-2);
}
/* every window is as tall as the longest file, like an editor, so switching files never moves the page */
.code {
  min-height: calc(var(--lines, 12) * 1.75em + 32px);
  margin: 0;
  padding: 16px 0;
  overflow-x: auto;
  font: 13.5px/1.75 var(--paper);
  color: var(--fg);
}
.code {
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.code::-webkit-scrollbar {
  height: 8px;
}
.code::-webkit-scrollbar-track {
  background: transparent;
}
.code::-webkit-scrollbar-thumb {
  border: 2px solid var(--raise);
  border-radius: 8px;
  background: var(--line-2);
}
.code::-webkit-scrollbar-thumb:hover {
  background: var(--fg-3);
}
.code .ln {
  display: block;
  padding-right: 20px;
  border-left: 2px solid transparent;
  white-space: pre;
  transition:
    opacity 0.25s,
    background-color 0.25s;
}
.code .ln i {
  display: inline-block;
  width: 46px;
  padding-right: 18px;
  text-align: right;
  font-style: normal;
  color: var(--fg-3);
  user-select: none;
}
/* in team mode, the lines written in for the team */
.code .ln.lit {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-left-color: var(--accent);
}
.code .k {
  color: #f0809b;
}
.code .s {
  color: var(--ok);
}
.code .c {
  color: var(--fg-3);
}
.wstatus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 36px;
  padding: 0 14px;
  border-top: 1px solid var(--line);
  font: 12px var(--paper);
  color: var(--fg-3);
}
/* the file's description, under its window; room for three lines so the page below stays put */
.about {
  min-height: calc(3 * 1.6em);
  margin: 16px 0 0;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
}
.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  margin: 40px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--fg-2);
}
.points b {
  font-weight: 600;
  color: var(--fg);
}
@media (max-width: 900px) {
  .xp {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .side {
    padding-top: 0;
  }
  .points {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* the home page's questions: what zapier.sh is, who it's for, what it costs, how it compares */
.faq dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 56px;
  margin: 0;
}
.faq dt {
  font: 600 16px/1.4 var(--sans);
  color: var(--fg);
  margin-bottom: 8px;
}
.faq dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 60ch;
}
@media (max-width: 760px) {
  .faq dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
